:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #62676f;
  --line: #dadde3;
  --surface: #ffffff;
  --soft: #f3f5f7;
  --accent: #c82128;
  --accent-2: #0d6b78;
  --gold: #d59b2d;
  --green: #2e7d5b;
  --shadow: 0 18px 50px rgba(21, 21, 21, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: linear-gradient(135deg, var(--accent), #2a2a2a);
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong {
  font-size: 1.02rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: #333942;
  font-size: 0.94rem;
}

.main-nav a {
  text-decoration: none;
}

.cart-button,
.button {
  min-height: 44px;
  border: 0;
  background: var(--ink);
  color: white;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 6px;
}

.cart-button span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.82rem;
}

.button--ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(600px, calc(100svh - 118px), 820px);
  padding: clamp(64px, 8vw, 120px) clamp(22px, 6vw, 92px);
  color: white;
  background: #111417;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.9) 0%, rgba(7, 9, 11, 0.7) 38%, rgba(7, 9, 11, 0.34) 66%, rgba(7, 9, 11, 0.22) 100%),
    linear-gradient(0deg, rgba(7, 9, 11, 0.54) 0%, rgba(7, 9, 11, 0.08) 55%, rgba(7, 9, 11, 0.18) 100%);
  pointer-events: none;
}

.hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 58%;
  opacity: 0.78;
  filter: saturate(0.74) brightness(0.86) contrast(0.96);
  transform: scale(1.01);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(3.8rem, 7vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.55vw, 1.32rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero .eyebrow {
  color: #ffd0d0;
}

.hero .button {
  background: white;
  color: var(--ink);
}

.hero .button--ghost {
  color: white;
  background: rgba(10, 12, 14, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

@media (min-width: 1500px) {
  .hero {
    min-height: clamp(660px, calc(100svh - 118px), 900px);
  }

  .hero__background {
    object-position: center 56%;
  }
}

@media (min-aspect-ratio: 2/1) {
  .hero {
    min-height: clamp(560px, calc(100svh - 100px), 760px);
  }

  .hero__background {
    object-position: center 62%;
  }
}

.fitment-band,
.catalog-section,
.support-section,
.newsletter-section,
.program-grid {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.fitment-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: 34px;
  background: var(--ink);
  color: white;
}

.fitment-band .eyebrow {
  color: #ffb4b4;
}

.fitment-band h2,
.section-heading h2,
.program-grid h2,
.support-section h2,
.newsletter-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.fitment-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 14px;
}

.fitment-form label,
.newsletter-section label {
  display: grid;
  gap: 8px;
}

.fitment-form span,
.newsletter-section span {
  color: #b9c0ca;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fitment-form input,
.fitment-form select,
.newsletter-section input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 0 12px;
  border-radius: 6px;
}

.fitment-form select option {
  color: var(--ink);
}

.fitment-form .button {
  align-self: end;
  background: var(--accent);
}

.category-section {
  padding: 24px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.category-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  background: white;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
}

.chip--active {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading > p {
  color: var(--muted);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.product-card__media {
  position: relative;
  width: 100%;
  border: 0;
  background: var(--soft);
  padding: 0;
  display: block;
}

.product-card__media > span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: white;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.product-card__body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-card__body p {
  margin: 0;
  color: var(--accent-2);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.product-card h3 {
  min-height: 58px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.product-card dl,
.checkout-box dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.product-card dl div,
.checkout-box dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.product-card dt,
.checkout-box dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.product-card dd,
.checkout-box dd {
  margin: 0;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 800;
}

.price-row,
.card-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-row strong,
.dialog-actions strong {
  font-size: 1.18rem;
}

.price-row span {
  color: var(--muted);
  text-decoration: line-through;
}

.card-actions {
  align-items: stretch;
}

.card-actions .button {
  flex: 1;
  min-height: 40px;
  padding: 0 10px;
  font-size: 0.9rem;
}

.product-photo,
.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.22;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0)),
    var(--visual-bg, #e8ebef);
}

.product-photo {
  background: #f5f6f8;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-photo .product-visual {
  position: absolute;
  inset: 0;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
}

.product-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f6f8;
  aspect-ratio: 1;
}

.product-gallery__hero {
  grid-column: 1 / -1;
  aspect-ratio: 1.35;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-visual--carbon {
  --visual-bg: #1b1e22;
  --part-a: #0a0a0a;
  --part-b: #4d535c;
}

.product-visual--red {
  --visual-bg: #eceff3;
  --part-a: #ba111a;
  --part-b: #421111;
}

.product-visual--graphite {
  --visual-bg: #dde2e8;
  --part-a: #333a42;
  --part-b: #111317;
}

.product-visual--blue {
  --visual-bg: #dce9f2;
  --part-a: #164c7d;
  --part-b: #0c1f34;
}

.product-visual--silver {
  --visual-bg: #eceff2;
  --part-a: #b4bbc4;
  --part-b: #515963;
}

.product-visual--white {
  --visual-bg: #eef1f3;
  --part-a: #f9fbfc;
  --part-b: #b6bec8;
}

.product-visual--orange {
  --visual-bg: #f2e6da;
  --part-a: #d87628;
  --part-b: #4f2411;
}

.part-shadow,
.part-shell,
.part-vent {
  position: absolute;
}

.part-shadow {
  bottom: 22%;
  width: 62%;
  height: 12%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  filter: blur(14px);
}

.part-shell {
  width: 68%;
  height: 38%;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 6px),
    linear-gradient(135deg, var(--part-a, #111), var(--part-b, #555));
  clip-path: polygon(6% 18%, 78% 0, 98% 76%, 35% 100%, 0 72%);
  transform: skewX(-9deg);
}

.part-vent {
  width: 18%;
  height: 8%;
  background: rgba(0, 0, 0, 0.45);
  transform: skewX(-18deg);
}

.part-vent--one {
  left: 36%;
  top: 42%;
}

.part-vent--two {
  left: 55%;
  top: 38%;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-band article {
  display: grid;
  gap: 8px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--soft);
}

.trust-band strong {
  font-size: 1.1rem;
}

.trust-band span {
  color: var(--muted);
  line-height: 1.5;
}

.program-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 18px;
  background: #f7f7f4;
}

.program-grid article {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
}

.program-grid h3 {
  margin: 0;
}

.program-grid p,
.support-section p,
.newsletter-section p {
  color: var(--muted);
  line-height: 1.55;
}

.program-grid a {
  color: var(--accent);
  font-weight: 900;
}

.support-section {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 34px;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

summary {
  font-weight: 900;
  cursor: pointer;
}

.newsletter-section {
  display: grid;
  grid-template-columns: 0.8fr minmax(280px, 0.7fr);
  gap: 28px;
  color: white;
  background: var(--ink);
}

.newsletter-section .eyebrow {
  color: #ffb4b4;
}

.newsletter-section form {
  display: grid;
  align-content: start;
  gap: 14px;
}

.newsletter-section .button {
  background: var(--accent);
}

.cart-drawer {
  position: fixed;
  inset: 10px 10px 10px auto;
  z-index: 80;
  width: min(440px, calc(100vw - 20px));
  padding: 20px;
  background: white;
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition:
    transform 220ms ease,
    visibility 220ms;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 8px;
  visibility: hidden;
}

.cart-open .cart-drawer {
  transform: translateX(0);
  visibility: visible;
}

.cart-open {
  overflow: hidden;
}

.cart-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(9, 11, 13, 0.52);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 220ms ease,
    visibility 220ms;
}

.cart-open .cart-backdrop {
  opacity: 1;
  visibility: visible;
}

.cart-drawer__header {
  position: sticky;
  top: -20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -20px -20px 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.cart-drawer__header strong {
  font-size: 1.3rem;
}

.cart-drawer__header button,
#dialogClose {
  border: 1px solid var(--line);
  background: white;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
}

.cart-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.cart-line .product-visual {
  border-radius: 6px;
}

.cart-line strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}

.cart-line span {
  color: var(--muted);
  font-weight: 800;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.quantity-control button {
  min-height: 32px;
  border: 0;
  background: var(--soft);
}

.quantity-control span {
  color: var(--ink);
  text-align: center;
}

.empty-cart {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
}

.checkout-box {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.checkout-box p,
#checkoutStatus {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

dialog {
  width: min(880px, calc(100vw - 28px));
  border: 0;
  border-radius: 10px;
  padding: 18px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.46);
}

#dialogClose {
  float: right;
}

.dialog-grid {
  clear: both;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1fr;
  gap: 24px;
  padding-top: 12px;
}

.dialog-grid h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.spec-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.spec-list span {
  color: var(--muted);
}

.source-link {
  color: var(--accent);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .hero h1 {
    font-size: clamp(3.6rem, 8.5vw, 6.4rem);
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    gap: 14px;
    min-height: auto;
    padding: 10px 18px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .cart-button {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: auto;
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.84rem;
  }

  .main-nav {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    gap: 20px;
    width: 100%;
    overflow-x: auto;
    padding: 6px 2px;
    font-size: 0.84rem;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .hero,
  .fitment-band,
  .support-section,
  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: clamp(620px, calc(100svh - 90px), 760px);
    align-items: center;
    padding: 54px 24px;
  }

  .hero::before {
    background: linear-gradient(
      0deg,
      rgba(7, 9, 11, 0.96) 0%,
      rgba(7, 9, 11, 0.74) 52%,
      rgba(7, 9, 11, 0.28) 100%
    );
  }

  .hero__background {
    object-position: 58% center;
    opacity: 0.72;
    filter: saturate(0.68) brightness(0.82) contrast(0.94);
  }

  .hero__content {
    width: min(100%, 620px);
  }

  .hero h1 {
    font-size: clamp(3.2rem, 12vw, 5.6rem);
  }

  .hero p {
    max-width: 560px;
    font-size: clamp(1rem, 3.5vw, 1.2rem);
  }

  .fitment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid,
  .trust-band {
    grid-template-columns: 1fr 1fr;
  }

  .dialog-grid {
    grid-template-columns: 1fr;
  }

  dialog {
    max-height: calc(100svh - 20px);
    overflow-y: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
    padding: 9px 12px;
  }

  .brand span {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    display: none;
  }

  .cart-button {
    min-height: 36px;
    padding-inline: 9px;
    gap: 6px;
    font-size: 0.78rem;
  }

  .cart-button span {
    min-width: 22px;
    height: 22px;
  }

  .main-nav {
    justify-content: start;
    gap: 16px;
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 12vw, 4.25rem);
    line-height: 0.94;
  }

  .hero {
    min-height: clamp(590px, calc(100svh - 92px), 720px);
    padding: 38px 18px;
  }

  .hero .eyebrow {
    max-width: 330px;
    margin-bottom: 10px;
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .hero p {
    max-width: 360px;
    margin-block: 18px 0;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .hero__actions .button {
    min-width: 0;
    padding-inline: 10px;
    font-size: 0.88rem;
  }

  .hero__background {
    object-position: 60% center;
  }

  .fitment-form,
  .product-grid,
  .trust-band,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card-actions .button {
    min-width: 0;
    min-height: 48px;
    padding: 0 8px;
    font-size: 0.86rem;
    line-height: 1.1;
    white-space: normal;
  }

  .cart-line {
    grid-template-columns: 78px 1fr;
  }

  .cart-drawer {
    inset: 0;
    width: 100vw;
    padding: 16px;
    border: 0;
    border-radius: 0;
  }

  .cart-drawer__header {
    top: -16px;
    margin: -16px -16px 16px;
    padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  }

  .cart-list {
    gap: 10px;
  }

  .cart-line {
    padding: 9px;
  }

  .cart-line strong {
    font-size: 0.86rem;
  }

  .checkout-box {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  dialog {
    width: 100vw;
    max-width: none;
    max-height: 100svh;
    margin: 0;
    border-radius: 0;
    padding: 14px;
  }

  .dialog-grid h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .spec-list li {
    display: grid;
    gap: 4px;
  }

  .dialog-actions {
    align-items: stretch;
  }
}

@media (max-width: 380px) {
  .cart-button__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .cart-button {
    width: 36px;
    padding: 0;
  }

  .main-nav {
    gap: 14px;
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11.5vw, 3.4rem);
  }

  .hero__actions {
    grid-template-columns: 1fr;
  }

  .card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .card-actions .button {
    min-height: 46px;
    font-size: 0.82rem;
  }
}
