/*
Theme Name: Agbado
Theme URI: https://hilaryorganicsoap.com/theme
Author: Nurudeen Akindele (SaturnSoft)
Author URI: https://saturnsoft.com/
Description: Premium, organic, ultra-fast WordPress Full Site Editing (FSE) block theme purpose-built for natural organic soap and organic bath products. Features a built-in Three-Path Checkout (WhatsApp, Amazon, Direct Checkout), AI-assisted conversational search, shoppable video reels, multilingual English/German/French support, and zero-install browser testing.
Version: 3.0.1
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agbado
Tags: e-commerce, custom-colors, custom-logo, custom-menu, e-commerce, full-site-editing, block-theme, block-patterns, rtl-language-support, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Design System Tokens & Fallback CSS Variables
   ========================================================================== */
:root {
  /* Core Brand Palette */
  --hilary-sage: #4E8752;
  --hilary-sage-light: #81C784;
  --hilary-sage-dark: #2D5A32;
  --hilary-cream: #E8F5EA;
  --hilary-cream-dark: #D2E8D5;
  --hilary-cream-card: #FFFFFF;      /* card/panel backgrounds */
  --hilary-terracotta: #D87D56;
  --hilary-terracotta-hover: #B3583C;
  --hilary-forest: #143018;
  --hilary-forest-dark: #0A1A0C;
  --hilary-charcoal: #1A1A1A;
  --hilary-taupe: #D2E8D5;
  --hilary-white: #FFFFFF;

  /* ── MISSING TOKENS (were causing broken WordPress rendering) ── */
  --hilary-border: #C6DFCA;          /* card/section borders */
  --hilary-gold: #D4AF37;            /* star ratings, gold accents */
  --hilary-shadow-xl: 0 32px 80px rgba(30, 59, 34, 0.22);  /* hero sections */

  /* Third-Party & Channel Colors */
  --hilary-whatsapp: #25D366;
  --hilary-whatsapp-dark: #1EBE5D;
  --hilary-amazon: #FF9900;
  --hilary-amazon-dark: #E68A00;

  /* Typography */
  --hilary-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  --hilary-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --hilary-shadow-sm: 0 4px 12px rgba(30, 59, 34, 0.06);
  --hilary-shadow-md: 0 12px 32px rgba(30, 59, 34, 0.12);
  --hilary-shadow-lg: 0 24px 64px rgba(30, 59, 34, 0.18);
  --hilary-glass-bg: rgba(247, 245, 240, 0.88);
  --hilary-glass-border: rgba(255, 255, 255, 0.6);

  /* Transitions & Radii */
  --hilary-transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --hilary-radius-sm: 8px;
  --hilary-radius-md: 14px;
  --hilary-radius-lg: 24px;
  --hilary-radius-full: 9999px;
}

/* Dark Mode / Adaptive Theming Override */
@media (prefers-color-scheme: dark) {
  :root {
    --hilary-cream: #E8F5EA;
    --hilary-cream-dark: #0F1A12;
    --hilary-forest: #E8F5EA;
    --hilary-charcoal: #FFFFFF;
    --hilary-taupe: #1F3323;
    --hilary-white: #17261A;
    --hilary-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
    --hilary-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.65);
    --hilary-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.85);
    --hilary-glass-bg: rgba(18, 32, 22, 0.95);
    --hilary-glass-border: rgba(74, 107, 91, 0.4);
  }
}

/* ==========================================================================
   2. Base Reset & Global Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  color: #1A1A1A;
  background-color: #E8F5EA;
  margin: 0;
  padding: 0;
  font-family: var(--hilary-font-body);
  color: var(--hilary-forest);
  background-color: var(--hilary-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--hilary-font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--hilary-forest);
  margin-top: 0;
}

a {
  color: var(--hilary-sage);
  text-decoration: none;
  transition: var(--hilary-transition);
}

a:hover {
  color: var(--hilary-terracotta);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Screen Reader Utility (WCAG 2.2 AA) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   3. Custom Block Styles & Micro-Animations
   ========================================================================== */

/* Three-Button Purchase Group Custom Styling */
.hilary-three-button-module {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.hilary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--hilary-radius-full);
  font-family: var(--hilary-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--hilary-transition);
  box-shadow: var(--hilary-shadow-sm);
  text-decoration: none !important;
}

.hilary-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--hilary-shadow-md);
}

.hilary-btn:active {
  transform: translateY(0);
}

.hilary-btn-checkout {
  background-color: var(--hilary-sage);
  color: #FFFFFF !important;
}

.hilary-btn-checkout:hover {
  background-color: var(--hilary-sage-dark);
  color: #FFFFFF !important;
}

.hilary-btn-whatsapp {
  background-color: var(--hilary-whatsapp);
  color: #FFFFFF !important;
}

.hilary-btn-whatsapp:hover {
  background-color: var(--hilary-whatsapp-dark);
  color: #FFFFFF !important;
}

.hilary-btn-amazon {
  background-color: var(--hilary-charcoal);
  color: #FFFFFF !important;
  border: 1.5px solid var(--hilary-amazon);
}

.hilary-btn-amazon:hover {
  background-color: #000000;
  border-color: var(--hilary-amazon-dark);
  color: var(--hilary-amazon) !important;
}

/* Sitewide Floating WhatsApp Widget */
.hilary-floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--hilary-whatsapp);
  color: #FFFFFF !important;
  padding: 14px 22px;
  border-radius: var(--hilary-radius-full);
  font-family: var(--hilary-font-heading);
  font-weight: 600;
  box-shadow: var(--hilary-shadow-lg);
  transition: var(--hilary-transition);
  animation: floatPulse 3s infinite ease-in-out;
}

.hilary-floating-whatsapp:hover {
  transform: scale(1.05) translateY(-3px);
  background-color: var(--hilary-whatsapp-dark);
  color: #FFFFFF !important;
  animation: none;
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); box-shadow: 0 20px 30px rgba(37, 211, 102, 0.35); }
}

