/* ==========================================================================
   UNREAD. store
   Values here are lifted from the design handoff; do not "tidy" them.
   ========================================================================== */

:root {
  --bg: #070707;
  --surface: #0d0d0d;
  --mock: #e9e9e7;          /* light grey the tee mockups are shot on */
  --fg: #ffffff;
  --muted: hsl(240 4% 66%);
  --hero-sub: hsl(240 4% 78%);
  --border: hsl(0 0% 16%);
  --border-2: hsl(0 0% 30%);
  --lime: #b5d334;
  --lime-fill: rgba(181, 211, 52, 0.1);
  --lime-fill-soft: rgba(181, 211, 52, 0.08);
  --lime-ring: rgba(181, 211, 52, 0.35);
  --error: #ff7a7a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-hand: 'Instrument Serif', serif;
  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* Everything toggled from JS uses the `hidden` attribute, and most of those
   elements are flex containers — without this, `display:flex` wins over the UA's
   `[hidden] { display: none }` and they never actually hide. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--lime); }
input, select, button, textarea { font-family: var(--font-body); }

/* Scrollbars in the site's colours: thin, a dark track, a quiet thumb. The
   standard properties cover Chrome, Edge and Firefox; the -webkit- rules
   Safari, which also turns the thumb lime under the pointer. */
