:root {
  --brand-red: #E4002B;
  --brand-red-dark: #BE0024;
  --brand-black: #111111;
  --bg-light: #F5F5F5;
  --surface-white: #FFFFFF;
  --text-primary: #171717;
  --text-secondary: #666666;
  --border-soft: #E9E9E9;
  --shadow-soft: 0 12px 30px rgba(17, 17, 17, 0.08);
  --shadow-card: 0 10px 28px rgba(17, 17, 17, 0.08);
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

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

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.header-links {
  display: inline-flex;
  gap: 28px;
  color: var(--text-secondary);
  font-weight: 600;
}

.header-links a {
  position: relative;
}

.header-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: width 0.2s ease;
}

.header-links a:hover {
  color: var(--text-primary);
}

.header-links a:hover::after {
  width: 100%;
}

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

.icon-btn,
.cart-btn,
.primary-btn,
.secondary-btn,
.category-btn {
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.icon-btn:hover,
.cart-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.category-btn:hover {
  transform: translateY(-1px);
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface-white);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-black);
  color: #fff;
}

.cart-btn strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-red);
  font-size: 12px;
}

.hero-section {
  padding: 28px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 22px;
  align-items: stretch;
}

.hero-copy,
.offer-card,
.step-card,
.product-card,
.cart-drawer {
  background: var(--surface-white);
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  border-radius: 28px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(228, 0, 43, 0.08);
  color: var(--brand-red);
  font-weight: 700;
  font-size: 13px;
  width: fit-content;
}

.hero-copy h1,
.section-head h2 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}

.primary-btn,
.secondary-btn {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
}

.primary-btn {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 10px 22px rgba(228, 0, 43, 0.22);
}

.primary-btn:hover {
  background: var(--brand-red-dark);
}

.secondary-btn {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
}

.secondary-btn:hover {
  border-color: rgba(17, 17, 17, 0.18);
  background: #fafafa;
}

.primary-btn.small,
.secondary-btn.small {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
}

.full-width {
  width: 100%;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f6f6f6;
  border: 1px solid var(--border-soft);
  font-size: 14px;
  font-weight: 600;
}

.hero-promo-wrapper {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #000;
  min-height: 100%;
}

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

.offers-section,
.menu-section,
.how-section {
  padding: 18px 0 30px;
}

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

.offer-card,
.step-card {
  border-radius: 22px;
  padding: 28px;
}

.offer-card h3,
.step-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.offer-card p,
.step-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.offer-red {
  background: linear-gradient(145deg, var(--brand-red) 0%, #ff355a 100%);
  color: #fff;
  border-color: transparent;
}

.offer-red p,
.offer-red .offer-badge {
  color: #fff;
}

.offer-red .offer-badge {
  background: rgba(255, 255, 255, 0.14);
}

.offer-badge,
.product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
}

.offer-badge {
  background: rgba(17, 17, 17, 0.06);
  color: var(--text-primary);
  width: fit-content;
}

.offer-badge.neutral {
  background: rgba(17, 17, 17, 0.06);
  color: var(--text-primary);
}

.section-head {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head.compact h2 {
  font-size: clamp(30px, 3vw, 40px);
}

.section-head h2 {
  font-size: clamp(30px, 3vw, 42px);
}

.search-box {
  width: min(100%, 360px);
}

.search-box input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border-soft);
  background: var(--surface-white);
  border-radius: 14px;
  outline: none;
  padding: 0 16px;
}

.search-box input:focus {
  border-color: rgba(228, 0, 43, 0.28);
  box-shadow: 0 0 0 4px rgba(228, 0, 43, 0.08);
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.category-strip::-webkit-scrollbar {
  height: 8px;
}

.category-strip::-webkit-scrollbar-thumb {
  background: #d7d7d7;
  border-radius: 999px;
}

.category-btn {
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface-white);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  white-space: nowrap;
  font-weight: 700;
}

.category-btn.active {
  background: var(--brand-black);
  border-color: var(--brand-black);
  color: #fff;
}

.products-meta {
  margin: 18px 0 12px;
  color: var(--text-secondary);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface-white);
  height: 100%;
}

.product-media {
  position: relative;
  min-height: 240px;
  background: linear-gradient(180deg, #fff6f7 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

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

.product-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  background: var(--brand-red);
  color: #fff;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-top-row,
.product-bottom-row,
.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-top-row {
  align-items: flex-start;
}

.product-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.product-rating,
.product-meta-row,
.product-old-price,
.empty-cart p,
.cart-line.muted {
  color: var(--text-secondary);
}

.product-description {
  margin: 12px 0 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

.product-bottom-row {
  align-items: flex-end;
}

.price-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-price {
  font-size: 24px;
}

.product-old-price {
  font-size: 14px;
  text-decoration: line-through;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(228, 0, 43, 0.08);
  color: var(--brand-red);
  font-weight: 800;
  margin-bottom: 14px;
}

.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: min(100%, 420px);
  height: 100vh;
  z-index: 50;
  transform: translateX(102%);
  transition: transform 0.25s ease;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.drawer-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-header,
.cart-footer {
  padding: 22px;
  border-bottom: 1px solid var(--border-soft);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-footer {
  border-top: 1px solid var(--border-soft);
  border-bottom: 0;
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.cart-items {
  padding: 12px 22px 0;
  overflow-y: auto;
}

.cart-item,
.empty-cart {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}

.cart-item-top,
.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-title {
  margin: 0 0 4px;
  font-size: 16px;
}

.cart-item-meta {
  color: var(--text-secondary);
  font-size: 14px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f3f3f3;
  color: var(--text-primary);
}

.qty-controls span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.remove-line {
  background: transparent;
  color: var(--brand-red);
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}

.empty-cart {
  text-align: center;
  padding-top: 42px;
}

.empty-cart .cart-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.desktop-only {
  display: inline-flex;
}

@media (max-width: 1100px) {
  .hero-grid,
  .offers-grid,
  .steps-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-promo-wrapper {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .desktop-only {
    display: none;
  }

  .container {
    width: min(100% - 20px, var(--container));
  }

  .header-row {
    min-height: 74px;
  }

  .hero-copy,
  .offer-card,
  .step-card,
  .product-body {
    padding: 20px;
  }

  .hero-copy h1,
  .section-head h2 {
    font-size: 32px;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .offers-grid,
  .steps-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-bottom-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

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