/* ==========================================================================
   HAUTE BOTANIQUE LUXURY DESIGN SYSTEM
   Hair Care by Sunshine — Public Storefront
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* --- PALETTE HAUTE BOTANIQUE --- */
  --bg-primary: #FAF8F5;          /* Albâtre / Lin doux (Fond principal) */
  --bg-secondary: #F4EFEA;        /* Sable clair (Cartes & tiroirs) */
  --bg-card: #FFFFFF;             /* Blanc cassé pur */
  --bg-dark: #111A13;             /* Vert Ardoise Forêt Sombre (Hero Sombre) */
  --bg-dark-hover: #1B261D;
  --brand-cacao: #3B200C;         /* Cacao Profond Signature (Identité Marque & Boutons d'Action) */
  --brand-cacao-hover: #4D2C10;   /* Cacao Chaud Velouté */
  --brand-cacao-light: #DEC9B9;
  --text-primary: #111A13;        /* Texte principal haute lisibilité */
  --text-secondary: #4D574E;      /* Sous-titres & descriptions */
  --text-muted: #8F877D;          /* Micro-détails & métadonnées */
  --text-inverse: #FAF8F5;        /* Texte sur fond sombre */
  --accent-gold: #C5A059;         /* Or Vieilli Apothicaire */
  --accent-gold-light: #E8D4A8;
  --accent-terracotta: #A2593E;   /* Terre Cuite / SOS Réparation */
  --accent-sage: #4D6B53;         /* Vert Sauge Végétal / Confirmation */
  --border-light: #E8DFD5;        /* Lignes & séparateurs discrets */
  --border-dark: #111A13;
  --border-gold: #C5A059;

  /* --- TYPOGRAPHIE --- */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Great Vibes', cursive;

  /* --- EFFETS & OMBRES DE LUXE --- */
  --shadow-subtle: 0 4px 20px -2px rgba(17, 26, 19, 0.05);
  --shadow-card: 0 10px 30px -4px rgba(17, 26, 19, 0.08);
  --shadow-drawer: -10px 0 40px rgba(17, 26, 19, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- BASE & GLOBAL RESETS --- */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* --- TITRES ÉDITORIAUX SERIF --- */
h1, h2, h3, .brand-title, .font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 i, h2 i, h3 i, .font-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* Signature manuscrite de marque */
.brand-signature {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.1;
  color: var(--accent-gold);
}

/* Micro-sur-titres (Eyebrows) */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
}

/* --- CARTES PRODUITS & BUNDLES --- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-gold);
}

/* Cadre photo produit adaptatif */
.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  overflow: hidden;
  margin-bottom: 14px;
}

.product-image-wrap img,
.product-image-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image-wrap img,
.product-card:hover .product-image-wrap video {
  transform: scale(1.04);
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 4px;
  line-height: 1.25;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 6px;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Mode grille mobile 1 colonne & 2 colonnes adaptatif (< 1024px) */
@media (max-width: 1023px) {
  /* Mode 1 colonne (1xN) : 100% largeur pour tous les produits et coffrets */
  #storefront-products-grid.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  #storefront-products-grid.grid-cols-1 .product-card {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  /* Mode 2 colonnes (2xN) : Produits à 50% (2 par ligne), Coffrets à 100% (pleine ligne) */
  #storefront-products-grid.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #storefront-products-grid.grid-cols-2 .product-card.col-span-2,
  #storefront-products-grid.grid-cols-2 .product-card[data-is-bundle="true"] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
}

#storefront-products-grid.grid-cols-2 .product-card,
#storefront-products-grid.sm\:grid-cols-2 .product-card {
  padding: 10px;
}
#storefront-products-grid.grid-cols-2 .product-image-wrap,
#storefront-products-grid.sm\:grid-cols-2 .product-image-wrap {
  margin-bottom: 8px;
}
#storefront-products-grid.grid-cols-2 .product-title,
#storefront-products-grid.sm\:grid-cols-2 .product-title {
  font-size: 0.95rem;
  line-height: 1.2;
}
#storefront-products-grid.grid-cols-2 .product-price,
#storefront-products-grid.sm\:grid-cols-2 .product-price {
  font-size: 1.05rem;
}

/* --- BADGES & SCEAUX --- */
.badge-natural {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(17, 26, 19, 0.9);
  color: var(--text-inverse);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.badge-porosity {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(250, 248, 245, 0.95);
  color: var(--text-primary);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  z-index: 2;
}

/* --- BOUTONS & ACTIONS --- */
.btn-primary {
  background-color: var(--brand-cacao);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-cacao);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(59, 32, 12, 0.2);
}

.btn-primary:hover {
  background-color: var(--brand-cacao-hover);
  border-color: var(--accent-gold);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(59, 32, 12, 0.28);
  transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--text-muted);
  border-color: var(--text-muted);
  color: var(--text-inverse);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: var(--bg-secondary);
}

