:root {
  --ink: #151412;
  --muted: #706b63;
  --paper: #f5f1e9;
  --panel: #fffaf1;
  --line: #ded4c3;
  --carbon: #20201f;
  --steel: #c8c3b8;
  --gold: #c69746;
  --red: #bd3f2f;
  --green: #297a42;
  --shadow: 0 24px 70px rgba(19, 17, 14, .18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(198, 151, 70, .22), transparent 32rem),
    linear-gradient(135deg, #f9f5ec 0%, #ebe2d2 45%, #f6f1e7 100%);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-strip {
  background: var(--carbon);
  color: #f8ead4;
  font-size: 13px;
}

.top-strip__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 40px;
}

.top-strip nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.mainbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.brand__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff7e8;
  background: conic-gradient(from 220deg, var(--red), #181716, var(--gold), var(--red));
  border: 2px solid #181716;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: -.08em;
  box-shadow: 8px 8px 0 #201f1d;
}

.brand strong {
  display: block;
  font-size: 28px;
  letter-spacing: -.06em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.search {
  display: flex;
  padding: 5px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(37, 31, 23, .08);
}

.search input {
  width: 100%;
  min-width: 0;
  padding: 13px 18px;
  background: transparent;
  border: 0;
  outline: 0;
}

.search button,
.button,
.ride-selector button,
.newsletter button {
  padding: 12px 20px;
  color: #fff8eb;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: transform .18s ease, box-shadow .18s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search button:hover,
.button:hover,
.ride-selector button:hover,
.newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(21, 20, 18, .2);
}

.button--ghost {
  color: var(--ink);
  background: #fff4de;
  border: 1px solid rgba(21, 20, 18, .16);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn,
.cart-btn,
.text-btn,
.close-btn {
  padding: 10px 13px;
  color: var(--ink);
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.cart-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--gold);
  border-color: #a67932;
}

.category-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 233, .88);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.category-nav__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 13px 0;
}

.category-chip {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.category-chip.is-active,
.category-chip:hover {
  background: var(--ink);
  color: #fff8eb;
}

.fitment {
  padding: 30px 0;
}

.fitment__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  background: rgba(255, 250, 241, .74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -.055em;
  line-height: .96;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 64px);
}

h2 {
  font-size: clamp(34px, 4.5vw, 58px);
}

h3 {
  font-size: 26px;
}

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

