/* ============================================================
   TugaKits — Redesign v1 (Stitch / Editorial Swiss)
   Loaded after tokens.css. Replaces styles.css on home + catalog.
   ============================================================ */

/* ── Utilities ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* overflow-x on body breaks position:sticky on iOS Safari (creates BFC).
   clip on html prevents horizontal scroll without affecting sticky. */
html { overflow-x: clip; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-red); color: var(--accent-red-ink); }

/* ── Page container ── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--margin-page);
}

.section { padding: var(--space-7) 0; }
.section--xl { padding: var(--space-8) 0; }
.section--inverse {
  background: var(--bg-inverse);
  color: var(--ink-inverse);
}
.section--inverse a { color: var(--ink-inverse); }

/* ── Hairline rules ── */
.rule       { border: 0; border-top: var(--rule-w) solid var(--rule); width: 100%; }
.rule--soft { border: 0; border-top: var(--rule-w) solid var(--rule-soft); width: 100%; }

/* ── Typography ── */
.display-hero {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .display-hero { font-size: clamp(44px, 18vw, 96px); }
}
.display-lg {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.display-md {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.headline-sm {
  font-family: var(--font-body);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.body-lg   { font-size: var(--step-2); line-height: 1.4; }
.body-md   { font-size: var(--step-1); line-height: 1.5; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-block;
}
.eyebrow--muted { color: var(--ink-muted); }
.eyebrow--red   { color: var(--accent-red-text); }
.eyebrow--inverse { color: var(--ink-inverse); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0;
}

.txt-red    { color: var(--accent-red-text); }
.txt-muted  { color: var(--ink-muted); }
.txt-strong { color: var(--ink-strong); }

/* ── Buttons ── */
.btn-primary,
.btn-ghost,
.btn-inverse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 var(--space-4);
  border: var(--rule-w) solid transparent;
  border-radius: var(--radius-0);
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--motion-base) var(--easing),
              color var(--motion-base) var(--easing),
              border-color var(--motion-base) var(--easing);
  user-select: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-red);
  color: var(--accent-red-ink);
  border-color: var(--accent-red);
}
.btn-primary:hover { background: var(--accent-red-dim); border-color: var(--accent-red-dim); }
.btn-ghost {
  background: transparent;
  color: var(--ink-strong);
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--ink-strong); color: var(--ink-inverse); }
.btn-inverse {
  background: transparent;
  color: var(--ink-inverse);
  border-color: var(--ink-inverse);
}
.btn-inverse:hover { background: var(--ink-inverse); color: var(--ink-strong); }
.btn-block { width: 100%; }

/* ── Focus visibility ── */
:focus-visible {
  outline: 2px solid var(--accent-red-dim);
  outline-offset: 3px;
  border-radius: 1px;
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-inverse:focus-visible {
  outline: 2px solid var(--accent-red-dim);
  outline-offset: 4px;
}

/* ── Sphere gate overlay ── */
#sphere-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
#sphere-gate.sphere-gate--out { opacity: 0; pointer-events: none; }
#sphere-frame { width: 100%; height: 100%; border: 0; display: block; }
#sphere-skip {
  position: absolute;
  bottom: var(--space-7, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}
#sphere-skip:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-page);
  border-bottom: var(--rule-w) solid var(--rule);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--margin-page);
  max-width: 1440px;
  margin: 0 auto;
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink-strong);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.navbar-brand::after {
  content: "++";
  color: var(--accent-red-text);
  font-weight: 800;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.navbar-links a {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-strong);
  transition: color var(--motion-fast) var(--easing);
}
.navbar-links a:hover { color: var(--accent-red-text); }
.navbar-list-link {
  position: relative;
}
.cart-badge {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-red-text);
}
.cart-badge:empty::before { content: "(0)"; color: var(--ink-muted); }
.cart-badge:not(:empty)::before { content: "("; }
.cart-badge:not(:empty)::after  { content: ")"; }

/* Auth */
.user-auth { display: inline-flex; align-items: center; gap: var(--space-3); }
.btn-sign-in {
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: none;
  border: none;
  min-height: 32px;
  padding: 0 var(--space-2);
  opacity: 0.55;
  cursor: pointer;
}
.btn-sign-in:hover { opacity: 1; color: var(--ink-strong); background: none; }
.user-menu { display: inline-flex; align-items: center; gap: var(--space-2); }
.user-avatar { width: 28px; height: 28px; border: var(--rule-w) solid var(--rule); }
.user-name { font-size: var(--step--1); font-family: var(--font-mono); }
.btn-sign-out {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.btn-sign-out:hover { color: var(--accent-red-text); }
.admin-link { color: var(--accent-red-text) !important; }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-strong);
  transition: transform var(--motion-base) var(--easing), opacity var(--motion-fast);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-4) var(--margin-page);
    background: var(--bg-page);
    border-bottom: var(--rule-w) solid var(--rule);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform var(--motion-base) var(--easing), visibility 0s linear var(--motion-base);
    z-index: 40;
    pointer-events: none;
  }
  .navbar-links.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--motion-base) var(--easing), visibility 0s linear 0s;
  }

  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 39;
    pointer-events: none;
  }

  .navbar-links > a,
  .navbar-links > .user-auth,
  .navbar-links > .navbar-list-link {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: var(--rule-w) solid var(--rule-soft);
  }
}

