:root{
  --primary:#00A859; /* Verde Farmaster */
  --primary-dark:#007A41;
  --accent:#00A859;
  --accent-dark:#008C4A;
  --bg:#F7FBF8;
  --white:#FFFFFF;
  --text:#1E293B;
  --muted:#64748B;
  --border:#E2E8F0;
  --shadow:0 10px 30px rgba(15,23,42,.08);
  --shadow-lg:0 20px 40px rgba(15,23,42,.10);
  --radius:22px;
  --radius-sm:16px;
}

/* =========================
   BASE
========================= */
body.farmaster-home{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

body.farmaster-home *{
  box-sizing:border-box;
}

.fh-container{
  width:min(1200px, 92%);
  margin:auto;
}

.fh-section{
  padding:72px 0;
}

.fh-text-center{
  text-align:center;
}

.fh-muted{
  color:var(--muted);
  line-height:1.7;
}

.fh-heading{
  font-size:2rem;
  margin-bottom:14px;
  color:var(--text);
  letter-spacing:-0.02em;
}

/* =========================
   OCULTAR HEADER/FOOTER DEL TEMA EN PREVIEW
========================= */

/* Ajusta estos selectores si tu tema usa otros */
body.farmaster-home.page-template-page-home-farmaster-preview header,
body.farmaster-home.page-template-page-home-farmaster-preview .site-header,
body.farmaster-home.page-template-page-home-farmaster-preview .main-header,
body.farmaster-home.page-template-page-home-farmaster-preview #masthead,
body.farmaster-home.page-template-page-home-farmaster-preview .header,
body.farmaster-home.page-template-page-home-farmaster-preview .top-header,
body.farmaster-home.page-template-page-home-farmaster-preview .sticky-header{
  display:none !important;
}

/* Opcional: si también quieres ocultar footer del tema en preview */
body.farmaster-home.page-template-page-home-farmaster-preview footer,
body.farmaster-home.page-template-page-home-farmaster-preview .site-footer,
body.farmaster-home.page-template-page-home-farmaster-preview #colophon{
  display:none !important;
}

/* Ajustar separación si el tema deja espacio arriba */
body.farmaster-home.page-template-page-home-farmaster-preview{
  margin-top:0 !important;
  padding-top:0 !important;
}

/* =========================
   TOPBAR
========================= */
.fh-topbar{
  background:#E8F8EF;
  color:var(--primary-dark);
  font-size:14px;
  padding:12px 0;
  border-bottom:1px solid #D8F0E2;
}

.fh-topbar .fh-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}

.fh-topbar a{
  color:var(--primary-dark);
  text-decoration:none;
  font-weight:700;
}

/* =========================
   HERO
========================= */
.fh-hero{
  padding:72px 0 42px;
}

.fh-hero-grid{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:34px;
  align-items:center;
}

.fh-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#E8F8EF;
  color:var(--primary-dark);
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
  margin-bottom:20px;
}

.fh-title{
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height:1.03;
  margin:0 0 18px;
  color:var(--text);
  letter-spacing:-0.02em;
}

.fh-subtitle{
  font-size:1.08rem;
  color:var(--muted);
  max-width:650px;
  margin-bottom:28px;
  line-height:1.7;
}

.fh-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:28px;
}

.fh-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px 24px;
  border-radius:999px;
  text-decoration:none !important;
  font-weight:700;
  transition:.25s ease;
  border:1px solid transparent;
  min-height:54px;
}

.fh-btn-primary{
  background:var(--primary);
  color:#fff !important;
  box-shadow: var(--shadow);
}

.fh-btn-primary:hover{
  transform:translateY(-2px);
  opacity:.96;
}

.fh-btn-secondary{
  background:#fff;
  color:var(--primary-dark) !important;
  border-color:#CFEBDD;
}

.fh-btn-secondary:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}

/* =========================
   SEARCH
========================= */
.fh-search-card,
.fh-hero-card,
.fh-card,
.fh-banner,
.fh-trust-card,
.fh-product{
  background:#fff;
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}

.fh-search-card{
  padding:18px;
  margin-top:16px;
}

.fh-search-form{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.fh-search-form input{
  flex:1;
  min-width:220px;
  padding:18px 20px;
  border:1px solid var(--border);
  border-radius:16px;
  font-size:16px;
  outline:none;
  background:#fff;
}

.fh-search-form input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(0,168,89,.10);
}

.fh-search-form button{
  background:var(--accent);
  color:#fff;
  border:none;
  padding:18px 24px;
  border-radius:16px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

.fh-search-form button:hover{
  background:var(--accent-dark);
}

/* Predictive search dropdown */
.fh-search-wrap{
  position:relative;
  flex:1;
  min-width:220px;
}

#fh-search-results{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  right:0;
  background:#fff;
  border:1px solid #E5E7EB;
  border-radius:18px;
  box-shadow:var(--shadow-lg);
  z-index:999;
  display:none;
  overflow:hidden;
}

#fh-search-results a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  text-decoration:none;
  color:var(--text);
  border-bottom:1px solid #F1F5F9;
}

