/*
Theme Name: Herboristerie Ambre
Theme URI: https://herboristerie-ambre.ma
Author: Herboristerie Ambre
Description: Premium natural herbal e-commerce theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
License: GPL-2.0-or-later
Text Domain: herboristerie-ambre
*/

/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
  --green-dark:    #2D4A2D;
  --green-primary: #4a6741;
  --green-mid:     #5c7a57;
  --green-light:   #6f8f6b;
  --green-banner:  #2D4A2D;
  --gold:          #8B6914;
  --beige:         #F5F0E8;
  --beige-light:   #FAF8F3;
  --white:         #ffffff;
  --text:          #2D4A2D;
  --text-muted:    #6b7c6b;
  --border:        #e5e8e0;
  --shadow-sm:     0 2px 12px rgba(45,74,45,.07);
  --shadow-md:     0 6px 30px rgba(45,74,45,.12);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --transition:    all .28s cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--beige-light);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,h2,h3,h4 {
  font-family: 'Playfair Display', serif;
  color: var(--green-dark);
  line-height: 1.25;
}

/* Arabic (RTL) typography overrides */
[dir="rtl"] body {
  font-family: 'Cairo', 'DM Sans', sans-serif;
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: 'Amiri', 'Playfair Display', serif;
  line-height: 1.4;
}
[dir="rtl"] .hero-title {
  font-family: 'Amiri', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}
[dir="rtl"] .section-label {
  letter-spacing: .05em;
}

.section-label {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .01em;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn-primary:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47,62,47,.25);
}

.btn-outline {
  background: rgba(255,255,255,.72);
  color: var(--green-dark);
  border-color: rgba(47,62,47,.35);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--green-primary);
}

.btn-green {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  width: 100%;
  justify-content: center;
  font-size: .85rem;
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

/* =============================================
   ANNOUNCEMENT BAR
   ============================================= */
.announcement-bar {
  background: var(--green-banner);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
}

/* Thin separator between announcement bar and navbar */
.announcement-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.25), transparent);
}

/* =============================================
   HEADER / NAV
   ============================================= */

/* Fade-in on page load */
@keyframes headerFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-header {
  background: rgba(255,255,255,.97);
  position: sticky;
  top: 0;
  z-index: 1100;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  animation: headerFadeIn .5s ease both;
}

/* Scrolled state: backdrop blur + subtle shadow */
.site-header.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom-color: rgba(229,232,224,.7);
  box-shadow: 0 2px 20px rgba(47,62,47,.09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  width: auto;
  max-width: 190px;
  overflow: visible;
  transition: opacity .2s ease;
}
.site-logo:hover { opacity: .85; }

.site-logo-img {
  display: block;
  width: auto;
  max-width: 190px;
  height: 48px;
  max-height: 48px;
  object-fit: contain;
}

/* Mobile-only nav items hidden on desktop */
.nav-mobile-only { display: none; }
.nav-mobile-footer { display: none; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color .25s ease, background .25s ease;
  white-space: nowrap;
}

/* Animated underline on hover / active */
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2.5px;
  background: var(--green-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
  border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green-primary);
  background: rgba(111,143,107,.07);
}

/* Active state: slightly bolder weight for clarity */
.main-nav a.active {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icon buttons with lift + colour pop on hover */
.header-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.header-icon-btn:hover {
  background: rgba(74,103,65,.1);
  color: var(--green-primary);
  transform: translateY(-2px);
}

.header-icon-btn svg {
  transition: transform .22s ease;
}
.header-icon-btn:hover svg {
  transform: scale(1.12);
}

/* Wishlist badge */
.wl-header-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #c0392b;
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: .6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Cart button with subtle pulse on badge */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.cart-btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47,62,47,.22);
}

@keyframes cartBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  50%       { transform: scale(1.18); box-shadow: 0 0 0 4px rgba(255,255,255,.0); }
}

.cart-count {
  background: var(--white);
  color: var(--green-primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  animation: cartBadgePulse 2.4s ease-in-out infinite;
}


/* =============================================
   HERO SECTION
   ============================================= */

/* Staggered text reveal animations */
@keyframes heroWordUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #edeae2;
}

/* Parallax container — JS will apply transform */
.hero-bg-wrap {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
  will-change: transform;
}

/* Full-bleed background image */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
}

/* Botanical decorative SVG pattern — top-right corner accent */
.hero-botanical {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 340px;
  height: 340px;
  opacity: .07;
  z-index: 2;
  pointer-events: none;
}

/* Gradient overlay: richer for better text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(237,234,226,.97) 0%,
      rgba(237,234,226,.88) 38%,
      rgba(237,234,226,.35) 62%,
      transparent           80%
    ),
    linear-gradient(
      to bottom,
      rgba(237,234,226,.2) 0%,
      transparent 30%,
      transparent 70%,
      rgba(237,234,226,.3) 100%
    );
}

/* Content wrapper */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}

.hero-content {
  max-width: 520px;
}

/* Heading — words animate in with staggered reveal */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.18;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-title .hero-line {
  display: block;
  overflow: hidden;
}

.hero-title .hero-line span {
  display: block;
  animation: heroWordUp .7s cubic-bezier(.22,1,.36,1) both;
}

.hero-title .hero-line:nth-child(1) span { animation-delay: .1s; }
.hero-title .hero-line:nth-child(2) span { animation-delay: .25s; }
.hero-title .hero-line:nth-child(3) span { animation-delay: .4s; }

/* Sub-line fades in after title */
.hero-subtitle {
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  color: #4d6150;
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 440px;
  opacity: 0;
  animation: heroFadeIn .7s cubic-bezier(.22,1,.36,1) .55s both;
}

/* Buttons row */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  animation: heroFadeIn .6s ease .72s both;
}

/* ── Primary CTA: solid dark green fill + lift on hover ───────── */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  padding: 15px 32px;
  background: #2D4A2D;
  color: #fff;
  border: 2px solid #2D4A2D;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(45,74,45,.2);
}
.btn-hero-primary:hover {
  background: #3a5e3a;
  border-color: #3a5e3a;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(45,74,45,.32);
}

/* ── Secondary CTA: ghost / outlined style ────────────────────── */
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: transparent;
  color: #2D4A2D;
  border: 2px solid rgba(45,74,45,.5);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.btn-hero-outline:hover {
  background: rgba(45,74,45,.08);
  border-color: #2D4A2D;
  color: #2D4A2D;
  transform: translateY(-2px);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero                { min-height: 460px; }
  .hero-inner          { padding: 72px 24px; }
  .hero-botanical      { width: 220px; height: 220px; }
  .hero-overlay        {
    background: linear-gradient(
      to right,
      rgba(237,234,226,.95) 0%,
      rgba(237,234,226,.82) 42%,
      rgba(237,234,226,.28) 70%,
      transparent 100%
    );
  }
}

@media (max-width: 600px) {
  .hero                { min-height: auto; }
  .hero-bg-img         { object-position: 65% center; }
  .hero-inner          { padding: 52px 20px 48px; }
  .hero-botanical      { width: 160px; height: 160px; opacity: .05; }
  .hero-overlay        {
    background: linear-gradient(
      135deg,
      rgba(237,234,226,.96) 0%,
      rgba(237,234,226,.82) 48%,
      rgba(237,234,226,.38) 80%,
      rgba(237,234,226,.12) 100%
    );
  }
  .hero-content        { max-width: 78%; }
  .hero-title          { font-size: 1.9rem; }
  .hero-subtitle       { font-size: .9rem; max-width: 100%; }
  .hero-br             { display: none; }
  .hero-actions        { flex-direction: column; align-items: flex-start; gap: 12px; width: 90%; }
  .btn-hero-primary,
  .btn-hero-outline    { width: 100%; justify-content: center; padding: 14px 20px; }
}

/* RTL hero flip — keep text on right side */
[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(
      to left,
      rgba(237,234,226,.97) 0%,
      rgba(237,234,226,.88) 38%,
      rgba(237,234,226,.35) 62%,
      transparent           80%
    ),
    linear-gradient(
      to bottom,
      rgba(237,234,226,.2) 0%,
      transparent 30%,
      transparent 70%,
      rgba(237,234,226,.3) 100%
    );
}
[dir="rtl"] .hero-botanical {
  right: auto;
  left: -20px;
  transform: scaleX(-1);
}
[dir="rtl"] .hero-bg-img { object-position: center left; }

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--green-primary);
}

.trust-text strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--green-dark);
}

.trust-text span {
  font-size: .78rem;
  color: var(--text-muted);
}

/* =============================================
   CATEGORIES – PAR BESOIN
   ============================================= */
.categories-section {
  padding: 80px 0;
  background: var(--beige-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.category-card:hover img { transform: scale(1.06); }

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,47,30,.82) 0%, rgba(30,47,30,.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 14px;
  text-align: center;
}


.category-card-overlay h3 {
  color: var(--white);
  font-size: .95rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.categories-cta { text-align: center; }

.products-cta { text-align: center; margin-top: 40px; }

.products-grid--all {
  grid-template-columns: repeat(4, 1fr);
  overflow: visible;
}

/* Placeholder shown when a category has no thumbnail */
.cat-no-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--beige) 100%);
}

/* =============================================
   PRODUCTS – NOS PRODUITS POPULAIRES
   ============================================= */
.products-section {
  padding: 80px 0;
  background: var(--white);
}

.products-slider-wrapper {
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover .product-image-wrap img { transform: scale(1.05); }

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
}

.wishlist-btn:hover {
  color: #c0392b;
  transform: scale(1.1);
}

.product-info {
  padding: 20px;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.product-desc {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.stars {
  color: #f0a500;
  font-size: .85rem;
  letter-spacing: .02em;
}

.stars-filled {
  position: relative;
  display: inline-block;
  color: #ddd;
  font-size: .85rem;
  letter-spacing: .02em;
}
.stars-filled::before {
  content: '★★★★★';
  position: absolute;
  inset: 0;
  color: #f0a500;
  width: var(--pct, 80%);
  overflow: hidden;
  white-space: nowrap;
}

.review-count {
  font-size: .75rem;
  color: var(--text-muted);
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 14px;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--green-dark);
}

.slider-btn:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
}

/* =============================================
   ABOUT / MISSION SECTION
   ============================================= */
.about-section {
  background: var(--green-primary);
  padding: 80px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-content { color: var(--white); }

.about-content .section-label { color: rgba(255,255,255,.65); }

.about-content h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 20px;
}

.about-content p {
  color: rgba(255,255,255,.82);
  margin-bottom: 32px;
  font-size: .97rem;
  line-height: 1.75;
}

.about-image-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 420px;
}

.about-image-main {
  grid-row: 1 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-image-main img,
.about-image-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-secondary {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-section {
  padding: 80px 0;
  background: var(--beige-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.why-item {
  text-align: center;
}

.why-icon-wrap {
  width: 72px;
  height: 72px;
  background: rgba(74,103,65,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--green-primary);
  transition: var(--transition);
}

.why-item:hover .why-icon-wrap {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-4px);
}

.why-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-item p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section {
  padding: 80px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--beige-light);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: #f0a500;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: .05em;
}

.testimonial-text {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.author-info strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--green-dark);
}

.author-info span {
  font-size: .75rem;
  color: var(--text-muted);
}

/* =============================================
   BLOG SECTION
   ============================================= */
.blog-section {
  padding: 80px 0;
  background: var(--beige-light);
}

.blog-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.blog-intro .section-title { margin-bottom: 16px; }

.blog-intro p {
  font-size: .92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.blog-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-card-no-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #e8f0e7 0%, #f5f5f0 100%);
}

.blog-card-content { padding: 18px; }

.blog-tag {
  display: inline-block;
  background: rgba(74,103,65,.1);
  color: var(--green-primary);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.blog-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--green-dark);
}

