/* ============================================================
   DollProducts.com — Modern Editorial Design System
   Inspired by Sézane, Aritzia, Mejuri, Aesop, Glossier
   ============================================================ */

:root {
    /* Palette — warm cream + near-black + refined rose */
    --bg: #fdfaf6;
    --surface: #ffffff;
    --surface-2: #f7f3ed;
    --ink: #1a1a1a;
    --ink-2: #555555;
    --ink-3: #8a8a8a;
    --line: #e6e2da;
    --line-2: #f0ebe2;
    --accent: #b83d5e;
    --accent-2: #c95680;
    --accent-soft: #faf0ec;
    --success: #2e7d32;
    --warning: #c87800;
    --danger: #c62828;
    /* Legacy aliases (so older inline styles still work) */
    --gray: #555555;
    --border: #e6e2da;
    --soft: #f7f3ed;
    --primary: #b83d5e;
    --dark: #1a1a1a;
    --theme-primary: #b83d5e;
    --theme-accent: #c95680;
    --theme-dark: #1a1a1a;
    /* Type */
    --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    /* Layout */
    --max: 1440px;
    --pad: clamp(1rem, 4vw, 3rem);
    --section: clamp(3.5rem, 8vw, 6.5rem);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;
    --tap: 44px;
    --shadow: 0 1px 2px rgba(26,26,26,0.04);
    --shadow-lg: 0 8px 32px rgba(26,26,26,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* GLOBAL: All numbers render as lining figures (sit on baseline) with tabular widths (line up in columns) */
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; font-size: 16px; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

h1, h2, h3, h4, h5 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    
    color: var(--ink);
    font-feature-settings: "lnum" 1, "tnum" 1;
    font-variant-numeric: lining-nums tabular-nums;
}
h1 { font-size: clamp(2.25rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--ink-2); }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 1.25rem;
}
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }

/* ============================================================
   ANNOUNCE BAR
   ============================================================ */
.announce {
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 10px var(--pad);
    line-height: 1.4;
}
.announce a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 1px; }

/* ============================================================
   HEADER — Editorial: left logo, center nav, right icons
   ============================================================ */
.header {
    background: rgba(253, 250, 246, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
}
.header-left { display: flex; align-items: center; gap: 1.5rem; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }

.logo {
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: inline-flex;
    align-items: baseline;
    gap: 0.4ch;
    
}
.logo:hover { opacity: 1; }
.logo .dot { color: var(--accent); }

.nav-main {
    display: flex;
    gap: 2.25rem;
    align-items: center;
}
.nav-main a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    position: relative;
    padding: 6px 0;
}
.nav-main a::after {
    content: "";
    position: absolute;
    left: 50%; right: 50%; bottom: 0;
    height: 1px;
    background: var(--ink);
    transition: left 0.25s, right 0.25s;
}
.nav-main a:hover { opacity: 1; }
.nav-main a:hover::after, .nav-main a.active::after { left: 0; right: 0; }

.icon-btn {
    width: var(--tap); height: var(--tap);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    position: relative;
    transition: background 0.2s;
}
.icon-btn:hover { background: var(--surface-2); opacity: 1; }
.icon-btn .badge {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
    line-height: 1;
}
.menu-toggle { display: none; }