#fh-search-results a:last-child{
  border-bottom:none;
}

#fh-search-results a:hover{
  background:#F8FAFC;
}

#fh-search-results img{
  width:46px;
  height:46px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  border:1px solid #EEF2F7;
  padding:4px;
}

.fh-search-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.fh-search-price{
  font-weight:800;
  color:var(--primary-dark);
  font-size:14px;
}

/* =========================
   HERO CARD
========================= */
.fh-hero-card{
  padding:28px;
  min-height:560px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:linear-gradient(135deg, #E8F8EF 0%, #FFFFFF 100%);
  overflow:hidden;
}

.fh-hero-card img{
  width:100%;
  border-radius:18px;
  object-fit:cover;
  box-shadow:var(--shadow-lg);
}

/* =========================
   BENEFITS
========================= */
.fh-benefits{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:24px;
}

.fh-benefit{
  background:#fff;
  border-radius:18px;
  padding:18px;
  border:1px solid var(--border);
}

.fh-benefit strong{
  display:block;
  font-size:1rem;
  margin-bottom:6px;
}

/* =========================
   CATEGORIES
========================= */
.fh-categories{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-top:36px;
}

.fh-card{
  padding:26px 22px;
  text-align:center;
  transition:.25s ease;
  border:1px solid transparent;
  text-decoration:none;
  color:inherit;
}

.fh-card:hover{
  transform:translateY(-4px);
  border-color:#D7F0E4;
  box-shadow:var(--shadow-lg);
}

.fh-card-icon{
  width:64px;
  height:64px;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#E8F8EF;
  font-size:28px;
}

.fh-card h3{
  font-size:1.05rem;
  margin-bottom:8px;
}

/* =========================
   BANNER
========================= */
.fh-banner{
  padding:34px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
  background:linear-gradient(135deg, #00A859 0%, #007A41 100%);
  color:#fff;
}

/* =========================
   PRODUCTS
========================= */
.fh-products-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-top:36px;
}

.fh-product{
  overflow:hidden;
  border:1px solid #EEF2F7;
  transition:.25s ease;
}

.fh-product:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
}

.fh-product-thumb{
  aspect-ratio:1/1;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  text-decoration:none;
}

.fh-product-thumb img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.fh-product-content{
  padding:18px;
}

.fh-product-title{
  font-size:15px;
  min-height:48px;
  margin-bottom:10px;
  line-height:1.5;
}

.fh-price{
  margin-bottom:14px;
  line-height:1.6;
}

.fh-price del{
  display:block;
  color:#94A3B8;
  font-size:.95rem;
  margin-bottom:4px;
}

.fh-price ins{
  display:block;
  text-decoration:none;
  font-size:1.35rem;
  font-weight:800;
  color:var(--primary-dark);
}

.fh-price > span.amount{
  display:block;
  font-size:1.35rem;
  font-weight:800;
  color:var(--primary-dark);
}

.fh-tag{
  display:inline-block;
  background:#FEF2F2;
  color:#DC2626;
  font-size:12px;
  font-weight:700;
  padding:8px 12px;
  border-radius:999px;
  margin-bottom:12px;
}

.fh-mini-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.fh-mini-actions .fh-btn{
  padding:12px 16px;
  min-height:46px;
  font-size:14px;
}

/* =========================
   TRUST / STEPS
========================= */
.fh-trust-grid,
.fh-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:36px;
}

.fh-trust-card,
.fh-step{
  border-radius:22px;
  padding:28px;
}

.fh-step-number{
  width:48px;
  height:48px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--primary);
  color:#fff;
  font-weight:800;
  margin-bottom:18px;
}

/* =========================
   WHATSAPP BOTONES WOOCOMMERCE
========================= */
body.farmaster-home .button.alt,
body.farmaster-home .single_add_to_cart_button,
body.farmaster-home a.button.alt{
  background:var(--primary) !important;
  border:none !important;
  color:#fff !important;
  border-radius:999px !important;
  font-weight:700 !important;
  padding:12px 18px !important;
}

body.farmaster-home .button.alt:hover,
body.farmaster-home a.button.alt:hover{
  background:var(--primary-dark) !important;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px){
  .fh-products-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width: 992px){
  .fh-hero-grid,
  .fh-categories,
  .fh-trust-grid,
  .fh-steps,
  .fh-benefits{
    grid-template-columns:1fr 1fr;
  }

  .fh-products-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .fh-hero-card{
    min-height:auto;
  }
}

@media (max-width: 768px){
  .fh-hero-grid,
  .fh-categories,
  .fh-products-grid,
  .fh-trust-grid,
  .fh-steps,
  .fh-benefits{
    grid-template-columns:1fr;
  }

  .fh-title{
    font-size:2.45rem;
  }

  .fh-section{
    padding:54px 0;
  }

  .fh-banner{
    padding:26px;
  }

  .fh-search-form{
    flex-direction:column;
  }

  .fh-search-form button{
    width:100%;
  }
}