html { scrollbar-width: thin; scrollbar-color: #343434 var(--bg); }
* { scrollbar-width: thin; scrollbar-color: #343434 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #343434; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--lime); }
::-webkit-scrollbar-corner { background: transparent; }
input::placeholder, textarea::placeholder { color: hsl(240 4% 40%); }
img { max-width: 100%; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Custom cursor -------------------------------------------------------
   Only on fine pointers, and only when the visitor has not asked for reduced
   motion. ui.js adds .has-dot once it has actually created the dot, so the
   native cursor is never hidden without a replacement. */
@media (pointer: fine) {
  body.has-dot, body.has-dot *, body.has-dot *::before, body.has-dot *::after { cursor: none !important; }
}
#unread-cursor {
  position: fixed; left: -100px; top: -100px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--lime); z-index: 99999; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 0 12px rgba(181, 211, 52, 0.5);
}
#unread-cursor.hot { width: 30px; height: 30px; opacity: 0.55; }

/* --- Glass ---------------------------------------------------------------- */
.liquid-glass {
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Animations ----------------------------------------------------------- */
@keyframes fade-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* The page fades in from the background over 0.5 s, as it always has, but its
   content is painted at full strength from the first frame: Chrome does not
   count content first painted at opacity 0, so fading the page itself from 0
   left /help, /track and often /shop with no Largest Contentful Paint at all.
   A veil in the background colour lies over the page and fades out instead,
   the same blend frame for frame; it never takes a tap and is gone at the end.
   page-in holds the page's opacity at 1 for the same 0.5 s, so the page keeps
   the stacking it had while it faded (the veil covers the page, nothing else). */
@keyframes page-in { from { opacity: 1; } to { opacity: 1; } }
@keyframes page-veil { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes fab-pop {
  0% { transform: scale(1); }
  28% { transform: scale(1.18) rotate(-4deg); }
  60% { transform: scale(0.94); }
  100% { transform: scale(1); }
}
@keyframes ring-out { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.animate-fade-rise { animation: fade-rise 0.8s ease-out both; }
.animate-fade-rise-1 { animation: fade-rise 0.8s ease-out 0.18s both; }
.animate-fade-rise-2 { animation: fade-rise 0.8s ease-out 0.34s both; }
/* Opacity only — this wrapper contains position:fixed children. */
.view-fade { animation: page-in 0.5s ease both; }
.view-fade::before {
  content: ''; position: fixed; inset: 0; z-index: 2147483647;
  background: var(--bg); pointer-events: none;
  opacity: 0; visibility: hidden;
  animation: page-veil 0.5s ease both;
}
.fab-pop { animation: fab-pop 0.5s var(--ease); }
.fab-ring { animation: ring-out 0.6s ease-out both; }
.toast-in { animation: toast-in 0.28s var(--ease) both; }
.drawer-in { animation: slide-in 0.32s var(--ease) both; }
.fade-in { animation: fade-in 0.25s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* No fade at all: the page is simply there. */
  .view-fade::before { animation: none !important; }
}

/* --- Type helpers --------------------------------------------------------- */
.display { font-family: var(--font-display); font-weight: 400; }
.ar { font-family: var(--font-ar); letter-spacing: 0; }
.lime { color: var(--lime); }
.muted { color: var(--muted); }
.hword { transition: color 0.25s ease; }
.hword:hover { color: var(--lime); }

.eyebrow {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--lime); margin: 0 0 20px;
}

.section-h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4.5vw, 54px);
  letter-spacing: -1px; text-transform: uppercase; margin: 0;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 9999px; min-height: 48px; padding: 16px 32px;
  font-size: 15px; font-weight: 600; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  text-align: center;
}
.btn:hover { transform: scale(1.02); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-lime { background: var(--lime); color: #070707; border-color: var(--lime); }
.btn-lime:hover { color: #070707; }
.btn-glass { color: var(--fg); }
.btn-glass:hover { color: var(--fg); }
.btn-outline { background: none; color: var(--muted); border-color: var(--border); }
.btn-outline:hover { color: var(--fg); }
.btn-danger { background: transparent; color: var(--error); border-color: var(--error); }
.btn-danger:hover { background: var(--error); color: #070707; }
.btn-block { width: 100%; }
.btn-tall { min-height: 52px; padding: 18px 24px; font-weight: 700; }

/* Inline spinner for buttons that hit the network. */
.btn.is-busy { pointer-events: none; opacity: 0.75; }
.btn.is-busy::after {
  content: ''; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}

/* --- Inputs --------------------------------------------------------------- */
.field {
  width: 100%; background: #070707; border: 1px solid var(--border);
  border-radius: 10px; padding: 15px 16px; color: var(--fg);
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  outline: none; transition: border-color 0.2s ease;
}
.field:focus { border-color: var(--lime); }
select.field { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a1a1aa' stroke-width='1.5'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
  padding-right: 42px;
}
.field-error { color: var(--error); font-size: 13px; margin: 0; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 18px 32px;
  background: rgba(7, 7, 7, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1280px; margin: 0 auto; width: 100%;
}
/* The wordmark is the brand's own logo, traced from public/assets/unread-logo.jpg
   into public/assets/brand/unread-wordmark-1.svg, never set in a font. The
   element keeps the text "UNREAD." for search engines and screen readers; the
   logo is painted through a mask in the element's own colour, so it is one
   colour wherever it sits. Its size follows font-size: 1em tall is ~0.92em of
   letters. (/assets is cached for a year: a new logo gets a new file name.) */
.wordmark {
  display: inline-block; flex-shrink: 0; font-size: 23px;
  width: calc(0.82em * 5.3836); height: 0.82em;
  color: var(--fg); background-color: currentColor;
  -webkit-mask: url('/assets/brand/unread-wordmark-1.svg') center / contain no-repeat;
  mask: url('/assets/brand/unread-wordmark-1.svg') center / contain no-repeat;
  overflow: hidden; white-space: nowrap; text-indent: 110%;
}
.wordmark:hover { color: var(--fg); }
/* Whatever markup an older page still carries inside it stays hidden. */
.wordmark * { visibility: hidden; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--fg); }
/* The campaign (public/js/campaign.js) in both menus, in the brand's one accent. */
.nav-links a.nav-campaign, .mobile-menu-links a.nav-campaign { color: var(--lime); }
/* The campaign's name, الحياة, is set in Amiri (the owner, 28 October), wherever it appears;
   Amiri sits small beside the Latin menu, so it is a size up there. */
.amiri { font-family: 'Amiri', 'IBM Plex Sans Arabic', serif; font-weight: 700; }
.nav-links a.nav-campaign.amiri { font-size: 17px; line-height: 1; }
.mobile-menu-links a.nav-campaign.amiri { font-size: 1.15em; }
/* Inside English: no letter-spacing (it would pull the Arabic letters apart) and a size up. */
.amiri { letter-spacing: 0; text-transform: none; }
.btn .amiri, .hero-sub .amiri, .cmp-sub .amiri { font-size: 1.25em; line-height: 1; }
.hero-cmp-label .amiri { font-size: 1.7em; line-height: 1; vertical-align: -0.12em; margin-right: 0.25em; }
.nav-links a.nav-campaign:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.cart-pill {
  border-radius: 9999px; padding: 12px 22px; min-height: 44px;
  font-size: 14px; color: var(--fg); cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.2s ease;
}
.cart-pill:hover { transform: scale(1.03); }
.cart-pill-count {
  background: var(--lime); color: #070707; font-weight: 700; font-size: 11px;
  border-radius: 9999px; min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.burger {
  display: none; width: 46px; height: 46px; border-radius: 9999px;
  align-items: center; justify-content: center;
  color: var(--fg); cursor: pointer; font-size: 18px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(7, 7, 7, 0.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; padding: 20px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px;
}
.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-links a {
  font-family: var(--font-display); font-size: 30px; text-transform: uppercase;
  letter-spacing: -0.5px; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.icon-btn {
  width: 46px; height: 46px; border-radius: 9999px; border: 1px solid var(--border);
  background: none; color: var(--fg); font-size: 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.icon-btn-sm { width: 44px; height: 44px; font-size: 18px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { border-top: 1px solid var(--border); padding: 96px 32px; }
.section-first { border-top: none; }
.wrap { max-width: 1280px; margin: 0 auto; width: 100%; }
.wrap-narrow { max-width: 840px; margin: 0 auto; width: 100%; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 48px;
}
.section-head p { color: var(--muted); font-size: 14px; margin: 0; }

/* ==========================================================================
   Hero + gallery
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 880px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 0 0;
}
/* The rows fill the section so there is no dead black band above or below. */
.hero-tracks {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 14px 0;
}
/* Spacing is margin on the tile, not `gap` on the row. With `gap`, a doubled
   row is n·w + (n−1)·g wide, so translateX(-50%) lands half a gap short of one
   full set — that is what made the second row sit offset from the first and
   drift. With margin, every tile occupies w+g and -50% is exactly one set. */
.hero-row { display: flex; width: max-content; flex: 1 1 0; min-height: 0; will-change: transform; }
.hero-row-a { animation: marquee 80s linear infinite; }
.hero-row-b { animation: marquee-rev 96s linear infinite; }
/* Hover pauses only where there is a real hover: on an iPhone a tap leaves
   :hover stuck on, which used to freeze the strip until the next tap elsewhere. */
@media (hover: hover) { .hero-tracks:hover .hero-row { animation-play-state: paused; } }
/* Off screen, nothing moves (page-home.js): no work for a strip nobody sees. */
.hero-tracks.is-offscreen .hero-row { animation-play-state: paused; }
/* page-home.js moves the strips itself (an iPhone only started these keyframes
   after a scroll: WebKit bug 273895); the keyframes stay for a browser without it.
   Held at their start rather than removed: with them removed, WebKit lays a
   scripted row out one photo wide instead of its full length. */
.hero-row.is-scripted, .ticker-track.is-scripted { animation-play-state: paused; }
.hero-tile {
  position: relative;
  height: 100%; width: auto; flex: 0 0 auto; aspect-ratio: 4 / 5;
  margin-right: 18px;
  border-radius: 4px; overflow: hidden; background: #111;
}
/* The photo lies over its tile, out of the flow. In the flow, Safari (WebKit)
   sized each row from the photos' own pixel widths once they loaded, not from
   the tiles: the row came out shorter than its tiles, so the -50% loop slid
   the wrong distance and the strip jumped or showed gaps on iPhone. The tile
   now takes its width from its 4:5 shape alone. */
.hero-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.75) contrast(1.05);
}
.hero-scrim-radial {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 62% 58% at 50% 46%,
    rgba(7,7,7,0.95) 0%, rgba(7,7,7,0.78) 48%, rgba(7,7,7,0.5) 72%, rgba(7,7,7,0.9) 100%);
}
.hero-scrim-linear {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(7,7,7,0.85) 0%, rgba(7,7,7,0) 22%, rgba(7,7,7,0) 70%, rgba(7,7,7,0.95) 100%);
}
.hero-copy { position: relative; z-index: 2; text-align: center; padding: 48px 24px 56px; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--lime); margin: 0 0 20px;
}
.hero-h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 7.4vw, 96px); line-height: 0.96; letter-spacing: -1.5px;
  text-transform: uppercase; max-width: 1100px; margin: 0 auto;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
}
.hero-sub {
  color: var(--hero-sub); font-size: 16px; max-width: 560px;
  margin: 24px auto 0; line-height: 1.7;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.9);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.hero-ctas .btn { min-height: 50px; padding: 17px 42px; }
.hero-foot {
  position: relative; z-index: 2; max-width: 1280px; width: 100%; margin: 0 auto;
  padding: 0 32px 28px;
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.hero-foot .label {
  font-family: var(--font-display); font-weight: 400; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
}
.hero-foot .note { color: var(--muted); font-size: 13px; }

/* ==========================================================================
   Product cards
   ========================================================================== */
.grid-tees { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 30px; }
.grid-caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.grid-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.card {
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }

/* Product photos sit in a frame of one shape. A tee photo is shown whole and
   centred, never cropped or stretched, at the scale and on the background
   images.js MEDIA_FRAMES gives it (--fit, --fy, --frame-bg). */
.card-media { position: relative; overflow: hidden; background: var(--frame-bg, var(--mock)); }
/* Out of stock (the desk's switch, or a counted run at zero): the card dims so
   it reads as not for sale at a glance. Its chips stay bright. */
.card.is-out .card-media > :not(.chip) { opacity: 0.4; filter: grayscale(0.5); }
.card.is-out .card-title, .card.is-out .card-price, .card.is-out .card-desc { opacity: 0.55; }
.card-media-tee { aspect-ratio: 3 / 2; }
.card-media-cap { aspect-ratio: 4 / 5; background: var(--frame-bg, #111); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media-tee img[data-card-img] {
  object-fit: contain; object-position: center;
  scale: var(--fit, 1); translate: 0 var(--fy, 0%);
}
.card-media-cap img { scale: var(--fit, 1); transition: transform 0.5s var(--ease); }
.card:hover .card-media-cap img { transform: scale(1.04); }

.chip {
  position: absolute; top: 14px; left: 14px; border-radius: 9999px;
  padding: 6px 14px; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--fg); pointer-events: none;
}
/* Stock news (cards.js), only on a product sold in a limited run: the same
   chip, in the opposite corner. */
.chip-stock { left: auto; right: 14px; }
/* A cap's count ("5 LEFT") sits over the light top of the cap photos, where
   the clear glass leaves it unreadable: a darker glass behind the same text. */
.card-media-cap .chip-stock { white-space: nowrap; background: rgba(7, 7, 7, 0.55); }
.card-body {
  padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 15px; flex: 1;
}
.card-body-cap { padding: 20px 20px 24px; gap: 14px; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title {
  font-family: var(--font-display); font-weight: 400; font-size: 18px;
  line-height: 1.3; margin: 0;
}
.card-title-cap { font-size: 17px; line-height: 1.35; }
.card-price { font-size: 16px; font-weight: 600; color: var(--lime); white-space: nowrap; }
/* A Winter 001 piece before the owner gives it a price. */
.card-price.is-soon { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.card-desc { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

.opt-group { display: flex; flex-direction: column; gap: 9px; }
.opt-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* The option rows are grids rather than wrapping flex lines. Flex-wrap left a
   ragged last row and the rows never lined up between one card and the next;
   fixed tracks keep every card's controls on the same grid. */
.opt-row-shirt { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
/* Three garment colours on one line; four (Winter 001's) in two rows of two, as the tees' two. */
.opt-row-shirt:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.opt-row-shirt:has(> :nth-child(3):last-child) .swatch-shirt { padding: 8px 6px; gap: 7px; }
.opt-row-size { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.opt-row-size .size-pill { width: 100%; min-width: 0; padding: 0 4px; }

.swatch-shirt {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 9999px; padding: 8px 12px; min-height: 44px;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  font-size: 13px; cursor: pointer; transition: all 0.18s ease;
}
.swatch-shirt[aria-pressed='true'] {
  background: var(--lime-fill); border-color: var(--lime); color: var(--fg);
}
.swatch-shirt .dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid hsl(0 0% 40%); flex: none;
}

/* The visible circle is 26px, but the button keeps a 40px hit area so the
   swatches stay comfortably tappable on a phone. */
.swatch-print {
  width: 40px; height: 40px; padding: 7px; border: none; background: none;
  border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.swatch-print i {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  border: 2px solid hsl(0 0% 30%); transition: all 0.18s ease;
}
.swatch-print:hover i { border-color: hsl(0 0% 50%); }
.swatch-print[aria-pressed='true'] i {
  border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-ring);
}
/* Fixed 40px tracks, so 13 swatches wrap into aligned columns instead of a
   ragged line, and every card's swatch block is the same shape. */
.opt-row-print {
  display: grid; grid-template-columns: repeat(auto-fill, 40px);
  gap: 0; margin: -4px 0 -4px -7px; justify-content: start;
}

.size-pill {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 9999px;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  font-size: 13px; cursor: pointer; transition: all 0.15s ease;
}
.size-pill[aria-pressed='true'] { background: var(--lime); border-color: var(--lime); color: #070707; }
.size-pill:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

.btn-add {
  border-radius: 9999px; padding: 16px 24px; min-height: 52px; width: 100%;
  font-size: 14px; font-weight: 600; font-family: var(--font-body);
  color: var(--fg); background: transparent; border: 1px solid var(--border-2);
  cursor: pointer; transition: all 0.25s ease; margin-top: auto;
}
.btn-add:hover { transform: scale(1.02); }
.btn-add:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-add.added { background: var(--lime); border-color: var(--lime); color: #070707; }
.btn-add-cap { padding: 14px 20px; min-height: 48px; font-size: 13px; }

.cap-colour { display: flex; align-items: center; gap: 8px; }
.cap-colour .dot {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid hsl(0 0% 35%); flex: none;
}
.cap-colour span:last-child { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Home
   ========================================================================== */

/* --- Ticker ---------------------------------------------------------------
   Same margin-not-gap trick as the hero rows: every item occupies width+gap,
   so translateX(-50%) is exactly one set and the loop has no seam. */
.ticker {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 22px 0; background: var(--surface);
}
.ticker-track {
  display: flex; width: max-content; will-change: transform;
  animation: marquee 42s linear infinite;
}
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }
.ticker.is-offscreen .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -0.5px; text-transform: uppercase;
  white-space: nowrap; margin-right: 28px;
  display: inline-flex; align-items: center; gap: 28px;
}
.ticker-item::after {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime); flex: none;
}
/* Still the quieter of the two, but readable: 26% failed WCAG AA on the near-black band. */
.ticker-item.dim { color: hsl(0 0% 49%); }

/* --- Editorial split ------------------------------------------------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
  border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
  background: var(--surface);
}
.split-media { position: relative; min-height: 420px; background: #111; }
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-body {
  padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.split-body h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -1px;
  text-transform: uppercase; margin: 0; line-height: 1.05;
}
.split-body p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }
.split-body .btn { align-self: flex-start; }

/* --- Charity band ---------------------------------------------------------- */
.band {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 88px 32px;
  background:
    radial-gradient(ellipse 70% 120% at 50% 50%, rgba(181, 211, 52, 0.13) 0%, rgba(181, 211, 52, 0) 70%),
    var(--bg);
}
.band-inner { max-width: 980px; margin: 0 auto; text-align: center; }
/* Needs to out-specify the `.band p` body rule below — both match this <p>. */
.band .band-figure {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(64px, 12vw, 150px); line-height: 0.86; letter-spacing: -4px;
  color: var(--lime); margin: 0;
}
.band-unit {
  font-size: clamp(18px, 2.4vw, 30px); letter-spacing: -0.5px; color: var(--fg);
  margin-left: 8px;
}
.band h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(20px, 2.8vw, 32px); text-transform: uppercase;
  letter-spacing: -0.5px; margin: 24px 0 0; line-height: 1.3;
}
.band p {
  color: var(--muted); font-size: 15px; line-height: 1.8;
  max-width: 620px; margin: 18px auto 0;
}

/* --- Closing contact ------------------------------------------------------- */
.closer { padding: 104px 32px; text-align: center; border-top: 1px solid var(--border); }
.closer h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 8vw, 96px); line-height: 0.95; letter-spacing: -2px;
  text-transform: uppercase; margin: 0 0 26px;
}

/* --- Value strip + featured ------------------------------------------------ */
.value-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.value-card {
  border: 1px solid var(--border); border-radius: 20px; padding: 28px;
  background: var(--surface); display: flex; flex-direction: column; gap: 10px;
}
.value-card .num {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 2px; color: var(--lime);
}
.value-card h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 19px;
  text-transform: uppercase; letter-spacing: -0.3px; margin: 0; line-height: 1.25;
}
.value-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px;
}
.feature-card {
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column;
  color: var(--fg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border-color: hsl(0 0% 26%); color: var(--fg);
}
.feature-card .media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--frame-bg, var(--mock)); }
.feature-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The home page's featured tees use the same frame as the shop's cards. */
.feature-card .media > img {
  object-fit: contain; object-position: center;
  scale: var(--fit, 1); translate: 0 var(--fy, 0%);
}
.feature-card .body {
  padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.feature-card h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 17px;
  line-height: 1.3; margin: 0;
}
.feature-card .meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; font-size: 13px; color: var(--muted);
}
.feature-card .go { color: var(--lime); font-weight: 600; }

.section-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ==========================================================================
   About / help / contact
   ========================================================================== */
.about-fact { max-width: 62ch; margin: 18px auto 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.about-statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 3.2vw, 36px); line-height: 1.35;
  text-transform: uppercase; margin: 0;
}
.about-note { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 26px 0 0; }