/* ── Hero ── */
.hero {
  padding: var(--space-7) 0 var(--space-8);
}
.hero-eyebrow { margin-bottom: var(--space-4); }
.hero-title {
  margin-bottom: var(--space-5);
}
.hero-title .word-red { color: var(--accent-red); }
.hero-image {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border: var(--rule-w) solid var(--rule);
  margin-bottom: var(--space-5);
  background: var(--bg-surface-hi);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: .03em;
}
.trust-strip li::before {
  content: '✓ ';
  color: var(--accent-red-text);
}

.hero-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
  margin: 0 0 var(--space-5);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-steps-sep {
  color: var(--accent-red-text);
  font-size: 14px;
}
@media (max-width: 480px) {
  .hero-steps { flex-direction: column; gap: var(--space-1); }
  .hero-steps-sep { display: none; }
}

/* ── Editorial intro ── */
.editorial {
  display: grid;
  grid-template-columns: 1fr 8fr;
  gap: var(--space-6);
  padding: var(--space-7) 0;
  border-top: var(--rule-w) solid var(--rule);
}
.editorial-eyebrow { padding-top: 8px; }
@media (max-width: 768px) {
  .editorial { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ── Section header ── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: var(--rule-w) solid var(--rule);
  margin-bottom: var(--space-5);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.0;
  text-transform: uppercase;
}
.section-head .mono { color: var(--ink-muted); }

/* ── Carousel controls (shared: home + any future use) ── */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}
.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: var(--rule-w) solid var(--rule);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--motion-base) var(--easing), color var(--motion-base) var(--easing);
  line-height: 1;
  padding: 0;
}
.carousel-btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--ink-inverse);
  border-color: var(--ink);
}
.carousel-btn:disabled { opacity: 0.25; cursor: default; }

/* ── Parallax Depth Carousel ── */
.px-carousel {
  position: relative;
  overflow: hidden;
  cursor: none; /* replaced by custom cursor */
}
/* Custom drag cursor — singleton, appended to body */
.px-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: translate;
}
.px-cursor-inner {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
              background 0.2s ease,
              border-color 0.2s ease;
}
.px-cursor-inner::after {
  content: 'DRAG';
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.px-cursor-inner--visible {
  transform: translate(-50%, -50%) scale(1);
}
.px-cursor-inner--press {
  transform: translate(-50%, -50%) scale(0.72);
  background: rgba(0, 0, 0, 0.06);
}
.px-track {
  position: relative;
  perspective: 1200px;
  perspective-origin: 50% 36%;
  background: transparent;
  border: none;
  touch-action: pan-y;
}
.px-track .product-card {
  position: absolute;
  top: 0;
  left: 0;
  /* overflow managed by .card-window; removing here allows badge to float outside */
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  cursor: none;
  user-select: none;
  -webkit-user-drag: none;
  border: var(--rule-w) solid var(--rule);
  border-radius: 0;
  background: var(--bg-surface);
}

/* Jersey image parallax window — clips the oversized (1.6×) image */
.px-track .card-window {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-bottom: var(--rule-w) solid var(--rule);
}
.px-track .card-window .product-card-img {
  width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

/* Badge: absolute-positioned label that floats above the card's top border.
   translateZ(12px) lifts it in 3D space; negative top sits it above the edge. */
.card-badge-float {
  position: absolute;
  top: 0;
  left: var(--space-3);
  transform: translateY(-100%) translateZ(12px);
  z-index: 4;
  background: var(--ink-strong);
  color: var(--ink-inverse);
  border: var(--rule-w) solid var(--ink-strong);
  border-bottom: none;
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  white-space: nowrap;
  pointer-events: none;
  border-radius: 0;
}
/* Trending variant: red fill */
.card-badge-float:empty { display: none; }

/* Legacy badge rule on .px-track kept for backward compat during transition */
.px-track .badge:not(.card-badge-float) {
  transform: translateY(-7px) translateZ(8px);
  will-change: filter;
}
/* Images and text don't intercept pointer events — card <a> and shell get them */
.px-track .product-card-img,
.px-track .product-card-body {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.px-track .product-card-img {
  transform-origin: center center;
  will-change: transform;
  width: 100%;
  flex-shrink: 0;
  transition: filter 0.5s ease;
}
.px-track .product-card-img.img-loading {
  filter: blur(14px);
}

/* Screen-reader-only utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

/* Glint overlay: a diagonal light streak across the active card */
.px-glint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 25%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 75%
  );
  transform: translateX(-210%);
  pointer-events: none;
  z-index: 3;
}
@keyframes px-glint {
  0%   { transform: translateX(-210%); }
  100% { transform: translateX(210%);  }
}

/* Progress bar */
.px-progress {
  height: 2px;
  background: var(--rule);
  margin-top: var(--space-3);
  position: relative;
  overflow: hidden;
}
.px-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink-strong);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.22, 0.1, 0.36, 1);
}

