/* ============================================================
   Sun Cosmetic — Main Stylesheet  (Light Theme + Dark Mode)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --color-bg:        #f3f6fb;
    --color-surface:   #ffffff;
    --color-surface-2: #f8fafc;
    --color-border:    #dde3ee;

    --color-primary:   #b63b64;
    --color-primary-h: #963051;
    --color-primary-bg:#fff0f5;
    --color-accent:    #c78195;
    --color-red:       #dc2626;
    --color-green:     #059669;
    --color-amber:     #d97706;
    --color-sky:       #0284c7;

    --color-text:      #1a1f36;
    --color-text-2:    #4a5568;
    --color-text-3:    #a0aec0;

    --grad-primary:    linear-gradient(135deg,#b63b64 0%,#c78195 100%);
    --grad-warm:       linear-gradient(135deg,#f59e0b 0%,#ef4444 100%);
    --grad-hero-dark:  linear-gradient(135deg,rgba(15,23,42,.85) 0%,rgba(30,58,138,.55) 100%);

    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --shadow-xs:  0 1px 3px rgba(0,0,0,.06);
    --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
    --shadow-md:  0 6px 20px rgba(0,0,0,.10);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.13);
    --shadow-xl:  0 20px 60px rgba(0,0,0,.16);

    --nav-h: 68px;
}

/* Dark mode overrides */
html.dark {
    --color-bg:        #0c1120;
    --color-surface:   #141c30;
    --color-surface-2: #1a2540;
    --color-border:    rgba(255,255,255,.09);
    --color-text:      #e8edf8;
    --color-text-2:    #8a96b8;
    --color-text-3:    #6d7fa8;
    --color-primary-bg:rgba(182,59,100,.15);
    --shadow-xs:  0 1px 4px rgba(0,0,0,.4);
    --shadow-sm:  0 2px 10px rgba(0,0,0,.5);
    --shadow-md:  0 6px 24px rgba(0,0,0,.6);
    --shadow-lg:  0 12px 44px rgba(0,0,0,.7);
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background .3s, color .3s;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Exo 2', 'Inter', sans-serif;
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.25;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-h); }

img { max-width: 100%; height: auto; display: block; }

button { cursor: pointer; font-family: inherit; }

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: #c7d0e8; border-radius: 4px; }
html.dark ::-webkit-scrollbar-thumb { background: #2a3558; }

::selection { background: var(--color-primary); color: #fff; }

/* ---------- Utilities ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.text-primary  { color: var(--color-primary)  !important; }
.text-danger   { color: var(--color-red)       !important; }
.text-success  { color: var(--color-green)     !important; }
.text-warning  { color: var(--color-amber)     !important; }
.text-muted    { color: var(--color-text-3)    !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--color-primary);
    color: rgba(255,255,255,.9);
    font-size: 12.5px;
    padding: 7px 0;
}
.top-bar a, .top-bar .top-link {
    color: rgba(255,255,255,.85);
    transition: color .2s;
}
.top-bar a:hover { color: #fff; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-main {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--nav-h);
    transition: background .3s, border-color .3s;
}

.navbar-row {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    gap: 16px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: inherit;
}
.logo-img{
    height:65px;
    width:auto;
    display:block;
}

@media (max-width:768px){

    .navbar-row{
        display:flex;
        align-items:center;
        flex-wrap:wrap;
    }

    .logo-img{
        height:42px;
    }

    .nav-search-wrap{
        order:99;
        width:100%;
        max-width:100%;
        margin-top:8px;
    }
}
.nav-logo:hover { color: inherit; }

.nav-logo-icon {
    width: 38px; height: 38px;
    background: var(--grad-primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    flex-shrink: 0;
}
.logo-brand {
    font-family: 'Rajdhani', 'Exo 2', sans-serif;
    font-size: 22px; font-weight: 700;
    color: var(--color-text);
    letter-spacing: .5px;
    display: none;
}
@media (min-width: 640px) { .logo-brand { display: block; } }
.logo-accent { color: var(--color-primary); }

/* Search bar */
.nav-search-wrap {
    flex: 1;
    max-width: 520px;
    position: relative;
}
.nav-search-form {
    display: flex;
    background: var(--color-surface-2);
    border: 1.5px solid var(--color-border);
    border-radius: 40px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.nav-search-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(182,59,100,.12);
    background: var(--color-surface);
}
.nav-search-form input {
    flex: 1; border: none; background: transparent;
    padding: 10px 18px; font-size: 14px;
    color: var(--color-text); outline: none;
}
.nav-search-form input::placeholder { color: var(--color-text-3); }
.nav-search-form button {
    width: 44px; flex-shrink: 0;
    background: var(--grad-primary);
    border: none; color: #fff;
    font-size: 14px; transition: opacity .2s;
}
.nav-search-form button:hover { opacity: .9; }

.nav-search-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 380px; overflow-y: auto;
    display: none; z-index: 300;
}
.nav-search-dropdown.show { display: block; }

.search-result-item {
    display: flex; gap: 12px; padding: 12px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer; transition: background .15s;
    align-items: center;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--color-surface-2); }
