:root {
  --green: #166534;
  --orange: #f97316;
  --bg: #f5f5f4;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #a3e635;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  --font-display: "Space Grotesk", "Work Sans", system-ui, sans-serif;
  --font-body: "Work Sans", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.category-card img,
.product-card img,
.offer-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

button {
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 32px;
}

.text-muted {
  color: var(--muted);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 24px rgba(22, 101, 52, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #115427;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(249, 115, 22, 0.1);
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--surface);
  z-index: 20;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--green);
  letter-spacing: 0.4px;
}

.menu-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: var(--surface);
  display: grid;
  place-items: center;
}

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

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

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

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

.menu-toggle.active span {
  background: transparent;
}

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

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

.nav-links {
  position: absolute;
  inset: 100% 0 auto;
  background: var(--surface);
  padding: 0 6vw 18px;
  display: grid;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: max-height 0.28s ease, transform 0.28s ease, opacity 0.28s ease;
  opacity: 0;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

.nav-links.open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text);
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  background: rgba(22, 101, 52, 0.08);
  color: var(--green);
}

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

.login-link {
  padding: 8px 12px;
  border: 1.2px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-pill {
  padding: 8px 12px;
  background: rgba(22, 101, 52, 0.08);
  color: var(--green);
  border-radius: 999px;
  font-weight: 700;
}

.hero {
  padding: 48px 0 24px;
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-content {
  display: grid;
  gap: 18px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(163, 230, 53, 0.22);
  color: var(--green);
  font-weight: 700;
  width: fit-content;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin: 0;
}

.hero p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  aspect-ratio: 5 / 4;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-stats {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  background: rgba(22, 101, 52, 0.08);
  color: var(--green);
  font-weight: 700;
}

.grid {
  display: grid;
}

.category-grid {
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.category-card {
  background: var(--surface);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.1);
}

.category-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-grid {
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card.hidden {
  display: none;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.1);
}

.product-card h4 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

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

.unit {
  color: var(--muted);
  font-size: 0.95rem;
}

.info-grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.info-card {
  padding: 16px;
  border-radius: var(--radius);
  background: #e8f5ec;
  color: #0f3b1f;
  border: 1px solid rgba(22, 101, 52, 0.16);
}

.steps {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card {
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-card h4 {
  margin: 0 0 8px;
}

.final-cta {
  background: linear-gradient(120deg, rgba(22, 101, 52, 0.12), rgba(249, 115, 22, 0.12));
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-btn {
  padding: 10px 14px;
  border: 1.5px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(22, 101, 52, 0.08);
  border-color: rgba(22, 101, 52, 0.24);
  color: var(--green);
}

.offer-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.offer-price {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

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

.hero .hero-content,
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
}

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

body.page-loaded .hero .hero-content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-hero {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}

.service-grid {
  gap: 20px;
}

.contact-grid {
  gap: 20px;
}

.product-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.product-details {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(17, 24, 39, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.quantity-control button {
  background: #f0f1ef;
  padding: 10px 14px;
  font-weight: 700;
}

.quantity-control input {
  width: 56px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  outline: none;
}

.footer {
  background: var(--surface);
  padding: 36px 0 28px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: start;
}

.footer h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
}

.footer p {
  margin: 0 0 10px;
  color: var(--muted);
}

.footer a {
  color: var(--text);
  display: inline-block;
  margin-bottom: 6px;
}

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

.newsletter input {
  padding: 10px 12px;
  border: 1.5px solid rgba(17, 24, 39, 0.18);
  border-radius: 12px;
  flex: 1;
  min-width: 200px;
}

.newsletter button {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.contact-card {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

form .field {
  display: grid;
  gap: 6px;
}

form label {
  font-weight: 600;
}

form input,
form textarea,
select {
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(17, 24, 39, 0.16);
  background: #fff;
  font-family: var(--font-body);
  resize: vertical;
}

.form-status {
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.error {
  background: #ffe6e6;
  color: #a11b1b;
}

.form-status.success {
  background: #e6f7ec;
  color: #0f5132;
}

.badge-soft {
  padding: 6px 10px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
  border-radius: 10px;
  font-weight: 700;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0;
    max-height: none;
    transform: none;
    opacity: 1;
    box-shadow: none;
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 480px) {
  .navbar {
    gap: 10px;
    padding: 10px 0;
  }

  .header-actions {
    gap: 6px;
  }

  .login-link,
  .cart-pill {
    padding: 7px 10px;
    font-size: 0.9rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
}

@media (max-width: 720px) {
  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .menu-toggle {
    order: 3;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 80px 0;
  }

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

  .final-cta {
    grid-template-columns: 1fr auto;
  }

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

  .contact-grid {
    grid-template-columns: 1fr 0.9fr;
  }
}
