:root {
  --bg: #070707;
  --surface: #151515;
  --surface-2: #202020;
  --ink: #f8f5ef;
  --muted: #c9c2b6;
  --line: #34302a;
  --accent: #ff5a1f;
  --accent-2: #57b6ff;
  --paper: #f4efe6;
  --shadow: rgba(0, 0, 0, .45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
select,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 7, 7, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.top-promo {
  display: block;
  padding: 10px 24px;
  background: var(--paper);
  color: #15110d;
  text-align: center;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.site-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 6vw;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 8px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 9px);
  gap: 6px;
  height: 38px;
}

.brand-mark span {
  display: block;
  background: var(--ink);
  transform: skew(-28deg);
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .92rem;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
}

.cart-nav,
.quick-add,
.remove-line {
  cursor: pointer;
}

.cart-nav {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0c0c0c;
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-nav span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #120905;
}

.home-hero,
.product-hero {
  min-height: 66svh;
  display: flex;
  align-items: center;
  padding: 72px 6vw;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(90deg, rgba(7, 7, 7, .92) 0%, rgba(7, 7, 7, .72) 42%, rgba(7, 7, 7, .18) 100%),
    var(--hero-image);
  background-position: center right;
  background-size: cover;
}

.home-hero {
  --hero-image: url("/assets/products/rush-cty-speed-02-rush-cty-speed-blue-featured_1_NEW.jpg");
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: .88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 900;
  line-height: .98;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 4.75rem;
}

h2 {
  margin-bottom: 18px;
  font-size: 3rem;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.hero-copy p:not(.eyebrow),
.section-lead,
.model-copy p,
.card p,
.feature-tile p,
.footer-copy,
.cart-note,
.cart-error {
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  font-size: 1.25rem;
}

.hero-actions,
.card-actions,
.model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.button,
.text-link,
.card-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.button {
  border: 0;
  background: var(--accent);
  color: #170a04;
  padding: 13px 18px;
}

.button.secondary {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.text-link {
  color: var(--ink);
}

.section {
  padding: 78px 6vw;
}

.section-header {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-header.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-lead {
  max-width: 780px;
  margin: 0;
  font-size: 1.12rem;
}

.section-header.center .section-lead {
  margin-right: auto;
  margin-left: auto;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.model-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.model-card-media {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
  overflow: hidden;
}

.model-card-media img {
  width: 118%;
  height: 250px;
  object-fit: contain;
  transition: transform .3s ease;
}

.model-card:hover .model-card-media img {
  transform: scale(1.04);
}

.model-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.model-card-body p {
  margin-bottom: 0;
}

.price-line {
  margin-top: auto;
  padding-top: 20px;
  color: var(--ink);
  font-weight: 900;
}

.card-actions {
  justify-content: space-between;
}

.card-actions a {
  background: var(--paper);
  color: #17120e;
  padding: 10px 12px;
  font-size: .82rem;
}

.quick-add {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0e0e0e;
  color: var(--ink);
  padding: 8px 10px;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.compare-band {
  background: var(--paper);
  color: #17120e;
}

.compare-band .eyebrow,
.compare-band .section-lead {
  color: #5f4d3f;
}

.compare-grid,
.feature-grid,
.spec-grid,
.related-grid {
  display: grid;
  gap: 14px;
}

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

.compare-item,
.feature-tile,
.spec-item,
.related-card,
.purchase-card {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.compare-item {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: #fffaf0;
}

.compare-item strong,
.spec-item strong {
  font-weight: 900;
  text-transform: uppercase;
}

.compare-item span,
.spec-item span {
  color: #64594d;
  line-height: 1.45;
}

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

.feature-tile {
  min-height: 190px;
  padding: 26px;
  background: var(--surface);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 44px;
  align-items: start;
}

.model-copy {
  max-width: 780px;
}

.description {
  padding-left: 20px;
  border-left: 4px solid var(--accent);
  font-size: 1.08rem;
}

.purchase-card {
  position: sticky;
  top: 116px;
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 24px 70px var(--shadow);
}

.purchase-card h2 {
  margin-bottom: 18px;
  font-size: 1.65rem;
}

.purchase-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.purchase-card select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #080808;
  color: var(--ink);
  padding: 0 12px;
}

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

.purchase-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.spec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.spec-item {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: #101010;
}

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

.gallery img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: zoom-in;
}

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

.related-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.related-card img {
  height: 150px;
  width: 100%;
  object-fit: contain;
  background: #0f0f0f;
}

.related-card span {
  padding: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 16px 6vw;
  border-bottom: 1px solid var(--line);
}

.checkout-status.success {
  background: #123726;
}

.checkout-status.cancel {
  background: #3d2718;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 34px 6vw;
  border-top: 1px solid var(--line);
  background: #050505;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.cart-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  width: min(470px, 100%);
  min-height: 100%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #101010;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 70px var(--shadow);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

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

.cart-head button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.5rem;
}

.cart-items {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 78px 1fr 58px;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #292929;
}

.cart-line img {
  width: 78px;
  height: 64px;
  object-fit: cover;
  background: #222;
}

.cart-line h3 {
  margin: 0;
  font-size: .95rem;
}

.cart-line p {
  margin: 4px 0;
  color: var(--muted);
  font-size: .82rem;
}

.cart-line input {
  width: 58px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #050505;
  color: var(--ink);
  padding: 8px;
}

.remove-line {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 4px 0;
  text-decoration: underline;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 1.2rem;
}

.checkout {
  width: 100%;
}

.checkout:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.cart-note,
.cart-error {
  font-size: .86rem;
}

.cart-error {
  min-height: 20px;
  color: #ffb0a6;
}

[data-catalog-error] {
  color: #ffb0a6;
}

@media (max-width: 1180px) {
  .model-grid,
  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .purchase-card {
    position: static;
  }

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

@media (max-width: 760px) {
  .top-promo {
    padding: 9px 14px;
    font-size: .82rem;
  }

  .site-nav {
    min-height: auto;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 18px;
  }

  .brand-lockup {
    width: 100%;
  }

  .cart-nav {
    margin-left: 0;
  }

  .home-hero,
  .product-hero {
    min-height: 500px;
    padding: 52px 18px;
    background-image:
      linear-gradient(180deg, rgba(7, 7, 7, .96) 0%, rgba(7, 7, 7, .76) 58%, rgba(7, 7, 7, .32) 100%),
      var(--hero-image);
    background-position: center bottom;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .section {
    padding: 58px 18px;
  }

  .model-grid,
  .compare-grid,
  .feature-grid,
  .spec-grid,
  .related-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .model-card {
    min-height: auto;
  }

  .model-card-media,
  .model-card-media img {
    min-height: 220px;
    height: 220px;
  }

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

  .card-actions a,
  .quick-add {
    flex: 1 1 100%;
  }

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

  .cart-panel {
    width: 100%;
  }
}
