/* RichBrand — design tokens: near-black espresso ground, bone text, brass accent. */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Work+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --ink: #0A0A0A;
    --raised: #151515;
    --raised2: #1D1D1D;
    --bone: #F5F5F3;
    --muted: #8C8C8C;
    --line: #2B2B2B;
    --brass: #B0B0B0;
    --brass-bright: #EDEDED;
    --sage: #4CAF7D;
    --rust: #E0912B;
    --shipped: #6BA3D6;
    --returned: #7C9CBF;
    --ink-rgb: 10,10,10;
    --grain-rgb: 242,237,228;
    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* Light mode - opt-in via the header toggle, saved per-device. Dark stays
   the default look since that's the site's established identity. */
html[data-theme="light"] {
    --ink: #FAFAF8;
    --raised: #FFFFFF;
    --raised2: #F0EFEA;
    --bone: #141414;
    --muted: #6B6B6B;
    --line: #E0DED8;
    --brass: #4A4A4A;
    --brass-bright: #0F0F0F;
    --sage: #2F8B5C;
    --rust: #C06B12;
    --shipped: #2E6FA3;
    --returned: #52678A;
    --ink-rgb: 250,250,248;
    --grain-rgb: 20,20,20;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--ink);
    color: var(--bone);
    font-family: var(--font-body);
    background-image: radial-gradient(circle at 1px 1px, rgba(var(--grain-rgb), 0.035) 1px, transparent 0);
    background-size: 22px 22px;
}

::selection { background: var(--brass); color: var(--ink); }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 2px; }

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

.wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px; }

.uppercase-label {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 12px;
}

.font-display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.font-mono { font-family: var(--font-mono); }
.text-brass { color: var(--brass); }
.text-brass-bright { color: var(--brass-bright); }
.text-muted { color: var(--muted); }
.text-sage { color: var(--sage); }
.text-rust { color: var(--rust); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(var(--ink-rgb), 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.header-search {
    display: none;
    align-items: center; flex: 1; max-width: 280px;
    border: 1px solid var(--line); background: var(--raised);
}
@media (min-width: 900px) { .header-search { display: flex; } }
.header-search input {
    flex: 1; min-width: 0; background: transparent; border: none; color: var(--bone);
    padding: 10px 12px; font-family: var(--font-body); font-size: 14px;
}
.header-search input:focus { outline: none; }
.header-search button {
    background: none; border: none; color: var(--muted); padding: 0 12px; height: 100%; cursor: pointer;
    display: flex; align-items: center; transition: color 0.2s;
}
.header-search button:hover { color: var(--brass-bright); }
.search-icon-link { display: flex; align-items: center; color: var(--muted); transition: color 0.2s; }
.search-icon-link:hover { color: var(--brass-bright); }
@media (min-width: 900px) { .search-icon-link { display: none; } }
.search-form { display: flex; max-width: 420px; border: 1px solid var(--line); background: var(--raised); }
.search-form input {
    flex: 1; min-width: 0; background: transparent; border: none; color: var(--bone);
    padding: 12px 16px; font-family: var(--font-body); font-size: 14px;
}
.search-form input:focus { outline: none; }
.search-form button {
    background: var(--brass); color: var(--ink); border: none; padding: 0 20px;
    text-transform: uppercase; letter-spacing: 0.15em; font-size: 12px; font-weight: 600; cursor: pointer;
    transition: background 0.2s;
}
.search-form button:hover { background: var(--brass-bright); }
.brand-mark {
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.logo-img { height: 44px; width: auto; display: block; flex-shrink: 0; }
.logo-theme-light { display: none; }
html[data-theme="light"] .logo-theme-dark { display: none; }
html[data-theme="light"] .logo-theme-light { display: block; }
.brand-mark .badge {
    width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--brass);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); color: var(--brass-bright); font-size: 14px;
    transition: background 0.2s, color 0.2s;
}
.brand-mark:hover .badge { background: var(--brass); color: var(--ink); }
.brand-mark .name { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: 0.28em; }

.main-nav { display: none; align-items: center; gap: 26px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.main-nav a { white-space: nowrap; }
.main-nav a:hover { color: var(--bone); }
@media (min-width: 768px) { .main-nav { display: flex; } }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 6px; }
.nav-dropdown-trigger svg { transition: transform 0.2s; }
.nav-dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    margin-top: 0; padding-top: 14px; min-width: 180px;
    opacity: 0; visibility: hidden; transition: opacity 0.15s;
    z-index: 50;
}
.nav-dropdown-menu-inner {
    background: var(--raised); border: 1px solid var(--line); padding: 8px 0;
}
.nav-dropdown-menu a {
    display: block; padding: 10px 20px; font-size: 13px; letter-spacing: 0.15em; color: var(--muted); white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--brass-bright); background: var(--raised2); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }

.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; }
.lang-switch a { color: var(--muted); transition: color 0.2s; }
.lang-switch a:hover { color: var(--bone); }
.lang-switch a.active { color: var(--brass-bright); font-weight: 600; }
.lang-switch span { color: var(--line); }

.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--raised); color: var(--muted); cursor: pointer; flex-shrink: 0;
    transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--brass-bright); border-color: var(--brass); }
.theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block; }

.cart-link {
    position: relative; display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); padding: 8px 16px;
    font-size: 14px; text-transform: uppercase; letter-spacing: 0.28em;
    transition: border-color 0.2s;
}
.cart-link:hover { border-color: var(--brass); }
.cart-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; font-size: 11px; border-radius: 999px;
    background: var(--brass); color: var(--ink); font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; border: none; cursor: pointer;
    background: var(--brass); color: var(--ink);
    padding: 14px 32px; text-transform: uppercase; letter-spacing: 0.28em;
    font-size: 14px; font-weight: 500; font-family: var(--font-body);
    transition: background 0.2s;
}
.btn:hover { background: var(--brass-bright); }
.btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-outline {
    display: inline-block; background: transparent; border: 1px solid var(--line);
    color: var(--muted); padding: 12px 24px; text-transform: uppercase; letter-spacing: 0.28em;
    font-size: 13px; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.btn-outline:hover { color: var(--bone); border-color: var(--bone); }
.btn-block { width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { padding: 80px 24px 96px; display: grid; gap: 48px; align-items: center; }
@media (min-width: 768px) { .hero .wrap { grid-template-columns: 1fr 1fr; } }
.stitch { width: 64px; height: 1px; margin-bottom: 24px; background-image: repeating-linear-gradient(to right, rgba(176,141,87,0.55) 0, rgba(176,141,87,0.55) 6px, transparent 6px, transparent 12px); }
.hero h1 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; font-size: 44px; line-height: 1.1; margin: 0 0 24px; }
.hero h1 em { color: var(--brass-bright); font-style: normal; }
.hero p.lead { color: var(--muted); max-width: 420px; margin: 0 0 32px; line-height: 1.6; }
.hero-image { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-image-logo { display: flex; align-items: center; justify-content: center; padding: 0; }
.hero-image-logo img { width: 100%; height: auto; object-fit: contain; }
@media (max-width: 767px) { .hero-image-logo { display: none; } }

/* ---------- Product grid ---------- */
.section { max-width: 1152px; margin: 0 auto; padding: 80px 24px; }
@media (max-width: 640px) {
    .section { padding: 32px 20px 64px; }
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-size: 26px; margin: 8px 0 0; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.product-card .thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .cat { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.28em; color: var(--muted); margin-bottom: 4px; }
.product-card .name { font-family: var(--font-display); font-size: 15px; margin: 0; }
.product-card .price { font-family: var(--font-mono); font-size: 14px; color: var(--brass-bright); margin-top: 4px; }
.was { color: var(--muted); text-decoration: line-through; margin-left: 8px; }
.pill { position: absolute; top: 12px; left: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.28em; padding: 4px 8px; }
.pill-sale { background: var(--rust); color: var(--bone); }
.pill-low { background: var(--raised2); border: 1px solid var(--brass); color: var(--brass-bright); }
.pill-out { background: var(--raised2); border: 1px solid var(--line); color: var(--muted); }

.chip-row { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.28em;
    padding: 8px 16px; border: 1px solid var(--line); color: var(--muted);
}
.chip.active { border-color: var(--brass); color: var(--brass-bright); }
.chip:hover { color: var(--bone); }

/* ---------- Product detail ---------- */
.pd-grid { display: grid; gap: 64px; }
@media (min-width: 768px) { .pd-grid { grid-template-columns: 1fr 1fr; } }
.pd-image { position: relative; aspect-ratio: 1/1; border: 1px solid var(--line); overflow: hidden; }
.pd-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb {
    width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer;
    overflow: hidden; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { opacity: 0.85; }
.pd-thumb.selected { opacity: 1; border-color: var(--brass); }
.pd-price { font-family: var(--font-mono); font-size: 28px; color: var(--brass-bright); margin: 16px 0 24px; }
.pd-desc { color: var(--muted); line-height: 1.7; margin-bottom: 40px; max-width: 480px; }
.size-row { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.size-btn {
    width: 48px; height: 48px; border: 1px solid var(--line); background: transparent;
    color: var(--muted); text-transform: uppercase; font-size: 14px; cursor: pointer;
}
.size-btn.selected { border-color: var(--brass); background: var(--brass); color: var(--ink); font-weight: 500; }
.size-btn-out { opacity: 0.35; position: relative; text-decoration: line-through; }
.color-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: var(--raised2);
    color: var(--bone); text-transform: uppercase; font-size: 12px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.color-btn.selected { border-color: var(--brass-bright); box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--brass-bright); }
.color-btn-out { opacity: 0.35; position: relative; }
.color-btn-out::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--rust); transform: rotate(-20deg); }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.28em; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
    width: 100%; background: var(--raised); border: 1px solid var(--line); color: var(--bone);
    padding: 12px 16px; font-family: var(--font-body); font-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.note-box { border: 1px solid var(--line); background: rgba(var(--grain-rgb), 0.06); padding: 12px 16px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.error-box { color: var(--rust); font-size: 14px; margin-bottom: 16px; }

/* ---------- Cart / Checkout ---------- */
.cart-row { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-row:first-child { border-top: 1px solid var(--line); }
.cart-thumb { width: 96px; height: 128px; border: 1px solid var(--line); overflow: hidden; flex-shrink: 0; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-info .top { display: flex; justify-content: space-between; gap: 16px; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty-box button { width: 32px; height: 32px; background: none; border: none; color: var(--bone); cursor: pointer; }
.qty-box button:hover { background: var(--raised2); }
.qty-box span, .qty-box input { width: 40px; text-align: center; background: transparent; border: none; color: var(--bone); }

.summary { max-width: 320px; margin-left: auto; }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.summary-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 17px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 128px; }
.footer-top {
    padding: 56px 24px 40px;
    display: grid; gap: 40px;
}
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1.6fr 1fr; } }
.footer-brand { font-size: 14px; color: var(--muted); }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-icon {
    width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 999px;
    display: flex; align-items: center; justify-content: center; color: var(--muted);
    transition: color 0.2s, border-color 0.2s;
}
.social-icon:hover { color: var(--brass-bright); border-color: var(--brass); }
.footer-cols { display: flex; gap: 48px; font-size: 14px; color: var(--muted); }
.col-head { text-transform: uppercase; letter-spacing: 0.28em; font-size: 12px; color: var(--brass); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--bone); }
.footer-newsletter { font-size: 14px; color: var(--muted); }
.newsletter-form { display: flex; gap: 0; max-width: 320px; }
.newsletter-form input {
    flex: 1; min-width: 0; background: var(--raised); border: 1px solid var(--line); border-right: none;
    color: var(--bone); padding: 12px 14px; font-family: var(--font-body); font-size: 14px;
}
.newsletter-form input:focus { outline: none; border-color: var(--brass); }
.newsletter-form button {
    background: var(--brass); color: var(--ink); border: none; padding: 0 18px;
    text-transform: uppercase; letter-spacing: 0.15em; font-size: 12px; font-weight: 500; cursor: pointer;
    transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--brass-bright); }
.footer-bottom {
    border-top: 1px solid var(--line); padding: 20px 24px; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted);
}
.payment-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.payment-badge {
    display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
    background: var(--raised2); border: 1px solid var(--line); border-radius: 4px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--muted);
    font-family: var(--font-body);
}