.blog-card-link {
  font-size: .78rem;
  color: var(--green-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.blog-card-link:hover { gap: 8px; }

/* =============================================
   NEWSLETTER / CTA
   ============================================= */
.newsletter-section {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.newsletter-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--green-dark);
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: .9rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--beige-light);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  min-width: 260px;
}

.newsletter-form input:focus {
  border-color: var(--green-primary);
  background: var(--white);
}

.newsletter-form input::placeholder { color: var(--text-muted); }

.newsletter-badges {
  display: flex;
  gap: 32px;
}

.nl-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.nl-badge svg { color: var(--green-primary); flex-shrink: 0; }

.nl-badge span { font-size: .8rem; line-height: 1.4; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo-img {
  height: 110px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  margin: -22px 0;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: .82rem;
  line-height: 1.7;
  margin: 16px 0 24px;
  color: rgba(255,255,255,.65);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  transition: var(--transition);
  font-size: .85rem;
}

.social-link:hover {
  background: var(--green-light);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col a {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  transition: var(--transition);
}

.footer-col a:hover { color: var(--white); padding-left: 4px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 12px;
}

.footer-contact svg { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,.45);
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  z-index: 999;
  transition: var(--transition);
  color: var(--white);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,.5);
}

/* =============================================
   FINAL CTA SECTION
   ============================================= */
.final-cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 100%);
  text-align: center;
}

.final-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.final-cta-inner .section-label {
  color: rgba(255,255,255,.65);
}

.final-cta-inner h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 16px;
}

.final-cta-inner > p {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.final-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.final-cta-actions .btn-primary {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}

.final-cta-actions .btn-primary:hover {
  background: var(--beige);
  border-color: var(--beige);
}

.final-cta-actions .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}

.final-cta-actions .btn-outline:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: var(--white);
}

.final-cta-badges {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .categories-grid  { grid-template-columns: repeat(4, 1fr); max-width: 100%; }
  .products-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr 1fr; }
  .about-inner      { grid-template-columns: 1fr; }
  .about-image-grid { height: 300px; }
  .blog-inner       { grid-template-columns: 1fr; }
  .blog-grid        { grid-template-columns: repeat(3, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-badges{ flex-wrap: wrap; gap: 20px; }
}

/* ── Wishlist badge in header ──────────────────────────────── */
.header-icon-btn { position: relative; }
.wl-header-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  background: #e74c3c;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

/* ── Scrolled header ───────────────────────────────────────── */
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(47,62,47,.12);
}

/* ── Nav close button: always hidden outside mobile overlay ── */
.nav-close-btn { display: none !important; }
.main-nav.nav-open .nav-close-btn { display: flex !important; }

/* ── Mobile hamburger button ───────────────────────────────── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform .28s ease, opacity .28s ease;
  transform-origin: center;
}
.mobile-menu-btn.is-open .burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-btn.is-open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.is-open .burger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  /* Mobile slide-out menu styles are consolidated in the authoritative
     block lower in this file (search "Slide-out menu (full-width overlay)").
     Only layout grid + non-menu responsive rules live here. */
  .trust-bar-inner   { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .categories-grid   { grid-template-columns: repeat(2, 1fr); }
  .products-grid     { grid-template-columns: repeat(2, 1fr); }
  .why-grid          { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid         { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .newsletter-form   { flex-direction: column; }
  .newsletter-form input { min-width: auto; }
}

@media (max-width: 480px) {
  .categories-grid  { grid-template-columns: 1fr 1fr; }
  .products-grid    { grid-template-columns: 1fr; }
  .trust-bar-inner  { grid-template-columns: 1fr; }
  .why-grid         { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .footer-bottom    { flex-direction: column; gap: 12px; text-align: center; }
}

/* =============================================
   ABOUT PAGE  (page-about.php)
   ============================================= */

/* ── Hero ── */
.ap-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ap-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ap-hero-media--gradient {
  background: linear-gradient(135deg, #1e2e1e 0%, #3d5438 60%, #6b7c3f 100%);
}

.ap-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.ap-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30,47,30,.88) 0%, rgba(30,47,30,.55) 55%, rgba(30,47,30,.2) 100%);
}

.ap-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 96px;
}

.ap-hero-content {
  max-width: 560px;
}

.ap-hero .section-label { color: rgba(255,255,255,.65); }

.ap-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.ap-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  max-width: 480px;
}

/* ── Stats ── */
.ap-stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.ap-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.ap-stat {
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
}

.ap-stat:last-child { border-right: none; }

.ap-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--green-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.ap-stat strong span {
  font-size: 60%;
  color: var(--text-muted);
}

.ap-stat > span {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── Story ── */
.ap-story {
  padding: 96px 0;
  background: var(--beige-light);
}

.ap-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.ap-story-images {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 460px;
}

.ap-story-images--single {
  display: block;
  height: auto;
}

.ap-img-main {
  grid-row: 1 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ap-img-main--full {
  grid-row: unset;
  width: 100%;
  height: 520px;
}

.ap-img-secondary {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ap-img-main img,
.ap-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-img-main--full img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.ap-story-content h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  margin-bottom: 20px;
}

.ap-story-content p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.ap-story-content .btn { margin-top: 16px; }

/* ── Values ── */
.ap-values {
  padding: 96px 0;
  background: var(--white);
}

.ap-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.ap-value-card {
  background: var(--beige-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.ap-value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.ap-value-icon {
  width: 72px;
  height: 72px;
  background: rgba(74,103,65,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--green-primary);
  transition: var(--transition);
}

.ap-value-card:hover .ap-value-icon {
  background: var(--green-primary);
  color: var(--white);
}

.ap-value-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--green-dark);
}

.ap-value-card p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Founder ── */
.ap-founder {
  padding: 96px 0;
  background: var(--green-primary);
}

.ap-founder-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: center;
}

.ap-founder-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-md);
}

.ap-founder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-founder-content .section-label { color: rgba(255,255,255,.65); }

.ap-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--white);
  line-height: 1.75;
  font-style: italic;
  margin: 20px 0 32px;
  padding-left: 24px;
  border-left: 3px solid rgba(255,255,255,.35);
}

.ap-signature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ap-signature-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  flex-shrink: 0;
}

.ap-signature strong {
  display: block;
  color: var(--white);
  font-size: .95rem;
}

.ap-signature span {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}

/* ── About CTA ── */
.ap-cta {
  padding: 96px 0;
  background: var(--beige-light);
  text-align: center;
}

.ap-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.ap-cta-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.ap-cta-inner p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.ap-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── About Responsive ── */
@media (max-width: 1024px) {
  .ap-story-grid      { grid-template-columns: 1fr; gap: 48px; }
  .ap-story-images    { height: 300px; }
  .ap-values-grid     { grid-template-columns: repeat(2, 1fr); }
  .ap-founder-inner   { grid-template-columns: 1fr; gap: 48px; }
  .ap-founder-img     { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .ap-hero            { min-height: 380px; }
  .ap-hero .container { padding-top: 64px; padding-bottom: 64px; }
  .ap-stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .ap-stat            { border-right: none; border-bottom: 1px solid var(--border); }
  .ap-stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .ap-stat:last-child,
  .ap-stat:nth-last-child(2) { border-bottom: none; }
}

@media (max-width: 480px) {
  .ap-hero-content    { max-width: 100%; }
  .ap-values-grid     { grid-template-columns: 1fr; }
  .ap-stats-grid      { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   CONTACT PAGE  (page-contact.php)
   ============================================= */

/* ── Header ── */
.cp-header {
  background: var(--green-dark);
  padding: 72px 0 60px;
  text-align: center;
}

.cp-header-inner { max-width: 560px; margin: 0 auto; }

.cp-header .section-label { color: rgba(255,255,255,.6); }

.cp-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cp-subtitle {
  font-size: .97rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}

/* ── Body layout ── */
.cp-body { padding: 72px 0 96px; background: var(--beige-light); }

.cp-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}

/* ── Form column ── */
.cp-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.cp-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 28px;
}

.cp-alert {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: .875rem;
}

.cp-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.cp-alert ul { margin: 0; padding-left: 18px; }

.cp-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.cp-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-dark);
}

.cp-req { color: #dc2626; margin-left: 2px; }

.cp-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--beige-light);
  color: var(--text);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.cp-input:focus {
  border-color: var(--green-primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74,103,65,.1);
}

.cp-input-error { border-color: #dc2626; background: #fef2f2; }
.cp-input::placeholder { color: var(--text-muted); }

.cp-select { cursor: pointer; }

.cp-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.cp-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}

.cp-submit:hover {
  background: var(--green-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47,62,47,.22);
}

.cp-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .77rem;
  color: var(--text-muted);
  justify-content: center;
}

/* ── Success state ── */
.cp-success {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px 44px;
  text-align: center;
  border: 1px solid var(--border);
}

.cp-success-icon {
  width: 80px;
  height: 80px;
  background: rgba(74,103,65,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--green-primary);
}

.cp-success h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cp-success p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ── Info column ── */
.cp-info-col { display: flex; flex-direction: column; gap: 24px; }

.cp-info-cards { display: flex; flex-direction: column; gap: 12px; }

.cp-info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.cp-info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-2px);
}

.cp-wa-card { border-color: rgba(37,211,102,.3); }
.cp-wa-card:hover { border-color: transparent; }

.cp-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(74,103,65,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  flex-shrink: 0;
}

.cp-card-icon-wa {
  background: rgba(37,211,102,.12);
  color: #25D366;
}

.cp-card-icon-ig {
  background: rgba(225,48,108,.1);
  color: #e1306c;
}

.cp-card-icon-tt {
  background: rgba(0,0,0,.07);
  color: #010101;
}

.cp-social-card { border-color: var(--border); }
.cp-social-card:hover { border-color: transparent; }

.cp-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 4px;
}

.cp-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.cp-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cp-card-text strong {
  font-size: .88rem;
  font-weight: 700;
  color: var(--green-dark);
}

.cp-card-text span {
  font-size: .75rem;
  color: var(--text-muted);
}

.cp-card-text em {
  font-size: .8rem;
  color: var(--green-primary);
  font-style: normal;
  font-weight: 500;
}

.cp-card-arrow { color: var(--text-muted); flex-shrink: 0; }

/* ── FAQ ── */
.cp-faq {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
}

.cp-faq-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cp-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.cp-faq-item:last-child { border-bottom: none; }

.cp-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.cp-faq-q::-webkit-details-marker { display: none; }

.cp-faq-item[open] .cp-faq-arrow { transform: rotate(180deg); }

.cp-faq-arrow { transition: transform .25s ease; flex-shrink: 0; color: var(--text-muted); }

.cp-faq-a { padding: 0 0 14px; }

