.cart-drawer { width: 420px; max-width: 100vw; border-left: 1px solid var(--border-soft); background-color: #fff; display: flex; flex-direction: column; } @media (max-width: 575.98px) { .cart-drawer { width: 100vw; } } .cart-drawer-header { background-color: var(--brand-primary); color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.06); flex: 0 0 auto; } .cart-drawer-header .offcanvas-title { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; margin: 0; } .cart-drawer-header .offcanvas-title i { font-size: 1.15rem; color: #fff; } .cart-drawer-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-sm); background-color: #fff; color: var(--brand-primary); font-size: 0.72rem; font-weight: 700; letter-spacing: 0; text-transform: none; } .cart-drawer .btn-close-icon { background: transparent; border: none; color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.2s ease, color 0.2s ease; } .cart-drawer .btn-close-icon:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; } .cart-drawer-body { padding: 0; flex: 1 1 auto; overflow-y: auto; } .cart-items { list-style: none; margin: 0; padding: 0; } .cart-group-head-mini { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background-color: var(--surface-1); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); } .cart-group-head-mini:first-child { border-top: 0; } .cart-group-head-mini:not(:first-child) { margin-top: 10px; } .cart-group-flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px var(--border-soft); } .cart-group-flag--none { display: inline-flex; align-items: center; justify-content: center; background-color: #fff; color: var(--brand-secondary); font-size: 0.7rem; } .cart-group-mini-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; } .cart-group-mini-name { font-size: 0.8rem; font-weight: 700; color: var(--brand-secondary); } .cart-group-mini-meta { font-size: 0.7rem; color: var(--text-muted); } .cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); align-items: start; } .cart-item-image { width: 64px; height: 64px; border-radius: 8px; background-color: var(--surface-1); border: 1px solid var(--border-soft); object-fit: cover; } .cart-item-info { min-width: 0; } .cart-item-brand { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 2px; } .cart-item-title { font-size: 0.85rem; font-weight: 500; color: var(--brand-secondary); line-height: 1.35; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .cart-item-title a { color: inherit; text-decoration: none; } .cart-item-title a:hover { color: var(--brand-secondary-2); } .cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; background-color: #fff; } .cart-qty button { width: 26px; height: 26px; border: none; background: transparent; color: var(--brand-secondary); font-size: 0.95rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.15s ease; } .cart-qty button:hover { background-color: var(--surface-1); } .cart-qty button:disabled { opacity: 0.4; cursor: not-allowed; } .cart-qty-value { min-width: 28px; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--brand-secondary); } .cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; } .cart-item-price { font-weight: 700; color: var(--brand-secondary); font-size: 0.95rem; } .cart-item-remove { border: none; background: transparent; color: var(--text-muted); font-size: 0.95rem; padding: 2px 4px; border-radius: 4px; cursor: pointer; transition: color 0.15s ease, background-color 0.15s ease; } .cart-item-remove:hover { color: var(--brand-accent); background-color: rgba(var(--brand-accent-rgb), 0.08); } .cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; color: var(--text-muted); } .cart-empty i { font-size: 3rem; color: var(--border-soft); margin-bottom: 14px; } .cart-empty p { font-size: 0.95rem; margin: 0 0 16px; color: var(--brand-secondary); font-weight: 500; } .cart-empty .btn-continue { border: 1px solid var(--brand-secondary); background: transparent; color: var(--brand-secondary); padding: 8px 18px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; transition: background-color 0.2s ease, color 0.2s ease; } .cart-empty .btn-continue:hover { background-color: var(--brand-secondary); color: #fff; } .cart-drawer-footer { padding: 16px 20px 20px; background-color: #fff; border-top: 1px solid var(--border-soft); flex: 0 0 auto; } .cart-summary-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 0.88rem; color: var(--text-muted); } .cart-summary-row.total { font-size: 1rem; color: var(--brand-secondary); font-weight: 700; border-top: 1px solid var(--border-soft); margin-top: 6px; padding-top: 12px; } .cart-summary-row .cart-summary-amount { color: var(--brand-secondary); font-weight: 600; } .cart-summary-row.total .cart-summary-amount { font-weight: 700; font-size: 1.1rem; } .cart-shipping-note { font-size: 0.72rem; color: var(--text-muted); margin: 4px 0 12px; text-align: center; font-style: italic; } .btn-checkout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: var(--radius-sm); background-color: var(--brand-primary); color: #fff; border: none; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; margin-top: 12px; transition: background-color 0.2s ease, transform 0.1s ease; } .btn-checkout:hover { background-color: var(--brand-secondary); color: #fff; } .btn-checkout:active { transform: translateY(1px); } .cart-view-link { display: block; text-align: center; margin-top: 10px; font-size: 0.82rem; color: var(--text-muted); text-decoration: none; font-weight: 500; } .cart-view-link:hover { color: var(--brand-secondary); text-decoration: underline; } @keyframes cart-badge-bounce { 0% { transform: scale(1); } 35% { transform: scale(1.4); } 70% { transform: scale(0.9); } 100% { transform: scale(1); } } [data-cart-count].is-bumping { animation: cart-badge-bounce 0.45s ease-out; } .search-drawer { width: 460px; max-width: 100vw; background-color: #fff; display: flex; flex-direction: column; } @media (max-width: 575.98px) { .search-drawer { width: 100vw; } } .search-drawer-header { background-color: var(--brand-primary); padding: 14px 14px; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; } .search-drawer-input-wrap { position: relative; flex: 1 1 auto; min-width: 0; } .search-drawer-input-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa3ad; font-size: 0.95rem; pointer-events: none; } .search-drawer-input { width: 100%; border: none; background-color: #fff; border-radius: var(--radius-md); padding: 9px 36px 9px 38px; font-size: 0.9rem; color: var(--brand-secondary); font-family: inherit; box-shadow: 0 1px 3px rgba(15, 23, 31, 0.08); } .search-drawer-input::placeholder { color: #9aa3ad; } .search-drawer-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28), 0 1px 3px rgba(15, 23, 31, 0.08); } .search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; padding: 0; border: none; border-radius: 50%; background-color: var(--surface-2); color: var(--text-muted); font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; } .search-clear:hover { background-color: var(--brand-secondary); color: #fff; } .search-drawer-close { flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--radius-md); background: transparent; color: rgba(255, 255, 255, 0.85); border: none; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; transition: background-color 0.2s ease, color 0.2s ease; } .search-drawer-close:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; } .search-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 20px; } .search-section { margin-bottom: 24px; } .search-section:last-child { margin-bottom: 0; } .search-section h6, .search-results-heading { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 12px; } .search-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; } .search-section-head h6 { margin: 0; } .search-clear-recent { background: none; border: none; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); cursor: pointer; padding: 2px 4px; } .search-clear-recent:hover { color: var(--brand-primary); } .search-chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; } .search-chip { display: inline-flex; align-items: center; gap: 6px; background-color: var(--surface-1); border: 1px solid var(--border-soft); color: var(--brand-secondary); padding: 7px 14px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; } .search-chip i { font-size: 0.85rem; color: var(--text-muted); } .search-chip:hover { background-color: var(--brand-primary); border-color: var(--brand-primary); color: #fff; } .search-chip:hover i { color: #fff; } .search-categories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .search-categories a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 8px; text-decoration: none; color: var(--brand-secondary); font-size: 0.85rem; font-weight: 500; background-color: #fff; transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease; } .search-categories a:hover { background-color: var(--surface-1); border-color: var(--brand-secondary-2); color: var(--brand-secondary); } .search-categories a:active { transform: translateY(1px); } .search-categories a i { font-size: 1.1rem; color: var(--brand-secondary-2); } .search-results-list { list-style: none; margin: 0; padding: 0; } .search-result-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 8px; border-bottom: 1px solid var(--border-soft); align-items: center; cursor: pointer; text-decoration: none; color: inherit; transition: background-color 0.15s ease; } .search-result-item:hover, .search-result-item:focus { background-color: var(--surface-1); color: inherit; text-decoration: none; outline: none; } .search-result-item:last-child { border-bottom: none; } .search-result-image-placeholder, .search-result-image-brand { display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--text-muted); } .search-result-brand-row .search-result-price { font-size: 1rem; color: var(--text-muted); } .search-result-loading { display: flex; align-items: center; gap: 8px; padding: 16px 4px; color: var(--text-muted); font-size: 0.85rem; } .search-result-view-all { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; margin-top: 4px; border-radius: 8px; background-color: var(--surface-1); color: var(--brand-secondary); font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; } .search-result-view-all:hover, .search-result-view-all:focus { background-color: var(--brand-primary, #111); color: #fff; text-decoration: none; } .search-result-view-all strong { font-weight: 600; } .search-result-image { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background-color: var(--surface-1); border: 1px solid var(--border-soft); } .search-result-info { min-width: 0; } .search-result-brand { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; } .search-result-title { font-size: 0.85rem; font-weight: 500; color: var(--brand-secondary); margin: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; } .search-result-title mark { background: rgba(42, 76, 102, 0.14); color: var(--brand-secondary); padding: 0 2px; border-radius: 2px; } .search-result-price { font-weight: 700; color: var(--brand-secondary); font-size: 0.9rem; white-space: nowrap; } .search-empty { text-align: center; padding: 50px 20px; color: var(--text-muted); margin: 0; } .search-empty i { display: block; font-size: 2.4rem; color: var(--border-soft); margin-bottom: 12px; } .search-empty span { color: var(--brand-secondary); font-weight: 600; } .notif-drawer { width: 400px; max-width: 100vw; border-left: 1px solid var(--border-soft); background-color: #fff; display: flex; flex-direction: column; } @media (max-width: 575.98px) { .notif-drawer { width: 100vw; } } .notif-drawer-header { background-color: var(--brand-primary); color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.06); flex: 0 0 auto; gap: 8px; } .notif-drawer-header .offcanvas-title { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; margin: 0; } .notif-drawer-header .offcanvas-title i { font-size: 1.1rem; color: #fff; } .notif-drawer-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-sm); background-color: #fff; color: var(--brand-primary); font-size: 0.72rem; font-weight: 700; letter-spacing: 0; text-transform: none; } .notif-drawer-count[hidden] { display: none; } .notif-drawer-tools { display: inline-flex; align-items: center; gap: 6px; } .notif-drawer .btn-close-icon { background: transparent; border: none; color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.2s ease, color 0.2s ease; } .notif-drawer .btn-close-icon:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; } .notif-drawer-mark { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background-color: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; } .notif-drawer-mark i { font-size: 0.95rem; } .notif-drawer-mark:hover { background-color: #fff; border-color: #fff; color: var(--brand-primary); } .notif-drawer-mark[hidden] { display: none; } @media (max-width: 379.98px) { .notif-drawer-mark span { display: none; } .notif-drawer-mark { width: 32px; padding: 0; justify-content: center; } } .notif-drawer-tabs { display: flex; background-color: #fff; border-bottom: 1px solid var(--border-soft); flex: 0 0 auto; } .notif-tab { flex: 1 1 0; background: transparent; border: none; padding: 12px 14px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; position: relative; transition: color 0.2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .notif-tab:hover { color: var(--brand-secondary); } .notif-tab.is-active { color: var(--brand-secondary); } .notif-tab.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background-color: var(--brand-primary); border-radius: 2px 2px 0 0; } .notif-tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background-color: var(--surface-2); color: var(--brand-secondary); font-size: 0.7rem; font-weight: 700; } .notif-tab.is-active .notif-tab-count { background-color: var(--brand-primary); color: #fff; } .notif-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 0; } .notif-list { list-style: none; margin: 0; padding: 0; } .notif-item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); position: relative; transition: background-color 0.2s ease; align-items: start; cursor: pointer; } .notif-item:hover { background-color: rgba(0, 0, 0, 0.025); } .notif-item.is-unread { background-color: rgba(42, 76, 102, 0.06); } .notif-item.is-unread::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background-color: var(--brand-secondary-2); } .notif-new { display: inline-flex; align-items: center; height: 16px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background-color: var(--brand-secondary-2); color: #fff; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; position: relative; top: -1px; } .notif-item:not(.is-unread) .notif-new, .notif-item:not(.is-unread) .notif-mark-read, .notif-item.is-unread .notif-read-state { display: none; } .notif-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; } .notif-mark-read { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-soft); background-color: #fff; color: var(--brand-secondary); font-size: 0.72rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; } .notif-mark-read i { font-size: 0.85rem; } .notif-mark-read:hover { background-color: var(--brand-primary); border-color: var(--brand-primary); color: #fff; } .notif-read-state { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); opacity: 0.7; } .notif-read-state i { font-size: 0.9rem; } .notif-icon { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; background-color: var(--surface-2); color: var(--brand-secondary); } .notif-icon.tone-success { background-color: rgba(34, 139, 84, 0.12); color: #228b54; } .notif-icon.tone-info { background-color: rgba(33, 102, 173, 0.12); color: #2166ad; } .notif-icon.tone-warning { background-color: rgba(217, 138, 35, 0.14); color: #c47008; } .notif-content { min-width: 0; } .notif-title { font-size: 0.9rem; font-weight: 600; color: var(--brand-secondary); margin: 0 0 2px; line-height: 1.3; } .notif-text { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 4px; line-height: 1.45; } .notif-time { font-size: 0.72rem; color: var(--text-muted); } .notif-empty { text-align: center; padding: 60px 24px; color: var(--text-muted); } .notif-empty i { font-size: 3rem; color: var(--border-strong, #d8dde3); display: block; margin-bottom: 14px; } .notif-empty h6 { color: var(--brand-secondary); font-size: 1rem; font-weight: 600; margin: 0 0 4px; } .notif-empty p { font-size: 0.85rem; margin: 0; } .notif-drawer-footer { flex: 0 0 auto; padding: 14px 18px; border-top: 1px solid var(--border-soft); background-color: #fafbfc; } .notif-view-all { display: block; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--brand-secondary); text-decoration: none; padding: 8px; border-radius: var(--radius-md); transition: background-color 0.2s ease, color 0.2s ease; } .notif-view-all:hover { background-color: rgba(0, 0, 0, 0.04); color: var(--brand-primary); }