/* ============================================================
   NAHAK — STADIUM WALK
   Premium football jersey store. One design system, all pages.

   1  Tokens            8  Product (locker room)
   2  Base + utilities  9  Cart (dugout)
   3  Buttons/forms    10  Checkout (tunnel)
   4  Header/nav       11  Login (entry gate)
   5  Footer           12  Admin (control room)
   6  Home / hero      13  Thank you (jumbotron)
   7  Product cards    14  Responsive + reduced motion
   ============================================================ */

/* ---------- 1. Tokens ---------- */

:root {
  /* Surfaces — near-black through charcoal */
  --bg:          #0a0b0d;
  --bg-raised:   #101216;
  --surface:     #14161a;
  --surface-2:   #1a1d22;
  --surface-3:   #22262c;

  /* Lines */
  --line:        #23272e;
  --line-soft:   #1b1e23;
  --line-strong: #333841;

  /* Type — --text-3 is 5.3:1 on --surface, the AA floor for small text */
  --text:        #f2f2f0;
  --text-2:      #b0b4bc;
  --text-3:      #868b94;

  /* Accent — restrained matchday gold */
  --gold:        #d8b45c;
  --gold-bright: #e9c97f;
  --gold-dim:    rgba(216, 180, 92, 0.14);
  --gold-line:   rgba(216, 180, 92, 0.32);

  /* Status */
  --success:     #4fa87c;
  --success-dim: rgba(79, 168, 124, 0.14);
  --danger:      #d4574f;
  --danger-dim:  rgba(212, 87, 79, 0.14);
  --warn:        #c9973f;
  --warn-dim:    rgba(201, 151, 63, 0.14);

  /* Shape */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 22px rgba(0,0,0,.42);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.55);

  /* Motion — subtle only */
  --t-fast: 150ms cubic-bezier(.4,0,.2,1);
  --t:      220ms cubic-bezier(.4,0,.2,1);
  --t-slow: 300ms cubic-bezier(.4,0,.2,1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --wrap: 1280px;
  --header-h: 112px;
}

/* ---------- 2. Base + utilities ---------- */

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

* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

::selection { background: var(--gold); color: #14100a; }

.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; }
.mb-3 { margin-bottom: 12px; }
.muted { color: var(--text-3); }
.note-sm { font-size: 12px; color: var(--text-3); line-height: 1.7; }
[hidden] { display: none !important; }

.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;
}

/* Keyboard users get a way past the header */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  padding: 10px 18px;
  background: var(--gold); color: #16120a;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: 13px; font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* Inline SVG icon convention: stroked, currentColor */
.icon { display: inline-flex; width: 18px; height: 18px; flex: none; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }

/* Matchday eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--gold); opacity: .6;
}

/* ---------- 3. Buttons, forms, badges ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--gold); color: #16120a; }
.btn-primary:hover { background: var(--gold-bright); }

.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-3); border-color: var(--line-strong); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }

.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn-block { display: flex; width: 100%; }

.form-group { margin-bottom: 16px; }

.form-label {
  display: block; margin-bottom: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
.form-label-plain { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text-2); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--gold); background: var(--surface);
}
.form-input:disabled { color: var(--text-3); }
.form-textarea { resize: vertical; min-height: 84px; }
.form-select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
                    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.form-select option { background: var(--surface); }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 26px;
  font-size: 14px; cursor: pointer; color: var(--text-2);
}
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-xs);
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge-stock,   .badge-success { background: var(--success-dim); color: var(--success); border-color: rgba(79,168,124,.3); }
.badge-warning { background: var(--warn-dim);    color: var(--warn);    border-color: rgba(201,151,63,.3); }
.badge-out,     .badge-danger  { background: var(--danger-dim);  color: var(--danger);  border-color: rgba(212,87,79,.3); }
.badge-new { background: var(--gold-dim);    color: var(--gold);    border-color: var(--gold-line); }
.badge-neutral { background: var(--surface-3); color: var(--text-2); border-color: var(--line); }

/* Toast (Cart.showToast) */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px;
  padding: 12px 20px;
  background: var(--gold); color: #16120a;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  animation: toast-in var(--t-slow) ease both;
}
.toast.leaving { animation: toast-out var(--t) ease both; }