.help-card {
  border: 1px solid var(--border); border-radius: 20px; padding: 26px;
  background: var(--surface); display: flex; flex-direction: column; gap: 12px;
}
.help-card h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.5px; margin: 0; color: var(--lime);
}
.help-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }

.contact-lead { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0 0 36px; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact-ctas .btn { padding: 18px 40px; font-size: 16px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: 52px 32px 40px; }
.site-footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.site-footer .wordmark { font-size: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-size: 13px; color: var(--muted); cursor: pointer; }
.footer-links a:hover { color: var(--fg); }
.copyright { font-size: 12px; color: var(--muted); }
.site-credit { font-size: 12px; color: var(--muted); margin: 0; }
.site-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Cart FAB + toast + drawer
   ========================================================================== */
.fab-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.fab-stack[hidden] { display: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 9999px; padding: 10px 16px;
  background: rgba(13, 13, 13, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.toast span:last-child { font-size: 12px; color: var(--fg); white-space: nowrap; }

.fab {
  position: relative; width: 64px; height: 64px; border-radius: 22px; border: none;
  background: var(--lime); color: #070707; cursor: pointer;
  font-family: var(--font-display);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease;
}
.fab:hover { transform: translateY(-3px); }
.fab-count { font-size: 20px; line-height: 1; }
.fab-word { font-size: 8px; letter-spacing: 1.5px; font-family: var(--font-body); font-weight: 700; }
.fab-ring-el {
  position: absolute; inset: 0; border-radius: 22px;
  border: 2px solid var(--lime); pointer-events: none;
}

.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7, 7, 7, 0.7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); border: 0; padding: 0;
}
.scrim[hidden] { display: none; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  z-index: 91; background: var(--surface); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.drawer[hidden] { display: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px; border-bottom: 1px solid var(--border);
}
.drawer-head .title { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; }
.drawer-body {
  flex: 1; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.drawer-empty { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 22px 0 0; text-align: center; }
.drawer-foot {
  border-top: 1px solid var(--border); padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 14px; }
.drawer-foot .note { font-size: 12px; color: var(--muted); margin: 0; }

.mini-row {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--border); border-radius: 14px; padding: 10px; background: #070707;
}
.mini-row img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  background: var(--mock); flex: none;
}
.mini-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.mini-variant { font-size: 11px; color: var(--muted); }
.mini-total { font-size: 12px; color: var(--lime); }
.stepper-v { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step-btn {
  width: 32px; height: 32px; border-radius: 9999px; border: 1px solid var(--border);
  background: none; color: var(--fg); cursor: pointer; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}
.step-btn-lg { width: 44px; height: 44px; font-size: 16px; }

/* ==========================================================================
   Checkout / confirm / track
   ========================================================================== */
.slim-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; margin: 0 auto; width: 100%;
  border-bottom: 1px solid var(--border);
}
.slim-nav-back {
  background: none; border: none; color: var(--muted); font-size: 14px;
  cursor: pointer; min-height: 44px;
}
.slim-nav-back:hover { color: var(--fg); }

.page-pad { margin: 0 auto; width: 100%; padding: 48px 32px 96px; }

.checkout-grid {
  max-width: 1180px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 44px; align-items: start;
}
.checkout-col { display: flex; flex-direction: column; gap: 18px; }
.checkout-h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 32px;
  letter-spacing: -0.5px; text-transform: uppercase; margin: 0 0 6px;
}