/* Mobile search trigger / search overlay */
.search-trigger { display: none; }
.search-overlay {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 200;
    padding: 1.5rem var(--pad);
    transform: translateY(-100%);
    transition: transform 0.3s, visibility 0.3s, opacity 0.3s;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.search-overlay.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.search-overlay form { max-width: 600px; margin: 2rem auto; display: flex; gap: 0.5rem; }
.search-overlay input {
    flex: 1; padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 50px;
    font-size: 16px;
    background: #fff;
}
.search-overlay-close {
    position: absolute; top: 1.25rem; right: var(--pad);
    width: var(--tap); height: var(--tap);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    min-height: var(--tap);
    white-space: nowrap;
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 10px 18px; font-size: 11px; min-height: 36px; }
.btn-block { width: 100%; }
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 1px solid var(--ink);
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   HERO — Editorial split layout, no floating chrome
   ============================================================ */
.hero {
    padding: clamp(2.5rem, 6vw, 5rem) 0 var(--section);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.hero-copy { max-width: 540px; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
    font-style: italic;
    color: var(--accent);
    
}
.hero p {
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--ink-2);
    margin-bottom: 2rem;
    max-width: 460px;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-image {
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    position: relative;
}
.hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.hero-image:hover img { transform: scale(1.03); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    gap: 2rem;
    flex-wrap: wrap;
}
.section-head .left { max-width: 600px; }
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { color: var(--ink-2); font-size: 15px; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.cat-card {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-2);
    display: block;
}
.cat-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.cat-card:hover img { transform: scale(1.05); opacity: 1; }
.cat-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}
.cat-card .label {
    position: absolute;
    bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
    color: #fff;
    z-index: 2;
}
.cat-card .label h4 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}
.cat-card .label span { font-size: 12px; opacity: 0.85; letter-spacing: 0.05em; }

/* ============================================================
   PRODUCT CARDS — Card view, fully clickable
   ============================================================ */
.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
}
.product-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}
/* Stretched-link: LAST element in DOM, covers entire card */
.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
    background: transparent;
}
.card-link:hover { opacity: 1; }
@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 40px rgba(26,26,26,0.08);
        border-color: transparent;
    }
    .product-card:hover .product-image img { transform: scale(1.05); opacity: 1; }
}
.product-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--surface-2);
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.product-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 50px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    pointer-events: none;
}
.product-badge.sale { background: var(--accent); color: #fff; }
/* Heart button: sibling of card-link, NOT inside product-image — must be above the link */
.product-fav {
    position: absolute;
    top: 10px; right: 10px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    transition: all 0.2s, transform 0.15s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    border: none;
    padding: 0;
}
.product-fav:hover, .product-fav.active { background: var(--accent); color: #fff; }
.product-fav:active { transform: scale(0.92); }
.product-info {
    padding: 1rem 1.125rem 1.125rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}
.product-cat {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    margin-bottom: 2px;
}
.product-name {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px;
}
.product-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}
.price { font-size: 15px; font-weight: 600; color: var(--ink); }
.price-old { font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.rating { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.rating .stars { color: var(--accent); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    background: var(--surface);
    transition: 0.15s;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); opacity: 1; }
.pagination .active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination span:not(.active) { border: none; background: transparent; color: var(--ink-3); }

/* ============================================================
   VALUE PROPS STRIP
   ============================================================ */
.value-props {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    padding: var(--section) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.vp { text-align: center; padding: 0 1rem; }
.vp .ic { font-size: 28px; margin-bottom: 0.75rem; }
.vp h4 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.vp p { font-size: 13px; color: var(--ink-2); margin: 0; }

/* ============================================================
   SHOP / FILTERS
   ============================================================ */
.shop-header {
    padding: var(--section) 0 clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
}
.shop-header p { max-width: 540px; margin: 1rem auto 0; }
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.shop-toolbar .count { font-size: 13px; color: var(--ink-2); letter-spacing: 0.05em; }
.shop-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: flex-start; }
.filters { position: sticky; top: 90px; }
.filter-group {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.filter-group:last-child { border: none; margin: 0; padding: 0; }
.filter-group h4 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--ink-2);
}
.filter-list a:hover, .filter-list a.active { color: var(--ink); opacity: 1; font-weight: 600; }
.filter-list .count { font-size: 12px; color: var(--ink-3); }
select.sort, .sort-select {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: var(--ink);
}
.filters-toggle { display: none; }
.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 50px;
    font-size: 14px;
    background: #fff;
}
.search-input:focus { outline: none; border-color: var(--ink); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input {
    flex: 1; padding: 10px; border: 1px solid var(--line);
    border-radius: var(--radius); font-size: 13px; background: #fff;
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(2rem, 5vw, 4rem) 0;
    align-items: flex-start;
}

/* Gallery: vertical thumbs strip + main image side-by-side */
.product-gallery {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    max-width: 100%;
}
.gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 560px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    grid-column: 2;
    grid-row: 1;
    cursor: zoom-in;
}
.gallery-main img,
.gallery-main iframe,
.gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: var(--surface-2);
}
.gallery-main .zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 50px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    letter-spacing: 0.05em;
}
.gallery-main:hover .zoom-hint { opacity: 1; }

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-column: 1;
    grid-row: 1;
    max-height: 560px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    /* Custom thin scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.gallery-thumbs::-webkit-scrollbar { width: 4px; }
.gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.gthumb {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: opacity 0.2s, border-color 0.2s, transform 0.15s;
    background: var(--surface-2);
    padding: 0;
}
.gthumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.gthumb:hover {
    opacity: 1;
    transform: scale(1.05);
}
.gthumb.active {
    opacity: 1;
    border-color: var(--ink);
}
.gthumb-video::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.35);
    pointer-events: none;
}
.gthumb-video .play-icon {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    pointer-events: none;
}

/* Lightbox overlay for full-screen zoom */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox img {
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 4px;
}
.gallery-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 22px;
    backdrop-filter: blur(8px);
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.25); }
.product-detail-info { position: sticky; top: 90px; padding-top: 1rem; }
.product-detail-info .breadcrumb {
    font-size: 12px;
    color: var(--ink-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.product-detail-info .breadcrumb a { color: var(--ink-3); }
.product-detail-info h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.detail-prices {
    display: flex; align-items: baseline; gap: 12px;
    margin: 1.25rem 0;
}
.detail-prices .price { font-size: clamp(1.5rem, 3vw, 1.85rem); font-weight: 600; font-family: var(--serif); }
.detail-prices .price-old { font-size: 1.125rem; }
.detail-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--success);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(46,125,50,0.08);
    border-radius: 50px;
}
.detail-stock.out { color: var(--danger); background: rgba(198,40,40,0.08); }
.detail-desc {
    color: var(--ink-2);
    line-height: 1.7;
    margin: 1.5rem 0;
}
.qty-row {
    display: flex; align-items: center;
    gap: 12px; margin: 2rem 0 1.5rem;
    flex-wrap: wrap;
}
.qty-input {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
}
.qty-input button {
    width: var(--tap); height: var(--tap);
    font-size: 16px;
    transition: background 0.2s;
}
.qty-input button:hover { background: var(--surface-2); }
.qty-input input {
    width: 56px; text-align: center;
    border: none;
    font-size: 14px; font-weight: 600;
    background: transparent;
}
.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--line);
    margin-top: 3rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tab-head {
    padding: 16px 0; margin-right: 2rem;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-3);
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    cursor: pointer;
}
.tab-head.active { color: var(--ink); border-color: var(--ink); }
.tab-content { padding: 2rem 0; }
.tab-pane { display: none; line-height: 1.75; color: var(--ink-2); }
.tab-pane.active { display: block; }

