/*
  Vick Store — storefront stylesheet.
  Every token below is copied from the approved design (Batch 1 "direction"
  and "system" sections) — not approximated. Single dark theme, deliberately
  (see direction notes): "dark makes product photography read as product
  photography... Admin is light-mode and shares only the tokens, not the mood."
*/

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibmplexsans-variable.woff2') format('woff2-variations');
  font-weight: 100 700;
  font-display: swap;
}

:root {
  /* Palette — brand & neutrals */
  --ink: #100F10;        /* page base */
  --surface-1: #1A181A;  /* cards, sheets */
  --surface-2: #221F22;  /* placeholder image alt stripe */
  --line: #2A272A;       /* hairline borders */
  --line-strong: #3A3B34;
  --mute: #8E888C;       /* secondary text */
  --mute-2: #575256;     /* tertiary / disabled text */
  --chalk: #F0EDEF;      /* primary text, on-dark surfaces */
  --fuchsia: #D8006B;    /* brand accent — one thing per viewport */

  /* Semantic — deliberately unrelated to fuchsia */
  --success: #0F7A4F;
  --success-tint: #4FCB92;
  --success-bg: rgba(15, 122, 79, 0.18);
  --success-border: rgba(15, 122, 79, 0.55);

  --warning: #A86400;
  --warning-tint: #E5A63C;
  --warning-bg: rgba(168, 100, 0, 0.18);
  --warning-border: rgba(168, 100, 0, 0.55);

  --danger: #C0271B;
  --danger-tint: #FF6B5E;
  --danger-bg: rgba(192, 39, 27, 0.18);
  --danger-border: rgba(192, 39, 27, 0.55);

  --info: #1F5FA8;
  --info-tint: #6BA8EE;
  --info-bg: rgba(31, 95, 168, 0.18);
  --info-border: rgba(31, 95, 168, 0.55);

  --whatsapp: #25D366;
  --whatsapp-hover: #1DB954;
  --whatsapp-ink: #05291A;

  /* Spacing scale, 4px base */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --radius: 2px;
  --radius-pill: 999px;

  --font-display: 'Archivo', system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  /* Named easings — only transform and opacity ever animate */
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --ease-in: cubic-bezier(.5,0,.9,.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Global safety net: a component's own `display` rule (grid/flex, needed for
   its visible state) will otherwise beat the `hidden` attribute, since both
   are ordinary-specificity selectors and the component rule loads later.
   Re-asserting this once, here, means no individual .foo[hidden] override
   is needed anywhere else in this file — found the hard way, four times. */
[hidden] { display: none !important; }

body {
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

/* Display — hero, section headers, price on PDP: 72/40, line-height 0.92 */
.display { font-size: 40px; line-height: 0.92; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .display { font-size: 72px; letter-spacing: -0.02em; } }

h2 { font-weight: 600; font-size: 30px; }
h3 { font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: normal; font-size: 22px; }
h4 { font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: normal; font-size: 17px; }

p { margin: 0; max-width: 68ch; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.price, .tabular { font-variant-numeric: tabular-nums; }

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

button { font-family: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--fuchsia);
  outline-offset: 2px;
}

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

.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .container { padding: 0 100px; max-width: 1440px; } }

/* ---------- placeholder image treatment ----------
   The design's own convention for "no photo yet" — a diagonal stripe, not a
   grey box — used everywhere a product image will eventually load. */
.ph-image {
  background-image: repeating-linear-gradient(135deg, #1A181A 0 6px, #221F22 6px 12px);
  display: grid;
  place-items: center;
  position: relative;
}
.ph-image .ph-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
  text-align: center;
  padding: 0 8px;
}

/* A real photo is set (admin → Settings → Storefront photos): same box,
   the background-image comes from an inline style instead of the stripe
   pattern above. */
.has-photo {
  background-size: cover;
  background-position: center;
  position: relative;
}

/* ---------- buttons — 48px tall, 44px min target ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 48px;
  min-width: 44px;
  text-align: center;
}

.btn-primary { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.btn-primary:hover { background: var(--fuchsia); border-color: var(--fuchsia); color: var(--chalk); }

.btn-secondary { background: transparent; color: var(--chalk); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--chalk); }

.btn-ghost { background: transparent; color: var(--mute); border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 15px 8px; }
.btn-ghost:hover { color: var(--chalk); border-color: var(--chalk); }

.btn-remove { background: transparent; color: var(--danger-tint); border-color: var(--danger); }

.btn-block { width: 100%; }

.btn:disabled { background: var(--line); color: var(--mute-2); border-color: var(--line); cursor: not-allowed; }

/* WhatsApp — reserved for the basket handoff, nothing else */
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--whatsapp-ink);
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover { background: var(--whatsapp-hover); }
.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-loading { pointer-events: none; }
.spinner {
  width: 12px; height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- form fields ---------- */

.field { display: grid; gap: 6px; }
.field .field-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.field .field-hint { font-size: 12px; color: var(--mute); }
.field .field-error { font-size: 12px; color: var(--danger-tint); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  padding: 14px;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--chalk);
}
.field input:focus { border-color: var(--chalk); }
.field input.has-error { border-color: var(--danger); }

.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); }
.qty-stepper button {
  width: 44px; min-height: 44px;
  display: grid; place-items: center;
  background: none; border: 0; color: #C9C3C7; font-size: 18px; cursor: pointer;
}
.qty-stepper button:disabled { color: var(--mute-2); cursor: not-allowed; }
.qty-stepper .qty-value {
  width: 48px; display: grid; place-items: center;
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}

/* ---------- pills, chips, tabs ---------- */

.pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius-pill); border: 1px solid transparent; }
.pill-success { background: var(--success-bg); color: var(--success-tint); border-color: var(--success-border); }
.pill-warning { background: var(--warning-bg); color: var(--warning-tint); border-color: var(--warning-border); }
.pill-danger  { background: var(--danger-bg);  color: var(--danger-tint);  border-color: var(--danger-border); }
.pill-info    { background: var(--info-bg);    color: var(--info-tint);    border-color: var(--info-border); }
.pill-new     { background: var(--chalk); color: var(--ink); }

.chip { font-size: 13px; padding: 9px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: #C9C3C7; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; background: none; cursor: pointer; }
.chip-active { border-color: var(--chalk); background: var(--chalk); color: var(--ink); }

.tabs { display: flex; gap: var(--sp-6); border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--chalk); border-bottom-color: var(--fuchsia); }

/* ---------- feedback ---------- */

