/* ==========================================================================
   FME — Football Made Easy · "Floodlight" design system
   Shared by every customer-facing page. Loaded AFTER each page's own <style>
   so the tokens and components here win.
   --------------------------------------------------------------------------
   Night (default)  pitch-black #0D0E0B · chalk #F2F0E8 · volt #D4FF3D
   Day  (light)     paper #F3F1EA · ink #12130F · Eagles green #0B6B3A
   Type             Big Shoulders Display / Archivo / Archivo Narrow / JetBrains Mono
   ========================================================================== */

:root {
  --font-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-label: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Night palette (names kept from the original code so every page picks them up) */
  --green: #D4FF3D;          /* brand accent: buttons, highlights */
  --green-rgb: 212,255,61;
  --dark-green: #C2EE24;     /* accent hover */
  --on-accent: #0D0E0B;      /* text sitting on the accent */
  --black: #0D0E0B;          /* page background */
  --black-rgb: 13,14,11;
  --dark: #121310;           /* alt section background */
  --card: #181A14;           /* surfaces */
  --card-rgb: 24,26,20;
  --bg2: #1E2119;            /* inputs, wells */
  --bg: #121310;
  --border: #2B2E25;
  --border-2: #3D4134;
  --white: #F2F0E8;          /* main text */
  --white-rgb: 242,240,232;
  --muted: #A4A698;          /* secondary text — 7.5:1 on background */
  --muted2: #C3C5B7;
  --accent: #FF5A36;         /* card-red: sale tags */
  --accent-rgb: 255,90,54;
  --red: #FF5A36;
  --red-rgb: 255,90,54;
  --amber: #FFB547;
  --amber-rgb: 255,181,71;
  --wa: #25D366;
  --kit: #E9E6DC;            /* jersey placeholder backdrop */

  --radius: 6px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --nav-h: 72px;
  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1320px;
  color-scheme: dark;
}

[data-theme="light"] {
  --green: #0B6B3A;
  --green-rgb: 11,107,58;
  --dark-green: #08552E;
  --on-accent: #F7F5EE;
  --black: #F3F1EA;
  --black-rgb: 243,241,234;
  --dark: #EAE7DD;
  --card: #FFFFFF;
  --card-rgb: 255,255,255;
  --bg2: #F7F5EF;
  --bg: #F3F1EA;
  --border: #DAD6C9;
  --border-2: #C3BEAF;
  --white: #12130F;
  --white-rgb: 18,19,15;
  --muted: #5A5C50;
  --muted2: #3F4137;
  --accent: #D33A1C;
  --accent-rgb: 211,58,28;
  --red: #C4321A;
  --red-rgb: 196,50,26;
  --amber: #8A5200;
  --amber-rgb: 138,82,0;
  --kit: #E4E0D4;
  color-scheme: light;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}
body::-webkit-scrollbar, ::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
::selection { background: var(--green); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
a, button, label, .product-img-wrap { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
img { max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--green); color: var(--on-accent); padding: 10px 16px; font-family: var(--font-label); font-weight: 700; text-decoration: none; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* Film grain — gives the flat dark a printed-programme texture */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="light"] body::after { opacity: .05; mix-blend-mode: multiply; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.fme-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--radius); border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.fme-btn:active { transform: scale(.98); }
.fme-btn svg { flex-shrink: 0; }
.fme-btn--primary { background: var(--green); color: var(--on-accent); }
.fme-btn--primary:hover { background: var(--dark-green); }
.fme-btn--ghost { background: transparent; color: var(--white); border-color: var(--border-2); }
.fme-btn--ghost:hover { border-color: var(--white); }
.fme-btn--wa { background: var(--wa); color: #0B1F12; }
.fme-btn--wa:hover { background: #1FBE5A; }
.fme-btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; }

/* ---------- Nav ---------- */
nav.fme-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 36px;
  background: rgba(var(--black-rgb), .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none; -webkit-backdrop-filter: none; /* keep off: breaks Paystack iframe stacking */
}
.fme-brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; padding: 8px 0; }
.fme-brand img { height: 24px; width: auto; display: block; }
[data-theme="light"] .fme-brand img, [data-theme="light"] .fme-footer-logo { filter: invert(1); }
.fme-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.fme-links a {
  position: relative; display: inline-block; padding: 8px 0;
  font-family: var(--font-label); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.fme-links a:hover, .fme-links a[aria-current="page"] { color: var(--white); }
.fme-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.fme-links a:hover::after, .fme-links a[aria-current="page"]::after { transform: scaleX(1); }
.fme-links a.is-sale { color: var(--accent); }
.fme-nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.fme-icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 50%; color: var(--white);
  text-decoration: none; transition: border-color .2s, color .2s, background .2s; position: relative; padding: 0;
}
.fme-icon-btn:hover { border-color: var(--white); }
.fme-icon-btn svg { width: 19px; height: 19px; }
.fme-icon-btn.is-wa:hover { border-color: var(--wa); color: var(--wa); }
.fme-theme .i-sun { display: none; }
[data-theme="light"] .fme-theme .i-sun { display: block; }
[data-theme="light"] .fme-theme .i-moon { display: none; }
.fme-cart {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 18px; margin-left: 4px;
  background: var(--green); color: var(--on-accent); border-radius: 44px; text-decoration: none;
  font-family: var(--font-label); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s;
}
.fme-cart:hover { background: var(--dark-green); }
.fme-cart .cart-count, .fme-cart .fme-count {
  min-width: 28px; height: 28px; padding: 0 6px; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--on-accent); color: var(--green); font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0; width: auto;
}
.fme-burger { display: none; }
.fme-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: var(--black);
  padding: 28px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.fme-menu.open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s var(--ease), transform .25s var(--ease); }