/* --- TIROIR PANIER (CART DRAWER) --- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 26, 19, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  transition: opacity 0.3s ease;
}

.cart-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-primary);
  border-left: 1px solid var(--border-light);
  box-shadow: var(--shadow-drawer);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-header {
  padding: 18px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-light);
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.cart-item-row:hover {
  border-color: var(--accent-gold);
}

.cart-item-image {
  width: 60px;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: var(--bg-secondary);
  flex-shrink: 0;
}

/* Jauge de franco de port / cadeaux */
.reward-progress-track {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 8px 0;
}

.reward-progress-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

/* Défilement fluide & scrollbar raffinée */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* --- SYSTÈME DE FILTRES HAUTE BOTANIQUE --- */
/* Conteneur global de la barre de filtres */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

/* Groupe horizontal de boutons/pilules */
.filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Intitulé discret devant un groupe de filtres */
.filter-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-right: 6px;
}

/* Boutons pilules (remplace les boutons d'émojis) */
.filter-pill,
.filter-chip-pill {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.filter-pill:hover,
.filter-chip-pill:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

/* État Actif / Sélectionné */
.filter-pill.is-active,
.filter-pill.active,
.filter-chip-pill.is-active,
.filter-chip-pill.active {
  background: var(--bg-dark) !important;
  color: var(--text-inverse) !important;
  border-color: var(--bg-dark) !important;
  box-shadow: 0 4px 12px rgba(17, 26, 19, 0.15) !important;
}

/* Badge compteur à l'intérieur d'une pilule (ex: "4 soins") */
.filter-pill-count {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.7;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.05);
}

.filter-pill.is-active .filter-pill-count,
.filter-pill.active .filter-pill-count,
.filter-chip-pill.active .filter-pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
}

/* Sélecteur de Porosité Segmenté (Onglets Faible / Moyenne / Haute) */
.filter-segmented-control {
  display: inline-flex;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

.filter-segment-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-segment-btn:hover {
  color: var(--text-primary);
}

.filter-segment-btn.is-active,
.filter-segment-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-light);
}

/* Sélecteur déroulant stylisé (Custom Dropdown) */
.filter-select {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 10px 36px 10px 18px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C5A059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: var(--transition-smooth);
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-subtle);
}

/* Bouton pour réinitialiser les filtres */
.filter-reset-btn {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition-smooth);
}

.filter-reset-btn:hover {
  color: var(--accent-terracotta);
}

/* --- PRÉSERVATION DE L'IDENTITÉ CACAO SUR LES CTA DU PRODUCT DETAIL SHEET --- */
#product-detail-sheet .btn-primary,
#product-detail-sheet button.btn-primary,
.pds-cta-cacao {
  background-color: var(--brand-cacao) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--brand-cacao) !important;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  box-shadow: 0 4px 14px rgba(59, 32, 12, 0.28) !important;
  transition: var(--transition-smooth) !important;
}

#product-detail-sheet .btn-primary:hover,
#product-detail-sheet button.btn-primary:hover,
.pds-cta-cacao:hover {
  background-color: var(--brand-cacao-hover) !important;
  border-color: var(--accent-gold) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(59, 32, 12, 0.38) !important;
  transform: translateY(-1px);
}

/* --- ARRONDIS LUXUEUX HAUTE BOTANIQUE SUR LA FICHE PRODUIT --- */
#product-detail-sheet {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

#product-detail-sheet .product-card,
#product-detail-sheet .checkout-card,
#product-detail-sheet .pds-content-box,
#product-detail-sheet .cart-upsell-card {
  border-radius: var(--radius-md) !important; /* 16px soft luxury rounding matching catalogue */
}

#product-detail-sheet .product-image-wrap {
  border-radius: var(--radius-md) !important;
}

#product-detail-sheet .cart-clean-reassurance,
#product-detail-sheet .pds-inci-box,
#product-detail-sheet .pds-quiz-banner,
#product-detail-sheet #pds-allergens-section {
  border-radius: var(--radius-md) !important;
}

#product-detail-sheet .pds-benefit-item {
  border-radius: var(--radius-sm) !important;
}

#product-detail-sheet .btn-primary,
#product-detail-sheet .btn-outline,
#product-detail-sheet .filter-pill,
#product-detail-sheet .filter-chip-pill,
#product-detail-sheet .filter-segment-btn,
#product-detail-sheet button.btn-primary,
#product-detail-sheet button.btn-outline,
#product-detail-sheet .pds-tab-btn {
  border-radius: var(--radius-pill) !important; /* 9999px pill rounding matching catalogue buttons */
}

/* Barre de recherche arrondie */
.search-pill-input {
  border-radius: var(--radius-pill);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  transition: var(--transition-smooth);
  font-family: var(--font-sans);
}

