/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #1B4332;
  --green-700: #2D6A4F;
  --green-500: #52B788;
  --green-100: #D8F3DC;
  --green-50:  #F0FDF4;
  --orange:    #E76F51;
  --orange-dk: #CF5C3B;
  --dark:      #0F172A;
  --text:      #1C1C1C;
  --muted:     #6B7280;
  --bg:        #FAFAF8;
  --white:     #FFFFFF;
  --border:    #E5E7EB;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow:    0 2px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --tr:        200ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-500); margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--text); line-height: 1.2;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary { background: var(--orange); color: var(--white); border: 2px solid var(--orange); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--orange-dk); border-color: var(--orange-dk); }

.btn--secondary { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn--secondary:hover, .btn--secondary:focus-visible { border-color: var(--green-700); color: var(--green-700); }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark); color: rgba(255,255,255,.9);
  font-size: .8rem; height: 36px;
  display: flex; align-items: center; overflow: hidden;
}
.top-bar__track { width: 100%; display: flex; justify-content: center; }
.top-bar__item { display: none; align-items: center; gap: .5rem; white-space: nowrap; }
.top-bar__item.active { display: flex; }
.top-bar__item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--tr);
}
.header--scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex; align-items: center; gap: 1rem; padding: .75rem 0;
}

/* Logo */
.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo__icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.logo__icon::after { content: '🐾'; }
.logo__text { font-size: 1.1rem; font-weight: 700; color: var(--green-900); line-height: 1.2; }
.logo__text span { display: block; font-size: .7rem; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Search */
.search { flex: 1; max-width: 480px; margin: 0 auto; position: relative; }
.search__icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search__icon svg { width: 18px; height: 18px; }
.search__input {
  width: 100%; padding: .6rem 1rem .6rem 2.6rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; background: var(--bg); outline: none;
  transition: border-color var(--tr);
}
.search__input:focus { border-color: var(--green-500); }

/* Header actions */
.header__actions { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.header__action-btn {
  position: relative; width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: background var(--tr), color var(--tr);
}
.header__action-btn:hover { background: var(--green-50); color: var(--green-700); }
.header__action-btn svg { width: 22px; height: 22px; }

.cart-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--orange); color: var(--white);
  font-size: .62rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.menu-toggle { display: none; }

/* ===== NAV ===== */
.nav { background: var(--white); border-bottom: 1px solid var(--border); }
.nav__list {
  display: flex; align-items: center;
  overflow-x: auto; scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__link {
  display: flex; align-items: center; gap: .4rem;
  padding: .75rem 1rem; font-size: .9rem; font-weight: 500;
  color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--tr), border-color var(--tr);
}
.nav__link svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav__link:hover, .nav__link.active { color: var(--green-700); border-bottom-color: var(--green-700); }
.nav__link--highlight { color: var(--orange); font-weight: 600; }
.nav__link--highlight:hover { color: var(--orange-dk); border-bottom-color: var(--orange-dk); }
.nav__close-btn { position: absolute; top: 1rem; right: 1rem; }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; min-height: 480px; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-image { width: 100%; height: 100%; }
.hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.04); z-index: 1; }
.hero__decor { position: absolute; border-radius: 50%; z-index: 1; opacity: .4; }
.hero__decor--1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--green-100) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.hero__decor--2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(231,111,81,.2) 0%, transparent 70%);
  bottom: -50px; right: 20%;
}
.hero__content {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 3rem;
  padding: 4rem 1.25rem;
}
.hero__text { flex: 1; max-width: 540px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--green-100); color: var(--green-700);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.hero__badge::before { content: '🌿'; }

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.1; color: var(--text); margin-bottom: 1rem;
}
.hero__title em { font-style: normal; color: var(--green-700); }
.hero__subtitle { font-size: 1rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.7; }

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero__trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero__trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--muted); line-height: 1.3;
}
.hero__trust-icon { font-size: 1.3rem; }

