@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #DC2626;
  --secondary: #FBBF24;
  --background: #F3F4F6;
  --card: #FFFFFF;
  --text: #111827;
  --muted: #6B7280;
  --accent: #1F2937;
  --shadow: 0 15px 35px rgba(17, 24, 39, 0.08);
}

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

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
}

section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-kicker {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.section-title {
  font-size: 2rem;
  margin-top: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  gap: 0.8rem;
}

.logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--card);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.25rem 1rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--accent);
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.cart-pill {
  background: var(--secondary);
  color: var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  border-radius: 999px;
}

.btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #b91c1c;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--accent);
}

.btn-secondary:hover {
  background: #f59e0b;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid #e5e7eb;
}

.btn-link {
  padding: 0.5rem 0.9rem;
  background: var(--card);
  border: 1px solid #e5e7eb;
  color: var(--accent);
}

.btn-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.menu-toggle {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: var(--card);
  display: grid;
  place-items: center;
  cursor: pointer;
}

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

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.nav-open .primary-nav {
  max-height: 380px;
  padding-bottom: 0.5rem;
}

.nav-open .menu-toggle span {
  background: transparent;
}

.nav-open .menu-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .menu-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 4.5rem 0;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-text {
  display: grid;
  gap: 1rem;
  align-content: center;
  animation: fadeUp 0.9s ease forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  width: fit-content;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.highlight-strip {
  background: var(--card);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.35rem;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.category-card,
.product-card,
.deal-card,
.concept-card,
.benefit-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

.category-card img,
.product-card img,
.deal-card img {
  border-radius: 12px;
  height: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-card:hover,
.product-card:hover,
.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover img,
.product-card:hover img,
.deal-card:hover img {
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

.price {
  font-weight: 700;
  color: var(--primary);
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.deal-price {
  font-weight: 700;
  color: var(--primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.concept {
  background: var(--card);
  border-radius: 14px;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.benefits-grid {
  display: grid;
  gap: 1rem;
}

.benefit-card {
  gap: 0.4rem;
}

.callout {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.callout .btn {
  background: #fff;
  color: var(--primary);
}

.callout .btn:hover {
  background: #fef2f2;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-btn {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Grids */
.categories-grid {
  display: grid;
  gap: 1.25rem;
}

.products-grid {
  display: grid;
  gap: 1.25rem;
}

.deals-grid {
  display: grid;
  gap: 1.25rem;
}

.concept-grid {
  display: grid;
  gap: 1rem;
}

.cta-strip {
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
  box-shadow: var(--shadow);
}

/* Product detail */
.product-hero {
  background: var(--card);
  border-radius: 14px;
  padding: 1.5rem;
  display: grid;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

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

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.4rem;
}

.quantity-control button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--secondary);
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.quantity-control input {
  width: 48px;
  text-align: center;
  border: none;
  font-weight: 600;
  background: transparent;
}

.related-grid {
  display: grid;
  gap: 1rem;
}

/* Forms */
.newsletter {
  display: grid;
  gap: 0.7rem;
}

.newsletter form,
.contact-form form {
  display: grid;
  gap: 0.7rem;
}

.input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 1rem;
}

.input:focus {
  outline: 2px solid rgba(220, 38, 38, 0.25);
}

.form-row {
  display: grid;
  gap: 0.7rem;
}

.form-message {
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.12);
  color: #065f46;
  font-weight: 600;
  display: none;
}

/* Footer */
footer {
  background: var(--accent);
  color: #fff;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-col h4 {
  margin-bottom: 0.75rem;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--secondary);
}

.copyright {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (min-width: 640px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .categories-grid,
  .products-grid,
  .deals-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .header-inner {
    padding: 1rem 1.5rem;
  }

  .primary-nav {
    position: static;
    max-height: none;
    padding: 0;
    background: transparent;
    display: flex;
    justify-content: center;
    flex: 1;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }

  .menu-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .deals-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .concept-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
    position: relative;
  }

  .nav-actions {
    margin-left: 0.5rem;
    gap: 0.4rem;
  }

  .logo {
    flex: 1;
  }

  .primary-nav {
    width: 100%;
  }
 
  .menu-toggle {
    order: 4;
    margin-left: auto;
  }
}

@media (min-width: 1200px) {
  section {
    padding: 5rem 0;
  }
}
