.product-page { background: var(--paper); }
.product-page.cart-open { overflow: hidden; }

.product-hero { position: relative; overflow: hidden; padding: 132px 0 76px; color: var(--white); background: radial-gradient(circle at 12% 22%, rgba(148, 23, 25, .35), transparent 33%), linear-gradient(135deg, var(--wine), var(--ink) 66%); isolation: isolate; }
.product-hero::after { content: "RACE"; position: absolute; z-index: -1; right: -1vw; bottom: 4%; color: rgba(255, 254, 250, .035); font: 900 clamp(12rem, 28vw, 30rem)/.7 var(--display); letter-spacing: -.07em; pointer-events: none; }
.product-breadcrumbs { margin-bottom: 26px; }
.product-layout { display: grid; gap: 36px; }

.product-gallery { min-width: 0; }
.product-stage { position: relative; min-height: 390px; overflow: hidden; display: grid; place-items: center; background: #d8d2c6; isolation: isolate; }
.product-stage::after { content: ""; position: absolute; z-index: -1; right: -22%; bottom: -41%; width: 76%; aspect-ratio: 1; background: rgba(148, 23, 25, .2); transform: rotate(22deg); }
.product-stage-word { position: absolute; z-index: -1; top: 22px; left: 22px; color: rgba(23, 23, 26, .09); font: 900 clamp(5rem, 22vw, 10rem)/.75 var(--display); letter-spacing: -.06em; }
.product-stage img { width: 96%; height: 380px; object-fit: contain; mix-blend-mode: multiply; filter: contrast(1.04) saturate(1.04) drop-shadow(0 30px 26px rgba(23, 23, 26, .2)); transition: opacity .18s ease, transform .35s ease; }
.product-stage.is-changing img { opacity: .15; transform: scale(.97); }
.product-stage-caption { position: absolute; right: 16px; bottom: 16px; padding: 10px 12px; color: var(--white); background: rgba(23, 23, 26, .88); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.product-thumb { position: relative; min-width: 0; aspect-ratio: 1; overflow: hidden; padding: 0; background: #c9c2b6; border: 2px solid transparent; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-thumb::after { content: attr(data-label); position: absolute; right: 4px; bottom: 4px; left: 4px; padding: 6px 4px; color: var(--white); background: rgba(23, 23, 26, .78); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-align: center; text-transform: uppercase; opacity: 0; transition: opacity .18s ease; }
.product-thumb:hover::after, .product-thumb[aria-pressed="true"]::after { opacity: 1; }
.product-thumb[aria-pressed="true"] { border-color: var(--signal); }

.product-buy { align-self: start; }
.product-brand-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: rgba(255, 254, 250, .63); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.product-brand-line span:last-child { color: var(--signal); }
.product-buy h1 { max-width: 9.5ch; margin-top: 20px; font-size: clamp(3.9rem, 16vw, 6.2rem); }
.product-subtitle { max-width: 46ch; margin-top: 20px; color: rgba(255, 254, 250, .72); font-size: 16px; line-height: 1.6; }
.product-price-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 26px; padding: 20px 0; border-top: 1px solid rgba(255, 254, 250, .13); border-bottom: 1px solid rgba(255, 254, 250, .13); }
.product-price { color: var(--signal); font: 800 2rem/1 var(--body); letter-spacing: -.03em; }
.product-stock { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 254, 250, .68); font-size: 12px; font-weight: 700; }
.product-stock::before { content: ""; width: 8px; height: 8px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 4px rgba(199, 227, 75, .12); }
.product-badges { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border: 1px solid rgba(255, 254, 250, .13); }
.product-badge { min-height: 72px; display: grid; place-content: center; gap: 3px; padding: 10px; text-align: center; }
.product-badge + .product-badge { border-left: 1px solid rgba(255, 254, 250, .13); }
.product-badge strong { color: var(--white); font: 800 1.25rem/1 var(--display); text-transform: uppercase; }
.product-badge small { color: rgba(255, 254, 250, .52); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.purchase-form { margin-top: 26px; }
.purchase-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.purchase-label-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.purchase-label-row legend { color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.fit-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--signal); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-underline-offset: 4px; text-transform: uppercase; }
.size-options { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.size-option { position: relative; }
.size-option input { position: absolute; inset: 0; opacity: 0; }
.size-option label { min-height: 50px; display: grid; place-items: center; color: rgba(255, 254, 250, .76); background: rgba(255, 254, 250, .045); border: 1px solid rgba(255, 254, 250, .22); font-size: 12px; font-weight: 800; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.size-option label:hover { color: var(--white); border-color: rgba(255, 254, 250, .48); }
.size-option input:checked + label { color: var(--ink); background: var(--signal); border-color: var(--signal); }
.size-option input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 3px; }
.selection-note { min-height: 24px; margin-top: 9px; color: rgba(255, 254, 250, .56); font-size: 12px; }
.purchase-actions { display: grid; grid-template-columns: 112px 1fr; gap: 10px; margin-top: 18px; }
.quantity-control { min-height: 58px; display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; border: 1px solid rgba(255, 254, 250, .24); }
.quantity-control button { height: 100%; padding: 0; color: var(--white); background: transparent; border: 0; font-size: 1.2rem; }
.quantity-control output { color: var(--white); font-size: 14px; font-weight: 800; text-align: center; }
.add-to-bag { min-height: 58px; padding: 0 20px; color: var(--ink); background: var(--signal); border: 1px solid var(--signal); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; transition: color .2s ease, background .2s ease, transform .2s ease; }
.add-to-bag:hover:not(:disabled) { color: var(--signal); background: transparent; transform: translateY(-2px); }
.add-to-bag:disabled { cursor: not-allowed; opacity: .42; }

.purchase-trust { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border-top: 1px solid rgba(255, 254, 250, .13); border-left: 1px solid rgba(255, 254, 250, .13); }
.trust-item { min-height: 112px; padding: 17px 15px; border-right: 1px solid rgba(255, 254, 250, .13); border-bottom: 1px solid rgba(255, 254, 250, .13); }
.trust-icon { width: 26px; height: 26px; display: grid; place-items: center; margin-bottom: 12px; color: var(--signal); }
.trust-icon svg { width: 24px; height: 24px; }
.trust-item strong { display: block; color: var(--white); font-size: 12px; }
.trust-item span { display: block; margin-top: 4px; color: rgba(255, 254, 250, .55); font-size: 11px; line-height: 1.4; }
.purchase-help { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 15px 17px; color: var(--white); background: rgba(148, 23, 25, .36); border-left: 4px solid var(--signal); text-decoration: none; }
.purchase-help span { color: rgba(255, 254, 250, .62); font-size: 11px; }
.purchase-help strong { display: block; margin-top: 3px; font: 800 1.35rem/1 var(--display); text-transform: uppercase; }
.purchase-help b { color: var(--signal); font: 400 1.1rem/1 var(--body); }

.proof-band { color: var(--ink); background: var(--signal); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; }
.proof-metric { min-height: 150px; display: grid; align-content: center; padding: 24px 20px; border-right: 1px solid rgba(23, 23, 26, .16); border-bottom: 1px solid rgba(23, 23, 26, .16); }
.proof-metric strong { font: 900 clamp(3rem, 13vw, 5.4rem)/.8 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.proof-metric span { max-width: 18ch; margin-top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .09em; line-height: 1.35; text-transform: uppercase; }

.product-story, .product-details, .product-next { padding: 92px 0; }
.story-grid { display: grid; gap: 40px; }
.story-copy h2 { max-width: 9ch; }
.story-copy h2 em { color: var(--red); font-style: normal; }
.story-copy .lede { margin-top: 24px; }
.story-points { display: grid; gap: 1px; margin-top: 34px; background: var(--line); border: 1px solid var(--line); }
.story-point { padding: 22px; background: var(--paper); }
.story-point strong { display: block; font: 800 1.7rem/1 var(--display); text-transform: uppercase; }
.story-point p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.story-media { position: relative; min-height: 480px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #d8d2c6 0 67%, rgba(148, 23, 25, .28) 67%); border: 14px solid #29282d; isolation: isolate; }
.story-media::before { content: "X-PRO"; position: absolute; z-index: -1; right: -10px; bottom: 18px; color: rgba(23, 23, 26, .07); font: 900 9rem/.7 var(--display); letter-spacing: -.06em; }
.story-media img { width: 96%; height: 470px; object-fit: contain; mix-blend-mode: multiply; filter: contrast(1.06) saturate(1.05) drop-shadow(0 34px 28px rgba(23, 23, 26, .26)); }
.story-media-tag { position: absolute; right: 18px; bottom: 18px; left: 18px; padding: 13px 15px; color: var(--white); background: rgba(23, 23, 26, .8); border-left: 3px solid var(--signal); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; backdrop-filter: blur(8px); }

.product-details { color: var(--white); background: var(--ink); }
.details-grid { display: grid; gap: 48px; }
.details-intro .eyebrow { color: rgba(255, 254, 250, .54); }
.details-intro h2 { max-width: 8ch; }
.details-intro .lede { margin-top: 22px; color: rgba(255, 254, 250, .62); }
.spec-list { border-top: 1px solid rgba(255, 254, 250, .14); }
.spec-row { display: grid; grid-template-columns: minmax(110px, .7fr) 1.3fr; gap: 20px; margin: 0; padding: 18px 0; border-bottom: 1px solid rgba(255, 254, 250, .14); }
.spec-row dt { color: rgba(255, 254, 250, .48); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.spec-row dd { margin: 0; color: var(--white); font-size: 14px; line-height: 1.45; }
.policy-stack { margin-top: 32px; }
.policy-stack details { border-top: 1px solid rgba(255, 254, 250, .14); }
.policy-stack details:last-child { border-bottom: 1px solid rgba(255, 254, 250, .14); }
.policy-stack summary { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--white); font-size: 13px; font-weight: 800; letter-spacing: .08em; list-style: none; text-transform: uppercase; cursor: pointer; }
.policy-stack summary::-webkit-details-marker { display: none; }
.policy-stack summary::after { content: "+"; color: var(--signal); font-size: 1.3rem; font-weight: 400; }
.policy-stack details[open] summary::after { content: "−"; }
.policy-stack details p { padding: 0 0 22px; color: rgba(255, 254, 250, .62); font-size: 14px; line-height: 1.6; }

.product-next { background: var(--surface); }
.product-next-grid { display: grid; gap: 16px; margin-top: 36px; }
.next-card { position: relative; min-height: 300px; overflow: hidden; display: flex; align-items: end; padding: 28px; color: var(--white); background: var(--wine); text-decoration: none; isolation: isolate; }
.next-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 12, .92), rgba(10, 10, 12, .1)); }
.next-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.next-card:hover img { transform: scale(1.035); }
.next-card h3 { max-width: 8ch; }
.next-card span { display: inline-flex; margin-top: 14px; color: var(--signal); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.cart-scrim { position: fixed; z-index: 300; inset: 0; padding: 0; background: rgba(8, 5, 7, .72); border: 0; opacity: 0; visibility: hidden; pointer-events: none; backdrop-filter: blur(7px); transition: opacity .2s ease, visibility .2s ease; }
.cart-drawer { position: fixed; z-index: 301; right: 0; bottom: 0; left: 0; max-height: calc(100dvh - 16px); overflow: auto; padding: 24px; color: var(--ink); background: var(--paper); box-shadow: 0 -28px 80px rgba(8, 5, 7, .38); transform: translateY(105%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .7, .2, 1), visibility .28s ease; }
.cart-open .cart-scrim { opacity: 1; visibility: visible; pointer-events: auto; }
.cart-open .cart-drawer { transform: none; visibility: visible; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-head p { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cart-head h2 { margin-top: 5px; font-size: 2.5rem; }
.cart-close { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); }
.cart-close svg { width: 18px; height: 18px; }
.cart-product { display: grid; grid-template-columns: 104px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-product-media { display: grid; place-items: center; background: var(--surface); }
.cart-product-media img { width: 100%; height: 100px; object-fit: contain; mix-blend-mode: multiply; }
.cart-product strong { display: block; font: 800 1.45rem/1.05 var(--display); text-transform: uppercase; }
.cart-product p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.cart-product-price { margin-top: 10px !important; color: var(--red) !important; font-weight: 800; }
.cart-subtotal { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 14px; }
.cart-subtotal strong { font-size: 1.1rem; }
.cart-note { padding: 14px; color: #5a5550; background: #e6e0d5; border-left: 4px solid var(--red); font-size: 12px; line-height: 1.5; }
.cart-actions { display: grid; gap: 10px; margin-top: 18px; }
.cart-actions .btn { width: 100%; }
.cart-actions .btn-secondary { color: var(--ink); border-color: var(--ink); }
.cart-actions .btn-secondary:hover { color: var(--white); background: var(--ink); }
.cart-status { min-height: 20px; margin-top: 10px; color: var(--red); font-size: 12px; font-weight: 700; }

@media (min-width: 620px) {
  .product-stage { min-height: 560px; }
  .product-stage img { height: 540px; }
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
  .proof-metric { min-height: 180px; border-bottom: 0; }
  .product-next-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 861px) {
  .product-hero { min-height: 100vh; padding: 144px 0 86px; }
  .product-layout { grid-template-columns: minmax(0, 1.22fr) minmax(420px, .78fr); align-items: start; gap: 58px; }
  .product-stage { min-height: 690px; }
  .product-stage img { height: 660px; }
  .product-buy { padding-top: 8px; }
  .product-buy h1 { font-size: clamp(5.2rem, 6.5vw, 7rem); }
  .proof-metric { padding: 30px; }
  .product-story, .product-details, .product-next { padding: 132px 0; }
  .story-grid { grid-template-columns: minmax(0, .84fr) minmax(480px, 1.16fr); align-items: center; gap: 84px; }
  .story-points { grid-template-columns: 1fr 1fr; }
  .story-media { min-height: 700px; }
  .story-media img { height: 680px; }
  .details-grid { grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr); gap: 100px; }
  .product-next-grid { grid-template-columns: 1.2fr .8fr; }
  .next-card { min-height: 420px; }
  .cart-drawer { top: 0; bottom: 0; left: auto; width: min(460px, 92vw); max-height: none; padding: 32px; box-shadow: -28px 0 80px rgba(8, 5, 7, .38); transform: translateX(105%); }
}

@media (prefers-reduced-motion: reduce) {
  .product-stage img, .cart-scrim, .cart-drawer { transition-duration: .01ms !important; }
}
