:root {
  --ivory: #fbf7ef;
  --linen: #efe4d6;
  --sand: #d8bf9f;
  --gold: #c9a84c;
  --gold-light: #f0d98e;
  --clay: #a46f48;
  --olive: #617543;
  --olive-deep: #334429;
  --ink: #201c18;
  --muted: #746b60;
  --white: #fffdf9;
  --glass: rgba(255,253,249,0.74);
  --line: rgba(51,68,41,0.16);
  --shadow-soft: 0 18px 48px rgba(80,56,34,0.11);
  --shadow-lift: 0 40px 90px rgba(80,56,34,0.22);
  --glow-gold: 0 0 60px rgba(201,168,76,0.3);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --arabic: "Noto Naskh Arabic", serif;
  --ease: cubic-bezier(0.16,1,0.3,1);
  --ease-back: cubic-bezier(0.34,1.56,0.64,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(240,217,142,0.22), transparent 26rem),
    radial-gradient(circle at 85% 24%, rgba(97,117,67,0.12), transparent 28rem),
    var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  cursor: auto;
}
body[dir="rtl"] { font-family: var(--arabic); text-align: right; }
body.no-scroll { overflow: hidden; }

img, svg { display: block; }
img { max-width: 100%; }
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { cursor: pointer; }
button { border: 0; }
:focus-visible { outline: 3px solid rgba(201,168,76,0.45); outline-offset: 4px; }

.svg-sprite, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ivory);
  transition: opacity 400ms var(--ease), visibility 400ms var(--ease);
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-mark {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--olive-deep);
  font-family: var(--serif);
  font-size: 34px;
  box-shadow: var(--glow-gold);
  animation: pulseGold 1.8s ease-in-out infinite;
}
.page-loader::after {
  position: absolute;
  bottom: calc(50% - 80px);
  color: var(--muted);
  content: "NISECLAT";
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3em;
  animation: fadeInUp 600ms var(--ease) 200ms both;
}

.cursor { display: none; }
.cursor-outer.is-hover {
  width: 60px;
  height: 60px;
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 90;
  display: grid;
  width: min(1320px, calc(100% - 28px));
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 14px auto 0;
  padding: 13px 18px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 999px;
  background: rgba(251,247,239,0.78);
  box-shadow: 0 18px 48px rgba(80,56,34,0.12);
  backdrop-filter: blur(24px);
  transition: padding 300ms var(--ease), background 300ms var(--ease), box-shadow 300ms var(--ease), transform 300ms var(--ease);
}
.site-header.is-compact {
  padding: 8px 14px;
  background: rgba(251,247,239,0.9);
  box-shadow: 0 12px 34px rgba(80,56,34,0.12);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}
.brand-svg {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.brand-word {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.7vw, 38px);
  color: var(--olive-deep);
  font-size: 13px;
  font-weight: 800;
}
.main-nav a {
  position: relative;
  padding: 10px 0;
}
.main-nav a::after {
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
body[dir="rtl"] .main-nav a::after { transform-origin: right; }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.is-active::after { transform: scaleX(1); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,253,249,0.66);
}
.lang-toggle button {
  min-width: 36px;
  height: 34px;
  border-radius: 999px;
  background: transparent;
  color: var(--olive-deep);
  font-size: 12px;
  font-weight: 900;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.lang-toggle button.active {
  background: var(--olive-deep);
  color: white;
}
.icon-button {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,253,249,0.74);
  color: var(--olive-deep);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
.icon-button:hover {
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
  transform: translateY(-1px);
}
.cart-button span {
  position: absolute;
  top: -5px;
  inset-inline-end: -3px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: white;
  font-size: 11px;
  font-weight: 900;
}
.cart-button.is-bouncing span { animation: cartBounce 520ms var(--ease-back); }
.menu-button { display: none; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(32,28,24,0.54);
  backdrop-filter: blur(4px);
}
.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 110;
  display: grid;
  width: min(100%, 520px);
  padding: 32px;
  background: var(--ivory);
  transform: translateX(100%);
  transition: transform 420ms var(--ease);
}
body[dir="rtl"] .mobile-drawer {
  inset: 0 auto 0 0;
  transform: translateX(-100%);
}
.mobile-drawer.is-open,
body[dir="rtl"] .mobile-drawer.is-open { transform: translateX(0); }
.drawer-close {
  justify-self: end;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive-deep);
  color: white;
}
.mobile-drawer nav {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
}
.mobile-drawer a {
  font-family: var(--serif);
  font-size: clamp(38px, 11vw, 56px);
  line-height: 1;
}
/* Sélecteur de langue dans le drawer mobile */
.drawer-lang {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.drawer-lang button {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: transparent;
  transition: border-color 200ms, color 200ms, background 200ms;
}
.drawer-lang button:hover,
.drawer-lang button.active {
  border-color: var(--gold);
  color: var(--olive-deep);
  background: rgba(201,168,76,0.1);
}

.hero-section {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  align-items: center;
  gap: clamp(24px, 4vw, 68px);
  overflow: hidden;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) 48px;
}
.hero-copy { min-width: 0; }
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.premium-badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(201,168,76,0.36);
  border-radius: 999px;
  background: var(--glass);
  color: var(--olive-deep);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}
