:root {
  --ink: #151515;
  --muted: #676767;
  --line: #e5e1dc;
  --paper: #fffdf9;
  --soft: #f4f0ea;
  --accent: #d74124;
  --accent-dark: #912818;
  --olive: #5f6e48;
  --steel: #27323a;
  --gold: #c9983f;
  --shadow: 0 18px 45px rgba(21, 21, 21, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; object-fit: cover; }
a, button { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; background: none; }

.announcement {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 0 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.brand-logo {
  width: 104px;
  height: 58px;
  object-fit: contain;
}
.footer-logo {
  width: 122px;
  height: 76px;
  filter: invert(1);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--steel));
  font-size: 13px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.searchbar {
  min-width: 260px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 0 14px;
}
.searchbar input { width: 100%; border: 0; outline: 0; background: transparent; }

.utility-nav { display: flex; align-items: center; gap: 12px; }
.utility-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--steel);
}
.utility-link svg, .icon-btn svg { width: 20px; height: 20px; }
.utility-link b {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
}

.main-nav {
  height: 48px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  border-top: 1px solid var(--line);
}
.nav-item { position: relative; }
.nav-item > button, .main-nav > a {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.nav-item > button svg { width: 15px; }
.sale-link { color: var(--accent); }

.mega-menu {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(900px, 92vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: 160ms ease;
}
.nav-item:hover .mega-menu, .nav-item:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; }
.mega-menu a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.mega-menu a:hover { color: var(--accent); }
.mega-menu.compact { grid-template-columns: repeat(4, 1fr); width: min(720px, 92vw); }
.bike-menu { grid-template-columns: repeat(4, 1fr); }

.hero {
  min-height: 640px;
  display: flex;
  align-items: end;
  padding: 60px 6vw;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78), rgba(0,0,0,0.22) 55%, rgba(0,0,0,0.05)),
    url("https://images.unsplash.com/photo-1558981852-426c6c22a060?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero-copy { width: min(650px, 100%); }
.hero p, .promo-band p, .style-panel p, .eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1.7px;
  font-size: 12px;
}
.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}
.primary-btn, .light-btn, .checkout-btn, .newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-radius: 4px;
}
.light-btn { background: #fff; color: var(--ink); }

.section { padding: 64px 6vw; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.section-head h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); }
.section-head a { color: var(--accent); font-weight: 800; text-decoration: none; }

.tabs, .filter-row, .style-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button, .filter, .style-tabs button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
}
.tabs .active, .filter.active, .style-tabs .active { background: var(--ink); color: #fff; border-color: var(--ink); }

.bike-finder {
  background: #fff;
  padding-top: 28px;
  padding-bottom: 34px;
  overflow: hidden;
}
.bike-section-head {
  text-align: center;
  margin-bottom: 18px;
}
.bike-section-head h2 {
  margin: 0;
  color: #000;
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 900;
}
.bike-finder .tabs {
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}
.bike-finder .tabs::-webkit-scrollbar { display: none; }
.bike-finder .tabs button {
  min-width: max-content;
  min-height: 35px;
  padding: 0 22px;
  border: 1px solid transparent;
  background: #fff;
  color: #111;
  border-radius: 0;
  font-weight: 700;
}
.bike-finder .tabs .active {
  background: #fff;
  color: #db1215;
  border-color: #db1215;
}
.bike-grid {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  padding: 0 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #8d8d8d #e6e6e6;
}
.bike-grid::-webkit-scrollbar { height: 8px; }
.bike-grid::-webkit-scrollbar-track { background: #e6e6e6; }
.bike-grid::-webkit-scrollbar-thumb { background: #8d8d8d; border-radius: 999px; }
.bike-card {
  flex: 0 0 clamp(240px, 21vw, 330px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 6px;
  color: #111;
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
}
.bike-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
}
.bike-card h3 {
  margin: 0;
  color: #111;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 500;
}
.collection-grid, .review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.collection-grid article {
  min-height: 190px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--steel);
}
.collection-grid img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.68; }
.collection-grid article > :not(img) { position: relative; z-index: 1; }
.collection-grid h3 { margin: 0 0 6px; }
.collection-grid p { margin: 0; color: rgba(255,255,255,0.82); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.product-media { position: relative; aspect-ratio: 1 / 1.05; background: var(--soft); overflow: hidden; }
.product-media img { width: 100%; height: 100%; transition: transform 220ms ease; }
.product-card:hover img { transform: scale(1.05); }
.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--accent);
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 3px;
}
.quick-actions {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: 160ms ease;
}
.product-card:hover .quick-actions { opacity: 1; transform: translateY(0); }
.quick-actions button {
  min-height: 38px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.quick-actions svg { width: 18px; height: 18px; }
.product-info { padding: 14px; }
.sizes { min-height: 24px; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; }
.product-info h3 { min-height: 42px; margin: 8px 0; font-size: 15px; line-height: 1.35; }
.price { display: flex; gap: 8px; align-items: center; font-weight: 900; }
.price s { color: var(--muted); font-weight: 400; }
.swatches { display: flex; gap: 6px; margin-top: 12px; }
.swatches span { width: 18px; height: 18px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.18); }