/* Language Switcher Badge */
.hilary-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hilary-taupe);
  padding: 6px 14px;
  border-radius: var(--hilary-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.hilary-lang-link {
  color: var(--hilary-forest);
  opacity: 0.65;
  padding: 2px 4px;
  transition: var(--hilary-transition);
}

.hilary-lang-link:hover,
.hilary-lang-link.active {
  opacity: 1;
  color: var(--hilary-sage);
  font-weight: 700;
}

/* AI Conversational Search Bar */
.hilary-ai-search-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hilary-ai-search-input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border-radius: var(--hilary-radius-full);
  border: 1.5px solid var(--hilary-taupe);
  background-color: var(--hilary-white);
  font-family: var(--hilary-font-body);
  font-size: 0.95rem;
  color: var(--hilary-forest);
  transition: var(--hilary-transition);
  box-shadow: var(--hilary-shadow-sm);
}

.hilary-ai-search-input:focus {
  outline: none;
  border-color: var(--hilary-sage);
  box-shadow: 0 0 0 4px rgba(74, 107, 91, 0.15);
}

.hilary-ai-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--hilary-sage);
  color: #FFFFFF;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--hilary-transition);
}

.hilary-ai-search-btn:hover {
  background: var(--hilary-terracotta);
}

/* Ingredient Transparency Badge Row */
.hilary-ingredient-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 30px 20px;
  background-color: var(--hilary-white);
  border-radius: var(--hilary-radius-lg);
  box-shadow: var(--hilary-shadow-sm);
  border: 1px solid var(--hilary-taupe);
  margin: 40px 0;
}

.hilary-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.hilary-badge-icon {
  width: 48px;
  height: 48px;
  background-color: var(--hilary-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hilary-sage);
  font-size: 1.4rem;
}

.hilary-badge-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hilary-forest);
}

/* Product Card Polish */
.wc-block-grid__product,
.hilary-product-card {
  background: var(--hilary-white);
  border-radius: var(--hilary-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hilary-taupe);
  transition: var(--hilary-transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.hilary-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hilary-shadow-lg);
  border-color: var(--hilary-sage-light);
}

.hilary-product-image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--hilary-cream);
}

.hilary-product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hilary-product-card:hover .hilary-product-image-wrapper img {
  transform: scale(1.08);
}

/* Product Recommendation Tag */
.hilary-product-badge,
.hilary-skin-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--hilary-glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hilary-glass-border);
  color: var(--hilary-sage-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--hilary-radius-full);
  z-index: 2;
  box-shadow: var(--hilary-shadow-sm);
}

/* Stock Urgency Indicator */
.hilary-stock-urgency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hilary-terracotta);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 4px;
}

.hilary-stock-urgency::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--hilary-terracotta);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* ==========================================================================
   4. Quick View Modal & Slide-out Mini Cart Styles
   ========================================================================== */
.hilary-quickview-overlay,
.hilary-minicart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.65);
  backdrop-filter: blur(6px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hilary-quickview-overlay.open,
.hilary-minicart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.hilary-quickview-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 90%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--hilary-white);
  border-radius: var(--hilary-radius-lg);
  box-shadow: var(--hilary-shadow-lg);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 32px;
}

.hilary-quickview-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.hilary-quickview-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--hilary-cream);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hilary-forest);
  transition: var(--hilary-transition);
  z-index: 10;
}

.hilary-quickview-close:hover {
  background: var(--hilary-terracotta);
  color: #fff;
}

.hilary-qv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hilary-qv-image img {
  width: 100%;
  border-radius: var(--hilary-radius-md);
  aspect-ratio: 1/1;
  object-fit: cover;
}

.hilary-qv-info h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.hilary-qv-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--hilary-terracotta);
  margin-bottom: 16px;
}

/* Slide-out Mini Cart Drawer */
.hilary-minicart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--hilary-white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.hilary-minicart-drawer.open {
  right: 0;
}

.hilary-minicart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hilary-taupe);
  font-family: var(--hilary-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

/* AI Search Dropdown Results */
.hilary-ai-summary {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--hilary-sage-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hilary-taupe);
}

.hilary-ai-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
}

.hilary-ai-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--hilary-radius-sm);
  transition: var(--hilary-transition);
  background: var(--hilary-cream);
  text-decoration: none !important;
}

.hilary-ai-item:hover {
  background: var(--hilary-taupe);
  transform: translateX(4px);
}

.hilary-ai-item img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.hilary-ai-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hilary-forest);
}

.hilary-ai-price {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--hilary-terracotta);
}

