/* ==========================================================
   INDERLIFE — full site stylesheet
   Covers: header.php, template-home.php, footer.php
   Every class is prefixed "ih-" (header) or "il-" (page/footer)
   to avoid colliding with Blocksy's or WooCommerce's own CSS.
   Colors are written directly as hex — no CSS custom properties.
   ========================================================== */

/* ---------- Reset ---------- */
.ih-header, .ih-header *,
.il-hero, .il-hero *,
.il-trust-strip, .il-trust-strip *,
.il-section, .il-section *,
.il-story-banner, .il-story-banner *,
.il-footer, .il-footer *,
.il-topbar, .ih-topbar{
  box-sizing: border-box;
}

/* ==========================================================
   HEADER  (header.php)
   ========================================================== */

.ih-topbar{
  background: #203A24;
  color: #EAF3E7;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .03em;
  padding: 9px 12px;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.ih-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(246,251,243,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E4EEDF;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}
.ih-header-inner{
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}

.ih-logo{
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.ih-logo img{ max-height: 40px; width: auto; display: block; }
.ih-logo-word{
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  color: #203A24;
}

.ih-nav{
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}
.ih-nav ul{ display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.ih-nav a{
  position: relative;
  color: #1E2A1F;
  text-decoration: none;
}
.ih-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: #7FAE72;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.ih-nav a:hover::after,
.ih-nav .current-menu-item a::after{ transform: scaleX(1); }

.ih-nav li{ position: relative; list-style: none; }
.ih-nav .sub-menu{
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border: 1px solid #E4EEDF;
  border-radius: 12px;
  padding: 10px;
  min-width: 190px;
  box-shadow: 0 18px 40px rgba(32,58,36,.12);
  list-style: none;
}
.ih-nav li:hover > .sub-menu{ display: block; }
.ih-nav .sub-menu a{ display: block; padding: 8px 10px; border-radius: 8px; }
.ih-nav .sub-menu a:hover{ background: #F4EEE1; }
.ih-nav .sub-menu a::after{ display: none; }

.ih-icons{
  display: flex;
  align-items: center;
  gap: 18px;
  color: #203A24;
  flex-shrink: 0;
}
.ih-icon-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.ih-cart-btn{ position: relative; }
.ih-cart-count{
  position: absolute;
  top: -7px; right: -9px;
  background: #D98B3F;
  color: #fff;
  width: 15px; height: 15px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ih-search-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  border-top: 1px solid transparent;
}
.ih-search-panel.is-open{
  max-height: 80px;
  border-top-color: #E4EEDF;
}
.ih-search-form{
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  gap: 10px;
}
.ih-search-form input[type="search"]{
  flex: 1;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #DCE9D6;
  font-size: 14px;
  font-family: inherit;
}
.ih-search-form button{
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: #2F5233;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.ih-search-form button:hover{ background: #203A24; }

@media (max-width: 1024px){
  .ih-nav{ display: none; }
}

/* ==========================================================
   HOME TEMPLATE  (template-home.php)
   ========================================================== */

.il-hero, .il-section, .il-story-banner, .il-footer{
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: #1E2A1F;
}
.il-hero h1, .il-section h2, .il-story-banner h2,
.il-jar-brand, .il-mj-body b, .il-price, .il-footer-logo-word{
  font-family: 'Fraunces', Georgia, serif;
}

.il-eyebrow{
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: #7FAE72; margin-bottom: 14px;
}
.il-eyebrow::before{ content: "— "; }
.il-eyebrow-light{ color: #CFE8C6; }

.il-btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; cursor: pointer; border: none;
}
.il-btn-primary{ background: #2F5233; color: #fff; box-shadow: 0 10px 24px rgba(47,82,51,.25); }
.il-btn-primary:hover{ background: #203A24; transform: translateY(-1px); }
.il-btn-ghost{ color: #2F5233; font-weight: 700; padding: 14px 6px; background: none; }
.il-btn-ghost:hover{ color: #203A24; }
.il-btn-on-dark{ background: #fff; color: #203A24; box-shadow: none; }
.il-btn-on-dark:hover{ background: #EAF3E7; }
.il-btn-add{
  width: 100%; background: #F4EEE1; color: #203A24;
  padding: 11px 0; border-radius: 999px; font-weight: 700; font-size: 13px;
}
.il-btn-add:hover{ background: #E9DFC8; }

.il-section{ max-width: 1220px; margin: 0 auto; padding: 96px 24px; }
.il-section-head{ text-align: center; max-width: 560px; margin: 0 auto 48px; }
.il-section-head h2{ font-size: 32px; color: #203A24; font-weight: 600; margin: 0; }

/* Hero */
.il-hero{ position: relative; overflow: hidden; background: #F6FBF3; }
.il-vine-line{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.il-hero-inner{
  position: relative; z-index: 1; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 56px; padding: 70px 24px 90px;
  flex-wrap: wrap;
}
.il-hero-copy{ flex: 1 1 440px; max-width: 520px; }
.il-hero-copy h1{ font-size: 52px; line-height: 1.08; margin: 0 0 22px; letter-spacing: -.01em; color: #203A24; font-weight: 600; }
.il-hero-copy h1 em{ color: #7FAE72; font-style: italic; }
.il-hero-copy p{ color: #5B6B5C; font-size: 16.5px; max-width: 440px; margin-bottom: 32px; }
.il-hero-actions{ display: flex; align-items: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; }
.il-hero-stats{ display: flex; gap: 36px; flex-wrap: wrap; }
.il-hero-stats strong{ display: block; font-family: 'Fraunces', Georgia, serif; font-size: 24px; color: #203A24; }
.il-hero-stats span{ font-size: 12px; color: #5B6B5C; }

.il-hero-visual{ flex: 1 1 380px; position: relative; display: flex; justify-content: center; min-height: 460px; }
.il-blob{
  position: absolute; width: 420px; height: 420px; top: 10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(160deg, #A9CBA0, #D7EACD);
  border-radius: 62% 38% 55% 45% / 48% 55% 45% 52%;
}
.il-jar-wrap{ position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.il-leaf-badge{
  position: absolute; top: -6px; right: 8px; font-size: 26px;
  background: #fff; border-radius: 50%; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(32,58,36,.16);
}

.il-jar{ width: 230px; filter: drop-shadow(0 30px 26px rgba(32,58,36,.22)); }
.il-jar-lid{ width: 80%; margin: 0 auto; height: 20px; background: linear-gradient(180deg,#fff,#EDEDE8); border: 1px solid #DEDED6; border-bottom: none; border-radius: 12px 12px 0 0; }
.il-jar-neck{ width: 88%; margin: 0 auto; height: 10px; background: #F4EEE1; }
.il-jar-body{
  background: #fff; border: 1px solid #EDEDE8; border-top: none; border-radius: 0 0 30px 30px;
  padding: 20px 22px 26px; display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; overflow: hidden;
}
.il-jar-body::before{ content: ""; display: block; width: 100%; height: 40px; background: linear-gradient(180deg,#7FAE72,#2F5233); margin: -20px -22px 14px; }
.il-jar-brand{ font-weight: 600; color: #2F5233; font-size: 19px; }
.il-jar-name{ font-weight: 800; font-size: 15px; margin-top: 2px; }
.il-jar-tag{ font-size: 11px; color: #5B6B5C; margin-top: 2px; margin-bottom: 16px; }
.il-jar-facts{ display: flex; gap: 16px; margin-top: auto; }
.il-jar-facts div{ text-align: center; }
.il-jar-facts b{ display: block; font-size: 14px; color: #203A24; }
.il-jar-facts i{ font-style: normal; font-size: 8px; color: #5B6B5C; letter-spacing: .04em; text-transform: uppercase; }

/* Trust strip */
.il-trust-strip{
  background: #fff; border-top: 1px solid #E4EEDF; border-bottom: 1px solid #E4EEDF;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 52px; padding: 34px 24px;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}
.il-trust-item{ display: flex; align-items: center; gap: 12px; max-width: 220px; }
.il-trust-ic{ color: #7FAE72; font-size: 18px; }
.il-trust-item strong{ display: block; font-size: 13.5px; color: #1E2A1F; }
.il-trust-item small{ color: #5B6B5C; font-size: 11.5px; }

/* Categories */
.il-category-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 20px; align-items: start; }
.il-category-card{ display: block; text-decoration: none; color: inherit; }
.il-category-img{
  aspect-ratio: 1/1; border-radius: 28px;
  margin-bottom: 14px; position: relative; overflow: hidden;
}
.il-category-card.il-big .il-category-img{ aspect-ratio: 1/1.94; margin-bottom: 0; }
.il-cat-1{ background: linear-gradient(150deg,#BFE0B4,#7FAE72); }
.il-cat-2{ background: linear-gradient(150deg,#EFE6CE,#D7C79B); }
.il-cat-3{ background: linear-gradient(150deg,#F3EAE0,#DCC9C9); }
.il-cat-4{ background: linear-gradient(150deg,#DDEAD1,#A9CBA0); }
.il-cat-5{ background: linear-gradient(150deg,#C9DAB6,#8FAE7A); }
.il-category-img::after{
  content: ""; position: absolute; inset: auto -20% -30% auto; width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(255,255,255,.5), transparent 70%);
  border-radius: 50%;
}
.il-category-copy h3{ font-size: 15.5px; margin: 0 0 2px; color: #203A24; font-family: 'Fraunces', Georgia, serif; }
.il-category-copy p{ font-size: 12.5px; color: #5B6B5C; margin: 0; }
.il-category-copy-overlay{
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 20px;
  background: linear-gradient(0deg, rgba(20,36,22,.72), rgba(20,36,22,0) 70%);
}
.il-category-copy-overlay h3{ color: #fff; font-size: 19px; margin: 0 0 3px; font-family: 'Fraunces', Georgia, serif; }
.il-category-copy-overlay p{ color: #DDEBD6; font-size: 12.5px; margin: 0; }

/* Best sellers */
.il-bestsellers-section{ background: #fff; }
.il-product-grid{ display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }
.il-product-card{
  border: 1px solid #ECE9DD; border-radius: 18px; padding: 24px 16px; text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.il-product-card:hover{ box-shadow: 0 18px 40px rgba(32,58,36,.08); transform: translateY(-3px); }
.il-product-card h4{ font-size: 14.5px; margin: 4px 0 0; color: #1E2A1F; }
.il-product-card p{ font-size: 11.5px; color: #5B6B5C; margin: 0 0 8px; }
.il-stars{ color: #D98B3F; font-size: 12px; margin-bottom: 6px; }
.il-stars em{ font-style: normal; color: #5B6B5C; margin-left: 2px; }
.il-price{ font-weight: 800; font-size: 15px; margin-bottom: 14px; color: #1E2A1F; }

.il-mini-jar{ width: 112px; margin: 0 auto 14px; filter: drop-shadow(0 14px 16px rgba(32,58,36,.16)); }
.il-mj-lid{ width: 78%; margin: 0 auto; height: 11px; background: linear-gradient(180deg,#fff,#EDEDE8); border: 1px solid #DEDED6; border-bottom: none; border-radius: 8px 8px 0 0; }
.il-mj-body{
  background: #fff; border: 1px solid #EDEDE8; border-top: none; border-radius: 0 0 18px 18px;
  min-height: 112px; padding: 8px 10px 12px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.il-mj-body::before{ content: ""; display: block; width: 100%; height: 16px; margin: -8px -10px 8px; }
.il-mj-body b{ font-size: 11px; color: #2F5233; font-weight: 600; }
.il-mj-body span{ font-size: 8.5px; color: #5B6B5C; margin-top: 2px; }
.il-mj-1 .il-mj-body::before{ background: linear-gradient(180deg,#7FAE72,#2F5233); }
.il-mj-2 .il-mj-body::before{ background: linear-gradient(180deg,#D98B3F,#B96C24); }
.il-mj-3 .il-mj-body::before{ background: linear-gradient(180deg,#E39BAE,#C96A85); }
.il-mj-4 .il-mj-body::before{ background: linear-gradient(180deg,#8AA6C9,#5F81AC); }
.il-mj-5 .il-mj-body::before{ background: linear-gradient(180deg,#A9CBA0,#7FAE72); }

/* Story banner */
.il-story-banner{ background: linear-gradient(160deg, #203A24, #2F5233); color: #fff; }
.il-story-inner{
  max-width: 1220px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding: 90px 24px; flex-wrap: wrap;
}
.il-story-copy h2{ color: #fff; font-size: 32px; max-width: 420px; margin: 0 0 22px; font-weight: 600; }
.il-check-list{ margin: 0 0 32px; padding: 0; list-style: none; }
.il-check-list li{ font-size: 14.5px; font-weight: 600; margin-bottom: 8px; color: #EAF3E7; }
.il-check-list li::before{ content: "✓ "; color: #A9CBA0; }
.il-story-jars{ position: relative; width: 420px; height: 230px; flex-shrink: 0; }
.il-story-jars .il-mini-jar{ position: absolute; width: 100px; }
.il-float1{ left: 2%; top: 20%; transform: rotate(-8deg); }
.il-float2{ left: 30%; top: 0%; transform: rotate(5deg); }
.il-float3{ left: 58%; top: 26%; transform: rotate(-4deg); }
.il-float4{ left: 78%; top: 2%; transform: rotate(7deg) scale(.85); }

/* Why choose */
.il-why-grid{ display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }
.il-why-card{ background: #fff; border: 1px solid #ECE9DD; border-radius: 18px; padding: 30px 16px; text-align: center; }
.il-why-ic{ font-size: 24px; display: block; margin-bottom: 12px; }
.il-why-card h4{ font-size: 13.5px; margin: 0 0 5px; color: #1E2A1F; }
.il-why-card p{ font-size: 11.5px; color: #5B6B5C; margin: 0; }

/* ==========================================================
   FOOTER  (footer.php)
   ========================================================== */

.il-service-strip{
  background: #F4EEE1; display: flex; justify-content: center; flex-wrap: wrap; gap: 42px;
  padding: 28px 24px; font-size: 12.5px; font-weight: 600; color: #1E2A1F;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}
.il-service-strip div{ display: flex; align-items: center; gap: 9px; }
.il-service-strip span{ font-size: 18px; }

.il-footer{ background: #203A24; color: #CFE0C9; font-family: 'Manrope', 'Segoe UI', sans-serif; }
.il-footer-inner{
  max-width: 1220px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px;
  flex-wrap: wrap; padding: 64px 24px 32px;
}
.il-footer-brand{ max-width: 260px; }
.il-footer-logo{ display: flex; align-items: center; gap: 9px; text-decoration: none; }
.il-footer-logo-word{ font-size: 20px; font-weight: 600; color: #fff; }
.il-footer-brand p{ font-size: 13px; margin-top: 12px; color: #A9C1A2; }
.il-footer-links{ display: flex; gap: 60px; }
.il-footer-links h5, .il-footer-newsletter h5{ font-family: 'Fraunces', Georgia, serif; color: #fff; font-weight: 600; margin: 0 0 14px; font-size: 14px; }
.il-footer-links a{ display: block; font-size: 13px; margin-bottom: 9px; color: #A9C1A2; text-decoration: none; }
.il-footer-links a:hover{ color: #fff; }
.il-footer-newsletter{ max-width: 280px; }
.il-footer-newsletter p{ font-size: 12.5px; color: #A9C1A2; margin-bottom: 14px; }
.il-footer-newsletter form{ display: flex; gap: 8px; }
.il-footer-newsletter input{ flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid #3F6B48; background: #284A2E; color: #fff; font-size: 13px; }
.il-footer-newsletter input::placeholder{ color: #8FAE85; }
.il-footer-bottom{ text-align: center; font-size: 11.5px; color: #7FA278; padding: 20px; border-top: 1px solid #33553A; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px){
  .il-category-grid{ grid-template-columns: repeat(3,1fr); }
  .il-category-card.il-big{ grid-column: span 3; }
  .il-category-card.il-big .il-category-img{ aspect-ratio: 2.4/1; }
  .il-product-grid, .il-why-grid{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px){
  .il-hero-copy h1{ font-size: 38px; }
  .il-category-grid, .il-product-grid, .il-why-grid{ grid-template-columns: repeat(2,1fr); }
  .il-story-inner{ flex-direction: column; }
  .il-story-jars{ width: 100%; }
  .il-footer-inner{ flex-direction: column; }
}

@media (prefers-reduced-motion: reduce){
  .ih-search-panel{ transition: none; }
}