.search-result-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.search-result-item .info .name { font-size: 13px; font-weight: 600; color: var(--color-text); }
.search-result-item .info .price { font-size: 13px; color: var(--color-red); font-weight: 700; }

/* Right nav */
.nav-right {
    display: flex; align-items: center;
    gap: 10px; flex-shrink: 0; margin-left: auto;
}

/* Nav item with hover dropdown */
.nav-item { position: relative; }

.nav-link-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 8px 12px;
    background: transparent; border: none;
    color: var(--color-text-2);
    font-size: 14px; font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.nav-link-btn i.fa-chevron-down { font-size: 10px; transition: transform .2s; }
.nav-link-btn:hover { background: var(--color-surface-2); color: var(--color-primary); }
.nav-item:hover > .nav-link-btn { background: var(--color-surface-2); color: var(--color-primary); }
.nav-item:hover > .nav-link-btn i.fa-chevron-down { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute; top: 100%; left: 0;
    min-width: 210px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px 8px 8px;
    padding-top: 14px;   /* visual gap without breaking hover */
    z-index: 500;
    opacity: 0; visibility: hidden;
    transform: translateY(4px);
    transition: opacity .2s, transform .2s, visibility .2s;
    pointer-events: none;
}
/* Transparent bridge so cursor can move between trigger and dropdown */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 14px;
    background: transparent;
}
.nav-item:hover > .nav-dropdown {
    opacity: 1; visibility: visible;
    transform: translateY(0); pointer-events: auto;
}
.nav-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    color: var(--color-text-2); font-size: 14px; font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background .15s, color .15s;
}
.nav-dropdown a:hover { background: var(--color-primary-bg); color: var(--color-primary); }
.nav-dropdown a i { font-size: 13px; width: 18px; text-align: center; color: var(--color-text-3); }
.nav-dropdown a:hover i { color: var(--color-primary); }
.nav-dropdown hr { margin: 6px 0; border: none; border-top: 1px solid var(--color-border); }
.nav-dropdown .nav-dd-header {
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--color-border); margin-bottom: 4px;
}
.nav-dropdown .nav-dd-header strong { display: block; font-size: 14px; color: var(--color-text); }
.nav-dropdown .nav-dd-header small { display: block; font-size: 12px; color: var(--color-text-3); margin-top: 2px; }
.nav-dropdown .text-danger { color: var(--color-red) !important; }
.nav-dropdown .text-danger:hover { background: rgba(220,38,38,.07); color: var(--color-red) !important; }
.nav-user-dropdown { min-width: 220px; }
/* Sửa lỗi menu tài khoản bị tràn mép phải điện thoại */
@media (max-width: 768px) {
    /* BƯỚC 1: Ép thẻ cha ngừng cô lập hộp thoại (Bỏ relative để hộp thoại nhảy lề theo khung lớn) */
    .nav-item {
        position: static !important;
    }

    /* BƯỚC 2: Đoạn code của bạn — chỉnh lại right về 0 hoặc 8px */
    div.nav-dropdown.nav-user-dropdown {
        position: absolute !important;
        top: 100% !important;
        right: 5px !important;          /* Sửa thành 0 (hoặc 8px nếu muốn hở nhẹ một chút cho tinh tế) */
        left: auto !important;        
        transform: none !important;    
        min-width: 200px !important;   
        box-sizing: border-box !important;
    }
}
/* Plain link */
.nav-link-plain {
    display: flex; align-items: center;
    padding: 8px 12px;
    color: var(--color-text-2); font-size: 14px; font-weight: 500;
    border-radius: var(--radius-sm); white-space: nowrap;
    transition: background .2s, color .2s;
}
.nav-link-plain:hover { background: var(--color-surface-2); color: var(--color-primary); }

/* Icon button — bare icon only, no border, no background */
.nav-icon-btn {
    position: relative; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 18px;
    transition: color .2s, opacity .2s;
    flex-shrink: 0;
    text-decoration: none;
}
.nav-icon-btn:hover        { background: transparent; color: var(--color-primary); opacity: .8; }
.nav-icon-btn:focus        { outline: none; box-shadow: none; }
.nav-icon-btn:active       { opacity: .65; }

/* Extra right clearance so the -7px badge doesn't overlap next item */
.nav-icon-btn.cart-toggle  { margin-right: 8px; }

.nav-badge {
    position: absolute; top: -7px; right: -7px;
    min-width: 18px; height: 18px;
    background: var(--color-red); color: #fff;
    border-radius: 9px; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border: 2px solid var(--color-surface);
}

/* ── Notification Bell ── */
.nav-notif-wrap {
    position: relative;
}
.nav-notif-badge {
    background: #ef4444;
}
.nav-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: -8px;
    width: 340px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    z-index: 2000;
    overflow: hidden;
}
.nav-notif-dropdown.open { display: block; }

.notif-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}
.notif-read-all {
    background: none; border: none; cursor: pointer;
    color: var(--color-primary); font-size: 12px;
    padding: 0;
}
.notif-read-all:hover { text-decoration: underline; }