.cp-faq-a p {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Contact Responsive ── */
@media (max-width: 1024px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-info-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .cp-info-cards { gap: 12px; }
  .cp-faq { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .cp-form-wrap { padding: 28px 24px; }
  .cp-row-split { grid-template-columns: 1fr; }
  .cp-info-col  { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cp-header { padding: 56px 0 48px; }
}

/* ═══════════════════════════════════════════════════════════════
   Cart toast notification (#ambreCartToast)
   ══════════════════════════════════════════════════════════════ */
#ambreCartToast {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-dark, #2f3e2f);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  z-index: 9999;
  font-size: .86rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  max-width: 360px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}
#ambreCartToast.act-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.act-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}
.act-msg  { flex: 1; }
.act-link {
  color: #a8d4a0;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  transition: color .15s;
}
.act-link:hover { color: #fff; }
.act-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s;
}
.act-close:hover { color: #fff; }
@media (max-width: 480px) {
  #ambreCartToast { bottom: 16px; right: 12px; left: 12px; max-width: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Global WC notices bar (#ambreNoticesBar in header)
   WC injects .woocommerce-message here after AJAX add-to-cart.
   ══════════════════════════════════════════════════════════════ */
#ambreNoticesBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  pointer-events: none;
}
#ambreNoticesBar:empty { display: none; }

#ambreNoticesBar .woocommerce-message,
#ambreNoticesBar .woocommerce-info,
#ambreNoticesBar .woocommerce-error {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 12px 20px;
  border-radius: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  border: none;
  list-style: none;
}
#ambreNoticesBar .woocommerce-message { background: var(--green-dark, #2f3e2f); color: #fff; }
#ambreNoticesBar .woocommerce-error   { background: #b91c1c; color: #fff; }
#ambreNoticesBar .woocommerce-info    { background: #1d4ed8; color: #fff; }

#ambreNoticesBar .button.wc-forward,
#ambreNoticesBar a.button {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
#ambreNoticesBar .button.wc-forward:hover { background: rgba(255,255,255,.35); }

/* ================================================================
   RESPONSIVE ENHANCEMENTS v2
   Fills gaps in existing responsive design.
   Mobile-first, no PHP changes, pure CSS only.
   ================================================================ */

/* ── 1. Global: prevent horizontal scroll ─────────────────────── */
html, body { overflow-x: hidden; }

/* ── 2. Container: 16px padding on tiny phones (<= 400px) ──────── */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
}

/* ── 3. Announcement bar: truncate on very small screens ────────── */
@media (max-width: 480px) {
  .announcement-bar {
    font-size: .74rem;
    padding: 8px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ── 4. Header responsive sizing — handled by section 24 (mobile)
       and base rules (desktop). Tablet-only logo trim below. ───── */
@media (max-width: 1024px) and (min-width: 769px) {
  .site-logo        { flex-basis: 160px; }
  .site-logo-img    { max-width: 160px; }
}

/* ── 5. Section vertical padding: reduce on tablet & mobile ─────── */
@media (max-width: 768px) {
  .categories-section,
  .products-section,
  .about-section,
  .why-section,
  .testimonials-section,
  .blog-section          { padding: 56px 0; }

  .newsletter-section    { padding: 44px 0; }
  .final-cta-section     { padding: 64px 0; }
}

@media (max-width: 480px) {
  .categories-section,
  .products-section,
  .about-section,
  .why-section,
  .testimonials-section,
  .blog-section          { padding: 40px 0; }

  .newsletter-section    { padding: 36px 0; }
  .final-cta-section     { padding: 48px 0; }

  .section-subtitle      { margin-bottom: 24px; font-size: .88rem; }
  .section-header        { margin-bottom: 32px; }
}

/* ── 6. Typography: prevent iOS zoom on any form input ─────────── */
/* iOS Safari auto-zooms on focus if font-size < 16px */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  textarea,
  select { font-size: 16px !important; }
}

/* ── 7. Touch targets: minimum 44px height on interactive elements */
@media (max-width: 768px) {
  .btn,
  .btn-primary,
  .btn-outline,
  .btn-hero-primary,
  .btn-hero-outline {
    min-height: 44px;
  }
}

/* ── 8. Trust bar: compact icons on tiny screens ─────────────────── */
@media (max-width: 480px) {
  .trust-item        { gap: 10px; }
  .trust-icon        { width: 36px; height: 36px; flex-shrink: 0; }
  .trust-text strong { font-size: .82rem; }
  .trust-text span   { font-size: .72rem; }
}

/* ── 9. Hero: fix 75% content width to allow better readability ─── */
@media (max-width: 480px) {
  .hero-content   { max-width: 80%; }
  .hero-actions   { width: 100%; }
  .btn-hero-primary,
  .btn-hero-outline { font-size: .85rem; padding: 12px 18px; }
}

/* ── 10. Categories: compact on small phones ─────────────────────── */
@media (max-width: 480px) {
  .categories-grid         { gap: 12px; }
  .category-icon           { width: 36px; height: 36px; margin-bottom: 6px; }
  .category-card-overlay   { padding: 14px 10px; }
  .category-card-overlay h3{ font-size: .8rem; }
}

/* ── 11. Products grid: 1-column on very small phones ─────────────── */
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .product-image-wrap img { height: 200px; }
  .product-info           { padding: 16px; }
  .product-name           { font-size: .95rem; }
}

/* ── 12. About section: fix mosaic height on mobile ─────────────── */
@media (max-width: 768px) {
  .about-image-grid { height: 260px; }
}
@media (max-width: 480px) {
  .about-inner      { gap: 32px; }
  .about-image-grid { height: 220px; }
  .about-content p  { font-size: .9rem; }
}

/* ── 13. Why Choose Us: compact on mobile ─────────────────────── */
@media (max-width: 480px) {
  .why-grid      { margin-top: 28px; }
  .why-icon-wrap { width: 60px; height: 60px; }
  .why-item h4   { font-size: .92rem; }
}

/* ── 14. Testimonials: reduce card padding on mobile ─────────────── */
@media (max-width: 768px) {
  .testimonial-card { padding: 24px 20px; }
  .testimonial-text { font-size: .88rem; }
}

/* ── 15. Blog section: compact card on mobile ─────────────────── */
@media (max-width: 480px) {
  .blog-card img        { height: 140px; }
  .blog-card-content    { padding: 14px; }
  .blog-card h4         { font-size: .88rem; }
}

/* ── 16. Newsletter: full-width input on mobile ────────────────── */
@media (max-width: 768px) {
  .newsletter-inner          { gap: 24px; }
  .newsletter-form           { flex-direction: column; gap: 10px; }
  .newsletter-form input     { width: 100%; min-width: 0; }
  .newsletter-badges         { gap: 16px; }
}

/* ── 17. Final CTA: stack buttons on mobile ────────────────────── */
@media (max-width: 480px) {
  .final-cta-inner h2        { font-size: 1.8rem; }
  .final-cta-actions         { flex-direction: column; gap: 10px; }
  .final-cta-actions .btn    { width: 100%; justify-content: center; }
  .final-cta-badges          { flex-direction: column; align-items: center; gap: 12px; }
}

/* ── 18. Footer: better spacing & font on mobile ──────────────── */
@media (max-width: 768px) {
  .site-footer { padding: 48px 0 0; }
  .footer-grid { gap: 28px; }
}
@media (max-width: 480px) {
  .site-footer         { padding: 40px 0 0; }
  .footer-bottom       { font-size: .72rem; }
  .footer-bottom-links { gap: 16px; }
}

/* ── 19. WhatsApp float: smaller + safe area on mobile ─────────── */
@media (max-width: 480px) {
  .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}

/* ── 20. About page: reduce section paddings on mobile ──────────── */
@media (max-width: 480px) {
  .ap-hero .container { padding-top: 48px; padding-bottom: 48px; }
  .ap-story,
  .ap-values,
  .ap-founder,
  .ap-cta       { padding: 56px 0; }
  .ap-founder-inner { gap: 32px; }
  .ap-founder-img   { max-width: 280px; }
  .ap-quote         { font-size: 1rem; padding-left: 16px; }
}

/* ── 21. Contact page: reduce padding on tiny screens ──────────── */
@media (max-width: 480px) {
  .cp-body      { padding: 40px 0 56px; }
  .cp-form-wrap { padding: 24px 16px; }
}

/* =============================================
   22. LANGUAGE SWITCHER
   ============================================= */
.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  color: var(--green-dark);
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
  white-space: nowrap;
}

.lang-switcher-btn:hover,
.lang-switcher-btn.open {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74,103,65,.2);
}

.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { font-size: .78rem; letter-spacing: .04em; }

.lang-chevron {
  transition: transform .2s ease;
  flex-shrink: 0;
}

.lang-switcher-btn.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  list-style: none;
  padding: 6px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s ease;
  z-index: 9999;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s ease;
}

.lang-option:hover { background: var(--beige); color: var(--green-dark); }
.lang-option.active { color: var(--green-primary); font-weight: 600; background: #eef4ed; }
.lang-option svg { margin-left: auto; color: var(--green-primary); }

/* =============================================
   23. RTL – ARABE — architecture v2 (logical properties)
   --------------------------------------------------
   Source de vérité   : `dir="rtl"` posé directement sur <html>
                        par header.php (ambre_current_lang()).
   Aliases défensifs  : html[data-dir="rtl"], body.rtl,
                        body.lang-ar, body.dir-rtl
   Reset défensif LTR : body.lang-fr (force LTR si une 3rd-party
                        stylesheet a injecté du RTL parasite).
   --------------------------------------------------
   Stratégie :
   1. Le scope `[dir="rtl"]` est porté par <html>. Toute règle
      RTL est ciblée via `[dir="rtl"] .xxx` (héritage cascade).
      Les aliases (body.rtl, body.lang-ar, body.dir-rtl,
      html[data-dir="rtl"]) sont défensifs : ils battent tout
      reset accidentel injecté par Polylang/WP/WC.
   2. Les nouveaux composants utilisent des propriétés
      *logiques* (margin-inline-*, padding-inline-*,
      inset-inline-*, border-inline-*) — celles-ci se
      retournent automatiquement avec `dir` sans CSS spécifique.
   3. `flex-direction: row-reverse` est utilisé UNIQUEMENT pour
      inverser l'ordre visuel d'enfants d'un conteneur flex.
      Pour la position globale (logo gauche↔droite, actions
      droite↔gauche), c'est `dir="rtl"` + `justify-content`
      qui s'en charge automatiquement.
   4. `!important` est réservé aux endroits où WP/Polylang/WC
      ré-écrasent (lang-dropdown, language_attributes filter).
   ============================================= */

/* ── Scope RTL (alias group) — utilisé via @supports selectors-4
   en fallback. Concrètement, on duplique chaque règle avec les
   4 sélecteurs racines pour battre tout reset accidentel. */

/* Base : direction + alignement + police arabe */
html[dir="rtl"],
html[data-dir="rtl"],
body.rtl,
body.lang-ar,
body.dir-rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Sans Arabic', 'DM Sans', sans-serif;
}

/* Reset défensif LTR : si une 3rd-party stylesheet a laissé
   du RTL, on force le retour en LTR. */
html[dir="ltr"] body.lang-fr,
body.lang-fr {
  direction: ltr;
  text-align: left;
}

/* =====================================================
   23.1  HEADER / NAVBAR
   --------------------------------------------------
   En RTL, dir="rtl" + flex sur .header-inner ré-arrange
   automatiquement les enfants visuels. Mais comme
   .header-inner a `justify-content: space-between`, le
   premier enfant DOM (logo) va à DROITE et le dernier
   (header-actions) va à GAUCHE — exactement ce qu'on veut.
   On force quand même flex-direction: row-reverse pour
   les inversions internes (menu, actions, cart-btn).
   ===================================================== */