.search-pill-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px var(--accent-gold);
  background-color: #FFFFFF;
}

/* --- FORMULAIRE DE CHECKOUT (APOTHECARY CLEAN LUXE) --- */
.checkout-input {
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 8px 12px;
  transition: var(--transition-smooth);
  width: 100%;
}

.checkout-input:focus {
  background-color: #FFFFFF;
  border-color: var(--accent-gold);
  outline: none;
  box-shadow: 0 0 0 1px var(--accent-gold);
}

.checkout-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.checkout-select {
  border-radius: var(--radius-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 8px 12px;
  transition: var(--transition-smooth);
  width: 100%;
  cursor: pointer;
}

.checkout-select:focus {
  background-color: #FFFFFF;
  border-color: var(--accent-gold);
  outline: none;
  box-shadow: 0 0 0 1px var(--accent-gold);
}

.checkout-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow-subtle);
}

.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.checkout-card-header i {
  color: var(--accent-gold);
}

.checkout-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* Modales & Dialogues de Luxe */
.luxury-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 26, 19, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
}

.luxury-modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-drawer);
}

/* --- UNIFIED CAROUSEL CONTROLS --- */
.carousel-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
}

.carousel-nav-btn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: scale(1.05);
}

/* --- UNIFIED STORY & REVIEWS CARDS --- */
#story-carousel > div,
#public-reviews-carousel > div {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-subtle) !important;
  transition: var(--transition-smooth) !important;
}

#story-carousel > div:hover,
#public-reviews-carousel > div:hover {
  border-color: var(--accent-gold) !important;
  box-shadow: var(--shadow-card) !important;
  transform: translateY(-3px) !important;
}

/* --- UNIFIED ABOUT & MISSION PILLARS --- */
#about .glass-card {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-subtle) !important;
  transition: var(--transition-smooth) !important;
}

#about .glass-card:hover {
  border-color: var(--accent-gold) !important;
  box-shadow: var(--shadow-card) !important;
  transform: translateY(-3px) !important;
}

/* --- UNIFIED MATCHER & QUIZ ENGINE --- */
#quiz-engine-container button.border {
  background-color: var(--bg-card) !important;
  border-color: var(--border-light) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  transition: var(--transition-smooth) !important;
}

#quiz-engine-container button.border:hover {
  border-color: var(--accent-gold) !important;
  box-shadow: var(--shadow-subtle) !important;
  background-color: var(--bg-secondary) !important;
}

#quiz-engine-container button.border-gold-500,
#quiz-engine-container button.ring-2 {
  border-color: var(--accent-gold) !important;
  background-color: var(--bg-secondary) !important;
  box-shadow: 0 0 0 1.5px var(--accent-gold) !important;
}

/* --- FOOTER PAYMENT BADGES --- */
.footer-payment-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  height: 28px;
  padding: 0 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.footer-payment-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
  border-color: var(--accent-gold);
}

/* --- TOP LUXURY ANNOUNCEMENT BAR --- */
.top-luxury-bar {
  background-color: var(--brand-cacao);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(212, 150, 38, 0.3);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 45;
  transition: var(--transition-smooth);
}

.top-luxury-bar a {
  color: var(--accent-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.top-announcement-slide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  white-space: nowrap;
}

.top-announcement-slide.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- BOTANICAL SEAL BADGES (90%+ NATURALITY) --- */
.badge-botanical-seal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(250, 245, 235, 0.95);
  color: var(--brand-cacao);
  border: 1px solid rgba(212, 150, 38, 0.55);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

/* Cartes Coffrets (data-is-bundle="true") : compacité garantie du badge botanique bas-gauche pour éviter toute superposition avec le badge volume */
[data-is-bundle="true"] .badge-botanical-seal {
  max-width: 50%;
  padding: 2px 6px;
  font-size: 8px;
  letter-spacing: 0.04em;
}

/* Responsive mobile & tablette pour badges photos (anti-chevauchement & compacité) */
@media (max-width: 640px) {
  .badge-botanical-seal {
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    font-size: 8px;
    gap: 3px;
  }
  .badge-porosity {
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    font-size: 8px;
  }
  .badge-natural {
    bottom: 6px;
    right: 6px;
    padding: 2px 6px;
    font-size: 8px;
  }
  /* En grille mobile 2 colonnes, garder uniquement l'icône 🌿 pour éviter tout télescopage horizontal */
  #storefront-products-grid.grid-cols-2 .badge-botanical-seal .seal-text,
  .grid-cols-2 .badge-botanical-seal .seal-text {
    display: none;
  }
}

/* Micro-incitation dynamique sur carte produit */
.product-incentive-hint {
  font-size: 10px;
  font-weight: 600;
  color: var(--brand-cacao);
  background: rgba(222, 201, 185, 0.35);
  border: 1px dashed rgba(212, 150, 38, 0.55);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.25;
}

/* --- CART CLEAN BEAUTY & SMART UPSELL --- */
.cart-clean-reassurance {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-secondary);
}