.fme-menu a.m-link {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 800; font-size: 34px; text-transform: uppercase; letter-spacing: .01em;
  color: var(--white); text-decoration: none;
}
.fme-menu a.m-link span { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.fme-menu .m-small { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 22px 0 26px; }
.fme-menu .m-small a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 0; }
body.menu-open { overflow: hidden; }

@media (max-width: 1080px) { .fme-links { gap: 20px; } nav.fme-nav { gap: 24px; } }
@media (max-width: 960px) {
  .fme-links { display: none; }
  .fme-burger { display: inline-flex; }
  .fme-nav-right .is-wa { display: none; }
}
@media (max-width: 420px) {
  .fme-cart .fme-cart-label { display: none; }
  .fme-cart { padding: 0 8px; }
  .fme-nav-right { gap: 6px; }
}

/* ---------- Footer ---------- */
footer.fme-footer {
  position: relative; background: var(--dark); border-top: 1px solid var(--border);
  padding: 0 var(--gutter) 28px; display: block; margin-top: 0;
}
.fme-footer-band {
  display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-label); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.fme-footer-band span { display: inline-flex; align-items: center; gap: 10px; }
.fme-footer-band svg { color: var(--green); width: 18px; height: 18px; }
.fme-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 48px; }
.fme-footer-logo { height: 54px; width: auto; display: block; }
.fme-footer-brand p { color: var(--muted); font-size: 15px; line-height: 1.65; margin-top: 18px; max-width: 34ch; }
.fme-socials { display: flex; gap: 10px; margin-top: 22px; }
.fme-socials a { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--white); transition: border-color .2s, color .2s; }
.fme-socials a:hover { border-color: var(--green); color: var(--green); }
.fme-socials svg { width: 18px; height: 18px; }
.fme-footer h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.fme-footer ul { list-style: none; margin: 0; padding: 0; }
.fme-footer li { margin-bottom: 4px; }
.fme-footer li a { display: inline-block; padding: 6px 0; color: var(--white); text-decoration: none; font-size: 15px; transition: color .2s; }
.fme-footer li a:hover { color: var(--green); }
.fme-footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.fme-footer-bottom .pay { font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 900px) { .fme-footer-grid { grid-template-columns: 1fr 1fr; } .fme-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .fme-footer-band { font-size: 13px; } }

