/* NVT Sports — design tokens
   Palette comes from NVT's own glove artwork: navy + stitch red on chalk. */
:root {
  --ink: #12233F;          /* Northline navy: text, header, dark bands */
  --ink-2: #1D3560;        /* hover / raised navy */
  --signal: #C8102E;       /* Stitch red: primary action, one accent */
  --signal-hover: #A50D26;
  --paper: #F4F5F1;        /* Chalk: page background */
  --surface: #FFFFFF;      /* Product photography sits on white */
  --steel: #556273;        /* Secondary text, 5.6:1 on chalk */
  --line: #D6DAD2;
  --turf: #1E6B45;         /* Success states */
  --on-ink: #F4F5F1;
  --on-ink-muted: #B9C3D3;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-wdth: 72;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  --step-5: clamp(3rem, 7vw + 1rem, 6.25rem);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --radius-s: 4px;
  --radius-m: 10px;
  --shadow-drawer: -24px 0 48px rgba(18, 35, 63, 0.18);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --container: 1240px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--on-ink); padding: 10px 16px; z-index: 1000; border-radius: var(--radius-s); }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* Display type: heavy, condensed, italic — echoes the slant of the NVT wordmark */
.display {
  font-weight: 850;
  font-style: italic;
  font-variation-settings: "wdth" var(--display-wdth);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1, h2, h3 { margin: 0; }
.h3 { font-size: var(--step-2); font-weight: 750; line-height: 1.15; font-variation-settings: "wdth" 90; }
.muted { color: var(--steel); }
.price { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-s); border: 2px solid transparent;
  font-weight: 700; font-size: var(--step-0); text-decoration: none;
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out), border-color .15s var(--ease-out);
}
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-hover); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--signal); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink); color: var(--on-ink);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 12px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; color: var(--on-ink-muted); border-radius: var(--radius-s);
}
.main-nav a:hover, .main-nav a[aria-current="true"] { color: #fff; background: rgba(255,255,255,.08); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
@media (min-width: 1080px) { .main-nav { display: block; } .header-actions { margin-left: 8px; } .icon-btn.menu-btn { display: none; } }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; height: 48px; padding: 0 12px;
  background: transparent; border: 0; color: inherit; border-radius: var(--radius-s);
}
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--signal); color: #fff; font-size: 0.8rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.cart-count[data-empty="true"] { background: rgba(255,255,255,.14); }

