/* ──────────────────────────────────────────────────────────────────
   URUK Wholesale · Storefront stylesheet
   Athletic reskin — black / red / white, condensed display type,
   square corners. Original class names preserved.
   ────────────────────────────────────────────────────────────────── */

:root {
    --paper:    #ffffff;
    --paper-2:  #f2f2f0;
    --paper-3:  #e4e4e1;
    --ink:      #181818;
    --ink-2:    #4a4a4a;
    --ink-3:    #8c8c8c;
    --line:     #e4e4e1;
    --line-2:   #efefed;
    --red:      #e8211b;
    --red-deep: #b9170f;
    --red-soft: #fceae9;
    --red-tint: #f3cac8;
    --olive:    #4f7a37;
    --gold:     #c08f2c;

    --hero-grey: #9c9c9c;

    --f-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
    --f-ui:      "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --f-mono:    "JetBrains Mono", ui-monospace, monospace;

    --r-sm: 0px; --r: 0px; --r-lg: 0px; --r-xl: 0px;
    --sh-1: 0 1px 2px rgba(0,0,0,0.05);
    --sh-2: 0 4px 14px rgba(0,0,0,0.10);
    --sh-3: 0 16px 36px rgba(0,0,0,0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--f-ui);
    color: var(--ink);
    background: var(--paper);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding-bottom: 96px;   /* room for bottom tab bar on mobile */
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── Type ──────────────────────────────────────────────────────── */
.u-display { font-family: var(--f-display); font-weight: 700; line-height: 1; text-transform: uppercase; }
.u-h1      { font-family: var(--f-display); font-size: 38px; line-height: 1.0;  letter-spacing: 0.005em; font-weight: 700; text-transform: uppercase; margin: 0; }
.u-h2      { font-family: var(--f-display); font-size: 26px; line-height: 1.06; letter-spacing: 0.005em; font-weight: 700; text-transform: uppercase; margin: 0; }
.u-h3      { font-family: var(--f-ui); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin: 0; line-height: 1.25; }
.u-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.u-body    { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.u-meta    { font-size: 11px; color: var(--ink-3); }
.u-mono    { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.u-price   { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.accent    { color: var(--red); }

/* ── Layout helpers ────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex-1 { flex: 1; }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.hairline.dashed { border-top-style: dashed; }

/* ── Topbar ────────────────────────────────────────────────────── */
.topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    background: var(--ink);
    border-bottom: 3px solid var(--red);
    position: sticky; top: 0; z-index: 30;
}
.logo {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--f-display); font-size: 24px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
}
.logo img { height: 38px; background: #fff; padding: 4px 7px; display: block; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn {
    background: transparent; border: 0; padding: 8px;
    color: #d6d6d6; position: relative;
    display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { color: #fff; }

/* Compact the topbar on small phones so the items never overlap */
@media (max-width: 560px) {
    .topbar { padding: 12px 10px; gap: 6px; }
    .topbar .logo { font-size: 13px; gap: 6px; letter-spacing: 0.04em; }
    .topbar .logo img { height: 32px; padding: 3px 5px; }
    .topbar-actions { gap: 0; }
    .topbar .icon-btn { padding: 6px; }
    .topbar .cat-burger { padding: 6px; }
    .topbar .btn.sm { padding: 7px 9px; letter-spacing: 0.04em; margin-left: 6px; }
}

/* Desktop category navigation — internal pages only (mobile uses the drawer) */
.cat-nav { display: none; }
@media (min-width: 760px) {
    .cat-nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 16px;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }
    .cat-nav a {
        padding: 7px 14px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--ink-2);
    }
    .cat-nav a:hover { color: var(--red); }
    .cat-nav a.is-on { color: var(--red); }
}

/* Confirmation modal */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.55);
    align-items: center; justify-content: center;
    padding: 24px;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
    background: #fff;
    border-top: 3px solid var(--red);
    width: 100%; max-width: 340px;
    padding: 22px 20px;
}
.modal-box h3 {
    margin: 0 0 8px;
    font-family: var(--f-display); font-weight: 700;
    text-transform: uppercase; font-size: 20px;
}
.modal-box p { margin: 0; font-size: 14px; color: var(--ink-2); }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.icon-btn .badge {
    position: absolute; top: 0; right: 0;
    background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
    border-radius: 0; padding: 1px 5px; min-width: 15px; text-align: center;
    line-height: 1.3;
}

