:root {
  --color-primary: #ff6b35;
  --color-primary-dark: #e8551f;
  --color-dark: #14213d;
  --color-dark-2: #1c2b4d;
  --color-light: #f7f7fb;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
  --max-width: 1180px;
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-dark);
  background: #fff;
  line-height: 1.5;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-dark);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
}
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-dark); }
.btn--full { width: 100%; }
.btn--small { padding: 12px 18px; font-size: 0.9rem; min-height: 44px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
}
.logo b { color: var(--color-dark); }
.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-dark);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}
.nav a:hover::after { width: 100%; }

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

.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-light);
  color: var(--color-dark);
  transition: background 0.15s ease;
}
.icon-btn:hover { background: #ececf5; }

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.menu-toggle span {
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #fff8f5 0%, #fff 100%);
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.badge {
  display: inline-block;
  background: #ffe8de;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero__text h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero__text p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 36px; }
.hero__stats strong { display: block; font-size: 1.4rem; font-weight: 800; }
.hero__stats span { color: var(--color-muted); font-size: 0.95rem; }

.hero__art { position: relative; display: flex; align-items: center; justify-content: center; height: 340px; }
.hero__circle {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd9c4, #ff6b35 80%);
  opacity: 0.9;
}
.hero__bike {
  position: relative;
  width: 300px;
  color: #fff;
  filter: drop-shadow(0 20px 25px rgba(20,33,61,0.25));
}

/* Brands */
.brands { padding: 28px 0; border-bottom: 1px solid var(--color-border); }
.brands__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.brands__list { display: flex; gap: 28px; flex-wrap: wrap; font-weight: 600; color: var(--color-dark); }

/* Section head */
.section-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--color-muted); }

/* Catalog */
.catalog { padding: 80px 0; }
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-dark);
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--color-primary); }
.filter-btn.is-active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: #fff;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.product-card__media {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-card__media svg { width: 60%; color: rgba(255,255,255,0.95); }
.product-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.9);
  color: var(--color-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__cat { font-size: 0.78rem; color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.product-card__body h3 { font-size: 1.08rem; font-weight: 700; }
.product-card__body p { color: var(--color-muted); font-size: 0.95rem; flex: 1; }

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.product-card__price { font-size: 1.15rem; font-weight: 800; }
.product-card__price small { display: block; font-size: 0.72rem; color: var(--color-muted); font-weight: 400; text-decoration: line-through; }

/* Features */
.features { padding: 80px 0; background: var(--color-light); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--color-border);
}
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--color-muted); font-size: 0.95rem; }

/* Testimonials */
.testimonials { padding: 80px 0; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--color-light);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial p { font-style: italic; margin-bottom: 16px; color: var(--color-dark); }
.testimonial footer { font-weight: 700; color: var(--color-primary-dark); font-size: 0.9rem; }

/* Newsletter */
.newsletter {
  background: var(--color-dark);
  color: #fff;
  padding: 60px 0;
}
.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.newsletter h2 { font-size: 1.7rem; margin-bottom: 8px; }
.newsletter p { color: #c7cede; }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter__form input {
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  min-width: 260px;
  font-family: inherit;
  font-size: 0.95rem;
}
.newsletter__form input:focus { outline: 2px solid var(--color-primary); }

/* Footer */
.footer { background: var(--color-dark-2); color: #c7cede; padding: 60px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand .logo { color: #fff; margin-bottom: 10px; }
.footer__brand .logo svg { color: var(--color-primary); }
.footer__brand p { font-size: 0.88rem; }
.footer__col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer__col a { display: block; font-size: 0.88rem; margin-bottom: 10px; color: #c7cede; }
.footer__col a:hover { color: #fff; }
.footer__bottom { text-align: center; padding: 20px 0; font-size: 0.9rem; }

/* Cart drawer */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(20,33,61,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 100%; max-width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.cart-drawer.is-open { right: 0; }

.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-empty { color: var(--color-muted); text-align: center; margin-top: 40px; }

.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item__media {
  width: 56px; height: 56px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-item__media svg { width: 60%; color: #fff; }
.cart-item__info { flex: 1; }
.cart-item__info h4 { font-size: 0.92rem; margin-bottom: 4px; }
.cart-item__info span { font-size: 0.92rem; color: var(--color-muted); }
.cart-item__qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item__qty button {
  width: 22px; height: 22px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1;
}
.cart-item__remove { color: var(--color-muted); font-size: 0.78rem; text-decoration: underline; margin-left: auto; }

.cart-drawer__footer { padding: 20px 24px; border-top: 1px solid var(--color-border); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 1.05rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { height: 220px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { position: fixed; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--color-border); transform: translateY(-150%); transition: transform 0.25s ease; }
  .nav.is-open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .hero__art { height: 180px; }
  .hero__circle { width: 220px; height: 220px; }
  .hero__bike { width: 190px; }
  .newsletter__inner { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr; }
}