/* Header inner — pas besoin de row-reverse :
   `dir="rtl"` + `justify-content: space-between` suffit.
   Le logo passe naturellement à droite, les actions à gauche.
   On garde quand même la règle pour les cas où une 3rd-party
   forcerait dir=ltr sur l'élément. */
html[dir="rtl"] .header-inner,
html[data-dir="rtl"] .header-inner,
body.rtl       .header-inner,
body.lang-ar   .header-inner,
body.dir-rtl   .header-inner          { direction: rtl; }

/* Actions du header : on inverse l'ordre visuel pour que
   l'ordre arabe (droite→gauche) soit : wishlist, account,
   cart, lang, hamburger — comme en LTR mais miroir. */
html[dir="rtl"] .header-actions,
html[data-dir="rtl"] .header-actions,
body.rtl       .header-actions,
body.lang-ar   .header-actions,
body.dir-rtl   .header-actions        { flex-direction: row-reverse; }

/* Menu principal : en RTL, l'ordre DOM (Accueil, Boutique, Blog,
   About, Contact) doit suivre la lecture arabe — Accueil PREMIER
   depuis la DROITE → Contact à gauche. On laisse `direction: rtl`
   hériter du parent et on force `flex-direction: row` (le navigateur
   inverse alors automatiquement la disposition des enfants). */
html[dir="rtl"] .main-nav ul,
html[data-dir="rtl"] .main-nav ul,
body.rtl       .main-nav ul,
body.lang-ar   .main-nav ul,
body.dir-rtl   .main-nav ul           {
  direction: rtl;
  flex-direction: row;
}

/* Chaque lien dans le menu garde son texte arabe correctement
   lu (le contenu arabe est bidi-isolated par le navigateur) */
html[dir="rtl"] .main-nav ul li a,
html[data-dir="rtl"] .main-nav ul li a,
body.lang-ar   .main-nav ul li a      {
  direction: rtl;
  unicode-bidi: isolate;
}

/* Liens menu : reset letter-spacing (inutile pour l'arabe) */
html[dir="rtl"] .main-nav a,
html[data-dir="rtl"] .main-nav a,
body.lang-ar   .main-nav a            { letter-spacing: 0; }

/* Cart button : icône + label + badge → row-reverse pour
   que l'icône passe à droite du label (lecture RTL). */
html[dir="rtl"] .cart-btn,
html[data-dir="rtl"] .cart-btn,
body.rtl       .cart-btn,
body.lang-ar   .cart-btn,
body.dir-rtl   .cart-btn              { flex-direction: row-reverse; }

/* Cart count badge — propriété logique */
html[dir="rtl"] .cart-btn .cart-count,
html[data-dir="rtl"] .cart-btn .cart-count,
body.lang-ar   .cart-btn .cart-count  { margin-inline-start: 6px; margin-inline-end: 0; }

/* Wishlist badge : ancré inset-inline-end:-4px (= left:-4px en RTL) */
html[dir="rtl"] .wl-header-badge,
html[data-dir="rtl"] .wl-header-badge,
body.rtl       .wl-header-badge,
body.lang-ar   .wl-header-badge,
body.dir-rtl   .wl-header-badge       {
  right: auto;
  left: -4px;
}

/* Lang switcher button : flag + code + chevron inversés */
html[dir="rtl"] .lang-switcher-btn,
html[data-dir="rtl"] .lang-switcher-btn,
body.rtl       .lang-switcher-btn,
body.lang-ar   .lang-switcher-btn,
body.dir-rtl   .lang-switcher-btn     { flex-direction: row-reverse; }

/* Lang dropdown : ancré à gauche en RTL (le bouton est à droite
   du header en RTL → le dropdown doit déborder vers la gauche
   pour rester dans le viewport). */
html[dir="rtl"] .lang-dropdown,
html[data-dir="rtl"] .lang-dropdown,
body.rtl       .lang-dropdown,
body.lang-ar   .lang-dropdown,
body.dir-rtl   .lang-dropdown         {
  right: auto !important;
  left: 0 !important;
}

/* Lang option : flag + nom + check inversés, texte aligné à droite */
html[dir="rtl"] .lang-option,
html[data-dir="rtl"] .lang-option,
body.rtl       .lang-option,
body.lang-ar   .lang-option,
body.dir-rtl   .lang-option           {
  flex-direction: row-reverse;
  text-align: right;
}

/* Check svg dans lang-option : margin-left:auto → margin-right:auto */
html[dir="rtl"] .lang-option svg,
html[data-dir="rtl"] .lang-option svg,
body.lang-ar   .lang-option svg       {
  margin-left: 0;
  margin-right: auto;
}

/* Annonce bar + container : propagation explicite */
html[dir="rtl"] .announcement-bar,
html[data-dir="rtl"] .announcement-bar,
body.lang-ar   .announcement-bar,
html[dir="rtl"] .container,
html[data-dir="rtl"] .container,
body.lang-ar   .container             { direction: rtl; }

/* =====================================================
   23.2  HEADER / NAVBAR — RESPONSIVE (≤768px)
   ===================================================== */
@media (max-width: 768px) {
  /* Le header garde sa direction RTL — actions à gauche, logo à droite */
  html[dir="rtl"] .header-inner,
  html[data-dir="rtl"] .header-inner,
  body.lang-ar   .header-inner        { direction: rtl; }

  html[dir="rtl"] .header-actions,
  html[data-dir="rtl"] .header-actions,
  body.lang-ar   .header-actions      { flex-direction: row-reverse; }

  /* Hamburger button : pas de transform RTL spécifique
     (l'animation est symétrique) */
  html[dir="rtl"] .burger-line,
  html[data-dir="rtl"] .burger-line,
  body.lang-ar   .burger-line { transform-origin: center; }

  /* Mobile menu overlay : direction RTL forcée */
  html[dir="rtl"] .main-nav.nav-open,
  html[data-dir="rtl"] .main-nav.nav-open,
  body.lang-ar   .main-nav.nav-open   { direction: rtl; }

  /* Mobile menu liste : stack vertical (override row-reverse desktop) */
  html[dir="rtl"] .main-nav.nav-open ul,
  html[data-dir="rtl"] .main-nav.nav-open ul,
  body.lang-ar   .main-nav.nav-open ul {
    flex-direction: column;
    align-items: stretch;
  }

  /* Liens mobile alignés à droite */
  html[dir="rtl"] .main-nav.nav-open ul a,
  html[data-dir="rtl"] .main-nav.nav-open ul a,
  body.lang-ar   .main-nav.nav-open ul a {
    text-align: right;
    padding-inline: 16px;
  }

  /* Lang dropdown reste ancré à gauche */
  html[dir="rtl"] .lang-dropdown,
  html[data-dir="rtl"] .lang-dropdown,
  body.lang-ar   .lang-dropdown       {
    right: auto !important;
    left: 0 !important;
  }
}

/* =====================================================
   23.3  HERO
   --------------------------------------------------
   En LTR : texte à gauche, flacon à droite, overlay
   fond vers la droite.
   En RTL : texte à droite, flacon à gauche, overlay
   fond vers la gauche (miroir complet).
   ===================================================== */

