/* ==========================================================================
   TS Sports — styles
   Change the colours and fonts in :root to restyle the whole site.
   ========================================================================== */
:root {
  --bg: #0b0b0d;          /* page background (logo black) */
  --bg-2: #141417;        /* raised sections */
  --card: #1a1a1e;        /* product cards */
  --line: #2c2c31;        /* borders */
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --gold: #d8b25a;        /* brand accent (logo gold) */
  --gold-dark: #b8913a;
  --gold-light: #f3d98b;
  --silver: #d9dce1;      /* logo silver */
  --green: #5fd38d;       /* in stock */
  --amber: #ff9f43;       /* low stock */
  --red: #ff5c6c;         /* out of stock */
  --radius: 16px;
  --font-head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.02; letter-spacing: .01em; margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--gold); color: #111; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-dark)); color: #111; }
.btn-lime:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; filter: grayscale(.6); }

/* Banner + header --------------------------------------------------------- */
.demo-banner { background: var(--amber); color: #1a1205; text-align: center; font-size: .9rem; padding: .55rem 1rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 13, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 800 1.6rem/1 var(--font-head); text-transform: uppercase; }
.brand em { font-style: normal; color: var(--gold); }
.brand img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(216, 178, 90, .5); }
.main-nav { display: flex; gap: 1.3rem; margin-left: auto; }
@media (max-width: 980px) { .main-nav { display: none; } .header-cta { margin-left: auto; } }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.main-nav a:hover { color: var(--gold); }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(700px 400px at 85% 30%, rgba(216, 178, 90, .16), transparent 60%),
  repeating-linear-gradient(90deg, transparent 0 120px, rgba(255, 255, 255, .025) 120px 240px); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; padding: 4.5rem 0 5rem; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(3.6rem, 10vw, 7.5rem); }