/* Hero visual */
.hero__visual { flex-shrink: 0; width: 340px; }
.hero__product-showcase { position: relative; }
.hero__product-main {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; box-shadow: var(--shadow-lg);
}
.product-placeholder {
  width: 140px; height: 140px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.product-placeholder__emoji { font-size: 3.5rem; }
.product-placeholder__text {
  font-size: .72rem; color: var(--muted); text-align: center;
  line-height: 1.3; margin-top: .25rem;
}
.hero__product-name { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.hero__product-price { font-size: 1.2rem; font-weight: 700; color: var(--green-700); }

.hero__float {
  position: absolute; background: var(--white); border-radius: var(--radius);
  padding: .75rem 1rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .6rem;
  font-size: .78rem; color: var(--text); line-height: 1.3;
}
.hero__float--top  { top: -20px; right: -30px; }
.hero__float--bottom { bottom: -20px; left: -30px; }
.hero__float__icon { font-size: 1.3rem; }

/* ===== CATEGORIES ===== */
.categories { padding: 4rem 0; }
.categories__header { text-align: center; margin-bottom: 2.5rem; }
.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 1rem; border: 2px solid var(--border);
  text-align: center;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.category-card:hover, .category-card:focus-visible {
  border-color: var(--green-500); transform: translateY(-4px);
  box-shadow: var(--shadow); outline: none;
}
.category-card__icon { font-size: 2.5rem; line-height: 1; }
.category-card__title { font-size: 1rem; font-weight: 600; color: var(--text); }
.category-card__count { font-size: .8rem; color: var(--muted); }

/* ===== PRODUCTS ===== */
.products { padding: 4rem 0; background: var(--bg); }
.products__header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap;
}
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.product-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); position: relative;
  transition: box-shadow var(--tr), transform var(--tr);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.product-card__badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--orange); color: var(--white);
  font-size: .72rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 999px; z-index: 1;
}
.product-card__badge--new { background: var(--green-700); }

.product-card__image {
  position: relative;
  background: linear-gradient(135deg, var(--green-50), #F5F0E8);
  height: 160px; display: flex; align-items: center; justify-content: center;
}
.product-card__image-emoji { font-size: 4rem; }

.product-card__wishlist {
  position: absolute; top: .75rem; right: .75rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); display: flex; align-items: center; justify-content: center;
  color: var(--muted); box-shadow: var(--shadow-sm);
  transition: color var(--tr);
}
.product-card__wishlist:hover { color: var(--orange); }
.product-card__wishlist svg { width: 16px; height: 16px; }

.product-card__body { padding: 1rem; }
.product-card__brand {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--green-500); margin-bottom: .3rem;
}
.product-card__name {
  font-size: .9rem; font-weight: 600; color: var(--text);
  line-height: 1.3; margin-bottom: .5rem;
}
.product-card__rating {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; color: var(--muted); margin-bottom: .75rem;
}
.product-card__stars { color: #F59E0B; font-size: .8rem; letter-spacing: 1px; }
.product-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.product-card__price { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.product-card__price small {
  font-size: .8rem; font-weight: 400; color: var(--muted);
  text-decoration: line-through; margin-left: .35rem;
}
.product-card__add {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--green-700); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--tr); flex-shrink: 0;
}
.product-card__add:hover { background: var(--green-900); }
.product-card__add svg { width: 18px; height: 18px; }

