/*
Theme Name: KavPer
Theme URI: https://www.kavper.in/
Author: KavPer
Author URI: https://www.kavper.in/
Description: A refined, doctor-led luxury skincare theme for KavPer. Fully compatible with WooCommerce, responsive, and performance-minded. Faithfully reproduces the KavPer homepage (forest green + gold + cream, Playfair Display & Raleway) and applies consistent branding across all pages.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kavper
Tags: e-commerce, woocommerce, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, translation-ready, two-columns, right-sidebar
WC requires at least: 7.0
WC tested up to: 9.5
*/

/* ==========================================================================
   1. DESIGN TOKENS  (extracted from kavper.in)
   ========================================================================== */
:root {
  /* Core palette (HSL channels, used as hsl(var(--token))) */
  --background: 156 37% 16%;       /* forest green */
  --foreground: 40 47% 97%;        /* cream text */
  --card: 156 35% 18%;
  --card-foreground: 40 47% 97%;
  --popover: 156 37% 16%;
  --popover-foreground: 40 47% 97%;
  --primary: 39 44% 60%;           /* gold */
  --primary-foreground: 156 37% 12%;
  --secondary: 156 35% 20%;
  --secondary-foreground: 40 47% 97%;
  --muted: 156 30% 22%;
  --muted-foreground: 40 30% 75%;
  --accent: 39 44% 60%;
  --accent-foreground: 156 37% 12%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 40 47% 97%;
  --border: 39 35% 40%;
  --input: 156 30% 25%;
  --ring: 39 44% 60%;
  --radius: .25rem;

  /* Brand aliases */
  --forest: 156 37% 16%;
  --forest-dark: 156 40% 10%;
  --forest-light: 156 30% 25%;
  --gold: 39 44% 60%;
  --gold-light: 39 50% 75%;
  --gold-dark: 39 45% 45%;
  --cream: 40 47% 97%;
  --cream-dark: 40 30% 92%;
  --charcoal: 0 0% 8%;

  /* Gradients */
  --gradient-forest: linear-gradient(180deg, hsl(156 37% 16%) 0%, hsl(156 40% 10%) 100%);
  --gradient-gold: linear-gradient(135deg, hsl(39 50% 75%) 0%, hsl(39 44% 60%) 50%, hsl(39 45% 45%) 100%);
  --gradient-hero: linear-gradient(to right, hsl(156 37% 16%) 0%, transparent 60%);

  /* Shadows */
  --shadow-soft: 0 4px 20px -4px hsl(0 0% 0% / .3);
  --shadow-card: 0 8px 30px -8px hsl(0 0% 0% / .25);
  --shadow-elevated: 0 20px 50px -12px hsl(0 0% 0% / .35);
  --shadow-gold-glow: 0 0 40px hsl(39 50% 75% / .25);

  /* Type */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Raleway", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --header-h: 84px;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: hsl(var(--gold)); text-decoration: none; transition: color .25s ease, opacity .25s ease; }
a:hover { color: hsl(var(--gold-light)); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: hsl(var(--cream)); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid hsl(var(--gold)); font-family: var(--font-serif); font-style: italic; color: hsl(var(--cream)); }
hr { border: 0; border-top: 1px solid hsl(var(--border) / .4); margin: 2rem 0; }
:focus-visible { outline: 2px solid hsl(var(--gold)); outline-offset: 2px; }

/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-sans); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; font-size: .72rem;
  color: hsl(var(--gold)); margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-lead { max-width: 640px; margin-inline: auto; color: hsl(var(--muted-foreground)); font-size: 1.05rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 9999; background: hsl(var(--gold)); color: hsl(var(--forest-dark)); padding: .6rem 1rem; border-radius: var(--radius); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn,
.kavper-cta,
button, input[type="submit"], input[type="button"], .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; letter-spacing: .03em;
  font-size: .92rem; line-height: 1; cursor: pointer; border: 1px solid transparent;
  border-radius: var(--radius); padding: .95rem 1.9rem; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--primary, .kavper-cta--primary {
  background: var(--gradient-gold); color: hsl(var(--forest-dark));
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover, .kavper-cta--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold-glow); color: hsl(var(--forest-dark)); }
.btn--outline, .kavper-cta--outline {
  background: transparent; color: hsl(var(--cream)); border-color: hsl(var(--gold) / .6);
}
.btn--outline:hover, .kavper-cta--outline:hover { background: hsl(var(--gold) / .12); border-color: hsl(var(--gold)); color: hsl(var(--cream)); }
.btn--ghost { background: hsl(var(--secondary)); color: hsl(var(--cream)); }
.btn--ghost:hover { background: hsl(var(--forest-light)); }
.btn--block { width: 100%; }