.notif-list {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
}
/* Sửa lỗi hiển thị hộp thông báo trên điện thoại */
@media (max-width: 768px) {
    /* Đảm bảo khung bọc cái chuông làm tâm điểm */
    .nav-notif-wrap {
        position: relative !important;
    }

    /* Ép hộp thông báo căn theo lề phải của cái chuông */
    .nav-notif-dropdown {
        position: absolute !important;
        left: auto !important;          /* Hủy bỏ hoàn toàn căn lề trái cũ */
        right: -180px !important;        /* Đẩy hộp thoại về phía phải (điều chỉnh số này nếu muốn dịch qua lại) */
        width: 300px !important;        /* Thu gọn nhẹ chiều rộng thành 300px để vừa vặn mọi màn hình dọc */
        max-width: 85vw !important;     /* Giới hạn an toàn, không vượt quá 85% chiều rộng màn hình */
        transform: none !important;     /* Xóa bỏ các lệnh dịch chuyển kéo ngang cũ */
    }
}
.notif-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: background .15s;
    cursor: pointer;
}
.notif-item:hover { background: var(--color-hover); }
.notif-item--unread { background: color-mix(in srgb, var(--color-primary) 6%, transparent); }
.notif-item--read { opacity: .7; }

.notif-icon {
    width: 34px; height: 34px; flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    margin-top: 1px;
}
.notif-icon--reply   { background: #dcfce7; color: #16a34a; }
.notif-icon--voucher { background: #fef9c3; color: #ca8a04; }
.notif-icon--order   { background: #dbeafe; color: #b63b64; }
.notif-icon--info    { background: #f1f5f9; color: #64748b; }

.notif-body { flex: 1; min-width: 0; }
.notif-title {
    font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-content {
    font-size: 12px; color: var(--color-muted);
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    margin-top: 2px;
}
.notif-time {
    font-size: 11px; color: var(--color-primary);
    margin-top: 4px;
}
.notif-empty {
    text-align: center; padding: 32px 16px;
    color: var(--color-muted); font-size: 13px;
}
.notif-empty i { font-size: 28px; margin-bottom: 8px; display: block; opacity: .35; }

/* Account links (not logged in) */
.nav-account-link {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 13px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    border: 1.5px solid rgba(182,59,100,.2);
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.nav-account-link:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Register button — solid filled */
.nav-account-link--reg {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
}
.nav-account-link--reg:hover { opacity: .88; color: #fff; }

/* User avatar */
.nav-user-btn { padding: 5px 10px 5px 5px; }
.nav-user-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    overflow: hidden; flex-shrink: 0;
}
.nav-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Theme toggle — bare icon, fully transparent, auto-contrast color */
.nav-theme-btn {
    background: transparent;
    border: none;
    outline: none;
    padding: 4px;
    color: var(--color-text);
    font-size: 18px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color .2s, opacity .2s;
    line-height: 1;
}
.nav-theme-btn:hover  { background: transparent; color: var(--color-primary); opacity: .8; }
.nav-theme-btn:focus  { outline: none; }
.nav-theme-btn:active { opacity: .65; }
html.dark .nav-theme-btn        { color: var(--color-text); background: transparent; }
html.dark .nav-theme-btn:hover  { color: #fbbf24; opacity: .85; }

/* Mobile toggle */
.nav-mobile-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    border-radius: var(--radius-sm);
    color: var(--color-text); font-size: 18px;
    transition: color .2s, opacity .2s;
}
.nav-mobile-btn:hover { background: transparent; color: var(--color-primary); opacity: .8; }
.nav-mobile-btn:focus { outline: none; }

/* Mobile drawer */
.mobile-drawer {
    position: fixed; top: 0; left: -290px;
    width: 270px; height: 100dvh;
    background: var(--color-surface);
    z-index: 2000; overflow-y: auto;
    transition: left .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 20px rgba(0,0,0,.12);
}
.mobile-drawer.open { left: 0; }
.mobile-overlay {
    position: fixed; inset: 0; z-index: 1999;
    background: rgba(0,0,0,.4);
    opacity: 0; visibility: hidden; transition: all .3s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

.drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 20px; border-bottom: 1px solid var(--color-border);
}
.drawer-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-text-2);
    display: flex; align-items: center; justify-content: center;
}
.drawer-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px;
    color: var(--color-text-2); font-size: 15px; font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    transition: background .15s, color .15s;
}
.drawer-nav a:hover { background: var(--color-primary-bg); color: var(--color-primary); }
.drawer-nav a i { width: 20px; text-align: center; }
.drawer-group-label {
    display: block; padding: 10px 20px 4px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--color-text-3);
}
.drawer-group a { padding-left: 40px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; justify-content: center; gap: 8px;
    padding: 10px 8px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; transition: all .25s;
    line-height: 1; text-decoration: none;
}
.btn-primary {
    background: var(--grad-primary); color: #fff;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(182,59,100,.35); color: #fff; }

.btn-outline {
    background: transparent; color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-white {
    background: rgba(255,255,255,.18); color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
    backdrop-filter: blur(4px);
}
.btn-white:hover { background: rgba(255,255,255,.3); color: #fff; }

.btn-sun { background: var(--grad-primary); color: #fff; border: none; padding: 8px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .25s; }
.btn-sun:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.btn-outline-sun { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); padding: 8px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .25s; }
.btn-outline-sun:hover { background: var(--color-primary); color: #fff; }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 50px 0; }
.section-sm { padding: 30px 0; }

.section-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.section-title {
    font-size: 22px; color: var(--color-text); margin: 0;
    position: relative; padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 44px; height: 3px;
    background: var(--grad-primary); border-radius: 2px;
}
.section-more {
    font-size: 14px; font-weight: 600;
    color: var(--color-primary);
    display: flex; align-items: center; gap: 5px;
    transition: gap .2s;
}
.section-more:hover { gap: 8px; color: var(--color-primary-h); }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden; position: relative;
    transition: all .28s;
    display: flex; flex-direction: column;
    height: 100%;
}
.product-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 12px 32px rgba(182,59,100,.13);
    transform: translateY(-5px);
}

.product-badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; flex-direction: column; gap: 5px; z-index: 2;
}
.badge-discount {
    background: var(--color-red); color: #fff;
    padding: 3px 9px; border-radius: 6px;
    font-size: 11.5px; font-weight: 700;
}
.badge-flash {
    background: var(--grad-warm); color: #fff;
    padding: 3px 8px; border-radius: 6px;
    font-size: 11px; font-weight: 700;
}
.badge-new {
    background: var(--color-green); color: #fff;
    padding: 3px 8px; border-radius: 6px;
    font-size: 11px; font-weight: 700;
}

/* ── Out of stock — product card ── */
.product-card.out-of-stock {
    opacity: .62;
    filter: grayscale(.5);
}
.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}
.product-card.out-of-stock:hover .product-img-wrap img {
    transform: none !important;
}
.out-of-stock-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.55);
}
.out-of-stock-badge {
    background: #DC2626;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 6px;
    letter-spacing: .4px;
    text-transform: uppercase;
    box-shadow: 0 2px 12px rgba(220,38,38,.3);
}
.card-out-of-stock-label {
    font-size: 12px;
    font-weight: 600;
    color: #DC2626;
    text-align: center;
    margin-top: 8px;
    padding: 4px 0;
}
.product-card.out-of-stock .price-current {
    color: #9CA3AF !important;
}