.premium-badge.maternity {
  border-color: rgba(164,111,72,0.32);
  color: #704629;
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1;
}
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3 { font-family: var(--arabic); line-height: 1.15; }
h1 {
  max-width: 790px;
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
h1 em {
  color: var(--gold);
  font-style: italic;
}
.hero-line {
  width: 72px;
  height: 2px;
  margin: 20px 0 28px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1000ms var(--ease);
  border-radius: 2px;
}
.hero-line.is-drawn {
  transform: scaleX(1);
}
body[dir="rtl"] .hero-line {
  transform-origin: right;
}
h2 { font-size: clamp(40px, 5vw, 72px); }
h3 { font-size: clamp(25px, 2.5vw, 36px); }
.hero-text {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease), transform 180ms var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn svg { transition: transform 300ms var(--ease); }
.btn:hover svg { transform: translateX(4px); }
body[dir="rtl"] .btn svg { transform: rotate(180deg); }
body[dir="rtl"] .btn:hover svg { transform: translateX(-4px) rotate(180deg); }
.btn-primary { background: var(--olive); color: white; box-shadow: 0 18px 38px rgba(97,117,67,0.24); }
.btn-primary:hover { background: var(--gold); color: var(--ink); box-shadow: 0 22px 48px rgba(201,168,76,0.32); }
.btn-secondary { border-color: var(--line); background: rgba(255,253,249,0.56); color: var(--olive-deep); }
.btn-secondary:hover { border-color: var(--gold); box-shadow: var(--glow-gold); background: rgba(255,253,249,0.8); }

/* Ripple wave */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  transform: scale(0);
  animation: ripple 560ms var(--ease) forwards;
  pointer-events: none;
}
.btn-primary .ripple-wave { background: rgba(255,255,255,0.22); }
.filter-btn { position: relative; overflow: hidden; }
.like-btn, .scroll-top { position: relative; overflow: hidden; }
.like-btn .ripple-wave, .scroll-top .ripple-wave { background: rgba(201,168,76,0.25); }
.proof-bar {
  display: grid;
  max-width: 660px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,253,249,0.48);
  overflow: hidden;
}
.proof-bar article {
  padding: 18px;
  border-inline-end: 1px solid var(--line);
}
.proof-bar article:last-child { border-inline-end: 0; }
.proof-bar strong {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  animation: countUp 600ms var(--ease) both;
}
.proof-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.hero-media {
  position: relative;
  min-height: 72dvh;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
}
.hero-media::after,
.popup-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.hero-media img,
.story-media img,
.ritual-media img,
.featured-article img,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.floating-card {
  position: absolute;
  inset-inline-start: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 330px;
  padding: 16px;
  border: 1px solid rgba(255,253,249,0.5);
  border-radius: 8px;
  background: rgba(255,253,249,0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  animation: floatCard 4s ease-in-out infinite;
}
.floating-card svg { color: var(--gold); }
.floating-card svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.floating-card strong, .floating-card span { display: block; }
.floating-card strong { color: var(--olive-deep); }
.floating-card span { color: var(--muted); font-size: 13px; }

.trust-bar {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 32px clamp(18px, 5vw, 72px);
  background: var(--linen);
}
.trust-bar article {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-inline-end: 1px solid rgba(216,191,159,0.9);
  border-radius: 8px;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), background 260ms var(--ease);
}
.trust-bar article:last-child { border-inline-end: 0; }
.trust-bar article:hover {
  background: rgba(255,253,249,0.48);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}
.trust-bar svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
  transition: transform 360ms var(--ease-back), color 260ms var(--ease);
}
.trust-bar article:hover svg {
  color: var(--gold-light);
  transform: rotate(-10deg) scale(1.15);
}
.trust-bar strong { display: block; color: var(--olive-deep); font-weight: 900; }
.trust-bar p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.section { padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 72px); }
.section-heading {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-heading p:not(.eyebrow) {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
}
.section-heading.light h2,
.section-heading.light p { color: white; }
.section-heading.light .eyebrow { color: var(--gold-light); }

.filter-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--olive-deep);
  font-weight: 900;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), transform 200ms var(--ease), box-shadow 220ms var(--ease);
}
.filter-btn:hover {
  border-color: var(--olive);
  background: rgba(97,117,67,0.12);
  color: var(--olive);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(97,117,67,0.14);
}
.filter-btn.active {
  border-color: var(--olive);
  background: var(--olive);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(97,117,67,0.28);
}
.filter-btn:active { transform: scale(0.96) translateY(0); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51,68,41,0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 380ms var(--ease), box-shadow 380ms var(--ease), border-color 380ms var(--ease);
}
.product-card:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow-lift);
  transform: translateY(-8px);
}
.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 6px 6px 0 0;
  background: var(--linen);
}

/* Skeleton shimmer for product images */
.product-img-skeleton {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    var(--linen) 25%,
    rgba(255,253,249,0.9) 50%,
    var(--linen) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  transition: opacity 400ms var(--ease);
  pointer-events: none;
}

