/* Wafkan Sports — painted terrace banners, calm shop floor. */
:root {
  --night: #0f1d40;        /* night blue cloth: the dominant band */
  --night-2: #172a57;
  --sky: #74b9e6;          /* sky blue: quiet second band */
  --sky-ink: #0b2a45;
  --turq: #12a79b;         /* turquoise green: prices, selection */
  --turq-ink: #06463f;
  --grass: #4cb74a;        /* grass green: the action */
  --grass-hi: #5fca5c;
  --ink: #0b0e14;          /* black */
  --chalk: #eef1ef;        /* chalk cloth: the shop floor */
  --chalk-2: #e2e7e4;
  --concrete: #c8cfcb;
  --line: #cfd6d2;
  --text: #121820;
  --muted: #4d5a62;
  --on-night: #eef3f7;
  --on-night-muted: #b4c3dd;
  --danger: #c2352b;

  --f-body: 'Readex Pro', system-ui, sans-serif;
  --f-display-lat: 'Big Shoulders Display', 'Readex Pro', sans-serif;
  --f-display-ar: 'Lalezar', 'Readex Pro', sans-serif;
  --f-display: var(--f-display-lat);

  --gap: clamp(16px, 4vw, 28px);
  --wrap: 1180px;
  --bar-h: 60px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
:root[lang='ar'] { --f-display: var(--f-display-ar); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0; background: var(--chalk); color: var(--text);
  font: 400 16px/1.55 var(--f-body); font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--turq); color: #fff; }
:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
[dir='rtl'] .ic.flip { transform: scaleX(-1); }
.skip { position: fixed; inset-inline-start: 8px; top: -60px; background: var(--grass); color: var(--ink); padding: 10px 14px; z-index: 50; font-weight: 600; }
.skip:focus { top: 8px; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
html { scrollbar-color: var(--night) var(--chalk-2); }

/* ---------- top bar ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--on-night); }
.bar { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: var(--gap); max-width: calc(var(--wrap) + 2 * var(--gap)); margin-inline: auto; }
.bar-end { display: flex; align-items: center; gap: 10px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; direction: ltr; }
.wm-main { font: 900 28px/1 var(--f-display-lat); letter-spacing: .01em; }
.wm-sub { font: 700 13px/1 var(--f-display-lat); letter-spacing: .14em; color: var(--turq); }
.lang { display: flex; border: 1px solid #2b3446; }
.lang-btn { background: none; border: 0; color: var(--on-night-muted); padding: 7px 9px; min-width: 40px; min-height: 36px; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang-btn[aria-pressed='true'] { background: var(--on-night); color: var(--ink); }
.lang-btn:hover:not([aria-pressed='true']) { color: #fff; }
.cart-btn { position: relative; background: none; border: 0; color: inherit; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; font-size: 22px; }
.cart-count { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 20px; height: 20px; padding: 0 5px; background: var(--grass); color: var(--ink); font: 700 12px/20px var(--f-body); text-align: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; cursor: pointer;
  font: 600 17px/1.1 var(--f-body); text-decoration: none; transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-go { background: var(--grass); color: var(--ink); box-shadow: 0 6px 14px -8px rgba(8, 12, 20, .45); }
.btn-go:hover { background: var(--grass-hi); }
.btn-ghost { background: transparent; color: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-wa { background: var(--ink); color: #fff; }
.btn-wa:hover { background: #1c2230; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { background: var(--concrete); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.icon-btn { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; font-size: 22px; color: inherit; }

/* ---------- display type ---------- */
.display { font-family: var(--f-display); font-weight: 900; line-height: .95; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
:root[lang='ar'] .display { font-weight: 400; line-height: 1.15; letter-spacing: 0; }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 6vw, 52px); line-height: 1; margin: 0; text-wrap: balance; }
:root[lang='ar'] .h2 { font-weight: 400; line-height: 1.25; }

/* ---------- hero band ---------- */
.hero { background: var(--night); color: var(--on-night); position: relative; overflow-x: clip; }
.hero-grid { display: grid; gap: 8px; padding-block: 22px 0; }
.hero h1 { font-size: clamp(46px, 13vw, 96px); }
.hero-sub { color: var(--on-night-muted); font-size: 16px; max-width: 36ch; margin: 10px 0 0; }
.hero-stage { position: relative; margin-top: 6px; display: grid; }
/* The painted stripe the product hangs on: sky-blue cloth across the band */
.hero-stage::before { content: ''; position: absolute; inset-inline: calc(-1 * var(--gap)); top: 16%; height: 58%; background: var(--sky); }
.hero-stage img { position: relative; z-index: 2; margin-bottom: -34px; width: auto; height: clamp(220px, 34vh, 340px); max-width: 92%; object-fit: contain; justify-self: center; filter: drop-shadow(0 18px 22px rgba(4, 10, 30, .45)); }
.hero-buy { position: relative; background: var(--chalk); color: var(--text); margin-inline: calc(-1 * var(--gap)); padding: 46px var(--gap) 18px; display: grid; gap: 12px; }
.hero-buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-buy h2 { font: 600 17px/1.3 var(--f-body); margin: 0; }
.hero-buy h2 a { text-decoration: none; }
.hero-buy h2 a:hover { text-decoration: underline; }
.plate { display: inline-block; background: var(--turq); color: var(--ink); font: 700 20px/1 var(--f-body); padding: 9px 12px; white-space: nowrap; }
.hero-buy .fine { margin: 0; }

/* ---------- section bands ---------- */
.band { padding-block: clamp(36px, 7vw, 72px); }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.band-head p { margin: 8px 0 0; color: var(--muted); max-width: 46ch; }
.band-night { background: var(--night); color: var(--on-night); }
.band-night .band-head p { color: var(--on-night-muted); }
.band-sky { background: var(--sky); color: var(--sky-ink); }
.band-sky .band-head p { color: #163d5e; }
.band-turq { background: var(--turq); color: #fff; }
.band-ink { background: var(--ink); color: var(--on-night); }

/* the tifo stripe: a painted seam of the brand colours between bands */
.seam { height: 14px; display: grid; grid-template-columns: 3fr 2fr 1fr 2fr 3fr; }
.seam i:nth-child(1) { background: var(--turq); } .seam i:nth-child(2) { background: var(--grass); }
.seam i:nth-child(3) { background: var(--ink); } .seam i:nth-child(4) { background: var(--sky); } .seam i:nth-child(5) { background: var(--night); }

/* unfurl: the band rises from the bottom like a raised tifo; visible by default */
.furled { clip-path: inset(100% 0 0 0); }
.unfurled { clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease); }

/* ---------- filters ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gap)); padding-inline: var(--gap); padding-bottom: 4px; }
.chip { flex: none; border: 1.5px solid var(--line); background: #fff; padding: 9px 14px; min-height: 40px; cursor: pointer; font-weight: 500; font-size: 15px; }
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 12px; margin-top: 18px; }
.tile { background: #fff; display: grid; grid-template-rows: auto 1fr; position: relative; transition: box-shadow .25s var(--ease); }
.tile:hover { box-shadow: 0 14px 30px -18px rgba(15, 29, 64, .45); }
.tile-img { aspect-ratio: 1; background: var(--chalk-2); position: relative; overflow: hidden; }
.tile-img img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; transition: transform .5s var(--ease); filter: drop-shadow(0 10px 10px rgba(10, 20, 40, .18)); }
.tile:hover .tile-img img { transform: translateY(-4px) scale(1.03); }
.tile-body { padding: 12px 12px 14px; display: grid; gap: 8px; align-content: start; }
.tile-name { font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; }
.tile-name::after { content: ''; position: absolute; inset: 0; } /* whole tile clickable */
.tile-price { font-weight: 700; color: var(--turq-ink); font-size: 17px; }
.tile .swatches { position: relative; z-index: 1; }
.tile-flag { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 8px; z-index: 1; }

/* ---------- swatches ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c); position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.sw::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; transition: border-color .15s; }
.sw[aria-pressed='true']::after, .sw[aria-checked='true']::after { border-color: var(--ink); }
.sw.out { opacity: .4; }
.sw.out::before { content: ''; position: absolute; inset: 45% -2px auto; height: 2px; background: var(--ink); transform: rotate(-35deg); }

/* ---------- delivery scoreboard ---------- */
.board { display: grid; gap: 14px; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; appearance: none; min-height: 56px; border: 0; background: #fff; color: var(--text); padding: 0 16px; padding-inline-end: 44px; font-size: 17px; font-weight: 500; }
.select-wrap::after { content: ''; position: absolute; inset-inline-end: 18px; top: 50%; width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; color: var(--text); }
.score { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.score > div { background: var(--night); color: var(--on-night); padding: 14px 16px 16px; }
.score dt { font-size: 14px; color: var(--on-night-muted); display: flex; align-items: center; gap: 6px; }
.score dd { margin: 6px 0 0; font: 900 clamp(40px, 11vw, 64px)/1 var(--f-display-lat); direction: ltr; text-align: start; }
.score dd small { font: 600 16px var(--f-body); margin-inline-start: 4px; color: var(--on-night-muted); }
[dir='rtl'] .score dd { text-align: end; }
.score .flip-in { animation: flip .5s var(--ease); }
@keyframes flip { from { transform: perspective(300px) rotateX(-80deg); opacity: 0; } to { transform: none; opacity: 1; } }
.score-note { margin: 0; font-size: 15px; }

/* ---------- promises ---------- */
.promises { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.promises li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; }
.promises .ic { font-size: 30px; color: var(--turq); grid-row: span 2; }
.promises strong { font-size: 17px; }
.promises span { color: var(--muted); }

/* ---------- instagram proof ---------- */
.ig { display: grid; gap: 20px; }
.ig-stats { display: flex; gap: 28px; margin: 0; }
.ig-stats dd { margin: 0; font: 900 clamp(44px, 12vw, 80px)/1 var(--f-display-lat); direction: ltr; }
.ig-stats dt { color: var(--on-night-muted); font-size: 14px; }
.ig-stats div { display: flex; flex-direction: column-reverse; }
.ig-note { color: var(--on-night-muted); margin: 0; font-size: 15px; max-width: 46ch; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--on-night); }
.foot-inner { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; padding-block: 36px 28px; display: grid; gap: 14px; }
.foot-tag { margin: 0; color: var(--on-night-muted); font-family: var(--f-display); font-size: 22px; }
.foot-links { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.foot-links a, .foot-links span { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; }
.foot-links a:hover span { text-decoration: underline; }
.foot-legal { margin: 10px 0 0; font-size: 13px; color: #8d9ab4; }

/* ---------- drawer (cart) ---------- */
.drawer { margin: 0; margin-inline-start: auto; height: 100dvh; max-height: none; width: min(100vw, 420px); border: 0; padding: 0; background: var(--chalk); color: var(--text);
  display: none; flex-direction: column; }
.drawer[open] { display: flex; animation: slide .35s var(--ease); }
[dir='rtl'] .drawer[open] { animation-name: slide-rtl; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes slide-rtl { from { transform: translateX(-40px); opacity: 0; } }
.drawer::backdrop { background: rgba(8, 14, 30, .55); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px var(--gap); padding-inline: var(--gap) 8px; background: var(--night); color: var(--on-night); }
.drawer-head h2 { margin: 0; font: 400 26px/1.2 var(--f-display); }
:root:not([lang='ar']) .drawer-head h2 { font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px var(--gap); }
.drawer-foot { padding: 16px var(--gap) calc(16px + env(safe-area-inset-bottom)); background: #fff; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-img { background: #fff; display: block; width: 72px; height: 72px; padding: 6px; }
.line-img img { width: 100%; height: 100%; object-fit: contain; }
.line-info { display: grid; gap: 2px; align-content: start; }
.line-name { font-weight: 600; text-decoration: none; line-height: 1.3; }
.line-meta { color: var(--muted); font-size: 14px; }
.line-price { font-weight: 700; color: var(--turq-ink); }
.line-ctrl { grid-column: 2; display: flex; align-items: center; justify-content: space-between; }
.line-qty-static { grid-column: 2; color: var(--muted); font-size: 14px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.sum-row strong { font-size: 20px; }
.fine { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }

/* ---------- stepper ---------- */
.stepper { display: inline-flex; align-items: center; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.stepper button { width: 48px; height: 48px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.stepper button:disabled { color: var(--concrete); cursor: default; }
.stepper output { min-width: 32px; text-align: center; font-weight: 700; font-size: 17px; }
.stepper-sm button { width: 38px; height: 38px; font-size: 15px; }

/* ---------- toast ---------- */
.toast { position: fixed; inset-inline: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; margin-inline: auto; max-width: 420px;
  background: var(--ink); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-weight: 500;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); transform: translateY(calc(100% + 32px)); visibility: hidden; transition: transform .4s var(--ease), visibility 0s linear .4s; }
.toast .ic { color: var(--grass); }
.toast.on { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }

/* ---------- product page ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding-block: 14px 0; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; gap: 22px; padding-block: 12px 40px; }
.gallery { display: grid; gap: 10px; }
.gallery-main { background: #fff; aspect-ratio: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gap)); }
.gallery-main figure { margin: 0; flex: 0 0 100%; scroll-snap-align: center; position: relative; }
.gallery-main img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(10, 20, 40, .16)); }
.gallery-main figcaption { position: absolute; bottom: 10px; inset-inline-start: 12px; background: var(--night); color: #fff; font-size: 13px; padding: 4px 8px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 64px; height: 64px; background: #fff; border: 0; padding: 6px; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.thumbs button[aria-current='true'] { box-shadow: inset 0 0 0 2.5px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp h1 { font-size: clamp(36px, 8vw, 60px); }
.pdp-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.pdp-short { color: var(--muted); font-size: 17px; margin: 12px 0 0; }
.opt { border: 0; padding: 0; margin: 22px 0 0; }
.opt legend { font-weight: 600; padding: 0; margin-bottom: 10px; display: flex; gap: 8px; }
.opt legend span { color: var(--muted); font-weight: 400; }
.opt .sw { width: 40px; height: 40px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-width: 52px; min-height: 46px; padding: 0 14px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 600; }
.pill[aria-checked='true'] { box-shadow: inset 0 0 0 2.5px var(--ink); }
.pill:disabled { color: var(--concrete); text-decoration: line-through; cursor: not-allowed; }
.stock-note { margin: 12px 0 0; font-weight: 600; color: var(--turq-ink); min-height: 1.5em; }
.stock-note.out { color: var(--danger); }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 18px; }
.buy .btn-wa { grid-column: 1 / -1; }
.pdp-info { display: grid; gap: 24px; margin-top: 30px; }
.pdp-info h2 { font: 600 18px/1.3 var(--f-body); margin: 0 0 10px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: start; }
.ticks .ic { color: var(--grass); margin-top: 2px; }
.pdp-info p { margin: 0; max-width: 65ch; }
.mini-board { background: var(--sky); color: var(--sky-ink); padding: 16px; display: grid; gap: 12px; }
.mini-board .score > div { padding: 10px 12px; }
.mini-board .score dd { font-size: 36px; }
.sticky-buy { position: fixed; inset-inline: 0; bottom: 0; z-index: 15; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gap) calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-buy.on { transform: none; }
.sticky-buy .btn { flex: 1; min-height: 48px; }
.sticky-buy strong { font-size: 18px; }

/* ---------- checkout ---------- */
.co { display: grid; gap: 22px; padding-block: 20px 60px; }
.co h1 { font-size: clamp(38px, 9vw, 64px); }
.panel { background: #fff; padding: 18px var(--gap); margin-inline: calc(-1 * var(--gap)); }
.panel h2 { font: 600 18px/1.3 var(--f-body); margin: 0 0 6px; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; border: 0; background: var(--chalk); padding: 12px 14px; font-size: 17px; box-shadow: inset 0 0 0 1.5px transparent; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--night); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #66737b; }
.field .select-wrap select { background: var(--chalk); }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { box-shadow: inset 0 0 0 2px var(--danger); }
.field .err { color: var(--danger); font-size: 14px; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.field .err:empty { display: none; }
.field[hidden] { display: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; background: var(--chalk); padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; min-height: 64px; box-shadow: inset 0 0 0 1.5px transparent; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2.5px var(--ink); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--grass); outline-offset: 2px; }
.seg strong { font-size: 16px; } .seg span { color: var(--muted); font-size: 14px; }
.totals { display: grid; gap: 8px; margin-top: 8px; }
.totals .sum-row { font-size: 16px; }
.totals .grand { border-top: 2px solid var(--ink); padding-top: 10px; font-size: 19px; }
.totals .grand strong { font-size: 24px; }
.err-summary { background: #fff; box-shadow: inset 0 0 0 2px var(--danger); padding: 14px 16px; }
.err-summary h2 { color: var(--danger); font: 600 17px/1.3 var(--f-body); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.err-summary ul { margin: 0; padding-inline-start: 20px; }
.err-summary a { color: var(--danger); }
.thanks { background: var(--night); color: var(--on-night); margin-inline: calc(-1 * var(--gap)); padding: 32px var(--gap); display: grid; gap: 14px; }
.thanks h1 { font-size: clamp(44px, 12vw, 80px); }
.thanks p { margin: 0; color: var(--on-night-muted); font-size: 17px; }
.thanks .ref { font: 900 34px/1 var(--f-display-lat); color: var(--grass); direction: ltr; display: inline-block; }

/* ---------- loading skeleton ---------- */
.sk { background: var(--chalk-2); animation: sk 1.2s ease-in-out infinite alternate; }
@keyframes sk { to { background-color: #f5f7f6; } }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .promises { grid-template-columns: repeat(3, 1fr); }
  .ig { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .board { grid-template-columns: 1fr 1.2fr; align-items: end; }
  .panel { margin-inline: 0; padding: 22px 24px; }
  .thanks { margin-inline: 0; padding: 40px; }
  .gallery-main { margin-inline: 0; }
}
@media (min-width: 960px) {
  .hero-stage img { height: min(62vh, 560px); margin-bottom: -84px; }
  .hero + .seam { position: relative; z-index: 1; }
  #shop { padding-top: 96px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; padding-block: 48px 0; gap: 32px; }
  .hero-stage { align-self: end; }
  .hero-stage { margin: 0; }
  .hero-stage::before { inset-inline: -10% calc(-1 * var(--gap) - 200px); }
  .hero-buy { margin: 0 0 48px; padding: 16px 18px 18px; max-width: 460px; grid-column: 1; grid-row: 2; align-self: start; }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
  .hero-stage { grid-column: 2; grid-row: 1 / span 2; }
  .hero-sub { font-size: 18px; }
  .pdp { grid-template-columns: 1.1fr 1fr; gap: 48px; padding-top: 24px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--bar-h) + 20px); }
  .sticky-buy { display: none; }
  .co { grid-template-columns: 1.15fr 1fr; align-items: start; gap: 32px; }
  .co > header { grid-column: 1 / -1; }
  .co .summary { position: sticky; top: calc(var(--bar-h) + 20px); grid-column: 2; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
