
:root {
  --primary: #e94b24;
  --primary-dark: #c93816;
  --ink: #202124;
  --muted: #69707a;
  --background: #ffffff;
  --surface: #f5f6f7;
  --border: #e4e6e9;
  --radius: 12px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.topbar {
  padding: 8px 16px;
  background: var(--ink);
  color: white;
  text-align: center;
  font-size: 13px;
}

.header {
  max-width: var(--max-width);
  margin: auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1px;
  white-space: nowrap;
}

.logo span { color: var(--primary); }

.search {
  display: flex;
  flex: 1;
  min-width: 0;
}

.search input, .newsletter input {
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 7px 0 0 7px;
  outline-color: var(--primary);
}

.search button {
  padding: 0 20px;
  border: 0;
  background: var(--primary);
  color: white;
  border-radius: 0 7px 7px 0;
}

.cart-button {
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  white-space: nowrap;
}

#cartCount {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  color: white;
  background: var(--primary);
  font-size: 12px;
}

.menu-toggle { display: none; }

.navigation {
  display: flex;
  justify-content: center;
  gap: 38px;
  padding: 13px 20px;
  border-block: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
}

.navigation a:hover, .footer a:hover {
  color: var(--primary);
}

.hero {
  max-width: var(--max-width);
  min-height: 390px;
  margin: 28px auto;
  padding: 55px;
  border-radius: var(--radius);
  background: #f1f2f3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(36px, 4.5vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.2; }
h3 { line-height: 1.3; }
.hero-content > p:not(.eyebrow) { color: var(--muted); }

.hero-image {
  min-height: 270px;
  background-image: url("https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1000&q=85");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}

.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: white; }
.button-primary:hover { background: var(--primary-dark); }
.button-dark { background: var(--ink); color: white; }
.button-light { background: white; color: var(--ink); }

.section {
  max-width: var(--max-width);
  margin: auto;
  padding: 55px 24px;
}

.fitment {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
}

.fitment h2 { margin-bottom: 8px; }
.fitment p:not(.eyebrow) { color: var(--muted); margin-bottom: 0; }

.fitment-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.fitment-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.fitment-form select {
  width: 100%;
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
}

.fitment-form button { grid-column: 1 / -1; }

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

.section-heading h2 { margin-bottom: 0; }
.muted { color: var(--muted); font-size: 14px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}

.filter {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 30px;
}

.filter.active, .filter:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

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

.product-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px #0000000c;
}

.product-image {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 20px;
  background: var(--surface);
}

.product-image img {
  width: 100%;
  height: 155px;
  object-fit: contain;
}

.product-info { padding: 17px; }
.product-info h3 { margin-bottom: 8px; font-size: 16px; }
.product-info .size { color: var(--muted); font-size: 13px; }
.product-price { font-size: 21px; font-weight: 800; margin: 12px 0; }
.product-info .button { width: 100%; }

.promo {
  max-width: var(--max-width);
  margin: 25px auto;
  padding: 55px;
  border-radius: var(--radius);
  background: #202124;
  color: white;
}

.promo h2 { max-width: 550px; font-size: clamp(30px, 4vw, 43px); }
.promo p:not(.eyebrow) { color: #d4d6d9; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.category-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.category-card:hover { border-color: var(--primary); }
.category-card h3 { margin: 12px 0 5px; }
.category-card p { margin: 0; color: var(--muted); }
.category-icon { font-size: 32px; color: var(--primary); }

.brands { text-align: center; }
.brand-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  font-size: 18px;
  font-weight: 900;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: center;
  background: var(--surface);
}

.newsletter h2 { margin-bottom: 8px; }
.newsletter p { margin-bottom: 0; color: var(--muted); }
.newsletter form { display: flex; }
.newsletter input { background: white; }
.newsletter .button { border-radius: 0 7px 7px 0; white-space: nowrap; }
.form-message { grid-column: 1 / -1; font-size: 14px; }

.footer {
  padding: 50px max(24px, calc((100% - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  background: #191a1c;
  color: white;
}

.footer h3 { font-size: 15px; }
.footer p, .footer a:not(.logo) { color: #c3c6ca; font-size: 14px; }
.footer > div:not(:first-child) a { display: block; margin: 8px 0; }
.footer-logo { display: inline-block; margin-bottom: 12px; }
.copyright { grid-column: 1 / -1; border-top: 1px solid #414246; padding-top: 20px; }

.cart-panel {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100dvh;
  padding: 24px;
  overflow-y: auto;
  background: white;
  box-shadow: -10px 0 40px #0002;
}

.cart-header { display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { margin: 0; }
.cart-header button { border: 0; background: none; font-size: 22px; }
.cart-item { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.cart-item h3 { margin: 0 0 5px; font-size: 15px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 13px; }
.cart-item button { border: 0; background: none; color: var(--primary); }
.cart-total { display: flex; justify-content: space-between; padding: 22px 0; }
.checkout-button { width: 100%; }
.overlay { position: fixed; inset: 0; z-index: 15; background: #0007; }

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

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .header { gap: 14px; flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .navigation { gap: 20px; }
  .hero { margin: 20px; padding: 35px; }
  .fitment { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .topbar { font-size: 11px; }
  .header { padding: 15px; }
  .logo { font-size: 22px; }
  .cart-button { margin-left: auto; }
  .menu-toggle {
    display: block;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    background: white;
  }
  .navigation {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px;
  }
  .navigation.open { display: flex; }
  .navigation a { padding: 10px 0; }
  .hero {
    grid-template-columns: 1fr;
    padding: 26px;
    margin: 15px;
  }
  .hero-image { min-height: 190px; }
  .section { padding: 38px 18px; }
  .fitment-form { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .fitment-form select { font-size: 13px; }
  .product-grid { gap: 10px; }
  .product-image { min-height: 125px; padding: 10px; }
  .product-image img { height: 110px; }
  .product-info { padding: 11px; }
  .product-info h3 { font-size: 14px; }
  .product-price { font-size: 18px; }
  .product-info .button { padding: 10px 5px; font-size: 12px; }
  .promo { margin: 15px; padding: 30px 22px; }
  .category-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; gap: 18px; }
  .newsletter form { min-width: 0; }
  .newsletter .button { padding: 10px; }
  .footer { padding: 35px 20px; gap: 25px 18px; }
  .footer > div:first-child { grid-column: 1 / -1; }
}