.product-image img {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 500ms var(--ease), transform 600ms var(--ease);
}
.product-image img.is-loaded { opacity: 1; }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-safe {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(255,253,249,0.9);
  color: #65401f;
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}
.product-safe svg { width: 14px; height: 14px; }
.quick-add {
  position: absolute;
  overflow: hidden;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px;
  border-radius: 0;
  background: var(--olive);
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
}
.product-card:hover .quick-add,
.quick-add:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
.quick-add:hover { background: var(--gold); color: var(--ink); }
.product-content { padding: 16px; }
.product-content h3 { font-size: clamp(16px, 2vw, 22px); line-height: 1.15; }
.product-content p { min-height: 56px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.product-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--linen);
  color: var(--olive-deep);
  font-size: 11px;
  font-weight: 900;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-inline-start: auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}
.price .promo { color: var(--gold); }
.price del {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}
.like-btn, .article-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251,247,239,0.7);
  color: var(--olive-deep);
  font-weight: 900;
  transition: background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease), border-color 220ms var(--ease);
}
.like-btn:hover, .article-action:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.13);
  color: #76591b;
}
/* Like actif → rouge */
.like-btn.is-active, .article-action.is-active {
  border-color: #e05252;
  background: rgba(224,82,82,0.1);
  color: #e05252;
}
.like-btn.is-active svg, .article-action.is-active svg {
  fill: #e05252;
  stroke: #e05252;
}
/* Animation pop sur le SVG du cœur */
.like-btn.is-popping svg {
  animation: likePop 350ms var(--ease-back) forwards;
}
.like-btn.is-popping span { animation: likePop 350ms var(--ease-back); }

/* ===================== INGREDIENTS / ACTIFS ===================== */
.ingredient-section {
  padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 18% 16%, rgba(201,168,76,0.18), transparent 26rem),
    radial-gradient(circle at 82% 78%, rgba(97,117,67,0.2), transparent 22rem),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02), transparent 60rem),
    var(--olive-deep);
}
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card */
.ingredient-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,253,249,0.84);
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease), border-color 360ms var(--ease), background 360ms var(--ease);
}
.ingredient-card:hover {
  border-color: rgba(201,168,76,0.7);
  box-shadow: var(--glow-gold), var(--shadow-lift);
  background: rgba(255,255,255,0.09);
  transform: translateY(-10px);
}

/* Image zone */
.ingredient-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: rgba(255,255,255,0.04);
}

/* Shimmer skeleton */
.ingredient-img-skeleton {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.11) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  transition: opacity 500ms var(--ease);
}
.ingredient-img-wrap.is-loaded .ingredient-img-skeleton {
  opacity: 0;
  pointer-events: none;
}

/* Product photo */
.ingredient-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms var(--ease), transform 700ms var(--ease);
  z-index: 1;
}
.ingredient-img.is-loaded { opacity: 1; }
.ingredient-card:hover .ingredient-img { transform: scale(1.07); }

/* Dark gradient overlay on image */
.ingredient-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(51,68,41,0.08) 20%,
    rgba(51,68,41,0.72) 100%
  );
  pointer-events: none;
  transition: opacity 360ms var(--ease);
}
.ingredient-card:hover .ingredient-img-wrap::after {
  opacity: 0.85;
}

/* Floating icon badge */
.ingredient-icon-badge {
  position: absolute;
  bottom: -22px;
  inset-inline-start: 22px;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid rgba(201,168,76,0.55);
  border-radius: 50%;
  background: var(--olive-deep);
  color: var(--gold-light);
  box-shadow: 0 6px 24px rgba(0,0,0,0.38), 0 0 18px rgba(201,168,76,0.22);
  transition: transform 420ms var(--ease-back), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.ingredient-icon-badge svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.ingredient-card:hover .ingredient-icon-badge {
  transform: scale(1.14) rotate(8deg);
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.42), 0 0 28px rgba(201,168,76,0.45);
}

/* Body content */
.ingredient-body {
  flex: 1;
  padding: 36px 24px 26px;
}
.ingredient-card h3 {
  margin: 0 0 14px;
  color: white;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
}
.ingredient-card ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}
.ingredient-card li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 14px;
  color: rgba(255,253,249,0.72);
  line-height: 1.5;
}
.ingredient-card li::before {
  position: absolute;
  inset-inline-start: 0;
  color: var(--gold);
  content: "•";
  font-size: 16px;
  line-height: 1.3;
}
.ingredient-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: gap 220ms var(--ease), color 220ms var(--ease);
}
.ingredient-link em { font-style: normal; }
.ingredient-link:hover { gap: 10px; color: white; }

.story-section, .ritual-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 72px);
}
.story-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  box-shadow: var(--shadow-lift);
}
.rd-badge {
  position: absolute;
  top: 24px;
  inset-inline-start: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}