/* ── Tab bar (mobile) ──────────────────────────────────────────── */
.tabbar {
    position: fixed; bottom: 0; left: 0; right: 0;
    display: flex; padding: 6px 4px 10px; gap: 2px;
    background: var(--ink);
    border-top: 3px solid var(--red);
    z-index: 40;
}
.tabbar .tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: #9a9a9a;
    position: relative;
}
.tabbar .tab.on { color: #fff; }
.tabbar .tab.on::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; background: var(--red);
}
.tabbar .tab .badge {
    position: absolute; top: 2px; right: 50%; margin-right: -22px;
    background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
    padding: 0 4px; min-width: 14px; text-align: center;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 13px 24px;
    border: 2px solid var(--ink); border-radius: 0;
    background: var(--ink); color: #fff;
    font-family: var(--f-ui); font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
    white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn.red, .btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover, .btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn.outline, .btn-outline { background: transparent; color: var(--ink); }
.btn.outline:hover, .btn-outline:hover { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn.sm { padding: 8px 14px; font-size: 11px; }
.btn.lg, .btn-lg { padding: 16px 30px; font-size: 14px; }
.btn.block, .btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* Outline button on the dark topbar — light so it stays visible */
.topbar .btn.outline { color: #fff; border-color: rgba(255,255,255,0.45); }
.topbar .btn.outline:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ── Chips / tags ──────────────────────────────────────────────── */
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 13px; border-radius: 0;
    background: var(--paper-2); font-size: 11px; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--ink-2); border: 1px solid var(--line); cursor: pointer;
}
.chip.on, .chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.red { background: var(--red); color: #fff; border-color: var(--red); }
.chip.outline { background: transparent; border-color: var(--line); }
.tag {
    display: inline-block; padding: 3px 8px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    border-radius: 0; background: var(--ink); color: #fff;
}
.tag.red { background: var(--red); color: #fff; }
.tag.gold { background: var(--gold); color: #fff; }
.tag.olive { background: var(--olive); color: #fff; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
}
.card.flat { border: 0; background: var(--paper-2); }
.card.sunken { background: var(--paper-2); border-color: transparent; }

/* ── Inputs ────────────────────────────────────────────────────── */
.input, .textarea, .select {
    -webkit-appearance: none; appearance: none;
    font-family: var(--f-ui); font-size: 13px; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 0; padding: 11px 13px;
    width: 100%; outline: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.input:focus, .textarea:focus, .select:focus {
    border-color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--red);
}
.input::placeholder { color: var(--ink-3); }
.search-pill {
    display: flex; align-items: center; gap: 9px;
    padding: 12px 15px; border-radius: 0;
    background: var(--paper-2); border: 1px solid var(--line);
    color: var(--ink-3); font-size: 13px; width: 100%;
    text-decoration: none;
}
.search-pill input {
    background: transparent; border: 0; outline: none; flex: 1;
    color: var(--ink); font-size: 13px; font-family: inherit;
}

/* ── Home · hero ───────────────────────────────────────────────── */
.full-bleed {
    width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.hero {
    background: var(--hero-grey);
    color: var(--ink);
    position: relative; overflow: hidden;
    margin-top: -16px;   /* sit flush under the topbar */
}
.hero-inner {
    max-width: 1280px; margin: 0 auto; padding: 14px 16px 16px;
}
.hero .u-eyebrow { color: #efefef; }
.hero h1, .hero-title {
    font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(16px, 2.6vw, 24px); line-height: 1.05; letter-spacing: 0.005em;
    margin: 3px 0 0; max-width: 40ch; color: var(--ink);
}
.hero .sub, .hero-sub {
    font-size: 14px; color: #2c2c2c; margin: 5px 0 0;
}
.hero-cta { margin-top: 10px; }

/* ── Home · category cards ─────────────────────────────────────── */
.home-cats { margin-top: 28px; display: none; }   /* mobile: replaced by the menu below */
.home-cats-row { display: flex; flex-direction: column; gap: 16px; }
.home-cats-row + .home-cats-row { margin-top: 16px; }
.home-cat {
    position: relative; display: flex; align-items: flex-end;
    min-height: 260px; padding: 24px;
    background: var(--paper-2); border: 1px solid var(--line);
    color: var(--ink); overflow: hidden;
    transition: border-color 0.15s ease;
}
.home-cat:hover { border-color: var(--ink); }

/* Mobile: featured categories open in a left slide-in drawer */
.cat-burger {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; padding: 8px;
    color: #fff; cursor: pointer;
}
.cat-burger svg { display: block; }

.cat-drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; max-width: 84vw;
    display: flex; flex-direction: column;
    background: var(--ink); color: #fff;
    border-right: 3px solid var(--red);
    z-index: 100; overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.24s ease, visibility 0.24s;
}
.cat-drawer.is-open { transform: translateX(0); visibility: visible; }

.cat-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 12px 14px 18px;
    border-bottom: 3px solid var(--red);
}
.cat-drawer-title {
    font-family: var(--f-display); font-weight: 700;
    text-transform: uppercase; font-size: 17px; letter-spacing: 0.04em;
}
.cat-drawer-close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0;
    background: transparent; border: 1px solid rgba(255,255,255,0.25);
    color: #fff; cursor: pointer;
}
.cat-drawer-close:hover { background: rgba(255,255,255,0.1); }

.cat-drawer-list a {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 13px; font-weight: 700; letter-spacing: 0.03em;
    text-transform: uppercase; color: #fff;
}
.cat-drawer-list a:hover { background: rgba(255,255,255,0.06); color: var(--red); }
.cat-drawer-list .cat-count {
    font-size: 11px; font-weight: 600; letter-spacing: 0;
    text-transform: none; color: #9a9a9a; white-space: nowrap;
}

.cat-scrim {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    opacity: 0; visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s;
}
.cat-scrim.is-open { opacity: 1; visibility: visible; }

body.cat-drawer-open { overflow: hidden; }

@media (min-width: 760px) {
    .home-cats { display: block; }
    .cat-burger, .cat-drawer, .cat-scrim { display: none; }
    .home-cats-row { flex-direction: row; justify-content: center; }
    /* --per-row is set inline per row-group; cards take an equal share so a
       short last row stays centred under a wider one. */
    .home-cat { flex: 0 0 calc((100% - (var(--per-row, 3) - 1) * 16px) / var(--per-row, 3)); }
}
.home-cat-title {
    font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
    font-size: 26px; line-height: 1; margin: 0;
}
.home-cat-rule { width: 46px; height: 4px; background: var(--red); margin: 12px 0 10px; }
.home-cat-link {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-2);
}
.home-cat:hover .home-cat-link { color: var(--red); }

/* ── Home · why / about ────────────────────────────────────────── */
.section-head { text-align: center; margin: 56px 0 28px; }
.section-title {
    font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
    font-size: 34px; line-height: 1; margin: 0;
}
.section-sub { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.why-grid {
    display: grid; grid-template-columns: 1fr; gap: 0;
    border: 1px solid var(--line);
}
@media (min-width: 560px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card {
    padding: 30px 22px; text-align: center;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.why-icon {
    width: 44px; height: 44px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff;
}
.why-card h4 {
    font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
    font-size: 16px; margin: 0 0 6px;
}
.why-card p { font-size: 12px; color: var(--ink-3); margin: 0; line-height: 1.6; }
.home-about { background: var(--ink); color: #fff; margin-top: 56px; }
.home-about-inner { max-width: 1280px; margin: 0 auto; padding: 60px 16px; }
.home-about .u-eyebrow { color: var(--red); }
.home-about h2 {
    font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
    font-size: 36px; line-height: 1.02; margin: 12px 0 16px; max-width: 18ch;
}
.home-about p { color: #c4c4c4; font-size: 14px; max-width: 60ch; margin: 0 0 10px; }
.home-about .social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.home-about .social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.home-about .social-link:hover { background: var(--red); border-color: var(--red); }
.home-about .copyright {
    text-align: center; margin: 18px 0 0;
    font-size: 12px; color: #8f8f8f;
}

/* ── Horizontal scroller ───────────────────────────────────────── */
.scroll-x { display: flex; overflow-x: auto; gap: 14px; scrollbar-width: none; padding-bottom: 4px; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ── Product card ──────────────────────────────────────────────── */
.product-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.product-card .img, .product-thumb {
    aspect-ratio: 3/4; border-radius: 0;
    background: var(--paper-2); overflow: hidden; position: relative;
    border: 1px solid var(--line);
}
.product-card .img img, .product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card:hover .img, .product-card:hover .product-thumb { border-color: var(--ink); }
.product-card .img .badge { position: absolute; top: 0; left: 0; }
/* Favorite heart — product cards and product hero */
.heart {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    background: #fff; border: 1px solid var(--line);
    color: var(--ink-3); cursor: pointer;
}
.heart svg { display: block; width: 16px; height: 16px; }
.heart:hover { color: var(--red); border-color: var(--red); }
.heart.on { color: var(--red); border-color: var(--red); }
.heart.on svg { fill: var(--red); }
.product-card .meta, .product-meta { display: flex; justify-content: space-between; align-items: baseline; }
.product-meta { flex-direction: column; gap: 2px; align-items: stretch; }
.product-card .name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.product-card .sku { color: var(--ink-3); }
.product-card .from, .product-card .price { display: flex; align-items: baseline; gap: 4px; font-size: 13px; }
.product-card .price strong { font-weight: 700; }

/* Trade-pricing gate — guests see this instead of prices */
.login-price {
    font-family: var(--f-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.03em; color: var(--red);
}
.login-gate {
    border: 1px solid var(--line); background: var(--paper-2);
    padding: 22px 18px; text-align: center;
}
.login-gate .u-eyebrow { color: var(--red); }
.login-gate .btn { display: inline-flex; }

/* ── Centered toast (auto-dismiss confirmation) ─────────────────── */
.toast {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 200;
    background: var(--ink); color: #fff;
    font-family: var(--f-display); font-weight: 600; font-size: 15px;
    letter-spacing: 0.02em;
    padding: 18px 30px; max-width: 80vw; text-align: center;
    border-left: 4px solid var(--olive);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.34);
    opacity: 0; pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast-error { border-left-color: var(--red); }

/* ── Rails ─────────────────────────────────────────────────────── */
.rail { margin-top: 40px; }
.rail header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rail header::after { content: ""; }
.rail header .see { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rail .scroll-x .product-card { flex: 0 0 160px; }
@media (min-width: 700px) { .rail .scroll-x .product-card { flex: 0 0 190px; } }

/* ── Product detail page ──────────────────────────────────────── */
.product-hero {
    aspect-ratio: 3/4; background: var(--paper-2); position: relative;
    margin: 0 -16px 16px; overflow: hidden;
}
.product-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Product image gallery */
.gallery-track {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    display: flex; transition: transform 0.3s ease;
}
.gallery-slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 2;
    display: none; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line); color: var(--ink);
    cursor: pointer;
}
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-arrow:disabled { opacity: 0.35; cursor: default; }
@media (min-width: 760px) { .gallery-arrow { display: flex; } }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gallery-thumb {
    width: 56px; height: 68px; padding: 0;
    border: 1px solid var(--line); background: var(--paper-2);
    cursor: pointer; overflow: hidden;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.on { border: 2px solid var(--ink); }
@media (min-width: 1024px) {
    .product-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-top: 24px; }
    .product-hero { margin: 0; }
}
.product-title { margin: 12px 0; }
.product-title h1 {
    font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
    font-size: 34px; line-height: 1.0; margin: 8px 0 12px;
}
.feature-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.stock-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

/* Segmented toggle */
.segmented {
    display: inline-flex; background: var(--paper-2); border: 1px solid var(--line);
    border-radius: 0; padding: 3px; gap: 3px; margin: 16px 0 12px;
}
.segmented button {
    border: 0; background: transparent; padding: 9px 18px;
    border-radius: 0; font-size: 12px; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2);
}
.segmented button.on { background: var(--ink); color: #fff; }

/* Pricing — sets */
.set-row {
    display: grid; grid-template-columns: 1fr auto; gap: 10px;
    padding: 9px 11px; border: 1px solid var(--line); border-radius: 0;
    margin-bottom: 7px;
}
.set-row.sel { background: var(--red-soft); border-color: var(--red); }
.set-row .label { font-weight: 700; }
.set-row .sizes-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.set-row .sz-pill {
    font-family: var(--f-mono); font-size: 10px; font-weight: 600;
    background: var(--paper-2); padding: 3px 8px; border-radius: 0; color: var(--ink-2);
    border: 1px solid var(--line);
}
.set-row .right { text-align: center; }
.set-row .pc-price { font-size: 11px; font-weight: 600; color: var(--red); }
.set-row .price { font-weight: 700; font-size: 15px; }
/* Compact spacing inside the set box */
.set-row .mt-1 { margin-top: 2px; }
.set-row .mt-2 { margin-top: 4px; }
.set-row .qty.mt-3 { margin-top: 6px; }
.set-row .qty button { width: 26px; height: 26px; font-size: 15px; }
.set-row .qty .num { min-width: 26px; }

/* Pricing — pieces */
.piece-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.piece-cell {
    border: 1px solid var(--line); border-radius: 0;
    padding: 10px 6px; text-align: center;
    display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.piece-cell.hi { background: var(--red-soft); border-color: var(--red); }
.piece-cell .age { font-family: var(--f-mono); font-weight: 700; font-size: 12px; }
.piece-cell .pr { font-size: 11px; color: var(--ink-2); }

/* qty stepper */
.qty {
    display: inline-flex; align-items: center;
    border: 1px solid var(--line); border-radius: 0; background: var(--paper);
}
.qty button {
    background: none; border: 0; width: 30px; height: 30px;
    color: var(--ink); display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.qty .num { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; padding: 0 4px; }

/* Sticky CTA */
.sticky-cta {
    position: fixed; bottom: 64px; left: 0; right: 0;
    background: var(--ink); border-top: 3px solid var(--red);
    padding: 8px 14px; z-index: 35;
    display: flex; gap: 12px; align-items: center;
}
.sticky-cta .summary { font-size: 12px; color: #b9b9b9; line-height: 1.35; }
.sticky-cta .summary strong { color: #fff; font-size: 15px; }
.sticky-cta .btn { flex: 1; padding: 11px 16px; font-size: 12px; }
/* The CTA stacks just above the mobile tab bar; on desktop (no tab bar) it
   drops to the screen edge. Extra body padding keeps content clear of both. */
body:has(.sticky-cta) { padding-bottom: 135px; }
@media (min-width: 1024px) {
    .sticky-cta { bottom: 0; }
    body:has(.sticky-cta) { padding-bottom: 96px; }
}

/* Specs */
.spec-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--ink-3); text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em; }
.spec-row .v { color: var(--ink); font-weight: 600; }

/* Enquiry list */
.enq-item {
    display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
    padding: 12px; border: 1px solid var(--line); border-radius: 0;
    background: var(--paper); margin-bottom: 12px;
}
.enq-item .thumb {
    width: 64px; height: 84px; border-radius: 0; overflow: hidden;
    background: var(--paper-2);
}
.enq-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.enq-body { min-width: 0; }
.enq-name { font-weight: 600; margin-bottom: 8px; }
.enq-lines { display: flex; flex-direction: column; gap: 6px; }
.enq-line { display: flex; align-items: center; gap: 10px; }
.enq-line-label {
    font-family: var(--f-mono); font-size: 11px; color: var(--ink-2);
    min-width: 52px;
}
.enq-line-price {
    margin-left: auto; font-weight: 700; font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.cart-qty {
    display: inline-flex; align-items: center;
    border: 1px solid var(--line); background: var(--paper);
}
.cart-qty button {
    background: none; border: 0; width: 26px; height: 26px;
    color: var(--ink); display: flex; align-items: center; justify-content: center;
    font-size: 15px; cursor: pointer;
}
.cart-qty .num {
    min-width: 26px; text-align: center; font-weight: 700; font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.enq-side {
    display: flex; flex-direction: column;
    align-items: flex-end; justify-content: space-between; gap: 8px;
}
.enq-summary { padding: 13px 14px; background: var(--ink); color: #fff; border-radius: 0; margin-top: 14px; }
.enq-summary .line { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px; color: #c2c2c2; }
.enq-summary .line.discount {
    background: #e8e8e6;
    margin: 4px -14px;
    padding: 5px 14px;
}
.enq-summary .line.discount span { color: var(--ink); }
.enq-summary .line.discount .amt { color: #3c5a26; font-weight: 700; }
.enq-summary .total {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid rgba(255,255,255,0.18); padding-top: 9px; margin-top: 6px;
}
.enq-summary .total .lab { color: #9a9a9a; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.enq-summary .total .val { font-family: var(--f-display); font-weight: 700; font-size: 23px; color: #fff; }

/* Empty state */
.empty { text-align: center; padding: 60px 16px; color: var(--ink-3); }
.empty .icon { font-size: 44px; margin-bottom: 14px; }
.empty h3 { color: var(--ink); margin-bottom: 8px; font-family: var(--f-display); text-transform: uppercase; }

/* Confirmation */
.confirm-screen { text-align: center; padding: 60px 16px; }
.confirm-screen .check {
    width: 80px; height: 80px; border-radius: 0; background: var(--red);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
}

/* Form helpers */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; color: var(--ink-2); }
.alert { padding: 12px 14px; border-radius: 0; background: var(--red-soft); color: var(--red-deep); border-left: 3px solid var(--red); margin-bottom: 14px; font-size: 13px; }
.alert.ok, .alert-success { background: #e9f1df; color: #3c5a26; border-left-color: var(--olive); }
.flash { padding: 10px 14px; border-radius: 0; margin-bottom: 14px; font-size: 13px; }

/* Auth screen */
.auth-screen { max-width: 400px; margin: 48px auto; padding: 0 16px; }
.auth-screen .logo-block { text-align: center; margin-bottom: 32px; }
.auth-screen .logo-block img { height: 56px; margin-bottom: 12px; }

/* Footer */
.site-footer {
    margin-top: 0; padding: 36px 16px;
    background: var(--ink); color: #9a9a9a; font-size: 12px;
    text-align: center;
}
.site-footer a { color: #d6d6d6; }

/* Listing header */
.listing-header { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.listing-header .back { color: var(--ink-2); }
.breadcrumb { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

/* Filter sidebar (desktop) */
@media (min-width: 1024px) {
    .listing-page { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
    .filter-side { background: var(--paper); border: 1px solid var(--line); border-radius: 0; padding: 18px; height: fit-content; position: sticky; top: 86px; }
    .filter-side h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 14px 0 8px; font-weight: 700; }
}
.filter-toggle-only-mobile { display: block; }
@media (min-width: 1024px) { .filter-toggle-only-mobile { display: none; } }

/* Category tree */
.cat-tree li { list-style: none; padding: 0; }
.cat-tree ul { padding-left: 16px; margin: 0; }
.cat-tree a {
    display: block; padding: 11px 13px; border-radius: 0;
    color: var(--ink); font-size: 13px; border-bottom: 1px solid var(--line-2);
}
.cat-tree a:hover { background: var(--paper-2); }
.cat-tree .root { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 17px; }

/* Status pill */
.status-pill {
    display: inline-block; padding: 4px 10px; border-radius: 0;
    font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
.status-draft     { background: var(--paper-3); color: var(--ink-2); }
.status-sent      { background: #e9f1df; color: #3c5a26; }
.status-confirmed { background: #e9f1df; color: #3c5a26; }
.status-packed    { background: var(--red-soft); color: var(--red-deep); }
.status-shipped   { background: var(--gold); color: #fff; }
.status-delivered { background: var(--olive); color: #fff; }
.status-cancelled { background: var(--paper-3); color: var(--ink-3); }

/* Utility hide on mobile */
.desktop-only { display: none; }
@media (min-width: 1024px) { .desktop-only { display: block; } .mobile-only { display: none; } }

/* ── Home · desktop layout ─────────────────────────────────────── */
@media (min-width: 1024px) {
    .hero-inner { padding: 18px 16px 20px; }
    .rail .scroll-x {
        display: grid; grid-template-columns: repeat(4, 1fr);
        gap: 24px 16px; overflow: visible;
    }
}

/* ════════════════════════════════════════════════════════════════
   ACCOUNT · AUTH · SEARCH
   ════════════════════════════════════════════════════════════════ */

/* ── Shared helpers ────────────────────────────────────────────── */
.serif { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.mono  { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.02em; }
.link-red { color: var(--red); font-weight: 700; }

.block-title {
    font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
    font-size: 20px; line-height: 1.1; margin: 0 0 12px;
}
.block-title.small { font-family: var(--f-ui); font-size: 12px; letter-spacing: 0.05em; }

.page-head { margin: 18px 0; }
.page-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 32px; line-height: 1.0; margin: 0; }
.back-link { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.back-link:hover { color: var(--red); }

.acct-page { max-width: 640px; margin: 0 auto; }

/* ── Auth screens (login / signup) ─────────────────────────────── */
.auth-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 34px; line-height: 1.0; margin: 0 0 6px; }
.auth-sub   { font-size: 13px; color: var(--ink-3); margin: 0 0 24px; }
.auth-form label { display: block; margin-bottom: 14px; }
.auth-form label span {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px;
}
.auth-form input, .auth-form textarea {
    -webkit-appearance: none; appearance: none;
    font-family: var(--f-ui); font-size: 13px; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 0; padding: 11px 13px; width: 100%; outline: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.auth-form input:focus, .auth-form textarea:focus {
    border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--red);
}
.auth-form textarea { resize: vertical; min-height: 72px; }
.auth-form button { margin-top: 4px; }
.auth-foot { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 16px; }

/* ── Account screen ────────────────────────────────────────────── */
.account-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 0; padding: 22px; margin-top: 16px;
}
.account-head { display: flex; align-items: center; gap: 14px; }
.avatar-circle {
    flex: 0 0 auto; width: 58px; height: 58px; border-radius: 0;
    background: var(--ink); color: #fff;
    font-family: var(--f-display); font-weight: 700; font-size: 26px;
    display: flex; align-items: center; justify-content: center;
}
.account-id .biz { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1.1; }
.account-id > div + div { margin-top: 3px; }
.gstin { color: var(--ink-2); }
.stat-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
}
.stat { text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1; }
.stat-num.small-num { font-size: 20px; }
.stat-label {
    font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-3); margin-top: 5px; font-weight: 700;
}
.menu-list {
    margin-top: 16px; border: 1px solid var(--line); border-radius: 0;
}
.menu-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 16px; font-size: 12px; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--ink); border-bottom: 1px solid var(--line-2);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover { background: var(--paper-2); color: var(--red); }
.menu-item .chev { color: var(--ink-3); font-size: 16px; line-height: 1; }
.menu-danger { color: var(--red); }

/* ── Orders list ───────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 16px; color: var(--ink-3); }
.empty-state p { margin: 0 0 16px; }
.order-list { display: grid; gap: 14px; }
@media (min-width: 700px)  { .order-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .order-list { grid-template-columns: repeat(3, 1fr); } }
.order-card {
    display: block; background: var(--paper);
    border: 1px solid var(--line); border-radius: 0;
    padding: 16px; color: inherit;
    transition: border-color 0.12s ease;
}
.order-card:hover { border-color: var(--ink); }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-card .ref { font-family: var(--f-mono); font-size: 13px; font-weight: 700; }
.order-card-meta { margin-top: 6px; }
.order-card-foot {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2);
}
.order-card-foot strong { font-family: var(--f-display); font-weight: 700; font-size: 20px; }
.track-strip {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed var(--line); color: var(--ink-2);
}
.pill {
    display: inline-block; padding: 4px 9px; border-radius: 0;
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; white-space: nowrap;
}
.pill-amber { background: var(--gold); color: #fff; }
.pill-olive { background: #e9f1df; color: #3c5a26; }
.pill-blue  { background: var(--ink); color: #fff; }
.pill-green { background: var(--olive); color: #fff; }
.pill-grey  { background: var(--paper-3); color: var(--ink-3); }

/* ── Order detail ──────────────────────────────────────────────── */
.timeline { display: flex; align-items: flex-start; margin: 20px 0 24px; padding: 0 20px 30px; }
.tl-step { position: relative; flex: 0 0 14px; display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.tl-label {
    position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
    width: 64px; text-align: center; font-size: 9px; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3);
}
.tl-line { flex: 1; height: 3px; margin-top: 6px; background: var(--line); }
.tl-line-done { background: var(--red); }
.tl-done .tl-dot   { background: var(--red); border-color: var(--red); }
.tl-done .tl-label { color: var(--ink-2); }
.tl-current .tl-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.tl-current .tl-label { color: var(--red); }
.track-card, .notes-card { padding: 14px 16px; margin-top: 12px; }
.notes-card p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.order-items { margin-top: 22px; }
.enq-thumb { width: 64px; height: 84px; border-radius: 0; overflow: hidden; background: var(--paper-2); }
.enq-thumb img { width: 100%; height: 100%; object-fit: cover; }
.enq-sku { color: var(--ink-3); }
.enq-name { font-size: 14px; font-weight: 700; margin-top: 2px; }
.enq-break { margin-top: 4px; }
.enq-side { text-align: right; }
.enq-pcs { font-size: 12px; color: var(--ink-3); }
.enq-sub { font-weight: 700; margin-top: 2px; }
.enq-summary .row { justify-content: space-between; padding: 5px 0; font-size: 13px; }
.enq-summary .row.total { padding-top: 12px; }
.enq-summary .row.total strong { font-family: var(--f-display); font-weight: 700; font-size: 24px; }

/* ── Confirmation screen ───────────────────────────────────────── */
.confirm-icon svg { display: block; margin: 0 auto; }
.confirm-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 34px; color: var(--ink); margin: 14px 0 6px; }
.confirm-sub { font-size: 13px; color: var(--ink-2); margin: 0 auto 24px; max-width: 320px; }
.confirm-card { color: var(--ink); text-align: left; padding: 18px; max-width: 380px; margin: 0 auto 20px; }
.confirm-ref {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.confirm-ref .label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.confirm-ref .ref { font-family: var(--f-mono); font-size: 15px; font-weight: 700; }
.confirm-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.confirm-row strong { font-size: 15px; }
.confirm-hint { font-size: 13px; color: var(--ink-2); margin: 16px auto; max-width: 320px; }
.confirm-actions { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 24px auto 0; }

/* ── Search screen ─────────────────────────────────────────────── */
.search-form { margin: 18px 0; }
.search-pill--lg { padding: 15px 16px; }
.search-pill svg { flex: 0 0 auto; }
.search-pill input[type="search"] {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
    font-family: inherit; font-size: 14px; color: var(--ink);
}
.search-clear { flex: 0 0 auto; color: var(--ink-3); font-size: 20px; padding: 0 2px; }
.search-clear:hover { color: var(--red); }
.search-block { margin-top: 28px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.search-count { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0; }

/* ── Out-of-stock set / age cell (product page) ────────────────── */
.set-row.is-oos, .piece-cell.is-oos { opacity: 0.5; }
.oos-tag {
    display: inline-block; margin-top: 10px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--red);
    border: 1px solid var(--red); padding: 5px 9px;
}