/* ── Out of stock — flash card ── */
.flash-card.out-of-stock {
    opacity: .62;
    filter: grayscale(.5);
}
.flash-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}
.flash-card.out-of-stock:hover .fc-img img {
    transform: none !important;
}
.fc-img {
    position: relative;
}
.flash-card.out-of-stock .fc-price-new {
    color: #9CA3AF !important;
}

html.dark .product-card.out-of-stock,
html.dark .flash-card.out-of-stock {
    opacity: .5;
}
html.dark .out-of-stock-overlay {
    background: rgba(15,23,42,.55);
}
html.dark .out-of-stock-badge {
    background: #991B1B;
}
html.dark .card-out-of-stock-label {
    color: #F87171;
}
html.dark .product-card.out-of-stock .price-current,
html.dark .flash-card.out-of-stock .fc-price-new {
    color: #6B7280 !important;
}

.product-actions {
    position: absolute; top: 12px; right: 12px;
    display: flex; flex-direction: column; gap: 6px; z-index: 2;
    opacity: 0; transform: translateX(8px); transition: all .3s;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }

.action-btn {
    width: 34px; height: 34px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s;
    box-shadow: var(--shadow-xs);
}
.action-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.action-btn.active { color: var(--color-red); }

/* ── Product image wrapper — fixed 220px height, white bg, centered, no crop ── */
.product-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
    background: #ffffff;
    text-decoration: none;
    position: relative;
    border: none;
    padding: 12px;
    box-sizing: border-box;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

/* Responsive image height */
@media (max-width: 768px) { .product-img-wrap { height: 180px; padding: 10px; } }
@media (max-width: 480px) { .product-img-wrap { height: 160px; padding: 8px; } }

