|
Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/laciasmara.com/public_html/shop/themes/3/css/ |
Upload File : |
.menu-dropdown {
position: relative;
}
.menu-dropdown .menu-link {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 14px;
transition: color 0.3s ease;
line-height: 1;
}
.menu-dropdown .menu-link::after {
content: '';
display: inline-block;
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid white;
margin-left: 4px;
transition: transform 0.3s ease;
}
.menu-dropdown:hover .menu-link::after {
transform: rotate(180deg);
}
.dropdown-content {
position: absolute;
top: 140%;
left: 50%;
transform: translateX(-50%);
background: white;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
display: flex;
width: 1000px;
padding: 24px;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 1000;
}
.menu-dropdown:hover .dropdown-content {
opacity: 1;
visibility: visible;
top: 140%;
}
.dropdown-columns-wrapper {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
}
.dropdown-columns {
display: flex;
gap: 8px;
}
.dropdown-column {
flex: 1;
padding: 0 8px;
}
.dropdown-columns>.dropdown-column:last-child {
border-right: none;
}
.dropdown-column a {
font-size: 14px;
}
.dropdown-column h4 {
color: #7A4397;
margin-bottom: 16px;
font-size: 16px;
font-weight: 600;
text-decoration: none;
position: relative;
cursor: pointer;
}
.dropdown-column h4::after {
content: '';
position: absolute;
left: 0;
bottom: -2px;
width: 0;
height: 2px;
background-color: #7A4397;
transition: width 0.3s ease-in-out;
}
.dropdown-column h4:hover::after {
width: 100%;
}
.dropdown-item {
display: block;
color: #333;
text-decoration: none;
padding: 8px 0;
transition: color 0.3s ease;
}
.dropdown-item-header {
text-decoration: none;
transition: color 0.3s ease;
}
.dropdown-item:hover {
color: #7A4397;
}
.dropdown-promo {
width: 250px;
padding-left: 24px;
display: flex;
flex-direction: column;
border-left: 1px solid #e0e0e0;
cursor: pointer;
}
.dropdown-promo h4 {
color: #7A4397;
margin-bottom: 16px;
font-size: 16px;
font-weight: 600;
}
.promo-card {
background: #f4f4f4;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.promo-card:hover {
transform: scale(1.05);
}
.promo-image {
width: 100%;
height: 150px;
object-fit: cover;
}
.promo-details {
padding: 12px;
text-align: center;
background: white;
}
.promo-title {
display: block;
color: #7A4397;
font-weight: 600;
}
.promo-subtitle {
display: block;
color: #666;
font-size: 14px;
}
.signin-first {
color: #333;
font-size: 12px;
font-weight: 600;
text-align: center;
}
@media (max-width: 768px) {
.navbar-container {
width: 100%;
max-width: 100vw;
z-index: 1002;
overflow: visible;
animation: slideDown 0.5s forwards;
}
.navbar-content {
padding: 12px 20px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.9rem;
max-width: 100%;
margin: 0 auto;
}
.navbar-container.navbar-fixed {
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.nav-right .btn,
.nav-right .language-selector,
.nav-right .location {
display: none;
}
.logo img {
width: 50px;
height: 30px;
object-fit: cover;
}
.menu-list {
display: none;
}
.nav-right-top {
display: flex;
gap: 8px;
}
.search-wrapper {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
.search-container-desktop {
flex-grow: 1;
display: flex;
align-items: center;
position: relative;
}
.search-input-desktop {
flex-grow: 1;
padding: 8px 32px 8px 12px;
border-radius: 8px;
font-size: 12px;
text-wrap: wrap;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
position: relative;
}
.search-icon-desktop {
width: 16px;
height: 16px;
}
.search-button-desktop {
right: 8px;
padding: 4px;
}
.cart-icon {
position: relative;
width: 24px;
height: 24px;
}
.cart-count {
font-size: 10px;
padding: 1px 4px;
top: 4px;
right: 4px;
}
/* Animasi */
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
}
@media (max-width: 768px) {
.banner-image {
width: 32px;
height: 32px;
}
.banner-button {
padding: 6px 10px;
font-size: 10px;
}
.new-badge {
padding: 2px 8px;
font-size: 10px;
}
}
@media (max-width: 480px) {
.banner-container {
height: 50px;
width: 100%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
overflow: hidden;
padding: 0 20px;
box-sizing: border-box;
}
.banner-image {
width: 32px;
height: 32px;
}
.banner-content {
padding: 0;
}
.banner-left {
display: flex;
gap: 4px;
}
.banner-text h2 {
max-width: 80%;
font-size: 12px;
}
.banner-button {
padding: 6px 10px;
font-size: 10px;
}
.new-badge {
padding: 1px 6px;
font-size: 9px;
}
}
/* Overlay Menu Styles */
.overlay-menu {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
z-index: 9999;
display: flex;
justify-content: flex-end;
}
.overlay-menu.active {
opacity: 1;
visibility: visible;
}
.overlay-menu-content {
background-color: white;
padding: 24px;
width: 100%;
max-width: 275px;
max-height: 100%;
border-radius: 8px 0 0 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transform: translateX(100%);
transition: transform 0.3s ease;
}
.overlay-menu.active .overlay-menu-content {
transform: translateX(0);
}
.overlay-menu-content.slide-out {
transform: translateX(100%);
}
.overlay-menu-header {
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}
.overlay-menu-header h1 {
font-size: 20px;
margin: 0;
color: #333;
}
.overlay-close-button {
font-size: 20px;
background-color: transparent;
border: none;
cursor: pointer;
color: #333;
}
/* Divider Style */
.divider {
border: 0;
border-top: 1px solid #e0e0e0;
margin: 12px 0;
}
/* Menu Items Style */
.overlay-menu-items {
list-style-type: none;
padding: 10px;
margin: 0;
}
.overlay-menu-items li {
display: flex;
box-sizing: border-box;
align-items: center;
padding: 0px;
transition: background-color 0.3s ease;
}
.overlay-customer-info {
display: flex;
gap: 10px;
font-size: 14px;
}
.overlay-customer-info img.customer-image {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
}
.overlay-customer-info span {
font-size: 16px;
font-weight: bold;
margin-right: 10px;
color: #333;
}
.settings-icon {
margin-left: auto;
font-size: 16px;
color: #333;
}
.overlay-menu-items li a {
text-decoration: none;
color: #333;
font-size: 16px;
margin-left: 16px;
transition: color 0.3s ease;
}
.overlay-menu-items li a:hover {
color: #7A4397;
}
.overlay-menu-items li svg {
width: 24px;
height: 24px;
color: #333;
display: inline-block;
transition: color 0.3s ease;
stroke-width: 1.3;
}
.overlay-menu-items li:hover svg {
color: #7A4397;
}
.overlay-menu-items li:not(:last-child) {
padding-bottom: 16px;
}
.overlay-button-row {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
/* Styling untuk tombol SignIn dan Register */
.overlay-button-signin {
background-color: white;
color: #7A4397;
border: 1px solid #7A4397;
padding: 4px 12px;
cursor: pointer;
border-radius: 5px;
width: 48%;
height: 40px;
text-align: center;
font-size: 16px;
transition: background-color 0.3s ease, transform 0.3s ease;
display: inline-block;
box-sizing: border-box;
}
.overlay-button-register {
background-color: #7A4397;
color: white;
border: none;
padding: 4px 12px;
cursor: pointer;
border-radius: 5px;
width: 48%;
height: 40px;
text-align: center;
font-size: 16px;
transition: background-color 0.3s ease, transform 0.3s ease;
display: inline-block;
box-sizing: border-box;
}
/* Hover effect untuk SignIn dan Register */
.overlay-button-signin:hover,
.overlay-button-register:hover {
transform: translateY(-3px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Active state untuk SignIn dan Register */
.overlay-button-signin:active,
.overlay-button-register:active {
transform: translateY(1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.overlay-language-selector {
display: flex;
gap: 8px;
justify-content: space-between;
}
/* Button Styling */
.overlay-language-button {
display: flex;
align-items: center;
justify-content: center;
width: 50%;
gap: 8px;
text-decoration: none;
height: 100%;
background-color: transparent;
border: 1px solid #7A4397;
padding: 10px 12px;
color: #7A4397;
cursor: pointer;
border-radius: 5px;
font-size: 14px;
font-weight: 400;
transition: background-color 0.3s ease, color 0.3s ease;
}
.overlay-language-button.active {
background-color: #7A4397;
color: white;
}
/* Flag Styling */
.flag-icon {
width: 20px;
height: auto;
}
/* Hover Effect */
.overlay-language-button:hover {
background-color: #e9d5ff;
}
/* Active Button */
.overlay-language-button.active {
background-color: #7A4397;
color: white;
}
/* Register Popup */
@keyframes popupFadeIn {
0% {
opacity: 0;
transform: scale(0.9);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.register-popup-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 9999;
justify-content: center;
align-items: center;
}
.register-popup-overlay.active {
display: flex;
}
.register-popup-container {
background: white;
width: 100%;
max-width: 400px;
padding: 24px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
text-align: center;
transform: scale(0.9);
animation: popupFadeIn 0.3s ease-out forwards;
}
.register-popup-logo {
margin-top: 12px;
width: 75px;
margin-bottom: 12px;
}
.register-popup-title {
color: #333;
font-size: 24px;
margin: 12px 0;
}
.register-popup-text {
color: #333;
margin-bottom: 24px;
}
.register-popup-form {
max-width: 400px;
margin: auto;
text-align: left;
}
.register-popup-form-group {
margin-bottom: 20px;
}
.register-popup-label {
display: block;
margin-bottom: 8px;
font-size: 14px;
font-weight: bold;
color: #333;
}
.register-popup-input {
width: 100%;
padding: 10px 12px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 14px;
color: #333;
box-sizing: border-box;
}
.register-popup-input:focus {
border-color: #7A4397;
outline: none;
}
.register-popup-input::placeholder {
color: #aaa;
}
.register-popup-password-container {
display: flex;
position: relative;
align-items: center;
}
.register-popup-toggle-password {
position: absolute;
right: 12px;
background: none;
border: none;
cursor: pointer;
padding: 0;
display: flex;
align-items: center;
}
.register-popup-toggle-password-icon {
width: 18px;
height: 18px;
}
.register-popup-submit-button {
width: 100%;
font-size: 14px;
padding: 16px;
background: #7A4397;
color: #fff;
border: none;
margin-top: 20px;
border-radius: 5px;
cursor: pointer;
}
.register-popup-signup {
font-size: 12px;
margin-top: 20px;
color: #888;
}
.register-popup-signup-link {
color: #7A4397;
text-decoration: none;
}
/* Step Navigation Styling */
.buttons-signup-container {
display: flex;
justify-content: space-between;
margin-top: 20px;
transition: opacity 0.3s ease-in-out;
}
.step {
display: none;
transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.step-1,
.step-2,
.step-3 {
display: block;
}
.prev-btn {
background-color: transparent;
color: #7A4397;
border-radius: 3px;
border: 1px solid #7A4397;
padding: 8px 16px;
font-size: 14px;
cursor: pointer;
margin-top: 20px;
transition: all 0.3s ease;
}
.next-btn {
background-color: #7A4397;
color: white;
padding: 8px 16px;
border-radius: 3px;
border: 1px solid #7A4397;
font-size: 14px;
cursor: pointer;
margin-top: 20px;
transition: all 0.3s ease;
}
.prev-btn:hover {
background-color: #7A4397;
color: white;
}
.next-btn:hover {
color: white;
background-color: #5B2C6F;
}
.prev-btn:focus,
.next-btn:focus {
outline: none;
}
.error-message {
color: red;
font-size: 0.875rem;
margin-top: 4px;
display: none;
}
.register-popup-divider {
display: flex;
align-items: center;
margin: 16px 0;
color: #888;
font-size: 12px;
}
.register-popup-divider::before,
.register-popup-divider::after {
content: "";
flex: 1;
height: 1px;
background: #ddd;
margin: 0 8px;
}
.register-popup-forgot-password {
text-decoration: underline;
color: #333;
font-weight: bold;
cursor: pointer;
transition: color 0.3s ease;
}
.register-popup-forgot-password:hover {
color: #7A4397;
}
.register-popup-forgot-password:active {
color: #5B2C6F;
}
/* Login Popup */
@keyframes popupFadeIn {
0% {
opacity: 0;
transform: scale(0.9);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.login-popup-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 9999;
justify-content: center;
align-items: center;
}
.login-popup-overlay.active {
display: flex;
}
.login-popup-container {
background: white;
width: 100%;
max-width: 400px;
padding: 24px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
text-align: center;
transform: scale(0.9);
animation: popupFadeIn 0.3s ease-out forwards;
}
.login-popup-logo {
margin-top: 12px;
width: 75px;
margin-bottom: 12px;
}
.login-popup-title {
color: #333;
font-size: 24px;
margin: 12px 0;
}
.login-popup-text {
color: #333;
margin-bottom: 24px;
}
.login-popup-social-login {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 24px;
}
.login-popup-social-button {
display: flex;
justify-content: center;
align-items: center;
background: white;
width: 100%;
height: 48px;
border: 0.5px solid #e0e0e0;
border-radius: 5px;
padding: 0 16px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease;
cursor: pointer;
gap: 8px;
}
.login-popup-social-button img {
width: 24px;
height: 24px;
object-fit: contain;
}
.login-popup-social-button span {
font-size: 14px;
font-weight: 500;
color: #333;
}
.login-popup-social-button:hover {
transform: scale(1.1);
}
.login-popup-divider {
display: flex;
align-items: center;
margin: 16px 0;
color: #888;
font-size: 12px;
}
.login-popup-divider::before,
.login-popup-divider::after {
content: "";
flex: 1;
height: 1px;
background: #ddd;
margin: 0 8px;
}
.login-popup-form {
max-width: 400px;
margin: auto;
text-align: left;
}
.login-popup-form-group {
margin-bottom: 20px;
}
.login-popup-label {
display: block;
margin-bottom: 8px;
font-size: 14px;
font-weight: bold;
color: #333;
}
.login-popup-input {
width: 100%;
max-width: 100%;
padding: 10px 12px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 14px;
color: #333;
box-sizing: border-box;
}
.login-popup-input:focus {
border-color: #7A4397;
outline: none;
}
.login-popup-input::placeholder {
color: #aaa;
}
.login-popup-password-container {
display: flex;
position: relative;
align-items: center;
}
.login-popup-toggle-password {
position: absolute;
right: 12px;
background: none;
border: none;
cursor: pointer;
padding: 0;
display: flex;
align-items: center;
}
.login-popup-toggle-password-icon {
width: 18px;
height: 18px;
}
.login-popup-form-options {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 14px;
}
.login-popup-remember-me {
display: flex;
align-items: center;
}
/* Checkbox default */
.login-popup-remember-me-checkbox {
appearance: none;
width: 16px;
height: 16px;
border: 2px solid #ddd;
margin-right: 8px;
border-radius: 4px;
background-color: white;
cursor: pointer;
transition: all 0.3s ease;
}
/* Checkbox saat hover */
.login-popup-remember-me-checkbox:hover {
border-color: #7A4397;
}
.login-popup-remember-me-checkbox:checked {
background-color: #7A4397;
/* Warna utama */
border-color: #7A4397;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.login-popup-remember-me-checkbox:checked::after {
content: '✓';
font-size: 12px;
color: white;
position: absolute;
}
.login-popup-forgot-password {
text-decoration: underline;
color: #333;
font-weight: bold;
cursor: pointer;
transition: color 0.3s ease;
}
.login-popup-forgot-password:hover {
color: #7A4397;
}
.login-popup-forgot-password:active {
color: #5B2C6F;
}
.login-popup-submit-button {
width: 100%;
font-size: 14px;
padding: 16px;
background: #7A4397;
color: #fff;
border: none;
margin-top: 20px;
border-radius: 5px;
cursor: pointer;
}
.login-popup-signup {
font-size: 12px;
margin-top: 20px;
color: #888;
}
.login-popup-signup-link {
color: #7A4397;
text-decoration: none;
}
.error-message {
color: red;
font-size: 0.875rem;
margin-top: 4px;
display: none;
}
/* Customer Name */
.customer-name-nav {
width: 100px;
max-width: 135px;
height: 100%;
display: inline-block;
justify-content: center;
align-items: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: white;
font-weight: bold;
}
/* Responsive Adjustment */
@media (max-width: 768px) {
.customer-dropdown {
display: none;
}
}
/* Dropdown Container */
.customer-dropdown {
position: relative;
cursor: pointer;
}
/* Toggle Button */
.customer-dropdown-toggle {
max-width: 150px;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
text-decoration: none;
padding: 0;
transition: color 0.3s ease;
box-sizing: border-box;
}
.customer-dropdown-toggle:hover {
color: #c9a6df;
}
/* Nama Pelanggan */
.customer-name {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
text-align: center;
}
/* Dropdown Menu */
.customer-dropdown-menu {
position: absolute;
top: 170%;
background: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
min-width: 150px;
opacity: 0;
z-index: 999;
visibility: hidden;
transform: translateY(10px);
transition: all 0.3s ease;
}
.customer-dropdown:hover .customer-dropdown-menu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
/* Dropdown Items */
.customer-dropdown-item {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 16px;
text-decoration: none;
color: #333;
transition: background-color 0.3s ease;
font-size: 14px;
}
.customer-dropdown-item:first-child {
border-radius: 8px 8px 0 0;
}
.customer-dropdown-item:last-child {
border-radius: 0 0 8px 8px;
}
.customer-dropdown-item:hover {
background-color: #7A4397;
color: white;
}
/* Add a small arrow indicator for customer dropdown */
.customer-dropdown-toggle::after {
content: '';
display: inline-block;
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid white;
margin-left: 8px;
transition: transform 0.3s ease;
}
/* Rotate the arrow when the dropdown is open */
.customer-dropdown:hover .customer-dropdown-toggle::after {
transform: rotate(180deg);
}
/* Styling untuk keranjang kosong */
.cart-empty {
padding: 20px;
text-align: center;
background-color: #f9f9f9;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
color: #555;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.cart-empty-header {
font-size: 16px;
font-weight: bold;
color: #7A4397;
margin-bottom: 8px;
}
.cart-empty-text {
font-size: 12px;
color: #888;
margin-bottom: 16px;
}
.cart-empty-button {
display: inline-block;
background-color: #7A4397;
color: white;
margin-top: 16px;
margin-bottom: 16px;
padding: 10px 18px;
font-size: 12px;
border-radius: 5px;
text-decoration: none;
transition: background-color 0.3s ease;
}
.cart-empty-button:hover {
background-color: #5d2b7a;
}
.cart-empty-button:hover {
background-color: #5d2b7a;
}
/* Container utama dropdown */
.cart-icon-container {
position: relative;
cursor: pointer;
padding: 8px;
}
/* Dropdown Cart */
.cart-dropdown {
position: absolute;
top: 100%;
right: 0;
background: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
min-width: 400px;
opacity: 0;
z-index: 999;
visibility: hidden;
transform: translateY(10px);
transition: all 0.3s ease;
overflow: hidden;
}
.cart-icon-container:hover .cart-dropdown {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.cart-dropdown .cart-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background-color: #f9f9f9;
border-bottom: 1px solid #e0e0e0;
}
.cart-dropdown .cart-header .cart-title {
font-size: 14px;
font-weight: bold;
color: #333;
}
.cart-dropdown .cart-header .view-cart-button {
font-size: 14px;
color: #7A4397;
text-decoration: none;
}
.cart-dropdown .cart-header .view-cart-button:hover {
color: #5d2b7a;
}
.cart-dropdown ul {
list-style: none;
margin: 0;
padding: 0;
}
.cart-dropdown ul li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
font-size: 14px;
color: #555;
border-bottom: 1px solid #e0e0e0;
}
.cart-dropdown ul li:last-child {
border-bottom: none;
}
.cart-dropdown .cart-footer {
padding: 12px 16px;
background: #f9f9f9;
text-align: right;
}
.cart-dropdown .cart-footer .checkout-button {
display: inline-block;
background: #7A4397;
color: white;
font-size: 14px;
padding: 8px 16px;
border-radius: 4px;
text-decoration: none;
transition: background-color 0.3s ease;
}
.cart-dropdown .cart-footer .checkout-button:hover {
background-color: #5d2b7a;
}
#cart-items {
max-height: 300px;
overflow-y: auto;
}
.cart-dropdown .subtotal {
display: flex;
justify-content: space-between;
font-size: 14px;
font-weight: 600;
color: #333;
margin-bottom: 8px;
}
.cart-dropdown ul li .remove-item {
cursor: pointer;
color: #ff5c5c;
font-size: 16px;
margin-left: 8px;
transition: color 0.3s ease;
}
.cart-dropdown ul li .remove-item:hover {
color: #d93838;
}
@media (max-width: 768px) {
.cart-dropdown {
display: none;
}
}
/* @media (max-width: 768px) {
.search-results {
width: 95vw;
max-width: none;
max-height: 350px;
border-radius: 8px;
}
.search-result-item {
padding: 10px 12px;
}
.search-result-header {
font-weight: 400;
}
.search-result-image {
width: 40px;
height: 40px;
}
.search-result-title {
font-size: 12px;
}
.search-result-subtitle {
font-size: 10px;
}
}
/* Dropdown Results */
.search-results-desktop {
display: none;
position: absolute;
top: 100%;
left: 50%;
width: 800px;
max-width: 800px;
max-height: 400px;
overflow-y: auto;
background: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
z-index: 1999;
visibility: hidden;
opacity: 0;
transform: translateX(-50%) translateY(10px);
transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
margin-top: 8px;
}
.search-results-desktop.show {
display: block;
visibility: visible;
opacity: 1;
transform: translateX(-50%) translateY(0);
}
.search-result-section-desktop{
padding: 10px 0;
border-bottom: 1px solid #e9ecef;
}
.search-result-section:last-child {
border-bottom: none;
}
.search-result-section-desktop-title {
padding: 0 15px 10px;
font-weight: 600;
color: #555;
font-size: 0.9em;
}
.search-result-item-desktop {
padding: 10px 15px;
cursor: pointer;
transition: background-color 0.2s;
}
.search-result-item-desktop:hover {
background-color: #f8f9fa;
}
.search-result-item-desktop:last-child {
border-bottom: none;
margin-bottom: 0;
}
.search-result-content-desktop {
display: flex;
align-items: center;
gap:15px;
}
.search-result-image-desktop {
width: 50px;
height: 50px;
object-fit: cover;
border-radius: 4px;
margin-right: 15px;
}
.search-result-text-desktop {
display: flex;
flex-direction: column;
}
.search-result-desktop-title {
font-weight: 500;
margin-bottom: 5px;
}
.search-result-desktop-subtitle {
font-size: 0.85em;
color: #6c757d;
}
.search-result-desktop-header {
padding: 15px;
background-color: #f8f9fa;
font-weight: 600;
border-bottom: 1px solid #e9ecef;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.product-image-wrapper {
position: relative;
display: inline-block;
}
.search-discount-flag:hover,
.search-discount-badge:hover {
animation: pulse 0.6s ease-in-out;
}
.error-message {
color: #dc3545;
background-color: #f8d7da;
border: 1px solid #f5c6cb;
padding: 10px;
margin-bottom: 15px;
border-radius: 4px;
font-size: 14px;
width: 100%;
box-sizing: border-box;
text-align: left;
}
.alert {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
}
.alert-success {
color: #155724;
background-color: #d4edda;
border-color: #c3e6cb;
}
.alert-danger {
color: #721c24;
background-color: #f8d7da;
border-color: #f5c6cb;
}
.error {
color: #dc3545;
font-size: 0.875rem;
margin-top: 0.25rem;
display: block;
}
.is-invalid {
border-color: #dc3545;
}
.disabled-menu {
color: #ccc;
cursor: not-allowed;
opacity: 0.6;
pointer-events: none;
}
/* Notyf - Perbaikan padding */
.custom-notification,
.notyf__toast--success,
.notyf__toast--error,
.notyf__toast--upper {
background-color: #2e3137 !important;
border-radius: 4px !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
padding: 6px 10px !important;
/* Mengurangi padding vertical dan horizontal */
width: auto !important;
min-width: 200px !important;
max-width: 80% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
/* Kebalikan warna latar belakang yang diatur oleh Notyf */
.notyf__toast[style*="background-color"] {
background-color: #2e3137 !important;
}
.notyf__wrapper {
padding: 0 !important;
}
.notyf__message {
color: white !important;
font-size: 14px !important;
text-align: center !important;
padding: 0 !important;
max-width: 100% !important;
word-wrap: break-word !important;
}
.notyf {
top: 80px !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
justify-content: flex-start !important;
}
.notyf__ripple {
background-color: transparent !important;
}
.fade-out {
opacity: 0;
transition: opacity 0.5s ease-out;
}