.mobile-nav { background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0 auto; padding-top: 8px; padding-bottom: 16px; }
.mobile-nav a { display: block; padding: 14px 0; color: var(--on-ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-grid { display: grid; gap: 24px; padding-top: 40px; align-items: end; }
.hero h1 { font-size: var(--step-5); }
.hero h1 .line { display: block; }
.hero h1 .red { color: var(--signal); }
.hero-copy p { max-width: 34rem; font-size: var(--step-1); color: var(--steel); margin: 20px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { position: relative; margin: 0; min-height: 320px; display: flex; align-items: flex-end; justify-content: center; }
/* the slanted navy band takes its angle from the checkmark in the logo */
.hero-figure::before {
  content: ""; position: absolute; inset: 18% -40% -10% -10%;
  background: var(--ink);
  transform: skewY(-14deg);
  transform-origin: left bottom;
}
.hero-figure img { position: relative; width: min(560px, 100%); mix-blend-mode: normal; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); border-radius: var(--radius-m); }
.hero-facts {
  position: relative; z-index: 1; background: var(--ink); color: var(--on-ink);
}
.hero-facts ul { list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 18px; display: grid; gap: 10px 32px; grid-template-columns: 1fr; }
.hero-facts li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 0.95rem; }
.hero-facts svg { width: 20px; height: 20px; flex-shrink: 0; color: #fff; }
@media (min-width: 640px) { .hero-facts ul { grid-template-columns: repeat(3, auto); justify-content: start; } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; padding-top: 72px; gap: 48px; }
  .hero-copy { padding-bottom: 72px; }
  .hero-figure { min-height: 520px; }
}

/* Line-up: the six product lines as a lineup card */
.lineup { padding: var(--space-8) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: var(--step-4); }
.section-head p { margin: 0; max-width: 32rem; color: var(--steel); }
.lineup-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.lineup-list li { border-bottom: 1px solid var(--line); }
.lineup-row {
  display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 4px; text-decoration: none; color: var(--ink);
  transition: background-color .15s var(--ease-out);
}
.lineup-row:hover { background: var(--surface); }
.lineup-thumb { width: 72px; height: 72px; background: var(--surface); border-radius: var(--radius-s); overflow: hidden; display: grid; place-items: center; }
.lineup-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lineup-thumb.soon { background: transparent; border: 2px dashed var(--line); color: var(--steel); }
.lineup-thumb.soon svg { width: 26px; height: 26px; }
.lineup-name { font-size: clamp(1.5rem, 3vw + .5rem, 2.5rem); font-weight: 850; font-style: italic; font-variation-settings: "wdth" var(--display-wdth); line-height: 1; }
.lineup-short { display: block; color: var(--steel); font-size: 0.95rem; margin-top: 4px; }
.lineup-meta { text-align: right; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.lineup-meta .tag-soon { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 0.8rem; }
.lineup-meta svg { width: 22px; height: 22px; vertical-align: middle; transition: transform .2s var(--ease-out); }
.lineup-row:hover .lineup-meta svg { transform: translateX(4px); }
@media (min-width: 768px) { .lineup-row { grid-template-columns: 96px 1fr auto; padding: 18px 8px; } .lineup-thumb { width: 96px; height: 96px; } }

/* Product line bands */
.line-band { padding: var(--space-8) 0; border-top: 1px solid var(--line); }
.line-band:nth-of-type(even) { background: var(--surface); }
.line-layout { display: grid; gap: 28px; }
.line-intro h2 { font-size: var(--step-4); }
.line-intro p { color: var(--steel); margin: 14px 0 0; max-width: 30rem; }
.line-intro .count { margin-top: 18px; font-weight: 700; }
@media (min-width: 960px) {
  .line-layout { grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
  .line-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.product-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
/* a line with a single product gets one wide, horizontal card */
@media (min-width: 768px) {
  .product-grid:has(> .card:only-child) { grid-template-columns: 1fr; }
  .card:only-child { flex-direction: row; }
  .card:only-child .card-media { flex: 0 0 52%; }
  .card:only-child .card-body { padding: 32px; justify-content: center; }
  .card:only-child .card-title { font-size: var(--step-2); }
  .card:only-child .card-foot { margin-top: 12px; }
}

/* Product card */
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.line-band:nth-of-type(even) .card { background: var(--paper); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: #fff; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: var(--step-1); font-weight: 750; line-height: 1.25; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-sub { color: var(--steel); font-size: 0.95rem; margin: 0; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 2px; position: relative; z-index: 1; margin-left: -8px; }
.swatch-dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(18,35,63,.25); }
.swatch-btn {
  width: 36px; height: 36px; padding: 0; border: 0; background: transparent; border-radius: 50%;
  display: inline-grid; place-items: center;
}
.swatch-btn .swatch-dot { width: 22px; height: 22px; }
.swatch-btn[aria-pressed="true"] .swatch-dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.line-band:nth-of-type(even) .swatch-btn[aria-pressed="true"] .swatch-dot { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.card-color { margin: -4px 0 0; font-size: 0.9rem; }
.price-pending { font-size: 0.9rem; font-weight: 600; color: var(--steel); }

/* Coming soon band */
.line-band.soon-band:nth-of-type(n) { background: var(--ink); color: var(--on-ink); border-top-color: var(--ink); }
.soon-band .line-intro p { color: var(--on-ink-muted); }
.soon-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-m); padding: 24px; }
.soon-card h3 { font-size: var(--step-2); font-weight: 750; }
.soon-card p { color: var(--on-ink-muted); margin: 8px 0 18px; }
.inline-form { display: grid; gap: 10px; }
@media (min-width: 560px) { .inline-form { grid-template-columns: 1fr auto; align-items: end; } }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1rem;
}
.soon-band .field input { border-color: transparent; }
.form-status { min-height: 1.5em; margin: 8px 0 0; font-weight: 600; }
.form-status[data-state="ok"] { color: #8FE3B5; }
.form-status[data-state="error"] { color: #FFB3BE; }
.form-status.light[data-state="ok"] { color: var(--turf); }
.form-status.light[data-state="error"] { color: var(--signal); }

/* Assurance strip */
.assure { padding: var(--space-8) 0; border-top: 1px solid var(--line); }
.assure-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .assure-grid { grid-template-columns: repeat(3, 1fr); } }
.assure h3 { font-size: var(--step-1); font-weight: 750; display: flex; gap: 10px; align-items: center; }
.assure h3 svg { width: 24px; height: 24px; color: var(--signal); flex-shrink: 0; }
.assure p { margin: 8px 0 0; color: var(--steel); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: var(--space-8) 0 var(--space-6); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr; } }
.footer-contact { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12); max-width: 560px; }
.site-footer h2 { color: var(--on-ink); font-size: var(--step-1); font-weight: 700; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand img { height: 34px; }
.footer-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.875rem; }
.site-footer .field label { color: var(--on-ink); }
.site-footer textarea { min-height: 96px; resize: vertical; }

/* Product page */
.breadcrumb { padding: 20px 0 0; font-size: 0.9rem; color: var(--steel); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--steel); }
.pdp { display: grid; gap: 32px; padding: 24px 0 var(--space-8); }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } .pdp-info { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.gallery-main { background: #fff; border-radius: var(--radius-m); border: 1px solid var(--line); aspect-ratio: 1/1; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 72px; height: 72px; padding: 0; background: #fff; border: 2px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { font-size: var(--step-4); }
.pdp-sub { color: var(--steel); margin: 12px 0 0; font-size: var(--step-1); }
.pdp-price { font-size: var(--step-3); margin: 18px 0 0; }
.option-group { border: 0; padding: 0; margin: 24px 0 0; }
.option-group legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.option-group legend span { font-weight: 500; color: var(--steel); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt > span {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 52px; padding: 6px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface); font-weight: 600; font-size: 0.95rem;
}
.opt small { font-weight: 500; color: var(--steel); }
.opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.opt input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.opt input:disabled + span { opacity: .4; text-decoration: line-through; }
.opt .swatch-dot { display: inline-block; width: 20px; height: 20px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; }
.qty button svg { width: 16px; height: 16px; }
.qty output, .qty input { width: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; border: 0; background: transparent; }
.buy-row { display: flex; gap: 12px; margin-top: 24px; align-items: stretch; }
.buy-row .btn { flex: 1; }
.buy-note { margin: 12px 0 0; font-size: 0.9rem; color: var(--steel); }
.pdp-section { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.pdp-section h2 { font-size: var(--step-2); font-weight: 750; margin-bottom: 14px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list strong { display: block; }
.feature-list span { color: var(--steel); }
.size-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.size-table th, .size-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.size-table thead th { background: var(--ink); color: var(--on-ink); font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* Cart drawer */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer[data-open="true"] { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(18,35,63,.55); opacity: 0; transition: opacity .2s var(--ease-out); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--paper); box-shadow: var(--shadow-drawer);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s var(--ease-out);
}
.drawer[data-visible="true"] .drawer-scrim { opacity: 1; }
.drawer[data-visible="true"] .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: var(--step-2); font-weight: 850; font-style: italic; font-variation-settings: "wdth" var(--display-wdth); }
.drawer-head .icon-btn:hover { background: rgba(18,35,63,.06); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: var(--radius-s); border: 1px solid var(--line); }
.cart-line h3 { font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.cart-line p { margin: 2px 0 8px; font-size: 0.875rem; color: var(--steel); }
.cart-line .qty button { width: 36px; height: 36px; }
.cart-line .qty output { width: 28px; }
.remove-btn { background: none; border: 0; padding: 8px 0; font-size: 0.875rem; color: var(--steel); text-decoration: underline; min-height: 36px; }
.remove-btn:hover { color: var(--signal); }
.totals { display: grid; gap: 6px; margin-bottom: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: var(--step-1); font-weight: 750; }
.empty-cart { text-align: center; padding: 48px 8px; }
.empty-cart p { color: var(--steel); }
.checkout-msg { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--radius-s); font-size: 0.95rem; }
.checkout-msg[data-tone="error"] { background: #FBE7EA; color: #7D0A1C; }
.checkout-msg[data-tone="info"] { background: #E8EDF5; color: var(--ink); }
.checkout-msg[data-tone="ok"] { background: #E3F2EA; color: #134A2F; }
#paypal-buttons { min-height: 52px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: var(--radius-s);
  font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