.toast { display: flex; gap: var(--sp-3); align-items: center; padding: 14px 16px; background: var(--surface-1); border: 1px solid var(--line); border-left: 3px solid var(--success); border-radius: var(--radius); font-size: 14px; }
.banner { display: flex; gap: var(--sp-3); align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-size: 14px; line-height: 1.5; }
.banner-warning { background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning-tint); }
.banner-error { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger-tint); }

.empty-state { display: grid; gap: var(--sp-3); padding: 32px 20px; border: 1px dashed var(--line-strong); text-align: center; }
.empty-state .empty-title { font-size: 17px; font-weight: 600; }
.empty-state .empty-body { font-size: 13px; color: var(--mute); line-height: 1.55; }

.skeleton { background-image: linear-gradient(90deg, var(--surface-1) 25%, #232023 50%, var(--surface-1) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background: var(--surface-1); }
  * { animation-duration: 0.001ms !important; }
}

/* ---------- product card ---------- */

.product-card { display: block; }
.product-card .card-image { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.product-card .card-image .pill-new { position: absolute; top: 10px; left: 10px; }
.product-card .card-body { display: grid; gap: 6px; padding-top: 12px; }
.product-card .card-name { font-size: 14px; font-weight: 600; }
.product-card .card-price { font-size: 14px; font-weight: 600; }
.product-card .card-swatches { display: flex; gap: 6px; padding-top: 2px; }
.product-card .card-swatch { width: 14px; height: 14px; border-radius: 999px; }
.product-card .card-stock { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.product-card.is-sold-out .card-name,
.product-card.is-sold-out .card-price { color: var(--mute); }
.product-card.is-sold-out .card-image { opacity: 0.55; }

.quick-add {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 200ms var(--ease-soft), transform 200ms var(--ease-soft);
}
@media (hover: hover) {
  .product-card:hover .quick-add,
  .quick-add.is-open { opacity: 1; transform: translateY(0); }
}
.quick-add-trigger {
  display: block; width: 100%; text-align: center; padding: 14px;
  background: var(--chalk); color: var(--ink); border: none; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--font-body);
}
.quick-add-picker {
  background: var(--chalk); color: var(--ink); padding: 10px; display: grid; gap: 8px;
}
.quick-add-picker-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); padding: 0 2px; }
.quick-add-swatches { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 2px; }
.quick-add-swatch {
  width: 26px; height: 26px; border-radius: 999px; border: 1px solid rgba(16,15,16,0.2); cursor: pointer; padding: 0;
}
.quick-add-swatch.is-selected { outline: 2px solid var(--ink); outline-offset: 2px; }
.quick-add-sizes { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 2px; }
.quick-add-size-btn {
  padding: 8px 12px; font-size: 12px; font-weight: 600; background: none;
  border: 1px solid rgba(16,15,16,0.3); color: var(--ink); cursor: pointer; font-family: var(--font-body);
}
.quick-add-size-btn:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.quick-add-size-btn.is-added { background: var(--success); border-color: var(--success); color: var(--chalk); }
.quick-add-cancel { justify-self: start; font-size: 11px; color: var(--mute); background: none; border: none; cursor: pointer; padding: 0 2px; text-decoration: underline; }

/* ---------- header / marquee ---------- */

/* Announce bar + nav stay put while the page scrolls underneath — a
   customer scanning a long catalog or product page shouldn't lose Search,
   Cart or the category nav just by scrolling down. */
.site-header-sticky {
  position: sticky; top: 0; z-index: 30;
  background: var(--ink);
}

.announce-bar {
  background: var(--fuchsia); color: var(--chalk);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 0; white-space: nowrap; overflow: hidden;
  position: relative;
}
@media (min-width: 1024px) { .announce-bar { font-size: 11px; letter-spacing: 0.16em; padding: 9px 0; } }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--ink);
}
@media (min-width: 1024px) {
  .site-header { display: grid; grid-template-columns: 1fr auto 1fr; padding: 18px 100px; }
}

.site-header .wordmark { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 18px; letter-spacing: -0.01em; text-transform: uppercase; }
@media (min-width: 1024px) { .site-header .wordmark { font-size: 24px; } }

.site-header nav { display: none; }
@media (min-width: 1024px) {
  .site-header nav { display: flex; gap: 28px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
  .site-header nav a.active { color: var(--chalk); }
  .site-header nav a:not(.active) { color: var(--mute); }
}

.header-actions { display: flex; gap: 14px; align-items: center; font-size: 11px; letter-spacing: 0.1em; }
@media (min-width: 1024px) { .header-actions { gap: 24px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; justify-content: flex-end; color: var(--mute); } }

.track-link { display: none; }
@media (min-width: 1024px) { .track-link { display: inline; } }

/* Marquee — runs at every breakpoint (Motion spec: "Always, pauses on
   hover... 24s linear"). The bar is only wide enough to show ~3 words on a
   390px phone, so without the loop most of the message would just be
   cut off — the animation isn't a desktop nicety here, it's how the
   message is read at all on a small screen. */
.marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 24s linear infinite;
}
.marquee-track::after { content: " — Free delivery nationwide · Order on WhatsApp · Lagos next-day"; }
.announce-bar:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; padding-left: 0; }
  .marquee-track::after { content: ''; }
}

/* Mobile menu — slides in from the left, under the header (header stays
   visible and usable while the menu is open), scrim dims the rest. */
.mobile-nav-scrim {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  top: var(--mobile-nav-top, 0);
  background: rgba(11, 10, 11, 0.72);
}
.mobile-nav-scrim[hidden] { display: none; }

.mobile-nav-sheet {
  position: fixed; top: var(--mobile-nav-top, 0); bottom: 0; left: 0; z-index: 26;
  width: 82vw; max-width: 320px;
  background: var(--surface-1);
  border-right: 1px solid var(--line-strong);
  display: grid; align-content: start;
  padding-top: 8px;
  transform: translateX(-100%);
  transition: transform 280ms var(--ease-out);
  overflow-y: auto;
}
.mobile-nav-scrim.is-open .mobile-nav-sheet { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .mobile-nav-sheet { transition: none; } }