.ride-selector select {
  width: 100%;
  padding: 13px 14px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hero {
  padding: 18px 0 58px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.hero-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 34px;
  color: #fff5e2;
  background: linear-gradient(135deg, #171615, #37322d);
  border-radius: 28px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -8% -28% auto;
  width: 360px;
  height: 220px;
  background:
    linear-gradient(115deg, transparent 0 24%, rgba(255,255,255,.14) 25% 28%, transparent 29%),
    radial-gradient(ellipse at 65% 45%, #151515 0 18%, #c8c3b8 19% 21%, transparent 22%),
    linear-gradient(130deg, #2c2a28, #080808);
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 55% 42% 36% 52%;
  transform: rotate(-12deg);
  z-index: -1;
}

.hero-card--large {
  grid-row: 1 / span 2;
  display: flex;
  align-items: end;
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(15, 14, 13, .48), rgba(15, 14, 13, .88)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, #7d2d22, #11100f 58%, #c69746);
}

.hero-card--large h2 {
  max-width: 700px;
}

.hero-card--rose {
  background: linear-gradient(135deg, #57372f, #c69746);
}

.hero-card--dark {
  background: linear-gradient(135deg, #161514, #4a4b48);
}

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

.section-heading p {
  max-width: 640px;
  color: var(--muted);
}

.deal-zone,
.catalog-section,
.category-panels,
.featured {
  padding: 54px 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 72px);
  gap: 10px;
}

.countdown span {
  display: grid;
  min-height: 72px;
  place-items: center;
  padding: 8px;
  color: #fff5e2;
  background: var(--ink);
  border-radius: 18px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.countdown strong {
  display: block;
  font-size: 25px;
}

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

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

.product-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 250, 241, .9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 15px 34px rgba(44, 35, 24, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(44, 35, 24, .16);
}

.product-media {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.9), transparent 36%),
    linear-gradient(135deg, #ded6c8, #f8f1e4);
}

.part-visual {
  width: 66%;
  height: 100px;
  background: linear-gradient(135deg, var(--visual-a), var(--visual-b));
  border: 2px solid rgba(22, 21, 18, .7);
  border-radius: 42% 24% 38% 20%;
  box-shadow: inset 12px 12px 28px rgba(255,255,255,.32), 14px 18px 0 rgba(20,20,20,.08);
  transform: rotate(-9deg);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: #fff7e8;
  background: var(--red);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.product-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 7px;
}

.product-actions button {
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 900;
}

.product-body {
  padding: 17px;
}

.sku {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
}

.product-body h3 {
  min-height: 58px;
  margin: 7px 0 10px;
  font-size: 20px;
  line-height: 1.05;
}

.stock {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.backorder {
  color: #98642c;
}

.price-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 14px 0;
}

.price {
  font-size: 22px;
  font-weight: 900;
}

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

.add-btn {
  width: 100%;
  padding: 12px;
  color: #fff7e8;
  background: var(--ink);
  border: 0;
  border-radius: 14px;
  font-weight: 900;
}

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

.category-panel {
  min-height: 430px;
  padding: 30px;
  color: #fff5e2;
  background:
    linear-gradient(135deg, rgba(20,20,18,.62), rgba(20,20,18,.94)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 12px),
    linear-gradient(135deg, #34312d, #151412);
  border-radius: 28px;
}

.category-panel--gold {
  background: linear-gradient(135deg, rgba(98, 65, 24, .82), rgba(22, 18, 13, .92)), linear-gradient(135deg, #c69746, #332619);
}

.category-panel--steel {
  background: linear-gradient(135deg, rgba(22,22,22,.7), rgba(22,22,22,.92)), linear-gradient(135deg, #9d9a91, #252525);
}

.category-panel ul {
  display: grid;
  gap: 11px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.category-panel li::before {
  content: "+";
  margin-right: 10px;
  color: var(--gold);
  font-weight: 900;
}

.featured__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 250, 241, .9);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.mini-thumb {
  height: 64px;
  background: linear-gradient(135deg, var(--visual-a), var(--visual-b));
  border-radius: 16px;
  border: 1px solid rgba(22,22,20,.28);
}

.footer {
  padding: 50px 0;
  color: #fff5e2;
  background: #141311;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 30px;
}

.brand--footer .brand__mark {
  box-shadow: none;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: #ead7b8;
}

.newsletter {
  display: flex;
  gap: 8px;
}

.newsletter input {
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: rgba(12, 11, 10, 0);
  transition: background .2s ease;
}

.drawer.is-open {
  pointer-events: auto;
  background: rgba(12, 11, 10, .48);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, 100%);
  height: 100%;
  padding: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform .25s ease;
}

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

.drawer__head,
.drawer__foot,
.cart-line {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.drawer__body {
  overflow-y: auto;
  padding: 18px 0;
}

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

.cart-line button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.quick-view {
  width: min(820px, calc(100% - 28px));
  padding: 0;
  background: var(--paper);
  border: 0;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.quick-view::backdrop {
  background: rgba(12, 11, 10, .56);
}

.quick-view__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.quick-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
}

.quick-layout .product-media {
  min-height: 380px;
  border-radius: 26px 0 0 26px;
}

.quick-copy {
  padding: 42px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  padding: 12px 18px;
  color: #fff7e8;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .top-strip__grid,
  .mainbar,
  .fitment__grid,
  .featured__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .top-strip nav {
    justify-content: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .hero__grid,
  .category-panels__grid {
    grid-template-columns: 1fr;
  }

  .hero-card--large {
    min-height: 420px;
  }

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

@media (max-width: 660px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

  .mainbar {
    gap: 16px;
    padding: 18px 0;
  }

  .brand strong {
    font-size: 23px;
  }

  .search,
  .newsletter {
    border-radius: 18px;
  }

  .search,
  .ride-selector,
  .newsletter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .countdown {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 18px;
  }

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

  .quick-layout {
    grid-template-columns: 1fr;
  }

  .quick-layout .product-media {
    min-height: 260px;
    border-radius: 26px 26px 0 0;
  }

  .quick-copy {
    padding: 26px;
  }
}