/* Shown only when the store cannot reach its own backend */
.connection-banner {
  position: fixed; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 16px;
  background: var(--danger); color: #fff;
  font-size: 13px; font-weight: 600; line-height: 1.4;
  text-align: center;
  z-index: 300;
}
@keyframes toast-in  { from { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes toast-out { to   { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- 4. Header / navigation ---------- */

.top-strip {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px;
  background: var(--gold);
  color: #16120a;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}
.top-strip code {
  font-family: var(--mono); font-weight: 700;
  background: rgba(0,0,0,.16); padding: 2px 7px; border-radius: var(--r-xs);
  letter-spacing: .04em;
}

.header-main {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 11, 13, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.header-top-row {
  display: flex; align-items: center; gap: 22px;
  height: 66px;
}

.brand {
  font-size: 22px; font-weight: 800; letter-spacing: .16em;
  color: var(--text); flex: none;
}
.brand span { color: var(--gold); }

.header-search {
  flex: 1; max-width: 460px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  height: 40px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast);
}
.header-search:focus-within { border-color: var(--gold); }
.header-search .icon { color: var(--text-3); }
.header-search input {
  flex: 1; background: none; border: 0; outline: none;
  font-size: 14px; height: 100%;
}
.header-search input::placeholder { color: var(--text-3); }

.header-actions-row {
  display: flex; align-items: center; gap: 22px;
  margin-left: auto;
}
.header-action {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 26px;                 /* keeps the tap target above the WCAG floor */
  font-size: 13px; color: var(--text-2);
  transition: color var(--t-fast);
  white-space: nowrap;
}
.header-action:hover { color: var(--gold); }

/* Count pills. Cart and wishlist each own their own counter element so
   one can never overwrite the other. */
.has-count { position: relative; }
.count-pill {
  position: absolute; top: -7px; right: -11px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #16120a;
  border-radius: 9px;
  font-size: 10px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nav-row {
  display: flex; align-items: center; gap: 30px;
  height: 46px;
  border-top: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-row::-webkit-scrollbar { display: none; }
.nav-row a {
  position: relative;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  transition: color var(--t-fast);
  padding: 4px 0;
}
.nav-row a:hover { color: var(--text); }
.nav-row a.active { color: var(--gold); }
.nav-row a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -12px;
  height: 2px; background: var(--gold);
}
.nav-row a.sale { color: var(--danger); }

.mobile-menu-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

/* Mobile slide-down panel */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t-slow);
}
.mobile-nav.open { max-height: 520px; }
.mobile-nav-inner { padding: 14px 24px 22px; }
.mobile-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a.sale { color: var(--danger); }

/* ---------- 5. Footer ---------- */

.footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 30px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand .brand { display: inline-block; margin-bottom: 14px; }
.footer-brand p { color: var(--text-3); font-size: 13px; max-width: 300px; }

.footer-title {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text);
  margin-bottom: 15px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--text-3); transition: color var(--t-fast); }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { font-size: 12px; color: var(--text-3); }
.password-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.password-form .block-title { margin-bottom: 0; }
.password-form .form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.footer-policies { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.footer-policies a { font-size: 12px; color: var(--text-3); transition: color var(--t-fast); }
.footer-policies a:hover { color: var(--gold); }

/* policy and contact pages — plain, readable, one column */
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 40px 24px 64px; }
.prose { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.prose h2 { font-size: 16px; font-weight: 700; color: var(--text); margin: 30px 0 10px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 1px 6px; border-radius: var(--r-xs); }
.biz-card {
  font-style: normal; line-height: 1.8;
  padding: 16px 18px; margin: 0 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-nav a { font-size: 13px; color: var(--text-3); display: inline-flex; align-items: center; min-height: 24px; }  /* comfortable tap target */
.legal-nav a:hover { color: var(--gold); }

.payment-methods { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-methods span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ---------- 6. Home / hero ---------- */

/* Stadium hero: one static optimised SVG, no video, no parallax */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: #0a0b0d;
  background-image: url("../assets/scene/stadium.svg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,11,13,.95) 0%, rgba(10,11,13,.72) 46%, rgba(10,11,13,.42) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 42%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto;
  padding: 84px 24px 76px;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}

.hero-content .eyebrow { margin-bottom: 20px; }
.hero-content h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-content h1 .gold { color: var(--gold); display: block; }
.hero-content p {
  font-size: 16px; color: var(--text-2);
  max-width: 430px; margin-bottom: 30px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-note {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px;
  background: rgba(216,180,92,.08);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-md);
  font-size: 12px; color: var(--text-2);
}
.hero-note code {
  font-family: var(--mono); font-weight: 700; color: var(--gold);
  letter-spacing: .04em;
}

/* Layered display cards — static, hover only */
.hero-visual { position: relative; min-height: 430px; }
.hero-stack { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

.hero-card {
  position: absolute;
  width: 258px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t), border-color var(--t);
}
/* height:auto is required — the img width/height attributes are presentational
   hints that would otherwise make both dimensions definite and defeat aspect-ratio */
.hero-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.hero-card-label {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-2);
}
.hero-card-label strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }

.hero-card.back-l  { transform: translateX(-142px) rotate(-6deg) scale(.9);  z-index: 1; opacity: .78; }
.hero-card.back-r  { transform: translateX(142px)  rotate(6deg)  scale(.9);  z-index: 1; opacity: .78; }
.hero-card.front   { transform: translateY(-8px); z-index: 2; border-color: var(--line-strong); }

.hero-stack:hover .hero-card.back-l { transform: translateX(-158px) rotate(-7deg) scale(.92); opacity: .9; }
.hero-stack:hover .hero-card.back-r { transform: translateX(158px)  rotate(7deg)  scale(.92); opacity: .9; }
.hero-stack:hover .hero-card.front  { transform: translateY(-16px); }

/* Trust bar */
.trust-bar { border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.trust-bar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; overflow-x: auto; scrollbar-width: none;
}
.trust-bar-inner::-webkit-scrollbar { display: none; }
.trust-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.trust-item .icon { color: var(--gold); }

/* Sections */
.section { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 0; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 28px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px); font-weight: 800;
  letter-spacing: -0.025em; text-transform: uppercase;
}
.section-sub { font-size: 14px; color: var(--text-3); margin-top: 6px; }
.section-link {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 26px;
  transition: gap var(--t-fast);
  white-space: nowrap;
}
.section-link:hover { gap: 11px; }

/* Shop by club */
.club-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.club-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.club-card:hover {
  border-color: var(--gold-line);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.club-card img { width: 62px; height: 62px; }
.club-card span {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  text-align: center; letter-spacing: .02em;
}
.club-card:hover span { color: var(--text); }

/* ---------- 7. Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-image {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-raised);
  overflow: hidden;
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.product-card:hover .product-image img { transform: scale(1.035); }

.product-flags {
  position: absolute; top: 11px; left: 11px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  z-index: 2;
}
.product-flags .badge { backdrop-filter: blur(4px); }

.wishlist-btn {
  position: absolute; top: 11px; right: 11px; z-index: 2;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,11,13,.68);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-2);
  backdrop-filter: blur(4px);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.wishlist-btn:hover { color: var(--gold); border-color: var(--gold-line); }
.wishlist-btn.active { color: var(--gold); border-color: var(--gold-line); }
.wishlist-btn.active svg { fill: var(--gold); }

.product-info { padding: 15px 15px 17px; display: flex; flex-direction: column; flex: 1; }
.product-club {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 6px;
}
.product-name {
  font-size: 14px; font-weight: 600; line-height: 1.35;
  margin-bottom: 4px;
}
.product-name a { display: block; }
.product-card:hover .product-name a { color: var(--gold); }
.product-meta { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }

.product-price-row {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  margin-top: auto;
}
.product-price { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-compare {
  font-size: 13px; color: var(--text-3);
  text-decoration: line-through; font-variant-numeric: tabular-nums;
}
.product-save { font-size: 11px; font-weight: 700; color: var(--success); }

/* Editorial cards */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.featured-card {
  position: relative;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--t);
}
.featured-card:hover { border-color: var(--gold-line); }
.featured-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 35%;
  opacity: .5;
  transition: transform var(--t-slow), opacity var(--t-slow);
}
/* Product-led editorial card: show the whole garment rather than a crop */
.featured-card--product img { object-fit: contain; object-position: 82% center; opacity: .62; }
.featured-card:hover img { transform: scale(1.03); opacity: .62; }
.featured-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,11,13,.95) 8%, rgba(10,11,13,.35) 70%);
}
.featured-body { position: relative; z-index: 1; }
.featured-card h3 {
  font-size: 25px; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; margin: 12px 0 8px;
}
.featured-card p { font-size: 14px; color: var(--text-2); margin-bottom: 18px; max-width: 380px; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
}
.review-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 14px; }
.review-stars .icon { width: 14px; height: 14px; }
.review-stars .icon svg { fill: currentColor; stroke: none; }
.review-text { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 38px; height: 38px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px; font-weight: 700; color: var(--gold);
}
.review-name { font-size: 13px; font-weight: 600; }
.review-location { font-size: 12px; color: var(--text-3); }