.mobile-nav-sheet a {
  padding: 16px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.mobile-only-header-icon {
  background: none; border: 0; color: var(--chalk);
  display: grid; align-content: center; gap: 5px; padding: 10px; cursor: pointer;
  font-size: 18px; line-height: 1;
  /* The hamburger (two 1.5px bars) and the "←" back-link (an 18px text
     line) are different pieces of content sharing this class, so without a
     fixed height they naturally size to different heights — 28px vs 38px,
     measured — and every page using the back-arrow (shop, product, cart,
     search, track) ends up with a visibly taller header than the
     homepage's hamburger. Locking the box itself to the taller of the two
     keeps the header the same height everywhere, on every page. */
  height: 38px;
  box-sizing: border-box;
}
/* The hamburger doubles as the close control — it morphs into an X while
   the drawer is open (via aria-expanded, which the JS already sets), so
   there's exactly one place to look, not a second button somewhere else. */
.hamburger-btn span {
  height: 1.5px; width: 20px; background: currentColor;
  transition: transform 200ms var(--ease-soft), opacity 150ms var(--ease-soft);
}
.hamburger-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .hamburger-btn span { transition: none; } }

@media (min-width: 1024px) { .mobile-only-header-icon { display: none; } }

/* ---------- generic slide-in side panel ----------
   Reusable for any panel that should slide in from an edge over the current
   page rather than navigate to a new one: Search now, Cart once it exists.
   Right-edge variant only for now (.side-panel-right) — the mobile nav
   drawer is its own thing since it slides from the left and sits under
   the header rather than covering it; this one covers the header on
   purpose, since Search and Cart are meant to feel like a focused task. */

.side-panel-scrim {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(11, 10, 11, 0.72);
}
.side-panel-scrim[hidden] { display: none; }

.side-panel {
  position: fixed; top: 0; bottom: 0; z-index: 46;
  width: 100%; max-width: 420px;
  background: var(--ink);
  display: flex; flex-direction: column;
  overflow-y: auto;
  transition: transform 300ms var(--ease-out);
}
.side-panel-right { right: 0; border-left: 1px solid var(--line-strong); transform: translateX(100%); }
.side-panel-scrim.is-open .side-panel-right { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .side-panel { transition: none; } }

.cart-count { position: relative; }
.cart-count .badge {
  position: absolute; top: -8px; right: -12px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--fuchsia); color: var(--chalk);
  font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.cart-count .badge[hidden] { display: none; }

/* ---------- footer ---------- */

.site-footer { padding: 28px 16px 32px; background: var(--surface-1); display: grid; gap: 20px; }
.site-footer .footer-wordmark { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 26px; text-transform: uppercase; }
.site-footer .footer-contact { display: grid; gap: 10px; font-size: 13px; color: #C9C3C7; }
.site-footer .footer-links { display: grid; gap: 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); border-top: 1px solid var(--line); padding-top: 16px; }
@media (min-width: 1024px) {
  .site-footer { padding: 56px 100px; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; border-top: 1px solid var(--line); }
  .site-footer .footer-wordmark { font-size: 40px; line-height: 0.9; }
  .site-footer .footer-links { border-top: 0; padding-top: 0; }
}

.trust-strip {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
}
@media (min-width: 1024px) {
  .trust-strip { flex-direction: row; padding: 0; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: 0.12em; }
  .trust-strip span { flex: 1; padding: 22px 24px; border-left: 1px solid var(--line); }
  .trust-strip span:first-child { border-left: 0; padding-left: 100px; }
  .trust-strip span:last-child { padding-right: 100px; }
}

/* ---------- WhatsApp button link style used inline in copy ---------- */
.text-link-underline { border-bottom: 1px solid var(--chalk); padding-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
/* This class is normally applied to <a> tags, which have no native chrome
   to begin with — but the PDP's "Size guide" control is a real <button>
   (it opens a sheet, not a page), and a bare <button> keeps the browser's
   own grey background/border/padding unless something strips it. Scoped to
   button so the <a> usages elsewhere are untouched. */
button.text-link-underline { background: none; border: none; border-bottom: 1px solid var(--chalk); color: inherit; padding: 0 0 2px; cursor: pointer; }

/* ---------- size guide: sheet on mobile, centred modal on desktop ---------- */

.size-guide-scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(11, 10, 11, 0.72);
  display: grid; align-items: end;
}
.size-guide-scrim[hidden] { display: none; }
.size-guide-panel {
  background: var(--surface-1);
  border-top: 1px solid var(--line-strong);
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 280ms var(--ease-out);
}
.size-guide-scrim.is-open .size-guide-panel { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .size-guide-panel { transition: none; }
}

.size-guide-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.size-guide-body { padding: 16px; display: grid; gap: 20px; }

.size-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.size-table th { text-align: left; padding: 10px 8px 10px 0; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line); }
.size-table td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--surface-2); }
.size-table tr:last-child td { border-bottom: 0; }
.size-note { display: grid; gap: 8px; padding: 16px; background: var(--ink); border: 1px solid var(--line); }

@media (min-width: 768px) {
  .size-guide-scrim { align-items: center; justify-items: center; }
  .size-guide-panel { width: 100%; max-width: 720px; border: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); transform: scale(0.98); opacity: 0; transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out); }
  .size-guide-scrim.is-open .size-guide-panel { transform: scale(1); opacity: 1; }
  .size-guide-head { padding: 20px 24px; }
  .size-guide-body { padding: 20px 24px 24px; }
}

/* ---------- homepage ---------- */

.hero {
  position: relative;
  height: 470px;
  display: grid;
  align-content: end;
  padding: 20px 16px 24px;
  gap: 16px;
}
.hero-content { display: grid; gap: 16px; z-index: 1; }
.hero-ctas { display: grid; gap: 8px; }
.hero-ph-label { position: absolute; top: 16px; left: 16px; }

.hero-h-desktop, .hero-desc-desktop { display: none; }

@media (min-width: 1024px) {
  .hero {
    height: 620px;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    padding: 0 100px 64px;
    gap: 40px;
  }
  .hero .display { font-size: 92px; line-height: 0.85; letter-spacing: -0.03em; }
  .hero-h-mobile, .hero-desc-mobile { display: none; }
  .hero-h-desktop { display: block; }
  .hero-ctas { grid-auto-flow: column; gap: 12px; }
  .hero-ctas .btn { padding: 17px 32px; }
  .hero-ph-label { top: 20px; left: 100px; }
  .hero-desc-desktop {
    display: block;
    justify-self: end; align-self: end; max-width: 34ch;
    font-size: 15px; line-height: 1.6; color: #C9C3C7;
    margin: 0;
  }
}

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.category-split { display: grid; gap: 2px; padding: 32px 16px 0; }
@media (min-width: 1024px) { .category-split { grid-template-columns: 1fr 1fr; padding: 72px 100px 0; } }

