/* ============================================================
   MEMORY MERCHANT — Boutique Collectibles CSS
   Mobile-first, responsive design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --cream:       #FAF7F2;
    --parchment:   #F0EBE1;
    --sand:        #D8CFC0;
    --stone:       #A39788;
    --walnut:      #5C4F3C;
    --espresso:    #3A3026;
    --ink:         #1E1A15;
    --gold:        #B8963E;
    --gold-light:  #D4B66A;
    --sage:        #7A8B6F;
    --rust:        #A65D3F;
    --white:       #FFFFFF;
    --red:         #C44B4B;
    --green:       #4A7B5A;
    --blue-muted:  #5B7B9A;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Outfit', -apple-system, sans-serif;
    --container: 1200px;
    --gap: 1.5rem;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 3px rgba(30,26,21,0.06);
    --shadow:    0 2px 8px rgba(30,26,21,0.08);
    --shadow-lg: 0 4px 20px rgba(30,26,21,0.12);
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body); font-weight: 400; color: var(--espresso);
    background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--walnut); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ── Container ─────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 860px; margin: 0 auto; padding: 0 1rem; }

/* ── Typography ────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: 1.8rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin-bottom: 0.85rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--stone); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-display { font-family: var(--font-display); }

/* ── Buttons ───────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.6rem 1.2rem; font-weight: 500; font-size: 0.85rem;
    border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; transition: all 0.2s; text-decoration: none; line-height: 1.4;
    white-space: nowrap;
}
.btn-primary { background: var(--walnut); color: var(--cream); border-color: var(--walnut); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--white); }
.btn-outline { background: transparent; color: var(--walnut); border-color: var(--sand); }
.btn-outline:hover { border-color: var(--walnut); background: var(--parchment); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 0.95rem; }
.btn-danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-danger:hover { opacity: 0.9; color: var(--white); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ── Forms ──────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.85rem; margin-bottom: 0.3rem; color: var(--walnut); }
.form-control {
    width: 100%; padding: 0.6rem 0.75rem;
    border: 1px solid var(--sand); border-radius: var(--radius);
    background: var(--white); color: var(--espresso); transition: border-color 0.2s;
    font-size: 0.9rem;
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(184,150,62,0.15); }
select.form-control { appearance: auto; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 0; }
.form-hint { font-size: 0.72rem; color: var(--stone); margin-top: 0.2rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--gold); }

/* ── Header / Nav ──────────────────────── */
.site-header {
    background: var(--white); border-bottom: 1px solid var(--parchment);
    position: sticky; top: 0; z-index: 100;
}
.header-top {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0; gap: 0.75rem; flex-wrap: wrap;
}
.logo {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
    color: var(--ink); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--gold); }
.logo img { max-height: 40px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-actions a { color: var(--walnut); font-size: 0.8rem; font-weight: 400; white-space: nowrap; }
.header-actions a:hover { color: var(--gold); }
.cart-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold); color: var(--white);
    width: 1.1rem; height: 1.1rem; border-radius: 50%;
    font-size: 0.6rem; font-weight: 600; margin-left: 0.15rem; vertical-align: super;
}

.nav-bar { border-top: 1px solid var(--parchment); }
.nav-list { display: flex; flex-wrap: wrap; gap: 0; list-style: none; justify-content: center; }
.nav-list li a {
    display: block; padding: 0.5rem 0.7rem; font-size: 0.8rem; font-weight: 400;
    color: var(--walnut); transition: all 0.2s; border-bottom: 2px solid transparent;
}
.nav-list li a:hover, .nav-list li a.active { color: var(--gold); border-bottom-color: var(--gold); }

.mobile-menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    font-size: 1.4rem; color: var(--walnut); padding: 0.25rem;
}

/* ── Search Bar ────────────────────────── */
.search-bar {
    display: flex; align-items: center; background: var(--parchment);
    border-radius: var(--radius); overflow: hidden; flex: 1; max-width: 280px;
}
.search-bar input {
    flex: 1; padding: 0.45rem 0.65rem; border: none; background: transparent;
    font-size: 0.82rem; color: var(--espresso); outline: none;
}
.search-bar button {
    padding: 0.45rem 0.6rem; border: none; background: transparent;
    color: var(--stone); cursor: pointer;
}
.search-bar button:hover { color: var(--gold); }