.story-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.timeline::before {
  position: absolute;
  top: 23px;
  inset-inline: 34px;
  border-top: 1px dashed var(--sand);
  content: "";
}
.timeline-step {
  position: relative;
  z-index: 1;
  transition: transform 280ms var(--ease);
}
.timeline-step:hover {
  transform: translateY(-3px);
}
.timeline-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  transition: background 280ms var(--ease), color 280ms var(--ease), transform 280ms var(--ease-back);
}
.timeline-step:hover .timeline-number {
  background: var(--gold);
  color: var(--ink);
  transform: scale(1.08);
}
.timeline-step strong { display: block; margin-top: 12px; color: var(--olive-deep); }
.timeline-step p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.ritual-section { background: linear-gradient(180deg, var(--ivory), #fffaf2); }
.ritual-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.ritual-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ritual-panel { align-self: center; }
.ritual-stepper {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 30px;
}
.ritual-progress {
  position: absolute;
  top: 30px;
  bottom: 30px;
  inset-inline-start: 23px;
  width: 2px;
  background: rgba(216,191,159,0.72);
}
.ritual-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 500ms var(--ease);
}
.ritual-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 10px 0;
}
.step-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--sand);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  transition: background 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease), transform 200ms var(--ease-back), border-color 300ms var(--ease);
}
.ritual-step.is-active .step-number {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.25);
  transform: scale(1.12);
}
.step-button {
  width: 100%;
  padding: 9px 0;
  background: transparent;
  color: var(--muted);
  text-align: inherit;
  font-size: 20px;
  font-weight: 900;
  transition: color 220ms var(--ease);
}
.ritual-step.is-active .step-button {
  color: var(--ink);
  font-weight: 900;
}
.step-panel {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  transition: max-height 480ms var(--ease), opacity 400ms var(--ease), padding 400ms var(--ease);
  opacity: 0;
}
.ritual-step.is-active .step-panel {
  max-height: 280px;
  opacity: 1;
  padding-top: 14px;
}
.step-panel p { margin: 4px 0 12px; color: var(--muted); }
.step-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,253,249,0.66);
}
.step-product img {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}
.step-product strong { color: var(--olive-deep); }

.cafe-section { background: linear-gradient(180deg, #fffaf3, var(--ivory)); }
.cafe-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(300px, 0.92fr);
  gap: 24px;
}
.featured-article {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
}
.featured-article::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 30%, rgba(32,28,24,0.76));
}
.featured-article:hover img { transform: scale(1.04); }
.featured-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(transparent 20%, rgba(32,28,24,0.78));
  color: white;
  transition: background 400ms var(--ease);
}
.featured-article:hover .featured-overlay {
  background: linear-gradient(transparent 10%, rgba(32,28,24,0.88));
}
.featured-overlay h3 { max-width: 620px; color: white; }
.featured-overlay p { max-width: 540px; color: rgba(255,253,249,0.78); }
.article-list { display: grid; gap: 16px; }
.article-card, .community-panel {
  border: 1px solid rgba(51,68,41,0.12);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.article-card {
  padding: 22px;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.article-card h3 { font-size: 28px; }
.article-card p { color: var(--muted); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.community-panel {
  max-width: 1000px;
  margin: 26px auto 0;
  padding: clamp(22px, 4vw, 34px);
}
.community-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
#commentCount {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: white;
  font-weight: 900;
}
.comment-form {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) 1.2fr auto;
  gap: 12px;
  align-items: end;
}
label span:not(.sr-only) {
  display: block;
  margin-bottom: 7px;
  color: var(--olive-deep);
  font-size: 13px;
  font-weight: 900;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--linen);
  color: var(--ink);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}
input { height: 54px; padding: 0 16px; }
textarea { min-height: 54px; max-height: 180px; padding: 14px 16px; resize: vertical; }
input:focus, textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
  outline: 0;
}
.comments-list { display: grid; gap: 12px; margin-top: 20px; }
.comment {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,253,249,0.62);
  animation: commentIn 380ms var(--ease) both;
}
.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: white;
  font-weight: 900;
}
.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--olive-deep);
  font-weight: 900;
}
.comment-time { color: var(--muted); font-size: 12px; }
.comment p { margin: 5px 0 0; color: var(--muted); }

