/* ==========================================================================
   AEROX — Creamy Design System
   Warm cream surfaces, caramel accents, soft shadows, pill buttons.
   ========================================================================== */

:root {
    /* Creamy Light Palette */
    --bg-primary: #F7F2E9;
    --bg-secondary: #FFFDF8;
    --bg-tertiary: #F1EADD;
    --bg-glass: rgba(255, 253, 248, 0.86);

    --text-primary: #2A211A;
    --text-secondary: #75695C;
    --text-muted: #A79A89;

    --accent: #C2803F;
    --accent-hover: #A86A32;
    --accent-glow: rgba(194, 128, 63, 0.18);
    --accent-soft: rgba(194, 128, 63, 0.12);

    --gold: #E0A83E;
    --danger: #C0392B;
    --success: #4E7A51;

    --border: rgba(42, 33, 26, 0.10);
    --border-hover: rgba(42, 33, 26, 0.22);

    --card-shadow: 0 6px 24px -8px rgba(90, 62, 35, 0.10);
    --hover-shadow: 0 18px 44px -14px rgba(90, 62, 35, 0.20);
    --modal-shadow: 0 25px 60px -15px rgba(60, 40, 20, 0.35);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

    /* Shape */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --navbar-height: 76px;
}

[data-theme="dark"] {
    /* Roasted Coffee Dark Palette */
    --bg-primary: #171310;
    --bg-secondary: #201A15;
    --bg-tertiary: #2A221B;
    --bg-glass: rgba(32, 26, 21, 0.88);

    --text-primary: #F3ECDF;
    --text-secondary: #BCAE9C;
    --text-muted: #837666;

    --accent: #DA9C5C;
    --accent-hover: #E8AF74;
    --accent-glow: rgba(218, 156, 92, 0.20);
    --accent-soft: rgba(218, 156, 92, 0.14);

    --gold: #E5B45E;
    --danger: #E07B6F;
    --success: #8FBE8F;

    --border: rgba(243, 236, 223, 0.10);
    --border-hover: rgba(243, 236, 223, 0.26);

    --card-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.55);
    --hover-shadow: 0 20px 48px -16px rgba(0, 0, 0, 0.7);
    --modal-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.drawer-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a { color: inherit; text-decoration: none; transition: var(--transition); }

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    color: inherit;
    transition: var(--transition);
}

input, select, textarea { font-family: inherit; outline: none; }

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

::selection { background: var(--accent); color: #FFFDF8; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Navbar compression on mid-size screens */
@media screen and (max-width: 1150px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 0.82rem; }
    .nav-container { gap: 16px; }
}

/* Slim warm scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-section { padding: 64px 0 88px; }

/* Vertical rhythm between homepage bands */
.band { margin-top: 72px; }

/* Soft dotted cream texture */
.blueprint-bg {
    background-image: radial-gradient(var(--border) 1.1px, transparent 1.1px);
    background-size: 26px 26px;
}

/* --------------------------------------------------------------------------
   Buttons — pill shaped for the creamy look
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.btn i { font-size: 0.95em; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #FFFDF8;
    box-shadow: 0 8px 20px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px var(--accent-glow);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-hover);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-dark { background: var(--text-primary); color: var(--bg-primary); }
.btn-dark:hover { background: var(--accent); color: #FFFDF8; transform: translateY(-2px); }

.btn-block { width: 100%; display: flex; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.link-danger { color: var(--danger); font-weight: 600; background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.link-danger:hover { opacity: 0.75; }

.muted { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Navbar — frosted cream glass
   -------------------------------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    position: relative;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--text-primary);
    border-radius: var(--radius-full);
}

.icon-btn:hover { background: var(--bg-tertiary); color: var(--accent); transform: translateY(-1px); }
.icon-btn.active { color: var(--accent); }

.badge-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: var(--accent);
    color: #FFFDF8;
    font-size: 0.62rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 96px 0 72px;
    text-align: center;
    overflow: visible;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

.hero::before {
    width: 480px; height: 480px;
    top: -160px; right: -120px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
}

.hero::after {
    width: 420px; height: 420px;
    bottom: -180px; left: -140px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    margin-bottom: 22px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.3rem);
    font-weight: 800;
    max-width: 820px;
    margin: 0 auto 20px;
}

.grad-text {
    background: linear-gradient(120deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-style: italic;
}

.hero-sub {
    max-width: 620px;
    margin: 0 auto 34px;
    font-size: 1.08rem;
    color: var(--text-secondary);
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 5vw, 56px);
    margin-top: 52px;
    flex-wrap: wrap;
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-num .accent { color: var(--accent); }

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Section headers
   -------------------------------------------------------------------------- */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-sub { color: var(--text-secondary); margin-top: 8px; max-width: 520px; }