/* ── Product grid (5-up on hairline grid) ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: var(--rule-w);
  background: var(--rule);
  border: var(--rule-w) solid var(--rule);
}
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Product card ── */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  color: var(--ink);
  position: relative;
  transition: background var(--motion-base) var(--easing);
}
.product-card:hover { background: var(--bg-surface-alt); }
.product-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-surface-hi);
  flex-shrink: 0;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: var(--rule-w) solid var(--rule);
}
.product-card-name {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.product-card .badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--accent-red);
  color: var(--accent-red-ink);
  z-index: 1;
}
.product-card .badge--ghost {
  background: transparent;
  color: var(--ink-strong);
  border: var(--rule-w) solid var(--rule);
}
.product-card .badge--mono {
  background: var(--bg-surface);
  color: var(--ink-strong);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.product-card .badge--sold,
.product-card .badge.badge-soldout {
  background: var(--ink-strong);
  color: var(--ink-inverse);
}
.product-card .badge.badge-pre {
  background: var(--bg-surface);
  color: var(--ink-strong);
  border: var(--rule-w) solid var(--rule);
}

.no-results {
  grid-column: 1 / -1;
  padding: var(--space-7) var(--space-3);
  text-align: center;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  background: var(--bg-surface);
}

/* ── How it works (3 numbered rows) ── */
.steps {
  border-top: var(--rule-w) solid var(--rule);
}
.step {
  display: grid;
  grid-template-columns: 160px 1fr 4fr;
  align-items: baseline;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: var(--rule-w) solid var(--rule);
}
.step-num {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-red);
  letter-spacing: -0.04em;
}
.step-title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.step-body { font-size: var(--step-1); line-height: 1.5; max-width: 60ch; }
@media (max-width: 768px) {
  .step { grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-5) 0; }
  .step-num { font-size: var(--step-4); }
  .step-title { font-size: var(--step-3); }
}

/* ── WC2026 strip (inverse band) ── */
.wc-strip {
  padding: var(--space-8) 0;
  text-align: center;
}
.wc-strip h2 {
  font-family: var(--font-display);
  font-size: var(--step-6);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-inverse);
  margin-bottom: var(--space-5);
}
.wc-strip h2 .word-red { color: var(--accent-red); }
@media (max-width: 768px) {
  .wc-strip h2 { font-size: clamp(40px, 12.5vw, 72px); overflow-wrap: break-word; }
}

/* ── Newsletter ── */
.newsletter-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding: var(--space-7) 0;
  border-top: var(--rule-w) solid var(--rule);
}
.newsletter-band h2 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.0;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.newsletter-form input[type="email"] {
  height: 48px;
  padding: 0 var(--space-3);
  background: transparent;
  border: var(--rule-w) solid var(--rule);
  font-size: var(--step-0);
  border-radius: 0;
  outline: none;
  transition: border-color var(--motion-fast) var(--easing);
}
.newsletter-form input[type="email"]:focus { border-color: var(--accent-red); }
@media (max-width: 768px) {
  .newsletter-band { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ── Tagline + wordmark band ── */
.tagline-band {
  padding: var(--space-7) 0 var(--space-3);
  text-align: center;
  border-top: var(--rule-w) solid var(--rule);
}
.tagline-band p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--ink-strong);
}
.wordmark-band {
  text-align: center;
  padding-bottom: var(--space-5);
  overflow: hidden;
}
.wordmark-band span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 320px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--ink-strong);
  text-transform: uppercase;
}
.wordmark-band .accent { color: var(--accent-red); }

/* ── Flag-stripe ── */
.flag-stripe {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  height: 60px;
  border-top: var(--rule-w) solid var(--rule);
  border-bottom: var(--rule-w) solid var(--rule);
}
.flag-stripe span:nth-child(1) { background: var(--accent-red); }
.flag-stripe span:nth-child(2) { background: var(--ink-strong); }
.flag-stripe span:nth-child(3) { background: var(--bg-surface); }

/* ── Footer ── */
.footer {
  padding: var(--space-6) 0 var(--space-4);
  border-top: var(--rule-w) solid var(--rule);
  background: var(--bg-page);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-5);
}
.footer h4 {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--ink-muted);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.footer a {
  font-size: var(--step-0);
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 10px;
}
.footer a:hover { color: var(--accent-red-text); }
.footer-bottom a { display: inline; min-height: unset; padding-block: 0; }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: var(--rule-w) solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-bottom { flex-wrap: wrap; gap: var(--space-2); }
}

/* ── Catalog hero ── */
.catalog-hero {
  padding: var(--space-6) 0 var(--space-5);
  border-bottom: var(--rule-w) solid var(--rule);
}
.catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}
.catalog-breadcrumb a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-block: 11px;
}
.catalog-breadcrumb a:hover { color: var(--accent-red-text); }
.catalog-hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--accent-red);
  overflow-wrap: break-word;
}
@media (max-width: 768px) {
  .catalog-hero h1 { font-size: clamp(44px, 14vw, 80px); }
}
.catalog-hero-sub {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* ── Filter bar ── */
.filters {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: var(--bg-page);
  padding: var(--space-3) 0;
  border-bottom: var(--rule-w) solid var(--rule);
}
.filter-row-1,
.filter-row-2 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.filter-row-2 { margin-top: var(--space-2); }

.filter-search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  height: 44px;
  padding: 0 var(--space-3);
  background: transparent;
  border: var(--rule-w) solid var(--rule);
  border-radius: 0;
  font-size: var(--step-0);
  outline: none;
  transition: border-color var(--motion-fast) var(--easing);
}
.filter-search:focus { border-color: var(--accent-red); }

.filter-select {
  height: 44px;
  padding: 0 var(--space-3);
  background: transparent;
  border: var(--rule-w) solid var(--rule);
  border-radius: 0;
  font-size: var(--step--1);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%231A1A1A' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.filter-select[data-filtered="true"] {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: var(--accent-red-ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23fff7f6' stroke-width='1.5' fill='none'/></svg>");
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 var(--space-3);
  border: var(--rule-w) solid var(--rule);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-strong);
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background var(--motion-fast) var(--easing), color var(--motion-fast) var(--easing);
}
.filter-chip:hover { background: var(--ink-strong); color: var(--ink-inverse); }
.filter-chip-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.filter-chip:has(.filter-chip-input:checked) {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: var(--accent-red-ink);
}