.hilary-ai-exp {
  font-size: 0.78rem;
  color: var(--hilary-sage-dark);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .hilary-qv-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .wp-block-cover__inner-container {
    padding: 20px !important;
  }
  .wp-block-columns {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .wp-block-column {
    width: 100% !important;
    flex-basis: 100% !important;
  }
  img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .hilary-sticky-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    padding: 16px 12px !important;
    flex-wrap: wrap !important;
  }
  .hilary-sticky-header > .wp-block-group {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    flex-wrap: wrap !important;
  }
  .hilary-header-actions {
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .wp-block-navigation__responsive-container,
  .wp-block-navigation {
    width: 100% !important;
    justify-content: center !important;
  }
  .wp-block-navigation__container {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   4.5. UNIVERSAL HIGH-CONTRAST & READABILITY GUARANTEE (HUMAN-READABLE ON ALL DEVICES)
   ========================================================================== */

/* 1. Bulletproof Dark Obsidian (#1A1A1A) on ALL White/Light Background Containers */
.has-hilary-white-background-color,
.has-hilary-cream-background-color,
.section-wrap,
.hilary-product-card,
.hilary-badge-item,
.hilary-ingredient-strip,
.wp-block-cover__inner-container[style*="background: rgba(255"],
.wp-block-group[style*="background:#fff"],
.wp-block-group[style*="background: #fff"],
.wp-block-group[style*="background:#ffffff"],
.wp-block-group[style*="background: #ffffff"],
.wp-block-group[style*="background:rgb(255, 255, 255)"],
.wp-block-group[style*="background: rgb(255, 255, 255)"],
.wp-block-group[style*="background:rgba(255, 255, 255"],
.wp-block-group[style*="background: rgba(255, 255, 255"] {
  color: #1A1A1A !important;
}

.has-hilary-white-background-color p,
.has-hilary-white-background-color h1,
.has-hilary-white-background-color h2,
.has-hilary-white-background-color h3,
.has-hilary-white-background-color h4,
.has-hilary-white-background-color h5,
.has-hilary-white-background-color h6,
.has-hilary-white-background-color span,
.has-hilary-white-background-color li,
.has-hilary-white-background-color strong,
.has-hilary-cream-background-color p,
.has-hilary-cream-background-color h1,
.has-hilary-cream-background-color h2,
.has-hilary-cream-background-color h3,
.has-hilary-cream-background-color h4,
.has-hilary-cream-background-color h5,
.has-hilary-cream-background-color h6,
.has-hilary-cream-background-color span,
.has-hilary-cream-background-color li,
.has-hilary-cream-background-color strong,
.section-wrap p,
.section-wrap h1,
.section-wrap h2,
.section-wrap h3,
.section-wrap h4,
.section-wrap h5,
.section-wrap h6,
.section-wrap span,
.section-wrap li,
.section-wrap strong,
.hilary-product-card p,
.hilary-product-card h1,
.hilary-product-card h2,
.hilary-product-card h3,
.hilary-product-card h4,
.hilary-product-card span,
.hilary-product-card li,
.hilary-product-card strong,
.wp-block-group[style*="background:#fff"] p,
.wp-block-group[style*="background:#fff"] h1,
.wp-block-group[style*="background:#fff"] h2,
.wp-block-group[style*="background:#fff"] h3,
.wp-block-group[style*="background:#fff"] h4,
.wp-block-group[style*="background:#fff"] h5,
.wp-block-group[style*="background:#fff"] h6,
.wp-block-group[style*="background:#fff"] span,
.wp-block-group[style*="background:#fff"] li,
.wp-block-group[style*="background: #fff"] p,
.wp-block-group[style*="background: #fff"] h1,
.wp-block-group[style*="background: #fff"] h2,
.wp-block-group[style*="background: #fff"] h3,
.wp-block-group[style*="background: #fff"] h4,
.wp-block-group[style*="background: #fff"] h5,
.wp-block-group[style*="background: #fff"] h6,
.wp-block-group[style*="background: #fff"] span,
.wp-block-group[style*="background: #fff"] li,
.wp-block-group[style*="background:#ffffff"] p,
.wp-block-group[style*="background:#ffffff"] h1,
.wp-block-group[style*="background:#ffffff"] h2,
.wp-block-group[style*="background:#ffffff"] h3,
.wp-block-group[style*="background:#ffffff"] h4,
.wp-block-group[style*="background:#ffffff"] span,
.wp-block-group[style*="background: #ffffff"] p,
.wp-block-group[style*="background: #ffffff"] h1,
.wp-block-group[style*="background: #ffffff"] h2,
.wp-block-group[style*="background: #ffffff"] h3,
.wp-block-group[style*="background: #ffffff"] h4,
.wp-block-group[style*="background: #ffffff"] span,
.wp-block-group[style*="background:rgba(255, 255, 255"] p,
.wp-block-group[style*="background:rgba(255, 255, 255"] h1,
.wp-block-group[style*="background:rgba(255, 255, 255"] h2,
.wp-block-group[style*="background:rgba(255, 255, 255"] h3,
.wp-block-group[style*="background:rgba(255, 255, 255"] h4,
.wp-block-group[style*="background:rgba(255, 255, 255"] span,
.wp-block-group[style*="background: rgba(255, 255, 255"] p,
.wp-block-group[style*="background: rgba(255, 255, 255"] h1,
.wp-block-group[style*="background: rgba(255, 255, 255"] h2,
.wp-block-group[style*="background: rgba(255, 255, 255"] h3,
.wp-block-group[style*="background: rgba(255, 255, 255"] h4,
.wp-block-group[style*="background: rgba(255, 255, 255"] span {
  color: #1A1A1A !important;
}

/* 2. Specific Link Contrast inside White/Light Containers */
.has-hilary-white-background-color a:not(.hilary-btn):not(.wp-block-button__link),
.has-hilary-cream-background-color a:not(.hilary-btn):not(.wp-block-button__link),
.section-wrap a:not(.hilary-btn):not(.wp-block-button__link),
.wp-block-group[style*="background:#fff"] a:not(.hilary-btn):not(.wp-block-button__link),
.wp-block-group[style*="background: #fff"] a:not(.hilary-btn):not(.wp-block-button__link),
.wp-block-group[style*="background:#ffffff"] a:not(.hilary-btn):not(.wp-block-button__link),
.wp-block-group[style*="background: #ffffff"] a:not(.hilary-btn):not(.wp-block-button__link) {
  color: #2C3531 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

/* 3. Dark Mode Specific Readability Adaptations */
@media (prefers-color-scheme: dark) {
  /* When .has-hilary-white-background-color or .has-hilary-cream-background-color flips to dark slate (#232A27/#1C2220), text MUST be white (#F7F5F0) */
  .has-hilary-white-background-color,
  .has-hilary-cream-background-color {
    color: #F7F5F0 !important;
  }
  .has-hilary-white-background-color p,
  .has-hilary-white-background-color h1,
  .has-hilary-white-background-color h2,
  .has-hilary-white-background-color h3,
  .has-hilary-white-background-color h4,
  .has-hilary-white-background-color h5,
  .has-hilary-white-background-color h6,
  .has-hilary-white-background-color span,
  .has-hilary-white-background-color li,
  .has-hilary-cream-background-color p,
  .has-hilary-cream-background-color h1,
  .has-hilary-cream-background-color h2,
  .has-hilary-cream-background-color h3,
  .has-hilary-cream-background-color h4,
  .has-hilary-cream-background-color h5,
  .has-hilary-cream-background-color h6,
  .has-hilary-cream-background-color span,
  .has-hilary-cream-background-color li {
    color: #F7F5F0 !important;
  }

  /* However, if a block STILL has hardcoded inline background: #fff or #ffffff in dark mode, text MUST STAY #1A1A1A so it remains readable! */
  .section-wrap[style*="background:#fff"],
  .section-wrap[style*="background: #fff"],
  .section-wrap[style*="background:#ffffff"],
  .section-wrap[style*="background: #ffffff"],
  .wp-block-group[style*="background:#fff"],
  .wp-block-group[style*="background: #fff"],
  .wp-block-group[style*="background:#ffffff"],
  .wp-block-group[style*="background: #ffffff"],
  .wp-block-group[style*="background:rgba(255, 255, 255"],
  .wp-block-group[style*="background: rgba(255, 255, 255"] {
    color: #1A1A1A !important;
  }
  .wp-block-group[style*="background:#fff"] p,
  .wp-block-group[style*="background:#fff"] h1,
  .wp-block-group[style*="background:#fff"] h2,
  .wp-block-group[style*="background:#fff"] h3,
  .wp-block-group[style*="background:#fff"] h4,
  .wp-block-group[style*="background:#fff"] span,
  .wp-block-group[style*="background: #fff"] p,
  .wp-block-group[style*="background: #fff"] h1,
  .wp-block-group[style*="background: #fff"] h2,
  .wp-block-group[style*="background: #fff"] h3,
  .wp-block-group[style*="background: #fff"] h4,
  .wp-block-group[style*="background: #fff"] span,
  .wp-block-group[style*="background:#ffffff"] p,
  .wp-block-group[style*="background:#ffffff"] h1,
  .wp-block-group[style*="background:#ffffff"] h2,
  .wp-block-group[style*="background:#ffffff"] h3,
  .wp-block-group[style*="background:#ffffff"] h4,
  .wp-block-group[style*="background:#ffffff"] span,
  .wp-block-group[style*="background: #ffffff"] p,
  .wp-block-group[style*="background: #ffffff"] h1,
  .wp-block-group[style*="background: #ffffff"] h2,
  .wp-block-group[style*="background: #ffffff"] h3,
  .wp-block-group[style*="background: #ffffff"] h4,
  .wp-block-group[style*="background: #ffffff"] span,
  .wp-block-group[style*="background:rgba(255, 255, 255"] p,
  .wp-block-group[style*="background:rgba(255, 255, 255"] h1,
  .wp-block-group[style*="background:rgba(255, 255, 255"] h2,
  .wp-block-group[style*="background:rgba(255, 255, 255"] span,
  .wp-block-group[style*="background: rgba(255, 255, 255"] p,
  .wp-block-group[style*="background: rgba(255, 255, 255"] h1,
  .wp-block-group[style*="background: rgba(255, 255, 255"] h2,
  .wp-block-group[style*="background: rgba(255, 255, 255"] span {
    color: #1A1A1A !important;
  }
}

/* 4. Sitewide Human-Readable Typography Scaling & Mobile Optimization (WCAG 2.2 AAA Compliant) */
body {
  color: #1A1A1A;
  background-color: #E8F5EA;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
}

@media (max-width: 768px) {
  /* Guarantee minimum 16px (1rem) on mobile so no text is squint-inducing */
  body, p, li, span:not(.hilary-cart-count):not(.hilary-action-label), a:not(.hilary-btn):not(.wp-block-button__link) {
    font-size: 1.05rem !important;
    line-height: 1.68 !important;
    letter-spacing: 0.1px !important;
  }

  /* Prevent oversized desktop headings from breaking or wrapping awkwardly on mobile */
  h1, .wp-block-heading[style*="font-size:3.4rem"], .wp-block-heading[style*="font-size: 3.4rem"] {
    font-size: clamp(1.8rem, 6vw, 2.6rem) !important;
    line-height: 1.22 !important;
    word-break: break-word !important;
  }
  h2, .wp-block-heading[style*="font-size:2.8rem"], .wp-block-heading[style*="font-size: 2.8rem"] {
    font-size: clamp(1.45rem, 5vw, 2.1rem) !important;
    line-height: 1.28 !important;
  }
  h3 {
    font-size: clamp(1.25rem, 4.2vw, 1.65rem) !important;
    line-height: 1.35 !important;
  }
  h4 {
    font-size: clamp(1.1rem, 3.8vw, 1.35rem) !important;
    line-height: 1.4 !important;
  }
  
  /* Ensure paragraph badges or micro-copy remain crisp and human-readable on phones */
  .hilary-pill-badge,
  .hilary-product-badge,
  .hilary-stock-urgency {
    font-size: 0.88rem !important;
    padding: 6px 14px !important;
  }

  /* Force clean mobile padding inside sections and cards */
  .section-wrap {
    padding: 24px 16px !important;
  }
  .wp-block-cover__inner-container {
    padding: 20px 14px !important;
  }
}

/* ==========================================================================
   5. WORLD-CLASS LUXURY E-COMMERCE NAVIGATION & MOBILE DRAWER STYLES
   ========================================================================== */

/* Top Trust & Announcement Strip */
.hilary-top-announcement {
  background: var(--hilary-forest);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hilary-announcement-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hilary-announcement-text {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hilary-announcement-actions .hilary-language-switcher {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--hilary-radius-full);
}

.hilary-announcement-actions .hilary-lang-link {
  color: rgba(255, 255, 255, 0.75);
}

.hilary-announcement-actions .hilary-lang-link.active,
.hilary-announcement-actions .hilary-lang-link:hover {
  color: #FFFFFF;
  font-weight: 700;
}

/* Main Sticky Navigation Header */
.hilary-header-main {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--hilary-cream);
  border-bottom: 1px solid var(--hilary-taupe);
  box-shadow: 0 4px 20px rgba(44, 53, 49, 0.06);
  padding: 14px 32px;
  transition: var(--hilary-transition);
}

.hilary-header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Desktop Primary Navigation Links */
.hilary-nav-desktop {
  flex: 1;
  display: flex;
  align-items: center;
}

.hilary-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.hilary-nav-link {
  font-family: var(--hilary-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hilary-forest);
  text-decoration: none !important;
  position: relative;
  padding: 6px 0;
  transition: var(--hilary-transition);
}

.hilary-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--hilary-terracotta);
  transition: width 0.25s ease;
}

.hilary-nav-link:hover {
  color: var(--hilary-terracotta);
}

.hilary-nav-link:hover::after {
  width: 100%;
}

/* Center Brand Identity */
.hilary-brand-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hilary-brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

.hilary-brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hilary-brand-link:hover .hilary-brand-logo {
  transform: scale(1.08) rotate(5deg);
}

.hilary-brand-text {
  display: flex;
  flex-direction: column;
}

.hilary-brand-title {
  font-family: var(--hilary-font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hilary-forest);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.hilary-brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hilary-terracotta);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Right Header Actions */
.hilary-header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.hilary-action-btn {
  background: var(--hilary-white);
  border: 1px solid var(--hilary-taupe);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--hilary-forest);
  cursor: pointer;
  transition: var(--hilary-transition);
  text-decoration: none !important;
}

.hilary-action-btn:hover {
  background: var(--hilary-sage);
  color: #FFFFFF !important;
  border-color: var(--hilary-sage);
  transform: translateY(-2px);
  box-shadow: var(--hilary-shadow-sm);
}

.hilary-cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hilary-sage);
  color: #FFFFFF !important;
  padding: 10px 20px;
  border-radius: var(--hilary-radius-full);
  font-family: var(--hilary-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: var(--hilary-shadow-sm);
  transition: var(--hilary-transition);
}

