:root {
  --red: #c8102e;
  --dark: #1a1a1a;
  --gray: #6b6b6b;
  --light: #f5f5f5;
  --border: #e5e5e5;
  --white: #ffffff;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Promo bar */
.promo-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo-bar a {
  color: var(--white);
  text-decoration: underline;
}

.promo-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.search-box {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  background: var(--light);
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.logo {
  text-align: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-sub {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 2px;
}

.header-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-icons a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.header-icons svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  background: var(--red);
  color: white;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
  margin-top: -8px;
}

/* Main nav */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
}

.main-nav .sale {
  color: var(--red);
  font-weight: 600;
}

/* Trust bar */
.trust-bar {
  background: var(--light);
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}

.trust-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hero */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #2a2a2a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 480px;
  padding-left: 60px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 28px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-white {
  background: white;
  color: var(--dark);
}

.btn-white:hover {
  background: #f0f0f0;
}

.btn-dark {
  background: var(--dark);
  color: white;
}

.btn-dark:hover {
  background: #333;
}

.btn-red {
  background: var(--red);
  color: white;
}

.btn-red:hover {
  background: #a00d25;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--dark);
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: white;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}

.hero-dots button.active {
  background: white;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
}

.section-text {
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 24px;
  font-size: 15px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.section-grid.reverse {
  direction: rtl;
}

.section-grid.reverse > * {
  direction: ltr;
}

.section-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--light);
}

.section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product grid */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.products-header h1 {
  font-size: 28px;
  font-weight: 500;
}

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

.filter-bar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: white;
}

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

.product-card {
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-img {
  aspect-ratio: 1;
  background: var(--light);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.product-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.product-price {
  font-size: 15px;
  font-weight: 600;
}

.product-price .was {
  text-decoration: line-through;
  color: var(--gray);
  font-weight: 400;
  font-size: 13px;
  margin-right: 6px;
}

.product-finance {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}

.product-gallery {
  background: var(--light);
  border-radius: 8px;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
}

.product-info .price {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-info .finance {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 24px;
}

.product-info .desc {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.qty-row label {
  font-size: 14px;
  font-weight: 500;
}

.qty-control {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.qty-control button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--light);
  cursor: pointer;
  font-size: 16px;
}

.qty-control input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 14px;
}

.action-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.action-btns .btn {
  flex: 1;
  text-align: center;
  padding: 14px;
}

.guarantees {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
}

.guarantees span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* About page */
.page-header {
  padding: 48px 0 24px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 500;
}

.about-content {
  max-width: 720px;
  padding-bottom: 48px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

.about-image {
  margin: 40px 0;
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
}

/* Cart / Checkout */
.cart-page {
  padding: 48px 0 80px;
}

.cart-page h1 {
  font-size: 28px;
  margin-bottom: 32px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 100px;
  height: 100px;
  background: var(--light);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-info .price {
  font-weight: 600;
  margin-bottom: 8px;
}

.cart-summary {
  background: var(--light);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-size: 18px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 600;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

.checkout-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.checkout-btns .btn {
  width: 100%;
  text-align: center;
  padding: 14px;
}

.payment-icons {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray);
}

/* Blog teaser */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.blog-card-img {
  aspect-ratio: 16/10;
  background: var(--light);
}

.blog-card-body {
  padding: 16px;
}

.blog-card-body h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card-body p {
  font-size: 13px;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-date {
  font-size: 12px;
  color: var(--gray);
  margin-top: 10px;
}

/* Trust strip */
.trust-strip {
  background: var(--light);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.trust-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 13px;
  color: var(--gray);
}

/* Footer */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 48px 0 24px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer a {
  display: block;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .promo-links {
    display: none;
  }
  .search-box {
    display: none;
  }
  .header-top {
    padding: 12px 0;
  }
  .logo-text {
    font-size: 22px;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 12px 24px;
  }
  .menu-toggle {
    display: block;
  }
  .trust-bar {
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 11px;
  }
  .hero {
    height: 420px;
  }
  .hero-content {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .section-grid,
  .section-grid.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .action-btns {
    flex-direction: column;
  }
}