.clear-filters-btn {
  min-height: 44px;
  padding: 0 var(--space-3);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border: var(--rule-w) solid var(--rule);
  background: transparent;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--motion-fast) var(--easing);
}
.clear-filters-btn[data-active="true"] {
  visibility: visible;
  opacity: 1;
}
.clear-filters-btn:hover { color: var(--accent-red-text); }

.catalog-result-count {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-muted);
  padding: var(--space-3) 0;
}

.catalog-section { padding: var(--space-3) 0 var(--space-7); }

/* Load more */
.load-more {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: var(--space-4);
  background: transparent;
  border: var(--rule-w) solid var(--rule);
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-strong);
  cursor: pointer;
  transition: background var(--motion-fast) var(--easing), color var(--motion-fast) var(--easing);
}
.load-more:hover { background: var(--ink-strong); color: var(--ink-inverse); }
.load-more:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Tree picker (catalog.html loads redesign.css only — styles.css not loaded here) ── */
.treepick-host {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.treepick-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
}
.treepick-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.treepick-caret { font-size: 0.8em; color: var(--ink-muted); }
.treepick-panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 100;
  min-width: 260px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: var(--rule-w) solid var(--rule);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: var(--space-1) 0;
}
.treepick-node {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 6px 12px;
  font-size: var(--step--1);
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--ink);
}
.treepick-node:hover { background: var(--bg-surface-hi); }
.treepick-node.treepick-inactive { color: var(--ink-muted); font-style: italic; }
.treepick-toggle {
  display: inline-block;
  width: 1em;
  text-align: center;
  color: var(--ink-muted);
}
.treepick-toggle.treepick-leaf { visibility: hidden; }
.treepick-children { border-left: var(--rule-w) solid var(--rule-soft); margin-left: 12px; }
.treepick-host[data-filtered="true"] .treepick-button {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: var(--accent-red-ink);
}

/* Mobile: panel must not overflow viewport */
@media (max-width: 768px) {
  .treepick-host { flex-shrink: 0; }
  .treepick-panel {
    position: fixed;
    left: var(--margin-page);
    right: var(--margin-page);
    bottom: var(--space-3);
    top: auto;
    min-width: 0;
    max-width: none;
    max-height: 55vh;
    z-index: 200;
  }
}

/* Mobile filter bar layout */
@media (max-width: 600px) {
  .filter-search {
    min-width: 0;
    flex: 1 1 100%;
    max-width: none;
  }
  .filter-row-1 {
    row-gap: var(--space-2);
  }
}

/* Prevent iOS Safari auto-zoom: any input/select with font-size < 16px triggers
   a persistent viewport zoom on focus. Force 16px on mobile for all filter controls. */
@media (max-width: 768px) {
  .filter-search,
  .filter-select {
    font-size: 16px;
  }
}

/* Compact card body on small phones */
@media (max-width: 480px) {
  .product-card-body {
    padding: var(--space-2);
  }
  .product-card-name {
    font-size: 12px;
  }
  .product-card-meta {
    font-size: 11px;
  }
}

/* Pagination progress banner (catalog.js streams pages after first paint) */
.catalog-loading-more {
  margin-top: var(--space-3);
  padding: var(--space-3) 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-muted);
  border-top: var(--rule-w) solid var(--rule-soft);
}

/* ── Spinner ── */
.spinner {
  grid-column: 1 / -1;
  width: 24px;
  height: 24px;
  margin: var(--space-6) auto;
  border: 2px solid var(--rule-soft);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Skeleton cards ── */
.skeleton-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
}
.skeleton-card-img {
  width: 100%;
  padding-bottom: 100%;
  background: var(--bg-surface-hi);
  flex-shrink: 0;
}
.skeleton-card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: var(--rule-w) solid var(--rule);
}
.skeleton-line {
  height: 12px;
  border-radius: 2px;
  background: var(--bg-surface-hi);
}
.skeleton-line--lg { height: 16px; width: 80%; }
.skeleton-line--sm { width: 50%; }
@keyframes shimmer {
  0%   { opacity: 1; }
  50%  { opacity: 0.4; }
  100% { opacity: 1; }
}
.skeleton-card { animation: shimmer 1.6s ease-in-out infinite; }
.skeleton-card:nth-child(2) { animation-delay: 0.2s; }
.skeleton-card:nth-child(3) { animation-delay: 0.4s; }
.skeleton-card:nth-child(4) { animation-delay: 0.6s; }
.skeleton-card:nth-child(5) { animation-delay: 0.8s; }
.skeleton-card:nth-child(6) { animation-delay: 1.0s; }

/* ── Infinite scroll sentinel ── */
.catalog-sentinel { grid-column: 1 / -1; height: 1px; visibility: hidden; pointer-events: none; }


