/* ==========================================================================
   APEX SPORTS — storefront stylesheet
   Design system: deep navy ink + ember orange accent, condensed display type
   ========================================================================== */

:root {
  --ink: #0b1120;
  --ink-2: #131c30;
  --ink-3: #1e2a42;
  --ember: #ff6a1a;
  --ember-dark: #e2550b;
  --ember-soft: rgba(255, 106, 26, 0.12);
  --paper: #ffffff;
  --mist: #f4f6f9;
  --line: #e3e7ee;
  --muted: #5b6884;
  --muted-2: #8a95ac;
  --ok: #17a673;

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 17, 32, 0.06), 0 4px 14px rgba(11, 17, 32, 0.05);
  --shadow-md: 0 10px 30px rgba(11, 17, 32, 0.09);
  --shadow-lg: 0 24px 60px rgba(11, 17, 32, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------- reset / base -- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* Visually hidden but available to assistive tech. Unlike .skip-link, this does
   not rely on a negative offset, so positioned ancestors cannot expose it. */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--ember);
}
.section--ink .eyebrow { color: var(--ember); }

.lede { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }
.section--ink .lede { color: rgba(255, 255, 255, 0.72); }

.section-head { margin-bottom: clamp(28px, 4vw, 46px); }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--ember { --btn-bg: var(--ember); }
.btn--ember:hover { --btn-bg: var(--ember-dark); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn--sm { padding: 10px 18px; font-size: 0.87rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ember);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.text-link:hover { border-color: currentColor; gap: 11px; }

/* ---------------------------------------------------------------- header -- */
.promo-bar {
  background: var(--ink);
  color: #fff;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
}
.promo-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 38px;
  text-align: center;
}
.promo-bar strong { color: var(--ember); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand span em { color: var(--ember); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a { position: relative; padding: 6px 0; color: var(--muted); transition: color 0.2s var(--ease); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--ember);
  transition: width 0.24s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease);
}
.icon-btn:hover { background: var(--mist); }
.icon-btn svg { width: 21px; height: 21px; }

.cart-count {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.cart-count[hidden] { display: none; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------- nav drawer -- */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 86vw);
  background: var(--paper);
  z-index: 130;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mobile-close { align-self: flex-end; margin-bottom: 10px; }

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, #070c18 6%, rgba(7, 12, 24, 0.92) 34%,
    rgba(7, 12, 24, 0.42) 66%, rgba(7, 12, 24, 0.28) 100%);
}
.hero-inner {
  padding: clamp(72px, 12vw, 148px) 0 clamp(64px, 10vw, 130px);
  max-width: 640px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 em { color: var(--ember); font-style: normal; }
.hero .lede { color: rgba(255, 255, 255, 0.78); font-size: 1.1rem; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}
.hero-stats div span {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* --------------------------------------------------------------- marquee -- */
.marquee {
  background: var(--ember);
  color: #fff;
  overflow: hidden;
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: slide 26s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 44px;
}
.marquee span::after { content: "\2726"; font-size: 0.8em; opacity: 0.75; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----------------------------------------------------------- cat tiles -- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.cat-card:hover img { transform: scale(1.06); opacity: 1; }
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0) 34%, rgba(11, 17, 32, 0.88) 100%);
}
.cat-card-body { position: relative; z-index: 1; }
.cat-card-body h3 { margin-bottom: 4px; }
.cat-card-body span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); }
.cat-card--wide { grid-column: span 2; aspect-ratio: auto; min-height: 260px; }