/* Honest labelling for seeded/demo content */
.demo-note {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 11px; color: var(--text-3);
  letter-spacing: .04em;
}

/* ---------- 8. Product page (locker room) ---------- */

.product-page-wrap {
  max-width: var(--wrap); margin: 0 auto; padding: 30px 24px 0;
}

.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-3); margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: .5; }

.product-layout {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: start;
}

/* Locker-style gallery frame */
.gallery-wrap { position: sticky; top: calc(var(--header-h) + 20px); }
.main-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 12px;
}
.main-image::before {
  /* locker hanging rail */
  content: ""; position: absolute; top: 0; left: 12%; right: 12%;
  height: 3px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  z-index: 2;
}
.main-image img { width: 100%; height: 100%; object-fit: cover; }

.thumbnail-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumbnail {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t-fast), opacity var(--t-fast);
  opacity: .62;
}
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail:hover { opacity: .9; }
.thumbnail.active { border-color: var(--gold); opacity: 1; }

.product-details h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; margin-bottom: 8px;
}
.product-meta-line { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }

.price-block { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.price-main { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-compare { font-size: 16px; color: var(--text-3); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price-save {
  padding: 4px 9px;
  background: var(--success-dim); color: var(--success);
  border: 1px solid rgba(79,168,124,.3);
  border-radius: var(--r-xs);
  font-size: 11px; font-weight: 700;
}

.rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rating-stars { display: flex; gap: 3px; color: var(--gold); }
.rating-stars .icon { width: 15px; height: 15px; }
.rating-stars .icon svg { fill: currentColor; stroke: none; }
.rating-count { font-size: 13px; color: var(--text-3); }

.status-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }

.selector-block { margin-bottom: 24px; }
.version-label, .size-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 11px; display: block;
}
.version-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.version-option {
  padding: 13px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.version-option:hover { border-color: var(--line-strong); }
.version-option.active { border-color: var(--gold); background: var(--gold-dim); }
.version-option .v-name { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.version-option .v-price { display: block; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.version-option.disabled { opacity: .45; cursor: not-allowed; }
.version-option.active .v-price { color: var(--gold); }

.size-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.size-header .size-label { margin-bottom: 0; }
.size-guide {
  font-size: 12px; color: var(--gold); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  padding: 4px 0;
}
.size-guide:hover { color: var(--gold-bright); }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-option {
  min-width: 50px; height: 44px; padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.size-option:hover { border-color: var(--line-strong); }
.size-option.active { border-color: var(--gold); background: var(--gold-dim); color: var(--gold); }
.size-option.disabled { opacity: .34; cursor: not-allowed; text-decoration: line-through; }

.customize-panel {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 24px;
}
.customize-title {
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 16px;
}
.customize-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.badge-options { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-option {
  padding: 8px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.badge-option:hover { border-color: var(--line-strong); }
.badge-option.active { border-color: var(--gold); background: var(--gold-dim); color: var(--gold); }

.price-preview {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  font-size: 13px; color: var(--text-2);
}
.price-preview strong { font-size: 19px; color: var(--text); font-variant-numeric: tabular-nums; }

.product-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.product-actions .btn-add-cart { flex: 1; }
.btn-wishlist { width: 52px; flex: none; padding: 0; }

.security-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-3);
  margin-bottom: 30px;
}
.security-note .icon { color: var(--success); }

.delivery-list {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 30px;
}
.delivery-item { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; color: var(--text-2); }
.delivery-item .icon { color: var(--gold); margin-top: 2px; }
.delivery-item strong { color: var(--text); font-weight: 600; }

.compare-section { margin-bottom: 30px; }
.compare-title {
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 14px;
}
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.compare-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.compare-card.active { border-color: var(--gold-line); background: var(--gold-dim); }
.compare-card h4 { font-size: 13px; margin-bottom: 9px; }
.compare-card p { font-size: 12px; color: var(--text-3); line-height: 1.7; }
.compare-card .compare-price { margin-top: 9px; font-weight: 700; color: var(--text); font-size: 13px; }

.product-tabs { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 40px; }
.tab-nav { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab-nav button {
  position: relative;
  padding: 0 0 13px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  transition: color var(--t-fast);
}
.tab-nav button:hover { color: var(--text-2); }
.tab-nav button.active { color: var(--gold); }
.tab-nav button.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--gold);
}
.tab-content { display: none; font-size: 14px; color: var(--text-2); line-height: 1.75; }
.tab-content.active { display: block; }
.tab-content ul { padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }

/* Sticky mobile buy bar */
.buy-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10,11,13,.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.buy-bar-price { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.buy-bar-price small { display: block; font-size: 11px; font-weight: 400; color: var(--text-3); }
.buy-bar .btn { flex: 1; }

/* ---------- 9. Cart (dugout) ---------- */

.cart-page-wrap { max-width: 1120px; margin: 0 auto; padding: 34px 24px 0; }

.page-head { margin-bottom: 26px; }
.page-head h1 {
  font-size: clamp(22px, 3vw, 30px); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.025em;
}
.page-head p { font-size: 13px; color: var(--text-3); margin-top: 5px; }

.cart-layout { display: grid; grid-template-columns: 1fr 372px; gap: 28px; align-items: start; }

/* Tactics-board hairlines — decorative only, very low contrast */
.cart-items {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(var(--surface), var(--surface)),
    url("../assets/scene/pitch-lines.svg");
  background-blend-mode: normal;
  overflow: hidden;
}
.cart-item {
  display: grid;
  /* image · details · quantity · price · remove */
  grid-template-columns: 84px 1fr auto auto auto;
  gap: 16px; align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }

.cart-item-image {
  display: block;
  width: 84px; aspect-ratio: 3 / 4;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.cart-item-name a:hover { color: var(--gold); }
.cart-item-meta { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.cart-item-meta .sep { opacity: .4; margin: 0 5px; }
.cart-item-price { font-size: 14px; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }
.cart-item-price span { font-size: 12px; font-weight: 400; color: var(--text-3); }

.cart-item-qty {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.qty-btn {
  width: 34px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 16px;
  transition: background var(--t-fast), color var(--t-fast);
}
.qty-btn:hover { background: var(--surface-3); color: var(--text); }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.cart-item-qty .qty-value {
  min-width: 32px; text-align: center;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}

.cart-item-remove {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.cart-item-remove:hover { color: var(--danger); background: var(--danger-dim); }

.cart-empty { padding: 70px 24px; text-align: center; }
.cart-empty .icon { width: 42px; height: 42px; color: var(--text-3); margin: 0 auto 18px; }
.cart-empty h3 { font-size: 18px; margin-bottom: 8px; }
.cart-empty p { font-size: 14px; color: var(--text-3); margin-bottom: 22px; }

/* Coupon — matchday ticket styling */
.coupon-row { display: flex; gap: 10px; margin-top: 18px; }
.coupon-row .form-input { flex: 1; margin: 0; text-transform: uppercase; letter-spacing: .08em; }
.coupon-msg {
  display: none; align-items: center; gap: 8px;
  margin-top: 11px; padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  border: 1px solid transparent;
}
.coupon-msg.show { display: inline-flex; }
.coupon-msg.valid   { background: var(--success-dim); color: var(--success); border-color: rgba(79,168,124,.3); }
.coupon-msg.invalid { background: var(--danger-dim);  color: var(--danger);  border-color: rgba(212,87,79,.3); }
.coupon-msg.applying { background: var(--surface-2); color: var(--text-3); border-color: var(--line); }
.coupon-remove {
  margin-left: 4px; padding: 2px 8px;
  border: 1px solid currentColor; border-radius: var(--r-xs);
  font-size: 11px; font-weight: 600; color: inherit;
  opacity: .8; transition: opacity var(--t-fast);
}
.coupon-remove:hover { opacity: 1; }

.cart-summary, .checkout-summary {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: sticky; top: 92px;
}
.cart-summary h2, .checkout-summary h2 {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3);
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.summary-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 14px; color: var(--text-2);
  margin-bottom: 11px;
}
.summary-row span:last-child { font-variant-numeric: tabular-nums; color: var(--text); }
.summary-row.discount span:last-child { color: var(--success); }
.summary-divider { height: 1px; background: var(--line); margin: 16px 0; }
.summary-total {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 15px; font-weight: 700;
  margin-bottom: 18px;
}
.summary-total span:last-child { font-size: 24px; font-variant-numeric: tabular-nums; }
.summary-trust {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.summary-trust span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-3);
}
.summary-trust .icon { width: 13px; height: 13px; color: var(--gold); }

.savings-box {
  margin-top: 14px; padding: 11px 14px;
  background: var(--success-dim);
  border: 1px solid rgba(79,168,124,.3);
  border-radius: var(--r-md);
  font-size: 12px; font-weight: 600; color: var(--success);
  text-align: center;
}

/* ---------- 10. Checkout (player tunnel) ---------- */

/* Tunnel = one static radial vignette behind the page. No motion. */
.checkout-body {
  background-color: var(--bg);
  background-image: url("../assets/scene/tunnel.svg");
  background-size: 100% 420px;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.checkout-wrap { max-width: 1120px; margin: 0 auto; padding: 34px 24px 0; }

.checkout-progress { display: flex; gap: 8px; margin-bottom: 24px; }
.progress-step {
  flex: 1; height: 3px;
  background: var(--line);
  border-radius: 2px;
  transition: background var(--t);
}
.progress-step.active { background: var(--gold); }

.checkout-layout { display: grid; grid-template-columns: 1fr 372px; gap: 28px; align-items: start; }

.checkout-section {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
}
.checkout-section h2 {
  display: flex; align-items: center; gap: 11px;
  font-size: 15px; font-weight: 700;
  margin-bottom: 20px;
}
.step-badge {
  width: 24px; height: 24px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  font-size: 12px; font-weight: 700; color: var(--gold);
}

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  text-align: left;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.payment-option:hover { border-color: var(--line-strong); }
.payment-option.active { border-color: var(--gold); background: var(--gold-dim); }
.payment-radio {
  width: 19px; height: 19px; flex: none;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  transition: border-color var(--t-fast);
}
.payment-option.active .payment-radio { border-color: var(--gold); }
.payment-option.active .payment-radio::after {
  content: ""; position: absolute; inset: 3px;
  background: var(--gold); border-radius: 50%;
}
.payment-info { flex: 1; display: block; }
.payment-title { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.payment-sub   { display: block; font-size: 12px; color: var(--text-3); }

/* Scoreboard-style total readout */
.scoreboard {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.scoreboard-label {
  font-size: 10px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-3);
}
.scoreboard-value {
  font-family: var(--mono);
  font-size: 26px; font-weight: 700; color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.checkout-summary .summary-images {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.checkout-summary .thumb {
  display: block;
  width: 46px; aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  overflow: hidden;
  background: var(--bg-raised);
}
.checkout-summary .thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary-count { font-size: 12px; color: var(--text-3); }

.demo-banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--warn-dim);
  border: 1px solid rgba(201,151,63,.3);
  border-radius: var(--r-md);
  font-size: 12px; color: var(--warn);
  line-height: 1.6;
  margin-bottom: 20px;
}
.demo-banner .icon { flex: none; margin-top: 1px; }

/* ---------- 11. Login (stadium entry gate) ---------- */

.auth-page { min-height: 100vh; background: var(--bg); }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

.auth-visual {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 56px;
  background-color: var(--bg-raised);
  background-image: url("../assets/scene/stadium.svg");
  background-size: cover;
  background-position: center;
  border-right: 1px solid var(--line);
}
.auth-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,11,13,.94) 10%, rgba(10,11,13,.45) 75%);
}
.auth-visual-body { position: relative; z-index: 1; }
.auth-visual .brand { display: block; margin-bottom: 22px; font-size: 26px; }
.auth-visual .eyebrow { display: flex; margin-bottom: 14px; }
.auth-visual h2 {
  font-size: 32px; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; margin-bottom: 12px;
}
.auth-visual p { font-size: 14px; color: var(--text-2); max-width: 350px; }

.auth-form-wrap {
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px;
  max-width: 520px; width: 100%; margin: 0 auto;
}
.auth-form-wrap h1 {
  font-size: 27px; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.03em; margin-bottom: 8px;
}
.auth-form-wrap .subtitle { font-size: 14px; color: var(--text-3); margin-bottom: 30px; }

.social-login { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.social-login .btn { justify-content: center; padding: 13px; }

.divider {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.auth-footer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 20px; font-size: 13px; color: var(--text-3);
}
.auth-footer a { color: var(--gold); }
.auth-footer a:hover { color: var(--gold-bright); }

.guest-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-2);
  transition: color var(--t-fast), gap var(--t-fast);
}
.guest-link:hover { color: var(--gold); gap: 12px; }

/* ---------- 12. Admin (stadium control room) ---------- */

.admin-shell { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }

.admin-sidebar {
  border-right: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 22px 0;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .brand { display: block; padding: 0 22px 22px; font-size: 20px; }
.admin-nav-label {
  padding: 16px 22px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3);
}
.admin-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 22px;
  font-size: 13px; color: var(--text-2);
  border-left: 2px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.admin-nav a:hover { background: var(--surface); color: var(--text); }
.admin-nav a.active {
  background: var(--surface); color: var(--gold);
  border-left-color: var(--gold);
}

.admin-main { min-width: 0; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10,11,13,.94);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
}
.admin-topbar h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; }

.admin-page { padding: 28px; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t);
}
.stat-card:hover { border-color: var(--line-strong); }
.stat-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 10px;
}
.stat-value {
  font-size: 27px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.stat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat-head .stat-label { margin-bottom: 14px; }
.stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text-2); background: var(--surface-2);
}
.stat-value.is-warn { color: var(--warn); }
.stat-value.is-danger { color: var(--danger); }
.stat-note { font-size: 12px; color: var(--text-3); text-align: right; }
.admin-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3);
  margin: 0 0 12px;
}
.panel-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.panel-chart { margin-bottom: 24px; }
.panel-chart .panel-head { border-bottom: 0; padding-bottom: 6px; }
.panel-chart .panel-body { padding-top: 0; }