/* ── Newsletter modal (re-skin) ── */
.newsletter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.65);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}
.newsletter-overlay.active,
.newsletter-overlay.open { display: flex; }
.newsletter-box {
  background: var(--bg-surface);
  border: var(--rule-w) solid var(--rule);
  max-width: 480px;
  width: 100%;
}
.newsletter-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--rule-w) solid var(--rule);
}
.newsletter-box-header h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.newsletter-close {
  font-size: 24px;
  color: var(--ink-muted);
}
.newsletter-box-body { padding: var(--space-4); }
.newsletter-box-body p { margin-bottom: var(--space-3); font-size: var(--step-0); }
.newsletter-field { margin-bottom: var(--space-3); }
.newsletter-field label {
  display: block;
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink-muted);
}
.newsletter-field input {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-3);
  border: var(--rule-w) solid var(--rule);
  background: transparent;
  border-radius: 0;
  outline: none;
}
.newsletter-field input:focus { border-color: var(--accent-red); }
.newsletter-submit { width: 100%; height: 48px; background: var(--accent-red); color: var(--accent-red-ink); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--step--2); border: 0; }
.newsletter-cancel { width: 100%; height: 40px; margin-top: var(--space-2); background: transparent; color: var(--ink-muted); font-size: var(--step--2); }
.newsletter-msg { display: none; margin-top: var(--space-2); font-size: var(--step--1); }
.newsletter-msg.error { color: var(--accent-red-text); }
.newsletter-msg.success { color: var(--ink-strong); }
.newsletter-msg.show { display: block; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Product detail page
   ============================================================ */

.product-hero {
  padding: var(--space-5) 0 var(--space-3);
}
.catalog-breadcrumb a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-block: 11px;
}
.catalog-breadcrumb a:hover { color: var(--accent-red-text); }

.product-section { padding: var(--space-3) 0 var(--space-7); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ── Carousel (product detail image gallery — scoped to .carousel wrapper) ── */
.carousel {
  position: relative;
  background: var(--bg-page-soft);
  border: var(--rule-w) solid var(--rule);
  overflow: hidden;
}
.carousel-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--ink-strong);
  color: var(--ink-inverse);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: none;
  transition: background var(--motion-fast) var(--easing);
}
.carousel .carousel-btn:hover { background: var(--accent-red); }
.carousel .carousel-prev { left: var(--space-3); }
.carousel .carousel-next { right: var(--space-3); }
.carousel-dots {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.carousel-dot {
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background var(--motion-fast) var(--easing);
}
.carousel-dot.active { background: var(--accent-red); }

/* ── Product info ── */
.product-info { padding-top: var(--space-2); }
.product-info h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink-strong);
  margin-bottom: var(--space-3);
}
.product-info .meta {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: var(--space-3);
  border-bottom: var(--rule-w) solid var(--rule-soft);
  margin-bottom: var(--space-4);
}

/* ── Stock badge ── */
.stock-badge {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: var(--rule-w) solid currentColor;
  margin-bottom: var(--space-4);
}
.stock-badge--instock  { color: var(--ink-strong); background: var(--bg-page-soft); }
.stock-badge--soldout  { color: var(--ink-inverse); background: var(--ink-strong); border-color: var(--ink-strong); }
.stock-badge--preorder { color: var(--accent-red-text); }
.stock-badge--oos      { color: var(--ink-muted); }

/* ── Size selector ── */
.size-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}
.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-2);
}
.size-option {
  position: relative;
  min-width: 56px;
  height: 44px;
  padding: 0 14px;
  background: transparent;
  border: var(--rule-w) solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-strong);
  border-radius: 0;
  cursor: pointer;
  transition: background var(--motion-fast) var(--easing),
              color var(--motion-fast) var(--easing),
              border-color var(--motion-fast) var(--easing);
}
.size-option:hover {
  background: var(--ink-strong);
  color: var(--ink-inverse);
  border-color: var(--ink-strong);
}
.size-option.active {
  background: var(--accent-red);
  color: var(--accent-red-ink);
  border-color: var(--accent-red);
}
.size-preorder-label {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 9px;
  letter-spacing: 0.08em;
  background: var(--ink-strong);
  color: var(--ink-inverse);
  padding: 2px 5px;
}
.size-option.active .size-preorder-label {
  background: var(--ink-strong);
  color: var(--ink-inverse);
}
.size-option--special {
  border-style: dashed;
  color: var(--ink-muted);
}
.size-option--special:hover {
  background: var(--ink-strong);
  color: var(--ink-inverse);
  border-color: var(--ink-strong);
  border-style: solid;
}
.size-option--special.active {
  background: var(--accent-red);
  color: var(--accent-red-ink);
  border-color: var(--accent-red);
  border-style: solid;
}
.size-special-note {
  font-family: var(--font-body);
  font-size: var(--step--2);
  color: var(--ink-muted);
  margin: 0 0 var(--space-2);
  line-height: 1.4;
}
.size-guide-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--accent-red-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.size-guide-link:hover { text-decoration: underline; }