.hilary-cart-trigger:hover {
  background: var(--hilary-sage-dark);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: var(--hilary-shadow-md);
}

.hilary-cart-count {
  background: #FFFFFF;
  color: var(--hilary-sage);
  padding: 2px 8px;
  border-radius: var(--hilary-radius-full);
  font-size: 0.78rem;
  font-weight: 800;
}

/* Mobile Toggle Hamburger Button */
.hilary-mobile-toggle {
  display: none;
  background: var(--hilary-white);
  border: 1.5px solid var(--hilary-taupe);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--hilary-forest);
  cursor: pointer;
  transition: var(--hilary-transition);
}

.hilary-mobile-toggle:active {
  transform: scale(0.92);
}

/* Mobile Drawer Structure */
.hilary-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  pointer-events: none;
}

.hilary-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hilary-drawer-panel {
  position: absolute;
  top: 0;
  left: -400px;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: var(--hilary-cream);
  box-shadow: 15px 0 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.hilary-mobile-drawer.open {
  pointer-events: auto;
}

.hilary-mobile-drawer.open .hilary-drawer-overlay {
  opacity: 1;
}

.hilary-mobile-drawer.open .hilary-drawer-panel {
  left: 0;
}

.hilary-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hilary-taupe);
  background: var(--hilary-white);
}