.category-tile { position: relative; height: 150px; display: block; }
@media (min-width: 1024px) { .category-tile { height: 300px; } }
.category-tile-inner { position: absolute; inset: 0; display: grid; align-content: center; padding: 0 20px; }
@media (min-width: 1024px) { .category-tile-inner { align-content: end; padding: 28px; } }
.category-title { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 32px; text-transform: uppercase; line-height: 1; }
@media (min-width: 1024px) { .category-title { font-size: 48px; } }
.category-count { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #C9C3C7; }

/* Mobile: one continuous stack (intro group, then copy group), same 12px
   rhythm throughout, matching the design's mobile mockup. Desktop: the
   design specifies two genuinely separate columns (5fr/7fr) — "Who we
   are"/heading on the left, the paragraph + WhatsApp link on the right —
   which needs two real grid children, not one div holding everything. */
.about-block { display: grid; gap: 12px; padding: 32px 16px; border-top: 1px solid var(--line); margin-top: 32px; }
.about-intro { display: grid; gap: 12px; }
.about-copy { display: grid; gap: 12px; }
.about-heading { font-family: var(--font-display); font-weight: 600; font-stretch: 112%; font-size: 22px; line-height: 1.1; text-transform: uppercase; }
/* Grid items stretch to their column's full width by default, which — for
   an inline link — drags its border-bottom underline along with it,
   spanning the whole column instead of hugging just the text. */
.about-whatsapp-link { justify-self: start; }
@media (min-width: 1024px) {
  .about-block { grid-template-columns: 5fr 7fr; gap: 64px; padding: 96px 100px; margin-top: 0; align-items: start; }
  .about-intro { gap: 16px; }
  .about-copy { gap: 20px; }
  .about-heading { font-size: 34px; }
  .about-block p { max-width: 60ch; font-size: 17px; }
}

.toast-host { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 60; }
@media (min-width: 1024px) { .toast-host { left: auto; width: 360px; right: 100px; } }

/* ---------- catalog / shop ---------- */

.shop-body { padding-bottom: 76px; } /* clears the sticky sort/filter bar */
@media (min-width: 1024px) { .shop-body { padding-bottom: 0; } }

.shop-layout { padding: 0 0 40px; }
@media (min-width: 1024px) {
  .shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 100px 72px; }
}

.shop-filters-desktop { display: none; }
@media (min-width: 1024px) { .shop-filters-desktop { display: block; } }
.shop-filters-desktop form { display: grid; gap: 28px; align-content: start; }

.filter-group { display: grid; gap: 12px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-options-list { display: grid; gap: 10px; font-size: 14px; color: #C9C3C7; }

.size-option {
  min-width: 48px; text-align: center; padding: 11px 10px;
  border: 1px solid var(--line-strong); font-size: 13px; cursor: pointer;
  position: relative;
  transition: background 120ms var(--ease-soft), border-color 120ms var(--ease-soft), color 120ms var(--ease-soft);
}
.size-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
/* .active is the server-rendered state (after a reload); :has(:checked) is
   the same look firing instantly on tap, before the form is ever submitted —
   the sheet used to give zero feedback until "Show items" reloaded the page. */
/* No font-weight change here on purpose — bold text renders slightly wider
   than regular in this font, which nudged every chip after it sideways on
   selection. The filled background + border alone is already unambiguous. */
.size-option.active, .size-option:has(input:checked) {
  border-color: var(--chalk); background: var(--chalk); color: var(--ink);
}
.price-option { min-width: auto; padding: 12px 16px; font-variant-numeric: tabular-nums; text-align: left; }

.colour-option, .avail-option { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; position: relative; }
.colour-option input, .avail-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch-box { width: 20px; height: 20px; border: 1px solid var(--line-strong); flex-shrink: 0; }
.colour-option:has(input:checked) { color: var(--chalk); }
.colour-option:has(input:checked) .swatch-box { outline: 2px solid var(--fuchsia); outline-offset: 2px; }
.check-box { width: 20px; height: 20px; border: 1px solid var(--line-strong); background: var(--surface-1); display: grid; place-items: center; flex-shrink: 0; }
.avail-option input:checked + .check-box { border-color: var(--chalk); background: var(--fuchsia); }
.avail-option input:checked + .check-box::after { content: '✓'; font-size: 12px; color: var(--chalk); }

/* Mobile colour filter — a chip row (matches the design's mobile filter
   sheet exactly), not the desktop sidebar's vertical checkbox list. */
.colour-chip {
  display: inline-flex; gap: 8px; align-items: center; position: relative;
  padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-size: 14px; cursor: pointer;
  transition: background 120ms var(--ease-soft), border-color 120ms var(--ease-soft), color 120ms var(--ease-soft);
}
.colour-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch-dot { width: 14px; height: 14px; border-radius: 999px; flex-shrink: 0; }
.colour-chip.active, .colour-chip:has(input:checked) {
  border-color: var(--chalk); background: var(--chalk); color: var(--ink);
}
.colour-chip.active .swatch-dot, .colour-chip:has(input:checked) .swatch-dot { outline: 1px solid var(--ink); outline-offset: 1px; }

.shop-heading { padding: 24px 16px 12px; display: grid; gap: 8px; }
.shop-heading h1 { line-height: 0.95; }
.shop-heading-actions { display: none; }
@media (min-width: 1024px) {
  .shop-heading {
    padding: 0 0 20px; border-bottom: 1px solid var(--line);
    display: flex; align-items: flex-end; justify-content: space-between;
  }
  .shop-heading h1 { font-size: 52px; }
  .shop-heading-actions { display: flex; gap: 12px; align-items: center; }
}

.sort-select-wrap select {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 16px;
  cursor: pointer;
}

.filter-chip-row { display: flex; gap: 8px; padding: 8px 16px 16px; overflow-x: auto; }
@media (min-width: 1024px) { .filter-chip-row { display: none; } }

.product-grid-shop { grid-template-columns: 1fr 1fr; padding: 0 16px; }
@media (min-width: 1024px) { .product-grid-shop { grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 28px 0 0; } }

.shop-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1px 1fr;
  background: var(--surface-1); border-top: 1px solid var(--line);
}
@media (min-width: 1024px) { .shop-sticky-bar { display: none; } }
.shop-sticky-divider { background: var(--line); }
.shop-sticky-btn {
  text-align: center; padding: 18px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: none; border: 0; color: var(--chalk); cursor: pointer;
}
.filter-count-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--fuchsia); font-size: 10px; margin-left: 4px;
}

