/* ============================================================
   Intersport Design System — colors, type, spacing tokens
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800&family=Barlow+Condensed:wght@500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ---------- BRAND COLOR ---------- */
  --brand-red: #E30F1B;
  --brand-red-dark: #B40C16;
  --brand-blue: #11448F;
  --brand-blue-dark: #0B2F66;
  --brand-blue-bright: #1556B8;   /* used for prices */

  /* ---------- NEUTRALS ---------- */
  --ink: #111111;
  --ink-2: #5A5A5A;
  --ink-3: #8A8A8A;
  --line: #E5E5E5;
  --line-2: #F0F0F0;
  --surface: #FFFFFF;
  --surface-2: #F5F5F5;
  --surface-3: #EDEDED;
  --overlay: rgba(17, 17, 17, 0.5);

  /* ---------- SEMANTIC ---------- */
  --fg-1: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --fg-on-brand: #FFFFFF;
  --bg-1: var(--surface);
  --bg-2: var(--surface-2);
  --price: var(--brand-blue-bright);
  --price-strikethrough: var(--ink-3);
  --success: #1E8E3E;
  --warning: var(--brand-red);
  --sale: var(--brand-red);

  /* ---------- TYPE ---------- */
  --font-display: 'Barlow Condensed', 'Oswald', 'Arial Narrow', sans-serif;
  --font-sans: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-display-el: 'Inter', 'Barlow Condensed', 'Oswald', sans-serif;
  --font-sans-el: 'Inter', 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-56: 56px;
  --fs-72: 72px;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.4;
  --lh-loose: 1.6;

  /* ---------- SPACING ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* ---------- RADII ---------- */
  --r-0: 0px;
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-pill: 999px;

  /* ---------- SHADOWS ---------- */
  --shadow-card: 0 1px 2px rgba(17,17,17,0.06), 0 4px 12px rgba(17,17,17,0.06);
  --shadow-card-hover: 0 2px 4px rgba(17,17,17,0.08), 0 12px 28px rgba(17,17,17,0.10);
  --shadow-pop: 0 8px 24px rgba(0,51,160,0.18);

  /* ---------- MOTION ---------- */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;
}

/* ============================================================
   Semantic type styles
   ============================================================ */

html, body {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: var(--bg-1);
  font-size: 16px;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-72);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-56);
  line-height: var(--lh-tight);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-40);
  line-height: var(--lh-snug);
  text-transform: uppercase;
}
.h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-24);
  line-height: var(--lh-snug);
}
.h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: var(--lh-snug);
}
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.body {
  font-size: var(--fs-16);
  line-height: var(--lh-normal);
  color: var(--fg-1);
}
.body-sm {
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
  color: var(--fg-2);
}
.caption {
  font-size: var(--fs-12);
  line-height: var(--lh-normal);
  color: var(--fg-3);
}
.price {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: var(--fs-20);
  color: var(--price);
}
.price-strike {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-13);
  color: var(--price-strikethrough);
  text-decoration: line-through;
}

/* ============================================================
   Reusable UI primitives used across kit + previews
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-14);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.btn-primary { background: var(--brand-blue); color: #fff; }
.btn-primary:hover { background: var(--brand-blue-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-accent { background: var(--brand-red); color: #fff; }
.btn-accent:hover { background: var(--brand-red-dark); }
.btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-1);
}
.badge-sale  { background: var(--brand-red); color: #fff; }
.badge-new   { background: var(--brand-blue); color: #fff; }
.badge-web   { background: var(--ink); color: #fff; }
.badge-eco   { background: var(--success); color: #fff; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--fg-1);
  cursor: pointer;
  transition: all var(--dur) var(--ease-out);
}
.chip:hover { border-color: var(--ink); }
.chip-active { background: var(--ink); color: #fff; border-color: var(--ink); }