/* ── Product body — flex column, consistent alignment ── */
.product-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.product-cat {
    font-size: 11px; color: #000;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.dark .product-cat { color: var(--color-text-3); }
/* Fixed 2-line height so rating/price always align across cards */
.product-name {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: calc(13.5px * 1.4 * 2); /* = 37.8px — always 2 lines */
}
.product-name a { color: var(--color-text); }
.product-name a:hover { color: var(--color-primary); }

.product-rating {
    display: flex; align-items: center;
    gap: 6px; margin-bottom: 8px;
    min-height: 20px; /* consistent height even when empty */
}
.product-rating small { color: var(--color-text-3); font-size: 12px; }
.star-rating { color: var(--color-amber); font-size: 12px; }

/* Price — vertical layout: current on top, old + discount tag below */
.product-price {
    display: flex; flex-direction: column; gap: 3px;
    margin-top: 8px; margin-bottom: 0;
}
.price-current { color: var(--color-red); font-weight: 700; font-size: 18px; }
.price-row-old { display: flex; align-items: center; gap: 6px; }
.price-old { color: #000; text-decoration: line-through; font-size: 13px; }
html.dark .price-old { color: var(--color-text-3); }
.price-discount-tag {
    font-size: 11px; font-weight: 700; color: #16a34a;
    letter-spacing: .1px;
}

.product-stock-bar {
    height: 13px; background: var(--color-surface-2);
    border-radius: 7px; overflow: hidden; position: relative; margin-bottom: 8px;
}
.stock-bar-fill { height: 100%; background: var(--grad-warm); transition: width .5s; }
.stock-text {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9.5px; color: #fff; font-weight: 700;
    white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

.btn-add-cart {
    margin-top: auto !important; width: 100%;
    padding: 8px !important; font-size: 13px !important;
}

/* ============================================================
   FLASH SALE
   ============================================================ */
.section-flash {
    background: linear-gradient(135deg,#fff5f5 0%,#fff 100%);
    border-top: 2px solid #fecaca;
    border-bottom: 2px solid #fecaca;
}
html.dark .section-flash {
    background: linear-gradient(135deg,rgba(220,38,38,.07) 0%,transparent 100%);
    border-color: rgba(220,38,38,.2);
}

.flash-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.flash-title { display: flex; align-items: center; gap: 10px; }
.flash-title i { color: var(--color-amber); font-size: 22px; }
.flash-title h2 { color: var(--color-red); font-size: 22px; margin: 0; }
.flash-tag {
    background: var(--grad-warm); color: #fff;
    padding: 3px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700;
}
.countdown { display: flex; align-items: center; gap: 10px; }
.countdown-label { color: var(--color-text-2); font-size: 13.5px; }
.countdown-boxes { display: flex; align-items: center; gap: 4px; }
.countdown-box {
    background: var(--color-text); color: var(--color-surface);
    border-radius: 8px; padding: 6px 10px;
    text-align: center; min-width: 52px;
}
.countdown-box span { display: block; font-size: 20px; font-weight: 700; font-family: 'Exo 2', sans-serif; }
.countdown-box small { font-size: 9.5px; opacity: .7; }
.countdown-sep { font-size: 20px; font-weight: 700; color: var(--color-red); }

/* ============================================================
   WHY US / POLICY
   ============================================================ */
.why-us-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md); overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-xs);
}
.why-item {
    padding: 24px 20px; text-align: center;
    border-right: 1px solid var(--color-border);
    transition: background .2s;
}
.why-item:last-child { border-right: none; }
.why-item:hover { background: var(--color-primary-bg); }
.why-item i {
    font-size: 36px;
    background: var(--grad-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 10px; display: block;
}
.why-item h6 { font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--color-text); }
.why-item small { font-size: 12.5px; color: var(--color-text-3); }

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-sidebar {
    position: fixed; top: 0; right: -420px;
    width: 400px; height: 100dvh;
    background: var(--color-surface);
    border-radius: 20px 0 0 20px;
    border: none;
    box-shadow: -12px 0 48px rgba(0,0,0,.18);
    z-index: 1100; transition: right .35s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.cart-sidebar.show { right: 0; }
.cart-sidebar-header {
    padding: 18px 20px 16px;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--color-surface-2);
}
.cart-badge {
    background: var(--color-red); color: #fff;
    border-radius: 10px; padding: 2px 10px;
    font-size: 12px; font-weight: 700; margin-left: 8px;
}
.btn-close-cart {
    background: rgba(0,0,0,.06); border: none;
    color: var(--color-text-2); width: 32px; height: 32px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all .2s;
    font-size: 14px;
}
.btn-close-cart:hover { background: var(--color-red); color: #fff; }
.cart-sidebar-body { flex: 1; overflow-y: auto; padding: 12px 14px; }
.cart-mini-item {
    display: flex; gap: 12px; padding: 10px;
    background: var(--color-surface-2);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: background .2s;
}
.cart-mini-item:last-child { margin-bottom: 0; }
.cart-mini-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-mini-info { flex: 1; min-width: 0; }
.cart-mini-info .name { font-size: 13px; font-weight: 600; color: var(--color-text); margin-bottom: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-mini-info .price { color: var(--color-amber); font-weight: 700; }
.btn-remove-mini { background: transparent; border: none; color: var(--color-text-3); cursor: pointer; padding: 4px; }
.btn-remove-mini:hover { color: var(--color-red); }
.cart-sidebar-footer { padding: 18px 20px 20px; background: var(--color-surface-2); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-total-amount { color: var(--color-amber); font-size: 20px; font-weight: 700; }
.cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.35);
    backdrop-filter: blur(3px); z-index: 1090;
    opacity: 0; visibility: hidden; transition: all .3s;
}
.cart-overlay.show { opacity: 1; visibility: visible; }

/* ============================================================
   BREADCRUMB, FORMS, ALERTS, TOAST
   ============================================================ */
.breadcrumb-wrap { background: var(--color-surface); padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.breadcrumb { padding: 0; margin: 0; }
.breadcrumb-item, .breadcrumb-item a { color: var(--color-text-2); font-size: 14px; }
.breadcrumb-item a:hover { color: var(--color-primary); }
.breadcrumb-item.active { color: var(--color-text); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--color-text-3); }

.form-sun, .form-control.form-sun {
    background: var(--color-surface-2) !important;
    border: 1.5px solid var(--color-border) !important;
    color: var(--color-text) !important;
    padding: 10px 14px; border-radius: var(--radius-sm); transition: all .25s;
}
.form-sun:focus, .form-control.form-sun:focus {
    background: var(--color-surface) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(182,59,100,.1) !important;
}
.form-sun::placeholder { color: var(--color-text-3); }
.form-label { color: var(--color-text-2); font-weight: 500; margin-bottom: 6px; }

.alert { background: var(--color-surface) !important; border: 1px solid var(--color-border) !important; color: var(--color-text) !important; border-radius: var(--radius-sm) !important; }
.alert-success { background: rgba(5,150,105,.07) !important; border-color: var(--color-green) !important; color: var(--color-green) !important; }
.alert-danger,.alert-error { background: rgba(220,38,38,.07) !important; border-color: var(--color-red) !important; color: var(--color-red) !important; }
.alert-warning { background: rgba(217,119,6,.07) !important; border-color: var(--color-amber) !important; color: var(--color-amber) !important; }
.btn-close { filter: none !important; }
html.dark .btn-close { filter: invert(1) !important; }

.toast-sun {
    background: var(--color-surface); color: var(--color-text);
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    padding: 14px 18px; min-width: 280px;
    box-shadow: var(--shadow-lg); margin-bottom: 12px;
    display: flex; align-items: center; gap: 12px;
    animation: slideInR .3s;
}
.toast-sun.toast-success { border-left: 4px solid var(--color-green); }
.toast-sun.toast-error   { border-left: 4px solid var(--color-red); }
.toast-sun.toast-warning { border-left: 4px solid var(--color-amber); }
.toast-icon { font-size: 20px; }
.toast-success .toast-icon { color: var(--color-green); }
.toast-error   .toast-icon { color: var(--color-red); }
.toast-warning .toast-icon { color: var(--color-amber); }
@keyframes slideInR { from { transform: translateX(100%); opacity: 0; } }

/* ============================================================
   MISC — Cart Table, Order, Account, Footer
   ============================================================ */

.order-summary-card { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-xs); }
.summary-title { color: var(--color-text); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--color-text-2); }
.summary-total { font-size: 18px; padding-top: 12px; border-top: 1px solid var(--color-border); margin-top: 12px; }
.summary-trust { color: var(--color-text-3); }