/* ==========================================================================
   5. HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: hsl(var(--forest) / .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid hsl(var(--gold) / .18);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: var(--header-h); gap: 1rem;
}
.nav-group { display: flex; align-items: center; gap: 2rem; }
.nav-group--left { justify-content: flex-start; }
.nav-group--right { justify-content: flex-end; }
.main-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.main-nav a {
  color: hsl(var(--cream)); font-weight: 500; font-size: .9rem; letter-spacing: .05em;
  text-transform: uppercase; position: relative; padding-block: .35rem;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: hsl(var(--gold)); transition: width .3s ease;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: hsl(var(--gold)); }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { width: 100%; }
.site-branding { display: flex; justify-content: center; }
.site-branding img, .custom-logo { height: 56px; width: auto; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-soft); }
.brand-text { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: hsl(var(--cream)); letter-spacing: .02em; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; justify-content: flex-end; }
.cart-link { position: relative; display: inline-flex; align-items: center; color: hsl(var(--cream)); }
.cart-link:hover { color: hsl(var(--gold)); }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px;
  padding: 0 4px; display: grid; place-items: center; font-family: var(--font-sans);
  font-size: .68rem; font-weight: 700; border-radius: 999px;
  background: var(--gradient-gold); color: hsl(var(--forest-dark));
}
.menu-toggle {
  display: none; background: transparent; border: 0; padding: .4rem; color: hsl(var(--cream)); cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); z-index: 200;
  background: var(--gradient-forest); border-left: 1px solid hsl(var(--gold) / .2);
  transform: translateX(100%); transition: transform .35s ease; padding: 5rem 1.75rem 2rem;
  box-shadow: var(--shadow-elevated); overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a { display: block; padding: .85rem 0; color: hsl(var(--cream)); font-size: 1.05rem; border-bottom: 1px solid hsl(var(--border) / .25); text-transform: uppercase; letter-spacing: .04em; }
.mobile-nav-close { position: absolute; top: 1.25rem; right: 1.25rem; background: transparent; border: 0; color: hsl(var(--cream)); cursor: pointer; }
.mobile-nav-close svg { width: 26px; height: 26px; }
.nav-overlay { position: fixed; inset: 0; background: hsl(0 0% 0% / .55); opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 150; }
.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative; min-height: clamp(560px, 88vh, 820px);
  display: flex; align-items: center; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, hsl(156 40% 10% / .92) 0%, hsl(156 37% 16% / .72) 45%, hsl(156 37% 16% / .35) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 640px; }
.hero__eyebrow { color: hsl(var(--gold-light)); }
.hero__title { font-size: clamp(2.75rem, 6vw, 4.75rem); line-height: 1.05; margin-bottom: 1.25rem; }
.hero__text { font-size: 1.15rem; color: hsl(var(--cream) / .92); max-width: 540px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.25rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--cream) / .85); }
.hero__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--gold)); display: inline-block; }

/* ==========================================================================
   7. INTRO STRIP
   ========================================================================== */
.intro-strip { background: var(--gradient-forest); border-block: 1px solid hsl(var(--gold) / .15); }
.intro-strip p { max-width: 820px; margin-inline: auto; text-align: center; color: hsl(var(--muted-foreground)); font-size: 1.1rem; margin-bottom: 0; }