.hilary-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hilary-font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--hilary-forest);
}

.hilary-drawer-close {
  background: var(--hilary-cream);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--hilary-forest);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--hilary-transition);
}

.hilary-drawer-nav {
  padding: 24px;
  flex: 1;
}

.hilary-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hilary-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--hilary-white);
  border-radius: var(--hilary-radius-md);
  font-family: var(--hilary-font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--hilary-forest) !important;
  text-decoration: none !important;
  border: 1px solid var(--hilary-taupe);
  transition: var(--hilary-transition);
}

.hilary-drawer-item:hover,
.hilary-drawer-item:active {
  background: var(--hilary-sage);
  color: #FFFFFF !important;
  border-color: var(--hilary-sage);
  transform: translateX(6px);
}

.hilary-drawer-icon {
  font-size: 1.35rem;
}

.hilary-drawer-divider {
  height: 1px;
  background: var(--hilary-taupe);
  margin: 22px 0;
}

.hilary-drawer-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hilary-drawer-sublist a {
  display: block;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--hilary-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hilary-sage-dark) !important;
  text-decoration: none !important;
}

.hilary-drawer-section-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hilary-terracotta);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hilary-drawer-langs {
  display: flex;
  gap: 10px;
}

.hilary-drawer-lang {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: var(--hilary-white);
  border-radius: var(--hilary-radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--hilary-forest) !important;
  text-decoration: none !important;
  border: 1px solid var(--hilary-taupe);
}

.hilary-drawer-lang.active {
  background: var(--hilary-sage);
  color: #FFFFFF !important;
  border-color: var(--hilary-sage);
}