/* --------------------------------------------------------- product grid -- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease),
    border-color 0.26s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--mist);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 1;
}
.badge--ember { background: var(--ember); }

.quick-add {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    background-color 0.2s var(--ease);
  z-index: 2;
}
.product-card:hover .quick-add,
.product-card:focus-within .quick-add { opacity: 1; transform: translateY(0); }
.quick-add:hover { background: var(--ember); }

.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-cat {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  text-transform: uppercase;
  line-height: 1.15;
}
.product-name a:hover { color: var(--ember); }

.rating { display: flex; align-items: center; gap: 6px; font-size: 0.83rem; color: var(--muted); }
.stars { color: var(--ember); letter-spacing: 1px; font-size: 0.85rem; }

.price-row { display: flex; align-items: baseline; gap: 9px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; }
.price-was { color: var(--muted-2); text-decoration: line-through; font-size: 0.9rem; }
.price-off {
  background: var(--ember-soft);
  color: var(--ember-dark);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

/* --------------------------------------------------------------- filters -- */
.shop-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.select-wrap { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
select {
  font: inherit;
  font-size: 0.92rem;
  padding: 10px 36px 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6884' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center / 15px;
  appearance: none;
  color: var(--ink);
  cursor: pointer;
}

.result-count { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }

.empty-state {
  text-align: center;
  padding: 64px 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
}

/* ---------------------------------------------------------- product page -- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted);
  padding: 22px 0 4px;
}
.breadcrumb a:hover { color: var(--ember); }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: start;
  padding: 22px 0 clamp(50px, 7vw, 88px);
}
.pdp-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
  position: sticky;
  top: 100px;
}
.pdp-media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  /* width/height attributes supply the intrinsic ratio; keep height auto so the
     presentational height hint cannot pin the box to 1024px */
  height: auto;
}

.pdp h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 12px; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 18px 0 20px; }
.pdp-price .price { font-size: 2.1rem; }
.pdp-desc { color: var(--muted); font-size: 1.03rem; }

.option-group { margin-top: 24px; }
.option-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.option-label strong { color: var(--ink); letter-spacing: 0.02em; text-transform: none; font-size: 0.86rem; }
.option-values { display: flex; flex-wrap: wrap; gap: 9px; }
.option-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 0.88rem;
  transition: all 0.18s var(--ease);
}
.option-btn:hover { border-color: var(--ink); }
.option-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.qty-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 18px; }
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.stepper button { width: 44px; height: 46px; font-size: 1.15rem; color: var(--muted); transition: background 0.18s var(--ease); }
.stepper button:hover { background: var(--mist); color: var(--ink); }
.stepper span { min-width: 40px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty-row .btn { flex: 1; min-width: 190px; }

.stock-note { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ok); font-weight: 500; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 0.94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--muted); font-weight: 500; width: 42%; }
.spec-table td { font-weight: 500; }

.assurance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.assurance div { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.assurance svg { width: 19px; height: 19px; color: var(--ember); flex: none; margin-top: 2px; }

/* ---------------------------------------------------------- feature cards -- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.feature-card .ficon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--ember);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-card .ficon svg { width: 23px; height: 23px; color: #fff; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.93rem; }

/* ------------------------------------------------------------ split band -- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.split-list { margin-top: 22px; display: grid; gap: 12px; }
.split-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); }
.split-list svg { width: 20px; height: 20px; color: var(--ember); flex: none; margin-top: 3px; }

/* -------------------------------------------------------------- newsletter -- */
.newsletter {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 58px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -130px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.34), transparent 68%);
}
.newsletter > * { position: relative; }
.newsletter h2 { margin-bottom: 10px; }
.newsletter p { color: rgba(255, 255, 255, 0.72); }

.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--ember); }
.form-note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); margin-top: 12px; }

/* ------------------------------------------------------------------ footer -- */
.site-footer { background: var(--ink-2); color: rgba(255, 255, 255, 0.72); padding: clamp(46px, 6vw, 76px) 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(140px, 1fr));
  gap: 34px;
}
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand-mark { background: var(--ember); }
.footer-brand p { font-size: 0.93rem; max-width: 34ch; }
.footer-col h4 {
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.93rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--ember); }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.socials a:hover { background: var(--ember); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; color: #fff; }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------ cart drawer -- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.52);
  backdrop-filter: blur(2px);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 92vw);
  background: var(--paper);
  z-index: 130;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 1.45rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-line { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 74px; height: 74px; border-radius: 11px; object-fit: cover; background: var(--mist); }