/* ==========================================================================
   8. PILLARS / PHILOSOPHY
   ========================================================================== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 3rem; }
.pillar {
  background: hsl(var(--card)); border: 1px solid hsl(var(--gold) / .15); border-radius: var(--radius);
  padding: 2.5rem 2rem; text-align: center; box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevated); border-color: hsl(var(--gold) / .45); }
.pillar__icon { width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--gold) / .12); color: hsl(var(--gold)); }
.pillar__icon svg { width: 30px; height: 30px; }
.pillar__eyebrow { color: hsl(var(--gold)); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.pillar h3 { font-size: 1.6rem; margin: .35rem 0 .75rem; }
.pillar p { color: hsl(var(--muted-foreground)); margin-bottom: 0; }

/* ==========================================================================
   9. PRODUCT GRID (home best sellers + WooCommerce)
   ========================================================================== */
.products-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.product-card {
  position: relative; background: hsl(var(--card)); border: 1px solid hsl(var(--gold) / .14);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevated); border-color: hsl(var(--gold) / .4); }
.product-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: hsl(var(--forest-light)); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-step { position: absolute; top: 1rem; left: 1rem; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: var(--gradient-gold); color: hsl(var(--forest-dark)); display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; font-size: 1rem; box-shadow: var(--shadow-soft); }
.product-badges { position: absolute; top: 1rem; right: 1rem; z-index: 2; display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; }
.product-badge { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; background: hsl(var(--forest-dark) / .85); color: hsl(var(--gold-light)); border: 1px solid hsl(var(--gold) / .3); }
.product-add-float {
  position: absolute; left: 50%; bottom: 1rem; transform: translate(-50%, 130%);
  z-index: 3; opacity: 0; transition: transform .35s ease, opacity .35s ease; white-space: nowrap;
}
.product-card:hover .product-add-float { transform: translate(-50%, 0); opacity: 1; }
.product-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-card__title { font-size: 1.15rem; margin-bottom: .6rem; }
.product-card__title a { color: hsl(var(--cream)); }
.product-card__title a:hover { color: hsl(var(--gold)); }
.product-card__desc { color: hsl(var(--muted-foreground)); font-size: .92rem; margin-bottom: 1.1rem; flex: 1; }
.product-card__price { display: flex; align-items: baseline; gap: .6rem; font-family: var(--font-serif); }
.product-card__price .amount, .product-card__price ins { font-size: 1.3rem; font-weight: 700; color: hsl(var(--gold)); text-decoration: none; }
.product-card__price del { color: hsl(var(--muted-foreground)); font-size: 1rem; }
.product-card__price del .amount { font-size: 1rem; color: hsl(var(--muted-foreground)); }
.product-card__foot { margin-top: 1.1rem; }

/* ==========================================================================
   10. STORY
   ========================================================================== */