.filter-sheet-footer {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  padding: 16px; border-top: 1px solid var(--line); background: var(--surface-1);
}

/* Sort sheet — a plain list of choices, applies immediately on tap
   (a link/reload, not a form-then-submit like Filter). */
.sort-option-list { display: grid; }
.sort-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; font-size: 15px; color: var(--chalk);
  border-bottom: 1px solid var(--line);
}
.sort-option:last-child { border-bottom: 0; }
.sort-option.active::after { content: '✓'; color: var(--fuchsia); font-weight: 600; }

/* ---------- search ---------- */

.search-body { background: var(--ink); }

.search-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--ink); z-index: 5;
}
@media (min-width: 768px) { .search-topbar { padding: 18px 100px; } }

.search-field-wrap { flex: 1; }
.search-field-wrap input {
  width: 100%; padding: 13px 14px;
  background: var(--surface-1); border: 1px solid var(--chalk);
  color: var(--chalk); font-family: var(--font-body); font-size: 15px;
}
.search-field-wrap input::placeholder { color: var(--mute-2); }

#search-cancel {
  background: none; border: 0; color: var(--mute);
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  white-space: nowrap;
}

.search-results-wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px; }
@media (min-width: 768px) { .search-results-wrap { padding: 32px 16px; } }

.search-section { display: grid; gap: 10px; margin-bottom: 22px; }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.search-suggestions .chip { background: none; }

.search-result-row {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--surface-1);
}
.search-result-thumb { width: 52px; height: 65px; flex-shrink: 0; }
.search-result-meta { display: grid; gap: 3px; }
.search-result-name { font-size: 14px; font-weight: 600; }
.search-result-name mark { background: rgba(216, 0, 107, 0.3); color: inherit; }
.search-result-price { font-size: 13px; font-variant-numeric: tabular-nums; color: #C9C3C7; }
.search-soldout-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--danger-tint); }
.search-result-row.is-sold-out { opacity: 0.55; }
.search-result-row.is-sold-out .search-result-name { color: var(--mute); }

.search-no-results-body { text-align: center; padding: 28px 16px; }
.search-no-results-body .btn { width: 100%; }

/* ---------- product detail ---------- */

.pdp-body { padding-bottom: 100px; }
@media (min-width: 1024px) { .pdp-body { padding-bottom: 0; } }

.pdp-layout { display: grid; }
@media (min-width: 1024px) {
  .pdp-layout { grid-template-columns: 88px 1fr 460px; gap: 32px; padding: 40px 100px 72px; }
}

.pdp-thumbs { display: none; }
@media (min-width: 1024px) {
  .pdp-thumbs { display: grid; gap: 8px; align-content: start; }
  .pdp-thumb { aspect-ratio: 4/5; cursor: pointer; }
  .pdp-thumb.is-active { outline: 1px solid var(--chalk); outline-offset: -1px; }
}

.pdp-gallery { position: relative; height: 420px; }
@media (min-width: 1024px) { .pdp-gallery { height: 700px; } }

.pdp-gallery-dots { position: absolute; bottom: 14px; left: 16px; display: flex; gap: 5px; }
.pdp-gallery-dots span { width: 22px; height: 2px; background: var(--line-strong); }
.pdp-gallery-dots span.is-active { background: var(--chalk); }
@media (min-width: 1024px) { .pdp-gallery-dots { display: none; } }

.pdp-zoom-btn {
  position: absolute; bottom: 12px; right: 16px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; background: rgba(16,15,16,0.8); border: 1px solid var(--line-strong);
  color: var(--chalk); cursor: pointer;
}
@media (min-width: 1024px) { .pdp-zoom-btn { display: none; } }

.pdp-info { padding: 20px 16px 0; display: grid; gap: 18px; }
@media (min-width: 1024px) { .pdp-info { padding: 0; gap: 24px; align-content: start; } }