.panel { border: 1px solid var(--line); background: var(--raised); padding: 24px; margin-bottom: 24px; }
.panel .panel-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.28em; color: var(--muted); margin-bottom: 16px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead th { text-align: left; text-transform: uppercase; letter-spacing: 0.28em; font-size: 12px; color: var(--muted); font-weight: 400; padding: 16px; border-bottom: 1px solid var(--line); }
.data-table tbody td { padding: 16px; border-bottom: 1px solid var(--line); }
.data-table tbody tr:hover { background: rgba(var(--grain-rgb), 0.06); }
.table-wrap { border: 1px solid var(--line); overflow-x: auto; }
.table-wrap .data-table { border: none; }

.status-badge { display: inline-block; padding: 4px 10px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; border: 1px solid var(--line); color: var(--muted); }
.status-processing { border-color: var(--brass); color: var(--brass-bright); }
.status-shipped { border-color: var(--shipped); color: var(--shipped); }
.status-delivered { border-color: var(--sage); color: var(--sage); }
.status-canceled { border-color: var(--rust); color: var(--rust); }
.status-returned { border-color: var(--returned); color: var(--returned); }

.list-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 8px 0; }
.list-row + .list-row { border-top: 1px solid var(--line); }

.empty-state { max-width: 480px; margin: 96px auto; text-align: center; }
.empty-state h1 { font-family: var(--font-display); font-size: 26px; margin: 8px 0 24px; }