.cart-row {
  display: flex; gap: 16px; align-items: center;
  border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: var(--surface);
}
.cart-row img {
  width: 76px; height: 76px; object-fit: cover; border-radius: 10px;
  background: var(--mock); flex: none;
}
.cart-row-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-row-name { font-size: 14px; font-weight: 600; }
.cart-row-variant { font-size: 12px; color: var(--muted); }
.stepper-h { display: flex; align-items: center; gap: 10px; }
.stepper-h .qty { font-size: 14px; min-width: 16px; text-align: center; }
.cart-row-total { font-size: 14px; font-weight: 600; min-width: 70px; text-align: right; }

.empty-cart {
  border: 1px dashed var(--border); border-radius: 16px; padding: 44px 24px; text-align: center;
}
.empty-cart p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

.gift-box {
  border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  background: var(--surface); display: flex; flex-direction: column; gap: 14px;
}
.check-line {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  font-size: 14px; font-weight: 600;
}
.check-line input { width: 18px; height: 18px; accent-color: var(--lime); cursor: pointer; flex: none; }
.check-line-sub { font-size: 13px; color: var(--muted); font-weight: 400; padding-left: 30px; }
.check-line-sub input { width: 16px; height: 16px; }
.gift-msg { margin-left: 30px; width: calc(100% - 30px); }

