/*
 * Store-first visual refocus — 2026-07-14
 * Kept as a separate layer so the presentation can be reviewed or removed
 * without disturbing the verified catalog and commerce foundation.
 */

:root {
  --store-header-height: 72px;
  --store-panel: #101416;
  --store-panel-raised: #171d20;
  --store-frost: #f2f3f3;
  --store-line-dark: rgba(255, 255, 255, .12);
  --store-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

/* The internal supplier/demo strip duplicated information already stated in
   the footer, cart and checkout. The storefront now starts with the brand. */
.utility-bar { display: none !important; }

.site-header {
  top: 0;
  height: var(--store-header-height);
  background: linear-gradient(180deg, rgba(5, 7, 8, .72), rgba(5, 7, 8, 0));
  border-bottom-color: rgba(255, 255, 255, .14);
}

.site-header.is-scrolled,
.is-route .site-header {
  height: 64px;
  background: rgba(8, 11, 13, .96);
  border-bottom-color: rgba(255, 255, 255, .11);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px) saturate(120%);
}

.desktop-nav a { padding-inline: 1.08rem; }
.desktop-nav a::after { left: 1.08rem; right: 1.08rem; }
.wish-button { min-width: 44px; min-height: 44px; }

/* Store-first hero */
.hero {
  min-height: 720px;
  height: clamp(720px, 94svh, 1040px);
}

.hero-media { transform: scale(1.008); }
.hero-media img { object-position: 58% center; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 6, 7, .97) 0%, rgba(4, 6, 7, .86) 27%, rgba(4, 6, 7, .34) 54%, rgba(4, 6, 7, .06) 78%),
    linear-gradient(0deg, rgba(4, 6, 7, .72), transparent 42%);
}
.hero-grid { opacity: .065; }
.hero::after { opacity: .32; }
.hero-copy { top: 52%; max-width: 760px; transform: translateY(-47%); }
.hero h1 { max-width: 730px; margin-bottom: 1.35rem; }
.hero-lede { margin-bottom: 1.7rem; }
.hero-actions .button-primary { min-width: 205px; }
.hero-actions .button-ghost { min-width: 215px; background: rgba(7, 9, 10, .28); }

/* Build lab — the signature interaction */
.machine-explorer {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5.4rem, 8vw, 8.4rem);
  background:
    radial-gradient(circle at 64% 42%, rgba(239, 32, 41, .07), transparent 30%),
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .035), transparent 32%),
    #080b0d;
}

.machine-explorer::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .25;
  pointer-events: none;
  background-image: linear-gradient(115deg, transparent 0 69%, rgba(255, 255, 255, .035) 69% 69.1%, transparent 69.1%);
  background-size: 320px 100%;
}

.explorer-intro { align-items: end; margin-bottom: clamp(2rem, 3.4vw, 3.5rem); }
.explorer-intro h2 { max-width: 950px; font-size: clamp(4rem, 6.8vw, 7.8rem); }
.explorer-intro > p { max-width: 450px; }

.explorer-shell {
  min-height: 0;
  grid-template-columns: minmax(0, 1.62fr) minmax(310px, .58fr);
  border-color: rgba(255, 255, 255, .16);
  background: #0c1012;
  box-shadow: var(--store-shadow), 0 0 0 1px rgba(255, 255, 255, .025) inset;
}

.explorer-stage {
  min-height: 570px;
  background:
    radial-gradient(ellipse at 55% 52%, #22282b 0%, #111618 38%, #07090a 76%);
  cursor: grab;
}
.explorer-stage:active { cursor: grabbing; }
.explorer-stage::before {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  width: 3px;
  height: 22%;
  content: "";
  background: var(--race-red);
  pointer-events: none;
}
.explorer-stage::after {
  z-index: 3;
  background:
    linear-gradient(90deg, transparent 63%, rgba(5, 7, 8, .36)),
    linear-gradient(0deg, rgba(5, 7, 8, .34), transparent 24%);
  pointer-events: none;
}

.explorer-stage-grid {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 53% 52%, black, transparent 78%);
}

.explorer-stage-hud {
  position: absolute;
  z-index: 7;
  left: 1rem;
  right: 1rem;
  top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, .48);
  pointer-events: none;
  font: 700 .5rem/1 var(--mono);
  letter-spacing: .14em;
}
.explorer-stage-hud span:first-child { color: rgba(255, 255, 255, .78); }
.explorer-loading { top: 2.8rem; right: 1rem; max-width: 280px; }
.explorer-concept-badge { z-index: 7; }

.explorer-controls {
  padding: clamp(1.15rem, 1.8vw, 1.45rem);
  background: linear-gradient(180deg, #161c1f, #101416);
  border-left-color: rgba(255, 255, 255, .1);
}
.explorer-control-head { padding-bottom: .85rem; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.explorer-control-head strong { font-size: .67rem; }
.explorer-range-wrap { position: relative; padding-block: .35rem; }
.explorer-controls input[type="range"] {
  height: 34px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}
.explorer-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(90deg, var(--race-red), rgba(255, 255, 255, .22));
}
.explorer-controls input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7.5px;
  appearance: none;
  background: #fff;
  border: 4px solid var(--race-red);
  border-radius: 0;
  box-shadow: 0 0 0 4px rgba(239, 32, 41, .16);
  transform: rotate(45deg);
}
.explorer-controls input[type="range"]::-moz-range-track { height: 3px; background: rgba(255, 255, 255, .22); }
.explorer-controls input[type="range"]::-moz-range-progress { height: 3px; background: var(--race-red); }
.explorer-controls input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; background: #fff; border: 4px solid var(--race-red); border-radius: 0; transform: rotate(45deg); }
.explorer-range-labels { margin-top: -.15rem; }
.explorer-buttons { grid-template-columns: 1fr 1fr; gap: .55rem; }
.explorer-buttons #explorerLoad { grid-column: 1 / -1; }
.explorer-buttons .text-button { grid-column: 1 / -1; }
.explorer-part-item,
.explorer-part { transition: background .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.explorer-part-item:hover,
.explorer-part:hover { background: #1d2427; }
.explorer-part-item[data-selected] { background: #20282b; box-shadow: inset 3px 0 var(--race-red), 0 0 24px rgba(239, 32, 41, .08); }
.explorer-part__link { background: #171d20; }

/* Featured products: calm catalogue objects, not campaign cards. */
.latest-releases { padding-block: clamp(4.8rem, 7vw, 7.2rem); }
.release-heading { margin-top: clamp(2rem, 3vw, 3rem); }
.release-heading h2 { font-size: clamp(3.9rem, 6.4vw, 7.2rem); }
.release-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: #d5d9da;
  background: #d5d9da;
}
.release-card:first-child { grid-row: auto; grid-column: auto; }
.release-card-media,
.release-card:first-child .release-card-media { min-height: 0; aspect-ratio: 1.14 / 1; }
.release-card-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  content: "";
  pointer-events: none;
  background: linear-gradient(transparent, rgba(6, 8, 9, .08));
}
.release-card-copy { min-height: 124px; align-items: center; }
.release-card-copy a { transition: color .2s, background .2s, transform .2s var(--ease-out); }
.release-card-copy a:hover { color: #fff; background: var(--race-red); transform: translate(2px, -2px); }

/* Machine finder remains a compact purchase tool. */
.bike-finder { padding-block: clamp(3rem, 4.4vw, 4.4rem); }
.finder-layout { gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(2rem, 3vw, 3rem); }

/* One focused custom teaser on home. The full studio remains at /custom. */
.custom-teaser {
  width: 100%;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  color: #fff;
  background: #090c0e;
  overflow: hidden;
}
.custom-teaser-media { position: relative; min-height: 590px; overflow: hidden; }
.custom-teaser-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent 58%, rgba(9, 12, 14, .82)), linear-gradient(0deg, rgba(9, 12, 14, .28), transparent 45%);
}
.custom-teaser-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s var(--ease-out); }
.custom-teaser:hover .custom-teaser-media img { transform: scale(1.015); }
.custom-teaser-media > span {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  bottom: 1.6rem;
  padding: .55rem .7rem;
  color: #fff;
  background: rgba(7, 9, 10, .82);
  border-left: 3px solid var(--race-red);
  font: 750 .52rem var(--mono);
  letter-spacing: .13em;
}
.custom-teaser-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(3rem, 6vw, 6rem) var(--pad) clamp(3rem, 6vw, 6rem) clamp(1.4rem, 4vw, 4rem);
}
.custom-teaser-copy h2 {
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(3.4rem, 5vw, 6.2rem);
  font-weight: 950;
  line-height: .82;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.custom-teaser-copy h2 em { color: var(--race-red); font-style: italic; }
.custom-teaser-copy > p:not(.eyebrow) { max-width: 480px; margin: 0 0 1.65rem; color: rgba(255, 255, 255, .62); line-height: 1.72; }

/* Catalog routes begin with the products, not a second campaign hero. */
.route-view {
  min-height: 100vh;
  padding: calc(64px + clamp(1rem, 2.4vw, 2rem)) var(--pad) clamp(4rem, 7vw, 7rem);
}
.route-view > * { width: min(100%, 1540px); }
.route-view > .shop-section { padding-top: 0; padding-bottom: 0; }
.route-view .shop-section > .section-kicker { padding-top: .35rem; }
.route-view .shop-heading { align-items: center; padding: clamp(1.25rem, 2.5vw, 2rem) 0 1.4rem; }
.shop-heading h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 5.7rem);
  font-weight: 950;
  line-height: .82;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.route-view .shop-heading .eyebrow { margin-bottom: .55rem; }