/* ============================================================
   CART
   ============================================================ */
.page-head {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: 0.5rem; }

.cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(2rem, 4vw, 3.5rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
}
.cart-items {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.cart-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}
.cart-item:first-of-type { padding-top: 0; }
.cart-item-img {
    display: block;
    width: 110px;
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
}
.cart-item-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.cart-item-name {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    overflow-wrap: break-word;
}
.cart-item-name a:hover { color: var(--accent); opacity: 1; }
.cart-item-meta {
    font-size: 13px;
    color: var(--ink-3);
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-variant-numeric: tabular-nums lining-nums;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 8px;
    flex-wrap: wrap;
}
.cart-item .qty-input input {
    width: 64px;
    text-align: center;
    font-feature-settings: "tnum" 1, "lnum" 1;
}
.cart-item-remove {
    font-size: 13px;
    color: var(--ink-3);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
    cursor: pointer;
}
.cart-item-remove:hover { color: var(--accent); opacity: 1; }
.cart-item-total {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-variant-numeric: tabular-nums lining-nums;
    align-self: flex-start;
}
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.cart-summary {
    background: var(--surface-2);
    padding: 2rem;
    border-radius: var(--radius);
    position: sticky;
    top: 90px;
    height: max-content;
}
.cart-summary h3 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--ink);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--line);
}
.coupon-form { display: flex; gap: 0.5rem; margin: 1.5rem 0; }
.coupon-form input {
    flex: 1; padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 50px;
    font-size: 13px;
    background: #fff;
}