.story { background: var(--gradient-forest); }
.story__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.story__title { font-size: clamp(2rem, 4vw, 3rem); }
.story p { color: hsl(var(--muted-foreground)); }
.story__quote { margin: 2rem 0; padding: 1.5rem 1.75rem; border-left: 3px solid hsl(var(--gold)); background: hsl(var(--card) / .6); border-radius: var(--radius); font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: hsl(var(--cream)); }
.story__aside { background: hsl(var(--card)); border: 1px solid hsl(var(--gold) / .2); border-radius: var(--radius); padding: 3rem 2rem; text-align: center; box-shadow: var(--shadow-card); }
.story__stat { font-family: var(--font-serif); font-size: clamp(3.5rem, 8vw, 5.5rem); font-weight: 700; background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.story__stat-label { letter-spacing: .15em; text-transform: uppercase; color: hsl(var(--muted-foreground)); font-size: .85rem; margin-top: .5rem; }

/* ==========================================================================
   11. INGREDIENTS
   ========================================================================== */
.ingredients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 3rem; }
.ingredient {
  background: hsl(var(--card)); border: 1px solid hsl(var(--gold) / .15); border-radius: var(--radius);
  padding: 2.25rem 1.75rem; box-shadow: var(--shadow-card); transition: transform .3s ease, border-color .3s ease;
}
.ingredient:hover { transform: translateY(-5px); border-color: hsl(var(--gold) / .45); }
.ingredient__origin { color: hsl(var(--gold)); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.ingredient h3 { font-size: 1.5rem; margin: .4rem 0 .75rem; }
.ingredient p { color: hsl(var(--muted-foreground)); margin-bottom: 0; }

/* ==========================================================================
   12. FAQ (accordion)
   ========================================================================== */
.faq-list { max-width: 760px; margin: 3rem auto 0; }
.faq-item { border: 1px solid hsl(var(--gold) / .18); border-radius: var(--radius); background: hsl(var(--card)); margin-bottom: 1rem; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: transparent; border: 0; padding: 1.35rem 1.5rem; font-family: var(--font-serif); font-size: 1.12rem; color: hsl(var(--cream)); display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; }
.faq-q .faq-icon { flex: 0 0 auto; width: 22px; height: 22px; color: hsl(var(--gold)); transition: transform .3s ease; }
.faq-item.is-open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a__inner { padding: 0 1.5rem 1.35rem; color: hsl(var(--muted-foreground)); }

/* ==========================================================================
   13. TRUST STRIP
   ========================================================================== */
.trust-strip { border-block: 1px solid hsl(var(--gold) / .15); background: var(--gradient-forest); }
.trust-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; }
.trust-strip li { font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: .05em; color: hsl(var(--cream)); display: inline-flex; align-items: center; gap: .6rem; }
.trust-strip li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--gold)); }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer { background: hsl(var(--forest-dark)); border-top: 1px solid hsl(var(--gold) / .18); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand img { height: 54px; width: auto; border-radius: 50%; margin-bottom: 1rem; }
.footer-brand p { color: hsl(var(--muted-foreground)); font-size: .92rem; max-width: 280px; }
.footer-social { display: flex; gap: .85rem; margin-top: 1.25rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid hsl(var(--gold) / .3); color: hsl(var(--cream)); }
.footer-social a:hover { background: hsl(var(--gold)); color: hsl(var(--forest-dark)); border-color: hsl(var(--gold)); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: hsl(var(--gold)); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .65rem; }
.footer-col a { color: hsl(var(--muted-foreground)); font-size: .92rem; }
.footer-col a:hover { color: hsl(var(--gold)); }
.footer-news p { color: hsl(var(--muted-foreground)); font-size: .92rem; }
.footer-news form { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-news input[type="email"] { flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid hsl(var(--input)); background: hsl(var(--forest)); color: hsl(var(--cream)); }
.footer-news input[type="email"]::placeholder { color: hsl(var(--muted-foreground)); }
.footer-bottom { margin-top: 3rem; border-top: 1px solid hsl(var(--border) / .3); padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.footer-bottom p { margin: 0; color: hsl(var(--muted-foreground)); font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom a { color: hsl(var(--muted-foreground)); font-size: .85rem; }
.footer-bottom a:hover { color: hsl(var(--gold)); }

/* ==========================================================================
   15. GENERIC PAGE / BLOG
   ========================================================================== */
.page-hero { background: var(--gradient-forest); border-bottom: 1px solid hsl(var(--gold) / .15); padding-block: clamp(3rem, 6vw, 5rem); text-align: center; }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.page-hero .breadcrumbs { color: hsl(var(--muted-foreground)); font-size: .85rem; margin-top: .5rem; }
.content-area { padding-block: clamp(3rem, 6vw, 5rem); }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 3rem; }
.entry-content { font-size: 1.05rem; }
.entry-content h2 { font-size: 1.9rem; margin-top: 2rem; }
.entry-content h3 { font-size: 1.45rem; margin-top: 1.5rem; }
.entry-content img { border-radius: var(--radius); margin-block: 1.5rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.post-card { background: hsl(var(--card)); border: 1px solid hsl(var(--gold) / .15); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 2rem; }
.post-card__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card__body { padding: 1.75rem; }
.post-card__meta { color: hsl(var(--muted-foreground)); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .6rem; }
.post-card h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.post-card h2 a { color: hsl(var(--cream)); }
.post-card h2 a:hover { color: hsl(var(--gold)); }

.widget { background: hsl(var(--card)); border: 1px solid hsl(var(--gold) / .15); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.widget-title { font-size: 1.15rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid hsl(var(--border) / .4); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: .4rem 0; border-bottom: 1px solid hsl(var(--border) / .2); }
.widget a { color: hsl(var(--muted-foreground)); }
.widget a:hover { color: hsl(var(--gold)); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 3rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .5rem; border-radius: var(--radius); border: 1px solid hsl(var(--gold) / .25); color: hsl(var(--cream)); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--gradient-gold); color: hsl(var(--forest-dark)); border-color: transparent; }

/* Comments + forms */
.comment-list { list-style: none; padding: 0; }
.comment-body { background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .3); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius);
  border: 1px solid hsl(var(--input)); background: hsl(var(--forest)); color: hsl(var(--cream));
  font-family: var(--font-sans); font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: hsl(var(--muted-foreground)); }
label { display: block; margin-bottom: .35rem; font-weight: 500; font-size: .9rem; }

/* 404 */
.error-404 { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.error-404 .code { font-family: var(--font-serif); font-size: clamp(5rem, 16vw, 10rem); background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }

/* ==========================================================================
   16. ANIMATIONS
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: span 3; }
  .story__grid { grid-template-columns: 1fr; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pillars, .product-grid, .ingredients { grid-template-columns: 1fr; gap: 1.25rem; }
  .main-nav { display: none; }
  .nav-group--left .main-nav, .nav-group--right .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .site-branding { justify-content: flex-start; }
  .nav-group--left { order: 1; }
  .site-branding { order: 2; }
  .header-actions { order: 3; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: span 2; }
  .trust-strip ul { gap: 1.25rem 2rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .product-add-float { position: static; transform: none; opacity: 1; margin-top: 1rem; }
}

/* ==========================================================================
   18. INNER PAGE TEMPLATES (Ritual / Ingredients / Story / Contact)
   ========================================================================== */

/* Ritual */
.ritual-time { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; color: hsl(var(--gold)); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.ritual-time .dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--gold)); }
.ritual-steps { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 1.5rem; }
.ritual-step { display: grid; grid-template-columns: 88px 1fr; gap: 1.75rem; align-items: start; background: hsl(var(--card)); border: 1px solid hsl(var(--gold) / .15); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-card); transition: transform .3s ease, border-color .3s ease; }
.ritual-step:hover { transform: translateY(-4px); border-color: hsl(var(--gold) / .4); }
.ritual-step__num { width: 88px; height: 88px; border-radius: 50%; background: var(--gradient-gold); display: grid; place-items: center; box-shadow: var(--shadow-soft); }
.ritual-step__num span { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: hsl(var(--forest-dark)); }
.ritual-step__tag { color: hsl(var(--gold)); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.ritual-step__body h2 { font-size: 1.6rem; margin: .35rem 0 .6rem; }
.ritual-step__body p { color: hsl(var(--muted-foreground)); margin-bottom: .75rem; }
.ritual-step__tip { font-size: .9rem; color: hsl(var(--cream) / .8); background: hsl(var(--forest) / .5); border-left: 2px solid hsl(var(--gold)); padding: .6rem .9rem; border-radius: 0 var(--radius) var(--radius) 0; }
.ritual-step__tip strong { color: hsl(var(--gold)); }

.ritual-bundle__card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; background: var(--gradient-forest); border: 1px solid hsl(var(--gold) / .25); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-card); }
.ritual-bundle__card img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.ritual-bundle__card h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.ritual-bundle__card p { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }

/* Story */
.story-prose { max-width: 760px; margin-inline: auto; font-size: 1.12rem; line-height: 1.85; }
.story-prose p { color: hsl(var(--cream) / .85); margin-bottom: 1.4rem; }
.story-stats { max-width: 860px; margin: 3.5rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.story-stats__item { text-align: center; background: hsl(var(--card)); border: 1px solid hsl(var(--gold) / .2); border-radius: var(--radius); padding: 2rem 1rem; }

/* Ingredients — Farm to Formula */
.farm-to-formula { max-width: 760px; margin-inline: auto; text-align: center; }
.farm-stat { margin-top: 2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.contact-form-wrap { background: hsl(var(--card)); border: 1px solid hsl(var(--gold) / .18); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-card); }
.contact-form-wrap h2, .contact-info h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.contact-form .form-row { margin-bottom: 1.25rem; }
.contact-note { margin-top: 1rem; font-size: .85rem; color: hsl(var(--muted-foreground)); }
.contact-info { background: var(--gradient-forest); border: 1px solid hsl(var(--gold) / .18); border-radius: var(--radius); padding: 2.5rem; }
.contact-info__item { padding: 1rem 0; border-bottom: 1px solid hsl(var(--border) / .25); }
.contact-info__item:last-child { border-bottom: 0; }
.contact-info__label { display: block; color: hsl(var(--gold)); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; margin-bottom: .25rem; }
.contact-info__item a { color: hsl(var(--cream)); }
.contact-info__item a:hover { color: hsl(var(--gold)); }

/* Generic page article spacing */
.page-article .entry-thumb { margin-bottom: 2rem; }
.page-article .entry-thumb img { border-radius: var(--radius); width: 100%; }
.entry-content h2 { color: hsl(var(--cream)); }
.entry-content ul, .entry-content ol { color: hsl(var(--cream) / .85); margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: .5rem; }

@media (max-width: 860px) {
  .ritual-step { grid-template-columns: 64px 1fr; gap: 1.1rem; padding: 1.5rem; }
  .ritual-step__num { width: 64px; height: 64px; }
  .ritual-step__num span { font-size: 1.8rem; }
  .ritual-bundle__card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .story-stats { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Elementor compatibility
   Full-width canvas for pages built with Elementor (or the "Full Width"
   template). Lets Elementor sections span edge to edge while the theme header
   and footer stay in place.
--------------------------------------------------------------------------- */
.site-main--fullwidth,
.entry-content--elementor {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

/* Keep readable line length only for plain (non-Elementor) content the user
   may type directly. Elementor wraps its own output, so this is harmless. */
.entry-content--elementor > p,
.entry-content--elementor > h1,
.entry-content--elementor > h2,
.entry-content--elementor > h3,
.entry-content--elementor > ul,
.entry-content--elementor > ol,
.entry-content--elementor > blockquote {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* ---------------------------------------------------------------------------
   Live-site match: transparent overlay header + full-screen hero (home only)
   Mirrors kavper.in — header floats over the hero, hero fills the viewport,
   white primary CTA, and an animated scroll cue.
--------------------------------------------------------------------------- */

/* Header icons (search / account / cart) */
.header-action { display: inline-flex; align-items: center; color: hsl(var(--cream)); }
.header-action:hover { color: hsl(var(--gold)); }
.header-action svg { width: 22px; height: 22px; }

/* Transparent, overlaid header on the front page */
.site-header--transparent {
	position: absolute; top: 0; left: 0; right: 0;
	background: transparent;
	backdrop-filter: none; -webkit-backdrop-filter: none;
	border-bottom: none;
}

/* Hide the promo topbar on the home hero (matches the live look) */
body.kavper-home .topbar { display: none; }

/* Full-screen hero on home, sitting behind the transparent header */
body.kavper-home .hero { min-height: 100vh; }

/* White primary CTA inside the hero (live site uses a solid white button) */
body.kavper-home .hero__actions .btn--primary {
	background: #ffffff; color: hsl(var(--forest-dark));
	background-image: none;
}
body.kavper-home .hero__actions .btn--primary:hover {
	background: hsl(var(--cream)); color: hsl(var(--forest-dark));
}

/* Animated scroll cue at the bottom of the hero */
body.kavper-home .hero::after {
	content: ""; position: absolute; left: 50%; bottom: 26px;
	transform: translateX(-50%);
	width: 26px; height: 42px; border: 2px solid hsl(var(--cream) / .7);
	border-radius: 14px; z-index: 3; pointer-events: none;
}
body.kavper-home .hero::before {
	content: ""; position: absolute; left: 50%; bottom: 48px;
	transform: translateX(-50%);
	width: 4px; height: 8px; border-radius: 2px; background: hsl(var(--cream) / .9);
	z-index: 4; pointer-events: none;
	animation: kavper-scroll 1.6s ease-in-out infinite;
}
@keyframes kavper-scroll {
	0%   { opacity: 0; transform: translate(-50%, -6px); }
	50%  { opacity: 1; }
	100% { opacity: 0; transform: translate(-50%, 8px); }
}

/* Align hero content with the wide header container on the home page */
body.kavper-home .hero .container { max-width: var(--container-wide); }
