/* SPARSH storefront. Mobile first.
   Brand tokens: black and white with a wine accent, Archivo type. Swap for final brand colours here. */
:root {
  --ink: #111111;
  --ink-2: #3a3a3e;
  --muted: #6e6e73;
  --line: #e7e5e2;
  --bg: #ffffff;
  --bg-soft: #f6f4f1;
  --brand: #111111;
  --brand-ink: #ffffff;
  --accent: #7a1f3d;
  --accent-soft: #f3e8ec;
  --ok: #1f6b4f;
  --danger: #b42318;
  --warn: #9a5b00;
  --radius: 6px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; overflow-x: hidden; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.1; margin: .3em 0 .4em; }
h2 { font-size: 1.3rem; margin: 1.6em 0 .6em; }
h3 { font-size: 1rem; margin: .5em 0 .2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 620px; padding-top: 48px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; font-weight: 500; margin-left: .5em; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 600; margin: 0 0 8px; color: var(--muted); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; background: var(--bg); padding: 8px 12px; z-index: 100; }
.icon { flex: none; max-width: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: var(--radius);
  background: var(--brand); color: var(--brand-ink); border: 1.5px solid var(--brand); font: inherit; font-weight: 700; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: #2a2a2a; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #f0f0f0; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 16px; }
.btn-block { width: 100%; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.announce-track { display: inline-flex; animation: marquee 28s linear infinite; padding: 9px 0; }
.announce-track span { padding: 0 28px; }
.announce-track span::after { content: "✦"; margin-left: 56px; opacity: .5; }
.announce .dup { display: contents; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 60px; gap: 12px; }
.brand { font-weight: 800; font-size: 1.35rem; letter-spacing: .32em; text-decoration: none; color: var(--ink); padding-left: .32em; }
.header-left { display: flex; align-items: center; }
.main-nav { display: none; }
.header-icons { display: flex; justify-content: flex-end; gap: 4px; }
.header-icons a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; text-decoration: none; font-size: .68rem; font-weight: 600; letter-spacing: .04em; }
.header-icons a span { display: none; }
.header-icons .count { position: absolute; top: 0; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .68rem; display: grid; place-items: center; padding: 0 4px; }
.hide-sm { display: none !important; }
@media (min-width: 1100px) {
  .header-row { min-height: 76px; grid-template-columns: auto 1fr auto; gap: 32px; }
  .header-row > .brand { order: -1; }
  .header-left { justify-content: center; }
  .menu { display: none; }
  .main-nav { display: flex; gap: 24px; }
  .main-nav a { white-space: nowrap; text-decoration: none; text-transform: uppercase; font-size: .78rem; font-weight: 700; letter-spacing: .12em; padding: 6px 0; border-bottom: 2px solid transparent; }
  .main-nav a:hover { border-color: var(--ink); }
  .brand { font-size: 1.6rem; }
  .header-icons { gap: 10px; }
  .header-icons a span { display: block; }
  .hide-sm { display: flex !important; }
}

/* Mobile menu drawer (works without JS via <details>) */
details.menu { border: 0; padding: 0; margin: 0; }
.menu summary { list-style: none; cursor: pointer; padding: 8px; margin-left: -8px; display: flex; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary::before { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 30; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); background: #fff; z-index: 31; display: flex; flex-direction: column; overflow-y: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer nav a { padding: 14px 20px; text-decoration: none; text-transform: uppercase; font-weight: 700; letter-spacing: .1em; font-size: .9rem; border-bottom: 1px solid var(--line); }
.drawer-foot { display: flex; flex-direction: column; padding: 12px 20px 24px; margin-top: auto; background: var(--bg-soft); }
.drawer-foot a { display: flex; gap: 10px; align-items: center; padding: 10px 0; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: inherit; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(120% 90% at 85% 30%, #8a2a4b 0%, #5a1630 45%, #2b0a17 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; gap: 8px; padding-top: 48px; padding-bottom: 32px; min-height: min(78vh, 680px); align-items: center; }
.hero .eyebrow { color: rgba(255, 255, 255, .75); }
.hero h1 { font-size: clamp(3.2rem, 11vw, 7.5rem); line-height: .92; letter-spacing: -.035em; text-transform: uppercase; margin: 0 0 18px; }
.hero p { font-size: 1.05rem; max-width: 440px; color: rgba(255, 255, 255, .85); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { position: relative; height: 260px; }
.hero-art .g { position: absolute; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.hero-art .g1 { width: 52%; left: 4%; top: 6%; transform: rotate(-8deg); }
.hero-art .g2 { width: 40%; left: 38%; top: 18%; }
.hero-art .g3 { width: 46%; right: 0; top: 0; transform: rotate(9deg); }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-art { height: 480px; }
}

/* ---------- Promise strip ---------- */
.promises { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.promises-row { display: flex; gap: 24px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.promises-row > div { display: flex; gap: 10px; align-items: center; white-space: nowrap; font-size: .88rem; color: var(--ink-2); }
@media (min-width: 900px) { .promises-row { justify-content: space-around; } }

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 56px 0 18px; }
.section-head h2 { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(1.05rem, 2.4vw, 1.4rem); }
.section-head a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.section-head a:hover { color: var(--accent); }

/* ---------- Women / Men split banners ---------- */
.split { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.tile { position: relative; display: block; background: var(--bg); text-decoration: none; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.tile-art { position: absolute; inset: 7% 16% 48%; display: grid; place-items: center; transition: transform .4s; }
.tile-art .garment { max-height: 100%; width: auto; }
.tile:hover .tile-art { transform: scale(1.04); }
.tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; }
.tile-label span { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(1.4rem, 5vw, 2.6rem); line-height: 1; }
.tile-label small { color: var(--ink-2); font-size: .85rem; }
@media (min-width: 900px) { .split { gap: 20px; } .tile { aspect-ratio: 16 / 11; } .tile-art { inset: 8% 10% 30%; } .tile-label { padding: 24px 28px; } }

/* ---------- Category tiles ---------- */
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.cat-grid a { display: flex; flex-direction: column; text-decoration: none; background: var(--bg); border-radius: var(--radius); padding: 12px 12px 14px; height: 100%; }
.cat-art { aspect-ratio: 1; display: grid; place-items: center; padding: 10%; transition: transform .3s; }
.cat-grid a:hover .cat-art { transform: translateY(-4px); }
.cat-grid strong { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.cat-grid span { color: var(--ink-2); font-size: .8rem; }
@media (min-width: 900px) { .cat-grid { gap: 20px; } .cat-grid a { padding: 20px; } .cat-grid strong { font-size: 1rem; } }

/* ---------- Product cards, grid and rails ---------- */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 40px 20px; } }
.card a { text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 3 / 4; background: var(--bg-soft); border-radius: var(--radius); display: grid; place-items: center; padding: 16%; overflow: hidden; }
.card-media .garment { transition: transform .4s; }
.card a:hover .card-media .garment { transform: scale(1.06); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.card-body { padding: 10px 2px 0; }
.card-body h3 { font-size: .92rem; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.card-sub { color: var(--muted); font-size: .8rem; margin: 0 0 4px; }
.price { margin: 0; font-weight: 700; font-size: .95rem; }
.price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 4px; }
.off { color: var(--accent); font-weight: 700; font-size: .85em; }
.rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.rail::-webkit-scrollbar { display: none; }
.rail-track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; padding: 0; margin: 0; }
.rail-track > li { scroll-snap-align: start; }
@media (min-width: 900px) { .rail { margin: 0; padding: 0; } .rail-track { grid-auto-columns: calc(25% - 15px); gap: 20px; } }

/* ---------- Shop by colour ---------- */
.color-row { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.color-row a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.dot { width: 64px; height: 64px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .2s; }
.color-row a:hover .dot { transform: scale(1.08); }

/* ---------- Dark band (pillars) ---------- */
.band-dark { background: var(--ink); color: #fff; margin-top: 72px; padding: 64px 0; }
.band-dark .eyebrow { color: rgba(255, 255, 255, .6); }
.band-dark h2 { font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: 1.05; margin: 0 0 12px; max-width: 760px; }
.band-lead { color: rgba(255, 255, 255, .75); max-width: 560px; margin: 0 0 28px; }
.band-dark .pillars li { border-color: rgba(255, 255, 255, .18); }
.band-dark .pillars strong { color: #fff; }
.band-dark .pillars span { color: rgba(255, 255, 255, .7); }
.band-dark .btn { margin-top: 12px; }

.pillars { list-style: none; counter-reset: p; padding: 0 !important; margin: 16px 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pillars li { counter-increment: p; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pillars li::before { content: counter(p, decimal-leading-zero); color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: .1em; }
.band-dark .pillars li::before { color: #e48aa8; }
.pillars strong { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.pillars span { color: var(--muted); }

/* ---------- Page hero (Our products) ---------- */
.page-hero { background: var(--bg-soft); padding: 48px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); text-transform: uppercase; letter-spacing: -.02em; margin: 0 0 8px; }
.page-hero p { max-width: 560px; color: var(--ink-2); margin: 0; }
.range { display: grid; gap: 40px; margin-top: 40px; }
.range-row { display: grid; gap: 20px; align-items: center; }
.range-art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--bg); border-radius: var(--radius); padding: 10%; }
.range-art .garment { max-height: 100%; width: auto; }
.range-copy h2 { text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 0 0 8px; }
.range-copy p { margin: 0 0 10px; color: var(--ink-2); }
.range-copy .btn { margin-top: 12px; }
@media (min-width: 900px) { .range-row { grid-template-columns: 1fr 1fr; gap: 56px; } .range-row.flip .range-art { order: 2; } }
.swatches { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 6px 0 0; }
.swatches li { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.features li { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.features strong { text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.features span { color: var(--ink-2); font-size: .92rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Shop page ---------- */
.crumbs { font-size: .78rem; color: var(--muted); margin-top: 18px; letter-spacing: .02em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.shop-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shop-head h1 { text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.4rem, 3.5vw, 2rem); }
.filters { margin: 4px 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chips { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.chips a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.chips a:hover, .chips a[aria-current] { border-color: var(--ink); background: var(--ink); color: #fff; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.filter-bar label { display: flex; gap: 6px; align-items: center; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filter-bar select { font: inherit; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.empty { padding: 32px 0; }

/* ---------- Product page ---------- */
.product-grid { display: grid; gap: 24px; margin-top: 12px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; } }
.product-media { background: var(--bg-soft); border-radius: var(--radius); aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 14%; }
@media (min-width: 900px) { .product-media { position: sticky; top: 96px; } }
.product-info h1 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 2rem); }
.price.big { font-size: 1.4rem; }
.small-note { font-size: .8rem; margin: 2px 0 0; color: var(--ok); font-weight: 600; }
.picker { border: 0; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.picker legend { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; padding: 0; width: 100%; }
.picker legend a { color: var(--accent); text-transform: none; letter-spacing: 0; }
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.swatch { width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--ink); }
.swatch:has(input:focus-visible), .size:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.size span { display: grid; place-items: center; min-width: 54px; height: 48px; padding: 0 12px; border: 1px solid #cfcdca; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .9rem; }
.size:hover span { border-color: var(--ink); }
.size:has(input:checked) span { border-color: var(--ink); background: var(--ink); color: #fff; }
.size.out span { color: #b3b3b3; text-decoration: line-through; background: var(--bg-soft); border-color: var(--line); }
.stock { min-height: 1.5em; margin: 16px 0 8px; font-size: .88rem; font-weight: 600; color: var(--ok); }
.stock.low { color: var(--warn); }
.stock.out { color: var(--danger); }
.qty { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: .88rem; font-weight: 600; }
.qty input { width: 72px; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.product-promises { list-style: none; padding: 16px 0 0; margin: 16px 0 0; display: grid; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.product-promises li { display: flex; gap: 10px; align-items: center; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { margin-top: 20px; }
summary { cursor: pointer; font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* ---------- Search ---------- */
.search { padding-top: 24px; }
.search-form { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--ink); padding: 8px 0; margin-bottom: 16px; }
.search-form input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.15rem; padding: 8px 0; outline: none; background: transparent; }

/* ---------- Login and My orders ---------- */
.auth { display: grid; place-items: start center; padding: 40px 16px 24px; background: var(--bg-soft); min-height: 60vh; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 2px 24px rgba(0, 0, 0, .06); }
.auth-card h1, .orders h1 { text-transform: uppercase; font-size: 1.4rem; letter-spacing: .04em; margin: 0 0 6px; }
.auth-form { display: grid; gap: 14px; margin-top: 18px; }
.auth-form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.auth-form input { font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; padding: 12px; border: 1px solid #cfcdca; border-radius: var(--radius); width: 100%; }
.phone { display: flex; border: 1px solid #cfcdca; border-radius: var(--radius); overflow: hidden; }
.phone > span { padding: 12px; background: var(--bg-soft); font-weight: 600; text-transform: none; letter-spacing: 0; }
.phone input { border: 0; border-radius: 0; }
.fine { color: var(--muted); font-size: .78rem; margin: 0; }
.auth-alt { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.alert { background: #fff8db; border: 1px solid #f0d66b; border-radius: var(--radius); padding: 10px 12px; font-size: .88rem; margin: 0 0 16px; }
.alert.error { background: #fdecea; border-color: #f5b5ad; color: var(--danger); }
.orders { padding-bottom: 24px; }
.orders h1 { margin-top: 28px; font-size: clamp(1.4rem, 3.5vw, 2rem); }
.orders-grid { display: grid; gap: 16px; margin: 20px 0; }
@media (min-width: 800px) { .orders-grid { grid-template-columns: 1fr 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { margin: 12px 0 4px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; background: var(--ink); color: #fff; padding: 56px 0 24px; font-size: .9rem; }
.footer-top { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand { color: #fff; font-size: 1.6rem; padding: 0; }
.footer-brand p { margin: 8px 0 0; max-width: 320px; }
.site-footer .muted { color: rgba(255, 255, 255, .55); }
.footer-top h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 12px; color: rgba(255, 255, 255, .55); }
.footer-top a { display: block; color: rgba(255, 255, 255, .88); text-decoration: none; padding: 4px 0; }
.footer-top a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .55); font-size: .78rem; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.6fr repeat(4, 1fr); } .footer-brand { grid-column: auto; } }

/* ---------- Content and policy pages ---------- */
.prose { max-width: 780px; padding-bottom: 32px; }
.prose h1 { text-transform: uppercase; letter-spacing: .02em; }
.prose h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; margin: 2em 0 .6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol:not(.pillars) { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose .lead { font-size: 1.15rem; color: var(--ink); }
.prose .btn { margin: 8px 8px 0 0; }
.prose details:first-of-type { margin-top: 8px; }
.prose summary { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.pull { margin: 8px 0 24px; padding: 0 0 0 18px; border-left: 4px solid var(--accent); font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.15; color: var(--ink); }
.contact-list { list-style: none; padding: 0 !important; }
.contact-list strong { display: inline-block; min-width: 96px; }
.table-scroll { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; min-width: 360px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
/* Placeholders waiting for the client's details. Disappear once business.js is filled in. */
mark.tbc { background: #fff1b8; color: inherit; padding: 0 3px; border-radius: 3px; }
.band-dark mark.tbc { background: rgba(255, 241, 184, .2); color: #fff3c4; }
.draft-note { background: #fff8db; border: 1px solid #f0d66b; border-radius: var(--radius); padding: 10px 14px; font-size: .88rem; }

/* =====================================================================================
   Quick wins: labels, filters, specs, reviews, WhatsApp
   ===================================================================================== */
.badge-light { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.card-media { isolation: isolate; }
.card-img { position: absolute; inset: 0; display: grid; place-items: center; padding: 16%; transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.card-img.b { opacity: 0; transform: scale(1.04); }
.card a:hover .card-img.a { opacity: 0; transform: scale(.97); }
.card a:hover .card-img.b { opacity: 1; transform: scale(1); }
.card-dots { position: absolute; left: 10px; bottom: 10px; list-style: none; display: flex; gap: 4px; padding: 5px 7px; margin: 0; background: rgba(255, 255, 255, .9); border-radius: 999px; opacity: 0; transform: translateY(6px); transition: .3s ease; }
.card-dots li { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.card-dots li.more { width: auto; height: auto; background: none; box-shadow: none; font-size: .65rem; font-weight: 700; line-height: 10px; }
.card a:hover .card-dots, .card a:focus-visible .card-dots { opacity: 1; transform: none; }
@media (hover: none) { .card-dots { opacity: 1; transform: none; } }
.card-rating { margin: 0 0 2px; font-size: .78rem; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.stars { --r: 0%; display: inline-block; font-size: .85rem; letter-spacing: 1px; line-height: 1;
  background: linear-gradient(90deg, #e2a400 var(--r), #d9d6d2 var(--r)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "\2605\2605\2605\2605\2605"; }

.shop-intro { color: var(--ink-2); max-width: 640px; margin: -4px 0 16px; }
.active-filters { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 700; text-decoration: none; }
.active-filters a.clear { background: none; color: var(--ink); text-decoration: underline; }
.seo-copy { max-width: 760px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.seo-copy h2 { text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; margin: 0 0 8px; }
.seo-copy p { color: var(--ink-2); font-size: .92rem; }

.rating-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .85rem; color: var(--ink-2); text-decoration: none; }
.specs { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.specs li { background: var(--bg-soft); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.specs span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.specs strong { font-size: .9rem; }
.fit-note { width: 100%; margin: -4px 0 4px; font-size: .8rem; color: var(--ink-2); background: var(--accent-soft); border-radius: var(--radius); padding: 8px 10px; }
.fabric-compare { width: 100%; border-collapse: collapse; margin: 12px 0 6px; font-size: .82rem; }
.fabric-compare th, .fabric-compare td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fabric-compare th { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.fabric-compare td:first-child { color: var(--muted); font-weight: 600; }

.reviews .section-head { margin-top: 64px; }
.reviews-empty { display: flex; gap: 16px; align-items: center; background: var(--bg-soft); border-radius: var(--radius); padding: 20px 24px; }
.reviews-empty .stars { font-size: 1.3rem; }
.reviews-empty p { margin: 0; color: var(--ink-2); }
.reviews-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: 280px 1fr; gap: 48px; } }
.review-summary { display: flex; flex-direction: column; gap: 6px; }
.big-rating { font-size: 3rem; line-height: 1; }
.dist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: .78rem; }
.dist li { display: grid; grid-template-columns: 26px 1fr 24px; gap: 8px; align-items: center; }
.dist i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--w), var(--line) var(--w)); }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .9rem; }
.verified { font-size: .7rem; font-weight: 700; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; }
.small-meta { font-size: .78rem; }

.wa-btn { position: fixed; right: 16px; bottom: 16px; z-index: 25; display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: transform .2s; }
.wa-btn:hover { transform: translateY(-2px); }
.wa-btn span { display: none; }
@media (min-width: 900px) { .wa-btn { padding: 12px 18px 12px 14px; } .wa-btn span { display: inline; } }

/* Sticky "Add to bag" bar on phones, shown once the main button scrolls out of view */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.sticky-buy.show { transform: none; }
.sticky-buy div { display: flex; flex-direction: column; min-width: 0; }
.sticky-buy span { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .btn { min-height: 44px; padding: 0 20px; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* =====================================================================================
   Motion: page reveals, hero entrance, header behaviour. All off for reduced-motion users,
   and content stays visible without JavaScript (reveals only arm once app.js adds .js).
   ===================================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero: title lines rise out of a mask, then copy and buttons, then garments drift in */
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero .eyebrow { animation: fadeUp .8s .05s both; }
.hero-copy > p:not(.eyebrow) { animation: fadeUp .9s .35s both; }
.hero .actions { animation: fadeUp .9s .5s both; }
.hero-art .g { animation: dropIn 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-art .g1 { --rot: -8deg; animation-delay: .3s; }
.hero-art .g2 { animation-delay: .45s; }
.hero-art .g3 { --rot: 9deg; animation-delay: .6s; }
.hero-art .g > svg { animation: bob 6s ease-in-out infinite; }
.hero-art .g2 > svg { animation-delay: -2s; }
.hero-art .g3 > svg { animation-delay: -4s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(40px) rotate(var(--rot, 0deg)) scale(.92); } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Big outlined marquee band */
.big-marquee { overflow: hidden; padding: 28px 0; border-bottom: 1px solid var(--line); }
.big-track { display: inline-flex; white-space: nowrap; animation: marquee 40s linear infinite; }
.big-track span { font-size: clamp(2.2rem, 7vw, 5rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; padding-right: 48px; }
.big-track span.o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

/* Buttons lift; section-head arrows slide; tiles rise on hover */
.btn { transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.section-head a .icon { transition: transform .25s; }
.section-head a:hover .icon { transform: translateX(4px); }
.tile, .cat-grid a, .features li, .panel { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.cat-grid a:hover, .features li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .07); }

/* Header hides when scrolling down, returns when scrolling up */
.site-header { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .06); }
.site-header.away { transform: translateY(-100%); }

/* Product image follows the pointer for a closer look */
.product-media { overflow: hidden; cursor: zoom-in; }
.product-media .garment { transition: transform .25s ease-out; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.product-media.zoom .garment { transform: scale(1.6); }

/* Drawer slides in */
.menu[open] .drawer { animation: slideIn .35s cubic-bezier(.2, .7, .2, 1); }
.menu[open] summary::before { animation: fadeIn .3s; }
@keyframes slideIn { from { transform: translateX(-100%); } }
@keyframes fadeIn { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .site-header.away { transform: none; }
}

/* =====================================================================================
   First visit: the store doors open. Two wine panels carry the logo split down the seam,
   hold for a beat, then swing open into the shop. Drawn on body::before/::after so they
   cover the page from the very first frame; app.js removes .intro when they're done.
   ===================================================================================== */
/* Nothing may widen the page during the intro (the shop's zoom-in would, on phones, and push
   the right door off its seam), so clip both axes and pin the doors by their left edges. */
html.intro, html.intro body { overflow: hidden; }
html.intro body::before, html.intro body::after {
  position: fixed; top: 0; bottom: 0; width: 50.2vw; z-index: 1000; display: flex; align-items: center;
  background: radial-gradient(140% 100% at 100% 50%, #8a2a4b 0%, #5a1630 55%, #2b0a17 100%);
  color: #fff; font: 800 clamp(2.2rem, 9vw, 6rem)/1 var(--font); letter-spacing: .3em;
  animation: doorLeft 1.25s .75s cubic-bezier(.7, 0, .25, 1) forwards; backface-visibility: hidden;
}
/* The Allied Ventures sign hangs across the seam: each door carries its half, so it parts as they open. */
html.intro { --logo-w: min(64vw, 460px); }
html.intro body::before {
  content: ""; left: 0; transform-origin: left center; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .28);
  background:
    var(--knob-shine) right 24px top var(--knob-top) / 30px 30px no-repeat,
    var(--knob) right 24px top var(--knob-top) / 30px 30px no-repeat,
    var(--plate) right 28px top calc(var(--knob-top) - 21px) / 22px 72px no-repeat,
    url(/brand/allied-ventures-sign.png) right calc(.2vw - var(--logo-w) / 2) center / var(--logo-w) auto no-repeat,
    radial-gradient(140% 100% at 100% 50%, #8a2a4b 0%, #5a1630 55%, #2b0a17 100%);
}
/* Brass door knobs on oval backplates, either side of the seam */
html.intro {
  --knob-shine: radial-gradient(circle 4px at 40% 36%, rgba(255, 250, 230, .95), transparent);
  --knob: radial-gradient(circle closest-side, #f3dc98 0, #d4ad58 45%, #9b752d 78%, #5f4416 94%, transparent 100%);
  --knob-top: calc(50vh + var(--logo-w) * .335 + 34px);
  --plate: radial-gradient(closest-side, #dcbd6c 0, #b58f40 55%, #7d5c22 90%, transparent 100%);
}
html.intro body::after {
  content: ""; left: 49.8vw; transform-origin: right center;
  background:
    var(--knob-shine) left 24px top var(--knob-top) / 30px 30px no-repeat,
    var(--knob) left 24px top var(--knob-top) / 30px 30px no-repeat,
    var(--plate) left 28px top calc(var(--knob-top) - 21px) / 22px 72px no-repeat,
    url(/brand/allied-ventures-sign.png) left calc(.2vw - var(--logo-w) / 2) center / var(--logo-w) auto no-repeat,
    radial-gradient(140% 100% at 0% 50%, #8a2a4b 0%, #5a1630 55%, #2b0a17 100%);
  animation-name: doorRight;
}
@keyframes doorLeft { 0% { transform: perspective(1600px) rotateY(0); } 100% { transform: perspective(1600px) rotateY(88deg); opacity: .6; } }
@keyframes doorRight { 0% { transform: perspective(1600px) rotateY(0); } 100% { transform: perspective(1600px) rotateY(-88deg); opacity: .6; } }
/* The shop behind steps forward as the doors open */
html.intro main, html.intro .site-header, html.intro .announce { animation: walkIn 1.5s .75s cubic-bezier(.3, 0, .2, 1) both; }
@keyframes walkIn { from { transform: scale(1.06); filter: brightness(.55); } to { transform: none; filter: none; } }

/* On a first visit the hero waits for the doors before animating */
html.first-visit .hero .eyebrow { animation-delay: 1.45s; }
html.first-visit .hero-title .line > span { animation-delay: 1.4s; }
html.first-visit .hero-title .line:nth-child(2) > span { animation-delay: 1.52s; }
html.first-visit .hero-copy > p:not(.eyebrow) { animation-delay: 1.75s; }
html.first-visit .hero .actions { animation-delay: 1.9s; }
html.first-visit .hero-art .g1 { animation-delay: 1.65s; }
html.first-visit .hero-art .g2 { animation-delay: 1.8s; }
html.first-visit .hero-art .g3 { animation-delay: 1.95s; }

/* =====================================================================================
   Welcome pop-up: 10% off the first order for an email sign-up
   ===================================================================================== */
.welcome { padding: 0; border: 0; border-radius: 10px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; color: var(--ink); background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.welcome[open] { display: grid; grid-template-columns: 1fr 1.15fr; animation: popIn .5s cubic-bezier(.2, .9, .25, 1.05); }
.welcome::backdrop { background: rgba(17, 17, 17, .55); backdrop-filter: blur(3px); animation: fadeIn .4s; }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.welcome-art { position: relative; overflow: hidden; color: #fff; padding: 36px 28px; display: flex; flex-direction: column; justify-content: flex-start;
  background: radial-gradient(120% 90% at 85% 30%, #8a2a4b 0%, #5a1630 50%, #2b0a17 100%); }
.welcome-art .eyebrow { color: rgba(255, 255, 255, .7); }
.welcome-off { font-size: clamp(4rem, 10vw, 6.2rem); font-weight: 800; line-height: .9; letter-spacing: -.04em; margin: 6px 0 0; }
.welcome-off span { display: block; font-size: .42em; letter-spacing: .02em; text-transform: uppercase; }
.welcome-sub { margin: 8px 0 0; font-size: 1rem; color: rgba(255, 255, 255, .85); }
.welcome-g { position: absolute; right: -30px; bottom: -24px; width: 62%; opacity: .95; transform: rotate(-10deg); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); animation: bob 6s ease-in-out infinite; }
.welcome-body { position: relative; padding: 40px 32px 28px; }
.welcome-body h2 { margin: 0 0 10px; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; }
.welcome-body p { color: var(--ink-2); margin: 0 0 16px; }
.welcome-body form { display: grid; gap: 10px; }
.welcome-body input { font: inherit; font-size: 1rem; padding: 13px 14px; border: 1px solid #cfcdca; border-radius: var(--radius); width: 100%; }
.welcome-body input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.welcome-body .fine { margin: 0; }
.welcome-error { color: var(--danger) !important; font-size: .85rem; min-height: 1.2em; margin: 0 !important; }
.welcome-close { position: absolute; top: 10px; right: 10px; }
.welcome-skip { background: none; border: 0; padding: 12px 0 0; font: inherit; font-size: .85rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.code-box { display: flex; gap: 8px; align-items: center; justify-content: space-between; border: 2px dashed var(--accent); border-radius: var(--radius); padding: 10px 10px 10px 16px; margin: 0 0 12px; background: var(--accent-soft); }
.code-box code { font: 800 1.1rem/1.2 var(--font); letter-spacing: .04em; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; user-select: all; }
[data-step="done"] { animation: fadeUp .45s both; }
@media (max-width: 640px) {
  .welcome { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .welcome[open] { grid-template-columns: 1fr; animation: sheetUp .45s cubic-bezier(.2, .9, .25, 1); }
  .welcome-art { padding: 22px 20px 18px; min-height: 150px; }
  .welcome-off { font-size: 3.4rem; }
  .welcome-g { width: 40%; right: -10px; bottom: -40px; }
  .welcome-body { padding: 22px 20px 20px; }
  .welcome-body h2 { font-size: 1.2rem; padding-right: 32px; }
}
@keyframes sheetUp { from { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  html.intro body::before, html.intro body::after { display: none; }
}

/* =====================================================================================
   The rack: scrubs on hangers on a lit clothes rail. Everything that moves uses transform and
   opacity only (GPU-composited), so it stays smooth on phones.
   ===================================================================================== */
.rack-section {
  position: relative; overflow: hidden; padding: 64px 0 28px;
  background:
    radial-gradient(34% 60% at 18% -6%, rgba(255, 236, 205, .85), transparent 70%),
    radial-gradient(34% 60% at 50% -6%, rgba(255, 236, 205, .95), transparent 70%),
    radial-gradient(34% 60% at 82% -6%, rgba(255, 236, 205, .85), transparent 70%),
    linear-gradient(#f2ece5, #e9e1d7 62%, #dcd1c4);
}
.rack-section::after { /* floor line and a little floor shine */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(rgba(0, 0, 0, .06), transparent 30%), linear-gradient(#e4dbd0, #d6cabb);
  border-top: 1px solid rgba(0, 0, 0, .06); z-index: 0;
}
.rack-head { position: relative; z-index: 2; text-align: center; }
.rack-head h2 { margin: 0 0 6px; font-size: clamp(1.8rem, 5vw, 3.2rem); text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; }
.rack-hint { margin: 0; color: var(--ink-2); font-size: .92rem; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

.rack { position: relative; z-index: 1; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.rack::-webkit-scrollbar { display: none; }
.rack-track { --w: 172px; position: relative; display: flex; list-style: none; margin: 0 auto; width: max-content; min-width: 100%; justify-content: center; padding: 70px 48px 215px; }
/* the rail */
.rack-track::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 74px; height: 9px; border-radius: 5px; z-index: 0;
  background: linear-gradient(#ffffff, #c2c2c2 35%, #f2f2f2 55%, #8e8e8e);
  box-shadow: 0 10px 14px -6px rgba(0, 0, 0, .35);
}
/* two ceiling rods holding it up */
.rack-track::after {
  content: ""; position: absolute; left: 64px; right: 64px; top: 0; height: 78px; z-index: 0;
  background: linear-gradient(90deg, #9d9d9d 0 5px, transparent 5px calc(100% - 5px), #9d9d9d calc(100% - 5px));
}

.hang { position: relative; z-index: 1; flex: 0 0 auto; width: var(--w); margin-left: calc(var(--w) * -.2); scroll-snap-align: center; transition: z-index 0s .5s; }
.hang:first-child { margin-left: 0; }
.hang.pulled { z-index: 30; transition: z-index 0s; }
.hang.pushed { z-index: 2; }
.hang-move {
  position: relative; transform-origin: 50% 0;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--rot, 0deg)) scale(var(--s, 1));
  transition: transform .75s cubic-bezier(.2, 1.25, .35, 1); will-change: transform;
}
/* no-JavaScript fallback: hover still takes a garment off the rail */
.hang:hover, .hang:focus-within { --py: 30px; --s: 1.1; z-index: 30; transition: z-index 0s; }
.hang-sway { transform-origin: 50% 1%; animation: sway 6.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s); }
.hang.pulled .hang-sway { animation-play-state: paused; }
.hang-brush { transform-origin: 50% 1%; }
.rack.brush .hang-brush { animation: brush 1.7s cubic-bezier(.3, .6, .3, 1) both; animation-delay: calc(var(--i) * 85ms); }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@keyframes brush { 0% { transform: rotate(0); } 14% { transform: rotate(10deg); } 34% { transform: rotate(-6.5deg); } 54% { transform: rotate(3.5deg); } 74% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); } }

.hang-item { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; outline-offset: 6px; border-radius: 8px; }
.hang-svg { width: 100%; height: auto; display: block; overflow: visible; }
.hang-shadow { /* the garment's shadow on the wall; deepens as it's pulled away from it */
  position: absolute; left: 16%; right: 16%; top: 22%; bottom: 8%; border-radius: 45%;
  background: rgba(40, 20, 10, .22); filter: blur(16px); transform: translate(10px, 12px); opacity: .55;
  transition: transform .75s cubic-bezier(.2, 1, .35, 1), opacity .5s;
}
.hang.pulled .hang-shadow { transform: translate(20px, 46px) scale(1.06); opacity: .95; }
.hang-tag { /* the swing tag with the price */
  position: absolute; top: 46%; right: 4%; padding: 4px 8px 4px 9px; border-radius: 3px 6px 6px 3px; background: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .02em; box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
  transform: rotate(9deg); transform-origin: 50% -14px; transition: opacity .3s, transform .5s;
}
.hang-tag::before { content: ""; position: absolute; left: 50%; top: -14px; width: 1px; height: 14px; background: #8a8a8a; }
.hang-tag::after { content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--line); }
.hang.pulled .hang-tag { opacity: 0; transform: rotate(0) translateY(-6px); }

.hang-card {
  position: absolute; left: 50%; top: calc(100% - 26px); width: 236px; z-index: 3;
  display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 12px; text-align: left;
  background: #fff; border-radius: 10px; box-shadow: 0 22px 44px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .06);
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px) scale(.94); transform-origin: 50% 0;
  transition: opacity .3s, transform .55s cubic-bezier(.2, 1.2, .35, 1);
}
.hang.pulled .hang-card, .hang:hover .hang-card, .hang:focus-within .hang-card { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(.91); transition-delay: .1s; }
.hang:first-child .hang-card { left: 0; transform: translate(0, 16px) scale(.94); transform-origin: 0 0; }
.hang:first-child.pulled .hang-card, .hang:first-child:hover .hang-card { transform: translate(0, 0) scale(.91); }
.hang:last-child .hang-card { left: auto; right: 0; transform: translate(0, 16px) scale(.94); transform-origin: 100% 0; }
.hang:last-child.pulled .hang-card, .hang:last-child:hover .hang-card { transform: translate(0, 0) scale(.91); }
.hang-card strong { font-size: .95rem; line-height: 1.25; }
.hang-meta { color: var(--muted); font-size: .76rem; text-transform: capitalize; }
.hang-price { font-weight: 800; margin-top: 4px; }
.hang-price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 4px; }
.hang-price em { color: var(--accent); font-style: normal; font-size: .82em; margin-left: 4px; }
.hang-dots { display: flex; gap: 5px; margin: 6px 0 4px; }
.hang-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.hang-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--ink); }
.hang-go:hover .icon { transform: translateX(3px); }
.hang-go .icon { transition: transform .2s; }
.rack-foot { position: relative; z-index: 2; text-align: center; margin-top: 4px; }

@media (max-width: 899px) {
  .rack-section { padding-top: 48px; }
  .rack-track { --w: 46vw; justify-content: flex-start; padding: 64px 27vw 250px; }
  .rack-track::before { left: 8px; right: 8px; top: 68px; }
  .rack-track::after { top: 0; height: 72px; left: 30px; right: 30px; }
  .hang { margin-left: calc(var(--w) * -.12); }
  .hang-card { width: 210px; }
  .hang:first-child .hang-card, .hang:last-child .hang-card { left: 50%; right: auto; transform: translate(-50%, 16px) scale(.94); transform-origin: 50% 0; }
  .hang:first-child.pulled .hang-card, .hang:last-child.pulled .hang-card { transform: translate(-50%, 0) scale(.91); }
}

@media (prefers-reduced-motion: reduce) {
  .hang-sway, .rack.brush .hang-brush { animation: none; }
}

/* Phones: a gentle "swipe" hint in the space the detail card uses, hidden while a garment is out */
.rack-swipe { display: none; }
@media (max-width: 899px) {
  .rack-swipe { display: block; position: absolute; left: 0; right: 0; bottom: 250px; z-index: 2; margin: 0; text-align: center;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); transition: opacity .3s; pointer-events: none; }
  .rack-swipe span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
  .rack-swipe span:last-child { animation-direction: reverse; }
  .has-pulled .rack-swipe { opacity: 0; }
}
@keyframes nudge { 50% { transform: translateX(-6px); } }

/* =====================================================================================
   Bag, checkout, orders, account, help
   ===================================================================================== */
.header-icons .count[hidden] { display: none; }
.header-icons .count.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.45); } }

.flow { padding-bottom: 32px; }
.flow h1 { text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 8px 0 18px; }
.flow h1 .small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.narrow-flow { max-width: 680px; }
.flow-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .flow-grid { grid-template-columns: 1fr 380px; gap: 32px; } .flow-side { position: sticky; top: 96px; } }
.box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 0 0 16px; }
.box.center { text-align: center; }
fieldset.box { min-width: 0; }
.box legend, .side-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; padding: 0; }
.box legend { float: left; width: 100%; }
.box legend + * { clear: both; }
.flow-empty { text-align: center; padding: 64px 16px; }
.empty-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--bg-soft); margin-bottom: 8px; }

/* steps */
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 20px 0 4px; counter-reset: st; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.steps li { counter-increment: st; display: flex; align-items: center; gap: 6px; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .7rem; }
.steps li:not(:last-child)::after { content: ""; width: 22px; height: 1.5px; background: var(--line); margin-left: 2px; }
.steps li.done { color: var(--ok); }
.steps li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.now { color: var(--ink); }
.steps li.now::before { background: var(--ink); border-color: var(--ink); color: #fff; }

/* bag lines */
.bag-lines { list-style: none; padding: 0; margin: 0; }
.bag-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-line.short { background: linear-gradient(90deg, #fdecea, transparent 60%); }
.thumb { display: grid; place-items: center; width: 84px; height: 100px; background: var(--bg-soft); border-radius: 8px; padding: 14px; }
.thumb .garment { width: 100%; }
.bl-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bl-name { font-weight: 700; text-decoration: none; }
.bl-price s { color: var(--muted); font-size: .85em; margin-left: 4px; }
.bl-actions { grid-column: 2; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (min-width: 640px) { .bag-line { grid-template-columns: 96px 1fr auto; } .thumb { width: 96px; height: 116px; } .bl-actions { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 8px; } }
.qty-step { display: inline-flex; align-items: center; border: 1px solid #cfcdca; border-radius: 999px; overflow: hidden; }
.qty-step button { width: 36px; height: 36px; border: 0; background: none; font: inherit; font-size: 1.1rem; cursor: pointer; }
.qty-step button:hover:not(:disabled) { background: var(--bg-soft); }
.qty-step button:disabled { color: #c4c2bf; cursor: not-allowed; }
.qty-step output { min-width: 26px; text-align: center; font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--accent); }

/* summary */
.ship-meter { margin-bottom: 16px; font-size: .86rem; }
.ship-meter p { margin: 0 0 6px; }
.ship-meter i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line) var(--p)); transition: background .4s; }
.ship-meter.done i { background: var(--ok); }
.coupon { display: flex; gap: 8px; margin: 0 0 6px; }
.coupon input { flex: 1; min-width: 0; font: inherit; padding: 9px 12px; border: 1px solid #cfcdca; border-radius: var(--radius); text-transform: uppercase; }
.coupon.applied { justify-content: space-between; align-items: center; background: var(--accent-soft); border-radius: var(--radius); padding: 10px 12px; font-size: .88rem; }
.coupon.applied span { display: flex; gap: 6px; align-items: center; color: var(--accent); }
.welcome-hint { font-size: .82rem; margin: 4px 0 8px; color: var(--ink-2); }
.sum { margin: 16px 0; display: grid; gap: 8px; font-size: .92rem; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt, .sum dd { margin: 0; }
.sum .disc dd { color: var(--ok); font-weight: 700; }
.sum .free { color: var(--ok); }
.sum .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.1rem; font-weight: 800; }
.sum .gst { color: var(--muted); font-size: .8rem; }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; background: var(--bg-soft); }
.trust { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: .8rem; color: var(--muted); }
.trust li { display: flex; gap: 8px; align-items: center; }

/* fields */
.fld { display: grid; gap: 6px; margin-bottom: 14px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fld input, .fld select, .fld textarea { font: inherit; font-size: 1rem; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 11px 12px; border: 1px solid #cfcdca; border-radius: var(--radius); width: 100%; background: #fff; color: var(--ink); }
.fld textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.fld.has-error input, .fld.has-error select, .fld.has-error textarea { border-color: var(--danger); background: #fffafa; }
.fld-error, .fld-hint { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .8rem; }
.fld-error { color: var(--danger); }
.fld-hint { color: var(--muted); }
.fld-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .fld-row { grid-template-columns: 1fr 1fr; } .fld-row.three { grid-template-columns: 1fr 1fr 1fr; } }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; margin-top: 4px; }
.gst-box { border: 0; padding: 0; margin: 0 0 8px; }
.gst-box summary { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .88rem; color: var(--accent); margin-bottom: 10px; }

/* payment choices */
.pay { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.pay:has(input:checked) { border-color: var(--ink); background: #fbfaf8; }
.pay.off { opacity: .6; cursor: not-allowed; }
.pay input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; }
.pay span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pay small { color: var(--muted); font-size: .82rem; }
.pay-logos { font-style: normal; font-size: .66rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 12px; }
.mini-lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.mini-lines .thumb { width: 52px; height: 62px; padding: 8px; }
.mini-lines span { display: flex; flex-direction: column; min-width: 0; }
.mini-lines small { color: var(--muted); }
.secure { display: flex; gap: 6px; align-items: center; font-size: .76rem; color: var(--muted); margin: 10px 0 0; }

/* confirmation and order detail */
.placed { display: flex; gap: 18px; align-items: center; margin: 16px 0 22px; padding: 22px; border-radius: 12px; background: linear-gradient(120deg, #eef7f1, #fff); border: 1px solid #cfe7d8; }
.placed h1 { margin: 2px 0 6px; }
.placed p { margin: 0; }
.tick { flex: none; display: inline-block; width: 64px; height: 64px; }
.tick svg { width: 100%; height: 100%; fill: none; stroke: var(--ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s .1s ease-out forwards; }
.tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .7s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-head h1 { margin-bottom: 4px; }
.status { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); white-space: nowrap; }
.s-confirmed, .s-paid, .s-packed, .s-shipped { background: #e8f0fb; color: #1f4f8f; }
.s-delivered, .t-resolved { background: #e6f4ea; color: var(--ok); }
.s-pending_payment, .t-open { background: #fff4d6; color: var(--warn); }
.s-cancelled, .s-refunded { background: #fdecea; color: var(--danger); }
.t-in_progress { background: #e8f0fb; color: #1f4f8f; }
.track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; margin: 18px 0 24px; }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: center; }
.track li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.track li:first-child::before { display: none; }
.track li.done::before, .track li.now::before { background: var(--ok); }
.track i { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.track li.done i { background: var(--ok); border-color: var(--ok); }
.track li.now i { border-color: var(--ok); box-shadow: 0 0 0 5px rgba(31, 107, 79, .15); }
.track li.done, .track li.now { color: var(--ink); }
.two-col { display: grid; gap: 16px; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .86rem; }
.events li { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.events time { color: var(--muted); }
.order-actions { display: grid; gap: 8px; }
.order-actions form { margin: 0; }

/* account */
.acct-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 18px 0 24px; }
.acct-tiles a { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 10px; background: var(--bg-soft); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.acct-tiles a:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, .06); }
.acct-tiles b { margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
.acct-tiles span { color: var(--muted); font-size: .86rem; }
.order-list { list-style: none; padding: 0; margin: 0; }
.order-list li { border-bottom: 1px solid var(--line); }
.order-list li:last-child { border-bottom: 0; }
.order-list a, .order-list .row-link { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 12px 0; text-decoration: none; }
.order-list .row-link { grid-template-columns: 1fr auto; }
.order-list span:first-child { display: flex; flex-direction: column; }
.order-list small { color: var(--muted); }
@media (max-width: 560px) { .order-list a { grid-template-columns: 1fr auto; } .order-list a strong, .order-list a .icon { display: none; } }
.addr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.addr-list p { margin: 6px 0 10px; line-height: 1.6; color: var(--ink-2); }
.addr-actions { display: flex; gap: 16px; }
.alert.dev { background: #eef4ff; border-color: #b9cdf5; color: #1f3f7a; }
.otp { font-size: 1.5rem !important; letter-spacing: .5em; text-align: center; }
.resend { margin-top: 10px; text-align: center; }

/* help centre */
.help-hero { text-align: center; }
.help-hero p { margin: 0 auto; }
.help-grid { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.help-grid a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.help-grid a:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0, 0, 0, .07); border-color: transparent; }
.help-grid .icon { color: var(--accent); }
.help-grid b { text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.help-grid span { color: var(--muted); font-size: .9rem; }
.help-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; border: 0; padding: 28px; }
.help-cta h2 { margin: 0 0 4px; text-transform: uppercase; }
.help-cta p { margin: 0; color: rgba(255, 255, 255, .7) !important; }
.help-cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.center { text-align: center; }

/* added-to-bag slide-in */
.added { position: fixed; z-index: 60; right: 16px; top: 88px; width: min(360px, calc(100vw - 32px)); background: #fff; border-radius: 12px; padding: 16px 16px 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22); transform: translateY(-14px); opacity: 0; transition: transform .4s cubic-bezier(.2, 1.2, .35, 1), opacity .3s; }
.added.show { transform: none; opacity: 1; }
.added-title { margin: 0 0 10px; font-weight: 800; display: flex; gap: 8px; align-items: center; padding-right: 24px; }
.added-title.err { color: var(--danger); margin: 0; }
.dot-ok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .75rem; }
.added-item { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
.added-item i { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.added-item span { display: flex; flex-direction: column; font-size: .88rem; }
.added-item small { color: var(--muted); }
.added-note { font-size: .8rem; color: var(--warn); margin: -4px 0 10px; }
.added-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.added-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); }
@media (max-width: 640px) { .added { top: auto; bottom: 16px; transform: translateY(20px); } }

/* Login: email / mobile switch */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 18px 0 4px; background: var(--bg-soft); border-radius: 999px; }
.seg a { text-align: center; padding: 9px 10px; border-radius: 999px; text-decoration: none; font-size: .82rem; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; }
.seg a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
@media (max-width: 560px) { .pay-logos { display: none; } }

/* Product photos (uploaded from the Allied Ventures Hub) */
.card-img.photo { padding: 0; }
.card-img.photo img { width: 100%; height: 100%; object-fit: cover; }
.card-media:has(.photo) { padding: 0; }
.product-gallery { display: grid; gap: 10px; }
@media (min-width: 900px) { .product-gallery { position: sticky; top: 96px; } .product-gallery .product-media { position: static; } }
.product-media.photo { padding: 0; aspect-ratio: 4 / 5; }
.product-media.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.product-media.photo.zoom img { transform: scale(1.8); }
.thumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; overflow-x: auto; scrollbar-width: none; }
.thumbs button { display: block; width: 64px; aspect-ratio: 4 / 5; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--bg-soft); }
.thumbs button[aria-current] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb.photo { padding: 0; overflow: hidden; }
.thumb.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Writing a review ---------- */
.rv-form { display: grid; gap: 0; }
.rv-card.has-error { border-color: #f0a7a1; }
.rv-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.rv-head .thumb { width: 56px; height: 68px; padding: 8px; flex: none; }
.rv-head div { display: flex; flex-direction: column; }
/* five big tappable stars; hovering or choosing one fills it and those before it */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 4px 0 12px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2.2rem; line-height: 1; color: #d9d6d2; cursor: pointer; padding: 0 2px; transition: color .15s, transform .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #e2a400; }
.star-input label:active { transform: scale(.88); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.rv-label { margin: 0 0 6px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fit-chips { margin-bottom: 14px; }
.fit-chips label { position: relative; }
.fit-chips input { position: absolute; opacity: 0; }
.fit-chips span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.fit-chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.fit-chips input:focus-visible + span { outline: 2px solid var(--accent); }

/* ---------- Reading reviews ---------- */
.review-reply { margin: 10px 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; font-size: .88rem; }
.review-reply p { margin: 4px 0 0; color: var(--ink-2); }
.fit-sum { margin: 10px 0 4px; font-size: .85rem; }
.fit-sum p { margin: 0 0 8px; }
.fit-bar { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #e8e5e1, #cfe7d8 50%, #e8e5e1); }
.fit-bar i { position: absolute; top: 50%; left: var(--x); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
.fit-ends { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-top: 6px; }