.totals {
  display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid var(--border); padding-top: 18px; font-size: 14px;
}
.totals .row { display: flex; justify-content: space-between; }
.totals .row span:first-child { color: var(--muted); }
.totals .grand { font-size: 17px; font-weight: 700; margin-top: 6px; }
.totals .grand span:first-child { color: var(--fg); }

.pay-card {
  border: 1px solid var(--border); border-radius: 20px; padding: 30px;
  background: var(--surface); display: flex; flex-direction: column; gap: 16px;
}
.pay-card h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 21px;
  text-transform: uppercase; margin: 0 0 4px;
}
.pay-label {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin: 10px 0 -4px;
}
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex; align-items: center; gap: 12px; text-align: left;
  border-radius: 12px; padding: 16px; min-height: 52px;
  background: #070707; border: 1px solid var(--border); color: var(--fg);
  cursor: pointer; font-size: 14px; transition: all 0.2s ease;
}
.pay-method[aria-pressed='true'] { background: var(--lime-fill-soft); border-color: var(--lime); }
.pay-method .radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid hsl(0 0% 35%); background: transparent; flex: none;
}
.pay-method[aria-pressed='true'] .radio { border-color: var(--lime); background: var(--lime); }
.pay-method .stack { display: flex; flex-direction: column; gap: 3px; }
.pay-method .stack b { font-weight: 600; }
.pay-method .stack small { color: var(--muted); font-size: 12px; }

