:root {
  --bg: #0b0f1a;
  --bg-2: #121829;
  --card: #161d31;
  --line: #263052;
  --text: #f2f4fa;
  --muted: #9aa3bf;
  --gold: #f5b301;
  --pink: #ff4fa3;
  --green: #3ddc84;
  --radius: 16px;
  --display: "Bebas Neue", Impact, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1; margin: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 15, 26, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-family: var(--display); font-size: 2rem; text-decoration: none; letter-spacing: .04em; }
.logo span { color: var(--gold); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.cart-btn {
  position: relative; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; width: 44px; height: 44px; display: grid; place-items: center;
}
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--gold); color: #111; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; transition: transform .12s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: #111; }
.btn-primary:hover { background: #ffc52e; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-small { padding: 8px 14px; background: var(--bg-2); border-color: var(--line); }
.btn-small:hover { border-color: var(--gold); }
.btn-wide { width: 100%; }
.icon-btn { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; width: 36px; height: 36px; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font-size: .85rem; }
.link:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(600px 400px at 85% 30%, rgba(245, 179, 1, .14), transparent 70%),
    radial-gradient(500px 400px at 60% 90%, rgba(255, 79, 163, .12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--gold); margin: 0 0 12px; }
h1 { font-size: clamp(3.2rem, 8vw, 6rem); }
h1 em { font-style: normal; color: var(--gold); }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 34em; margin: 20px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 20px; flex-wrap: wrap; padding: 0; margin: 28px 0 0; list-style: none; color: var(--muted); font-size: .9rem; }
.hero-points li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.hero-art { aspect-ratio: 400 / 480; max-height: 520px; margin: 0 auto; width: 100%; }
.hero-swap { animation: drop .6s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes drop { from { opacity: 0; transform: translateY(-16px) rotate(-3deg); } to { opacity: 1; transform: none; } }

/* ---------- Shop ---------- */
.shop { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs { display: flex; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.tab { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; color: var(--muted); font-weight: 600; }
.tab.active { background: var(--card); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #3a4672; }
.card-art {
  position: relative; border: 0; padding: 16px 24px 0; background: radial-gradient(circle at 50% 60%, #1f2945, var(--card) 70%);
}
.card-art svg { transition: transform .3s; }
.card:hover .card-art svg { transform: scale(1.03) rotate(-1deg); }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: #111;
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-cat { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; margin: 0 0 4px; }
.cat-football { color: var(--gold); }
.cat-cheer { color: var(--pink); }
.card h3 { font-size: 1.8rem; }
.card-tag { color: var(--muted); font-size: .9rem; margin: 6px 0 16px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; font-size: 1.15rem; }
.price .launch {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  background: rgba(61, 220, 132, .14); color: var(--green); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- How / FAQ ---------- */
.how { padding: 56px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 28px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps span { font-family: var(--display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.steps h3 { font-size: 1.6rem; margin: 6px 0; }
.steps p { color: var(--muted); margin: 0; }
.how-cta { display: flex; justify-content: center; margin: -12px 0 40px; }
.team-callout {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 24px 28px; border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(245, 179, 1, .16), rgba(255, 79, 163, .14)); border: 1px solid var(--line);
}
.team-callout h3 { font-size: 1.9rem; }
.team-callout p { margin: 4px 0 0; color: var(--muted); }
.faq { padding: 56px 0; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 3.6rem); }
.legal h2 { font-size: 1.9rem; margin: 36px 0 10px; }
.legal h3 { font-family: Inter, system-ui, sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 18px 0 6px; }
.legal p, .legal li { color: #c9cfe0; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--gold); }
.legal-date { color: var(--muted); margin: 8px 0 24px; }
.legal-back { margin-top: 40px; }
.legal-back .btn { color: var(--text); }
.nav-legal { display: flex; }
.site-footer a { color: inherit; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-row p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Dialogs ---------- */
dialog {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 20px;
  padding: 0; max-width: min(980px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 32px);
}
dialog::backdrop { background: rgba(4, 6, 12, .7); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(8px); } }
.cz-close-form { position: absolute; top: 14px; right: 14px; margin: 0; z-index: 2; }
.cz-grid { display: grid; grid-template-columns: 1fr 1fr; }
.cz-preview {
  padding: 24px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 55%, #222c4b, var(--bg) 75%);
}
.cz-preview svg { width: 100%; max-height: 520px; }
.cz-preview-col { display: flex; flex-direction: column; background: var(--bg); }
.cz-preview-col .cz-preview { flex: 1; }
.cz-photo { width: 100%; max-height: 520px; object-fit: contain; border-radius: 12px; }
.cz-views { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 0 16px 16px; }
.cz-views:empty { display: none; }
.cz-views button { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .82rem; }
.cz-views button[aria-pressed="true"] { border-color: var(--gold); background: rgba(245, 179, 1, .12); }
.cz-details { margin: -8px 0 18px; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.cz-details:empty { display: none; }
.cz-warn { margin: 0; padding: 0 16px 14px; text-align: center; font-size: .82rem; color: var(--gold); }
.cz-warn:empty { display: none; }
.choice-list { display: grid; gap: 8px; }
.choice {
  display: grid; gap: 2px; text-align: left; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.choice span { color: var(--muted); font-size: .82rem; }
.choice[aria-pressed="true"] { border-color: var(--gold); background: rgba(245, 179, 1, .12); }
.hint-text { display: block; color: var(--muted); font-size: .8rem; margin-top: 6px; }
.cz-form { padding: 28px; overflow-y: auto; max-height: calc(100vh - 34px); }
.cz-form h2 { font-size: 2.6rem; padding-right: 40px; }
.cz-tagline { color: var(--muted); margin: 6px 0 18px; }
.field { display: block; border: 0; padding: 0; margin: 0 0 18px; }
.field legend, .label-row { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.label-row { display: flex; justify-content: space-between; }
.count, .color-name { color: var(--muted); font-weight: 400; }
.field input[type="text"] {
  width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font: 1.4rem var(--display); letter-spacing: .06em;
}
.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15);
  background: var(--c); padding: 0; transition: transform .1s;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .88rem; }
.seg button[aria-pressed="true"] { border-color: var(--gold); background: rgba(245, 179, 1, .12); }
.seg small { color: var(--muted); }
.cz-buy { display: flex; gap: 12px; margin-top: 8px; }
.qty { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.qty button { background: none; border: 0; width: 38px; height: 46px; font-size: 1.2rem; }
.qty input { width: 40px; background: none; border: 0; text-align: center; color: var(--text); font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
.qty-small button { width: 30px; height: 30px; font-size: 1rem; }
.qty-small span { min-width: 20px; text-align: center; font-size: .9rem; }
.fine { color: var(--muted); font-size: .8rem; margin: 12px 0 0; }

.checkout { max-width: 520px; padding: 28px; }
.checkout h2 { font-size: 2.4rem; margin-bottom: 16px; }
.co-lines { list-style: none; padding: 0; margin: 0 0 16px; }
.co-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-lines small { color: var(--muted); }
.co-lede { color: var(--muted); margin: -6px 0 16px; }
.co-form { margin-top: 20px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .co-row { grid-template-columns: 1fr; } }
.co-form .field input:not([type="checkbox"]):not([type="radio"]), .co-form .field textarea, .co-form .field select {
  width: 100%; padding: 11px 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font: inherit; resize: vertical;
}
.co-form .field input:focus, .co-form .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.co-form .field[hidden] { display: none; }
.label-row small, .seg small { color: var(--muted); font-weight: 400; }
.seg-opt { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .9rem; cursor: pointer; }
.seg-opt:has(input:checked) { border-color: var(--gold); background: rgba(245, 179, 1, .12); }
.seg-opt input { accent-color: var(--gold); margin: 0; }
.co-gift { margin: -4px 0 18px; }
.co-address .field { margin-bottom: 12px; }
.co-address .fine { margin: 0; }
.co-row-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 560px) { .co-row-3 { grid-template-columns: 1fr 1fr; } .co-row-3 .field:first-child { grid-column: 1 / -1; } }
.co-form .fine a { color: var(--gold); }
.co-error { color: #ff8a8a; font-size: .9rem; margin: 10px 0 0; }
.notice { background: rgba(245, 179, 1, .1); border: 1px solid rgba(245, 179, 1, .35); border-radius: 10px; padding: 12px 14px; font-size: .9rem; margin: 18px 0 0; }

/* ---------- Cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(4, 6, 12, .6); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 41;
  background: var(--bg-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 2rem; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-art { background: var(--bg); border-radius: 10px; padding: 4px; }
.line-info h4 { margin: 0 0 4px; font-size: .95rem; }
.line-info p { margin: 0; font-size: .82rem; line-height: 1.45; }
.muted { color: var(--muted); }
.line-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.line-price { font-weight: 700; }
.empty { text-align: center; padding: 48px 0; color: var(--muted); }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.promo { margin-bottom: 12px; }
.promo[hidden] { display: none; }
.promo-form { display: flex; gap: 8px; }
.promo-form input {
  flex: 1; min-width: 0; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font: inherit; text-transform: uppercase;
}
.promo-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.promo-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(61, 220, 132, .12); color: var(--green); font-size: .9rem; }
.promo .co-error { margin: 6px 0 0; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.totals .grand { color: var(--text); font-weight: 700; font-size: 1.1rem; padding-top: 8px; }
.totals .good { color: var(--green); }
.hint { font-size: .82rem; color: var(--gold); margin: 6px 0 12px; }
.drawer-foot .btn { margin-top: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 60;
  background: var(--text); color: #111; padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 220px; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .cz-grid { grid-template-columns: 1fr; }
  .cz-preview { padding: 16px 48px; }
  .cz-preview svg { max-height: 300px; }
  .cz-form { max-height: none; padding: 20px; }
  dialog { overflow-y: auto; }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