/* Hero content text alignment */
html[dir="rtl"] .hero-content,
html[data-dir="rtl"] .hero-content,
body.lang-ar   .hero-content,
body.dir-rtl   .hero-content          {
  text-align: right;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

/* Hero actions : boutons alignés à droite (flex-start en RTL) */
html[dir="rtl"] .hero-actions,
html[data-dir="rtl"] .hero-actions,
body.lang-ar   .hero-actions,
body.dir-rtl   .hero-actions          { justify-content: flex-start; }

/* Hero background image : flip horizontalement pour passer
   le flacon de droite à gauche */
html[dir="rtl"] .hero-bg-img,
html[data-dir="rtl"] .hero-bg-img,
body.lang-ar   .hero-bg-img,
body.dir-rtl   .hero-bg-img           {
  object-position: center left;
  transform: scaleX(-1);
}

/* Hero overlay : inverser le gradient (right→left au lieu de left→right) */
html[dir="rtl"] .hero-overlay,
html[data-dir="rtl"] .hero-overlay,
body.lang-ar   .hero-overlay,
body.dir-rtl   .hero-overlay          {
  background: linear-gradient(
    to left,
    rgba(237,234,226,.95) 0%,
    rgba(237,234,226,.82) 35%,
    rgba(237,234,226,.30) 58%,
    transparent           80%
  );
}

/* Hero responsive RTL */
@media (max-width: 900px) {
  html[dir="rtl"] .hero-overlay,
  html[data-dir="rtl"] .hero-overlay,
  body.lang-ar   .hero-overlay,
  body.dir-rtl   .hero-overlay {
    background: linear-gradient(
      to left,
      rgba(237,234,226,.94) 0%,
      rgba(237,234,226,.80) 40%,
      rgba(237,234,226,.25) 68%,
      transparent 100%
    );
  }
}

@media (max-width: 600px) {
  html[dir="rtl"] .hero-bg-img,
  html[data-dir="rtl"] .hero-bg-img,
  body.lang-ar   .hero-bg-img,
  body.dir-rtl   .hero-bg-img         {
    object-position: 65% center;
    transform: none;
  }

  html[dir="rtl"] .hero-overlay,
  html[data-dir="rtl"] .hero-overlay,
  body.lang-ar   .hero-overlay,
  body.dir-rtl   .hero-overlay {
    background: linear-gradient(
      315deg,
      rgba(237,234,226,.96) 0%,
      rgba(237,234,226,.82) 45%,
      rgba(237,234,226,.35) 78%,
      rgba(237,234,226,.08) 100%
    );
  }

  /* Hero-content margin: passe à droite (margin-inline-end:auto) */
  html[dir="rtl"] .hero-content,
  html[data-dir="rtl"] .hero-content,
  body.lang-ar   .hero-content,
  body.dir-rtl   .hero-content        {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }

  /* Arabic title smaller on mobile to avoid 1-word orphan lines */
  html[dir="rtl"] .hero-title,
  html[data-dir="rtl"] .hero-title,
  body.lang-ar   .hero-title,
  body.dir-rtl   .hero-title          { font-size: 1.55rem; }

  /* Actions : alignées à droite */
  html[dir="rtl"] .hero-actions,
  html[data-dir="rtl"] .hero-actions,
  body.lang-ar   .hero-actions,
  body.dir-rtl   .hero-actions        {
    align-items: flex-end;
    margin-inline-start: auto;
    margin-inline-end: 0;
  }
}

/* Trust bar : direction RTL pour propagation */
html[dir="rtl"] .trust-bar,
html[data-dir="rtl"] .trust-bar,
body.lang-ar   .trust-bar,
body.dir-rtl   .trust-bar             { direction: rtl; }

/* =====================================================
   23.4  SHOP / ARCHIVE PRODUIT
   --------------------------------------------------
   Note : les règles détaillées shop sont dans shop.css
   (section "SHOP PAGE — RTL v3"). Ici on ne garde que les
   règles communes (card-body / card-footer / filter-header
   qui peuvent apparaître hors shop, ex. cross-sells).
   ===================================================== */
html[dir="rtl"] .filter-header,
html[data-dir="rtl"] .filter-header,
body.lang-ar   .filter-header,
body.dir-rtl   .filter-header         { flex-direction: row-reverse; }

html[dir="rtl"] .card-body,
html[data-dir="rtl"] .card-body,
body.lang-ar   .card-body,
body.dir-rtl   .card-body             { text-align: right; }

html[dir="rtl"] .card-footer,
html[data-dir="rtl"] .card-footer,
body.lang-ar   .card-footer,
body.dir-rtl   .card-footer           { flex-direction: row-reverse; }

/* =====================================================
   23.5  PAGE PRODUIT
   ===================================================== */
html[dir="rtl"] .product-layout,
html[data-dir="rtl"] .product-layout,
body.lang-ar   .product-layout,
body.dir-rtl   .product-layout        { direction: rtl; }

html[dir="rtl"] .buybox,
html[data-dir="rtl"] .buybox,
body.lang-ar   .buybox,
body.dir-rtl   .buybox                { text-align: right; }

html[dir="rtl"] .breadcrumb,
html[data-dir="rtl"] .breadcrumb,
body.lang-ar   .breadcrumb,
body.dir-rtl   .breadcrumb,
html[dir="rtl"] .sb-breadcrumb,
html[data-dir="rtl"] .sb-breadcrumb,
body.lang-ar   .sb-breadcrumb,
body.dir-rtl   .sb-breadcrumb         { flex-direction: row-reverse; }

/* =====================================================
   23.6  BLOG
   ===================================================== */
html[dir="rtl"] .sb-meta,
html[data-dir="rtl"] .sb-meta,
body.lang-ar   .sb-meta,
body.dir-rtl   .sb-meta,
html[dir="rtl"] .sb-author-row,
html[data-dir="rtl"] .sb-author-row,
body.lang-ar   .sb-author-row,
body.dir-rtl   .sb-author-row         { flex-direction: row-reverse; }

html[dir="rtl"] .sb-author-share,
html[data-dir="rtl"] .sb-author-share,
body.lang-ar   .sb-author-share,
body.dir-rtl   .sb-author-share       {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

html[dir="rtl"] .sb-layout,
html[data-dir="rtl"] .sb-layout,
body.lang-ar   .sb-layout,
body.dir-rtl   .sb-layout             { direction: rtl; }

/* TOC RTL */
html[dir="rtl"] .sb-toc-nav li a,
html[data-dir="rtl"] .sb-toc-nav li a,
body.lang-ar   .sb-toc-nav li a,
body.dir-rtl   .sb-toc-nav li a {
  border-left: none;
  border-right: 2px solid transparent;
  padding-left: 0;
  padding-right: 10px;
}
html[dir="rtl"] .sb-toc-nav li a:hover,
html[data-dir="rtl"] .sb-toc-nav li a:hover,
body.lang-ar   .sb-toc-nav li a:hover,
body.dir-rtl   .sb-toc-nav li a:hover {
  border-right-color: var(--green-primary);
  padding-right: 12px;
  padding-left: 0;
}
html[dir="rtl"] .sb-toc-nav li.toc-sub a,
html[data-dir="rtl"] .sb-toc-nav li.toc-sub a,
body.lang-ar   .sb-toc-nav li.toc-sub a,
body.dir-rtl   .sb-toc-nav li.toc-sub a {
  padding-left: 0;
  padding-right: 24px;
}

html[dir="rtl"] .ba-cats-scroll,
html[data-dir="rtl"] .ba-cats-scroll,
body.lang-ar   .ba-cats-scroll,
body.dir-rtl   .ba-cats-scroll        { direction: rtl; }

html[dir="rtl"] .ba-card-link,
html[data-dir="rtl"] .ba-card-link,
body.lang-ar   .ba-card-link,
body.dir-rtl   .ba-card-link          { flex-direction: row-reverse; }

html[dir="rtl"] .sb-sidebar-cat-link,
html[data-dir="rtl"] .sb-sidebar-cat-link,
body.lang-ar   .sb-sidebar-cat-link,
body.dir-rtl   .sb-sidebar-cat-link   { flex-direction: row-reverse; }

html[dir="rtl"] .sb-sidebar-cat-count,
html[data-dir="rtl"] .sb-sidebar-cat-count,
body.lang-ar   .sb-sidebar-cat-count,
body.dir-rtl   .sb-sidebar-cat-count  {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

/* =====================================================
   23.7  CART / CHECKOUT
   ===================================================== */
html[dir="rtl"] .cart-layout,
html[data-dir="rtl"] .cart-layout,
body.lang-ar   .cart-layout,
body.dir-rtl   .cart-layout,
html[dir="rtl"] .checkout-layout,
html[data-dir="rtl"] .checkout-layout,
body.lang-ar   .checkout-layout,
body.dir-rtl   .checkout-layout       { direction: rtl; }

/* =====================================================
   23.8  FOOTER
   ===================================================== */
html[dir="rtl"] .site-footer,
html[data-dir="rtl"] .site-footer,
body.lang-ar   .site-footer,
body.dir-rtl   .site-footer,
html[dir="rtl"] .footer-inner,
html[data-dir="rtl"] .footer-inner,
body.lang-ar   .footer-inner,
body.dir-rtl   .footer-inner,
html[dir="rtl"] .footer-grid,
html[data-dir="rtl"] .footer-grid,
body.lang-ar   .footer-grid,
body.dir-rtl   .footer-grid           { direction: rtl; }

/* Phone/email/address: keep LTR so numbers don't reverse */
html[dir="rtl"] .footer-contact li,
html[data-dir="rtl"] .footer-contact li,
body.lang-ar   .footer-contact li,
body.dir-rtl   .footer-contact li     { direction: ltr; justify-content: flex-end; }

/* =====================================================
   23.9  ABOUT + WHATSAPP
   ===================================================== */
html[dir="rtl"] .ap-story-grid,
html[data-dir="rtl"] .ap-story-grid,
body.lang-ar   .ap-story-grid,
body.dir-rtl   .ap-story-grid,
html[dir="rtl"] .ap-founder-inner,
html[data-dir="rtl"] .ap-founder-inner,
body.lang-ar   .ap-founder-inner,
body.dir-rtl   .ap-founder-inner      { direction: rtl; }

/* WhatsApp floating button : right → left en RTL */
html[dir="rtl"] .whatsapp-float,
html[data-dir="rtl"] .whatsapp-float,
body.lang-ar   .whatsapp-float,
body.dir-rtl   .whatsapp-float        {
  right: auto;
  left: 28px;
}
@media (max-width: 480px) {
  html[dir="rtl"] .whatsapp-float,
  html[data-dir="rtl"] .whatsapp-float,
  body.lang-ar   .whatsapp-float,
  body.dir-rtl   .whatsapp-float      {
    right: auto;
    left: 20px;
  }
}

/* =====================================================
   23.10  BOUTONS / NEWSLETTER
   ===================================================== */
html[dir="rtl"] .btn,
html[data-dir="rtl"] .btn,
body.lang-ar   .btn,
body.dir-rtl   .btn                   { letter-spacing: 0; }

html[dir="rtl"] .ba-nl-input-wrap,
html[data-dir="rtl"] .ba-nl-input-wrap,
body.lang-ar   .ba-nl-input-wrap,
body.dir-rtl   .ba-nl-input-wrap      { flex-direction: row-reverse; }

html[dir="rtl"] .ba-nl-btn,
html[data-dir="rtl"] .ba-nl-btn,
body.lang-ar   .ba-nl-btn,
body.dir-rtl   .ba-nl-btn             { border-radius: 50px 0 0 50px; }

/* Newsletter form (footer) */
html[dir="rtl"] .newsletter-form,
html[data-dir="rtl"] .newsletter-form,
body.lang-ar   .newsletter-form,
body.dir-rtl   .newsletter-form       { direction: rtl; }

/* =====================================================
   23.11  POLICES ARABES
   ===================================================== */
html[lang="ar"] body,
body.lang-ar {
  font-family: 'Noto Sans Arabic', 'DM Sans', sans-serif;
}

html[lang="ar"] h1, html[lang="ar"] h2,
html[lang="ar"] h3, html[lang="ar"] h4,
body.lang-ar h1, body.lang-ar h2,
body.lang-ar h3, body.lang-ar h4 {
  font-family: 'Noto Serif Arabic', 'Playfair Display', serif;
}

/* =====================================================
   23.12  ICÔNES DIRECTIONNELLES (chevrons, arrows)
   --------------------------------------------------
   Les icônes pointant vers une direction (chevron-right,
   arrow-left, etc.) doivent être inversées en RTL.
   On cible les SVG dans les composants directionnels.
   ===================================================== */

/* Breadcrumb separator chevrons : inversés */
html[dir="rtl"] .breadcrumb svg,
html[data-dir="rtl"] .breadcrumb svg,
body.lang-ar   .breadcrumb svg,
body.dir-rtl   .breadcrumb svg,
html[dir="rtl"] .sb-breadcrumb svg,
html[data-dir="rtl"] .sb-breadcrumb svg,
body.lang-ar   .sb-breadcrumb svg,
body.dir-rtl   .sb-breadcrumb svg     { transform: scaleX(-1); }

/* Btn primary avec chevron / arrow */
html[dir="rtl"] .btn-hero-primary svg,
html[data-dir="rtl"] .btn-hero-primary svg,
body.lang-ar   .btn-hero-primary svg,
body.dir-rtl   .btn-hero-primary svg,
html[dir="rtl"] .btn-hero-outline svg,
html[data-dir="rtl"] .btn-hero-outline svg,
body.lang-ar   .btn-hero-outline svg,
body.dir-rtl   .btn-hero-outline svg  { transform: scaleX(-1); }

/* Le chevron du lang switcher reste vertical (pointe en bas) — pas inversé */
html[dir="rtl"] .lang-chevron,
html[data-dir="rtl"] .lang-chevron,
body.lang-ar   .lang-chevron          { transform: none; }
html[dir="rtl"] .lang-switcher-btn.open .lang-chevron,
html[data-dir="rtl"] .lang-switcher-btn.open .lang-chevron,
body.lang-ar   .lang-switcher-btn.open .lang-chevron {
  transform: rotate(180deg);
}

/* Le check SVG du lang-option : pas de flip (c'est un tick symétrique) */
html[dir="rtl"] .lang-option svg,
html[data-dir="rtl"] .lang-option svg,
body.lang-ar   .lang-option svg       { transform: none; }

/* ================================================================
   24. MOBILE HEADER — v5.0 Premium 3-zone grid
   ----------------------------------------------------------------
   Inspired by Shopify / FACES / Marionnaud mobile navs:
     – clear hamburger ▌ left
     – centered logo
     – cart + lang pill aligned right
     – generous tap targets, balanced spacing, no clipping

   DOM (header.php):
     1. <a.site-logo>
     2. <nav.main-nav>           (hidden until .nav-open on mobile)
     3. <button.mobile-menu-btn>
     4. <div.header-actions>     (wishlist+account hidden on mobile,
                                  cart + lang switcher visible)

   Grid layout (≤768px):
     ┌──────────┬───────────────┬──────────┐
     │ start    │    center     │   end    │
     │ ☰ menu   │    [LOGO]     │ 🛒 🇫🇷   │
     └──────────┴───────────────┴──────────┘
     Side columns = minmax(0,1fr) — symmetric.
     Center column = auto — logo intrinsic width.

   RTL: a single `direction: rtl` on `.header-inner` auto-mirrors
   `grid-template-areas`. Hamburger flips to the right (natural
   in Arabic), cart+lang flip to the left. No reverse hacks.
   ================================================================ */

@media (max-width: 768px) {

  /* ── Announcement bar: compact, single-line ─────────────────── */
  .announcement-bar {
    padding: 7px 14px;
    font-size: .72rem;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ── Header shell: solid white, subtle shadow ───────────────── */
  /* IMPORTANT: NO backdrop-filter / filter / transform on .site-header
     or any ancestor of .main-nav on mobile — they create a new
     containing block for position:fixed descendants and break the
     slide-out menu overlay (it would anchor to the header instead
     of the viewport, collapsing to ~0 height). */
  .site-header {
    background: #fff;
    box-shadow: 0 1px 0 var(--border);
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 12px rgba(47,62,47,.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* ── Container: edge-to-edge with 14px internal padding ─────── */
  .site-header .container {
    padding-inline-start: 0;
    padding-inline-end: 0;
    max-width: 100%;
  }

  /* ── Header inner: 3-zone grid ──────────────────────────────── */
  .header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    grid-template-areas: "start center end" !important;
    align-items: center;
    column-gap: 12px;
    height: 60px !important;
    padding: 0 16px;
    position: static !important;
    background: transparent;
    flex-wrap: unset;
  }

  /* Zone assignments */
  .header-inner > .site-logo       { grid-area: center !important; justify-self: center; }
  .header-inner > .mobile-menu-btn { grid-area: start  !important; justify-self: start;  }
  .header-inner > .header-actions  { grid-area: end    !important; justify-self: end;    }
  .header-inner > .main-nav        { grid-area: center !important; }

  /* ── Hamburger button ───────────────────────────────────────── */
  .mobile-menu-btn {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Hide lang switcher from right actions on mobile (it moves to nav footer) */
  .header-actions .lang-switcher { display: none; }

  /* ── Logo: height-locked, never squashed ────────────────────── */
  .site-logo {
    display: flex !important;
    align-items: center;
    flex: none !important;
    width: auto !important;
    max-width: 160px !important;
    overflow: visible;
    text-decoration: none;
  }
  .site-logo-img {
    display: block !important;
    width: auto !important;
    height: 36px !important;
    max-height: 36px !important;
    max-width: 160px !important;
    object-fit: contain;
  }

  /* ── Right-side actions: tight row, cart + lang only ────────── */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: transparent;
  }

  /* Hide account icon on mobile; wishlist stays visible in navbar */
  .header-icon-btn { display: none; }
  .header-icon-btn.wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--beige-light, #f5f5f0);
    border: 1.5px solid var(--border);
    color: var(--green-dark);
    flex-shrink: 0;
    transition: background .2s ease, border-color .2s ease;
  }
  .header-icon-btn.wl-btn:hover { background: #e8ede7; border-color: var(--green-primary); }
  .header-icon-btn.wl-btn svg   { width: 18px; height: 18px; }
  .header-icon-btn.wl-btn .wl-header-badge {
    position: absolute;
    top: -3px;
    inset-inline-end: -3px;
    inset-inline-start: auto;
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: .62rem;
    font-weight: 700;
    background: #e74c3c;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  /* ── Cart: solid green circle, premium feel ─────────────────── */
  .cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    font-size: 0;
    flex-shrink: 0;
    background: var(--green-primary);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(74,103,65,.2);
    overflow: visible;
    transition: background .2s ease, transform .2s ease;
  }
  .cart-btn:hover,
  .cart-btn:active   { background: var(--green-dark); transform: none; box-shadow: 0 2px 8px rgba(74,103,65,.28); }
  .cart-btn svg      { width: 19px; height: 19px; flex-shrink: 0; color: #fff; display: block; }

  .cart-btn .cart-count {
    position: absolute;
    top: -3px;
    inset-inline-end: -3px;
    inset-inline-start: auto;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    padding: 0;
    font-size: .62rem;
    font-weight: 700;
    background: #e74c3c;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: none;       /* disable desktop pulse on mobile */
  }

  /* ── Language switcher: compact pill (flag + chevron) ───────── */
  .lang-switcher {
    flex-shrink: 0;
  }
  .lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    height: 36px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--green-dark);
    transition: background .2s ease, border-color .2s ease;
  }
  .lang-switcher-btn:hover,
  .lang-switcher-btn.open {
    background: var(--beige-light);
    border-color: var(--green-primary);
    color: var(--green-dark);
    transform: none;
    box-shadow: none;
  }
  .lang-code    { display: none; }
  .lang-flag    { font-size: 1.05rem; line-height: 1; }
  .lang-chevron { width: 11px; height: 11px; opacity: .55; flex-shrink: 0; }

  /* Dropdown anchored to the pill's trailing edge */
  .lang-dropdown {
    top: calc(100% + 6px);
    inset-inline-end: 0;
    inset-inline-start: auto;
    min-width: 160px;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 6px 24px rgba(47,62,47,.14);
  }
  .lang-option {
    padding: 10px 14px;
    font-size: .88rem;
    border-radius: 8px;
    gap: 10px;
  }

  /* ── Slide-out menu (full-width overlay) ──────────────────────
     AUTHORITATIVE rules. Self-contained — does not depend on cascade
     from earlier media blocks.

     Architecture:
     - .main-nav lives in grid-area: center (next to logo). When closed,
       it must be invisible AND not consume click/space. We set
       `visibility: hidden` rather than `display: none` so we don't
       fight specificity on `.nav-open`.
     - .nav-open promotes it to a fixed full-viewport overlay below
       the header, with items rendering as a vertical list.

     IMPORTANT: NO `transform`, `filter`, or `backdrop-filter` on any
     ancestor — those create a containing block for position:fixed
     and would anchor this overlay to the header (collapsing height). */
  /* Closed: JS returns nav to header DOM; hide it there */
  .main-nav:not(.nav-open) {
    display: none;
  }

  /* Open: JS teleports nav to <body> — no ancestor can clip it */
  .main-nav.nav-open {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 60px);
    background: var(--white);
    z-index: 99999;
    padding: 56px 0 40px;
    margin: 0;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    animation: navSlideDown .25s ease;
  }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }

  /* ── Nav close button (X inside overlay) ──────────────────── */
  .nav-close-btn {
    display: none; /* hidden until JS moves it into nav overlay */
  }
  .main-nav.nav-open .nav-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--beige-light, #f5f5f0);
    border: none;
    border-radius: 50%;
    color: var(--green-dark);
    cursor: pointer;
    transition: background .2s, color .2s;
    z-index: 1;
    flex-shrink: 0;
  }
  .main-nav.nav-open .nav-close-btn:hover {
    background: var(--border);
    color: var(--green-primary);
  }
  /* RTL: flip to left side */
  html[dir="rtl"] .main-nav.nav-open .nav-close-btn,
  body.lang-ar    .main-nav.nav-open .nav-close-btn {
    right: auto;
    left: 16px;
  }

  .main-nav.nav-open ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .main-nav.nav-open ul li {
    width: 100%;
    display: block;
  }
  .main-nav.nav-open ul a {
    display: block;
    width: 100%;
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    color: var(--green-dark);
    text-decoration: none;
    white-space: normal;
  }
  /* Neutralize the desktop animated underline on mobile overlay */
  .main-nav.nav-open ul a::after { content: none; }
  .main-nav.nav-open ul a:hover,
  .main-nav.nav-open ul a.active {
    background: #f0f4ef;
    color: var(--green-primary);
  }
  .main-nav.nav-open ul li:last-child a { border-bottom: none; }

  /* Mobile-only nav items (wishlist, account) */
  .nav-mobile-only { display: block; }
  .nav-icon-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
  }
  .nav-icon-link svg { flex-shrink: 0; opacity: .75; }

  /* Nav footer: language switcher toggle */
  .nav-mobile-footer {
    display: block;
    padding: 14px 20px 16px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .nav-lang-row {
    display: flex;
    align-items: center;
    background: var(--beige-light, #f5f5f0);
    border-radius: 14px;
    padding: 4px;
    gap: 0;
  }
  .nav-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-muted, #7a8c7a);
    text-decoration: none;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
  }
  .nav-lang-btn .nav-lang-flag { font-size: 1.1rem; line-height: 1; }
  .nav-lang-btn.active {
    background: #fff;
    color: var(--green-dark);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(47,62,47,.1);
  }
  .nav-lang-btn:not(.active):hover { color: var(--green-dark); }
}

/* ── Mid-mobile: tighten gap a touch ─────────────────────────── */
@media (max-width: 480px) {
  .header-inner       { column-gap: 8px; padding: 0 12px; height: 58px; }
  .site-logo-img      { height: 34px; }
  .header-actions     { gap: 8px; }
  .main-nav.nav-open  { top: 58px; max-height: calc(100vh - 58px); }
}

/* ── Small phones (≤380px): compact but balanced ─────────────── */
@media (max-width: 380px) {
  .header-inner       { column-gap: 6px; padding: 0 10px; height: 56px; }
  .site-logo-img      { height: 32px; }
  .cart-btn           { width: 38px; height: 38px; min-width: 38px; }
  .cart-btn svg       { width: 17px; height: 17px; }
  .lang-switcher-btn  { height: 34px; padding: 0 8px; gap: 4px; }
  .lang-flag          { font-size: 1rem; }
  .lang-chevron       { width: 10px; height: 10px; }
  .mobile-menu-btn    { width: 22px; height: 15px; }
  .header-actions     { gap: 6px; }
  .main-nav.nav-open  { top: 56px; max-height: calc(100vh - 56px); }
}

/* ── Very tiny phones (≤340px iPhone SE 1st gen): drop lang pill border ── */
@media (max-width: 340px) {
  .header-inner       { column-gap: 4px; padding: 0 8px; }
  .lang-switcher-btn  { border: none; padding: 0 4px; background: transparent; }
  .lang-switcher-btn:hover,
  .lang-switcher-btn.open { background: transparent; border: none; }
}

/* ── RTL on mobile ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Force RTL flow on the grid container — CSS Grid auto-mirrors
     `grid-template-areas` so hamburger lands on the right
     (natural Arabic reading) and cart+lang on the left. */
  html[dir="rtl"] .header-inner,
  html[data-dir="rtl"] .header-inner,
  body.lang-ar       .header-inner,
  body.dir-rtl       .header-inner { direction: rtl; }

  /* Neutralize legacy section-23 row-reverse on inner flex containers
     — `direction: rtl` already mirrors them, double-flipping breaks order. */
  html[dir="rtl"] .header-actions,
  html[data-dir="rtl"] .header-actions,
  body.lang-ar       .header-actions,
  body.dir-rtl       .header-actions   { flex-direction: row; }
  html[dir="rtl"] .cart-btn,
  html[data-dir="rtl"] .cart-btn,
  body.lang-ar       .cart-btn,
  body.dir-rtl       .cart-btn         { flex-direction: row; }
  html[dir="rtl"] .lang-switcher-btn,
  html[data-dir="rtl"] .lang-switcher-btn,
  body.lang-ar       .lang-switcher-btn,
  body.dir-rtl       .lang-switcher-btn { flex-direction: row; }

  /* Slide-out menu: right-aligned in AR */
  html[dir="rtl"] .main-nav.nav-open,
  body.lang-ar    .main-nav.nav-open   { direction: rtl; }
  html[dir="rtl"] .main-nav.nav-open ul a,
  body.lang-ar    .main-nav.nav-open ul a { text-align: right; }
}