.promo-band {
  min-height: 460px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 6vw;
  color: #fff;
  overflow: hidden;
  background: #000;
}
.promo-band img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.54; }
.promo-band div { position: relative; width: min(560px, 100%); }
.promo-band h2, .style-panel h2 { margin: 0 0 24px; font-size: clamp(32px, 5vw, 56px); line-height: 1; }

.look-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.look-grid article { position: relative; min-height: 340px; overflow: hidden; background: var(--steel); }
.look-grid img { width: 100%; height: 100%; opacity: 0.76; }
.look-grid span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.collection-grid article { min-height: 260px; padding: 18px; display: flex; flex-direction: column; justify-content: end; }
.collection-grid button {
  width: max-content;
  margin-top: 14px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  font-weight: 800;
}

.brand-strip { background: var(--soft); overflow: hidden; }
.brand-marquee { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.brand-marquee span {
  padding: 18px 24px;
  min-width: 130px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
}

.style-discovery { padding: 64px 6vw; background: var(--steel); color: #fff; }
.style-tabs { margin-bottom: 18px; }
.style-tabs button { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.2); }
.style-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}
.style-panel img { width: 100%; height: 440px; }

.compact-products .product-card:nth-child(n+5) { display: none; }
.review-grid { grid-template-columns: repeat(3, 1fr); }
.review-grid article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
}
.review-grid p { font-size: 19px; line-height: 1.45; }
.review-grid h3 { margin-bottom: 5px; }
.review-grid span { color: var(--muted); }

.site-footer {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr 1fr;
  gap: 28px;
  padding: 54px 6vw;
  background: var(--ink);
  color: #fff;
}
.site-footer p { color: rgba(255,255,255,0.7); max-width: 420px; line-height: 1.6; }
.site-footer h3 { margin: 0 0 14px; }
.site-footer a { display: block; color: rgba(255,255,255,0.72); text-decoration: none; margin: 9px 0; }
.footer-brand { color: #fff; }
.newsletter input {
  width: 100%;
  height: 42px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0 12px;
}
.newsletter button { width: 100%; }

.drawer, .mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(420px, 92vw);
  height: 100vh;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: 180ms ease;
}
.drawer.open, .mobile-menu.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.drawer-head h2 { margin: 0; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.drawer-list { display: grid; gap: 12px; margin: 20px 0; max-height: 55vh; overflow: auto; }
.drawer-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.drawer-item img { width: 72px; height: 72px; background: var(--soft); }
.drawer-item h3 { margin: 0 0 4px; font-size: 14px; }
.drawer-item p { margin: 0; color: var(--muted); }
.drawer-total { display: flex; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; }
.checkout-btn { width: 100%; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(0,0,0,0.55);
}
.modal.open { display: grid; }
.modal-card {
  position: relative;
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  padding: 28px;
}
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.quick-view { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quick-view img { width: 100%; height: 480px; background: var(--soft); }
.quick-view h2 { margin-top: 0; font-size: 34px; }
.quick-view .primary-btn { width: 100%; margin-top: 18px; }
.search-results { display: grid; gap: 12px; margin-top: 18px; }
.mobile-menu a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.mobile-only { display: none; }

@media (max-width: 1120px) {
  .topbar { grid-template-columns: auto 1fr auto; padding: 0 20px; }
  .searchbar { display: none; }
  .main-nav { justify-content: start; overflow-x: auto; padding: 0 12px; }
  .product-grid, .bike-grid, .collection-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .mobile-only { display: grid; }
  .topbar { min-height: 68px; grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 12px; }
  .brand-logo { width: 82px; height: 48px; }
  .brand-mark { width: 40px; height: 30px; }
  .utility-link span { display: none; }
  .utility-nav .utility-link:not(.cart-link):not([data-open-search]) { display: none; }
  .main-nav { display: none; }
  .hero { min-height: 560px; padding: 36px 20px; }
  .section, .style-discovery { padding: 44px 20px; }
  .section-head { align-items: start; flex-direction: column; }
  .product-grid, .bike-grid, .collection-grid, .review-grid, .look-grid, .style-panel, .site-footer, .quick-view { grid-template-columns: 1fr; }
  .quick-actions { opacity: 1; transform: none; }
  .look-grid article, .style-panel img { height: 320px; }
  .promo-band { min-height: 420px; padding: 34px 20px; }
  .modal-card { padding: 18px; }
  .quick-view img { height: 320px; }
}