/* ── Hero ──────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--parchment) 0%, var(--sand) 100%);
    padding: 2.5rem 0; text-align: center; border-bottom: 1px solid var(--sand);
    position: relative; overflow: hidden;
}
.hero.has-image {
    background-size: cover; background-position: center; min-height: 300px;
    display: flex; align-items: center; justify-content: center;
}
.hero.has-image::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(30,26,21,0.35), rgba(30,26,21,0.55));
}
.hero.has-image .container { position: relative; z-index: 1; }
.hero.has-image h1, .hero.has-image p { color: var(--white); text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--ink); }
.hero p { font-size: 1rem; color: var(--stone); max-width: 540px; margin: 0 auto 1.25rem; }

/* ── Product Grid ──────────────────────── */
.product-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
.product-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card-img { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--parchment); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 0.65rem; }
.product-card-title {
    font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
    line-height: 1.3; margin-bottom: 0.25rem; color: var(--ink);
}
.product-card-title a { color: inherit; }
.product-card-title a:hover { color: var(--gold); }
.product-card-meta { font-size: 0.7rem; color: var(--stone); margin-bottom: 0.25rem; }
.product-card-price { font-weight: 600; font-size: 0.95rem; color: var(--walnut); }
.product-card-price .compare-at {
    text-decoration: line-through; color: var(--stone); font-weight: 400; font-size: 0.78rem; margin-left: 0.3rem;
}
.product-card .sold-out {
    position: absolute; top: 0.5rem; right: 0.5rem;
    background: var(--red); color: var(--white);
    padding: 0.15rem 0.5rem; border-radius: var(--radius);
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}