/* ---------- Shared page furniture (overrides the per-page styles) ---------- */
body .page-wrap { padding-top: var(--nav-h); }
body .page-hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border); background: var(--black);
}
/* halfway-line + centre-circle motif */
body .page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 100% 50%, transparent 0 219px, rgba(var(--white-rgb), .07) 220px 221px, transparent 222px),
    radial-gradient(circle at 100% 50%, rgba(var(--white-rgb), .09) 0 3px, transparent 4px);
}
body .page-hero::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: rgba(var(--white-rgb), .07); }
body .breadcrumb, body .page-hero .breadcrumb {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px; position: relative;
}
body .breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-2); }
body .breadcrumb a:hover { color: var(--white); }
body h1.hero-title, body .page-hero h1, body .track-hero h1, body .guide-wrap h1 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(52px, 8vw, 112px); line-height: .88; letter-spacing: -.005em; color: var(--white); position: relative;
}
body h1.hero-title br + *, body h1.hero-title em { color: var(--green); font-style: normal; }
body .hero-sub, body .page-hero p {
  font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--muted); margin-top: 20px; max-width: 56ch; position: relative;
}
body .section-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--green);
  margin-bottom: 14px;
}
body .section-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: .92; }
body .body-wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
body .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
body .card:hover { border-color: var(--border-2); transform: none; box-shadow: none; }
body .btn-green, body .btn-primary, body .form-submit, body .track-btn, body .nav-cta {
  background: var(--green); color: var(--on-accent); border: none; border-radius: var(--radius);
  font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: none;
}
body .btn-green:hover, body .btn-primary:hover, body .form-submit:hover, body .track-btn:hover { background: var(--dark-green); transform: none; box-shadow: none; }
body .btn-ghost { border: 1.5px solid var(--border-2); color: var(--white); border-radius: var(--radius); font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: .06em; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
body .btn-ghost:hover { border-color: var(--white); color: var(--white); transform: none; }

/* inputs everywhere */
body input:not([type=radio]):not([type=checkbox]), body select, body textarea { font-family: var(--font-body); font-size: 16px; }
body .form-group input, body .form-group select, body .form-group textarea, body .order-input, body .co-input, body .co-inp, body .promo-input, body .cta-input, body .notify-input {
  background: var(--bg2); border: 1px solid var(--border); color: var(--white); border-radius: var(--radius); min-height: 48px;
}
body .form-group input:focus, body .form-group select:focus, body .form-group textarea:focus, body .order-input:focus, body .co-input:focus, body .co-inp:focus, body .promo-input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(var(--green-rgb), .18); }
body ::placeholder { color: var(--muted); opacity: .8; }
body label, body .form-group label, body .co-label { color: var(--muted); }

/* filter chips */
body .filter-btn, body .cat-btn {
  min-height: 40px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 40px;
  font-family: var(--font-label); font-weight: 600; font-size: 14px; letter-spacing: .05em; text-transform: uppercase;
  transition: border-color .2s, color .2s, background .2s;
}
body .filter-btn:hover, body .cat-btn:hover { border-color: var(--border-2); color: var(--white); background: transparent; }
body .filter-btn.active, body .cat-btn.active { background: var(--white); border-color: var(--white); color: var(--black); }