.cart-line h3 { font-size: 1.05rem; margin-bottom: 3px; }
.cart-line .meta { font-size: 0.8rem; color: var(--muted-2); margin-bottom: 8px; }
.cart-line .line-price { font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; }
.cart-line .remove { font-size: 0.8rem; color: var(--muted); text-decoration: underline; }
.cart-line .remove:hover { color: var(--ember); }
.cart-line .stepper { transform: scale(0.86); transform-origin: left center; }

.cart-foot { padding: 20px 22px 24px; border-top: 1px solid var(--line); background: var(--mist); }
.cart-summary { display: grid; gap: 9px; margin-bottom: 16px; font-size: 0.93rem; }
.cart-summary div { display: flex; justify-content: space-between; color: var(--muted); }
.cart-summary .total { color: var(--ink); font-weight: 700; font-size: 1.15rem; font-family: var(--font-display); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }

.cart-drawer-note { font-size: 0.78rem; color: var(--muted-2); text-align: center; margin-top: 12px; }

/* ------------------------------------------------------------------ toast -- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 130%);
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  transition: transform 0.34s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 40px);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--ember); flex: none; }

/* ------------------------------------------------------------------- page -- */
.page-hero { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 84px) 0; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 12px; }

.prose h2 { margin: 38px 0 14px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose ul { display: grid; gap: 10px; margin: 18px 0; }
.prose ul li { display: flex; gap: 11px; color: var(--muted); }
.prose ul svg { width: 19px; height: 19px; color: var(--ember); flex: none; margin-top: 4px; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  text-align: center;
}
.stat-strip div { padding: 26px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-strip strong { display: block; font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: var(--ember); }
.stat-strip span { font-size: 0.86rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }

/* ------------------------------------------------------------------ forms -- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.field textarea { min-height: 134px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ember); }
.field select { border-radius: 999px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(26px, 5vw, 56px); align-items: start; }
.contact-card { background: var(--mist); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 18px; }
.contact-card .row { display: flex; gap: 13px; align-items: flex-start; }
.contact-card svg { width: 20px; height: 20px; color: var(--ember); flex: none; margin-top: 3px; }
.contact-card strong { display: block; font-size: 0.95rem; }
.contact-card span { font-size: 0.9rem; color: var(--muted); }

/* ---------------------------------------------------------------- reveal -- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pdp-media { position: static; }
  /* keep one even 2-across grid instead of a 3+3+2 orphan row */
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .pdp { grid-template-columns: 1fr; }
  .cat-card--wide { grid-column: span 1; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .product-body { padding: 13px 14px 16px; gap: 5px; }
  .product-name { font-size: 1.02rem; }
  /* let the price row wrap: in a narrow card the discount chip was being clipped */
  .price-row { flex-wrap: wrap; gap: 3px 7px; }
  .price { font-size: 1.16rem; }
  .price-was { font-size: 0.8rem; }
  .price-off { font-size: 0.68rem; padding: 2px 7px; }
  .quick-add { opacity: 1; transform: none; padding: 10px; font-size: 0.84rem; }
  .cat-card { padding: 16px; }
  .hero-media img { object-position: 68% center; }
  /* three even stat columns, instead of a ragged 2 + 1 wrap */
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .hero-stats div strong { font-size: 1.6rem; }
  .hero-stats div span { font-size: 0.68rem; letter-spacing: 0.05em; }
  .shop-bar { flex-direction: column; align-items: stretch; }
  .select-wrap { flex-wrap: wrap; }
  .qty-row .btn { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cart-drawer, .overlay, .toast, .promo-bar, .marquee { display: none !important; }
}