.empty-state {
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) 1rem;
}
.empty-state .ic { font-size: 56px; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--ink-2); margin-bottom: 2rem; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
}
.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.25rem;
}
.form-card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--ink);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color 0.2s;
    min-height: var(--tap);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--ink);
}
.payment-method {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.payment-method:hover { border-color: var(--ink); }
.payment-method.active { border-color: var(--ink); background: var(--surface-2); }
.payment-method input { accent-color: var(--accent); width: 18px; height: 18px; }
.payment-method h5 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.payment-method p { font-size: 12px; color: var(--ink-3); margin: 0; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 14px;
    border: 1px solid;
}
.alert-success { background: rgba(46,125,50,0.06); color: var(--success); border-color: rgba(46,125,50,0.2); }
.alert-error { background: rgba(198,40,40,0.06); color: var(--danger); border-color: rgba(198,40,40,0.2); }
.alert-info { background: rgba(25,118,210,0.06); color: #1565c0; border-color: rgba(25,118,210,0.2); }
.alert-warning { background: rgba(200,120,0,0.08); color: var(--warning); border-color: rgba(200,120,0,0.2); }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 200px);
}
.auth-side {
    background: var(--ink);
    color: #fff;
    padding: clamp(2.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.auth-side::before {
    content: "";
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 30 L30 60 M30 30 L60 30' stroke='%23ffffff' stroke-width='0.3' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.5;
}
.auth-side h2 { color: #fff; margin-bottom: 1rem; }
.auth-side p { color: rgba(255,255,255,0.7); position: relative; }
.auth-form {
    padding: clamp(2.5rem, 5vw, 4rem);
    display: flex; flex-direction: column;
    justify-content: center;
}
.auth-form h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.auth-form .sub { color: var(--ink-2); margin-bottom: 2rem; }

/* Prominent register CTA on login page */
.register-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff !important;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 6px 20px rgba(184, 61, 94, 0.25);
    position: relative;
    overflow: hidden;
}
.register-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23ffffff' stroke-width='0.4' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
}
.register-cta:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(184, 61, 94, 0.35);
}
.register-cta-icon {
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    position: relative;
}
.register-cta-content { flex: 1; min-width: 0; position: relative; }
.register-cta-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}
.register-cta-sub {
    font-size: 12.5px;
    opacity: 0.92;
    line-height: 1.4;
}
.register-cta-arrow {
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s;
    position: relative;
}
.register-cta:hover .register-cta-arrow { transform: translateX(4px); }

/* ============================================================
   ORDER TRACKING TIMELINE
   ============================================================ */