/* revenue trend — single series, the site's accent, recessive axes */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-tick { fill: var(--text-3); font-size: 11px; font-family: var(--mono); }
.chart-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-cross { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.chart-dot { fill: var(--gold); stroke: var(--surface); stroke-width: 2; opacity: 0; transition: opacity var(--t-fast); }
.chart-pt.is-hover .chart-cross, .chart-pt.is-hover .chart-dot { opacity: 1; }
.chart-tip {
  position: absolute; transform: translate(-50%, -100%);
  pointer-events: none; z-index: 5;
  padding: 8px 10px; min-width: 120px;
  background: var(--surface-3); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); box-shadow: var(--shadow-md);
  font-size: 12px; color: var(--text-2);
  display: flex; flex-direction: column; gap: 2px;
}
.chart-tip strong { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }


.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 14px; font-weight: 700; }
.panel-body { padding: 20px; }

.admin-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: start; }
.admin-stack { display: flex; flex-direction: column; gap: 20px; }

.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr { transition: background var(--t-fast); }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-table .mono { font-family: var(--mono); font-size: 12px; }

.list-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.list-row:last-child { border-bottom: 0; }

.empty-state { padding: 44px 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.empty-state .icon { width: 30px; height: 30px; margin: 0 auto 12px; }

/* Empty state that has to span a product grid */
.grid-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.page-empty { padding: 90px 20px; }
.page-empty h1 { font-size: 24px; text-transform: uppercase; margin-bottom: 10px; color: var(--text); }
.page-empty p { max-width: 380px; margin: 0 auto; }

/* Upload page */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.upload-col { display: flex; flex-direction: column; gap: 20px; }

.version-price-grid { display: flex; flex-direction: column; gap: 10px; }
.vp-head, .vp-row {
  display: grid; grid-template-columns: 1.1fr .9fr .9fr .8fr; gap: 8px; align-items: center;
}
.vp-head span {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
.vp-row span { font-size: 14px; font-weight: 600; }
.vp-row .form-input { padding: 9px 11px; }

.dropzone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dropzone {
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px;
  background: var(--bg-raised);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  font-size: 12px; color: var(--text-3);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  overflow: hidden;
  position: relative;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--gold); color: var(--gold); background: var(--surface); }
.dropzone:focus-within { border-color: var(--gold); }
.dropzone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dropzone.has-file { border-style: solid; border-color: var(--gold-line); }

/* Static, not sticky — a sticky bar here floats over the image dropzones */
.upload-actions {
  display: flex; gap: 10px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.upload-actions .btn { flex: 1; }

/* ---------- 13. Thank you (jumbotron) ---------- */

.thanks-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 44px 20px;
  background-color: var(--bg);
  background-image: url("../assets/scene/stadium.svg");
  background-size: cover;
  background-position: center 20%;
  position: relative;
}
.thanks-page::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,13,.82), rgba(10,11,13,.97));
}