body.has-drop-bar { padding-bottom: 64px; }
.drop-countdown-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--ink); border-top: 1px solid var(--brass);
    display: flex; align-items: center; justify-content: center; gap: 16px;
    padding: 12px 16px; flex-wrap: wrap;
}
.drop-countdown-label {
    font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--muted); white-space: nowrap;
}
.drop-countdown-time { display: flex; align-items: center; gap: 6px; }
.drop-countdown-time > div { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.drop-countdown-time span:not(.drop-countdown-colon) {
    font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--brass-bright); min-width: 26px; text-align: center;
}
.drop-countdown-time small { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 1px; }
.drop-countdown-colon { font-family: var(--font-mono); color: var(--line); font-size: 16px; margin-top: -8px; }
@media (max-width: 480px) {
    .drop-countdown-bar { gap: 10px; padding: 10px 12px; }
    .drop-countdown-label { display: none; }
    .drop-countdown-time span:not(.drop-countdown-colon) { font-size: 16px; min-width: 22px; }
}

/* ---------- Easy mode ---------- */
.easy-shell { display: flex; align-items: flex-start; min-height: 100vh; }
.easy-sidebar {
    width: 240px; flex-shrink: 0; border-right: 1px solid var(--line);
    padding: 32px 24px; display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink);
}
.easy-logo { display: block; margin-bottom: 32px; flex-shrink: 0; }
.easy-logo .logo-img { width: 100%; max-width: 160px; height: auto; }
.easy-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 32px; }
.easy-nav a { padding: 8px 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bone); }
.easy-nav a:hover { color: var(--brass-bright); }
.easy-sidebar-bottom { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.easy-icon-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.easy-links { display: flex; flex-direction: column; gap: 8px; }
.easy-links a { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.easy-links a:hover { color: var(--bone); }

.easy-content { flex: 1; min-width: 0; }
.easy-mobile-bar { display: none; }
.easy-topbar {
    display: flex; align-items: center; justify-content: flex-end; gap: 24px;
    padding: 20px 32px; border-bottom: 1px solid var(--line);
}
.easy-topbar .header-search { display: flex; }
.easy-sidebar-overlay { display: none; }

@media (max-width: 900px) {
    .easy-sidebar {
        position: fixed; top: 0; left: -280px; width: 260px; height: 100vh; z-index: 300;
        transition: left 0.25s ease; box-shadow: 4px 0 24px rgba(0,0,0,0.4);
    }
    .easy-sidebar.open { left: 0; }
    .easy-mobile-bar {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--ink); z-index: 50;
    }
    .easy-mobile-bar .icon-btn {
        display: flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; background: none; border: none; color: var(--bone); cursor: pointer;
    }
    .easy-mobile-logo img { height: 40px; width: auto; }
    .easy-topbar { display: none; }
    .easy-sidebar-overlay {
        display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 250;
    }
    .easy-sidebar-overlay.open { display: block; }
}

/* Slide-in cart drawer — opens after Add to cart instead of navigating away. */
.cart-drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 400;
}
.cart-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
    position: fixed; top: 0; right: 0; height: 100vh; width: 440px; max-width: 100vw;
    background: var(--raised); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
    z-index: 401; display: flex; flex-direction: column;
    box-shadow: -8px 0 32px rgba(0,0,0,0.35);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.cart-drawer-head h2 {
    font-family: var(--font-display); font-size: 18px; margin: 0;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.cart-drawer-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-left: 10px; }
.cart-drawer-close {
    background: none; border: none; color: var(--bone); cursor: pointer;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
}
.cart-drawer-close:hover { color: var(--brass-bright); }