/* ── Quantity ── */
.qty-selector {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.qty-selector label {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.qty-selector select {
  height: 40px;
  padding: 0 var(--space-3);
  background: transparent;
  border: var(--rule-w) solid var(--rule);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%231A1A1A' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ── Customization ── */
.customization {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: var(--rule-w) solid var(--rule-soft);
  background: var(--bg-page-soft);
}
.customization-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--step-0);
  cursor: pointer;
}
.customization-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-red);
  cursor: pointer;
}
.customization-fields {
  display: none;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.customization-fields input {
  flex: 1;
  min-width: 160px;
  height: 40px;
  padding: 0 var(--space-3);
  background: var(--bg-page);
  border: var(--rule-w) solid var(--rule);
  border-radius: 0;
  outline: none;
  font-size: var(--step-0);
}
.customization-fields input:focus { border-color: var(--accent-red); }

/* ── Add to Request List button + hint ── */
#requestBtn {
  display: block;
  width: 100%;
  margin-top: var(--space-5);
  height: 56px;
  font-size: var(--step-0);
  letter-spacing: 0.14em;
}
#requestBtn:disabled {
  background: var(--ink-muted);
  border-color: var(--ink-muted);
  color: var(--ink-inverse);
  cursor: not-allowed;
}
.request-hint {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

/* ============================================================
   Generic modal (used by product.html request-list confirm)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
}
.modal-overlay.active,
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-page);
  border: var(--rule-w) solid var(--ink-strong);
  width: 100%;
  max-width: 480px;
  padding: var(--space-5);
  border-radius: 0;
}
.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: var(--rule-w) solid var(--rule);
  margin-bottom: var(--space-3);
}
.modal-title-row h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}
.modal-close-btn {
  font-size: 24px;
  color: var(--ink-muted);
  line-height: 1;
}
.modal-close-btn:hover { color: var(--accent-red-text); }
.modal-body-text { margin: 0 0 var(--space-2); font-size: var(--step-0); }
.modal-body-sub  { margin: 0; font-family: var(--font-mono); font-size: var(--step--2); color: var(--ink-muted); }
.modal-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.modal-actions > * { flex: 1; min-width: 140px; text-align: center; }

/* ── Spinner ── */
.no-results {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-muted);
  text-align: center;
  padding: var(--space-7) 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.no-results a { color: var(--accent-red-text); }

/* ============================================================
   Confirmation page
   ============================================================ */
.confirmation-section { padding: var(--space-7) 0 var(--space-5); border-bottom: var(--rule-w) solid var(--rule); }
.confirmation { max-width: 720px; }
.conf-eyebrow { margin-bottom: var(--space-4); }
.conf-title {
  color: var(--ink-strong);
  margin-bottom: var(--space-4);
}
.conf-lede { max-width: 56ch; color: var(--ink-muted); margin-bottom: var(--space-5); }
.conf-ref {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  border: var(--rule-w) solid var(--ink-strong);
  margin-bottom: var(--space-5);
  background: var(--bg-page-soft);
}
.conf-ref-id {
  font-size: var(--step-2);
  color: var(--ink-strong);
  letter-spacing: 0.04em;
}
.conf-items {
  list-style: none;
  border-top: var(--rule-w) solid var(--rule);
  margin-bottom: var(--space-5);
}
.conf-items li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: var(--rule-w) solid var(--rule-soft);
}
.conf-item-name { font-size: var(--step-1); }
.conf-item-meta { color: var(--ink-muted); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.conf-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ============================================================
   How It Works (full-viewport step sections)
   ============================================================ */
.hiw-step {
  min-height: 70vh;
  padding: var(--space-7) 0;
  display: flex;
  align-items: center;
  border-bottom: var(--rule-w) solid var(--rule);
}
.hiw-step:last-child { border-bottom: 0; }
.hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  width: 100%;
}
@media (max-width: 900px) {
  .hiw-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hiw-step { min-height: auto; }
}
.hiw-num {
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 260px);
  font-weight: 800;
  line-height: 0.85;
  color: var(--accent-red);
  letter-spacing: -0.06em;
}
.hiw-step--inverse {
  background: var(--bg-inverse);
  color: var(--ink-inverse);
}
.hiw-step--inverse .hiw-num { color: var(--accent-red); }
.hiw-eyebrow { margin-bottom: var(--space-4); }
.hiw-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  color: var(--ink-strong);
}
.hiw-step--inverse .hiw-headline { color: var(--ink-inverse); }
.hiw-body { font-size: var(--step-1); line-height: 1.5; color: var(--ink-muted); max-width: 48ch; }
.hiw-step--inverse .hiw-body { color: var(--ink-inverse); opacity: 0.8; }

.hiw-cta-band { padding: var(--space-7) 0; text-align: center; }
.hiw-cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.hiw-cta-band h2 .word-red { color: var(--accent-red); }

/* ============================================================
   About (long-form editorial)
   ============================================================ */
.about-hero {
  padding: var(--space-7) 0 var(--space-5);
  border-bottom: var(--rule-w) solid var(--rule);
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: var(--space-4);
  overflow-wrap: break-word;
}
@media (max-width: 768px) {
  .about-hero h1 { font-size: clamp(44px, 14vw, 80px); }
}
.about-hero p { max-width: 60ch; font-size: var(--step-1); color: var(--ink-muted); }

.about-grid {
  padding: var(--space-7) 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}
.about-section { margin-bottom: var(--space-6); }
.about-section:last-child { margin-bottom: 0; }
.about-section .eyebrow { margin-bottom: var(--space-3); }
.about-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--ink-strong);
}
.about-section p { font-size: var(--step-1); line-height: 1.6; margin-bottom: var(--space-3); }
.about-section p:last-child { margin-bottom: 0; }

.about-aside {
  position: sticky;
  top: 96px;
  padding: var(--space-5);
  background: var(--bg-page-soft);
  border: var(--rule-w) solid var(--rule);
}
.about-aside h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  color: var(--ink-strong);
}
.about-aside ul { list-style: none; padding: 0; }
.about-aside li {
  padding: var(--space-2) 0;
  border-top: var(--rule-w) solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}
