:root {
  --green-900: #0b3d1f;
  --green-800: #10531e;
  --green-700: #146c2e;
  --green-600: #1d8a3f;
  --green-500: #2fa84f;
  --green-400: #4fc06a;
  --green-100: #e9f7ee;
  --amber: #f5a623;
  --dark-text: #1f2a24;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background-color: #fbfdfb;
}

h1, h2, h3, h4, h5, h6, .brand-font { font-family: var(--font-heading); }

a { text-decoration: none; }

/* ---------- Topbar / Navbar ---------- */
.topbar {
  background: var(--green-900);
  color: #eafaf0;
}

.navbar-brand { color: var(--green-700) !important; letter-spacing: -0.5px; }
.navbar-nav .nav-link { font-weight: 500; color: var(--dark-text) !important; margin: 0 6px; }
.navbar-nav .nav-link:hover { color: var(--green-600) !important; }
.search-input { min-width: 220px; border-radius: 20px 0 0 20px; }
.search-input:focus { box-shadow: none; border-color: var(--green-500); }

/* ---------- Hero / Banner ---------- */
.hero-slider .carousel-item {
  height: 520px;
  position: relative;
  overflow: hidden;
}
.hero-slider .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroKenBurns 12s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-bg { animation: none; }
}
.hero-slider .carousel-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,61,31,.85) 0%, rgba(11,61,31,.35) 55%, rgba(11,61,31,.05) 100%);
  z-index: 1;
}
/* Transición en fundido suave entre slides (mod al carousel-fade de Bootstrap) */
.hero-slider .carousel-fade .carousel-item {
  transition: opacity 1.2s ease;
}
.hero-caption {
  position: relative; z-index: 2;
  max-width: 560px;
  color: #fff;
  padding: 0 4rem;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-caption h1 { font-size: 2.6rem; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-caption p { font-size: 1.1rem; opacity: .9; }
@media (max-width: 767px) {
  .hero-slider .carousel-item {
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 260px;
    max-height: 380px;
  }
  .hero-slider .hero-bg { animation-name: heroKenBurnsMobile; }
  .hero-caption { padding: 0 1.25rem; }
  .hero-caption h1 { font-size: 1.5rem; }
  .hero-caption p { font-size: .92rem; }
}
@keyframes heroKenBurnsMobile {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(-1%, -0.5%); }
}

/* ---------- Sections ---------- */
.section-title { font-weight: 800; color: var(--green-900); }
.section-subtitle { color: #6b7a70; }
.badge-eyebrow {
  display: inline-block; background: var(--green-100); color: var(--green-700);
  font-weight: 700; font-size: .75rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 10px;
}

/* ---------- Category cards ---------- */
.category-card {
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid #eef2ef;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.category-card .category-img {
  height: 170px; background-size: cover; background-position: center;
  transition: transform .5s ease;
}
.category-card:hover .category-img { transform: scale(1.08); }
.category-caption {
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
}
.category-name { font-weight: 700; color: var(--green-900); font-size: 1.05rem; }
.category-arrow {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; transition: background .25s ease, color .25s ease;
}
.category-card:hover .category-arrow { background: var(--green-600); color: #fff; }
.category-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(16,83,30,.14); }

/* ---------- Product Cards ---------- */
.product-card {
  border: 1px solid #eef2ef; border-radius: 14px; overflow: hidden; background: #fff;
  transition: transform .25s ease, box-shadow .25s ease; height: 100%;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(16,83,30,.12); }
.product-card .img-wrap { height: 190px; overflow: hidden; position: relative; background: #f4f8f5; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .img-wrap img { transform: scale(1.08); }
.product-card .badge-offer {
  position: absolute; top: 10px; left: 10px; background: var(--amber); color: #fff;
  font-weight: 700; font-size: .72rem; padding: 4px 10px; border-radius: 20px;
}
.product-card .badge-featured {
  position: absolute; top: 10px; right: 10px; background: var(--green-700); color: #fff;
  font-size: .7rem; padding: 4px 9px; border-radius: 20px;
}
.product-card .card-body { display: flex; flex-direction: column; flex-grow: 1; }
.product-card .cat-label { font-size: .72rem; color: var(--green-600); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.product-card .product-title { font-weight: 600; font-size: .98rem; color: var(--dark-text); min-height: 44px; }
.product-card .price-old { text-decoration: line-through; color: #9aa39d; font-size: .85rem; }
.product-card .price-new { color: var(--green-700); font-weight: 800; font-size: 1.15rem; }

.btn-success, .btn-outline-success { --bs-btn-bg: var(--green-600); --bs-btn-border-color: var(--green-600); }
.btn-success { background: var(--green-600); border-color: var(--green-600); }
.btn-success:hover { background: var(--green-700); border-color: var(--green-700); }
.btn-outline-success { color: var(--green-700); border-color: var(--green-600); }
.btn-outline-success:hover { background: var(--green-600); border-color: var(--green-600); }
.text-success { color: var(--green-600) !important; }
.bg-success { background-color: var(--green-600) !important; }

/* ---------- Product detail ---------- */
.product-gallery-main { border-radius: 14px; overflow: hidden; border: 1px solid #eef2ef; height: 420px; display:flex; align-items:center; justify-content:center; background:#fff;}
.product-gallery-main img { max-height: 100%; max-width: 100%; object-fit: contain; }
.thumb-img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.thumb-img.active, .thumb-img:hover { border-color: var(--green-600); }
.spec-table th { width: 40%; color: #5c6b60; font-weight: 600; background: var(--green-100); }

/* ---------- Cart ---------- */
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.qty-input { width: 70px; }

/* ---------- Steps / Checkout ---------- */
.checkout-step { background: #fff; border-radius: 14px; padding: 24px; border: 1px solid #eef2ef; }

/* ---------- Footer ---------- */
.footer-site { background: var(--green-900); }
.footer-links { color: #cfe8d7; }
.footer-links li { margin-bottom: 8px; opacity: .9; }
.footer-links a { color: #cfe8d7; opacity: .9; }
.footer-links a:hover { color: #fff; opacity: 1; }
.social-icon {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.social-icon:hover { background: var(--green-600); }

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #25d366; color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* ---------- Auth pages ---------- */
.auth-card { max-width: 460px; margin: 40px auto; border-radius: 16px; border: 1px solid #eef2ef; }

/* ---------- Misc ---------- */
.icon-feature {
  width: 56px; height: 56px; border-radius: 14px; background: var(--green-100);
  display: flex; align-items: center; justify-content: center; color: var(--green-700); font-size: 1.5rem;
}
.brand-logo-box { border: 1px solid #eef2ef; border-radius: 12px; padding: 14px; display:flex; align-items:center; justify-content:center; height: 90px; }
.blog-card img { height: 190px; object-fit: cover; border-radius: 12px 12px 0 0; }
.pagination .page-link { color: var(--green-700); }
.pagination .active .page-link { background: var(--green-600); border-color: var(--green-600); }