.site-footer {
  padding: 64px clamp(18px, 5vw, 72px) 26px;
  background: var(--olive-deep);
  color: rgba(255,253,249,0.78);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .75fr .75fr 1.1fr;
  gap: 34px;
}
.footer-brand .brand-word { color: #fff; }
.footer-intro p { max-width: 360px; margin: 16px 0; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255,253,249,0.16);
  border-radius: 50%;
  transition: color 220ms var(--ease), border-color 220ms var(--ease), transform 300ms var(--ease-back);
}
.social-links a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-4px) scale(1.18);
}
.footer-column h3, .footer-newsletter h3 {
  margin: 0 0 14px;
  color: white;
  font-family: var(--sans);
  font-size: 15px;
}
.footer-column a { display: block; margin: 9px 0; transition: color 180ms var(--ease); }
.footer-column a:hover { color: var(--gold); }
.footer-newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 10px;
}
.footer-newsletter h3, .footer-newsletter p { grid-column: 1 / -1; }
.footer-newsletter p { margin: 0 0 4px; }
.footer-newsletter input {
  border-color: rgba(255,253,249,0.16);
  background: rgba(255,253,249,0.08);
  color: white;
}
.footer-newsletter input::placeholder { color: rgba(255,253,249,0.55); }
.footer-newsletter button {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.footer-badges span {
  padding: 6px 10px;
  border: 1px solid rgba(201,168,76,0.24);
  border-radius: 999px;
  color: rgba(255,253,249,0.72);
  font-size: 11px;
  font-weight: 800;
}
.copyright {
  margin: 22px 0 0;
  color: rgba(255,253,249,0.5);
  font-size: 12px;
  text-align: center;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32,28,24,0.52);
  backdrop-filter: blur(10px);
}
.popup[hidden] { display: none; }
.popup-card {
  position: relative;
  display: grid;
  width: min(540px, 100%);
  grid-template-columns: 1fr 180px;
  gap: 20px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 0 40px 110px rgba(32,28,24,0.38);
}
.popup-card h2 {
  margin: 12px 0 10px;
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.25;
}
.popup-card p { color: var(--muted); }
.popup-card img {
  align-self: end;
  width: 100%;
  height: 300px;
  border-radius: 8px;
  object-fit: cover;
}
.popup-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--olive-deep);
}
.popup-form { display: grid; gap: 12px; margin-top: 18px; }
.toast {
  position: fixed;
  z-index: 170;
  left: 50%;
  bottom: 28px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--olive-deep);
  color: white;
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, 24px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: white;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) !important;
}
.scroll-top:hover {
  background: var(--gold);
  box-shadow: var(--glow-gold);
  color: var(--ink);
  transform: translateY(-4px);
}
.scroll-top svg {
  transition: transform 300ms var(--ease-back);
}
.scroll-top:hover svg {
  transform: translateY(-3px);
}

[data-reveal] {
  opacity: 0;
  filter: blur(5px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease);
  will-change: opacity, transform, filter;
}
[data-reveal="fade-up"]    { transform: translateY(32px); }
[data-reveal="fade-down"]  { transform: translateY(-20px); }
[data-reveal="fade-left"]  { transform: translateX(36px); }
[data-reveal="fade-right"] { transform: translateX(-36px); }
[data-reveal="image-in"]   { transform: scale(0.96); filter: blur(0); }
[data-reveal="slide-right"] { transform: translateX(-50px); filter: blur(10px); }
body[dir="rtl"] [data-reveal="fade-left"]  { transform: translateX(-36px); }
body[dir="rtl"] [data-reveal="fade-right"] { transform: translateX(36px); }
body[dir="rtl"] [data-reveal="slide-right"] { transform: translateX(50px); }
[data-reveal].is-visible { opacity: 1; transform: translate(0, 0) scale(1); filter: blur(0); }
/* Images: no blur (they use their own fade-in) */
.story-media[data-reveal], .ritual-media[data-reveal], .hero-media[data-reveal] { filter: none; }
.story-media[data-reveal].is-visible, .ritual-media[data-reveal].is-visible, .hero-media[data-reveal].is-visible { filter: none; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes cartBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.4) rotate(-8deg); }
  60% { transform: scale(0.9) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes likePop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.28); } }
@keyframes ripple {
  to { transform: scale(1); opacity: 0; }
}
@keyframes commentIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes drawLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cursor { display: none; }
  body { cursor: auto; }
  button, a { cursor: pointer; }
}