.about-aside li:first-child { border-top: 0; }
.about-aside li span:first-child { color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.about-aside li span:last-child  { color: var(--ink-strong); text-align: right; }

/* ─────────────────────────────────────────
   Request List (cart) page — editorial
   ───────────────────────────────────────── */
.list-header {
  padding: var(--space-7) 0 var(--space-5);
  border-bottom: var(--rule-w) solid var(--rule);
}
.list-title { margin-bottom: var(--space-4); }
.list-section { padding: var(--space-6) 0 var(--space-7); }
.list-shell { display: block; }

.cart-empty {
  padding: var(--space-7) 0;
  text-align: left;
  border-top: var(--rule-w) solid var(--rule);
  border-bottom: var(--rule-w) solid var(--rule);
}
.cart-empty p {
  font-family: var(--font-display);
  font-size: var(--step-3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-strong);
  margin-bottom: var(--space-4);
}

.cart-items {
  display: block;
  border-top: var(--rule-w) solid var(--rule);
  margin-bottom: var(--space-6);
}
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr 80px 32px;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: var(--rule-w) solid var(--rule);
}
.cart-item-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: var(--bg-page-soft);
  display: block;
}
.cart-item-name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}
.cart-item-details {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.customization-fee-label { color: var(--accent-red-text); }
.cart-item-qty select.qty-change {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-surface);
  border: var(--rule-w) solid var(--ink-strong);
  border-radius: 0;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  width: 100%;
}
.cart-item-qty select.qty-change:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}
.cart-item-remove {
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  padding: var(--space-2);
}
.cart-item-remove:hover { color: var(--accent-red-text); }

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 72px 1fr 32px;
    grid-template-rows: auto auto;
    gap: var(--space-3);
  }
  .cart-item-img { width: 72px; height: 72px; }
  .cart-item-qty {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    max-width: 100px;
  }
  .cart-item-remove {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    align-self: start;
  }
}

.form-section {
  border-top: var(--rule-w) solid var(--rule);
  padding-top: var(--space-6);
  margin-top: var(--space-6);
}
.form-section h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-strong);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.form-row > .form-group:only-child { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}
.form-group .required { color: var(--accent-red-text); margin-left: 4px; }
.form-group input,
.form-group textarea {
  background: var(--bg-surface);
  border: var(--rule-w) solid var(--ink-strong);
  border-radius: 0;
  padding: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  color: var(--ink-strong);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 0;
  border-color: var(--accent-red);
}
.form-group input[readonly] {
  background: var(--bg-page-soft);
  color: var(--ink-muted);
  cursor: not-allowed;
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.whatsapp-flag {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-strong);
  cursor: pointer;
}
.whatsapp-flag input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-red);
  cursor: pointer;
}
.list-submit-btn { width: 100%; margin-top: var(--space-5); }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Scroll Sequence ──────────────────────────────────────────────────────── */
.scroll-seq-section {
  position: relative;
  height: 400vh;
}

.scroll-seq-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.scroll-seq-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.scroll-seq-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}

/* Scroll cue */
.scroll-seq-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scroll-seq-cue-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Animated dot inside the mouse icon */
@keyframes scrollDot {
  0%   { transform: translateY(0);   opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

.scroll-seq-dot {
  animation: scrollDot 1.6s ease-in-out infinite;
}

/* ── Jersey Swiper Gallery (.sg-*) ───────────────────────────────────────
   Layout (top → bottom, all inside one 1px black border):
     1. Square (1:1) main swiper — jersey shown full via object-fit: contain
     2. Editorial text block — badge / name / meta, ample padding
     3. 7-up thumb strip — edge-fade gradient masks, inset border on active
   ──────────────────────────────────────────────────────────────────────── */

/* Outer frame: constrained width + single editorial black border */
.sg-wrap {
  max-width: 520px;
  margin: 0 auto;
  border: var(--rule-w) solid var(--ink-strong);
}

/* Square main swiper — aspect-ratio computes height from width */
.sg-main {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* Each slide is a block link that fills the swiper-slide */
.sg-slide {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
}

/* Image window fills the full square */
.sg-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
}

/* contain keeps the full jersey visible; bg fills letterbox areas */
.sg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Editorial text block — sits below the square, inside sg-wrap */
.sg-info {
  padding: var(--space-4);
  border-top: var(--rule-w) solid var(--rule);
  border-bottom: var(--rule-w) solid var(--rule);
  background: var(--bg-surface);
}

.sg-badge {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}

.sg-name {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-sub {
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thumb strip — edge gradient masks soften the ends */
.sg-thumbs {
  display: block;
  width: 100%;
  height: 64px;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 28px,
    black calc(100% - 28px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 28px,
    black calc(100% - 28px),
    transparent 100%
  );
}

.sg-thumb {
  height: 64px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

/* Subtle 1px inset black border highlights the active thumb */
.sg-thumb.swiper-slide-thumb-active {
  opacity: 1;
  box-shadow: inset 0 0 0 1px var(--ink-strong);
}

.sg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-surface-alt);
  display: block;
  pointer-events: none;
}

@media (max-width: 560px) {
  .sg-wrap    { max-width: 100%; }
  .sg-name    { font-size: var(--step-2); }
}

/* ── Thumbnail Carousel (.tc-*) ──────────────────────────────────────────────
   Used on the Trending section of the home page.
   Full-width draggable main image + accordion thumbnail strip.
   ──────────────────────────────────────────────────────────────────────────── */

.tc-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Main image viewport */
.tc-main-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  height: 480px;
}

/* Sliding track — all slides laid out horizontally */
.tc-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
}

.tc-track:active { cursor: grabbing; }

.tc-slide {
  flex: 0 0 100%;
  height: 100%;
}

.tc-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.tc-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-surface);
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Overlay prev / next buttons */
.tc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-page);
  border: var(--rule-w) solid var(--rule);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  opacity: 0.75;
  transition: opacity var(--motion-base) ease, transform var(--motion-base) ease;
  z-index: 10;
  color: var(--ink);
}