.hero h1 span { background: linear-gradient(120deg, var(--gold-light), var(--gold) 40%, var(--gold-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 34rem; margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(216, 178, 90, .28), transparent 65%); filter: blur(20px); }
.hero-logo { position: relative; width: 86%; height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1px rgba(216, 178, 90, .35), 0 30px 60px rgba(0, 0, 0, .6); }

/* Catalogue --------------------------------------------------------------- */
.catalogue { padding: 4.5rem 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.result-count { color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { padding: .65rem 1.2rem; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--text); font: 600 .95rem var(--font-body); cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #111; }
.search { display: flex; align-items: center; gap: .6rem; flex: 1 1 260px; max-width: 380px; padding: 0 1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); }
.search:focus-within { border-color: var(--gold); }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 1rem var(--font-body); padding: .7rem 0; outline: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 1; background: #101215; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.card-cat { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.card h3 { font-size: 1.45rem; }
.card h3 button { all: unset; cursor: pointer; }
.card h3 button::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.card h3 button:focus-visible { outline: none; }
.card:has(h3 button:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.price { font: 800 1.5rem/1 var(--font-head); color: var(--gold); }
.price.request { font: 600 .95rem/1.2 var(--font-body); color: var(--text); }
.tag { position: absolute; top: .8rem; left: .8rem; right: .8rem; z-index: 1; display: flex; flex-wrap: wrap; gap: .4rem; pointer-events: none; }
.tag span { background: rgba(0, 0, 0, .7); color: #fff; font-size: .72rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.tag .tag-demo { background: var(--amber); color: #1a1205; }
.tag .tag-featured { background: var(--gold); color: #111; }

.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.badge.in-stock { color: var(--green); }
.badge.low-stock { color: var(--amber); }
.badge.out-of-stock { color: var(--red); }
.card.is-out .card-media img { filter: grayscale(.8) brightness(.7); }

.empty { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty h3 { font-size: 1.8rem; margin-bottom: .5rem; }
.empty p { color: var(--muted); margin-bottom: 1.2rem; }
.empty.is-loading { border-style: solid; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* How + contact ------------------------------------------------------------ */
.how { padding: 4.5rem 0; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.steps li { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps span { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--gold); color: #111; font: 800 1.3rem var(--font-head); margin-bottom: .9rem; }
.steps h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: .95rem; }
.contact { padding: 4rem 0; background: linear-gradient(120deg, #221b0d, var(--bg-2)); border-top: 1px solid var(--line); }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.contact-inner p { color: var(--muted); margin-top: .5rem; }
.contact-cards { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact-card { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.3rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.contact-card:hover { border-color: var(--gold); }
.contact-card .icon { width: 1.8rem; height: 1.8rem; color: var(--gold); }
.contact-card small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { word-break: break-all; }
.site-footer { padding: 2rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* Product dialog ----------------------------------------------------------- */
.product-dialog { width: min(1000px, 100% - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); color: var(--text); box-shadow: var(--shadow); }
.product-dialog::backdrop { background: rgba(5, 6, 8, .75); backdrop-filter: blur(3px); }
.pd { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; }
.pd-close { position: absolute; top: .8rem; right: .8rem; z-index: 3; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }
.pd-close:hover { background: var(--gold); color: #111; }
.pd-gallery { padding: 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
.pd-main { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #101215; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pd-nav:hover { background: var(--gold); color: #111; }
.pd-prev { left: .7rem; } .pd-next { right: .7rem; }
.pd-counter { position: absolute; bottom: .7rem; right: .7rem; background: rgba(0, 0, 0, .65); font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; }
.pd-thumbs { display: flex; gap: .6rem; overflow-x: auto; }
.pd-thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: none; cursor: pointer; }
.pd-thumbs button[aria-current="true"] { border-color: var(--gold); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 2rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: .8rem; overflow-y: auto; }
.pd-meta { display: flex; gap: .8rem; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.pd-info h2 { font-size: clamp(2rem, 4vw, 2.6rem); padding-right: 2.5rem; }
.pd-price { font: 800 2rem/1 var(--font-head); color: var(--gold); }
.pd-price.request { font: 600 1.1rem var(--font-body); color: var(--text); }
.pd-desc { color: var(--muted); }
.sizes { border: 0; padding: 0; margin: .3rem 0 0; }
.sizes legend { font-weight: 600; margin-bottom: .6rem; padding: 0; }
.size-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-list button { min-width: 3.2rem; padding: .6rem .8rem; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--text); font: 600 .95rem var(--font-body); cursor: pointer; }
.size-list button:hover { border-color: var(--gold); }
.size-list button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #111; }
.size-list button:disabled { opacity: .45; cursor: not-allowed; }
.pd-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }
.hint { color: var(--muted); font-size: .88rem; min-height: 1.2em; }
.hint.warn { color: var(--amber); }
.pd-unavailable { margin-top: .6rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--red); color: var(--red); background: rgba(255, 92, 108, .08); font-weight: 600; }
.pd-unavailable.is-demo { border-color: var(--amber); color: var(--amber); background: rgba(255, 181, 71, .1); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3rem 0 3.5rem; }
  .hero-art { max-width: 420px; width: 100%; margin: 1rem auto 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pd { grid-template-columns: 1fr; }
  .pd-info { overflow: visible; padding-top: .4rem; }
  .product-dialog { overflow-y: auto; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .toolbar { flex-direction: column; }
  .search { max-width: none; flex: none; width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .card-body { padding: .8rem; }
  .tag { top: .5rem; left: .5rem; right: .5rem; gap: .3rem; }
  .tag span { font-size: .62rem; padding: .25rem .5rem; }
  .card h3 { font-size: 1.2rem; }
  .price { font-size: 1.25rem; }
  .card-foot { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: start; }
}
@media (max-width: 420px) {
  .header-cta span { display: none; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .product-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; max-width: 100%; }
}
@media (max-width: 340px) {
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