.head-action {
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.head-action:hover { gap: 12px; }

/* --------------------------------------------------------------------------
   Perks strip
   -------------------------------------------------------------------------- */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.perk {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.perk:hover { transform: translateY(-4px); box-shadow: var(--hover-shadow); border-color: var(--border-hover); }

.perk-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius-md);
}

.perk-txt strong { display: block; font-size: 0.95rem; }
.perk-txt span { font-size: 0.8rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Category tiles
   -------------------------------------------------------------------------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.cat-card:hover { transform: translateY(-6px); box-shadow: var(--hover-shadow); border-color: var(--accent-glow); }

.cat-icon {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    transition: var(--transition);
}

.cat-card:hover .cat-icon { background: var(--accent); color: #FFFDF8; transform: scale(1.08); }

.cat-name { font-weight: 700; font-family: var(--font-heading); }
.cat-count { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: var(--border-hover);
}

.card-top {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
}

.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .card-image { transform: scale(1.06); }

.card-badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
    padding: 5px 11px;
    background: var(--bg-glass);
    backdrop-filter: blur(6px);
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-full);
}

.wishlist-btn {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: var(--bg-glass);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: 50%;
}

.wishlist-btn:hover { color: var(--danger); transform: scale(1.1); }
.wishlist-btn.active { color: #E63946; border-color: rgba(230, 57, 70, 0.35); background: #FFF; }
[data-theme="dark"] .wishlist-btn.active { background: #2A1614; }

.card-info { display: flex; flex-direction: column; gap: 5px; flex-grow: 1; }

.card-brand {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a:hover > .card-title { color: var(--accent); }

.card-rating {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-rating .fa-star { color: var(--gold); font-size: 0.75rem; }

.card-price-row { display: flex; align-items: baseline; gap: 9px; margin: 8px 0 12px; flex-wrap: wrap; }

.price-current {
    font-family: var(--font-mono);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--accent);
}

.price-old {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.card-actions { margin-top: auto; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.92rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    appearance: none;
}

select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23A79A89' stroke-width='2' stroke-linecap='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

textarea.form-control { resize: vertical; min-height: 74px; }

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: var(--bg-secondary);
}

input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; cursor: pointer; }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.span-2 { grid-column: span 2; }

/* Cards & page header */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--card-shadow);
}

.card-title-sm {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.card-title-sm i { color: var(--accent); }

.page-header { padding: 52px 0 8px; }
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-header p { color: var(--text-secondary); margin-top: 8px; }

/* Summary rows (cart / checkout / drawer) */
.sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.93rem;
    color: var(--text-secondary);
}

.sum-row strong { color: var(--text-primary); font-family: var(--font-mono); font-weight: 700; }

.sum-divider { border: 0; border-top: 1.5px dashed var(--border-hover); margin: 14px 0; }

.sum-total { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }
.sum-total strong { color: var(--accent); font-size: 1.2rem; }

/* Quantity stepper */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
}

.qty-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(90, 62, 35, 0.12);
}

.qty-btn:hover { color: var(--accent); transform: scale(1.1); }

.qty-val {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Cart drawer
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 33, 24, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-drawer-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0; right: -460px;
    width: 100%;
    max-width: 430px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    box-shadow: var(--modal-shadow);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2001;
}

.cart-drawer-overlay.open .cart-drawer { right: 0; }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
}

.drawer-header h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.drawer-header h3 i { color: var(--accent); }

.drawer-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}

.drawer-close:hover { background: var(--accent); color: #FFFDF8; rotate: 90deg; }

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 0 0 0 var(--radius-lg);
}

.drawer-note { font-size: 0.76rem; color: var(--text-muted); text-align: center; }

.cart-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-hover);
}

.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }

.ci-thumb {
    width: 64px; height: 64px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.ci-info { flex-grow: 1; min-width: 0; }

.ci-name {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ci-price { font-size: 0.8rem; color: var(--accent); font-family: var(--font-mono); font-weight: 600; margin-top: 2px; }

.ci-info .qty-stepper { margin-top: 8px; transform: scale(0.9); transform-origin: left; }

.ci-remove {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-radius: 50%;
    flex-shrink: 0;
}

.ci-remove:hover { color: var(--danger); background: rgba(192, 57, 43, 0.1); }

.drawer-empty { text-align: center; padding: 48px 12px; color: var(--text-muted); }
.drawer-empty i { font-size: 2.4rem; margin-bottom: 14px; opacity: 0.5; }
.drawer-empty p { margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   Shop layout
   -------------------------------------------------------------------------- */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 32px;
    align-items: start;
}

.filters-panel {
    position: sticky;
    top: calc(var(--navbar-height) + 20px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--card-shadow);
}

.filter-title { font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.filter-title i { color: var(--accent); font-size: 0.85rem; }

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.filter-option:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.filter-option:has(input:checked) { background: var(--accent-soft); color: var(--accent); }

.shop-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-toolbar .form-control { width: auto; min-width: 220px; flex: 1 1 220px; }
.shop-toolbar select.form-control { flex: 0 0 auto; min-width: 190px; }

.results-count { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; display: block; }

/* Empty state (grids & cart page) */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 24px;
    background: var(--bg-secondary);
    border: 1.5px dashed var(--border-hover);
    border-radius: var(--radius-lg);
}

.empty-icon {
    width: 84px; height: 84px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.9rem;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 50%;
}

.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   Cart page
   -------------------------------------------------------------------------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.cart-list { display: flex; flex-direction: column; gap: 16px; }

.cart-page-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.cart-page-item:hover { border-color: var(--border-hover); box-shadow: var(--hover-shadow); }

.cpi-img {
    width: 96px; height: 96px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

.cpi-brand { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); }
.cpi-name { font-size: 1.02rem; margin: 3px 0; }
.cpi-name a:hover { color: var(--accent); }
.cpi-unit { font-size: 0.83rem; color: var(--text-muted); font-family: var(--font-mono); }

.cpi-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cpi-line { font-family: var(--font-mono); font-weight: 700; font-size: 1.02rem; color: var(--text-primary); }

.summary-card { position: sticky; top: calc(var(--navbar-height) + 20px); }
.summary-card .sum-rows { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.summary-note { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 14px; }
.summary-note i { color: var(--success); }

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a:hover { color: var(--accent); }
.crumb-sep { font-size: 0.6rem; opacity: 0.6; }
.breadcrumb .crumb-current { color: var(--text-primary); font-weight: 600; }

.product-detail-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--card-shadow);
}

.pd-gallery { position: relative; }

.pd-img-frame {
    aspect-ratio: 1 / 1;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pd-img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pd-img-frame:hover img { transform: scale(1.04); }

.pd-brand { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); }

.pd-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 12px; }

.pd-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 0.88rem; color: var(--text-secondary); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: 0.9rem; }
.reviews-count { color: var(--text-muted); }

.pd-price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.pd-price { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.pd-old { font-family: var(--font-mono); font-size: 1.05rem; text-decoration: line-through; color: var(--text-muted); }

.save-pill {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--success);
    background: rgba(78, 122, 81, 0.12);
    border-radius: var(--radius-full);
}

.pd-stock { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; margin: 10px 0 18px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(78, 122, 81, 0.18); }
.pd-stock.low .stock-dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(224, 168, 62, 0.2); }
.pd-stock.out .stock-dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15); }
.pd-stock.in { color: var(--success); }
.pd-stock.low { color: var(--gold); }
.pd-stock.out { color: var(--danger); }

.pd-desc { color: var(--text-secondary); margin-bottom: 22px; }

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 26px;
}

.spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.spec-k { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.spec-v { font-size: 0.9rem; font-weight: 600; font-family: var(--font-mono); }

.pd-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }

.pd-meta { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1.5px dashed var(--border-hover); }
.pd-meta li { display: flex; align-items: center; gap: 10px; list-style: none; font-size: 0.87rem; color: var(--text-secondary); }
.pd-meta li i { color: var(--accent); width: 18px; text-align: center; }