.hilary-drawer-footer {
  padding: 20px 24px 32px;
  background: var(--hilary-white);
  border-top: 1px solid var(--hilary-taupe);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hilary-drawer-whatsapp-btn {
  display: block;
  text-align: center;
  background: var(--hilary-whatsapp);
  color: #FFFFFF !important;
  padding: 14px;
  border-radius: var(--hilary-radius-full);
  font-family: var(--hilary-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: var(--hilary-shadow-sm);
}

.hilary-drawer-checkout-btn {
  display: block;
  text-align: center;
  background: var(--hilary-forest);
  color: #FFFFFF !important;
  padding: 14px;
  border-radius: var(--hilary-radius-full);
  font-family: var(--hilary-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
}

/* RESPONSIVE BREAKPOINTS (GLOBAL STANDARD E-COMMERCE ADAPTATION) */
@media (max-width: 992px) {
  .hilary-top-announcement {
    padding: 8px 14px;
  }
  .hilary-announcement-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
  }
  .hilary-top-announcement .hilary-announcement-inner {
    flex-direction: column;
    text-align: center;
  }
  .hilary-nav-desktop {
    display: none !important;
  }
  .hilary-mobile-toggle {
    display: inline-flex !important;
  }
  .hilary-header-container {
    padding: 10px 14px;
    gap: 12px;
  }
  .hilary-brand-center {
    justify-content: center;
    flex: 2;
  }
  .hilary-brand-logo {
    width: 44px;
    height: 44px;
  }
  .hilary-brand-title {
    font-size: 1.15rem;
  }
  .hilary-brand-tagline {
    font-size: 0.65rem;
  }
  .hilary-header-actions {
    flex: 1;
    gap: 8px;
  }
  .hilary-wishlist-btn {
    display: none; /* Move into drawer on small viewports */
  }
  .hilary-cart-trigger {
    padding: 8px 14px;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .hilary-brand-text {
    display: none; /* On extra small screens show emblem cleanly alongside bag & hamburger */
  }
  .hilary-header-container {
    justify-content: space-between;
  }
}

/* Premium Mobile Responsiveness Improvements */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Base typography for mobile readability */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  body {
    line-height: 1.6;
  }
  
  /* Text readability improvements */
  h1 { font-size: 2.2rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.8rem !important; line-height: 1.25 !important; }
  h3 { font-size: 1.5rem !important; line-height: 1.3 !important; }
  h4 { font-size: 1.2rem !important; line-height: 1.4 !important; }
  p, li, span { font-size: 1rem; }
  
  /* Images scaling proportionally */
  img, video, iframe, canvas {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Padding and whitespace reduction */
  .section-wrap, .main-container {
    padding: 24px 16px !important;
    margin: 24px auto !important;
  }
  .hero {
    padding: 24px 16px !important;
    margin: 16px auto !important;
    gap: 24px !important;
    display: flex !important;
    flex-direction: column-reverse !important; /* Image first on mobile */
  }
  .page-header {
    padding: 24px 20px !important;
    margin-bottom: 24px !important;
  }
  .content-box {
    padding: 20px 16px !important;
  }

  /* Buttons thumb-friendly sizing */
  .btn, button, .hilary-btn, .variant-pill {
    min-height: 48px;
    padding: 12px 24px !important;
    font-size: 1rem !important;
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
  }
  
  /* Navigation mobile menu optimization */
  .nav-menu, .nav-links {
    display: none !important;
  }
  .mobile-hamburger-btn {
    display: inline-flex !important;
    min-width: 48px;
    min-height: 48px;
  }
  .top-header, header {
    padding: 12px 16px !important;
    flex-wrap: wrap;
    gap: 12px;
  }
  .logo-text { font-size: 1.1rem !important; }
  .logo-img { width: 40px !important; height: 40px !important; }
  .logo-area { gap: 8px !important; }
  
  /* Product Grids & Layouts */
  .pdp-grid, .products-grid, .related-grid, .category-grid, .reels-grid, .testi-grid, .footer-grid, .business-card, .gallery-col {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  /* specific cart/checkout fixes */
  #cartGridWrap, .checkout-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* Footer adaptations */
  footer {
    padding: 32px 16px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Forms and Inputs thumb-friendly */
  input, select, textarea {
    font-size: 16px !important; /* Prevents iOS zoom */
    padding: 14px 16px !important;
    min-height: 48px;
    width: 100% !important;
    margin-bottom: 16px;
  }
  
  /* Floating elements adjustments */
  .floating-wa {
    bottom: 80px !important;
    right: 16px !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }
  
  /* Remove excessive margins */
  .business-card, .aroma-module, .inci-box, .checkout-module {
    margin: 16px 0 !important;
    padding: 20px !important;
  }
  
  /* Breadcrumb wrapping */
  .breadcrumb-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem !important; }
  .top-bar { font-size: 0.75rem !important; justify-content: center !important; text-align: center !important; }
}

/* Animations */
.hero-visual img, .product-img-box img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hero-visual:hover img, .product-card:hover .product-img-box img {
  transform: scale(1.05) !important;
}

/* ==========================================================================
   INSTANT-PREVIEW VISUAL PARITY LAYER
   All classes from the standalone preview, injected so WordPress blocks
   inherit the same visual treatment.
   ========================================================================== */

/* ── WordPress Block Overrides (tame WordPress default spacing/sizing) ── */
.wp-site-blocks { padding: 0 !important; }
.wp-block-template-part { margin: 0; padding: 0; }

/* Make WP blocks use theme font */
.wp-block-group,
.wp-block-cover,
.wp-block-columns,
.wp-block-column,
.wp-block-paragraph,
.wp-block-heading,
.wp-block-list,
.wp-block-image,
.wp-block-buttons,
.wp-block-button,
.wp-element-button {
  font-family: var(--hilary-font-body);
}

/* Neutralize WP default content widths that break layouts */
.wp-block-group.alignwide,
.wp-block-group.alignfull {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ── Mega Menu ── */
.nav-item { position: relative; padding: 8px 0; }
.nav-item > a:hover { color: var(--hilary-terracotta); }
.mega-menu {
  position: absolute; top: 100%; left: -150px; width: 680px;
  background: var(--hilary-cream-card); border: 1px solid var(--hilary-border);
  border-radius: 20px; box-shadow: var(--hilary-shadow-lg); padding: 28px;
  display: none; grid-template-columns: repeat(3, 1fr); gap: 24px; z-index: 500;
}
.nav-item:hover .mega-menu { display: grid; animation: fadeInDown 0.25s ease; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mega-col h4 { font-size: 0.95rem; color: var(--hilary-sage); margin-bottom: 12px; border-bottom: 1.5px solid var(--hilary-taupe); padding-bottom: 6px; }
.mega-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; font-weight: 500; }
.mega-col ul li a:hover { color: var(--hilary-terracotta); padding-left: 4px; }

/* ── Header Controls (instant-preview parity) ── */
.header-actions { display: flex; gap: 12px; align-items: center; }
.lang-switcher { display: flex; gap: 4px; background: var(--hilary-taupe); padding: 4px 10px; border-radius: 99px; font-size: 0.8rem; font-weight: 700; }
.lang-btn { background: none; border: none; cursor: pointer; color: var(--hilary-forest); opacity: 0.6; padding: 4px 8px; border-radius: 14px; }
.lang-btn.active, .lang-btn:hover { opacity: 1; background: var(--hilary-cream-card); color: var(--hilary-sage); box-shadow: var(--hilary-shadow-sm); }
.icon-btn { background: var(--hilary-taupe); border: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--hilary-forest); position: relative; }
.icon-btn:hover { background: var(--hilary-terracotta); color: #fff; transform: scale(1.06); }
.badge-count { position: absolute; top: -2px; right: -2px; background: var(--hilary-sage); color: #fff; font-size: 0.7rem; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--hilary-cream); }

/* ── Search Bar ── */
.search-bar-container { background: var(--hilary-cream-card); padding: 14px 40px; border-bottom: 1px solid var(--hilary-border); position: relative; }
.search-wrapper { max-width: 860px; margin: 0 auto; position: relative; display: flex; align-items: center; gap: 10px; }
.search-input { flex: 1; padding: 14px 120px 14px 46px; border-radius: 99px; border: 2px solid var(--hilary-border); font-size: 0.95rem; font-family: var(--hilary-font-body); background: var(--hilary-cream); color: var(--hilary-forest); box-shadow: var(--hilary-shadow-sm); transition: border 0.3s ease; }
.search-input:focus { outline: none; border-color: var(--hilary-sage); background: var(--hilary-cream-card); }
.search-icon-left { position: absolute; left: 18px; font-size: 1.15rem; color: var(--hilary-sage); pointer-events: none; }
.search-controls-right { position: absolute; right: 8px; display: flex; gap: 6px; }
.voice-btn { background: var(--hilary-taupe); border: none; padding: 8px 14px; border-radius: 99px; font-size: 0.8rem; font-weight: 600; color: var(--hilary-forest); display: flex; align-items: center; gap: 6px; }
.voice-btn:hover { background: var(--hilary-sage); color: #fff; }
.search-dropdown { position: absolute; top: 110%; left: 0; right: 0; background: var(--hilary-cream-card); border: 1px solid var(--hilary-border); border-radius: 20px; box-shadow: var(--hilary-shadow-lg); padding: 24px; display: none; z-index: 500; }

/* ── Hero Section (instant-preview parity) ── */
.hero { max-width: 1360px; margin: 24px auto; padding: 0 40px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero-content { display: flex; flex-direction: column; gap: 20px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(74, 107, 91, 0.12); color: var(--hilary-sage); padding: 8px 16px; border-radius: 99px; font-size: 0.85rem; font-weight: 700; width: fit-content; border: 1px solid rgba(74, 107, 91, 0.25); }
.hero-title { font-size: 3.6rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1.08; }
.hero-desc { font-size: 1.15rem; color: var(--hilary-sage-dark); max-width: 580px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.btn { padding: 15px 28px; border-radius: 99px; font-family: var(--hilary-font-heading); font-weight: 700; font-size: 0.95rem; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: var(--hilary-transition); text-decoration: none; }
.btn-sage { background: var(--hilary-sage); color: #fff; box-shadow: var(--hilary-shadow-md); }
.btn-sage:hover { background: var(--hilary-sage-dark); transform: translateY(-3px); box-shadow: var(--hilary-shadow-lg); }
.btn-outline { background: transparent; border: 2px solid var(--hilary-forest); color: var(--hilary-forest); }
.btn-outline:hover { background: var(--hilary-forest); color: var(--hilary-cream); transform: translateY(-3px); }
.hero-trust-row { display: flex; gap: 28px; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--hilary-border); font-size: 0.88rem; font-weight: 600; color: var(--hilary-sage-dark); flex-wrap: wrap; }
.trust-pill { display: flex; align-items: center; gap: 8px; }
.hero-floating-card { position: absolute; bottom: 24px; left: 24px; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 16px 20px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.8); box-shadow: var(--hilary-shadow-md); max-width: 280px; }

/* ── Section Headers ── */
.section-wrap { max-width: 1360px; margin: 64px auto; padding: 0 40px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.section-title { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.5px; }
.section-subtitle { font-size: 1.05rem; color: var(--hilary-sage-dark); margin-top: 4px; }

/* ── Product Cards Grid ── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 32px; }
.product-card { background: var(--hilary-cream-card); border: 1px solid var(--hilary-border); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: var(--hilary-transition); position: relative; box-shadow: var(--hilary-shadow-sm); }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--hilary-shadow-lg); border-color: var(--hilary-sage-light); }
.product-img-box { aspect-ratio: 1/1; position: relative; overflow: hidden; background: var(--hilary-cream); cursor: pointer; }
.product-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-box img { transform: scale(1.08); }
.badge-top { position: absolute; top: 16px; left: 16px; background: var(--hilary-sage); color: #fff; padding: 5px 12px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; z-index: 2; box-shadow: var(--hilary-shadow-sm); }
.badge-stock { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.92); color: var(--hilary-terracotta); padding: 5px 12px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; z-index: 2; border: 1px solid var(--hilary-border); }
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.product-title { font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.product-title:hover { color: var(--hilary-terracotta); }
.product-price-row { display: flex; align-items: baseline; gap: 10px; font-size: 1.35rem; font-weight: 800; color: var(--hilary-sage); }
.price-old { font-size: 0.95rem; text-decoration: line-through; color: #888; font-weight: 500; }
.product-desc { font-size: 0.88rem; color: var(--hilary-sage-dark); flex: 1; }

/* ── Three-Button Purchase System ── */
.three-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.btn-native { background: var(--hilary-sage); color: #fff; width: 100%; padding: 12px; border-radius: 14px; font-weight: 700; font-size: 0.9rem; border: none; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-native:hover { background: var(--hilary-sage-dark); transform: translateY(-2px); }
.btn-whatsapp { background: var(--hilary-whatsapp); color: #fff; width: 100%; padding: 12px; border-radius: 14px; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-whatsapp:hover { background: #1ebd5a; transform: translateY(-2px); }
.btn-amazon { background: var(--hilary-charcoal); color: #fff; border: 1.5px solid var(--hilary-amazon); width: 100%; padding: 12px; border-radius: 14px; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-amazon:hover { background: #000; color: var(--hilary-amazon); transform: translateY(-2px); }
.btn-quickview { background: var(--hilary-taupe); color: var(--hilary-forest); width: 100%; padding: 8px; border-radius: 10px; font-size: 0.8rem; font-weight: 600; border: none; margin-top: 4px; }
.btn-quickview:hover { background: var(--hilary-terracotta); color: #fff; }

/* ── Categories / Collections Grid ── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.cat-card { background: var(--hilary-cream-card); border: 1px solid var(--hilary-border); border-radius: 20px; padding: 24px; text-align: center; transition: var(--hilary-transition); cursor: pointer; }
.cat-card:hover { transform: translateY(-6px); border-color: var(--hilary-sage); box-shadow: var(--hilary-shadow-md); }
.cat-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.cat-card h4 { font-size: 1.15rem; margin-bottom: 4px; }
.cat-card span { font-size: 0.82rem; color: var(--hilary-sage-dark); }

/* ── Reels/Gallery Grid ── */
.reels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.reel-card { border-radius: 24px; overflow: hidden; aspect-ratio: 9/16; position: relative; background: #000; box-shadow: var(--hilary-shadow-md); cursor: pointer; }
.reel-card video, .reel-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: opacity 0.3s ease, transform 0.5s ease; }
.reel-card:hover video, .reel-card:hover img { opacity: 1; transform: scale(1.04); }
.reel-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; }

/* ── Pillars / Features Grid ── */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.pillar-card { background: var(--hilary-cream-card); border: 1px solid var(--hilary-border); border-radius: 24px; padding: 32px; box-shadow: var(--hilary-shadow-sm); }
.pillar-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(74, 107, 91, 0.12); color: var(--hilary-sage); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px; }

/* ── Testimonials Grid ── */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.testi-card { background: var(--hilary-cream-card); border: 1px solid var(--hilary-border); border-radius: 24px; padding: 28px; box-shadow: var(--hilary-shadow-sm); }
.stars { color: var(--hilary-gold); font-size: 1.15rem; margin-bottom: 12px; }

/* ── FAQ Accordion ── */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--hilary-cream-card); border: 1px solid var(--hilary-border); border-radius: 20px; overflow: hidden; }
.faq-question { padding: 22px 28px; font-weight: 700; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { padding: 0 28px 22px 28px; font-size: 0.95rem; color: var(--hilary-sage-dark); display: none; border-top: 1px solid var(--hilary-taupe); padding-top: 16px; }
.faq-item.open .faq-answer { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Modals (Cart Drawer, Quick View) ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 900; }
.cart-drawer { position: fixed; top: 0; right: -480px; bottom: 0; width: 450px; max-width: 92vw; background: var(--hilary-cream-card); z-index: 1000; padding: 32px; display: flex; flex-direction: column; transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: -12px 0 40px rgba(0,0,0,0.25); }
.cart-drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--hilary-border); padding-bottom: 18px; margin-bottom: 20px; }
.cart-items-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 16px; align-items: center; border-bottom: 1px solid var(--hilary-taupe); padding-bottom: 16px; }
.cart-item img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.quickview-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); width: 920px; max-width: 94vw; max-height: 90vh; overflow-y: auto; background: var(--hilary-cream-card); z-index: 1000; border-radius: 28px; padding: 36px; box-shadow: var(--hilary-shadow-lg); display: none; transition: var(--hilary-transition); }
.quickview-modal.open { display: block; transform: translate(-50%, -50%) scale(1); }
.qv-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.qv-img-box { border-radius: 20px; overflow: hidden; aspect-ratio: 1/1; background: var(--hilary-cream); }
.qv-img-box img { width: 100%; height: 100%; object-fit: cover; }
.page-pill-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 14px; background: var(--hilary-cream); color: var(--hilary-forest); font-weight: 700; font-size: 0.9rem; text-decoration: none; border: 1px solid transparent; transition: var(--hilary-transition); }
.page-pill-link:hover { background: var(--hilary-sage); color: #fff; transform: translateX(6px); box-shadow: var(--hilary-shadow-sm); }

/* ── Live Toast & Floating Buttons ── */
.live-toast { position: fixed; bottom: 94px; left: 24px; background: var(--hilary-cream-card); border: 1px solid var(--hilary-border); border-radius: 18px; padding: 14px 20px; box-shadow: var(--hilary-shadow-lg); display: flex; align-items: center; gap: 14px; z-index: 600; max-width: 360px; transform: translateY(120px); opacity: 0; transition: var(--hilary-transition); }
.live-toast.show { transform: translateY(0); opacity: 1; }
.live-toast img { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; }
.floating-wa { position: fixed; bottom: 94px; right: 24px; background: var(--hilary-whatsapp); color: #fff; padding: 14px 24px; border-radius: 99px; font-weight: 700; display: flex; align-items: center; gap: 10px; box-shadow: var(--hilary-shadow-lg); z-index: 600; text-decoration: none; }
.floating-wa:hover { transform: scale(1.05) translateY(-4px); background: #1ebd5a; color: #fff; }

/* ── Mobile Bottom Navigation Bar ── */
.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--hilary-cream-card); border-top: 1px solid var(--hilary-border); display: flex; justify-content: space-around; padding: 10px 0; z-index: 700; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); }
.bot-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; color: var(--hilary-sage-dark); cursor: pointer; text-decoration: none; }
.bot-item.active, .bot-item:hover { color: var(--hilary-terracotta); }
.bot-icon { font-size: 1.35rem; }

/* ── Payment Logos ── */
.payment-row { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); }
.payment-badge { background: #fff; color: #000; font-weight: 800; font-size: 0.72rem; padding: 6px 12px; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }

/* ── Mobile Carousel ── */
.mobile-only-section { display: none; }
.mobile-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 10px 0 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mobile-carousel::-webkit-scrollbar { display: none; }
.mobile-carousel-item { min-width: 70vw; scroll-snap-align: center; background: #fff; border-radius: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); border: 1px solid rgba(20,48,24,0.1); overflow: hidden; position: relative; }
.mobile-carousel-item img { width: 100%; height: 250px; object-fit: cover; }
.mobile-item-info { padding: 16px; text-align: center; }
.mobile-item-title { font-size: 1.1rem; font-weight: 800; color: #143018; margin-bottom: 4px; }
.mobile-item-price { font-size: 1rem; font-weight: 700; color: #D87D56; }

/* ── Mobile Hamburger Button (instant-preview style) ── */
.mobile-hamburger-btn {
  display: none; background: var(--hilary-cream-card); border: 1px solid var(--hilary-taupe);
  width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--hilary-forest); cursor: pointer;
}

/* ── Mobile Responsive Overrides ── */
@media (max-width: 768px) {
  .mobile-only-section { display: block !important; }
  .nav-menu { display: none !important; }
  .mobile-hamburger-btn { display: inline-flex !important; }
  .header-actions { gap: 6px; }
  .hero { grid-template-columns: 1fr !important; gap: 32px; }
  .business-card { grid-template-columns: 1fr !important; }
  .products-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .qv-grid { grid-template-columns: 1fr !important; }
  .floating-wa { bottom: 80px !important; right: 16px !important; padding: 12px !important; border-radius: 50% !important; width: 50px !important; height: 50px !important; justify-content: center !important; }
  #floatingText { display: none !important; }
  .floating-wa span:first-child { font-size: 1.5rem !important; margin: 0 !important; line-height: 1 !important; }
}

/* ── WordPress Block → Instant-Preview bridge styles ── */
/* Make WP Cover blocks look like the instant-preview hero */
.wp-block-cover.alignfull {
  border-radius: 0;
  overflow: hidden;
  min-height: 680px;
}
.wp-block-cover__inner-container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Make WP Buttons look like instant-preview buttons */
.wp-element-button {
  font-family: var(--hilary-font-heading) !important;
  font-weight: 700 !important;
  border-radius: 99px !important;
  padding: 14px 28px !important;
  transition: var(--hilary-transition) !important;
  text-decoration: none !important;
}
.wp-element-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--hilary-shadow-md);
}

/* Make WP Group blocks with custom classes look like instant-preview */
.hilary-business-card { background: var(--hilary-cream-card); border: 2px solid var(--hilary-gold); border-radius: 28px; padding: 36px; box-shadow: var(--hilary-shadow-md); }
.hilary-testimonials { }
.hilary-instagram-gallery { }

/* WP columns gap fix */
.wp-block-columns {
  gap: 32px;
}
.wp-block-column {
  margin-bottom: 0;
}