@media (max-width: 1160px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .comment-form { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  body { cursor: auto; }
  button, a { cursor: pointer; }
  .cursor { display: none; }
  .site-header {
    grid-template-columns: auto 1fr auto;
    border-radius: 24px;
  }
  .main-nav { display: none; }
  .menu-button { display: grid; }
  .brand-word { font-size: 15px; }
  .brand-svg { width: 38px; height: 38px; }
  .lang-toggle { display: none; }
  .hero-section,
  .story-section,
  .ritual-section,
  .cafe-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    min-height: auto;
    padding-top: 54px;
  }
  .hero-media { min-height: 520px; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .ingredient-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .ingredient-card {
    min-width: 280px;
    scroll-snap-align: start;
  }
  .story-media, .ritual-media { min-height: 480px; }
  .timeline {
    grid-template-columns: 1fr;
    padding-inline-start: 26px;
  }
  .timeline::before {
    top: 0;
    bottom: 0;
    inset-inline-start: 22px;
    width: 1px;
    border-top: 0;
    border-inline-start: 1px solid var(--sand);
  }
  .ritual-media { order: 2; }
  .popup-card { grid-template-columns: 1fr; }
  .popup-card img { display: none; }
}

@media (max-width: 620px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 9px 10px;
  }
  .brand-word { display: none; }
  .hero-section, .section, .ingredient-section, .story-section, .ritual-section {
    padding-inline: 18px;
  }
  h1 {
    max-width: 9ch;
    font-size: 46px;
    line-height: 1.03;
  }
  .hero-text { max-width: 31ch; font-size: 16px; }
  .badge-row, .hero-actions { flex-direction: column; align-items: stretch; }
  .premium-badge, .hero-actions .btn { width: min(100%, 330px); }
  .proof-bar, .trust-bar { grid-template-columns: 1fr; }
  .proof-bar article { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .proof-bar article:last-child { border-bottom: 0; }
  .trust-bar { padding: 18px; }
  .trust-bar article { border-inline-end: 0; }
  .hero-media { min-height: 430px; }
  .floating-card { inset-inline: 14px; bottom: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .quick-add { opacity: 1; transform: none; font-size: 12px; padding: 10px; }

  /* ── Prix mobile : empêche le chevauchement ── */
  .product-footer {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    align-items: center;
  }
  .price {
    font-size: 16px;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-inline-start: 0;
    width: 100%;
  }
  .price del { font-size: 11px; }

  /* ── Tags produits : espacement vertical ── */
  .product-tags { gap: 4px; margin-bottom: 6px; }
  .product-tags span { font-size: 10px; padding: 3px 7px; }
  .featured-article { min-height: 430px; }
  .community-heading { align-items: flex-start; flex-direction: column; }
  .footer-newsletter { grid-template-columns: 1fr; }
  .footer-newsletter button { width: 100%; border-radius: 999px; }

  /* Panier : full width sur mobile */
  .cart-panel { width: 100vw; }

  /* Popup : adapté mobile */
  .popup-card { padding: 22px 18px; }
  .popup-card h2 { font-size: clamp(18px, 5vw, 22px); }

  /* Ingredient grid : 1 colonne */
  .ingredient-grid { grid-template-columns: 1fr !important; }

  /* Ritual stepper mobile */
  .ritual-stepper { gap: 10px; }
}

/* ==========================================================
   PREMIUM VISUAL LAYER — 21st.dev patterns, GPU-accelerated
   All animations: transform + opacity + filter only (60 FPS)
   ========================================================== */

/* --- Hero section: position + isolation for canvas/orbs --- */
.hero-section {
  position: relative;
  isolation: isolate;
}
.hero-section > * { position: relative; z-index: 1; }

/* Ambient golden orb — top right (21st.dev ParticleHero ambient) */
.hero-section::before {
  content: '';
  position: absolute; z-index: 0;
  width: 560px; height: 560px;
  top: -160px; right: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.20) 0%, transparent 68%);
  filter: blur(55px);
  pointer-events: none;
  animation: orbA 12s ease-in-out infinite;
}
/* Olive orb — bottom left */
.hero-section::after {
  content: '';
  position: absolute; z-index: 0;
  width: 420px; height: 420px;
  bottom: 4%; left: -2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(97,117,67,0.18) 0%, transparent 68%);
  filter: blur(65px);
  pointer-events: none;
  animation: orbB 16s ease-in-out infinite 4s;
}
@keyframes orbA {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-30px) scale(1.05); }
  66%      { transform: translate(-14px,18px) scale(0.97); }
}
@keyframes orbB {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,22px) scale(1.08); }
}

/* Canvas particles (injected by JS — 21st.dev ParticleHero pattern) */
.hero-particle-canvas {
  position: absolute;
  inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* --- Shimmer color on H1 em (ShiningText pattern, 21st.dev) --- */
/* Using color animation — reliable even when em contains nested spans (word-reveal) */
h1 em {
  display: inline;
  color: var(--gold, #c9a84c);
  animation: emGoldShimmer 4s ease-in-out infinite;
}
@keyframes emGoldShimmer {
  0%, 100% { color: #a07840; }
  33%       { color: #f0d98e; }
  66%       { color: #c9a84c; }
}

/* --- 3D card tilt (FloatingCard + TiltCard pattern, 21st.dev) --- */
.product-card,
.ingredient-card,
.article-card { will-change: transform; transform-style: preserve-3d; }

/* Shine sweep on product cards (FloatingCard glare, 21st.dev) */
.product-card::after {
  content: '';
  position: absolute; inset: 0; z-index: 4;
  border-radius: inherit;
  background: linear-gradient(
    130deg,
    rgba(255,253,249,0) 0%,
    rgba(255,253,249,0.14) 50%,
    rgba(255,253,249,0) 100%
  );
  transform: translateX(-110%) skewX(-12deg);
  transition: transform 700ms var(--ease);
  pointer-events: none;
}
.product-card:hover::after { transform: translateX(210%) skewX(-12deg); }

/* --- Ingredient card inner glow on hover --- */
.ingredient-card::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(201,168,76,0.0), rgba(201,168,76,0.18));
  opacity: 0;
  transition: opacity 360ms var(--ease);
}
.ingredient-card:hover::before { opacity: 1; }

/* --- Nav underline indicator (sliding golden rule, 21st.dev nav pattern) --- */
.main-nav { position: relative; }
.main-nav a { position: relative; padding-bottom: 2px; }
.main-nav a::after {
  content: '';
  position: absolute; bottom: -4px; left: 50%;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-dark, #a07840), var(--gold-light, #f0d98e));
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 260ms var(--ease);
}
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }
/* Sliding pill injected by JS */
.nav-indicator {
  position: absolute; bottom: -4px; height: 2px;
  background: linear-gradient(90deg, var(--gold-dark, #a07840), var(--gold-light, #f0d98e));
  border-radius: 1px;
  pointer-events: none; opacity: 0;
  transition: left 250ms var(--ease), width 250ms var(--ease), opacity 200ms;
}

/* --- Like particle burst (FloatingCard particle system, 21st.dev) --- */
.like-particle {
  position: fixed; z-index: 9999;
  border-radius: 50%;
  background: var(--color, var(--gold));
  transform: translate(-50%,-50%);
  pointer-events: none;
  animation: likeParticleBurst 700ms var(--ease-back) forwards;
}
@keyframes likeParticleBurst {
  0%   { transform: translate(-50%,-50%) scale(1.6); opacity: 1; }
  55%  { opacity: 1; }
  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.05);
    opacity: 0;
  }
}

/* --- Filter grid morph (smooth product grid transition) --- */
#productGrid {
  transition: filter 170ms var(--ease), opacity 170ms var(--ease), transform 170ms var(--ease);
}
#productGrid.is-filtering {
  filter: blur(6px) saturate(0.5);
  opacity: 0.28;
  transform: scale(0.972);
}