.note-box {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px;
  background: #070707; display: flex; gap: 12px; align-items: flex-start;
}
.note-box .arrow { color: var(--lime); font-size: 15px; line-height: 1.5; }
.note-box p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.fineprint { color: var(--muted); font-size: 12px; text-align: center; margin: 0; line-height: 1.6; }

/* Confirmation */
.confirm-view {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 32px;
  background: radial-gradient(ellipse 70% 50% at 50% 40%,
    rgba(181, 211, 52, 0.12) 0%, rgba(181, 211, 52, 0) 65%), #070707;
}
.confirm-check {
  width: 84px; height: 84px; border-radius: 9999px; background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: #070707; margin-bottom: 32px;
}
.confirm-h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 6vw, 68px); letter-spacing: -1px; line-height: 1.05;
  text-transform: uppercase; margin: 0;
}
.confirm-lead { color: var(--muted); font-size: 16px; max-width: 520px; margin: 26px 0 0; line-height: 1.7; }
.summary-card {
  width: 100%; max-width: 460px; margin: 30px 0 0;
  border: 1px solid var(--border); border-radius: 20px; background: var(--surface);
  padding: 22px; text-align: left; display: flex; flex-direction: column; gap: 10px;
}
.summary-card .row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.summary-card .row span:first-child { color: var(--muted); flex: none; }
.summary-card .row span:last-child { font-weight: 600; text-align: right; }
.summary-card .grand {
  font-size: 15px; font-weight: 700; border-top: 1px solid var(--border);
  padding-top: 10px; margin-top: 4px;
}
.summary-card .grand span:first-child { color: var(--fg); }
/* What the customer does next: pay the driver, or send the CliQ transfer. */
.summary-card .summary-pay {
  margin: 2px 0 0; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 13px; line-height: 1.6; color: var(--fg);
}
.confirm-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.confirm-ctas .btn { padding: 16px 32px; font-size: 14px; }