.cart-drawer-shipping { padding: 16px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.cart-drawer-progress { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.cart-drawer-progress-fill { height: 100%; background: var(--brass-bright); transition: width 0.3s ease; }
.cart-drawer-shipping p { margin: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cart-drawer-shipping p.unlocked { color: var(--sage); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 0 24px; }
.cart-drawer-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.cart-drawer-empty a { display: inline-block; margin-top: 16px; }

.cart-drawer-row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-drawer-thumb { width: 72px; height: 96px; border: 1px solid var(--line); overflow: hidden; flex-shrink: 0; }
.cart-drawer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer-row-info { flex: 1; min-width: 0; }
.cart-drawer-row-top { display: flex; justify-content: space-between; gap: 12px; }
.cart-drawer-row-top .name { font-family: var(--font-display); font-size: 13px; margin: 0; line-height: 1.3; }
.cart-drawer-row-top .price { font-family: var(--font-mono); font-size: 13px; color: var(--brass-bright); white-space: nowrap; }
.cart-drawer-meta { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 0 10px; }
.cart-drawer-row-actions { display: flex; align-items: center; justify-content: space-between; }
.cart-drawer-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.cart-drawer-qty button { width: 26px; height: 26px; background: none; border: none; color: var(--bone); cursor: pointer; font-family: var(--font-mono); }
.cart-drawer-qty button:hover { background: var(--raised2); }
.cart-drawer-qty span { width: 28px; text-align: center; font-family: var(--font-mono); font-size: 13px; }
.cart-drawer-remove { background: none; border: none; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.cart-drawer-remove:hover { color: var(--bone); }

.cart-drawer-crosssell { padding: 20px 0 8px; }
.cart-drawer-crosssell-head { font-family: var(--font-mono); font-size: 11px; color: var(--brass); text-transform: uppercase; letter-spacing: 0.2em; margin: 0 0 14px; }
.cart-drawer-cs-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 10px; margin-bottom: 10px; }
.cart-drawer-cs-thumb { width: 44px; height: 56px; overflow: hidden; flex-shrink: 0; background: var(--raised2); }
.cart-drawer-cs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer-cs-info { flex: 1; min-width: 0; }
.cart-drawer-cs-info .name { font-family: var(--font-display); font-size: 12px; margin: 0; }
.cart-drawer-cs-info .price { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-drawer-cs-add {
    font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
    background: var(--brass-bright); color: var(--ink); border: none; padding: 8px 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.cart-drawer-cs-add:hover { opacity: 0.85; }

.cart-drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); flex-shrink: 0; }
.cart-drawer-subtotal { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 16px; margin-bottom: 16px; }
.cart-drawer-subtotal span:last-child { font-family: var(--font-mono); color: var(--brass-bright); }
.cart-drawer-foot-btns { display: flex; gap: 10px; }
.cart-drawer-foot-btns .btn-outline, .cart-drawer-foot-btns .btn {
    flex: 1; text-align: center; padding: 13px 10px; font-size: 11px; letter-spacing: 0.1em; white-space: nowrap;
}

@media (max-width: 640px) {
    .cart-drawer { width: 100vw; }
}

/* ---------- Cart page (full page, not the drawer) ---------- */
.cart-head { margin-bottom: 32px; }
.cart-head .uppercase-label { margin-bottom: 6px; }
.cart-count-heading { font-size: 26px; margin: 0; }

.cart-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 900px) {
    .cart-layout { grid-template-columns: 1fr 340px; gap: 40px; }
}

.cart-list-card { border: 1px solid var(--line); background: var(--raised); }
.cart-row-v2 { display: flex; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); }
.cart-row-v2:last-child { border-bottom: none; }
.cart-row-v2 .cart-thumb { width: 76px; height: 100px; }
.cart-row-v2 .cart-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.cart-row-actions { display: flex; align-items: center; justify-content: space-between; }
.cart-remove-btn {
    background: none; border: none; color: var(--muted); cursor: pointer;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; padding: 0;
}
.cart-remove-btn:hover { color: var(--bone); }
.qty-step { font-family: var(--font-mono); }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

.cart-summary-card {
    border: 1px solid var(--line); background: var(--raised); padding: 24px;
}
@media (min-width: 900px) { .cart-summary-card { position: sticky; top: 24px; } }
.cart-summary-card .summary-line:last-of-type { margin-bottom: 0; }
.cart-shipping-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

@media (max-width: 640px) {
    .cart-row-v2 { padding: 16px; gap: 12px; }
    .cart-row-v2 .cart-thumb { width: 64px; height: 84px; }
}

/* ---------- Generic modal (currently used by the size guide) ---------- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.65);
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
    z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
    background: var(--raised); border: 1px solid var(--line);
    max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 28px;
    transform: translateY(14px); transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.modal-close {
    background: none; border: none; color: var(--bone); cursor: pointer;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.modal-close:hover { color: var(--brass-bright); }
@media (max-width: 480px) {
    .modal-box { padding: 20px; max-height: 90vh; }
}

/* Easy mode only: cleaner product cards — no category tag, centered text. */
body.easy-mode .product-card { text-align: center; }
body.easy-mode .product-card .cat { display: none; }
/* Easy mode only: hide category on the product detail page too, name sits at the top. */
body.easy-mode .pd-category { display: none; }