.cart-upsell-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: var(--shadow-subtle);
}

/* --- WHATSAPP FLOATING SALES BUTTON --- */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.whatsapp-float-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.whatsapp-circle-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: var(--transition-smooth);
}

.whatsapp-float-btn:hover .whatsapp-circle-icon {
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-pulse-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background-color: #10B981;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  animation: pulse-green 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-green {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.whatsapp-pill-label {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: var(--brand-cacao);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.whatsapp-float-btn:hover .whatsapp-pill-label {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-card);
}

@media (max-width: 480px) {
  .whatsapp-pill-label {
    display: none;
  }
  .whatsapp-float-btn {
    bottom: 20px;
    right: 18px;
  }
}

/* ==========================================================================
   PERSISTENT VIDEO BANNER TEASER (HIGH CONTRAST HAUTE BOTANIQUE)
   ========================================================================== */
.video-teaser-card {
  background-color: rgba(17, 26, 19, 0.78) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(197, 160, 89, 0.45) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55) !important;
}

.video-teaser-badge {
  background-color: rgba(17, 26, 19, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(197, 160, 89, 0.5) !important;
}

.video-teaser-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.95) !important;
}

.video-teaser-desc {
  color: #F5E8D0 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.95) !important;
}

/* ==========================================================================
   PRODUCT DETAIL SHEET (SLIDE-OVER APOTHECARY DRAWER)
   Haute Botanique Design System
   ========================================================================== */
#product-detail-sheet {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-left: 1px solid var(--border-light);
  box-shadow: var(--shadow-drawer);
  font-family: var(--font-sans);
}

.pds-header {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.pds-gallery-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 380px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.pds-gallery-frame:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-card);
}

.pds-thumb-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background-color: var(--bg-secondary);
  padding: 4px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pds-thumb-img:hover {
  border-color: var(--accent-gold);
  transform: scale(1.05);
}

.pds-thumb-img.active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.4);
}

.pds-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(59, 32, 12, 0.92);
  color: var(--accent-gold-light);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(197, 160, 89, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-subtle);
  z-index: 2;
}

.pds-porosity-badge {
  background-color: rgba(250, 248, 245, 0.95);
  color: var(--brand-cacao);
  border: 1px solid var(--border-light);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 3px rgba(17, 26, 19, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pds-size-pill {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.pds-qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px;
  box-shadow: 0 1px 2px rgba(17, 26, 19, 0.04);
}

.pds-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.pds-qty-btn:hover {
  background-color: var(--brand-cacao);
  color: #FFFFFF;
}

.pds-tab-btn {
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background-color: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(17, 26, 19, 0.03);
}

.pds-tab-btn:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-secondary);
}

.pds-tab-btn.active {
  background-color: var(--brand-cacao) !important;
  color: var(--accent-gold-light) !important;
  border-color: var(--brand-cacao) !important;
  box-shadow: 0 2px 8px rgba(59, 32, 12, 0.2);
}

.pds-content-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  padding: 20px;
}

.pds-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-card);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 2px rgba(17, 26, 19, 0.02);
  font-size: 12px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.pds-benefit-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.pds-inci-box {
  background-color: var(--bg-dark);
  color: #F3EFE6;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.6;
  max-height: 150px;
  overflow-y: auto;
  user-select: all;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.pds-quiz-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--brand-cacao) 100%);
  color: var(--text-inverse);
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.pds-footer-bar {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(17, 26, 19, 0.06);
}

/* ==========================================================================
   MODALE D'AVIS HAUTE BOTANIQUE (ADD REVIEW MODAL)
   ========================================================================== */
.review-modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px -12px rgba(17, 26, 19, 0.28);
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.review-modal-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

@media (min-width: 640px) {
  .review-modal-card {
    padding: 32px;
  }
}

/* Horizontal scroll strip for curl pills with hidden scrollbar and edge fade mask */
.review-pills-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 4px 2px;
  mask-image: linear-gradient(to right, black 0%, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 24px), transparent 100%);
}

.review-pills-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.review-input {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
}

.review-input::placeholder {
  color: var(--text-muted);
}

.review-input:focus {
  background-color: #FFFFFF;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.review-star-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 20px;
  color: var(--border-light);
  transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
  line-height: 1;
}

.review-star-btn:hover {
  transform: scale(1.15);
  color: var(--accent-gold);
}

.review-star-btn.is-active,
.review-star-btn.active {
  color: var(--accent-gold);
  text-shadow: 0 2px 8px rgba(197, 160, 89, 0.35);
}

.review-curl-pill {
  font-size: 10px;
  padding: 6px 14px;
}