/* ===== VALUES ===== */
.values { padding: 4rem 0; background: var(--white); }
.values__header {
  text-align: center; margin-bottom: 3rem;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card {
  text-align: center; padding: 2rem 1.5rem;
  border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border);
}
.value-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.value-card__title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .75rem; }
.value-card__text { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ===== NEWSLETTER ===== */
.newsletter {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
}
.newsletter__card { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.newsletter__text { flex: 1; min-width: 260px; }
.newsletter__discount {
  display: inline-block; background: rgba(255,255,255,.15); color: var(--white);
  font-size: .8rem; font-weight: 700; padding: .3rem .9rem;
  border-radius: 999px; margin-bottom: 1rem;
}
.newsletter__title {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
  color: var(--white); margin-bottom: .75rem; line-height: 1.25;
}
.newsletter__subtitle { font-size: .92rem; color: rgba(255,255,255,.75); line-height: 1.6; }

.newsletter__form { flex: 1; min-width: 300px; }
.newsletter__input-group { display: flex; margin-bottom: .75rem; }
.newsletter__input {
  flex: 1; padding: .8rem 1rem;
  border: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: .95rem; outline: none;
}
.newsletter__input:focus { box-shadow: 0 0 0 2px var(--green-500) inset; }
.newsletter__submit {
  background: var(--orange); color: var(--white);
  font-weight: 700; font-size: .92rem; padding: .8rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  white-space: nowrap; transition: background var(--tr);
}
.newsletter__submit:hover { background: var(--orange-dk); }
.newsletter__privacy { font-size: .75rem; color: rgba(255,255,255,.6); }
.newsletter__privacy a { color: rgba(255,255,255,.85); text-decoration: underline; }
.newsletter__msg {
  margin-top: .75rem; padding: .6rem 1rem;
  border-radius: var(--radius-sm); font-size: .88rem; font-weight: 500;
}
.newsletter__msg--success { background: rgba(255,255,255,.15); color: var(--white); }
.newsletter__msg--error { background: rgba(231,111,81,.25); color: #FECACA; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 3rem 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; padding-bottom: 3rem;
}
.footer__brand .logo__text { color: var(--white); }
.footer__brand .logo__text span { color: rgba(255,255,255,.5); }
.footer__about { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.7; margin: 1rem 0; }
.footer__social { display: flex; gap: .75rem; }
.footer__social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--tr), color var(--tr);
}
.footer__social-link:hover { background: var(--green-700); color: var(--white); }
.footer__social-link svg { width: 18px; height: 18px; }
.footer__heading {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--white); margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color var(--tr); }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: .8rem;
}
.footer__payments { display: flex; gap: .5rem; }
.footer__payment-icon {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  font-size: .7rem; font-weight: 700; padding: .25rem .6rem;
  border-radius: 4px; letter-spacing: .05em;
}

/* ===== WHATSAPP ===== */
.whatsapp { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500; }
.whatsapp__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366;
  animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(1.8); opacity: 0;  }
}
.whatsapp__btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform var(--tr);
}
.whatsapp__btn:hover { transform: scale(1.08); }
.whatsapp__btn svg { width: 28px; height: 28px; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .whatsapp__pulse { animation: none; }
}

/* ===== RESPONSIVE ===== */
/* 1024px */
@media (max-width: 1024px) {
  .hero__content  { gap: 2rem; }
  .hero__visual   { width: 280px; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid   { grid-template-columns: 2fr 1fr 1fr; }
}

/* 768px */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  /* search moves to second row */
  .search { max-width: none; order: 3; flex-basis: 100%; }
  .header__inner { flex-wrap: wrap; }

  /* fullscreen mobile nav */
  .nav {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white); z-index: 300;
    padding: 4rem 1.5rem 2rem; overflow-y: auto;
    flex-direction: column;
  }
  .nav--open { display: flex; }
  .nav__list { flex-direction: column; align-items: flex-start; overflow: visible; }
  .nav__link {
    font-size: 1.1rem; padding: 1rem 0;
    border-bottom: 1px solid var(--border); border-left: none; width: 100%;
  }

  /* hero */
  .hero__content { flex-direction: column; text-align: center; }
  .hero__visual  { width: 100%; max-width: 320px; }
  .hero__float   { display: none; }
  .hero__trust   { justify-content: center; }
  .hero__actions { justify-content: center; }

  /* sections */
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid   { grid-template-columns: repeat(2, 1fr); }
  .values__grid     { grid-template-columns: repeat(2, 1fr); }

  /* footer */
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  /* newsletter */
  .newsletter__card { flex-direction: column; gap: 1.5rem; }
}

/* 480px */
@media (max-width: 480px) {
  .products__grid { grid-template-columns: 1fr; }
  .values__grid   { grid-template-columns: 1fr; }
  .footer__grid   { grid-template-columns: 1fr; }
  .footer__brand  { grid-column: auto; }
}

/* 360px */
@media (max-width: 360px) {
  .hero__trust { flex-direction: column; align-items: center; }
  .newsletter__input-group { flex-direction: column; }
  .newsletter__input  { border-radius: var(--radius-sm); }
  .newsletter__submit { border-radius: var(--radius-sm); width: 100%; }
}