/* --- Popup premium entry (scale+blur fade, 21st.dev modal pattern) --- */
.popup-card.popup-entered {
  animation: popupPremiumIn 480ms var(--ease-back) both;
}
@keyframes popupPremiumIn {
  0%   { transform: scale(0.82) translateY(36px); opacity: 0; filter: blur(16px); }
  60%  { filter: blur(0); }
  100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}

/* --- Trust bar hover lift --- */
.trust-bar article {
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
  border-radius: var(--radius-sm, 6px);
}
.trust-bar article:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 16px 42px rgba(97,117,67,0.11);
}

/* --- Timeline step directional nudge --- */
.timeline-step { transition: transform 240ms var(--ease); }
.timeline-step:hover { transform: translateX(8px); }
body[dir="rtl"] .timeline-step:hover { transform: translateX(-8px); }

/* --- Article card hover --- */
.article-card { transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.article-card:hover { box-shadow: 0 24px 52px rgba(97,117,67,0.13); }

/* --- Ingredient section deeper ambient radials --- */
.ingredient-section {
  background:
    radial-gradient(ellipse at 16% 14%, rgba(201,168,76,0.22), transparent 30rem),
    radial-gradient(ellipse at 84% 80%, rgba(97,117,67,0.24), transparent 26rem),
    radial-gradient(ellipse at 50% 110%, rgba(201,168,76,0.10), transparent 38rem),
    var(--olive-deep);
}

/* --- Section heading eyebrow glow --- */
.section-heading.light .eyebrow {
  text-shadow: 0 0 22px rgba(240,217,142,0.5);
}

/* --- Reduced-motion overrides --- */
@media (prefers-reduced-motion: reduce) {
  h1 em { animation: none; color: var(--gold, #c9a84c); }
  .hero-section::before, .hero-section::after { animation: none; }
  .like-particle { display: none; }
  .product-card::after { display: none; }
  [data-reveal] { filter: none !important; }
  [data-reveal].is-visible { filter: none !important; }
  .popup-card.popup-entered { animation: none; }
  .hero-particle-canvas { display: none; }
  .sparkle-gif { display: none; }
  .word-reveal > span { animation: none; transform: none; opacity: 1; filter: none; }
  .product-card .product-image img.is-loaded { animation: none; }
  .ingredient-card .ingredient-img.is-loaded { animation: none; }
  .btn-primary::before { animation: none; }
  .premium-badge.maternity { animation: none; }
  .hero-line::after { animation: none; }
  .trust-bar article svg { animation: none; }
  .section-heading:not(.light) h2 { background: none; -webkit-text-fill-color: inherit; animation: none; }
  .floating-card { animation: floatCard 4s ease-in-out infinite; }
  .proof-bar strong { animation: none; }
}

/* =======================================================
   GIF-LIKE ANIMATIONS & TEXT MOTION LAYER
   SparklesText + TypewriterEffect (21st.dev patterns)
   All GPU-accelerated: transform + opacity + filter only
   ======================================================= */

/* --- Word-by-word fade+rise reveal (TypewriterEffect, 21st.dev) --- */
.word-reveal {
  display: inline-block;
  vertical-align: baseline;
}
.word-reveal > span {
  display: inline-block;
  transform: translateY(18px);
  opacity: 0;
  filter: blur(6px);
  animation: wordSlideUp 0.78s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes wordSlideUp {
  to { transform: translateY(0); opacity: 1; filter: blur(0); }
}

/* --- Sparkle star GIF (SparklesText pattern, 21st.dev) --- */
.sparkle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.sparkle-gif {
  position: absolute;
  pointer-events: none;
  animation: sparklePop var(--sparkle-dur, 1.4s) cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.sparkle-gif svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes sparklePop {
  0%   { transform: scale(0) rotate(0deg);   opacity: 0; }
  20%  { opacity: 1; }
  55%  { transform: scale(1) rotate(145deg); opacity: 1; }
  85%  { opacity: 0.6; }
  100% { transform: scale(0) rotate(290deg); opacity: 0; }
}

/* --- Product image CSS GIF (gentle breathing / Ken Burns) --- */
.product-card .product-image img.is-loaded {
  animation: imgBreathe 8s ease-in-out infinite;
}
.product-card:hover .product-image img { animation: none; }
@keyframes imgBreathe {
  0%, 100% { transform: scale(1) translate(0,0); }
  50%       { transform: scale(1.04) translate(-0.4%,-0.4%); }
}

/* --- Ingredient image slow Ken Burns GIF --- */
.ingredient-card:not(:hover) .ingredient-img.is-loaded {
  animation: kenBurnsIng 14s ease-in-out infinite alternate;
}
@keyframes kenBurnsIng {
  0%   { transform: scale(1)     translate(0,0); }
  100% { transform: scale(1.06) translate(-1%,-0.6%); }
}

/* --- CTA primary button shimmer sweep GIF --- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    transparent 28%,
    rgba(255,255,255,0.24) 50%,
    transparent 72%
  );
  background-size: 220% 100%;
  animation: btnShimmerSweep 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnShimmerSweep {
  0%   { background-position: 220%  0; }
  100% { background-position: -220% 0; }
}

/* --- Pregnancy Safe badge pulse GIF --- */
.premium-badge.maternity {
  animation: badgePulse 3.2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(97,117,67,0.35); }
  50%       { box-shadow: 0 0 0 8px rgba(97,117,67,0); }
}

/* --- Hero gold line shimmer sweep GIF --- */
.hero-line { position: relative; overflow: hidden; }
.hero-line.is-drawn::after {
  content: '';
  position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: lineSweepGif 2.8s ease-in-out 0.6s infinite;
}
@keyframes lineSweepGif {
  0%   { left: -80%; }
  100% { left: 180%; }
}

/* --- Trust bar leaf icon sway GIF --- */
.trust-bar article:first-child svg {
  animation: leafSway 3.5s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes leafSway {
  0%, 100% { transform: rotate(0deg); }
  30%       { transform: rotate(-10deg); }
  70%       { transform: rotate(10deg); }
}

/* --- Eyebrow underline animated expansion --- */
.eyebrow::after {
  content: '';
  display: block;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
  margin-top: 5px;
  border-radius: 1px;
}
.eyebrow.is-animated::after { transform: scaleX(1); }
body[dir="rtl"] .eyebrow::after { transform-origin: right; }

/* --- Section H2 subtle gradient wave (very slow, barely visible) --- */
.section-heading:not(.light) h2 {
  background: linear-gradient(
    135deg,
    var(--ink) 0%,
    #3d4a2e 35%,
    var(--ink) 65%,
    #4a5a30 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: headingGradWave 10s linear infinite;
}
@keyframes headingGradWave {
  0%   { background-position: 0%   center; }
  100% { background-position: 300% center; }
}

/* --- Proof bar number entrance glow GIF --- */
.proof-bar strong {
  animation: numberGlow 2.5s ease-out both;
}
@keyframes numberGlow {
  0%   { text-shadow: 0 0 28px rgba(201,168,76,0.9), 0 0 56px rgba(201,168,76,0.5); }
  100% { text-shadow: none; }
}

/* --- Floating card enhanced glow pulse GIF --- */
.floating-card {
  animation: floatCard 4s ease-in-out infinite, floatGlowPulse 4s ease-in-out infinite !important;
}
@keyframes floatGlowPulse {
  0%, 100% { box-shadow: var(--shadow-soft), 0 0 0   0  rgba(201,168,76,0); }
  50%       { box-shadow: var(--shadow-soft), 0 0 24px 6px rgba(201,168,76,0.18); }
}

/* --- Scroll-to-top button SVG bounce on hover --- */
.scroll-top:hover svg {
  animation: arrowBounceUp 0.55s var(--ease-back) forwards;
}
@keyframes arrowBounceUp {
  0%   { transform: translateY(0); }
  45%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ══════════════════════════════════════════════════
   CART PANEL
══════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(30,28,24,0.45);
  backdrop-filter: blur(2px);
}
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 150;
  width: min(420px, 100vw);
  height: 100dvh;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 380ms var(--ease);
  box-shadow: -6px 0 40px rgba(30,28,24,0.12);
}
.cart-panel.is-open { transform: translateX(0); }

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.cart-panel-header h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}
.cart-panel-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: background 200ms, color 200ms;
}
.cart-panel-close:hover { background: var(--sage-light); color: var(--ink); }

.cart-panel-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.cart-item-info { min-width: 0; }
.cart-item-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-info span {
  font-size: 0.82rem;
  color: var(--gold-deep, #a07840);
  font-weight: 600;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.qty-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sage-light);
  font-size: 1rem;
  font-weight: 700;
  color: var(--olive-deep);
  transition: background 180ms;
}
.qty-btn:hover { background: var(--gold-pale, #f0d98e); }
.cart-item-qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.cart-item-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  border-radius: 50%;
  transition: background 180ms, color 180ms;
}
.cart-item-remove:hover { background: #fee2e2; color: #b91c1c; }
.cart-item-remove svg { width: 14px; height: 14px; }

.cart-panel-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.cart-total strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 50px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: background 200ms, transform 150ms;
}
.btn-whatsapp:hover { background: #1ebe57; transform: translateY(-1px); }
.btn-whatsapp svg { width: 20px; height: 20px; stroke: none; fill: #fff; }
.cart-panel-empty-btn {
  width: 100%;
  padding: 0.7rem;
  border-radius: 50px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  transition: border-color 200ms, color 200ms;
}
.cart-panel-empty-btn:hover { border-color: var(--gold); color: var(--ink); }