/* =====================================================================
   MOBILE HERO v2 — Premium Refresh
   Goal: bottle as visual focus, cinematic depth, glass text container,
   gradient CTAs, floating particles, grain texture, fade-in entrance.
   ===================================================================== */

/* Layers shared across breakpoints (rendered, positioned per breakpoint) */
.hero-bottle-glow,
.hero-grain,
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* By default (desktop), keep the new layers visually quiet.
   They become protagonists only on mobile. */
.hero-bottle-glow { opacity: 0; }
.hero-grain       { opacity: 0; }
.hero-particles   { opacity: 0; }

/* Grain texture — tiny SVG noise, monochrome, very low opacity */
.hero-grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.22  0 0 0 0 0.14  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

/* Bottle spotlight: soft radial light to "lift" the bottle out of the bg.
   Sits behind the centered bottle in the mobile hero. */
.hero-bottle-glow {
  background:
    radial-gradient(
      ellipse 55% 35% at 50% 38%,
      rgba(255, 235, 195, .35) 0%,
      rgba(255, 235, 195, .12) 45%,
      transparent 75%
    );
  mix-blend-mode: screen;
}

/* Floating particles ---------------------------------------------------- */
.hero-particles .hp-leaf,
.hero-particles .hp-dot {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform, opacity;
}
.hero-particles .hp-leaf {
  width: 10px;
  height: 18px;
  border-radius: 60% 40% 60% 40% / 50% 50% 50% 50%;
  background: linear-gradient(135deg, rgba(74,103,65,.55), rgba(45,74,45,.18));
  filter: blur(.4px);
}
.hero-particles .hp-dot {
  width: 4px;
  height: 4px;
  background: rgba(139, 105, 20, .55); /* subtle gold */
  box-shadow: 0 0 6px rgba(139,105,20,.45);
}
.hero-particles .hp-leaf--1 { top: 18%; left: 12%; animation: hpFloatA 9s ease-in-out infinite; }
.hero-particles .hp-leaf--2 { top: 38%; right: 14%; animation: hpFloatB 11s ease-in-out infinite; }
.hero-particles .hp-leaf--3 { bottom: 22%; left: 22%; animation: hpFloatC 13s ease-in-out infinite; }
.hero-particles .hp-dot--1  { top: 28%; left: 30%; animation: hpFloatB 7s  ease-in-out infinite; }
.hero-particles .hp-dot--2  { top: 60%; right: 24%; animation: hpFloatA 10s ease-in-out infinite; }
.hero-particles .hp-dot--3  { bottom: 32%; right: 38%; animation: hpFloatC 8s  ease-in-out infinite; }