.pdp-info-head { display: grid; gap: 6px; }
.pdp-title { font-family: var(--font-display); font-weight: 600; font-stretch: 112%; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
@media (min-width: 1024px) { .pdp-title { font-size: 38px; } }
.pdp-price { font-size: 22px; font-weight: 600; }
@media (min-width: 1024px) { .pdp-price { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 30px; } }

.field-label-row { display: flex; justify-content: space-between; align-items: baseline; }

.pdp-swatches { display: flex; gap: 10px; }
.pdp-swatch { width: 36px; height: 36px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; padding: 0; }
.pdp-swatch.is-selected { outline: 1px solid var(--chalk); outline-offset: 3px; }
@media (min-width: 1024px) { .pdp-swatch { width: 40px; height: 40px; } }

.pdp-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pdp-size-btn {
  text-align: center; padding: 15px 0; border: 1px solid var(--line-strong);
  background: none; color: var(--chalk); font-size: 14px; cursor: pointer;
}
.pdp-size-btn.is-selected { border-color: var(--chalk); background: var(--chalk); color: var(--ink); font-weight: 600; }
.pdp-size-btn.is-soldout { border-style: dashed; color: var(--mute-2); text-decoration: line-through; }
.pdp-size-btn.is-soldout.is-selected { border-color: var(--danger); background: var(--danger-bg); color: var(--danger-tint); }
.pdp-size-note { font-size: 12px; min-height: 16px; display: block; }

.pdp-qty-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pdp-add-to-cart-desktop { display: none; }
@media (min-width: 1024px) {
  .pdp-qty-row { display: grid; grid-template-columns: auto 1fr; gap: 12px 12px; }
  .pdp-add-to-cart-desktop { display: grid; place-items: center; height: 52px; }
}
.pdp-qty-note { font-size: 12px; color: var(--mute); line-height: 1.4; }

.pdp-facts { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: #C9C3C7; line-height: 1.5; }
.pdp-facts strong { color: var(--chalk); }
@media (min-width: 1024px) { .pdp-facts { font-size: 14px; gap: 10px; padding-top: 20px; } }

.pdp-notify { display: grid; gap: 10px; padding: 16px; background: var(--surface-1); border: 1px solid var(--line); }
.pdp-notify-title { font-size: 15px; font-weight: 600; }
.pdp-notify-body { font-size: 12px; color: var(--mute); line-height: 1.5; }
.pdp-notify-form { display: grid; gap: 8px; }
.pdp-notify-form input { padding: 14px; background: var(--ink); border: 1px solid var(--line-strong); color: var(--chalk); font-family: var(--font-body); font-size: 14px; }
.pdp-notify-success { font-size: 13px; color: var(--success-tint); }

.pdp-accordion { display: grid; border-top: 1px solid var(--line); }
.pdp-accordion details { border-bottom: 1px solid var(--line); }
.pdp-accordion summary { padding: 18px 0; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary::after { content: '+'; color: var(--mute); }
.pdp-accordion details[open] summary::after { content: '−'; }
.pdp-accordion-body { font-size: 14px; line-height: 1.65; color: #C9C3C7; padding-bottom: 18px; }

.pdp-related { padding: 40px 16px 0; }
@media (min-width: 1024px) { .pdp-related { padding: 0 100px 80px; } }

.pdp-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  padding: 12px 16px 16px; background: rgba(16,15,16,0.96); border-top: 1px solid var(--line);
  display: grid; gap: 8px;
}
@media (min-width: 1024px) { .pdp-sticky-bar { display: none; } }
.pdp-sticky-summary { display: flex; justify-content: space-between; font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation-timeline: view(); animation-range: 0% 35%; animation-name: reveal-in; animation-fill-mode: both; }
}

/* ============================================================
   Group 3 — Cart, message preview, WhatsApp handoff
   ============================================================ */

/* -- shared WhatsApp-green button (1.5 cart CTA, 2.1 preview, 2.2 handoff) --
   Reserved only for the basket-handoff action, per the design's component
   note: "Two uses only... every other green on the site would weaken it." */
.wa-btn {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 17px; background: #25D366; color: #05291A; border: none;
  border-radius: var(--radius); cursor: pointer; width: 100%;
  transition: background 150ms var(--ease-soft);
}
.wa-btn:hover { background: #1DB954; }
.wa-btn:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 2px; }
.wa-btn svg { flex: 0 0 auto; }

/* -- cart drawer (mobile — same .side-panel-right pattern as Search) -- */
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 { font-size: 16px; font-weight: 600; margin: 0; }
.cart-drawer-head .cart-drawer-close { background: none; border: none; color: var(--mute); font-size: 18px; cursor: pointer; padding: 8px; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 16px; align-content: start; }
.cart-drawer-foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }

.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.cart-line:first-child { border-top: none; padding-top: 0; }
.cart-line-image { aspect-ratio: 4/5; }
.cart-line-info { display: grid; gap: 6px; align-content: start; }
.cart-line-name { font-size: 13px; font-weight: 600; }
.cart-line-variant { font-size: 12px; color: var(--mute); }
.cart-line-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cart-line-price { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-line-remove { font-size: 12px; color: var(--mute); border: none; background: none; border-bottom: 1px solid var(--line-strong); cursor: pointer; padding: 0; justify-self: start; }
.cart-line.is-updating { opacity: 0.55; }
.cart-line-spinner {
  width: 12px; height: 12px; border: 2px solid var(--mute); border-right-color: transparent;
  border-radius: 999px; display: inline-block; animation: cart-spin 700ms linear infinite;
}
@keyframes cart-spin { to { transform: rotate(360deg); } }

.cart-summary-row { display: flex; justify-content: space-between; font-size: 13px; color: #C9C3C7; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 12px; }
.cart-total-row span:last-child { font-variant-numeric: tabular-nums; }
.cart-free-delivery { font-size: 12px; color: var(--mute); margin-top: -6px; }
.cart-wa-note { text-align: center; font-size: 12px; color: var(--mute); line-height: 1.5; }

.cart-empty { padding: 40px 20px; display: grid; gap: 12px; text-align: center; background: var(--surface-1); border: 1px solid var(--line); }
.cart-empty-title { font-size: 18px; font-weight: 600; }
.cart-empty-body { font-size: 13px; line-height: 1.55; color: var(--mute); }

.cart-conflict-banner { display: grid; gap: 6px; padding: 14px; font-size: 13px; line-height: 1.5; }

.cart-undo-toast {
  display: flex; align-items: center; justify-content: space-between; padding: 14px;
  background: var(--ink); border: 1px solid var(--line); font-size: 13px;
}
.cart-undo-toast button { background: none; border: none; color: var(--chalk); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--chalk); cursor: pointer; padding: 0; }

.cart-welcome-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--surface-1); border-bottom: 1px solid var(--line); font-size: 13px;
}
.cart-welcome-banner button { background: none; border: none; color: var(--mute); font-size: 12px; border-bottom: 1px solid var(--line-strong); cursor: pointer; padding: 0; }

/* -- cart full page (desktop primary destination; stacks on mobile) -- */
.cart-page { padding: 0 16px 48px; }
.cart-page-title { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 30px; text-transform: uppercase; margin: 24px 0; }
.cart-page-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .cart-page { padding: 0 100px 80px; }
  .cart-page-title { font-size: 44px; margin: 40px 0 24px; }
  .cart-page-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
}

.cart-page-line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.cart-page-line:last-child { border-bottom: 1px solid var(--line); }
.cart-page-line-image { aspect-ratio: 4/5; }
.cart-page-line-info { display: grid; gap: 6px; }
.cart-page-line-name { font-size: 15px; font-weight: 600; }
.cart-page-line-variant { font-size: 13px; color: var(--mute); }
.cart-page-line-variant.is-low { color: var(--warning-tint); }
.cart-page-line-remove { font-size: 12px; color: var(--mute); border: none; background: none; border-bottom: 1px solid var(--line-strong); cursor: pointer; padding: 0; justify-self: start; }
.cart-page-line-totals { display: grid; gap: 6px; justify-items: end; text-align: right; }
.cart-page-line-unit { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.cart-page-line-total { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) {
  .cart-page-line { grid-template-columns: 100px minmax(0,1fr) auto auto; }
}

.cart-page-continue { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; gap: 16px; flex-wrap: wrap; }
.cart-page-continue-note { font-size: 13px; color: var(--mute); }

.cart-page-summary { display: grid; gap: 16px; align-content: start; padding: 24px; background: var(--surface-1); border: 1px solid var(--line); }
.cart-page-summary-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }

/* ============================================================
   Message preview — mobile bottom sheet, desktop centred modal
   (distinct from the .side-panel pattern: this one slides up, not in)
   ============================================================ */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(11, 10, 11, 0.74);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet-scrim[hidden] { display: none; }
.bottom-sheet {
  width: 100%; max-height: 92vh; background: var(--surface-1); border-top: 1px solid var(--line-strong);
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  transform: translateY(100%);
  transition: transform 280ms var(--ease-out);
}
.sheet-scrim.is-open .bottom-sheet { transform: translateY(0); }
@media (min-width: 1024px) {
  .sheet-scrim { align-items: center; }
  .bottom-sheet {
    width: 640px; max-width: calc(100% - 48px); max-height: 88vh; border: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong);
    transform: translateY(16px) scale(0.98); opacity: 0;
    transition: transform 280ms var(--ease-out), opacity 200ms var(--ease-out);
  }
  .sheet-scrim.is-open .bottom-sheet { transform: translateY(0) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .bottom-sheet { transition: none; } }