/* ── Badges ────────────────────────────── */
.badge {
    display: inline-block; padding: 0.12rem 0.45rem;
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em;
    border-radius: var(--radius); text-transform: uppercase;
}
.badge-new       { background: #E8F5E9; color: #2E7D32; }
.badge-excellent  { background: #E3F2FD; color: #1565C0; }
.badge-good       { background: #FFF8E1; color: #F57F17; }
.badge-fair       { background: #FFF3E0; color: #E65100; }
.badge-asis       { background: #FCE4EC; color: #C62828; }
.badge-pending    { background: #FFF8E1; color: #F57F17; }
.badge-active     { background: #E8F5E9; color: #2E7D32; }
.badge-draft      { background: #EFEBE9; color: #5D4037; }
.badge-paid       { background: #E3F2FD; color: #1565C0; }
.badge-processing { background: #FFF8E1; color: #F57F17; }
.badge-fulfilled  { background: #E8F5E9; color: #2E7D32; }
.badge-cancelled  { background: #EFEBE9; color: #5D4037; }
.badge-archived   { background: #EFEBE9; color: #5D4037; }
.badge-approved   { background: #E3F2FD; color: #1565C0; }
.badge-void       { background: #FCE4EC; color: #C62828; }
.badge-suspended  { background: #FCE4EC; color: #C62828; }

/* ── Product Detail ────────────────────── */
.product-detail { padding: 1.5rem 0; }
.product-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
.product-gallery { position: static; }
.product-main-image {
    aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--parchment); margin-bottom: 0.5rem;
}
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
.product-thumbnails img {
    width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius);
    border: 2px solid var(--parchment); cursor: pointer; flex-shrink: 0;
}
.product-thumbnails img.active, .product-thumbnails img:hover { border-color: var(--gold); }
.product-title { font-size: 1.6rem; margin-bottom: 0.5rem; }
.product-price { font-size: 1.4rem; font-weight: 700; color: var(--walnut); margin-bottom: 0.75rem; }
.product-price .compare-at { font-size: 0.95rem; color: var(--stone); text-decoration: line-through; font-weight: 400; }
.product-meta-table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.product-meta-table tr { border-bottom: 1px solid var(--parchment); }
.product-meta-table td { padding: 0.45rem 0; font-size: 0.85rem; }
.product-meta-table td:first-child { font-weight: 500; color: var(--stone); width: 35%; }
.product-story {
    margin: 1.25rem 0; padding: 1rem; background: var(--parchment);
    border-radius: var(--radius-lg); border-left: 3px solid var(--gold);
}
.product-story h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.product-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.75rem 0; }
.tag {
    display: inline-block; padding: 0.18rem 0.55rem;
    background: var(--parchment); color: var(--walnut);
    font-size: 0.7rem; font-weight: 500; border-radius: 50px; transition: all 0.2s;
}
.tag:hover { background: var(--sand); color: var(--ink); }

/* ── Cart ──────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 0.75rem; font-weight: 500; color: var(--stone); padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--sand); }
.cart-table td { padding: 0.75rem 0.4rem; border-bottom: 1px solid var(--parchment); vertical-align: middle; font-size: 0.85rem; }
.cart-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); }
.cart-item-title { font-weight: 500; font-size: 0.85rem; }
.cart-summary { background: var(--parchment); border-radius: var(--radius-lg); padding: 1.25rem; margin-top: 1.5rem; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.9rem; }
.cart-summary-total { font-size: 1.1rem; font-weight: 600; border-top: 2px solid var(--sand); margin-top: 0.4rem; padding-top: 0.6rem; }

/* ── Flash Messages ────────────────────── */
.flash { padding: 0.65rem 0.85rem; border-radius: var(--radius); margin-bottom: 0.85rem; font-size: 0.85rem; }
.flash-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.flash-error   { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.flash-info    { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }

/* ── Section Headers ───────────────────── */
.section { padding: 2rem 0; }
.section-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 1.25rem; border-bottom: 1px solid var(--parchment); padding-bottom: 0.6rem;
}
.section-header h2 { margin: 0; }

/* ── Category Grid ─────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.category-card {
    text-align: center; padding: 1.25rem 0.75rem;
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--parchment); transition: all 0.2s;
}
.category-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.category-card h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.category-card p { font-size: 0.75rem; color: var(--stone); margin: 0; }

/* ── Filters ───────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.filters-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-group { flex: 1; min-width: 130px; margin-bottom: 0.5rem; }
.filter-group h4 { font-size: 0.78rem; font-weight: 600; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--stone); }
.filter-group select, .filter-group input { width: 100%; padding: 0.4rem 0.5rem; font-size: 0.82rem; }

/* ── Pagination ────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 0.3rem; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: var(--radius);
    font-size: 0.8rem; border: 1px solid var(--sand); color: var(--walnut); transition: all 0.2s;
}
.pagination a:hover { background: var(--parchment); border-color: var(--walnut); color: var(--walnut); }
.pagination .active { background: var(--walnut); color: var(--cream); border-color: var(--walnut); }

/* ── Footer ────────────────────────────── */
.site-footer { background: var(--ink); color: var(--sand); padding: 2rem 0 1.25rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.footer-col h4 { color: var(--cream); font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-col p { font-size: 0.8rem; line-height: 1.7; color: var(--stone); }
.footer-col a { color: var(--sand); font-size: 0.8rem; display: block; padding: 0.12rem 0; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    text-align: center; padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.75rem; color: var(--stone);
}

/* ── Checkout ──────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
.order-summary-sidebar { background: var(--parchment); padding: 1.25rem; border-radius: var(--radius-lg); }

/* ── Account ───────────────────────────── */
.account-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; }
.account-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.75rem; }
.account-nav a {
    padding: 0.4rem 0.65rem; font-size: 0.82rem;
    border-radius: var(--radius); color: var(--walnut);
    background: var(--white); border: 1px solid var(--parchment);
}
.account-nav a:hover, .account-nav a.active { background: var(--parchment); color: var(--gold); border-color: var(--gold); }

/* ── Stat Cards ────────────────────────── */
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat-card {
    background: var(--white); padding: 1rem;
    border-radius: var(--radius-lg); border: 1px solid var(--parchment); text-align: center;
}
.stat-card .stat-value { font-size: 1.4rem; font-weight: 700; font-family: var(--font-display); color: var(--ink); }
.stat-card .stat-label { font-size: 0.65rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Admin ─────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.admin-sidebar {
    background: var(--ink); padding: 1.25rem 0; display: none;
    position: fixed; top: 0; left: 0; width: 240px; height: 100vh;
    z-index: 200; overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}
.admin-sidebar.open { display: block; }
.admin-sidebar .logo { display: block; padding: 0 1rem 1rem; font-size: 1.1rem; color: var(--cream); }
.admin-sidebar .logo span { color: var(--gold); }
.admin-nav a {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1rem; font-size: 0.82rem; color: var(--sand); transition: all 0.15s;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.06); color: var(--gold); }
.admin-content { padding: 1rem; background: var(--cream); }
.admin-content h1 { font-size: 1.4rem; margin-bottom: 1rem; }
.admin-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 199;
}
.admin-overlay.open { display: block; }

/* ── Data Tables ───────────────────────── */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th { background: var(--parchment); padding: 0.5rem 0.55rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--stone); text-align: left; }
.data-table td { padding: 0.5rem 0.55rem; font-size: 0.8rem; border-bottom: 1px solid var(--parchment); }
.data-table tr:hover td { background: rgba(184,150,62,0.03); }
.data-table .actions { white-space: nowrap; }
.data-table .actions a, .data-table .actions button { margin-right: 0.3rem; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -1rem; padding: 0 1rem; }

/* ── Breadcrumbs ───────────────────────── */
.breadcrumbs { padding: 0.75rem 0; font-size: 0.78rem; color: var(--stone); }
.breadcrumbs a { color: var(--stone); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { margin: 0 0.3rem; }

/* ── Utility ───────────────────────────── */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.empty-state { text-align: center; padding: 2rem 1rem; color: var(--stone); }
.empty-state h3 { margin-bottom: 0.5rem; }
.card { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); }

/* ── Responsive Show/Hide ─────────────── */
.mobile-only { display: block; }
.desktop-only { display: none; }
@media (min-width: 769px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: block !important; }
}

/* ── Mobile Nav ────────────────────────── */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-list { display: none; flex-direction: column; padding: 0.4rem 0; }
    .nav-list.open { display: flex; }
    .nav-list li a { padding: 0.45rem 0; }
    .header-actions { gap: 0.5rem; }
    .header-actions a { font-size: 0.75rem; }
    .search-bar { max-width: 100%; order: 3; flex-basis: 100%; margin-top: 0.4rem; }
    .form-row { flex-direction: column; gap: 0; }
    .form-row > * { min-width: 100%; }
    h1 { font-size: 1.6rem; }
    .flex-between { flex-wrap: wrap; gap: 0.5rem; }
}

/* ── Tablet+ ───────────────────────────── */
@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-cards { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .product-card-body { padding: 0.85rem; }
    .product-card-title { font-size: 1rem; }
}

/* ── Desktop ───────────────────────────── */
@media (min-width: 769px) {
    .container { padding: 0 1.5rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero { padding: 3.5rem 0; }
    .hero p { font-size: 1.1rem; }
    .mobile-menu-toggle { display: none; }
    .nav-list { display: flex !important; }
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
    .product-card-body { padding: 1rem; }
    .product-card-title { font-size: 1.05rem; }
    .product-layout { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .product-gallery { position: sticky; top: 5rem; }
    .catalog-layout { grid-template-columns: 220px 1fr; gap: 2rem; }
    .filters-sidebar { position: sticky; top: 5rem; display: block; }
    .filter-group { min-width: auto; margin-bottom: 1rem; }
    .checkout-layout { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
    .order-summary-sidebar { position: sticky; top: 5rem; }
    .account-layout { grid-template-columns: 180px 1fr; gap: 2rem; padding: 2.5rem 0; }
    .account-nav { display: block; }
    .account-nav a { display: block; margin-bottom: 0.2rem; border: none; background: none; }
    .category-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .section { padding: 3rem 0; }
    /* Admin desktop sidebar */
    .admin-layout { grid-template-columns: 220px 1fr; }
    .admin-sidebar { display: block !important; position: sticky; top: 0; width: auto; box-shadow: none; }
    .admin-content { padding: 2rem; }
    .admin-content h1 { font-size: 1.8rem; }
    .admin-sidebar .close-btn { display: none !important; }
    .form-row { flex-direction: row; gap: 1rem; }
    .form-row > * { min-width: 0; }
}

/* ── Large Desktop ─────────────────────── */
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .stat-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