.track-timeline {
    display: flex;
    align-items: stretch;
    padding: 2rem 0;
    margin: 2rem 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
}
.track-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}
.track-step-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--ink-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 2px solid var(--line);
    margin-bottom: 0.875rem;
    transition: all 0.3s;
    flex-shrink: 0;
}
.track-step.done .track-step-icon {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 700;
}
.track-step.current .track-step-icon {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    box-shadow: 0 0 0 6px rgba(26, 26, 26, 0.1);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(26, 26, 26, 0.1); }
    50% { box-shadow: 0 0 0 12px rgba(26, 26, 26, 0.05); }
}
.track-step-label {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-3);
    line-height: 1.2;
    margin-bottom: 4px;
}
.track-step.done .track-step-label,
.track-step.current .track-step-label { color: var(--ink); }
.track-step-desc {
    font-size: 11px;
    color: var(--ink-3);
    line-height: 1.4;
    max-width: 130px;
}
.track-step-time {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.track-connector {
    flex: 0 0 auto;
    width: clamp(20px, 4vw, 60px);
    height: 2px;
    background: var(--line);
    align-self: flex-start;
    margin-top: 28px;
    transition: background 0.3s;
}
.track-connector.done { background: var(--accent); }

@media (max-width: 720px) {
    .track-timeline {
        flex-direction: column;
        padding: 1.75rem 1.25rem;
        gap: 0;
    }
    .track-step {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 0.5rem 0;
        align-items: flex-start;
    }
    .track-step-icon {
        margin-bottom: 0;
        width: 44px; height: 44px;
        font-size: 18px;
    }
    .track-step-content {
        flex: 1;
        padding-top: 8px;
    }
    .track-step-desc { max-width: none; }
    .track-connector {
        width: 2px;
        height: 24px;
        margin: 0 0 0 21px;
        align-self: flex-start;
    }
}

/* ============================================================
   ACCOUNT
   ============================================================ */
.account-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    padding: clamp(2rem, 4vw, 3rem) 0;
}
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--ink-2);
    border-radius: var(--radius-sm);
    min-height: var(--tap);
}
.account-nav a:hover { background: var(--surface-2); color: var(--ink); opacity: 1; }
.account-nav a.active { background: var(--ink); color: #fff; font-weight: 600; }
.account-content { padding: 0; }

/* ============================================================
   SHOWCASE POPUP
   ============================================================ */
.showcase-popup {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    max-width: 360px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    z-index: 1000;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s, visibility 0.4s;
}
.showcase-popup.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.showcase-popup .close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--ink-3);
    border-radius: 50%;
}
.showcase-popup .close:hover { background: var(--surface-2); color: var(--ink); }
.showcase-popup .pop-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.showcase-popup h4 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.showcase-popup p {
    font-size: 13px;
    color: var(--ink-2);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.showcase-popup .price-tag {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--ink);
    color: #d8d2c8;
    padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
    margin-top: var(--section);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1.5fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .logo { color: #fff; font-size: 1.75rem; margin-bottom: 1rem; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-col h5 {
    font-family: var(--sans);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.footer-col a {
    display: block;
    padding: 6px 0;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
}
.footer-col a:hover { color: #fff; opacity: 1; }
.footer-newsletter p { font-size: 13px; color: rgba(255,255,255,0.65); margin: 0.5rem 0 1rem; }
.footer-newsletter form { display: flex; }
.footer-newsletter input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 50px 0 0 50px;
    font-size: 13px;
    border-right: none;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter button {
    padding: 12px 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 0 50px 50px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.footer-newsletter button:hover { background: var(--accent-2); }
.socials { display: flex; gap: 10px; margin-top: 1.25rem; }
.socials a {
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: 0.2s;
}
.socials a:hover { background: #fff; color: var(--ink); border-color: #fff; opacity: 1; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3rem; }
.text-center { text-align: center; }
.text-muted { color: var(--ink-2); }
.hidden { display: none; }
.tag-chip {
    display: inline-block;
    background: var(--surface-2);
    color: var(--ink-2);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 2px;
}

/* Order code / SKU / reference numbers — always sans with clean lining numerals */
.order-code {
    font-family: var(--sans) !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-variant-numeric: tabular-nums lining-nums;
    display: inline-block;
}
.order-code-lg {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .header-inner { grid-template-columns: auto 1fr auto; }
    .nav-main { gap: 1.5rem; }
    .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 2rem; }
    .footer-col:nth-child(4) { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); display: none; }
    .shop-grid { grid-template-columns: 200px 1fr; }
    .cart-grid { grid-template-columns: 1fr 320px; }
    .checkout-grid { grid-template-columns: 1.2fr 1fr; }
}

/* ============================================================
   RESPONSIVE — TABLET / MOBILE (≤900px)
   ============================================================ */
@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }
    .nav-main {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem var(--pad) 2rem;
        gap: 0;
        border-top: 1px solid var(--line);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .nav-main.open { display: flex; }
    .nav-main a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 16px;
        width: 100%;
    }
    .nav-main a:last-child { border-bottom: none; }
    .nav-main a::after { display: none; }
    .header-left { gap: 0; }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: var(--tap); height: var(--tap);
    }
    .search-trigger { display: inline-flex; }
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-image { max-width: 480px; margin: 0 auto; }
    .hero-copy { text-align: center; margin: 0 auto; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .product-detail { grid-template-columns: 1fr; }
    .product-detail-info { position: static; padding-top: 0; }
    /* Mobile gallery: stack with horizontal thumb scroll below main image */
    .product-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gallery-main {
        grid-column: 1;
        grid-row: 1;
        max-height: 460px;
    }
    .gallery-thumbs {
        grid-column: 1;
        grid-row: 2;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }
    .gthumb {
        width: 64px;
        height: 64px;
    }
    .shop-grid { grid-template-columns: 1fr; }
    .filters {
        position: static;
        background: var(--surface);
        padding: 1.5rem;
        border-radius: var(--radius);
        border: 1px solid var(--line);
        margin-bottom: 1.5rem;
    }
    .filters.collapsed { display: none; }
    .filters-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 14px 18px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-bottom: 1rem;
    }
    .cart-grid { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .checkout-grid { grid-template-columns: 1fr; }
    .auth-wrap { grid-template-columns: 1fr; min-height: auto; }
    .auth-side { padding: 3rem 2rem; min-height: 200px; text-align: center; }
    .account-grid { grid-template-columns: 1fr; }
    .account-nav { flex-direction: row; flex-wrap: wrap; overflow-x: auto; padding-bottom: 0.5rem; }
    .account-nav a { white-space: nowrap; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-col:first-child, .footer-col:last-child { grid-column: 1 / -1; }
    .form-row { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .value-props { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
    .section-head { align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤640px)
   ============================================================ */
@media (max-width: 640px) {
    .announce { font-size: 11px; padding: 8px 12px; }
    .header-inner { padding: 0.875rem 0; }
    .logo { font-size: 1.35rem; }
    .icon-btn { width: 40px; height: 40px; }

    .hero { padding: 1.5rem 0 var(--section); }
    .hero-grid { gap: 2rem; }
    .hero-cta { flex-direction: column; align-items: stretch; max-width: 280px; margin: 0 auto; }
    .hero-cta .btn { width: 100%; }

    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .product-info { padding: 0.875rem 1rem 1rem; gap: 3px; }
    .product-name { font-size: 14px; line-height: 1.3; }
    .price { font-size: 14px; }
    .product-fav { width: 32px; height: 32px; top: 8px; right: 8px; }

    .categories-grid { grid-template-columns: 1fr; gap: 1rem; }
    .cat-card { aspect-ratio: 16/10; }

    .value-props { grid-template-columns: 1fr 1fr; gap: 1.5rem 0.5rem; padding: 3rem 0; }
    .vp { padding: 0; }
    .vp .ic { font-size: 22px; margin-bottom: 0.5rem; }
    .vp h4 { font-size: 12px; }
    .vp p { font-size: 12px; }

    .cart-item { grid-template-columns: 80px minmax(0, 1fr); }
    .cart-item-img, .cart-item-img { width: 80px; }
    .cart-item-total {
        grid-column: 2;
        margin-top: 4px;
        font-size: 1rem;
    }
    .cart-summary { padding: 1.5rem; }
    .coupon-form { flex-direction: column; }
    .coupon-form button { width: 100%; }
    .form-card { padding: 1.5rem; }
    .showcase-popup { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-col:first-child, .footer-col:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* Tighten container padding */
    :root { --pad: 1.25rem; }
    .section { padding-top: 3rem; padding-bottom: 3rem; }
    .section-head { margin-bottom: 1.5rem; }
    .page-head { padding: 2rem 0 1.5rem; }
    .product-detail { gap: 1.5rem; padding: 1.5rem 0; }
    .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .tab-headers { margin-top: 2rem; }
    .tab-head { font-size: 12px; padding: 14px 0; margin-right: 1.25rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .header, .footer, .announce, .showcase-popup, .menu-toggle, .icon-btn,
    .product-quick, .product-fav, .nav-main { display: none !important; }
    body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