.sheet-head { display: grid; gap: 4px; padding: 16px 16px 14px; border-bottom: 1px solid var(--line); position: relative; }
.sheet-drag-handle { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 36px; height: 4px; border-radius: 999px; background: var(--line-strong); }
@media (min-width: 1024px) { .sheet-drag-handle { display: none; } }
.sheet-title { font-size: 17px; font-weight: 600; padding-top: 6px; }
@media (min-width: 1024px) { .sheet-title { font-size: 19px; padding-top: 0; } }
.sheet-subtitle { font-size: 13px; color: var(--mute); line-height: 1.45; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; font-size: 18px; color: var(--mute); background: none; border: none; cursor: pointer; }

.sheet-body { padding: 16px; overflow-y: auto; background: var(--ink); display: grid; justify-items: end; gap: 8px; }
@media (min-width: 1024px) { .sheet-body { padding: 24px; } }
.sheet-to-pill { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-2); justify-self: center; padding: 4px 10px; background: var(--surface-1); border-radius: 999px; }

.wa-bubble {
  max-width: 320px; background: #05543A; border: 1px solid #0A6B4A; border-radius: 8px 8px 2px 8px;
  padding: 12px 14px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5;
}
.wa-bubble-lines { display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.wa-bubble-total { font-weight: 600; font-variant-numeric: tabular-nums; border-top: 1px solid rgba(240,237,239,0.18); padding-top: 8px; }
.wa-bubble-meta { display: flex; gap: 5px; align-items: center; justify-self: end; font-size: 10px; color: #9FD9BF; }
.wa-bubble-ticks { letter-spacing: -2px; }
.wa-bubble.is-leaving { transform: translateY(-8px); transition: transform 320ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .wa-bubble.is-leaving { transform: none; } }

.sheet-copy-link { justify-self: start; font-size: 12px; color: var(--mute); padding-top: 4px; border: none; background: none; border-bottom: 1px solid var(--line-strong); cursor: pointer; }
.sheet-name-field { justify-self: stretch; display: grid; gap: 6px; padding-top: 4px; }
.sheet-name-field label { font-size: 12px; color: var(--mute); }
.sheet-name-field input { padding: 12px 14px; background: var(--surface-1); border: 1px solid var(--line-strong); color: var(--chalk); font-family: var(--font-body); font-size: 14px; }

.sheet-foot { padding: 14px 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; position: relative; }
@media (min-width: 1024px) { .sheet-foot { padding: 20px 24px 24px; grid-template-columns: 1fr 1fr; } }
.sheet-foot.is-filling::before {
  content: ''; position: absolute; inset: 0; background: #0A3D2A; z-index: 0;
  transform: scaleY(0); transform-origin: bottom; transition: transform 320ms var(--ease-out);
}
.sheet-foot.is-filled::before { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .sheet-foot.is-filling::before, .sheet-foot.is-filled::before { transition: none; } }
.sheet-foot > * { position: relative; z-index: 1; }
.sheet-foot.is-filling .wa-btn, .sheet-foot.is-filling .btn-secondary { opacity: 0; transition: opacity 160ms var(--ease-soft); }
@media (min-width: 1024px) { .sheet-foot { order: unset; } .sheet-foot .wa-btn { order: 2; } .sheet-foot .btn-secondary { order: 1; } }

.sheet-compact-note { font-size: 12px; line-height: 1.5; color: var(--mute); justify-self: stretch; text-align: left; }

/* -- leaving / fallback states, shown inside the same sheet body -- */
.handoff-leaving {
  display: grid; place-content: center; justify-items: center; gap: 18px; padding: 40px 32px;
  background: #0A3D2A; min-height: 260px;
}
.handoff-leaving-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 999px; background: #25D366; color: #05291A; }
.handoff-leaving-title { font-size: 19px; font-weight: 600; text-align: center; }
.handoff-leaving-body { font-size: 14px; line-height: 1.55; color: #9FD9BF; text-align: center; max-width: 26ch; }

.handoff-fallback { padding: 20px 16px; display: grid; gap: 14px; background: var(--surface-1); }
@media (min-width: 1024px) { .handoff-fallback { padding: 24px; } }
.handoff-fallback-title { font-size: 17px; font-weight: 600; }
.handoff-fallback-body { font-size: 14px; line-height: 1.55; color: #C9C3C7; }
.handoff-fallback-actions { display: grid; gap: 8px; }
.handoff-fallback-copied {
  display: flex; gap: 10px; align-items: center; padding: 12px 14px;
  background: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--success); font-size: 13px;
}
.handoff-fallback-note { font-size: 12px; color: var(--mute); line-height: 1.5; }

.handoff-didnt-work { text-align: center; font-size: 12px; color: var(--mute); border-bottom: 1px solid var(--line-strong); justify-self: center; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; padding: 0; margin-top: 8px; }

.wa-desktop-fallback-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .wa-desktop-fallback-grid { grid-template-columns: 200px 1fr; } }
.wa-qr-box {
  width: 100%; max-width: 180px; aspect-ratio: 1; background: var(--chalk);
  padding: 8px; justify-self: center; display: block;
}
.wa-qr-caption { font-size: 12px; line-height: 1.5; color: var(--mute); text-align: center; }
.wa-copy-block { padding: 14px; background: var(--ink); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: #C9C3C7; max-height: 108px; overflow: hidden; white-space: pre-line; }
.wa-copy-row { display: flex; gap: 8px; }
.wa-copy-row .btn { flex: 1; }
.wa-phone-block { display: grid; gap: 6px; padding: 14px; background: var(--ink); border: 1px solid var(--line); }
.wa-phone-block strong { font-size: 13px; font-weight: 600; }
.wa-phone-block span { font-size: 12px; color: var(--mute); line-height: 1.5; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Group 4 — Order tracking (2.3)
   ============================================================ */
.track-page { padding: 24px 16px 64px; max-width: 480px; margin: 0 auto; }
@media (min-width: 1024px) { .track-page { max-width: 1240px; padding: 48px 100px 80px; } }

.track-title { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 32px; line-height: 0.95; text-transform: uppercase; margin-bottom: 20px; }
@media (min-width: 1024px) { .track-title { font-size: 48px; line-height: 0.92; } }

.track-form { display: grid; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
@media (min-width: 1024px) { .track-form { grid-template-columns: 1fr 1fr auto; align-items: end; border: none; margin-bottom: 0; padding-bottom: 0; } }
.track-form label { display: grid; gap: 6px; }
.track-form .field-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.track-form input { padding: 14px; background: var(--surface-1); border: 1px solid var(--line-strong); color: var(--chalk); font-family: var(--font-body); font-size: 15px; font-variant-numeric: tabular-nums; }

@media (min-width: 1024px) {
  .track-header-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
  .track-header-row .track-title { margin-bottom: 4px; }
}

.track-status-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.track-status-row .track-order-number { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .track-status-row .track-order-number { font-size: 24px; } }
.track-meta { font-size: 13px; color: var(--mute); }

.track-timeline { display: grid; }
.track-step { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.track-step-rail { display: grid; justify-items: center; }
.track-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--success); }
.track-dot.is-current { width: 14px; height: 14px; border: 3px solid var(--info); background: var(--ink); }
.track-dot.is-future { width: 12px; height: 12px; border: 1px solid var(--line-strong); background: none; }
.track-rail-line { width: 1px; flex: 1; min-height: 28px; background: var(--line); }
.track-step-body { display: grid; gap: 2px; padding-bottom: 16px; }
.track-step-name { font-size: 14px; }
.track-step.is-current .track-step-name { font-size: 15px; font-weight: 600; }
.track-step-date { font-size: 12px; color: var(--mute); }
.track-step-name.is-future { color: #575256; }
.track-step-detail { display: grid; gap: 6px; padding: 14px; background: var(--surface-1); border: 1px solid var(--line); margin-top: 8px; }
.track-step-detail-line { font-size: 13px; }
.track-step-detail-note { font-size: 12px; color: var(--mute); }
.track-step-link { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--line-strong); justify-self: start; padding-bottom: 2px; }

/* Two timeline renderings share one page: a vertical one for mobile, a
   6-column strip for desktop — only one is ever visible at a time. */
.track-timeline-desktop { display: none; }
@media (min-width: 1024px) { .track-timeline { display: none; } }

.track-desktop-panels { display: grid; gap: 16px; }
.track-panel { display: grid; gap: 14px; padding: 20px 16px; background: var(--surface-1); border: 1px solid var(--line); align-content: start; }
.track-panel-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.track-panel-title { font-size: 17px; font-weight: 600; }
.track-panel-actions { display: grid; gap: 8px; }

@media (min-width: 1024px) {
  .track-timeline-desktop { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; margin-bottom: 32px; }
  .track-col { display: grid; gap: 10px; padding: 18px 16px; background: var(--surface-1); border-bottom: 3px solid var(--line); }
  .track-col.is-done { border-bottom-color: var(--success); }
  .track-col.is-current { background: #221F22; border-bottom-color: var(--info); }
  .track-col-name { font-size: 13px; font-weight: 600; }
  .track-col-date { font-size: 12px; color: var(--mute); }
  .track-col.is-current .track-col-date { color: var(--info-tint); }
  .track-col.is-future { background: #141314; }
  .track-col.is-future .track-col-name, .track-col.is-future .track-col-date { color: #575256; }
  .track-desktop-panels { grid-template-columns: 7fr 5fr; gap: 48px; }
  .track-panel { padding: 24px; }
  .track-panel-title { font-size: 20px; }
  .track-panel-actions { grid-auto-flow: column; }
}

.track-summary { display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 8px; }
.track-summary-row { display: flex; justify-content: space-between; font-size: 14px; }
.track-summary-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 10px; }
.track-summary-address { font-size: 12px; color: var(--mute); }

.track-state-card { background: var(--surface-1); border: 1px solid var(--line); padding: 20px 16px; display: grid; gap: 12px; }
.track-state-eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.track-state-eyebrow.is-warm { color: var(--warning-tint); }
.track-state-title { font-size: 17px; font-weight: 600; }
.track-state-body { font-size: 14px; line-height: 1.55; color: #C9C3C7; }
.track-state-actions { display: grid; gap: 8px; padding-top: 4px; }
.track-state-note { font-size: 12px; color: var(--mute); line-height: 1.5; }
.track-wrong-number { padding: 14px; background: var(--ink); border: 1px solid var(--danger); font-size: 15px; }

/* ---------- Returns (5.2) ---------- */
.track-return-eyebrow { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.track-return-meta { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; margin: -12px 0 16px; }
.track-return-label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.track-return-note { font-size: 12px; color: var(--mute); line-height: 1.5; text-align: center; }

.return-item-list { display: grid; gap: 10px; }
.return-item-row { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.return-item-row input[type="radio"] { width: 20px; height: 20px; accent-color: var(--fuchsia); flex: 0 0 auto; }
.return-item-name { flex: 1; font-size: 14px; font-weight: 600; }
.return-item-price { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }

.return-reason-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.return-reason-chip {
  padding: 12px 15px; border: 1px solid var(--line-strong); background: transparent; color: var(--chalk);
  font-size: 13px; font-family: var(--font-body); cursor: pointer;
}
.return-reason-chip.is-active { background: var(--chalk); border-color: var(--chalk); color: var(--ink); font-weight: 600; }

/* ---------- Policy pages (5.3) — plain type, one column, 64ch measure ---------- */
.policy-page { max-width: 64ch; margin: 0 auto; padding: 24px 20px 64px; display: grid; gap: 24px; }
.policy-title { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 32px; line-height: 0.95; text-transform: uppercase; }
@media (min-width: 1024px) { .policy-title { font-size: 44px; } }
.policy-qa { display: grid; gap: 8px; }
.policy-question { font-size: 17px; font-weight: 600; }
.policy-answer { display: block; font-size: 14px; line-height: 1.65; color: #C9C3C7; }
.policy-cta-card { display: grid; gap: 12px; padding: 16px; background: var(--surface-1); border: 1px solid var(--line); }
.policy-footnote { font-size: 12px; line-height: 1.6; color: var(--mute); border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }

/* ---------- Edge states (5.4) — 404 ---------- */
.edge-state-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--ink); }
.edge-state-card { width: 100%; max-width: 420px; background: var(--ink); border: 1px solid var(--line); padding: 40px 20px; display: grid; gap: 16px; }
.edge-state-title { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 56px; line-height: 0.9; text-transform: uppercase; }
.edge-state-actions { display: grid; gap: 8px; }