.checkout-card { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-xs); }
.checkout-card-title { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--color-border); }
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-option input { display: none; }
.payment-option .payment-card { display: flex; align-items: center; gap: 14px; background: var(--color-surface-2); border: 2px solid var(--color-border); border-radius: var(--radius-md); padding: 14px; cursor: pointer; transition: all .25s; }
.payment-option input:checked + .payment-card { border-color: var(--color-primary); background: var(--color-primary-bg); }
.payment-card i { font-size: 28px; color: var(--color-primary); }
.payment-card strong { color: var(--color-text); display: block; }
.payment-card small { color: var(--color-text-3); }

.order-items-list { max-height: 300px; overflow-y: auto; margin-bottom: 12px; }
.order-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.order-item:last-child { border-bottom: none; }
.order-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.order-item-name { color: var(--color-text); font-size: 13px; font-weight: 600; }

.success-wrap { max-width: 600px; margin: 0 auto; text-align: center; }
.success-icon { width: 100px; height: 100px; background: var(--color-green); border-radius: 50%; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(5,150,105,.12); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 10px rgba(5,150,105,.12); } 50% { box-shadow: 0 0 0 18px rgba(5,150,105,.05); } }
.checkmark { width: 60px; height: 60px; }
.checkmark-circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 3; stroke-miterlimit: 10; stroke: #fff; animation: stroke .6s cubic-bezier(.65,0,.45,1) forwards; }
.checkmark-check { stroke-dasharray: 48; stroke-dashoffset: 48; stroke-width: 4; stroke: #fff; stroke-linecap: round; animation: stroke .3s cubic-bezier(.65,0,.45,1) .8s forwards; }
@keyframes stroke { to { stroke-dashoffset: 0; } }
.success-title { color: var(--color-green); margin-bottom: 12px; }
.success-subtitle { color: var(--color-text-2); margin-bottom: 32px; }
.success-timeline { display: flex; align-items: center; margin: 32px 0; }
.success-step { flex: 0 0 auto; text-align: center; }
.step-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-border); color: var(--color-text-3); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.success-step.active .step-icon { background: var(--color-green); border-color: var(--color-green); color: #fff; }
.step-label { color: var(--color-text-2); font-size: 12px; }
.step-line { flex: 1; height: 2px; background: var(--color-border); margin-bottom: 28px; }
.success-summary { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; text-align: left; margin: 24px 0; box-shadow: var(--shadow-xs); }

.page-heading { font-size: 24px; margin-bottom: 24px; }

/* ── Wishlist product grid — 5 cols, synced with product list cards ── */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.wishlist-grid .product-img-wrap {
    height: 180px;
    padding: 10px;
    box-sizing: border-box;
}
.wishlist-grid .product-body { padding: 10px 12px 12px; }
.wishlist-grid .price-current { font-size: 15px; }

@media (max-width: 1100px) { .wishlist-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .wishlist-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 480px)  { .wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.account-sidebar { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-xs); }
.account-user-card { padding: 24px; text-align: center; border-bottom: 1px solid var(--color-border); background: linear-gradient(135deg,rgba(182,59,100,.06),rgba(99,102,241,.06)); }
.account-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--grad-primary); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: #fff; overflow: hidden; box-shadow: 0 0 0 4px rgba(182,59,100,.15); }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-name { color: var(--color-text); margin-bottom: 4px; }
.account-rank { font-size: 13px; font-weight: 600; }
.account-nav { list-style: none; padding: 0; }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 20px; color: var(--color-text-2); border-bottom: 1px solid var(--color-border); transition: all .2s; }
.account-nav a:last-child { border-bottom: none; }
.account-nav a:hover, .account-nav a.active { background: var(--color-primary-bg); color: var(--color-primary); }
.stat-card-user { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-xs); }
.stat-icon-user { font-size: 32px; color: var(--color-primary); }
.stat-card-user h3 { margin: 0; color: var(--color-text); font-size: 24px; }
.stat-card-user small { color: var(--color-text-3); }
.avatar-upload-wrap { position: relative; display: inline-block; }
.avatar-preview { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--color-primary); }
.btn-avatar-upload { position: absolute; bottom: 0; right: 0; width: 38px; height: 38px; background: var(--grad-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.status-tabs { display: flex; gap: 4px; background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 6px; overflow-x: auto; box-shadow: var(--shadow-xs); }
.status-tab { padding: 8px 16px; color: var(--color-text-2); border-radius: 8px; white-space: nowrap; transition: all .2s; font-size: 14px; font-weight: 500; cursor: pointer; }
.status-tab:hover { background: var(--color-surface-2); }
.status-tab.active { background: var(--grad-primary); color: #fff; }
.order-card { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-xs); }
.order-card-header { padding: 16px; background: var(--color-surface-2); border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.order-card-body { padding: 16px; }
.order-card-footer { padding: 12px 16px; border-top: 1px solid var(--color-border); background: var(--color-surface-2); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-card-total { font-size: 17px; font-weight: 700; color: var(--color-text); white-space: nowrap; }
.order-info-chip { display: inline-block; padding: 4px 12px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: 100px; font-size: 13px; color: var(--color-text-2); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-item-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.order-item-row:last-child { border-bottom: none; }
.order-item-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.order-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.order-item-info strong { font-size: 14px; color: var(--color-text); }
.order-item-info small { color: var(--color-text-3); font-size: 13px; }
.order-item-subtotal { font-weight: 700; white-space: nowrap; color: var(--color-text); }
.rank-badge { font-size: 12px; font-weight: 700; }
.listing-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--color-surface); border-radius: var(--radius-md); margin-bottom: 16px; border: 1px solid var(--color-border); box-shadow: var(--shadow-xs); }
.sidebar-filter { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; position: sticky; top: 80px; box-shadow: var(--shadow-xs); }
.filter-block { margin-bottom: 22px; }
.filter-block:last-child { margin-bottom: 0; }
.filter-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); font-weight: 700; color: var(--color-text); }
.filter-category-list { list-style: none; padding: 0; }
.filter-category-list a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--color-text-2); border-radius: 8px; transition: all .2s; font-size: 14px; }
.filter-category-list a:hover,.filter-category-list a.active { background: var(--color-primary-bg); color: var(--color-primary); }
.filter-category-list .count { margin-left: auto; color: var(--color-text-3); font-size: 12px; }
.price-options { display: flex; flex-direction: column; gap: 8px; }
.price-option { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--color-text-2); font-size: 14px; }
.price-option input { accent-color: var(--color-primary); }
.filter-sort-list { list-style: none; padding: 0; }
.filter-sort-list a { display: block; padding: 7px 10px; color: var(--color-text-2); border-radius: 8px; font-size: 14px; transition: all .2s; }
.filter-sort-list a:hover,.filter-sort-list a.active { background: var(--color-primary-bg); color: var(--color-primary); }
.voucher-promo { background: linear-gradient(135deg,rgba(182,59,100,.05),rgba(99,102,241,.05)); border: 1.5px dashed rgba(182,59,100,.35); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.voucher-code-promo { display: inline-block; background: var(--color-primary); color: #fff; padding: 2px 8px; border-radius: 4px; font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.voucher-promo p { color: var(--color-text-2); font-size: 12px; margin: 0; }
.listing-header { margin-bottom: 24px; }
.listing-title { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.listing-title i { color: var(--color-primary); }
.listing-meta { color: var(--color-text-2); margin-top: 4px; }
.pagination .page-link { background: var(--color-surface) !important; border: 1.5px solid var(--color-border) !important; color: var(--color-text-2) !important; margin: 0 3px; border-radius: 8px !important; min-width: 40px; text-align: center; transition: all .2s; }
.pagination .page-link:hover { background: var(--color-primary-bg) !important; border-color: var(--color-primary) !important; color: var(--color-primary) !important; }
.pagination .page-item.active .page-link { background: var(--grad-primary) !important; border-color: transparent !important; color: #fff !important; }
.pagination .page-item.disabled .page-link { opacity: .5; }
.empty-state h4 { color: var(--color-text); margin: 12px 0 6px; }
.error-404-number { font-family: 'Exo 2', sans-serif; font-size: 160px; font-weight: 800; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.error-404-title { color: var(--color-text); margin: 12px 0; }
.error-404-text { color: var(--color-text-2); max-width: 500px; margin: 0 auto; }
.vt-step { display: flex; align-items: center; gap: 14px; padding: 10px 0; position: relative; }
.vt-step::before { content: ''; position: absolute; left: 19px; top: 50px; bottom: -10px; width: 2px; background: var(--color-border); }
.vt-step:last-child::before { display: none; }
.vt-step.done::before { background: var(--color-green); }
.vt-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-border); color: var(--color-text-3); display: flex; align-items: center; justify-content: center; z-index: 1; flex-shrink: 0; }
.vt-step.done .vt-dot { background: var(--color-green); border-color: var(--color-green); color: #fff; }
.vt-label { color: var(--color-text-2); font-weight: 600; }
.vt-step.done .vt-label { color: var(--color-text); }
.modal-content { background: var(--color-surface) !important; border: 1px solid var(--color-border) !important; border-radius: var(--radius-md) !important; }
.modal-header { border-bottom-color: var(--color-border) !important; }
html.dark .btn-close-white { filter: none !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-sun {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: 60px;
}
.footer-top { padding: 50px 0 30px; }
.footer-logo { font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: 700; }
.logo-sun { color: var(--color-primary); }
.logo-cosmetic { color: var(--color-text); }
.footer-desc { color: var(--color-text-2); font-size: 14px; line-height: 1.7; }
.footer-title { color: var(--color-text); margin-bottom: 16px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.footer-links { list-style: none; padding: 0; }
.footer-links a { display: block; padding: 6px 0; color: var(--color-text-2); font-size: 14px; transition: all .2s; }
.footer-links a:hover { color: var(--color-primary); padding-left: 5px; }
.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-list li { color: var(--color-text-2); padding: 6px 0; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.footer-contact-list i { color: var(--color-primary); width: 18px; }
.footer-social { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; background: var(--color-surface-2); color: var(--color-text-2); border: 1px solid var(--color-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .25s; }
.social-link:hover { background: var(--grad-primary); color: #fff; border-color: transparent; transform: translateY(-3px); }
.newsletter-form { display: flex; background: var(--color-surface-2); border: 1.5px solid var(--color-border); border-radius: 10px; padding: 4px; }
.newsletter-form input { flex: 1; background: transparent; border: none; padding: 8px 12px; color: var(--color-text); outline: none; font-size: 14px; }
.newsletter-form input::placeholder { color: var(--color-text-3); }
.newsletter-form button { background: var(--grad-primary); color: #fff; border: none; width: 40px; border-radius: 8px; cursor: pointer; }
.footer-payment { padding: 20px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.payment-icons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--color-text-2); font-size: 28px; }
.payment-icons .badge { font-size: 12px; padding: 6px 12px; }
.footer-bottom { padding: 16px 0; color: var(--color-text-3); font-size: 13px; }

/* Scroll top */
.scroll-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; background: var(--grad-primary); color: #fff; border: none; border-radius: 50%; cursor: pointer; z-index: 999; opacity: 0; visibility: hidden; transition: all .3s; box-shadow: var(--shadow-md); }
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-4px); }

/* Main content */
.main-content { min-height: 55vh; }

/* Action badge (compat) */
.action-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; background: var(--color-red); color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--color-surface); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .navbar-row { flex-wrap: wrap; height: auto; padding: 10px 0; }
    .nav-search-wrap { order: 3; width: 100%; max-width: none; margin-top: 0; }
    .nav-right { margin-left: auto; }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .why-item:nth-child(2) { border-right: none; }
    .why-item:nth-child(n+3) { border-top: 1px solid var(--color-border); }
    .cart-sidebar { width: 100%; right: -100%; border-radius: 0; }
}
@media (max-width: 767px) {
    .section { padding: 32px 0; }
    .why-us-grid { grid-template-columns: 1fr; }
    .why-item { border-right: none !important; border-bottom: 1px solid var(--color-border); }
    .why-item:last-child { border-bottom: none; }
    .error-404-number { font-size: 100px; }
}
@media (max-width: 480px) {
    .navbar-main { height: auto; }
}