/* ---------- Product cards (shared by home, league, new-in, sale) ---------- */
body .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
body .product-card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
body .product-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); }
body .product-card.out-of-stock { opacity: 1; }
body .product-card.out-of-stock .product-img-wrap > * { filter: grayscale(.85); opacity: .55; }
body .product-img-wrap {
  position: relative; height: auto; aspect-ratio: 4 / 4.2; padding: 0; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--kit);
}
body .product-img-wrap::after { content: none; }
body .product-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .5s var(--ease); }
body .product-card:hover .product-img-wrap img { transform: scale(1.04); }
body .product-img-wrap .p-jersey-svg, body .product-img-wrap svg.fme-kit { width: 62%; height: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.18)); animation: none !important; transition: transform .5s var(--ease); }
body .product-card:hover .product-img-wrap svg.fme-kit { transform: translateY(-4px) rotate(-1.5deg); }
body .product-badge {
  position: absolute; top: 12px; left: 12px; right: auto; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 4px; border: none; line-height: 1;
}
body .badge-new { background: var(--green); color: var(--on-accent); }
body .badge-hot { background: #12130F; color: #F2F0E8; }
body .badge-sale { background: var(--accent); color: #fff; }
body .low-stock-badge { display: none; }
body .wishlist-btn, body .qv-wish-btn { display: none !important; }
body .product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
body .product-league { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
body .product-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 28px; line-height: .95; color: var(--white); margin-top: 6px; letter-spacing: .005em; }
body .product-rating { display: none; }
body .product-rating.has-reviews { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; }
body .p-stars { color: var(--amber); font-size: 12px; }
body .product-desc { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
body .product-footer { margin-top: auto; padding-top: 16px; border-top: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body .product-price-wrap { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
body .product-price { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--white); letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-transform: none; }
body .product-old { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-decoration: line-through; }
body .product-disc { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent); background: rgba(var(--accent-rgb), .12); padding: 3px 6px; border-radius: 4px; }
body .quick-view-btn { display: none; }
body .add-cart-btn {
  flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 40px; border: 1.5px solid var(--white); background: transparent; color: var(--white);
  font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: background .2s, color .2s;
}
body .add-cart-btn:hover { background: var(--white); color: var(--black); transform: none; }
body .add-cart-btn.disabled { border-color: var(--border); color: var(--muted); background: transparent; cursor: not-allowed; }
body .results-count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
body .results-count span { color: var(--white); }
@media (max-width: 560px) {
  body .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  body .product-body { padding: 12px 12px 14px; }
  body .product-title { font-size: 22px; }
  body .product-desc { display: none; }
  body .product-footer { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; }
  body .product-price { font-size: 16px; }
  body .add-cart-btn { width: 100%; }
}

/* empty / loading */
.fme-skeleton { border-radius: var(--radius-lg); background: linear-gradient(100deg, var(--card) 30%, var(--bg2) 50%, var(--card) 70%); background-size: 300% 100%; animation: fmeShimmer 1.4s linear infinite; aspect-ratio: 4 / 5.6; }
@keyframes fmeShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.fme-empty { grid-column: 1 / -1; text-align: left; padding: 56px 0; border-top: 1px solid var(--border); }
.fme-empty h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4vw, 48px); line-height: .95; }
.fme-empty p { color: var(--muted); margin: 12px 0 24px; max-width: 52ch; line-height: 1.6; }
.fme-empty .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
body .toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1000; display: flex; align-items: center; gap: 10px;
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
  background: var(--white); color: var(--black); border: none; border-radius: 40px; padding: 14px 22px;
  font-family: var(--font-label); font-weight: 600; font-size: 15px; letter-spacing: .02em; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5);
  bottom: 24px; max-width: calc(100vw - 32px);
}
body .toast .toast-icon { color: inherit; }
body .toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Quick view, cart drawer, checkout (home page) ---------- */
#cartDrawer { background: var(--black) !important; border-left: 1px solid var(--border) !important; }
#cartDrawer > div:first-child { border-color: var(--border) !important; }
#cartDrawer > div:first-child > span:first-child { font-family: var(--font-display) !important; font-weight: 800; font-size: 26px !important; color: var(--white) !important; letter-spacing: .02em !important; }
#cartDrawer > div:first-child button, #checkoutInner button[onclick="closeCheckout()"]:not(.co-btn-back) { color: var(--white) !important; }
#cartDrawer .qty-btn, #cartDrawer .cart-remove { color: var(--white); }
#cartDrawerFooter { border-color: var(--border) !important; }
#cartOverlay { backdrop-filter: none !important; background: rgba(0,0,0,.55) !important; }
#quickViewModal, #checkoutModal { background: rgba(0,0,0,.7) !important; }
#quickViewModal > div, #checkoutModal > div { background: var(--black) !important; border-color: var(--border) !important; border-radius: var(--radius-lg) !important; }
body .cart-item { border-color: var(--border); }
body .cart-item:hover { background: var(--card); }
body .cart-item-name { font-family: var(--font-body); }
body .checkout-btn, body .qv-cart-btn, body .co-btn-next, body .co-btn-confirm {
  background: var(--green); color: var(--on-accent); border-radius: var(--radius); min-height: 52px;
  font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: .06em;
}
body .checkout-btn:hover, body .qv-cart-btn:hover, body .co-btn-next:hover, body .co-btn-confirm:hover { background: var(--dark-green); transform: none; box-shadow: none; }
body .continue-btn, body .co-btn-back { min-height: 44px; border-radius: var(--radius); border-color: var(--border); color: var(--muted); }
body .qv-jersey-display { background: var(--kit) !important; border-radius: 0 !important; min-height: 420px; }
body .qv-jersey-wrap { animation: none; }
body .qv-jersey-wrap img { width: 100% !important; height: 100% !important; max-height: 520px; object-fit: contain; filter: none !important; }
body .qv-info { padding: 32px; border-color: var(--border); }
body .qv-league { font-family: var(--font-mono); color: var(--muted); }
body .qv-name { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: .005em; color: var(--white); line-height: .92; }
body .qv-price { font-family: var(--font-mono); font-weight: 700; font-size: 24px; color: var(--white); letter-spacing: -.01em; }
body .qv-rating { display: none; }
body .qv-feat { background: transparent; border-color: var(--border); color: var(--muted2); font-family: var(--font-mono); font-size: 11px; }
body .size-btn { min-width: 52px; height: 48px; border-radius: var(--radius); background: transparent; border-color: var(--border-2); font-family: var(--font-mono); font-size: 14px; }
body .size-btn.active { background: var(--white); color: var(--black); border-color: var(--white); }
body .size-btn:hover:not(.out) { border-color: var(--white); }
body .stock-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
body .qv-acc-hdr { font-family: var(--font-label); font-size: 14px; color: var(--white); min-height: 48px; }
body .qv-acc-hdr:hover, body .qv-acc-hdr.open { color: var(--green); }
body .qv-acc-body { color: var(--muted); font-size: 14px; }
body .qv-print-cta { background: transparent; border-color: var(--border); color: var(--muted); font-size: 14px; }
body .qv-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--black); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 760px) {
  #quickViewContent { grid-template-columns: 1fr !important; position: relative; }
  body .qv-jersey-display { min-height: 300px; }
  body .qv-info { border-left: none !important; border-top: 1px solid var(--border); max-height: none; padding: 22px; }
  #quickViewModal, #checkoutModal { padding: 0 !important; align-items: flex-end !important; }
  #quickViewModal > div, #checkoutModal > div { max-width: 100vw !important; width: 100% !important; max-height: 92vh !important; border-radius: 16px 16px 0 0 !important; }
  body .co-form-row { grid-template-columns: 1fr; gap: 0; }
}
body .co-step-num { font-family: var(--font-mono); }
body .co-section-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: .01em; }
body .delivery-opt, body .pay-opt { background: var(--card); border-color: var(--border); min-height: 56px; }
body .delivery-opt.active, body .pay-opt.active { border-color: var(--green); background: rgba(var(--green-rgb), .06); }
body .delivery-opt.is-disabled { opacity: .45; pointer-events: none; }
body .pay-icon, body .pay-detail-icon { display: inline-flex; color: var(--green); }
body .payment-details, body .review-items, body .review-delivery-info, body .success-summary { background: var(--card); border-color: var(--border); }
body .order-totals { background: transparent; border-color: var(--border); }
body .success-icon { background: var(--green); color: var(--on-accent); box-shadow: none; }
body .success-title { font-family: var(--font-display); font-weight: 800; }