@keyframes hpFloatA {
  0%, 100% { transform: translate3d(0, 0, 0)      rotate(0deg);  opacity: .55; }
  50%      { transform: translate3d(8px, -14px,0) rotate(12deg); opacity: .9; }
}
@keyframes hpFloatB {
  0%, 100% { transform: translate3d(0, 0, 0)        rotate(0deg);   opacity: .5; }
  50%      { transform: translate3d(-10px, -18px,0) rotate(-15deg); opacity: .85; }
}
@keyframes hpFloatC {
  0%, 100% { transform: translate3d(0, 0, 0)       rotate(0deg);  opacity: .45; }
  50%      { transform: translate3d(6px, -10px, 0) rotate(8deg);  opacity: .8; }
}

/* Entrance animation for the whole hero */
@keyframes heroSectionFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ----------------------------------------------------------------------
   ≤ 768px — Mobile premium hero
   ---------------------------------------------------------------------- */
@media (max-width: 768px) {

  .hero {
    min-height: 92vh;
    background: #1f2a1f; /* deep herbal — bottle reads against this if image fails */
    animation: heroSectionFadeIn .9s ease-out both;
  }

  /* Dedicated mobile portrait image (hero-pic-responsive.png) loaded via
     <picture> source. Bottle is already centered — just cover + slight warm-up. */
  .hero-bg-wrap {
    inset: 0 !important;          /* override base parallax -10% 0 */
    height: 100%;
  }
  .hero-bg-wrap picture {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero-bg-img {
    object-fit: cover;
    object-position: center top;
    filter: contrast(1.06) saturate(1.08) brightness(1.02);
    transform: scale(1.02);
    transform-origin: center top;
    transition: transform 1.2s cubic-bezier(.22,1,.36,1);
  }

  /* Botanical SVG: hide on mobile to reduce visual noise */
  .hero-botanical { display: none; }

  /* Overlay: radial dark halo at TOP (behind title/subtitle) + linear fade at BOTTOM
     (behind buttons), crystal clear MIDDLE so the bottle pops. */
  .hero-overlay {
    background:
      radial-gradient(
        ellipse 90% 38% at 50% 0%,
        rgba(20, 30, 20, .85) 0%,
        rgba(20, 30, 20, .55) 35%,
        rgba(20, 30, 20, .22) 65%,
        rgba(20, 30, 20, 0)   100%
      ),
      linear-gradient(
        to bottom,
        rgba(20, 30, 20, 0)   62%,
        rgba(20, 30, 20, .25) 75%,
        rgba(20, 30, 20, .55) 88%,
        rgba(20, 30, 20, .80) 100%
      );
  }

  /* Activate the cinematic layers */
  .hero-bottle-glow { opacity: 1; }
  .hero-grain       { opacity: .35; z-index: 4; }
  .hero-particles   { opacity: 1; z-index: 3; }

  /* Inner: title at TOP, buttons at BOTTOM — bottle in the middle, fully visible.
     No glass card, content sits directly on the image with strong text-shadows. */
  .hero-inner {
    padding: 24px 20px 32px;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    z-index: 5;
    gap: 16px;
  }

  /* Top content zone — title + subtitle directly on the image */
  .hero-content {
    max-width: 100%;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-align: center;
  }
  .hero-content::before { content: none; }

  /* Typography — elegant, premium, readable over image via text-shadow */
  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.85rem, 7.4vw, 2.35rem);
    line-height: 1.22;
    letter-spacing: -.01em;
    color: #f5f0e8;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow:
      0 2px 14px rgba(20, 30, 20, .55),
      0 1px 3px  rgba(20, 30, 20, .65);
  }
  .hero-title .hero-line:nth-child(2) span,
  .hero-title .hero-line:last-child span {
    color: #fff;
    font-style: normal;
  }
  .hero-title .hero-line:last-child span {
    font-style: italic;
    color: #e8d9a8; /* subtle warm gold accent */
  }

  .hero-subtitle {
    font-size: .94rem;
    line-height: 1.6;
    color: rgba(245, 240, 232, .92);
    max-width: 100%;
    margin-bottom: 0;
    opacity: 0;
    animation: heroFadeIn .8s cubic-bezier(.22,1,.36,1) .65s both;
    text-shadow:
      0 2px 10px rgba(20, 30, 20, .65),
      0 1px 2px  rgba(20, 30, 20, .55);
  }

  /* Action row — pinned to bottom, on image */
  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-top: auto;
  }

  /* Primary CTA — luxurious gradient pill with soft shadow */
  .btn-hero-primary {
    width: 100%;
    justify-content: center;
    padding: 16px 22px;
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: .03em;
    border-radius: 999px;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #3a5e3a 0%, #2D4A2D 55%, #243d24 100%);
    box-shadow:
      0 10px 24px -8px rgba(45, 74, 45, .55),
      0 2px 6px  -2px rgba(45, 74, 45, .35),
      inset 0 1px 0 rgba(255, 255, 255, .18);
    position: relative;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.22,1,.36,1),
                box-shadow .35s ease;
  }
  .btn-hero-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
    transform: translateX(-120%);
    transition: transform .9s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
  }
  .btn-hero-primary:active {
    transform: translateY(1px) scale(.99);
  }
  .btn-hero-primary:hover::after,
  .btn-hero-primary:focus-visible::after {
    transform: translateX(120%);
  }

  /* Secondary CTA — minimal glass, white text on image */
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .02em;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(255, 255, 255, .75);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    text-shadow: 0 1px 4px rgba(20, 30, 20, .5);
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
  }
  .btn-hero-outline:hover,
  .btn-hero-outline:focus-visible {
    background: rgba(255, 255, 255, .18);
    border-color: #ffffff;
    color: #ffffff;
  }
  .btn-hero-outline:active {
    transform: translateY(1px) scale(.99);
  }

  /* Reduce-motion: kill particle / shimmer animations */
  @media (prefers-reduced-motion: reduce) {
    .hero,
    .hero-bg-img,
    .hero-particles .hp-leaf,
    .hero-particles .hp-dot,
    .btn-hero-primary::after {
      animation: none !important;
      transition: none !important;
    }
  }
}

/* ----------------------------------------------------------------------
   ≤ 480px — small phones tightening
   ---------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-inner       { padding: 20px 16px 28px; }
  .hero-title       { font-size: clamp(1.7rem, 7.6vw, 2.1rem); margin-bottom: 10px; }
  .hero-subtitle    { font-size: .9rem; }
  .btn-hero-primary { padding: 15px 18px; font-size: .95rem; }
  .btn-hero-outline { padding: 13px 18px; font-size: .9rem; }
}

/* ----------------------------------------------------------------------
   RTL — do NOT mirror the dedicated mobile image (it's already centered
   and the bottle reads correctly in both languages).
   Also neutralize the legacy AR beige overlay (sec ~2953) on mobile.
   ---------------------------------------------------------------------- */
@media (max-width: 768px) {
  html[dir="rtl"] .hero-bg-img,
  html[data-dir="rtl"] .hero-bg-img,
  body.lang-ar    .hero-bg-img,
  body.dir-rtl    .hero-bg-img {
    object-position: center top;
    transform: scale(1.02);     /* no scaleX flip on mobile */
  }

  /* Kill the legacy AR beige fade — radial top halo + bottom fade on mobile AR. */
  html[dir="rtl"] .hero-overlay,
  html[data-dir="rtl"] .hero-overlay,
  body.lang-ar    .hero-overlay,
  body.dir-rtl    .hero-overlay {
    background:
      radial-gradient(
        ellipse 90% 38% at 50% 0%,
        rgba(20, 30, 20, .85) 0%,
        rgba(20, 30, 20, .55) 35%,
        rgba(20, 30, 20, .22) 65%,
        rgba(20, 30, 20, 0)   100%
      ),
      linear-gradient(
        to bottom,
        rgba(20, 30, 20, 0)   62%,
        rgba(20, 30, 20, .25) 75%,
        rgba(20, 30, 20, .55) 88%,
        rgba(20, 30, 20, .80) 100%
      );
  }

  html[dir="rtl"] .hero-title,
  body.lang-ar    .hero-title,
  body.dir-rtl    .hero-title  { text-align: center; }
  html[dir="rtl"] .hero-subtitle,
  body.lang-ar    .hero-subtitle,
  body.dir-rtl    .hero-subtitle { text-align: center; }
}

/* =====================================================================
   TRUST BAR v2 — Premium Refresh
   Pill-style cards with soft elevation, icon badges, subtle hover lift.
   Desktop: 4-up grid. Mobile: 2-up grid with compact cards.
   ===================================================================== */

.trust-bar {
  background: linear-gradient(180deg, #faf8f3 0%, #f5f0e8 100%);
  border-top: 1px solid rgba(74, 103, 65, .08);
  border-bottom: 1px solid rgba(74, 103, 65, .12);
  padding: 36px 0;
  position: relative;
}

/* Subtle inner divider line at the top — luxury touch */
.trust-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 103, 65, .35), transparent);
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Pill card — soft ivory surface, sage border, layered shadow */
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: #ffffff;
  border: 1px solid rgba(74, 103, 65, .12);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 6px 18px -10px rgba(45, 74, 45, .18),
    0 2px 6px  -3px rgba(45, 74, 45, .08);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1),
              box-shadow .35s ease,
              border-color .35s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle herbal accent line on the leading edge (becomes top in stacked mode) */