.related-section { margin-top: 64px; }

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 32px;
    align-items: start;
}

.checkout-stack { display: flex; flex-direction: column; gap: 24px; }

.payment-option {
    display: block;
    padding: 18px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover { border-color: var(--border-hover); }
.payment-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-glow); }

.po-head { display: flex; align-items: center; gap: 12px; }
.po-head strong { font-size: 0.97rem; }
.po-desc { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 1px; }

.payment-detail-box {
    margin-top: 14px;
    padding: 14px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.payment-detail-box strong { color: var(--accent); }

.checkout-sidebar { position: sticky; top: calc(var(--navbar-height) + 20px); }

.order-items-list {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding-right: 4px;
}

.oi-row { display: flex; align-items: center; gap: 12px; }
.oi-row img { width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.oi-name { font-weight: 700; font-size: 0.85rem; line-height: 1.3; }
.oi-qty { font-size: 0.75rem; color: var(--text-muted); }
.oi-line { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }

.secure-note {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 0.76rem; color: var(--text-muted);
    margin-top: 14px; text-align: center;
}
.secure-note i { color: var(--success); }

/* --------------------------------------------------------------------------
   Order success
   -------------------------------------------------------------------------- */
.success-wrap { max-width: 660px; margin: 0 auto; text-align: center; }

.success-icon {
    font-size: 4.2rem;
    color: var(--success);
    margin-bottom: 20px;
    display: inline-block;
}

.success-card {
    text-align: left;
    margin: 32px 0;
}

.oc-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.oc-rows .sum-row span:first-child { color: var(--text-muted); }

.order-items { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1.5px dashed var(--border-hover); }

/* --------------------------------------------------------------------------
   Search suggestions dropdown
   -------------------------------------------------------------------------- */
#search-suggestions-dropdown { border-radius: var(--radius-md); overflow: hidden; }

#search-suggestions-dropdown a { border-bottom: 1px solid var(--border); }
#search-suggestions-dropdown a:last-child { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Footer — deep espresso with cream text
   -------------------------------------------------------------------------- */
.footer {
    --f-bg: #241B12;
    --f-bg-deep: #1D150D;
    --f-text: #EFE6D6;
    --f-muted: #A99B87;
    background: var(--f-bg);
    color: var(--f-text);
    padding: 68px 0 24px;
    margin-top: 96px;
}

[data-theme="dark"] .footer { --f-bg: #100C09; --f-bg-deep: #0B0806; }

.footer .logo { color: #FFFDF8; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr 0.9fr 1.2fr;
    gap: 44px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: #FFFDF8;
    font-size: 1rem;
    margin-bottom: 18px;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 28px; height: 2.5px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 7px;
}

.footer-desc { font-size: 0.88rem; color: var(--f-muted); line-height: 1.7; margin: 16px 0 18px; }

.footer-contact p { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--f-muted); margin-bottom: 9px; }
.footer-contact i { color: var(--accent); width: 16px; text-align: center; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a { font-size: 0.88rem; color: var(--f-muted); }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-newsletter { display: flex; gap: 8px; margin-top: 4px; }

.footer-newsletter input {
    flex-grow: 1;
    min-width: 0;
    padding: 12px 16px;
    font-size: 0.86rem;
    color: var(--f-text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.footer-newsletter input::placeholder { color: var(--f-muted); }
.footer-newsletter input:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.09); }

.footer-newsletter button {
    width: 46px; height: 46px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent);
    color: #FFFDF8;
    font-size: 0.9rem;
    border-radius: 50%;
}

.footer-newsletter button:hover { background: var(--accent-hover); transform: translateY(-2px); }

.footer-sub-label {
    margin: 22px 0 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--f-muted);
}

.payment-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.payment-badges .badge {
    padding: 6px 13px;
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--f-text);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.82rem;
    color: var(--f-muted);
}

.footer-socials { display: flex; gap: 8px; }

.footer-socials a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    color: var(--f-muted);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.footer-socials a:hover { background: var(--accent); color: #FFFDF8; transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    box-shadow: var(--modal-shadow);
    z-index: 3000;
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast i { color: var(--gold); }

/* Responsive core breakpoints live in responsive.css */
