:root {
  /* palette taken from the HaJerseys logo: navy outline + blue → green → yellow → orange */
  --ink: #0b1f3a;
  --ink-2: #13294b;
  --paper: #f3f6fb;
  --card: #ffffff;
  --line: #dfe5ee;
  --muted: #5f6b7a;
  --blue: #1e88e5;
  --sky: #29b6f6;
  --green: #43a047;
  --yellow: #fdd835;
  --orange: #fb8c00;
  --grad: linear-gradient(90deg, #1e88e5, #29b6f6 28%, #7cb342 52%, #fdd835 74%, #fb8c00);
  --accent: #ffa000;
  --accent-ink: #0b1f3a;
  --red: #e5484d;
  --pink: #ff4fa3;
  --r: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; }
svg { width: 1.25em; height: 1.25em; flex: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.01em; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
section.wrap { margin-top: 56px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-accent { background: linear-gradient(135deg, #ffc93c, #fb8c00); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 0 0 4px rgba(251,140,0,.28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn.full { width: 100%; }
[dir="rtl"] .btn svg, [dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; }
.icon-btn:hover { background: rgba(0,0,0,.06); }
.only-m { display: none; }

/* ---------- header ---------- */
#header { position: sticky; top: 0; z-index: 50; background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(11,31,58,.06); }
.topbar { background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 7px 16px; border-bottom: 3px solid transparent; border-image: var(--grad) 1; }
.hdr { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 58px; width: auto; display: block; filter: drop-shadow(0 2px 3px rgba(11,31,58,.12)); }
.search { flex: 1; max-width: 460px; margin-inline-start: auto; display: flex; align-items: center; gap: 8px; background: #f1f4f9; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; height: 44px; }
.search:focus-within { border-color: var(--blue); background: #fff; }
.search span { color: var(--muted); display: flex; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 15px; }
.search input::placeholder { color: #8994a3; }
.hdr-actions { display: flex; align-items: center; gap: 6px; }
.hdr .icon-btn:hover, .lang-btn:hover { background: rgba(11,31,58,.06); }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.nav { background: var(--ink); color: #fff; }
.nav-inner { display: flex; align-items: center; gap: 4px; height: 48px; }
.nav a, .nav-more > button { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: #d3dceb; white-space: nowrap; }
.nav a:hover, .nav-more > button:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a.on { color: var(--ink); background: var(--accent); }
.nav .retro-link { color: var(--yellow); }
.nav-more { position: relative; margin-inline-start: auto; }
.nav-drop { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 190px; background: #fff; color: var(--ink); border-radius: 14px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.25); display: none; z-index: 5; }
.nav-more.open .nav-drop { display: block; }
.nav-drop a { display: block; color: var(--ink); padding: 10px 12px; }
.nav-drop a:hover { background: var(--paper); color: var(--ink); }

/* ---------- crests ---------- */
.crest { --s: 40px; position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; }
.crest img { width: 76%; height: 76%; object-fit: contain; }
.crest.flag img { width: 100%; height: 100%; object-fit: cover; }
.crest b { display: none; font-weight: 800; font-size: calc(var(--s) * .34); color: #fff; letter-spacing: -.02em; }
.crest.noimg { background: var(--c); }
.crest.noimg b { display: grid; place-items: center; }
.crest.noimg b svg { width: 60%; height: 60%; margin: auto; }
.crest.xs { --s: 22px; } .crest.sm { --s: 32px; } .crest.lg { --s: 72px; } .crest.xl { --s: 96px; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1100px 520px at 88% -10%, rgba(30,136,229,.55) 0%, transparent 60%), radial-gradient(700px 380px at 60% 110%, rgba(124,179,66,.28) 0%, transparent 60%), radial-gradient(800px 420px at -5% 100%, rgba(251,140,0,.32) 0%, transparent 60%), var(--ink); color: #fff; overflow: hidden; }
.hero-inner { width: min(1240px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding: 64px 0 40px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); border: 1px solid rgba(200,240,74,.4); padding: 6px 12px; border-radius: 99px; margin-bottom: 20px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 900; letter-spacing: -.03em; }
.hero p { font-size: 17px; color: #b8beb9; margin: 20px 0 28px; max-width: 520px; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; height: 430px; }
.hero-shirt { position: absolute; width: 52%; aspect-ratio: 4/5; background: #fff; border-radius: 22px; padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.45); transition: transform .3s; display: flex; flex-direction: column; }
.hero-shirt img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.hero-shirt span { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 14px; padding-top: 8px; }
.hero-shirt.s0 { inset-inline-start: 0; top: 40px; transform: rotate(-7deg); z-index: 2; }
.hero-shirt.s1 { inset-inline-start: 25%; top: 0; z-index: 3; }
.hero-shirt.s2 { inset-inline-end: 0; top: 50px; transform: rotate(7deg); z-index: 1; }
[dir="rtl"] .hero-shirt.s0 { transform: rotate(7deg); }
[dir="rtl"] .hero-shirt.s2 { transform: rotate(-7deg); }
.hero-shirt:hover { transform: translateY(-8px) rotate(0) !important; z-index: 4; }
.price-strip { width: min(1240px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.price-strip > div { display: flex; align-items: center; gap: 10px; padding: 20px 8px; color: #b8beb9; font-size: 14px; }
.price-strip svg { color: var(--accent); width: 22px; height: 22px; }
.price-strip b { color: #fff; font-size: 17px; margin-inline-start: auto; }
.price-strip > div + div { border-inline-start: 1px solid rgba(255,255,255,.12); padding-inline-start: 20px; }

/* ---------- sections ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

.team-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.team-row.compact { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.team-row.compact .crest.lg { --s: 56px; }
.team-tile { background: var(--card); border-radius: var(--r); padding: 18px 8px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 600; font-size: 14px; border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.team-tile:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 10px 24px rgba(0,0,0,.08); }

.league-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.league-tile { position: relative; overflow: hidden; border-radius: var(--r); padding: 20px; min-height: 150px; background: var(--lc); color: #fff; display: flex; gap: 14px; align-items: center; transition: transform .2s; }
.league-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 55%); pointer-events: none; }
.league-tile:hover { transform: translateY(-3px); }
.lt-patch { width: 64px; flex: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.lt-patch svg, .ph-patch svg { width: 100%; height: auto; display: block; }
.lt-patch .patch-img, .ph-patch .patch-img { width: 100%; aspect-ratio: 5/6; object-fit: contain; background: #fff; border-radius: 12px; padding: 5px; }
.lt-copy h3 { font-size: 20px; font-weight: 800; }
.lt-crests { display: flex; margin-top: 12px; }
.lt-crests .crest { border: 2px solid var(--lc); }
.lt-crests .crest + .crest { margin-inline-start: -8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card { position: relative; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.card:hover { transform: scale(1.05); box-shadow: 0 18px 40px rgba(0,0,0,.14); z-index: 2; }
.card-media { position: relative; aspect-ratio: 1; background: #fafaf7; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card-note { font-size: 11.5px; line-height: 1.35; color: #8a5a00; background: #fdf3d7; border-radius: 8px; padding: 4px 8px; font-weight: 600; }
.pdp-note { display: inline-block; margin-top: 10px; font-size: 14px; color: #8a5a00; background: #fdf3d7; border-radius: 10px; padding: 6px 12px; font-weight: 600; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: #fff; border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; z-index: 1; }
.badge.new { background: var(--accent); border-color: transparent; }
.badge.retro { background: #f3c76b; border-color: transparent; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-team { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.card h3 { font-size: 15px; font-weight: 600; line-height: 1.35; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 18px; font-weight: 800; }
.card-chip { width: 28px; height: 28px; border-radius: 9px; background: var(--paper); display: grid; place-items: center; color: var(--muted); }
.card-chip svg { width: 15px; height: 15px; }

.retro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.retro-tile { position: relative; overflow: hidden; border-radius: 22px; background: #f3c76b; min-height: 260px; display: flex; align-items: center; padding: 32px; }
.retro-tile.alt { background: #1d3557; color: #fff; }
.retro-tile img { position: absolute; inset-inline-end: -10px; bottom: -10px; height: 115%; width: 52%; object-fit: contain; transform: rotate(-8deg); transition: transform .3s; }
.retro-tile:hover img { transform: rotate(-3deg) scale(1.04); }
.retro-tile > div { position: relative; max-width: 52%; }
.retro-tile h3 { font-size: 32px; font-weight: 900; }
.retro-tile p { margin: 10px 0 18px; opacity: .8; line-height: 1.5; }

.kids-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 22px; padding: 36px; background: linear-gradient(120deg, #7dd3fc 0%, #a5f3fc 45%, #fde68a 100%); color: var(--ink); margin-bottom: 16px; }
.kids-banner .kicker { color: var(--ink); border-color: rgba(11,15,13,.25); background: rgba(255,255,255,.5); margin-bottom: 12px; }
.kids-banner h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; }
.kids-banner p { margin: 10px 0 20px; max-width: 440px; line-height: 1.5; opacity: .85; }
.kb-art { display: flex; flex: none; }
.kb-art img { width: 150px; height: 170px; object-fit: contain; background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.15); transform: rotate(-6deg); transition: transform .3s; }
.kb-art img + img { margin-inline-start: -30px; transform: rotate(3deg) translateY(-10px); }
.kb-art img:last-child { transform: rotate(8deg); }
.kids-banner:hover .kb-art img { transform: rotate(0) translateY(-4px); }
.ph-seg { width: 84px; height: 84px; border-radius: 50%; background: #7dd3fc; color: var(--ink); display: grid; place-items: center; flex: none; }
.ph-seg.women { background: var(--pink); color: #fff; }
.ph-seg svg { width: 48px; height: 48px; }
.page-head.seg-women h1 { color: var(--pink); }
.page-head.seg-kids h1 { color: #7dd3fc; }
.women-banner { background: linear-gradient(120deg, #fbcfe8 0%, #f9a8d4 50%, #fce7f3 100%); }
.women-banner h2 { color: #be185d; }
.women-banner .btn-dark { background: #be185d; }
.nav .nba-link { color: #ff8a3d; font-weight: 700; }
.nav .nba-link.on { color: #fff; background: #ff8a3d; }
.nav .women-link { color: var(--pink); font-weight: 600; }
.nav .women-link.on { color: #fff; background: var(--pink); }
a.pill.women { background: var(--pink); color: #fff; font-weight: 600; }
.foot a[href="#/women"] { color: var(--pink); }
.nav .mystery-link { color: var(--ink); background: var(--accent); font-weight: 800; }
.nav .mystery-link:hover, .nav .mystery-link.on { color: var(--ink); background: #ffc14d; }
/* mystery box page */
.mys-art { cursor: default; background: radial-gradient(circle at 50% 45%, #fff 0%, #f1f6ff 60%, #e6eefb 100%); }
.mys-art img { animation: mys-float 3.2s ease-in-out infinite; }
@keyframes mys-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .mys-art img { animation: none; } }
.mys-art .badge { position: absolute; top: 16px; inset-inline-start: 16px; }
.mys-sub { color: var(--muted); margin-top: 8px; line-height: 1.5; }
.mys-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; border-radius: 12px; }
.mys-sizes.err { outline: 2px solid #e53935; outline-offset: 4px; }
.mys-size { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.mys-size b { font-size: 17px; min-width: 34px; }
.mys-size.on { border-color: var(--ink); background: #f6f9ff; }
.mys-count { display: flex; align-items: center; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); font-weight: 800; white-space: nowrap; background: #fff; }
.line-count { font-weight: 700; font-size: 14px; color: var(--muted); }
.nav .kids-link { color: #7dd3fc; }
.nav .kids-link.on { color: var(--ink); background: #7dd3fc; }
a.pill.kids { background: #7dd3fc; color: var(--ink); font-weight: 600; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.type-tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 1; display: flex; align-items: flex-end; transition: transform .2s; }
.type-tile:hover { transform: translateY(-3px); }
.type-tile img { position: absolute; inset: 0; width: 100%; height: 78%; object-fit: contain; padding: 14px; }
.type-tile span { position: relative; width: 100%; padding: 10px 14px 12px; font-weight: 800; font-size: 16px; background: linear-gradient(transparent, #fff 35%); display: flex; flex-direction: column; }
.type-tile small { font-weight: 500; color: var(--muted); font-size: 12px; }

/* ---------- listing ---------- */
.page-head { background: var(--ink); color: #fff; padding: 36px 0; }
.ph-inner { display: flex; align-items: center; gap: 22px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; }
.page-head p { margin: 10px 0 0; color: #b8beb9; display: flex; gap: 8px; flex-wrap: wrap; }
.page-head .count { display: inline-block; margin-top: 10px; font-size: 14px; color: #8a918c; }
.ph-patch { width: 76px; flex: none; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 13px; color: #e6e9e7; }
a.pill:hover { background: var(--accent); color: var(--ink); }
.page-head + section.wrap { margin-top: 28px; }
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { height: 40px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: 14.5px; transition: background .15s, border-color .15s; }
.chips button:hover { border-color: var(--ink); }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips.small button { height: 34px; font-size: 13.5px; padding: 0 12px; }
.chips i { font-style: normal; opacity: .55; font-size: 12px; margin-inline-start: 4px; }
.empty { grid-column: 1/-1; padding: 60px 20px; text-align: center; color: var(--muted); font-size: 17px; background: var(--card); border-radius: var(--r); border: 1px dashed var(--line); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pager button { min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 15px; display: inline-grid; place-items: center; transition: border-color .15s, background .15s; }
.pager button:hover:not(:disabled) { border-color: var(--ink); }
.pager button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .pg-arrow svg { width: 18px; height: 18px; }
.pager .pg-arrow:not(.next) svg { transform: scaleX(-1); }
[dir="rtl"] .pager .pg-arrow:not(.next) svg { transform: none; }
[dir="rtl"] .pager .pg-arrow.next svg { transform: scaleX(-1); }
.pg-gap { color: var(--muted); padding: 0 2px; }
.pager.top { margin: 0 0 18px; justify-content: flex-end; }
.pager.top:empty { display: none; }
.pager.top button { min-width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }
.more-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- product page ---------- */
.crumbs { margin-top: 22px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pdp { margin-top: 18px !important; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.gallery { position: static; }
.g-main { cursor: zoom-in; position: relative; background: var(--card); border-radius: 22px; border: 1px solid var(--line); aspect-ratio: 1; }
.g-main img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.g-thumbs button { width: 78px; height: 78px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); padding: 6px; }
.g-thumbs button.on { border-color: var(--ink); }
.g-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-team { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.pdp-team:hover { color: var(--ink); }
.pdp-info h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-top: 10px; }
.pdp-price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 24px; }
.pdp-price span { font-size: 34px; font-weight: 900; }
.pdp-price small { color: var(--muted); }
.opt { margin-bottom: 18px; }
.opt.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.opt-h { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opt-h small { font-weight: 400; color: var(--muted); font-size: 13px; }
.chart-link { margin-top: 12px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 12px; border: 0; background: var(--accent); color: var(--ink); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(255,160,0,.35); transition: transform .15s, box-shadow .15s; }
.chart-link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,160,0,.5); }
.chart-link svg { width: 24px; height: 24px; flex: none; }
.chart-link small { font-size: 13px; font-weight: 500; opacity: .8; }
.plus { margin-inline-start: auto; font-size: 14px; background: var(--paper); padding: 3px 10px; border-radius: 99px; }
.hint { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.versions button { text-align: start; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, background .15s; }
.versions button:hover { border-color: #b9c3d2; }
.versions button.on { border-color: var(--ink); background: #f6f9ff; }
.versions b { font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.versions i.plus { font-style: normal; margin: 0; }
.versions small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; border-radius: 12px; }
.sizes.err { outline: 2px solid var(--red); outline-offset: 4px; }
.sizes button { min-width: 54px; height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; }
.sizes button:hover { border-color: var(--ink); }
.sizes button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tg { width: 44px; height: 26px; border-radius: 99px; background: #d8d6cd; position: relative; transition: background .2s; flex: none; }
.tg::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + .tg { background: var(--ink); }
.toggle input:checked + .tg::after { inset-inline-start: 21px; }
.toggle input:focus-visible + .tg { outline: 2px solid var(--accent); outline-offset: 2px; }
.nn { display: grid; grid-template-columns: 1fr 100px 120px; gap: 10px; margin-top: 14px; align-items: end; }
.nn label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.nn input, .co-form input, .co-form textarea { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; outline: 0; }
.nn input:focus, .co-form input:focus, .co-form textarea:focus { border-color: var(--ink); }
.nn-preview { height: 86px; border-radius: 12px; background: var(--c); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.nn-preview span { font-size: 11px; font-weight: 800; letter-spacing: .12em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.nn-preview b { font-size: 40px; font-weight: 900; line-height: 1; }
.patches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.patch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; text-align: center; transition: border-color .15s, transform .15s; }
.patch:hover { border-color: #b7b5ac; }
.patch.on { border-color: var(--ink); background: #fbfdf3; }
.patch-art img { max-width: 80px; max-height: 92px; width: auto !important; height: auto !important; }
.patch-art { overflow: hidden; width: 88px; height: 100px; display: grid; place-items: center; }
.patch-art svg, .patch-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.18)); }
.patch-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.patch-check { position: absolute; top: 8px; inset-inline-end: 8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; color: transparent; font-weight: 900; }
.patch.on .patch-check { background: var(--accent); border-color: var(--ink); color: var(--ink); }
.buy-row { display: flex; gap: 12px; margin-top: 24px; }
.btn.grow { flex: 1; height: 58px; font-size: 17px; }
.btn.grow b { margin-inline-start: auto; background: rgba(0,0,0,.1); padding: 4px 12px; border-radius: 99px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; height: 34px; }
.qty button { width: 32px; height: 100%; font-size: 18px; font-weight: 600; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.qty.big { height: 58px; }
.qty.big button { width: 44px; font-size: 22px; }
.perks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 14px; }
.perks li { display: flex; align-items: center; gap: 10px; }

/* ---------- drawer / modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(8,10,9,.5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
[dir="rtl"] .drawer { transform: translateX(-100%); }
.overlay.open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); background: #fff; }
.drawer-ship { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 8px; color: var(--muted); }
.drawer-ship b, .sum-list .ship b { color: #15803d; }
.perks li.ship { color: #15803d; font-weight: 600; }
.price-strip .ship b { color: var(--accent); }
.drawer-total { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 14px; }
.drawer-total b { font-size: 22px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 84px; height: 84px; background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 6px; }
.line-img img { width: 100%; height: 100%; object-fit: contain; }
.line-title { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.line-meta { color: var(--muted); font-size: 13px; margin: 4px 0 8px; line-height: 1.5; }
.line-row { display: flex; align-items: center; justify-content: space-between; }
.line-rm { color: var(--muted); width: 34px; height: 34px; }
.line-rm svg { width: 18px; height: 18px; }
.empty-cart { text-align: center; padding: 60px 0; color: var(--muted); }
.empty-cart > svg { width: 64px; height: 64px; opacity: .35; }
.overlay.center { display: grid; place-items: center; padding: 16px; }
.modal { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper); border-radius: 22px; padding: 28px; transform: translateY(16px); transition: transform .25s; }
.overlay.open .modal { transform: none; }
.modal-x { position: absolute; top: 14px; inset-inline-end: 14px; }
.modal h2 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.sum-list { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 6px 16px; margin-bottom: 18px; }
.sum-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.sum-list .sum-total { border: 0; font-size: 17px; }
.co-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.co-form textarea { height: auto; padding: 10px 14px; resize: vertical; }
.co-form .full { grid-column: 1/-1; }
.co-note { margin: 0; color: var(--muted); font-size: 13.5px; }
.co-err { color: var(--red); font-weight: 600; font-size: 14px; }
.order-pre { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 13px; margin-top: 14px; }
.btn svg { width: 20px; height: 20px; }

/* full-screen image viewer */
/* zoom: the site stays visible but darkened, and the cut-out shirt (transparent background) floats above it */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,14,26,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: center; padding: 64px 16px; animation: lb-in .2s ease-out; cursor: zoom-out; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-img { max-width: min(1000px, 100%); max-height: calc(100vh - 128px); width: auto; height: auto; object-fit: contain; cursor: default; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); animation: lb-pop .22s cubic-bezier(.2,.8,.2,1); transition: opacity .12s; }
.lb-img.lb-wait { opacity: 0; }
@keyframes lb-pop { from { transform: scale(.94); } to { transform: none; } }
.lb-x, .lb-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; font-size: 20px; transition: background .15s; }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-x { top: 14px; inset-inline-end: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { inset-inline-start: 14px; }
.lb-next { inset-inline-end: 14px; }
.lb-prev svg { transform: scaleX(-1); }
[dir="rtl"] .lb-prev svg { transform: none; }
[dir="rtl"] .lb-next svg { transform: scaleX(-1); }
.lb-count { direction: ltr; unicode-bidi: isolate; position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: 99px; }
@media (max-width: 760px) { .lb-nav { top: auto; bottom: 10px; transform: none; } .lb-count { bottom: 22px; } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 99px; font-weight: 600; z-index: 200; opacity: 0; transition: all .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
#footer { margin-top: 80px; background: var(--ink); color: #b8beb9; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
.foot p { max-width: 340px; line-height: 1.6; }
.foot h4 { color: #fff; margin: 0 0 12px; }
.foot a:not(.logo) { display: block; padding: 4px 0; font-size: 14px; }
.foot a:not(.logo):hover { color: var(--accent); }
.logo.light { color: #fff; }
.foot .logo img { height: 64px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
#footer { border-top: 4px solid transparent; border-image: var(--grad) 1; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 18px; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .league-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { height: 340px; max-width: 520px; width: 100%; margin-inline: auto; }
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
}
@media (max-width: 1180px) {
  .only-m { display: grid; }
  .nav { display: none; }
  .nav.open { display: block; max-height: calc(100vh - 140px); overflow-y: auto; }
  .nav-inner { flex-direction: column; align-items: stretch; height: auto; padding: 8px 0 14px; }
  .nav-more { margin: 0; }
  .nav-more > button { display: none; }
  .nav-drop { position: static; display: block; background: none; box-shadow: none; padding: 0; min-width: 0; }
  .nav-drop a { color: #cfd4d0; }
  .nav-drop a:hover { background: rgba(255,255,255,.06); color: #fff; }
}
@media (max-width: 760px) {
  .hdr { gap: 8px; height: auto; padding: 10px 0; flex-wrap: wrap; }
  .logo img { height: 44px; }
  .hdr-actions { margin-inline-start: auto; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav-inner { flex-direction: column; align-items: stretch; height: auto; padding: 8px 0 14px; }
  .nav-more { margin: 0; }
  .nav-more > button { width: 100%; text-align: start; }
  .nav-drop { position: static; display: block; background: none; box-shadow: none; padding: 0 12px; }
  .nav-drop a { color: #cfd4d0; }
  .nav-drop a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .topbar { font-size: 12px; }
  .price-strip { grid-template-columns: 1fr 1fr; }
  .price-strip > div { padding: 14px 4px; font-size: 13px; }
  .price-strip > div + div { border: 0; padding-inline-start: 4px; }
  .price-strip .ship { grid-column: 1 / -1; }
  .hero-art { height: 260px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card h3 { font-size: 13.5px; }
  .card-body { padding: 10px; }
  .price { font-size: 16px; }
  .team-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .team-row .crest.lg { --s: 54px; }
  .team-tile { font-size: 12.5px; padding: 14px 4px 10px; }
  .league-grid { grid-template-columns: 1fr; }
  .league-tile { min-height: 110px; }
  .retro-grid { grid-template-columns: 1fr; }
  .retro-tile { min-height: 220px; padding: 24px; }
  .retro-tile h3 { font-size: 26px; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .kids-banner { flex-direction: column; align-items: flex-start; padding: 24px; }
  .kb-art img { width: 96px; height: 110px; }
  .nn { grid-template-columns: 1fr 90px; }
  .nn-preview { grid-column: 1/-1; height: 70px; }
  .co-form { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1/-1; }
  section.wrap { margin-top: 40px; }
  .ph-inner { gap: 14px; }
  .crest.xl { --s: 68px; }
  .ph-patch { width: 56px; }
}