.trust-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #4a6741, #2D4A2D);
  opacity: 0;
  transition: opacity .35s ease;
}

.trust-item:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 103, 65, .28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 14px 30px -12px rgba(45, 74, 45, .28),
    0 4px 10px  -4px rgba(45, 74, 45, .12);
}
.trust-item:hover::before { opacity: 1; }

/* Icon badge — circular soft-green chip */
.trust-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  flex-shrink: 0;
  color: #2D4A2D;
  background:
    radial-gradient(circle at 30% 25%, #ffffff 0%, #f5f0e8 60%, #ece5d4 100%);
  border: 1px solid rgba(74, 103, 65, .15);
  border-radius: 50%;
  box-shadow:
    0 1px 0 #fff inset,
    0 2px 6px -3px rgba(45, 74, 45, .25);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1),
              background .35s ease,
              color .35s ease;
}

.trust-item:hover .trust-icon {
  transform: scale(1.06) rotate(-2deg);
  background:
    radial-gradient(circle at 30% 25%, #4a6741 0%, #2D4A2D 100%);
  color: #ffffff;
  border-color: rgba(45, 74, 45, .4);
}

.trust-text { min-width: 0; }
.trust-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: .98rem;
  font-weight: 600;
  color: #1f2a1f;
  letter-spacing: -.005em;
  margin-bottom: 2px;
}
.trust-text span {
  display: block;
  font-size: .8rem;
  color: #6b7c6b;
  line-height: 1.45;
}

/* ----------------------------------------------------------------------
   Tablet — 2x2 grid
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
  .trust-bar       { padding: 32px 0; }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ----------------------------------------------------------------------
   Mobile — keep 2-up, tighter pills
   ---------------------------------------------------------------------- */
@media (max-width: 600px) {
  .trust-bar       { padding: 28px 0; }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 14px; }

  .trust-item      {
    padding: 14px 12px;
    gap: 10px;
    border-radius: 14px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .trust-item::before {
    /* Becomes top accent line on stacked layout */
    inset-inline-start: auto;
    inset-inline-end: auto;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: auto;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a6741, transparent);
  }
  .trust-icon      { width: 42px; height: 42px; padding: 9px; }
  .trust-text strong { font-size: .85rem; }
  .trust-text span   { font-size: .72rem; }
}

/* ----------------------------------------------------------------------
   Very small phones — single column, horizontal pills
   ---------------------------------------------------------------------- */
@media (max-width: 380px) {
  .trust-bar-inner { grid-template-columns: 1fr; gap: 8px; }
  .trust-item      {
    flex-direction: row;
    text-align: start;
    padding: 12px 14px;
  }
  .trust-item::before {
    /* Back to leading-edge line */
    left: 0;
    transform: none;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, #4a6741, #2D4A2D);
  }
}

/* RTL — flip accent line edge (already handled via inset-inline-start) */
html[dir="rtl"] .trust-text strong,
body.lang-ar    .trust-text strong { letter-spacing: 0; }

/* =====================================================================
   ABOUT SECTION — single hero image (sectionHistoire.png)
   Image sits directly on the green section background, no card frame.
   ===================================================================== */
.about-image-single {
  position: relative;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  aspect-ratio: auto;
  max-height: none;
}

.about-image-single img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}

.about-image-single:hover img {
  transform: scale(1.03);
}

.about-image-single::after { content: none; }

@media (max-width: 900px) {
  .about-image-single img { max-height: 420px; margin-inline: auto; }
}

@media (max-width: 600px) {
  .about-image-single img { max-height: 340px; }
}

/* =====================================================================
   ABOUT — STATS BAR v2 (premium pill cards with icons)
   ===================================================================== */
.ap-stats {
  background: linear-gradient(180deg, #faf8f3 0%, #f5f0e8 100%);
  border-top: 1px solid rgba(74, 103, 65, .08);
  border-bottom: 1px solid rgba(74, 103, 65, .12);
  padding: 48px 0;
  position: relative;
}
.ap-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 103, 65, .35), transparent);
}

.ap-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.ap-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 18px 22px;
  background: #ffffff;
  border: 1px solid rgba(74, 103, 65, .12);
  border-right: 1px solid rgba(74, 103, 65, .12);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 8px 22px -12px rgba(45, 74, 45, .22),
    0 2px 6px  -3px rgba(45, 74, 45, .08);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1),
              box-shadow .35s ease,
              border-color .35s ease;
  overflow: hidden;
}
.ap-stat:last-child { border-right: 1px solid rgba(74, 103, 65, .12); }

.ap-stat::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4a6741, transparent);
  opacity: 0;
  transition: opacity .35s ease, width .35s ease;
}
.ap-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 103, 65, .28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 16px 32px -14px rgba(45, 74, 45, .3),
    0 4px 10px  -4px rgba(45, 74, 45, .12);
}
.ap-stat:hover::after { opacity: 1; width: 60px; }

/* Icon badge */
.ap-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #f5f0e8 60%, #ece5d4 100%);
  border: 1px solid rgba(74, 103, 65, .15);
  color: #2D4A2D;
  box-shadow: 0 1px 0 #fff inset, 0 2px 6px -3px rgba(45, 74, 45, .25);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1),
              background .35s ease,
              color .35s ease,
              border-color .35s ease;
}
.ap-stat-icon svg { width: 22px; height: 22px; }
.ap-stat:hover .ap-stat-icon {
  transform: scale(1.07) rotate(-3deg);
  background: radial-gradient(circle at 30% 25%, #4a6741 0%, #2D4A2D 100%);
  color: #ffffff;
  border-color: rgba(45, 74, 45, .4);
}

/* Number */
.ap-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: #2D4A2D;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.ap-stat strong bdi {
  /* Force LTR for numeric values inside RTL pages — fixes "+000 2" → "+2 000" */
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
}
.ap-stat strong span {
  font-size: 58%;
  color: #8B6914; /* subtle gold accent */
  font-weight: 600;
  margin-inline-start: 2px;
}

/* Label */
.ap-stat-lbl,
.ap-stat > span:last-child {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: #6b7c6b;
  letter-spacing: .01em;
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 900px) {
  .ap-stats        { padding: 40px 0; }
  .ap-stats-grid   { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ap-stat         { padding: 22px 14px 18px; border-right: 1px solid rgba(74, 103, 65, .12); }
}

@media (max-width: 480px) {
  .ap-stats        { padding: 32px 0; }
  .ap-stats-grid   { gap: 10px; padding: 0 14px; }
  .ap-stat         { padding: 18px 10px 14px; border-radius: 14px; }
  .ap-stat-icon    { width: 42px; height: 42px; margin-bottom: 10px; }
  .ap-stat-icon svg{ width: 20px; height: 20px; }
  .ap-stat strong  { font-size: 1.7rem; }
  .ap-stat-lbl,
  .ap-stat > span:last-child { font-size: .76rem; }
}

/* RTL — keep icon centered (default), labels naturally right-align via container */
html[dir="rtl"] .ap-stat strong bdi,
body.lang-ar    .ap-stat strong bdi { direction: ltr; }

/* =====================================================================
   TESTIMONIALS — initial avatar (gradient circle with letter)
   ===================================================================== */
.author-avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0;
  line-height: 1;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .35) inset,
    0 6px 14px -6px rgba(45, 74, 45, .35),
    0 2px 4px  -2px rgba(45, 74, 45, .2);
  user-select: none;
}

/* AR initials read bigger naturally */
html[dir="rtl"] .author-avatar--initial,
body.lang-ar    .author-avatar--initial { font-size: 1.4rem; font-family: inherit; font-weight: 700; }

/* =====================================================================
   TESTIMONIALS — Responsive v2 (proper ladder + premium card refresh)
   ===================================================================== */
.testimonials-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f3 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(74, 103, 65, .12);
  border-radius: 18px;
  padding: 28px 26px;
  position: relative;
  min-width: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 10px 26px -14px rgba(45, 74, 45, .22),
    0 2px 6px  -3px rgba(45, 74, 45, .08);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1),
              box-shadow .35s ease,
              border-color .35s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 103, 65, .25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 18px 36px -14px rgba(45, 74, 45, .3),
    0 4px 10px  -4px rgba(45, 74, 45, .12);
}

.testimonial-text {
  flex: 1;
  font-size: .94rem;
  line-height: 1.72;
  color: #2D4A2D;
  margin-bottom: 14px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.author-info  { min-width: 0; flex: 1; }
.author-info strong,
.author-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Tablet ≤ 980 px : 2-up grid ────────────────────────────────── */
@media (max-width: 980px) {
  .testimonials-section { padding: 64px 0; }
  .testimonials-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
  /* Third card stretches across both columns on tablet */
  .testimonials-grid .testimonial-card:nth-child(3) { grid-column: 1 / -1; max-width: 560px; margin-inline: auto; width: 100%; }
}

/* ── Mobile ≤ 640 px : single column, tightened ─────────────────── */
@media (max-width: 640px) {
  .testimonials-section { padding: 48px 0; }
  .testimonials-grid    { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .testimonials-grid .testimonial-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }
  .testimonial-card     { padding: 22px 20px; border-radius: 16px; }
  .testimonial-stars    { font-size: 1rem; margin-bottom: 12px; }
  .testimonial-text     { font-size: .9rem; line-height: 1.65; margin-bottom: 12px; }
  .testimonial-product  { margin: 10px 0 16px; padding: 7px 12px; font-size: .76rem; max-width: 100%; }
  .testimonial-product .tp-name { white-space: normal; }
  .author-avatar--initial { width: 42px; height: 42px; font-size: 1.05rem; }
  html[dir="rtl"] .author-avatar--initial,
  body.lang-ar    .author-avatar--initial { font-size: 1.25rem; }
}

/* ── Very small phones ≤ 380 px ─────────────────────────────────── */
@media (max-width: 380px) {
  .testimonial-card    { padding: 20px 16px; }
  .testimonial-text    { font-size: .87rem; }
  .author-info strong  { font-size: .85rem; }
  .author-info span    { font-size: .72rem; }
}

/* RTL — keep ellipsis behaviour, anchor avatar correctly */
html[dir="rtl"] .testimonial-author,
body.lang-ar    .testimonial-author { direction: rtl; }
html[dir="rtl"] .testimonial-product,
body.lang-ar    .testimonial-product { direction: rtl; }

/* Product badge inside testimonial card — links the quote to a real product */
.testimonial-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin: 16px 0 20px;
  background: linear-gradient(180deg, #faf8f3 0%, #f0eadf 100%);
  border: 1px solid rgba(74, 103, 65, .18);
  border-radius: 999px;
  color: #2D4A2D;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  max-width: 100%;
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.testimonial-product:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f5f0e8 100%);
  border-color: rgba(74, 103, 65, .4);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(45, 74, 45, .35);
  color: #2D4A2D;
}
.testimonial-product .tp-icon  { font-size: .95rem; flex-shrink: 0; }
.testimonial-product .tp-label { color: #6b7c6b; font-weight: 400; flex-shrink: 0; }
.testimonial-product .tp-name  {
  color: #2D4A2D;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

@media (max-width: 480px) {
  .testimonial-product { font-size: .76rem; padding: 7px 12px; gap: 6px; }
}