/* Event offer (/event), opened from the QR code at the stand. */
.event-view { gap: 0; }
.event-view > .wordmark { margin-bottom: 28px; }
.event-steps {
  list-style: none; padding: 0; margin: 30px 0 0; width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 14px; text-align: left;
}
.event-steps[hidden] { display: none; }
.event-steps li {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 18px;
}
.event-steps li > div { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.event-step-n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: #070707;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.event-step-note { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: -4px; }
/* One step at a time: the next one waits until the one before is done. */
.event-steps li.is-current { border-color: var(--lime); }
.event-phone { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.event-phone .field { font-size: 16px; letter-spacing: 0.5px; }
.event-steps li.is-done { opacity: 0.7; }
.event-steps li.is-done .event-step-note { display: none; }
.event-steps li.is-locked { opacity: 0.45; }
.event-steps li.is-locked .event-step-n { background: var(--border-2, var(--border)); color: var(--fg); }
.event-steps [aria-disabled='true'] { pointer-events: none; }
.event-eyebrow {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--lime); margin: 0 0 10px;
}
.event-status {
  width: 100%; max-width: 420px; margin: 22px 0 0; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--border); font-size: 13px; line-height: 1.55; text-align: left;
}
.event-status.is-open { border-color: var(--lime); color: var(--lime); }
.event-code-card {
  width: 100%; max-width: 420px; margin-top: 30px; padding: 24px;
  border: 1px solid var(--lime); border-radius: 20px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.event-code-card[hidden] { display: none; }
.event-code-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.event-code {
  font-family: var(--font-display); font-size: clamp(30px, 9vw, 44px); letter-spacing: 1px;
  color: var(--lime); user-select: all;
}
.event-code-rules { font-size: 13px; line-height: 1.6; margin: 0; }
.event-view .field-error { margin-top: 18px; max-width: 420px; }

/* Event code at checkout */
.promo-row { display: flex; gap: 8px; margin-bottom: 6px; }
.promo-row[hidden] { display: none; }
.promo-toggle {
  align-self: flex-start; background: none; border: none; padding: 0; margin: 0 0 4px;
  /* A thumb-sized target (44 px tall) for a small line of text. */
  min-height: 44px; display: inline-flex; align-items: center;
  font: inherit; font-size: 13px; color: var(--muted); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.promo-toggle:hover { color: var(--fg); }
.promo-toggle[hidden] { display: none; }
.promo-row .field { flex: 1; margin: 0; text-transform: uppercase; }
.promo-row .btn { flex: none; padding: 0 20px; }
.promo-note { font-size: 12px; margin: 0 0 10px; line-height: 1.5; }
.promo-note.is-ok { color: var(--lime); }
.promo-note.is-bad { color: var(--error); }
/* The delivery location (checkout, Jordan): the field as wide as the address
   above it; the button beside it, or under it on a narrow phone. */
.location-block[hidden] { display: none; }
.location-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.location-row .field { flex: 1 1 240px; margin: 0; }
.location-row .btn { flex: 0 0 auto; padding: 0 20px; min-height: 44px; }
.location-block .promo-note:not(.is-ok):not(.is-bad) { color: var(--muted); }

/* Track */
.track-col { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.track-h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 6vw, 42px); letter-spacing: -0.5px;
  text-transform: uppercase; margin: 0;
}
.track-lead { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }
.track-form { display: flex; gap: 10px; flex-wrap: wrap; }
.track-form .field { flex: 1; min-width: 180px; }
.order-card {
  border: 1px solid var(--border); border-radius: 20px; background: var(--surface);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.order-card[hidden] { display: none; }
.order-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.order-no { font-family: var(--font-display); font-size: 20px; }
.status-chip {
  border-radius: 9999px; padding: 8px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  background: rgba(181, 211, 52, 0.15); color: var(--lime);
}
.status-chip.cancelled { background: rgba(255, 122, 122, 0.15); color: var(--error); }
.order-rows { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.order-rows .row { display: flex; justify-content: space-between; gap: 12px; }
.order-rows .row span:last-child { color: var(--fg); text-align: right; }
.order-rows .grand {
  font-size: 16px; font-weight: 700; color: var(--fg);
  border-top: 1px solid var(--border); padding-top: 10px;
}
/* --- Order timeline ------------------------------------------------------- */
.timeline-wrap { border-top: 1px solid var(--border); padding-top: 20px; }
.timeline-wrap[hidden] { display: none !important; }

.eta-band {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  border: 1px solid rgba(181, 211, 52, 0.35); border-radius: 14px;
  background: var(--lime-fill-soft); padding: 14px 18px; margin-bottom: 22px;
}
.eta-band[hidden] { display: none !important; }
.eta-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.eta-dates { font-family: var(--font-display); font-size: 15px; color: var(--lime); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-step {
  position: relative; padding: 0 0 24px 34px;
  display: flex; flex-direction: column; gap: 3px;
}
.tl-step:last-child { padding-bottom: 0; }

/* The rail is drawn per step so it stops cleanly at the last dot. */
.tl-step::before {
  content: ''; position: absolute; left: 8px; top: 18px; bottom: -6px;
  width: 2px; background: var(--border);
}
.tl-step:last-child::before { display: none; }
.tl-step.is-done::before { background: var(--lime); }

.tl-dot {
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #070707; line-height: 1;
}
.tl-step.is-done .tl-dot { background: var(--lime); border-color: var(--lime); }
.tl-step.is-current .tl-dot {
  background: var(--lime); border-color: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-ring);
}
.tl-step.is-cancelled .tl-dot { background: var(--error); border-color: var(--error); }
.tl-step.is-cancelled::before { background: var(--error); }

.tl-title { font-size: 14px; font-weight: 600; color: var(--muted); }
.tl-step.is-done .tl-title, .tl-step.is-current .tl-title { color: var(--fg); }
.tl-step.is-current .tl-title { color: var(--lime); }
.tl-when { font-size: 12px; color: var(--muted); }
.tl-note { font-size: 12px; color: var(--muted); line-height: 1.6; }

.cancel-block {
  border-top: 1px solid var(--border); padding-top: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.cancel-block p { font-size: 13px; color: var(--muted); margin: 0; }
.order-note {
  font-size: 13px; color: var(--muted); margin: 0;
  border-top: 1px solid var(--border); padding-top: 16px; line-height: 1.7;
}

/* ==========================================================================
   Responsive — single breakpoint, per the handoff
   ========================================================================== */
@media (max-width: 860px) {
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .section { padding: 64px 18px 52px; }
  .hero-copy { padding: 40px 18px 48px; }
  .hero-foot { padding: 0 18px 28px; }
  /* Fixed row height on small screens, or height:100% tiles get enormous. */
  .hero-row { flex: 0 0 210px; }
  .hero-tile { margin-right: 12px; }
  .page-pad { padding: 26px 18px 88px; }
  .checkout-grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { padding: 40px 18px 32px; }
  .slim-nav { padding: 16px 18px; }
  .cart-row { flex-wrap: wrap; }
  .cart-row-total { width: 100%; text-align: right; }
  .pay-card { padding: 22px; }
  .grid-tees { grid-template-columns: 1fr; gap: 20px; }

  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 300px; }
  .split-body { padding: 30px 22px 34px; }
  .band { padding: 64px 18px; }
  .closer { padding: 72px 18px; }
  .ticker { padding: 16px 0; }
  .ticker-item { margin-right: 20px; gap: 20px; }
}

/* --- The Station teaser on the home page ---------------------------------- */
.split-reverse .split-media { order: 2; }
.split-reverse .split-body { order: 1; }

.station-teaser-art {
  background: radial-gradient(ellipse 76% 62% at 50% 40%, #f4f3f0 0%, #e4e2dd 60%, #d2cfc8 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
  min-height: 420px; padding: 26px;
}
.teaser-tee { width: 100%; max-width: 340px; }
.teaser-tee svg { width: 100%; height: auto; display: block; }
.teaser-text {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  margin: 0; text-align: center; line-height: 1.05;
  font-family: 'Permanent Marker', var(--font-display), sans-serif;
  font-size: clamp(22px, 3.4vw, 38px); color: var(--lime);
}

@media (max-width: 860px) {
  .split-reverse .split-media { order: 1; }
  .split-reverse .split-body { order: 2; }
  .station-teaser-art { min-height: 300px; }
}

/* --- Composite products ---------------------------------------------------
   A blank photograph with the design drawn over it, instead of one photo per
   colourway. Sits inside the existing .card-media, so cards are unchanged. */
.cx { position: absolute; inset: 0; overflow: hidden; }
.cx-blank { position: absolute; width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-print {
  position: absolute; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4%;
  overflow: hidden; text-align: center;
}
.cx-art { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.cx-art-tint {
  width: 100%; flex: 0 0 auto;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.cx-text {
  margin: 0; font-weight: 700; line-height: 1.12;
  white-space: pre-wrap; word-break: break-word; max-width: 100%;
}

/* ==========================================================================
   Shared form primitives
   Used by The Station and by the admin Products tab, so they live here
   rather than in either page's own stylesheet.
   ========================================================================== */
/* --- Swatches -------------------------------------------------------------- */
.swatch-grid { display: flex; flex-wrap: wrap; gap: 0; margin: -4px 0 -4px -7px; }
.swatch-lg {
  width: 46px; height: 46px; padding: 7px; border: none; background: none;
  border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.swatch-lg i {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  border: 2px solid hsl(0 0% 30%); transition: all 0.18s ease;
}
.swatch-lg:hover i { border-color: hsl(0 0% 52%); }
.swatch-lg[aria-pressed='true'] i {
  border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-ring);
}

.garment-row { display: flex; flex-wrap: wrap; gap: 10px; }
.garment-pill {
  display: flex; align-items: center; gap: 9px; border-radius: 9999px;
  padding: 8px 16px 8px 8px; min-height: 44px;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  font-size: 13px; cursor: pointer; transition: all 0.18s ease;
}
.garment-pill[aria-pressed='true'] {
  background: var(--lime-fill); border-color: var(--lime); color: var(--fg);
}
.garment-pill i {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid hsl(0 0% 42%); flex: none;
}

/* --- Sliders --------------------------------------------------------------- */
.slider-row { display: flex; align-items: center; gap: 14px; }
.slider-row label { font-size: 12px; color: var(--muted); min-width: 66px; }
input[type='range'] {
  flex: 1; appearance: none; -webkit-appearance: none; height: 3px; border-radius: 3px;
  background: var(--border-2); outline: none; cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--lime); cursor: pointer; border: none;
}
input[type='range']::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--lime); cursor: pointer; border: none;
}
.slider-row output { font-size: 12px; color: var(--fg); min-width: 40px; text-align: right; }

.file-chip {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; background: #070707;
}
.file-chip img {
  width: 48px; height: 48px; object-fit: contain; border-radius: 8px;
  background: #1a1a1a; flex: none;
}
.file-chip .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.file-chip .info b {
  font-size: 13px; font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.file-chip .info span { font-size: 11px; color: var(--muted); }
.file-chip .warn { color: var(--lime); }
.file-chip[hidden] { display: none; }


.step-sub {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin: 4px 0 -6px;
}

/* A shirt colour sold out in a counted run: crossed out, like a size. */
.swatch-shirt:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

/* --- Money: what is paid now and what is left ----------------------------------
   The rows under an order's total on the checkout, the confirmation and the
   tracking page (payment-plan.js payRows). The pay-now figure is the one to act
   on, so it is lime. On a narrow phone the label wraps; the figure never does. */
.row.money-row { gap: 12px; align-items: baseline; }
.row.money-row > span:first-child { flex: 1 1 auto; min-width: 0; }
.row.money-row > span:last-child { flex: none; white-space: nowrap; text-align: right; }
.row.money-row.pay-now > span:first-child { color: var(--fg); font-weight: 600; }
.row.money-row.pay-now > span:last-child { color: var(--lime); font-weight: 700; }
.money-row .money-note { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }
