:root {
  --ink: #15181a;
  --muted: #66706c;
  --line: #dce3df;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --green: #0e8f72;
  --green-deep: #05624f;
  --gold: #d7952b;
  --coral: #c85843;
  --charcoal: #252a2c;
  --shadow: 0 18px 45px rgba(22, 32, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
select,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid rgba(220, 227, 223, 0.8);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--green-deep);
  border-radius: 8px;
}

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

.main-nav a {
  color: #3b4441;
}

.cart-button,
.primary-button,
.checkout-button,
.garage-finder button {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.cart-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  text-decoration: none;
}

.cart-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.78rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(32px, 7vw, 78px) clamp(18px, 4vw, 56px);
  background: #111;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  content: "";
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0), var(--paper));
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 13, 12, 0.84) 0%, rgba(7, 13, 12, 0.62) 38%, rgba(7, 13, 12, 0.12) 100%),
    linear-gradient(0deg, rgba(7, 13, 12, 0.18), rgba(7, 13, 12, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  color: #fff;
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 520px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.6;
}

.garage-finder {
  width: min(560px, 100%);
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.garage-finder label {
  display: block;
  margin-bottom: 8px;
  color: #4b5551;
  font-size: 0.8rem;
  font-weight: 800;
}

.finder-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.garage-finder select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.garage-finder button {
  min-height: 48px;
  padding: 0 20px;
  background: var(--green-deep);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.primary-link {
  color: var(--ink);
  background: var(--gold);
}

.secondary-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: -34px auto 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(26, 33, 31, 0.08);
}

.trust-strip div {
  padding: 20px;
  background: #fff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 5px;
  font-size: 0.98rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 108px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(240px, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading.compact {
  display: block;
  max-width: 700px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-pill {
  min-height: 40px;
  padding: 0 15px;
  color: #33413c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.filter-pill.is-active {
  color: #fff;
  background: var(--green-deep);
  border-color: var(--green-deep);
}

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

.product-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-image {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: #edf1ee;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1));
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  color: var(--green-deep);
  background: #e7f3ef;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.risk-low {
  color: #fff;
  background: var(--green);
}

.risk-mid {
  color: #fff;
  background: var(--coral);
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.vehicle-line {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  font-weight: 900;
  font-size: 1.14rem;
}

.add-button {
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: var(--charcoal);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.bundle-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
}

.bundle-copy {
  padding: clamp(26px, 5vw, 48px);
  color: #fff;
  background: var(--charcoal);
  border-radius: 8px;
}

.bundle-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.bundle-copy h2 {
  color: #fff;
}

.bundle-price {
  display: grid;
  gap: 4px;
  margin: 24px 0;
}

.bundle-price span {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 950;
}

.bundle-price small {
  color: rgba(255, 255, 255, 0.62);
}

.primary-button,
.checkout-button {
  min-height: 48px;
  padding: 0 20px;
  background: var(--green);
}

.bundle-visual {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.bundle-visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.category-grid article {
  min-height: 250px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-grid span {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--coral);
  font-weight: 950;
}

.category-grid h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.category-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: rgba(10, 14, 13, 0);
  transition: background 180ms ease;
}

.cart-drawer.is-open {
  pointer-events: auto;
  background: rgba(10, 14, 13, 0.42);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-head,
.cart-line,
.cart-total,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-head h2 {
  margin: 0;
  font-size: 1.4rem;
}

.icon-button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: #f1f3f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.cart-line {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-empty {
  padding: 30px 0;
  color: var(--muted);
}

.cart-total {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.04rem;
}

.checkout-button {
  width: 100%;
  margin-top: 16px;
}

.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.checkout-shell,
.policy-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(22px, 5vw, 54px);
  align-items: start;
}

.checkout-form-card,
.order-summary,
.success-card,
.policy-shell article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(26, 33, 31, 0.07);
}

.checkout-form-card {
  padding: clamp(24px, 5vw, 44px);
}

.checkout-form-card h1,
.policy-shell h1,
.success-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.checkout-note {
  max-width: 620px;
  margin: 18px 0 28px;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid label,
.terms-check {
  display: grid;
  gap: 8px;
  color: #3f4945;
  font-size: 0.9rem;
  font-weight: 850;
}

.form-grid .wide {
  grid-column: span 2;
}

.form-grid input,
.form-grid select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.terms-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.terms-check input {
  margin-top: 3px;
}

.pay-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.checkout-error {
  margin: 0;
  padding: 12px 14px;
  color: #8a2e20;
  background: #fff0ed;
  border: 1px solid #fac7bc;
  border-radius: 8px;
  line-height: 1.45;
}

.order-summary {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.order-summary h2 {
  margin: 0 0 18px;
  font-size: 1.3rem;
}

.summary-items {
  display: grid;
  gap: 12px;
}

.summary-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-line strong,
.summary-line span {
  display: block;
}

.summary-line span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.summary-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.success-shell {
  display: grid;
  min-height: 100vh;
  align-content: center;
  gap: 24px;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 60px 0;
}

.success-card {
  padding: clamp(28px, 6vw, 58px);
}

.success-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.success-link {
  margin-top: 12px;
}

.policy-shell {
  display: grid;
  gap: 18px;
}

.policy-shell > section {
  max-width: 760px;
  margin-bottom: 14px;
}

.policy-shell article {
  padding: clamp(22px, 4vw, 34px);
}

.policy-shell h2 {
  margin: 0 0 10px;
}

.policy-shell p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: 740px;
  }

  .trust-strip,
  .product-grid,
  .bundle-section,
  .category-grid,
  .checkout-shell,
  .section-heading {
    grid-template-columns: 1fr 1fr;
  }

  .bundle-copy {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand {
    font-size: 0.96rem;
  }

  .cart-button {
    min-width: auto;
  }

  .hero {
    min-height: 760px;
    padding-inline: 18px;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(7, 13, 12, 0.9) 0%, rgba(7, 13, 12, 0.72) 58%, rgba(7, 13, 12, 0.24) 100%),
      linear-gradient(0deg, rgba(7, 13, 12, 0.28), rgba(7, 13, 12, 0.08));
  }

  .finder-row,
  .trust-strip,
  .product-grid,
  .bundle-section,
  .category-grid,
  .checkout-shell,
  .section-heading {
    grid-template-columns: 1fr;
  }

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

  .form-grid .wide {
    grid-column: auto;
  }

  .order-summary {
    position: static;
  }

  .trust-strip {
    margin-top: -22px;
  }

  .product-card {
    min-height: 390px;
  }

  .bundle-copy {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