.tc-btn:hover:not(:disabled) {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.tc-btn:disabled { opacity: 0.2; cursor: default; }

.tc-btn--prev { left:  var(--space-3); }
.tc-btn--next { right: var(--space-3); }

/* Info panel — reuses sg-badge / sg-name / sg-sub typography */
.tc-info { padding: var(--space-3) 0; }

/* Thumbnail strip */
.tc-thumbs-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tc-thumbs-wrap::-webkit-scrollbar { display: none; }

.tc-thumbs {
  display: flex;
  gap: 2px;
  height: 80px;
  padding-bottom: 4px;
  width: fit-content;
}

.tc-thumb {
  width: 35px;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: width 0.3s ease, margin 0.3s ease, opacity 0.2s ease;
}

.tc-thumb--active {
  width: 120px;
  margin: 0 2px;
  opacity: 1;
}

.tc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 560px) {
  .tc-btn { width: 32px; height: 32px; }
}

/* ── Progressive Carousel (.ps-*) ────────────────────────────────────────────
   Full-width crossfading slide + frosted-glass progress-button strip.
   Used on Trending + Featured sections of the home page.
   ──────────────────────────────────────────────────────────────────────────── */

/* When a progressive carousel is the only content, flatten the grid container */
.product-grid:has(.ps-wrap) {
  display: block;
  background: transparent;
  border: none;
  gap: 0;
}

.ps-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.ps-slides {
  position: relative;
  height: 500px;
  background: var(--bg-surface);
  overflow: hidden;
}

.ps-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: block;
  text-decoration: none;
  pointer-events: none;
  z-index: 0;
}

.ps-slide--active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.ps-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px);
  opacity: 0.55;
  transform: scale(1.08);
  pointer-events: none;
  user-select: none;
}

.ps-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

.ps-btn-group {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: grid;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(240, 237, 232, 0.82);
  border-top: var(--rule-w) solid var(--rule);
}

.ps-btn {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border: none;
  border-right: var(--rule-w) solid var(--rule);
  opacity: 0.45;
  transition: opacity 0.2s ease;
  cursor: pointer;
  background: transparent;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ps-btn:last-child { border-right: none; }
.ps-btn--active { opacity: 1; }

.ps-btn-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--ink);
  color: var(--bg-page);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  align-self: flex-start;
}

.ps-btn-desc {
  font-size: 12px;
  color: var(--ink-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 1.4;
}

.ps-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: rgba(0, 0, 0, 0.06);
  z-index: -1;
  transition: none;
}

@media (max-width: 768px) {
  .ps-slides { height: 380px; }
  .ps-btn-group { grid-template-columns: repeat(2, 1fr) !important; }
  .ps-btn { padding: var(--space-2) var(--space-3); }
}

@media (max-width: 480px) {
  .ps-slides { height: 280px; }
  .ps-btn-desc { display: none; }
}

/* ── Circular Gallery (.cg-*) ─────────────────────────────────────────────── */
.product-grid:has(.cg-scene) {
  display: block;
  background: transparent;
  border: none;
  gap: 0;
  padding: 0;
}

/* overflow-x: clip trims horizontal bleed without creating a stacking context —
   overflow: hidden would flatten the 3D perspective on everything inside */
.cg-wrap {
  position: relative;
  width: 100%;
  overflow-x: clip;
  padding-top: 32px;
}

.cg-scene {
  position: relative;
  width: 100%;
  height: 440px;
  perspective: 1400px;
  overflow: visible;
  cursor: grab;
  user-select: none;
}

.cg-scene:active { cursor: grabbing; }

.cg-wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -110px;
  margin-top: -154px;
  width: 220px;
  height: 308px;
  transform-style: preserve-3d;
  will-change: transform;
}

.cg-card {
  position: absolute;
  width: 220px;
  height: 308px;
  left: 50%;
  top: 50%;
  margin-left: -110px;
  margin-top: -154px;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: visible;
  text-decoration: none;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  transition: opacity 0.15s;
}

.cg-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.cg-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cg-sub {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-style: italic;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .cg-scene  { height: 355px; perspective: 1100px; }
  .cg-wheel  { width: 175px; height: 245px; margin-left: -88px; margin-top: -123px; }
  .cg-card   { width: 175px; height: 245px; margin-left: -88px; margin-top: -123px; }
  .cg-overlay { padding: 12px; }
  .cg-title  { font-size: 15px; }
  .cg-sub    { font-size: 11px; }
}

@media (max-width: 480px) {
  .cg-scene  { height: 280px; perspective: 900px; }
  .cg-wheel  { width: 133px; height: 186px; margin-left: -67px; margin-top: -93px; }
  .cg-card   { width: 133px; height: 186px; margin-left: -67px; margin-top: -93px; }
  .cg-overlay { padding: 10px; }
  .cg-title  { font-size: 12px; }
  .cg-sub    { font-size: 9px; }
}