.route-view .shop-controls { max-width: min(800px, 66vw); }
.route-view .filter-row { margin-top: .2rem; }
.server-shop-shell { padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.server-shop-shell h1 { margin: .45rem 0 0; font-size: clamp(3rem, 5vw, 5.7rem); }
.server-shop-shell p { color: var(--muted); }

/* Uniform catalogue rhythm gives every product equal buying priority. */
.route-view .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-view .product-card:nth-child(1),
.route-view .product-card:nth-child(7) { grid-column: auto; }
.route-view .product-card:nth-child(1) .product-image,
.route-view .product-card:nth-child(7) .product-image,
.route-view .product-image { aspect-ratio: 1.08 / 1; }
.product-card { transition: box-shadow .24s var(--ease-out), transform .24s var(--ease-out); }
.product-card:hover { z-index: 2; box-shadow: 0 20px 50px rgba(8, 10, 12, .15); }
.product-quick { text-decoration: none; }
.product-info { min-height: 126px; }

/* Product route: image and buy controls are the first and only main surface. */
.route-view > .product-dialog-layout.is-route-product {
  width: min(100%, 1540px);
  grid-template-columns: minmax(0, 1.18fr) minmax(410px, .82fr);
  align-items: start;
  border: 0;
  background: #fff;
  box-shadow: 0 24px 70px rgba(11, 14, 16, .11);
}
.is-route-product .dialog-product-image { min-height: min(780px, calc(100vh - 96px)); }
.is-route-product .dialog-product-info {
  position: sticky;
  top: 76px;
  min-height: min(780px, calc(100vh - 96px));
  justify-content: center;
  padding: clamp(2rem, 4vw, 4.2rem);
  background: #fff;
}
.product-breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; color: var(--muted); font: 700 .52rem var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.product-breadcrumbs a { color: var(--ink); }
.product-breadcrumbs a:hover { color: var(--race-red); }
.is-route-product .dialog-product-info h1 { max-width: 620px; }
.is-route-product .dialog-description { max-width: 580px; }
.is-route-product .product-form { margin-top: .35rem; }

/* Footer is support navigation, not another campaign. */
.footer-main { padding-block: clamp(3.5rem, 6vw, 6rem); }
.footer-bottom { min-height: 64px; }

@media (max-width: 1280px) {
  .explorer-shell { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); }
  .custom-teaser { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); }
}

@media (max-width: 1100px) {
  .release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-view .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-view > .product-dialog-layout.is-route-product { grid-template-columns: 1.05fr .95fr; }
  .is-route-product .dialog-product-info { padding: 2.3rem; }
}

@media (max-width: 900px) {
  .hero { min-height: 680px; height: 90svh; }
  .hero-copy { width: min(680px, calc(100vw - 2 * var(--pad))); }
  .hero-media img { object-position: 62% center; }
  .explorer-shell { grid-template-columns: 1fr; }
  .explorer-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .explorer-controls { border-top: 1px solid var(--store-line-dark); border-left: 0; }
  .custom-teaser { grid-template-columns: 1fr; }
  .custom-teaser-media { min-height: 480px; }
  .custom-teaser-media::after { background: linear-gradient(0deg, rgba(9, 12, 14, .82), transparent 48%); }
  .custom-teaser-copy { padding-top: 3rem; }
  .route-view > .product-dialog-layout.is-route-product { grid-template-columns: 1fr; }
  .is-route-product .dialog-product-image { min-height: 0; height: min(58vw, 520px); }
  .is-route-product .dialog-product-info { position: static; min-height: 0; }
  .route-view .shop-heading { align-items: stretch; }
  .route-view .shop-controls { max-width: none; }
}

@media (max-width: 720px) {
  .site-header { height: 64px; }
  .hero { min-height: 650px; height: 88svh; }
  .hero-shade { background: linear-gradient(0deg, rgba(4, 6, 7, .96) 0%, rgba(4, 6, 7, .66) 52%, rgba(4, 6, 7, .18) 100%); }
  .hero-copy { top: auto; bottom: 5.6rem; transform: none; }
  .hero h1 { font-size: clamp(3.45rem, 16vw, 5.7rem); }
  .hero-actions { align-items: stretch; flex-direction: column; width: min(100%, 390px); }
  .hero-actions .button { width: 100%; }
  .scroll-cue { display: none; }
  .machine-explorer { padding-block: 4.6rem; }
  .explorer-intro { grid-template-columns: 1fr; gap: 1.2rem; }
  .explorer-intro h2 { font-size: clamp(3.5rem, 15vw, 5.8rem); }
  .explorer-stage-hud span:last-child { display: none; }
  .explorer-loading { left: 1rem; right: auto; max-width: calc(100% - 2rem); }
  .explorer-buttons { grid-template-columns: 1fr; }
  .explorer-buttons #explorerLoad,
  .explorer-buttons .text-button { grid-column: auto; }
  .release-grid { grid-template-columns: 1fr; }
  .release-card-media,
  .release-card:first-child .release-card-media { aspect-ratio: 1.18 / 1; }
  .custom-teaser { min-height: 0; }
  .custom-teaser-media { min-height: 390px; }
  .custom-teaser-copy { padding: 2.8rem 1rem 3.8rem; }
  .custom-teaser-copy h2 { font-size: clamp(3.5rem, 15vw, 5.5rem); }
  .route-view { padding: 64px 0 4rem; }
  .route-view > .shop-section { padding-inline: 1rem; }
  .route-view .shop-section > .section-kicker { padding-top: 1rem; }
  .route-view .shop-heading { gap: 1.2rem; }
  .shop-heading h1 { font-size: clamp(3.1rem, 14vw, 5rem); }
  .route-view .shop-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
  .route-view .shop-controls .search-field { grid-column: 1 / -1; }
  .route-view .shop-controls .sort-field { min-width: 0; }
  .route-view .shop-controls .price-field { min-width: 0; }
  .route-view .product-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: #d2d4d5; border: 1px solid #d2d4d5; }
  .route-view .product-card { margin-bottom: 0; border: 0; }
  .route-view .product-image { aspect-ratio: 1.08 / 1; }
  .route-view > .product-dialog-layout.is-route-product { width: 100%; box-shadow: none; }
  .is-route-product .dialog-product-image { height: min(105vw, 440px); }
  .is-route-product .dialog-product-info { padding: 1.7rem 1rem 2.8rem; }
  .is-route-product .dialog-product-info h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .product-breadcrumbs { margin-bottom: .9rem; }
}

@media (max-width: 390px) {
  .hero-copy { bottom: 4.2rem; }
  .hero h1 { font-size: clamp(3.15rem, 15.7vw, 4.6rem); }
  .hero-lede { font-size: .9rem; line-height: 1.55; }
  .custom-teaser-media { min-height: 330px; }
  .route-view .shop-controls { grid-template-columns: 1fr; }
  .route-view .shop-controls .search-field { grid-column: auto; }
}

@media (max-height: 700px) and (orientation: landscape) {
  .hero { min-height: 620px; height: 100svh; }
  .hero-copy { top: 54%; bottom: auto; transform: translateY(-45%); }
  .hero h1 { font-size: clamp(3.2rem, 9vw, 5rem); }
  .hero-lede { margin-bottom: 1rem; }
  .hero-actions { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .custom-teaser-media img,
  .product-card,
  .release-card-copy a { transition: none !important; }
}


/* Mobile advanced catalog filters — compact by default, fully available on demand. */
.catalog-filter-toggle {
  display: none;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font: 800 .62rem var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.catalog-filter-toggle b { color: var(--race-red); font-size: 1rem; }
.catalog-filter-toggle.has-active-filters { box-shadow: inset 3px 0 var(--race-red); }
.catalog-advanced-filters { display: contents; }

@media (max-width: 720px) {
  .route-view .shop-controls,
  .route-view .shop-controls:is(:not(.unused)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .route-view .shop-controls .search-field { grid-column: 1 / -1; }
  .catalog-filter-toggle { display: flex; }
  .catalog-advanced-filters {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .55rem;
    padding: .55rem;
    background: #e6e9ea;
    border-left: 2px solid var(--race-red);
  }
  .catalog-advanced-filters.is-open { display: grid; }
  .catalog-advanced-filters .sort-field { grid-column: 1 / -1; }
  .catalog-advanced-filters .price-field { min-width: 0; }
  .custom-teaser-copy { color: #f5f6f6; }
  .custom-teaser-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, .72); }
}

@media (max-width: 390px) {
  .route-view .shop-controls,
  .route-view .shop-controls:is(:not(.unused)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .route-view .shop-controls .search-field { grid-column: 1 / -1; }
}