/* in-text icons used to replace emoji */
.fme-i { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; flex-shrink: 0; }

/* ---------- Light-mode fixes for hard-coded dark wells ---------- */
[data-theme="light"] .pay-detail [style*="rgba(0,0,0,.35)"], [data-theme="light"] [style*="background:rgba(0,0,0,.35)"] { background: var(--bg2) !important; }
[data-theme="light"] .badge-hot { background: #12130F; color: #F2F0E8; }

/* ---------- Content pages: one left-aligned reading column ---------- */
body .body-wrap, body .guide-wrap, body .track-hero, body .track-body {
  box-sizing: content-box; max-width: 980px; margin-left: 0; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
body .body-wrap.wide { max-width: 1180px; }
body .track-hero { padding-top: clamp(48px, 7vw, 96px); }
body .guide-wrap { padding-top: clamp(48px, 7vw, 96px); }
body .guide-wrap > p, body .track-hero p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 56ch; }
body .auth-hero-icon { display: none; }
body table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }
body td { font-variant-numeric: tabular-nums; }

/* drawer/overlay open states must beat their inline styles */
#cartDrawer.open { transform: translateX(0) !important; }
#cartOverlay.open { opacity: 1 !important; pointer-events: all !important; }
#checkoutModal.open { display: flex !important; }
#quickViewContent { position: relative; }

/* cart page */
body .item-jersey { width: 100%; max-width: 80px; height: auto; aspect-ratio: 1; background: var(--kit); border-radius: var(--radius); }
body .item-jersey svg { width: 82%; height: auto; }
body .item-jersey img { padding: 0; object-fit: cover; }
body .item-price { font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--white); text-transform: none; }
body .item-team { font-family: var(--font-display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; }
body .qty-btn { min-width: 36px; min-height: 36px; }
body .toast { width: max-content; text-align: center; }
body .badge-sale { color: #0D0E0B; }
[data-theme="light"] .badge-sale { color: #fff; }
@media (max-width: 700px) {
  body .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}

/* ==========================================================================
   Fit every screen — phones (320px+), tablets, laptops, large monitors
   ========================================================================== */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
img, video, canvas, iframe { max-width: 100%; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
p, li, dd, td, th, label, small { overflow-wrap: break-word; }
table { max-width: 100%; }
body .toast { max-width: calc(100vw - 32px); white-space: normal; }
body .fme-nav { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* Phones: no zoom-on-focus in iOS, comfortable tap targets */
@media (max-width: 760px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
  .fme-btn, .add-cart-btn, .filter-btn, .cat-btn { min-height: 44px; }
}

/* Very small phones (iPhone SE, Galaxy Fold folded) */
@media (max-width: 380px) {
  :root { --gutter: 14px; }
  body .product-grid { gap: 8px; }
  body .product-body { padding: 12px; }
  body .product-title { font-size: 18px; }
  body .product-footer { flex-wrap: wrap; gap: 8px; }
  body .product-footer .add-cart-btn { width: 100%; }
}