.thanks-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 620px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

/* Jumbotron header block */
.jumbotron {
  padding: 26px;
  margin: -40px -40px 30px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--bg);
  border-bottom: 1px solid var(--gold-line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.jumbotron::after {
  /* pixel-board texture, static */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(216,180,92,.10) 1px, transparent 1px);
  background-size: 7px 7px;
  pointer-events: none;
}
.jumbotron-inner { position: relative; z-index: 1; }
.thanks-icon {
  width: 54px; height: 54px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--success-dim);
  border: 1px solid rgba(79,168,124,.4);
  border-radius: 50%;
  color: var(--success);
  animation: pop var(--t-slow) cubic-bezier(.34,1.4,.64,1) both;
}
.thanks-icon .icon { width: 26px; height: 26px; }
@keyframes pop { from { opacity: 0; transform: scale(.75); } }

.jumbotron h1 {
  font-family: var(--mono);
  font-size: clamp(24px, 4.6vw, 36px);
  font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.jumbotron .message { font-size: 14px; color: var(--text-2); }

.order-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 26px;
}
.order-meta-item {
  padding: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
}
.order-meta-item .k {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 6px;
}
.order-meta-item .v {
  font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.block-title {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 12px;
}

.order-lines {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 26px;
  overflow: hidden;
}
.order-line {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.order-line:last-child { border-bottom: 0; }
.order-line img {
  width: 40px; height: auto; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--r-xs); border: 1px solid var(--line);
}
.order-line .ol-body { flex: 1; min-width: 0; }
.order-line .ol-name { font-weight: 600; margin-bottom: 2px; }
.order-line .ol-meta { font-size: 12px; color: var(--text-3); }
.order-line .ol-price { font-weight: 700; font-variant-numeric: tabular-nums; }

.timeline { list-style: none; display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.timeline-item { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 15px; top: 32px; bottom: 0;
  width: 1px; background: var(--line);
}
.timeline-item:last-child::before { display: none; }
.timeline-icon {
  width: 31px; height: 31px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-3);
  z-index: 1;
}
.timeline-icon .icon { width: 15px; height: 15px; }
.timeline-icon.done   { background: var(--success-dim); border-color: rgba(79,168,124,.4); color: var(--success); }
.timeline-icon.active { background: var(--gold-dim);    border-color: var(--gold-line);    color: var(--gold); }
.timeline-content h3 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.timeline-content p  { font-size: 12px; color: var(--text-3); }
.timeline-item.pending .timeline-content h3 { color: var(--text-3); font-weight: 500; }

.thanks-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- 14. Responsive ---------- */

@media (max-width: 1180px) {
  .hero-inner { gap: 32px; }
  .club-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-cols { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 104px; }

  .header-search { max-width: none; }
  .header-actions-row { gap: 16px; }
  .header-action span:not(.icon):not(.count) { display: none; }

  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 60px; }
  .hero-visual { min-height: 330px; order: -1; }
  .hero-content p { max-width: none; }

  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .gallery-wrap { position: static; }

  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }

  .upload-grid { grid-template-columns: 1fr; }

  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static; height: auto;
    border-right: 0; border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }
  .admin-sidebar .brand { padding-bottom: 14px; }
  .admin-nav-label { display: none; }
  .admin-nav { display: flex; overflow-x: auto; gap: 4px; padding: 0 16px; scrollbar-width: none; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav a {
    border-left: 0; border-bottom: 2px solid transparent;
    padding: 9px 12px; white-space: nowrap; border-radius: var(--r-sm);
  }
  .admin-nav a.active { border-left: 0; border-bottom-color: var(--gold); }

  .auth-split { grid-template-columns: 1fr; }
  .auth-visual { min-height: 230px; padding: 32px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-visual h2 { font-size: 24px; }
  .auth-form-wrap { padding: 36px 24px 48px; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }

  .nav-row { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav { display: block; }

  /* Logo + cart + hamburger on row one, search full width on row two */
  .header-top-row { gap: 14px; height: auto; padding: 11px 0; flex-wrap: wrap; }
  .header-search { order: 10; flex-basis: 100%; max-width: none; }
  .header-actions-row { gap: 14px; }
  .header-action.hide-sm { display: none; }

  .section { padding: 52px 24px 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }

  .hero::after { background: linear-gradient(0deg, var(--bg) 4%, rgba(10,11,13,.72) 60%, rgba(10,11,13,.6) 100%); }
  .hero-inner { padding: 44px 24px 52px; }
  .hero-visual { min-height: 290px; }
  .hero-card { width: 200px; }
  .hero-card.back-l { transform: translateX(-102px) rotate(-6deg) scale(.86); }
  .hero-card.back-r { transform: translateX(102px)  rotate(6deg)  scale(.86); }
  /* Drop hover-only transforms on touch */
  .hero-stack:hover .hero-card.back-l,
  .hero-stack:hover .hero-card.back-r,
  .hero-stack:hover .hero-card.front { transform: none; }
  .hero-stack:hover .hero-card.back-l { transform: translateX(-102px) rotate(-6deg) scale(.86); }
  .hero-stack:hover .hero-card.back-r { transform: translateX(102px)  rotate(6deg)  scale(.86); }

  .club-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .club-card { padding: 16px 8px 14px; }
  .club-card img { width: 46px; height: 46px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 12px 12px 14px; }

  .featured-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }

  .version-options { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .thumbnail-row { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .customize-row { grid-template-columns: 1fr; }

  /* Sticky buy bar replaces the inline action row on mobile */
  .buy-bar { display: flex; }
  .product-page-wrap { padding-bottom: 86px; }
  .product-actions { display: none; }

  .cart-item {
    grid-template-columns: 72px 1fr auto;
    grid-template-areas: "img body remove" "img qty price";
    gap: 12px;
  }
  .cart-item-image  { grid-area: img; width: 72px; }
  .cart-item-details{ grid-area: body; }
  .cart-item-qty    { grid-area: qty; }
  .cart-item-remove { grid-area: remove; align-self: start; }
  .cart-item .cart-item-price { grid-area: price; align-self: center; text-align: right; margin-top: 0; }

  .form-row, .form-row-3 { grid-template-columns: 1fr; }

  .footer { margin-top: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .admin-page { padding: 20px 16px; }
  .admin-topbar { flex-wrap: wrap; padding: 14px 16px; }
  .admin-topbar-actions { flex-wrap: wrap; row-gap: 8px; }
  .dropzone-grid { grid-template-columns: 1fr 1fr; }
  .vp-head, .vp-row { grid-template-columns: 1fr 1fr; }
  .vp-head { display: none; }
  .vp-row { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
  .vp-row span { grid-column: 1 / -1; }

  .thanks-card { padding: 26px; }
  .jumbotron { margin: -26px -26px 24px; padding: 22px; }
  .order-meta { grid-template-columns: 1fr; }
  .thanks-actions { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap, .section, .product-page-wrap, .cart-page-wrap, .checkout-wrap { padding-left: 16px; padding-right: 16px; }
  .header-inner { padding: 0 16px; }
  .mobile-nav-inner { padding: 12px 16px 18px; }
  .footer-inner { padding: 40px 16px 24px; }
  .trust-bar-inner { padding: 14px 16px; gap: 20px; }

  .top-strip { font-size: 10px; letter-spacing: .04em; padding: 8px 12px; }
  .brand { font-size: 19px; letter-spacing: .12em; }

  .hero-inner { padding: 34px 16px 44px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .hero-card { width: 168px; }
  .hero-card.back-l, .hero-stack:hover .hero-card.back-l { transform: translateX(-82px) rotate(-6deg) scale(.84); }
  .hero-card.back-r, .hero-stack:hover .hero-card.back-r { transform: translateX(82px)  rotate(6deg)  scale(.84); }

  .club-grid { grid-template-columns: repeat(2, 1fr); }
  .size-option { min-width: 45px; height: 42px; }
  .thumbnail-row { grid-template-columns: repeat(4, 1fr); }
  .checkout-section, .cart-summary, .checkout-summary { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-icon { width: 26px; height: 26px; }
  .stat-value { font-size: 22px; }
  .stat-note { font-size: 11px; }
  .chart { overflow-x: auto; scrollbar-width: thin; }
  .chart svg { min-width: 560px; }
  .thanks-card { padding: 20px; }
  .jumbotron { margin: -20px -20px 20px; }
}

/* Larger screens keep the grid from stretching thin */
@media (min-width: 1440px) {
  :root { --wrap: 1340px; }
}

/* ---------- Reduced motion ---------- */

@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;
  }
  .product-card:hover,
  .club-card:hover,
  .hero-stack:hover .hero-card { transform: none; }
  .product-card:hover .product-image img,
  .featured-card:hover img { transform: none; }
}

/* ============================================================
   15. Shop, filters, account, tracking and admin extensions
   ============================================================ */

/* ---------- Shop ---------- */

.shop-wrap { max-width: var(--wrap); margin: 0 auto; padding: 30px 24px 0; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.shop-search {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 260px; max-width: 520px;
  padding: 0 6px 0 14px; height: 42px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast);
}
.shop-search:focus-within { border-color: var(--gold); }
.shop-search .icon { color: var(--text-3); flex: none; }
.shop-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; height: 100%; font-size: 14px; }
.shop-search input::placeholder { color: var(--text-3); }

.shop-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-toolbar-right .form-select { width: auto; min-width: 168px; }
.shop-count { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.filter-toggle { display: none; }

.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  font-size: 12px; color: var(--text-2);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip .icon { width: 12px; height: 12px; }
.chip-clear { background: none; border-style: dashed; }

.shop-layout { display: grid; grid-template-columns: 232px 1fr; gap: 26px; align-items: start; }

.filter-panel {
  position: sticky; top: 92px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.filter-group { margin-bottom: 16px; }
.filter-group .form-label { margin-bottom: 6px; }
.price-output { float: right; color: var(--gold); letter-spacing: 0; text-transform: none; font-weight: 600; }

/* The visible track is 4px but the control itself is 24px tall so the
   pointer/touch target clears the WCAG minimum. */
.form-range {
  width: 100%; height: 24px; padding: 0; margin: 0;
  appearance: none; -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.form-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; background: var(--line-strong);
}
.form-range::-moz-range-track {
  height: 4px; border-radius: 2px; background: var(--line-strong);
}
.form-range::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin-top: -7px; border-radius: 50%;
  background: var(--gold); border: 0; cursor: pointer;
}
.form-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 0; cursor: pointer;
}

.shop-grid { grid-template-columns: repeat(3, 1fr); padding-bottom: 40px; }

.product-card.is-sold-out .product-image img { opacity: .5; }

/* ---------- Category cards ---------- */

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category-card {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-height: 104px; padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.category-card:hover { border-color: var(--gold-line); background: var(--surface-2); transform: translateY(-3px); }
.category-name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.category-count { font-size: 12px; color: var(--text-3); }

/* ---------- Related products ---------- */

.related-section { padding-left: 0; padding-right: 0; }

/* ---------- Track order ---------- */

.track-wrap { max-width: 900px; margin: 0 auto; padding: 34px 24px 0; }
.track-form { margin-bottom: 18px; }
.track-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}
.track-head h2 { font-size: 22px; text-transform: uppercase; letter-spacing: -0.02em; margin: 6px 0 4px; }
.track-result { padding: 0; }
.track-result > .timeline,
.track-result > .order-lines,
.track-result > .track-grid,
.track-result > .block-title,
.track-result > .track-awb { margin-left: 22px; margin-right: 22px; }
.track-result > .timeline { margin-top: 22px; }
.track-result > .track-grid { padding-bottom: 22px; }
.track-awb {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px;
  padding: 14px 16px; margin-top: 4px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13px;
}
.track-awb .k { color: var(--text-3); }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ---------- Account ---------- */

.account-wrap { max-width: var(--wrap); margin: 0 auto; padding: 34px 24px 0; }
.account-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }

/* ---------- Admin extensions ---------- */

.admin-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.admin-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-toolbar-right .form-select { width: auto; min-width: 168px; }
.admin-topbar-actions .muted { font-size: 12px; }

.admin-table tr.is-selected { background: var(--gold-dim); }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
/* inline stock editor in the admin inventory table */
.stock-input { width: 84px; padding: 6px 8px; font-size: 13px; }

/* Admin image manager: one tile per product view */
.image-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.image-tile {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-raised); padding: 10px; text-align: center;
}
.image-tile img {
  width: 100%; aspect-ratio: 9 / 10; object-fit: cover;
  border-radius: var(--r-sm); background: var(--bg);
}
.image-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.image-tile-name { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.image-tile-actions { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.stock-low { color: var(--warn); font-weight: 700; }
.stock-out { color: var(--danger); font-weight: 700; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fulfil-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: center; }

/* Fieldsets carry no browser chrome — the legend is styled as a form label */
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
fieldset legend { padding: 0; }

.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

.stock-grid { display: flex; flex-direction: column; gap: 8px; }
.stock-head, .stock-row {
  display: grid; grid-template-columns: 74px repeat(5, minmax(0, 1fr)); gap: 6px; align-items: center;
}
.stock-head span {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); text-align: center;
}
.stock-head span:first-child { text-align: left; }
.stock-row > span { font-size: 13px; font-weight: 600; }
.stock-row .form-input { padding: 8px 6px; text-align: center; }

.art-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.art-preview img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-raised);
}

.coupon-note {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 10px 14px;
  background: var(--warn-dim); color: var(--warn);
  border: 1px solid rgba(201,151,63,.3);
  border-radius: var(--r-md);
  font-size: 13px;
}
.cart-item-warn {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; font-size: 12px; color: var(--warn);
}

.timeline-item.cancelled .timeline-content h3 { color: var(--danger); }
.timeline-icon.cancelled { background: var(--danger-dim); border-color: rgba(212,87,79,.4); color: var(--danger); }

.toast-error { background: var(--danger); color: #fff; }

/* ---------- Responsive for the new surfaces ---------- */

@media (max-width: 1180px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .account-layout { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .fulfil-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; display: none; order: -1; }
  .filter-panel.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .track-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .shop-wrap, .track-wrap, .account-wrap { padding: 24px 24px 0; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-toolbar-right { justify-content: space-between; }
  .shop-toolbar-right .form-select { flex: 1; min-width: 0; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-toolbar-right { justify-content: space-between; }
  .admin-toolbar-right .form-select { flex: 1; min-width: 0; }
  .fulfil-row { grid-template-columns: 1fr; }
  .stock-head, .stock-row { grid-template-columns: 56px repeat(5, minmax(0, 1fr)); gap: 4px; }
  .stock-row .form-input { padding: 7px 2px; font-size: 13px; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .track-result > .timeline,
  .track-result > .order-lines,
  .track-result > .track-grid,
  .track-result > .block-title,
  .track-result > .track-awb { margin-left: 18px; margin-right: 18px; }
}

@media (max-width: 480px) {
  .shop-wrap, .track-wrap, .account-wrap { padding-left: 16px; padding-right: 16px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .stock-head, .stock-row { grid-template-columns: 46px repeat(5, minmax(0, 1fr)); }
  .track-head { padding: 18px 18px 14px; }
}

/* ---------- PIN code auto-fill ---------- */

.address-row .form-group { position: relative; }

.form-label .field-hint {
  margin-left: 6px;
  font-size: 10px; font-weight: 500; letter-spacing: .04em;
  text-transform: none; color: var(--text-3);
}

.autofill-tag {
  margin-left: 6px; padding: 2px 6px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-xs);
  font-size: 9px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold);
}

.field-status {
  margin-top: 7px;
  font-size: 12px; line-height: 1.5;
  color: var(--text-3);
}
.field-status.is-loading { color: var(--text-2); }
.field-status.is-ok { color: var(--success); }
.field-status.is-error { color: var(--danger); }

/* The lookup only ever suggests — both fields stay fully editable */
.form-input[data-autofilled="true"],
.form-select[data-autofilled="true"] { border-color: var(--gold-line); }
