/* =========================================================================
   M&B COSMETICS — CSS ADDITIONNEL (version du 13/11/2026 — v5)
   A. Menu mobile · B. En-tête · C. Panier / commande · D. Accueil
   E. Catégories · F. Rupture de stock · G. Étiquette Promo
   H. Cartes produits alignées + étoiles · I. Carrousels de l'accueil
   J. Accueil : cartes compactes · K. Étoiles sur la photo (accueil + catégories)
   L. Fiche produit sur smartphone · M. Photo de la fiche : coins arrondis
   N. Bandeau « Bienvenue » · O. Fiche produit : pastilles + avis
   Q. Roulette au clic sur un produit · R. Effet d'appui sur la photo
   S. Carte « Ajouté au panier » · T. Voile derrière la carte · U. Onde sur la poignée
   V. Boutons poussoirs de la carte du panier · W. Onde sur Commander
   X. Carte du panier : − / + sur chaque article · Y. Boutique : bouton − / +
   Z. Messages sous le − / + · AA. Page Panier : − / + · AB. Pied de page replié (mobile)
   AC. Pied de page : effet d'appui · AD. Bloc « Noël » de l'accueil agrandi
   AE. Pastilles de catégories de l'accueil agrandies · AF. Page Panier : articles avec photo (mobile)
   AG. Bloc « Noël » compact · AH. Page Panier : glisser à gauche pour supprimer
   AI. Voile léger pendant la mise à jour du panier · AJ. En-tête : place réservée (plus de saut)
   AK. Rien ne dépasse à droite (plus de dézoom au chargement)
   AL. Totaux du panier qui pâlissent pendant le recalcul · AM. Effet bouton sur l'icône panier
   AN. Roue dans la carte du panier pendant l'enregistrement
   AO. Traîneau du Père Noël (image) dans le bloc Noël · AQ. Neige · AR. Fond blanc crème
   AS. Coins arrondis de la photo (WooGallery Pro 3.5)
   ========================================================================= */

/* =========================================================
   A. MENU MOBILE (barre MENU + menu latéral)
   ========================================================= */
/* Cacher la flèche de droite dans le menu */
.wprmenu_icon_par,
.wprmenu_icon.wprmenu_icon_par {
  display: none !important;
}

/* Barre MENU : fond rose, texte et icône en blanc */
#wprmenu_bar,
.wprmenu_bar {
  background-color: #f06292 !important;
  transition: background-color 0.15s ease, transform 0.3s ease !important;
}
#wprmenu_bar .menu_title,
#wprmenu_bar .wpr_custom_menu,
#wprmenu_bar .menu_title a {
  color: #fff !important;
}
#wprmenu_bar .hamburger-inner,
#wprmenu_bar .hamburger-inner::before,
#wprmenu_bar .hamburger-inner::after {
  background: #fff !important;
}
/* Effet au toucher */
#wprmenu_bar:active {
  background-color: #f8a5c2 !important;
}
#wprmenu_bar:active .hamburger,
#wprmenu_bar:active .menu_title {
  transform: scale(0.93);
}
/* Se cache / réapparaît au défilement */
body.mb-barre-cachee #wprmenu_bar {
  transform: translateY(-110%) !important;
}

/* =========================================================
   B. EN-TÊTE SMARTPHONE : logo à gauche, loupe + icônes à droite, liseré coloré
   ========================================================= */
.mb-loupe-col { display: none !important; }

@media (max-width: 767px) {
  .header-mb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: -6px 0 0 0 !important;           /* -6px (avant -18px) : l'en-tête descend un peu sous la barre MENU rose */
    padding: 6px 16px 6px 4px !important;    /* 16px : marge à droite pour les icônes */
    background: #fff !important;
    box-shadow: none !important;
    border-bottom: 4px solid transparent !important;
    border-image: linear-gradient(90deg, #ffb74d, #f06292, #ba68c8, #4fc3f7) 1 !important;
  }
  /* Logo : prend toute la place disponible à gauche des icônes */
  .header-mb > .col-sm-3:first-child {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
  }
  .header-mb > .col-sm-3:first-child a { display: block !important; }
  .header-mb img.logo,
  .header-mb img.logo.img-fluid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 82px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  /* Icônes : collées à droite, sur la même ligne */
  .header-mb .login-cart {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 0 0 8px !important;
  }
  .header-mb .login-cart > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 18px !important;                    /* espace entre les icônes */
    margin: 0 !important;
  }
  .header-mb .login-cart > .row > div {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
  }
  .mb-loupe-col { display: block !important; }
  /* Compte et favoris : discrets */
  .header-mb .login-cart .fa-user-o,
  .header-mb .login-cart .fa-heart-o {
    font-size: 20px !important;
    color: #555 !important;
  }
  /* Loupe et panier : mis en avant */
  .header-mb .mb-loupe .fa-search,
  .header-mb .m-and-b-cart .fa-shopping-bag {
    font-size: 24px !important;
    color: #ec407a !important;
  }
  .header-mb .m-and-b-cart { position: relative !important; display: inline-block !important; }
  .header-mb .m-and-b-cart .counter {
    background: #ec407a !important;
    color: #fff !important;
    font-weight: bold !important;
    right: -7px !important;
    left: auto !important;
    top: -7px !important;
  }
  /* Recherche : cachée, s'ouvre sur une nouvelle ligne quand on touche la loupe */
  .header-mb > .col-sm-6 {
    display: none !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    order: 3 !important;
    padding: 8px 0 4px 8px !important;
  }
  body.mb-recherche-ouverte .header-mb > .col-sm-6 { display: flex !important; }
  .header-mb .search-box,
  .header-mb .search-box form,
  .header-mb .search-box .input-group,
  .header-mb .search-box .form-outline { width: 100% !important; }
  .header-mb .search-field {
    height: 40px !important;
    font-size: 16px !important;
    border-radius: 20px !important;
  }
}

/* Icônes recherche / profil / favoris / panier : effet au toucher */
.header-mb .login-cart a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.15s ease !important;
}
.header-mb .login-cart a:active {
  background: #fce4ec !important;
  transform: scale(0.88) !important;
}

/* Panier : onde rose quand il contient des articles */
body.mb-panier-plein .header-mb .m-and-b-cart {
  animation: mbPanierOnde 2.4s ease-out infinite !important;
}
body.mb-panier-plein .header-mb .m-and-b-cart .fa-shopping-bag {
  animation: mbPanierRebond 2.4s ease-in-out infinite !important;
}
@keyframes mbPanierOnde {
  0%   { box-shadow: 0 0 0 0 rgba(236, 64, 122, 0.55); }
  60%  { box-shadow: 0 0 0 14px rgba(236, 64, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(236, 64, 122, 0); }
}
@keyframes mbPanierRebond {
  0%, 100% { transform: scale(1); }
  10%      { transform: scale(1.18); }
  20%      { transform: scale(0.95); }
  30%      { transform: scale(1.06); }
  40%      { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body.mb-panier-plein .header-mb .m-and-b-cart,
  body.mb-panier-plein .header-mb .m-and-b-cart .fa-shopping-bag {
    animation: none !important;
  }
}

/* =========================================================
   C. PANIER ET PAGE DE COMMANDE
   ========================================================= */
/* Page de commande sur smartphone : champs pleine largeur */
@media (max-width: 768px) {
  body.woocommerce-checkout .form-row {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-bottom: 14px !important;
  }
  body.woocommerce-checkout .form-row label {
    display: block !important;
    width: 100% !important;
    margin-bottom: 6px !important;
  }
  body.woocommerce-checkout .form-row .woocommerce-input-wrapper,
  body.woocommerce-checkout .form-row input.input-text,
  body.woocommerce-checkout .form-row select,
  body.woocommerce-checkout .form-row textarea,
  body.woocommerce-checkout .select2-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body.woocommerce-checkout .form-row input.input-text,
  body.woocommerce-checkout .form-row select,
  body.woocommerce-checkout .form-row textarea {
    font-size: 16px !important;
    padding: 10px !important;
  }
  body.woocommerce-checkout #order_comments {
    min-height: 120px !important;
    resize: vertical !important;
  }
}

/* Boutons : centrage */
.woocommerce .wc-proceed-to-checkout,
.woocommerce-checkout #payment .place-order {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* (le bouton #place_order n'est volontairement PAS forcé en display:block :
   Mondial Relay doit pouvoir le cacher tant qu'aucun point relais n'est choisi) */
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart a.checkout-button,
.woocommerce-checkout .mrwpbutton a.modaal_link {
  display: block !important;
}

/* Boutons Valider la commande / Commander et payer / Choisir un point relais */
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart a.checkout-button,
.woocommerce-checkout #place_order,
.woocommerce-checkout .mrwpbutton a.modaal_link {
  width: 100% !important;
  float: none !important;
  margin: 15px auto 0 !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  background: #f06292 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 16px 20px !important;
  font-size: 19px !important;
  font-weight: bold !important;
  text-align: center !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 12px rgba(240, 98, 146, 0.35) !important;
  outline: none !important;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart a.checkout-button:hover,
.woocommerce-checkout #place_order:hover,
.woocommerce-checkout .mrwpbutton a.modaal_link:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:focus,
.woocommerce-cart a.checkout-button:focus,
.woocommerce-checkout #place_order:focus,
.woocommerce-checkout .mrwpbutton a.modaal_link:focus {
  background: #ec407a !important;
  color: #fff !important;
  outline: none !important;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button:active,
.woocommerce-cart a.checkout-button:active,
.woocommerce-checkout #place_order:active,
.woocommerce-checkout .mrwpbutton a.modaal_link:active {
  background: #f48fb1 !important;
  color: #fff !important;
  transform: scale(0.97) !important;
  box-shadow: 0 2px 6px rgba(240, 98, 146, 0.3) !important;
}

/* Cadenas devant le texte du bouton de paiement */
.woocommerce-checkout #place_order::before {
  content: "🔒 ";
}

/* Petit texte d'aide au-dessus du bouton Mondial Relay */
.woocommerce-checkout .mrwpbutton::before {
  content: "📍 Étape obligatoire avant le paiement :";
  display: block;
  font-weight: bold;
  color: #ec407a;
  margin-top: 10px;
}

/* Quand PayPal est choisi : bouton jaune, texte gris doux */
body.mb-paypal-choisi #place_order,
body.mb-paypal-choisi #place_order:focus {
  background: #ffc439 !important;
  color: #4a4a4a !important;
  box-shadow: 0 4px 12px rgba(255, 196, 57, 0.45) !important;
}
body.mb-paypal-choisi #place_order:hover {
  background: #f2b600 !important;
  color: #4a4a4a !important;
}
body.mb-paypal-choisi #place_order:active {
  background: #ffd873 !important;
  color: #4a4a4a !important;
}

/* Smartphone : effet "onde" sur les boutons */
@media (max-width: 768px) {
  .woocommerce .wc-proceed-to-checkout a.checkout-button,
  .woocommerce-cart a.checkout-button,
  .woocommerce-checkout #place_order,
  .woocommerce-checkout .mrwpbutton a.modaal_link {
    animation: mbPulseRose 1.6s ease-out infinite !important;
  }
  body.mb-paypal-choisi #place_order {
    animation: mbPulseJaune 1.6s ease-out infinite !important;
  }
}
@keyframes mbPulseRose {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(240, 98, 146, 0.75), 0 0 0 0 rgba(240, 98, 146, 0.45); }
  12%  { transform: scale(1.06); }
  24%  { transform: scale(0.99); }
  34%  { transform: scale(1.03); }
  45%  { transform: scale(1); }
  70%  { box-shadow: 0 0 0 22px rgba(240, 98, 146, 0), 0 0 0 10px rgba(240, 98, 146, 0.15); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(240, 98, 146, 0), 0 0 0 0 rgba(240, 98, 146, 0); }
}
@keyframes mbPulseJaune {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(255, 196, 57, 0.85), 0 0 0 0 rgba(255, 196, 57, 0.5); }
  12%  { transform: scale(1.06); }
  24%  { transform: scale(0.99); }
  34%  { transform: scale(1.03); }
  45%  { transform: scale(1); }
  70%  { box-shadow: 0 0 0 22px rgba(255, 196, 57, 0), 0 0 0 10px rgba(255, 196, 57, 0.15); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(255, 196, 57, 0), 0 0 0 0 rgba(255, 196, 57, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .woocommerce .wc-proceed-to-checkout a.checkout-button,
  .woocommerce-cart a.checkout-button,
  .woocommerce-checkout #place_order,
  .woocommerce-checkout .mrwpbutton a.modaal_link {
    animation: none !important;
  }
}

/* Pendant la validation de la commande : rond qui tourne + message */
form.checkout.processing #place_order {
  background: #f48fb1 !important;
  color: #fff !important;
  animation: none !important;
  transform: none !important;
  cursor: wait !important;
}
body.mb-paypal-choisi form.checkout.processing #place_order {
  background: #ffd873 !important;
  color: #4a4a4a !important;
}
form.checkout.processing .blockUI.blockOverlay {
  background: rgba(255, 240, 246, 0.55) !important;
  opacity: 1 !important;
}
form.checkout.processing .blockUI.blockOverlay::before {
  content: "";
  position: fixed;
  top: 42%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 6px solid #fde4ec;
  border-top-color: #f06292;
  border-right-color: #f06292;
  animation: mbTourne 0.9s linear infinite;
  z-index: 100000;
}
form.checkout.processing .blockUI.blockOverlay::after {
  content: "🫧 Validation en cours…\A Merci de ne pas fermer cette page";
  white-space: pre-line;
  position: fixed;
  top: calc(42% + 50px);
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 320px;
  background: #fff;
  color: #ec407a;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(240, 98, 146, 0.25);
  z-index: 100000;
}
@keyframes mbTourne {
  to { transform: rotate(360deg); }
}

/* =========================================================
   D. PAGE D'ACCUEIL (le reste du style est dans le bloc HTML de la page "Accueil")
   ========================================================= */
/* Masquer le titre "Accueil" */
.page-id-6335 h1 {
  display: none !important;
}

/* Le trait coloré souligne tout le titre de section */
.mb-st h3 { display: inline-block !important; }
.mb-st h3:after { width: 100% !important; }

/* Boutons des produits harmonisés (sans case de quantité) */
.mb-accueil li.product .quantity { display: none !important; }
.mb-accueil li.product form.cart { margin: 0 !important; }
.mb-accueil li.product form.cart button,
.mb-accueil li.product button.single_add_to_cart_button {
  display: block !important;
  width: 100% !important;
  background: #fce4ec !important;
  color: #ec407a !important;
  border: none !important;
  border-radius: 18px !important;
  padding: 7px 8px !important;
  font-size: 12.5px !important;
  font-weight: bold !important;
  text-align: center !important;
}

/* "Toute la boutique" : plus de numéros de pages + message de chargement */
.mb-grid .woocommerce-pagination { display: none !important; }
.mb-chargement {
  text-align: center;
  color: #ec407a;
  font-weight: bold;
  font-size: 14px;
  padding: 22px 0 30px;
  opacity: 0;
  transition: opacity .3s;
}
.mb-chargement.actif,
.mb-chargement.fin { opacity: 1; }

/* =========================================================
   E. PAGES CATÉGORIES : sous-catégories en pastilles (2 colonnes), produits en dessous
   ========================================================= */
.tax-product_cat ul.products {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 12px !important;
}
/* Retour à la ligne entre les pastilles et les produits */
.tax-product_cat ul.products::before {
  content: "" !important;
  display: block !important;
  flex-basis: 100% !important;
  order: 1 !important;
  height: 6px !important;
}
.tax-product_cat ul.products::after { display: none !important; }

/* Sous-catégories = pastilles en 2 colonnes */
.tax-product_cat ul.products li.product-category {
  order: 0 !important;
  flex: 0 0 calc(50% - 6px) !important;
  width: calc(50% - 6px) !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  list-style: none !important;
}
.tax-product_cat ul.products li.product-category img { display: none !important; }
.tax-product_cat ul.products li.product-category a { display: block !important; text-decoration: none !important; }
.tax-product_cat ul.products li.product-category h2 {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 8px 6px !important;
  font-size: 12.5px !important;
  line-height: 1.25 !important;
  font-weight: normal !important;
  text-align: center !important;
  white-space: normal !important;
  color: #444 !important;
  background: #fff !important;
  border: 1.5px solid #f8bbd0 !important;
  border-radius: 20px !important;
}
.tax-product_cat ul.products li.product-category a:active h2 { background: #fce4ec !important; }
.tax-product_cat ul.products li.product-category mark.count {
  background: none !important;
  color: #ec407a !important;
  font-weight: bold !important;
  padding: 0 !important;
}

/* Produits : 2 colonnes sur smartphone, 4 sur ordinateur */
.tax-product_cat ul.products li.product:not(.product-category) {
  order: 2 !important;
  flex: 0 0 calc(50% - 6px) !important;
  width: calc(50% - 6px) !important;
  max-width: calc(50% - 6px) !important;
  margin: 0 0 14px !important;
  float: none !important;
  clear: none !important;
  text-align: left !important;
}
@media (min-width: 768px) {
  .tax-product_cat ul.products li.product:not(.product-category) {
    flex-basis: calc(25% - 9px) !important;
    width: calc(25% - 9px) !important;
    max-width: calc(25% - 9px) !important;
  }
}

/* Nombre de résultats + menu de tri : alignés, pleine largeur */
.tax-product_cat .woocommerce-result-count {
  float: none !important;
  margin: 0 0 8px !important;
  font-size: 13px !important;
  color: #888 !important;
}
.tax-product_cat .woocommerce-ordering {
  float: none !important;
  width: 100% !important;
  margin: 0 0 14px !important;
}
.tax-product_cat .woocommerce-ordering select {
  width: 100% !important;
  height: 40px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  color: #444 !important;
  background-color: #fff !important;
  border: 1.5px solid #f8bbd0 !important;
  border-radius: 20px !important;
}

/* Fiches produits : comme sur la page d'accueil */
.tax-product_cat li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px !important;
  margin: 0 0 8px !important;
}
.tax-product_cat li.product .woocommerce-loop-product__title {
  font-size: 14.5px !important;       /* un peu plus grand (avant : 13,5 px) */
  line-height: 1.3 !important;
  color: #333 !important;
  margin: 0 2px 4px !important;
  padding: 0 !important;
}
.tax-product_cat li.product .price {
  display: block !important;
  font-size: 14px !important;
  font-weight: bold !important;
  color: #222 !important;
  margin: 0 2px 8px !important;
}
.tax-product_cat li.product .quantity { display: none !important; }
.tax-product_cat li.product form.cart { margin: 0 !important; }
.tax-product_cat li.product a.button,
.tax-product_cat li.product form.cart button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background: #fce4ec !important;
  color: #ec407a !important;
  border: none !important;
  border-radius: 18px !important;
  padding: 7px 8px !important;
  font-size: 12.5px !important;
  font-weight: bold !important;
  margin: 0 !important;
}

/* =========================================================
   F. PRODUITS EN RUPTURE DE STOCK
   ========================================================= */
/* Accueil : les produits épuisés sont cachés (vitrine = disponible tout de suite).
   Sélecteur volontairement précis pour rester prioritaire sur la section H. */
.mb-accueil ul.products li.product.outofstock { display: none !important; }

/* Partout ailleurs : on retire l'ancienne étiquette blanche du thème */
li.product.outofstock::before,
li.product.outofstock::after,
li.product.outofstock > a.woocommerce-LoopProduct-link::after {
  content: none !important;
  display: none !important;
}

/* Photo légèrement adoucie */
li.product.outofstock img {
  opacity: 0.55 !important;
  filter: grayscale(25%) !important;
}

/* Nouvelle étiquette rose dans le coin de la photo */
li.product.outofstock > a.woocommerce-LoopProduct-link {
  position: relative !important;
  display: block !important;
}
li.product.outofstock > a.woocommerce-LoopProduct-link::before {
  content: "Victime de son succès 💗" !important;
  display: block !important;
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  z-index: 3 !important;
  max-width: 70% !important;
  padding: 5px 9px !important;
  background: #f06292 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: bold !important;
  line-height: 1.2 !important;
  text-align: center !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 6px rgba(240, 98, 146, 0.35) !important;
}

/* Bouton "Lire la suite" remplacé par "Bientôt de retour" */
li.product.outofstock a.button {
  font-size: 0 !important;
  background: #f5f5f5 !important;
  color: #999 !important;
}
li.product.outofstock a.button::after {
  content: "Bientôt de retour" !important;
  font-size: 12.5px !important;
}

/* Pages catégories : les produits épuisés passent à la fin de la liste */
.tax-product_cat ul.products li.product.outofstock { order: 3 !important; }

/* =========================================================
   G. ÉTIQUETTE « PROMO ! » EN ROSE PARTOUT (accueil, catégories, fiches produits)
   ========================================================= */
.woocommerce span.onsale,
.woocommerce-page span.onsale,
span.onsale,
.onsale {
  background: #f06292 !important;
  background-color: #f06292 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: bold !important;
  box-shadow: 0 2px 6px rgba(240, 98, 146, 0.35) !important;
}

/* =========================================================
   H. FICHES PRODUITS PARFAITEMENT ALIGNÉES + ÉTOILES DORÉES
   ========================================================= */
/* 1. Toutes les cartes d'une même rangée ont la même hauteur */
.mb-car ul.products,
.mb-grid ul.products,
.tax-product_cat ul.products {
  align-items: stretch !important;
}
.mb-accueil ul.products li.product,
.tax-product_cat ul.products li.product:not(.product-category) {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  align-self: stretch !important;
}

/* 2. La zone photo + titre + étoiles + prix prend toute la place disponible */
.mb-accueil ul.products li.product > a.woocommerce-LoopProduct-link,
.tax-product_cat ul.products li.product:not(.product-category) > a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  position: relative !important;
}

/* 3. Titre : place réservée pour 3 lignes */
.mb-accueil li.product .woocommerce-loop-product__title,
.tax-product_cat li.product .woocommerce-loop-product__title {
  min-height: 57px !important;        /* 3 lignes à 14,5 px : les prix et boutons restent alignés */
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* 4. Le prix descend tout en bas de la zone produit : tous les prix alignés */
.mb-accueil li.product .price,
.tax-product_cat li.product .price {
  margin-top: auto !important;
  min-height: 20px !important;
}

/* 5. Le bouton "Ajouter au panier" est toujours collé en bas de la carte */
.mb-accueil li.product > a.button,
.mb-accueil li.product > form.cart,
.tax-product_cat li.product > a.button,
.tax-product_cat li.product > form.cart {
  margin-top: 8px !important;
  flex: 0 0 auto !important;
}

/* 6. Étoiles des avis : jaune doré, petites et discrètes */
.star-rating {
  font-size: 11px !important;
  margin: 0 2px 6px !important;
  float: none !important;
  color: #f5b301 !important;
}
.star-rating::before {
  color: #e0e0e0 !important;
}
.star-rating span,
.star-rating span::before {
  color: #f5b301 !important;
}

/* =========================================================
   I. CARROUSELS DE L'ACCUEIL : glissement horizontal uniquement, sans clignotement
   ========================================================= */
/* Le carrousel glisse de gauche à droite, jamais de haut en bas :
   quand on fait défiler l'accueil, c'est la page qui bouge, pas le bloc */
.mb-car ul.products {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity !important;   /* alignement plus doux */
}

/* Images : plus d'effet d'apparition qui clignote pendant le glissement */
.mb-car ul.products li.product img {
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
}

/* Étiquette Promo : sans ombre dans les carrousels (l'ombre clignotait) */
.mb-car ul.products li.product .onsale {
  box-shadow: none !important;
  transition: none !important;
  animation: none !important;
}
/* =========================================================
   J. ACCUEIL : FICHES COMPACTES — titre complet, prix + bouton collés en bas
   ========================================================= */
/* Titre affiché en entier (plus de place réservée, plus de « … ») */
.mb-accueil li.product .woocommerce-loop-product__title {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  min-height: 0 !important;
  line-height: 1.3 !important;
  margin: 0 2px 4px !important;
  padding: 0 !important;
}
.mb-accueil li.product img { margin-bottom: 6px !important; }
.mb-accueil li.product .star-rating { margin: 0 2px 4px !important; }

/* Prix : poussé tout en bas de la zone produit = tous les prix alignés */
.mb-accueil li.product .price {
  min-height: 0 !important;
  margin: auto 2px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

/* Bouton « Ajouter au panier » : juste sous le prix */
.mb-accueil li.product > a.button,
.mb-accueil li.product > form.cart {
  margin-top: 5px !important;
}

/* =========================================================
   K. TITRES DE L'ACCUEIL + ÉTOILES POSÉES SUR LA PHOTO
      (accueil, catégories, étiquettes, boutique)
   ========================================================= */
/* Accueil : titre 12,5 px pour tenir sur 2 lignes la plupart du temps */
.mb-accueil li.product .woocommerce-loop-product__title {
  font-size: 13.5px !important;       /* un peu plus grand (avant : 12,5 px) */
}
/* Étoiles en bas à gauche de la photo, sur une petite pastille blanche.
   margin-top en % = % de la LARGEUR : comme la photo est carrée,
   les étoiles restent au bon endroit quelle que soit la taille de l'écran */
.mb-accueil li.product > a.woocommerce-LoopProduct-link,
.tax-product_cat li.product > a.woocommerce-LoopProduct-link,
.tax-product_tag li.product > a.woocommerce-LoopProduct-link,
.post-type-archive-product li.product > a.woocommerce-LoopProduct-link {
  position: relative !important;
}
.mb-accueil li.product .star-rating,
.tax-product_cat li.product .star-rating,
.tax-product_tag li.product .star-rating,
.post-type-archive-product li.product .star-rating {
  position: absolute !important;
  top: 0 !important;
  left: 8px !important;
  margin: calc(100% - 22px) 0 0 0 !important;
  font-size: 11px !important;
  z-index: 2 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-radius: 3px !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92) !important;
}

/* Accueil : pas de « Affichage de 1–12 sur … résultats » ni de menu de tri */
.mb-accueil .woocommerce-result-count,
.mb-accueil .woocommerce-ordering {
  display: none !important;
}
/* Accueil : petit rond rose qui tourne pendant le chargement de nouveaux produits */
.mb-chargement.actif::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 4px solid #fde4ec;
  border-top-color: #f06292;
  border-right-color: #f06292;
  animation: mbTourne 0.9s linear infinite;
}

/* =========================================================
   L. FICHE PRODUIT SUR SMARTPHONE
      photo pleine largeur sans flèches, titre collé sous la photo
   ========================================================= */
@media (max-width: 767px) {
  /* Tout en une seule colonne : photo, puis titre, prix, description, bouton */
  .single-product div.product div.images,
  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .wcgs-gallery-slider,
  .single-product div.product #wpgs-gallery,
  .single-product div.product .summary,
  .single-product div.product .entry-summary,
  .single-product div.product > [class*="col-sm-"],
  .single-product div.product > [class*="col-md-"],
  .single-product div.product > .row > [class*="col-sm-"],
  .single-product div.product > .row > [class*="col-md-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .single-product div.product div.images img,
  .single-product div.product .woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
  }

  /* Pas de vignettes ni de flèches : on glisse au doigt, les points restent */
  .single-product div.product .flex-control-thumbs,
  .single-product div.product .wcgs-thumb,
  .single-product div.product .gallery-thumbs,
  .single-product .gallery-navigation-carousel-wrapper,
  .single-product .gallery-navigation-carousel,
  .single-product .wcgs-thumb-wrapper,
  .single-product div.images .swiper-button-prev,
  .single-product div.images .swiper-button-next,
  .single-product .wcgs-swiper-arrow,
  .single-product #wpgs-gallery .swiper-button-prev,
  .single-product #wpgs-gallery .swiper-button-next,
  .single-product .woocommerce-product-gallery .flex-direction-nav {
    display: none !important;
  }

  /* Pas de vide sous la photo */
  .single-product div.images,
  .single-product .woocommerce-product-gallery,
  .single-product #wpgs-gallery {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .single-product .summary,
  .single-product .entry-summary {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Titre : 22 px, collé sous la photo */
  .single-product div.product .product_title,
  .single-product .summary h1,
  .single-product .entry-summary h1 {
    font-size: 22px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    margin: 0 0 4px !important;
    word-break: normal !important;
  }
  .single-product .summary .woocommerce-product-rating {
    margin: 0 0 6px !important;
  }
  /* Prix */
  .single-product div.product p.price,
  .single-product div.product span.price {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #222 !important;
    margin: 0 0 10px !important;
  }
  /* Description courte (et son éventuel titre H3 à taille normale) */
  .single-product div.product .woocommerce-product-details__short-description {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  .single-product .woocommerce-product-details__short-description h3 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin: 0 0 8px !important;
  }
  /* Bouton Ajouter au panier : grand bouton rose */
  .single-product div.product form.cart {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    margin: 12px 0 !important;
  }
  .single-product div.product form.cart button.single_add_to_cart_button {
    flex: 1 1 auto !important;
    background: #f06292 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 14px 16px !important;
    font-size: 17px !important;
    font-weight: bold !important;
  }
  .single-product div.product .product_meta {
    font-size: 12px !important;
    color: #888 !important;
  }
}

/* Description courte repliée sur smartphone (avec l'extrait « Lire la suite ») */
.mb-court { max-height: 110px; overflow: hidden; position: relative; }
.mb-court::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background: linear-gradient(rgba(255,255,255,0), #fff);
}
.mb-lire-suite {
  background: none !important; border: none !important; color: #ec407a !important;
  font-weight: bold !important; font-size: 14px !important; padding: 4px 0 12px !important;
}

/* =========================================================
   M. FICHE PRODUIT : COINS ARRONDIS DE LA PHOTO (mobile + ordinateur)
   ========================================================= */
.single-product div.images .wcgs-carousel,
.single-product #wpgs-gallery .swiper,
.single-product #wpgs-gallery .swiper-container,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery .flex-viewport,
.single-product .woocommerce-product-gallery__image {
  border-radius: 14px !important;
  overflow: hidden !important;
}
.single-product div.images img,
.single-product .woocommerce-product-gallery img {
  border-radius: 14px !important;
}

/* =========================================================
   N. BANDEAU NOIR « BIENVENUE » (smartphone, apparaît au défilement)
      (avec l'extrait « Bandeau Bienvenue (mobile) »)
   ========================================================= */
#mb-bienvenue {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 99999;
  height: 26px; line-height: 26px;
  background: #111; color: #fff;
  font-size: 12px; letter-spacing: .3px; text-align: center;
  transform: translateY(-100%);
  transition: transform .25s ease;
  pointer-events: none;
}
#mb-bienvenue.visible { transform: translateY(0); }
@media (min-width: 601px) and (max-width: 767px) {
  body.admin-bar #mb-bienvenue { top: 46px; }
}
@media (min-width: 768px) {
  #mb-bienvenue { display: none !important; }
}

/* =========================================================
   O. FICHE PRODUIT : ONGLETS EN PASTILLES QUI GLISSENT + AVIS SOUS LES ONGLETS
      (avec les extraits « avis sous les onglets » et « Composition + Précautions »)
   ========================================================= */
.single-product .woocommerce-tabs ul.tabs {
  display: flex !important; flex-wrap: nowrap !important; gap: 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  list-style: none; padding: 4px 2px 10px !important; margin: 0 0 12px !important;
  border: 0 !important;
}
.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs::after,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.single-product .woocommerce-tabs ul.tabs li {
  flex: 0 0 auto !important; float: none !important;
  margin: 0 !important; padding: 0 !important;
  border: 1.5px solid #f06292 !important; border-radius: 30px !important;
  background: #fff !important; box-shadow: none !important;
}
.single-product .woocommerce-tabs ul.tabs li a {
  display: block !important; padding: 8px 16px !important;
  font-size: 14px !important; font-weight: 600 !important;
  color: #ec407a !important; white-space: nowrap; text-decoration: none !important;
}
.single-product .woocommerce-tabs ul.tabs li.active { background: #f06292 !important; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
/* On cache « Informations complémentaires » et l'onglet Avis (affiché plus bas) */
.single-product .woocommerce-tabs ul.tabs li.additional_information_tab,
.single-product .woocommerce-tabs ul.tabs li.reviews_tab { display: none !important; }
.single-product .woocommerce-tabs .panel { border: 0 !important; padding: 0 2px !important; margin: 0 !important; }
.single-product .woocommerce-tabs .panel > h2:first-child { display: none !important; }

/* Bloc « Avis clients » sous les pastilles */
#mb-avis { margin: 28px 0 10px; padding-top: 18px; border-top: 1px solid #f8d7e3; }
#mb-avis #tab-reviews { display: block !important; }
#mb-avis .woocommerce-Reviews-title {
  font-size: 22px !important; text-align: center; margin: 0 0 14px !important;
}

/* =========================================================
   Q. ROULETTE DE CHARGEMENT QUAND ON TOUCHE UN PRODUIT
      (avec l'extrait « Produits – roulette au clic »)
   ========================================================= */
li.product.mb-ouvre > a.woocommerce-LoopProduct-link { position: relative !important; }
li.product.mb-ouvre > a.woocommerce-LoopProduct-link::after {
  content: "" !important;
  display: block !important;
  position: absolute; left: 50%; top: 0;
  width: 36px; height: 36px;
  margin: calc(50% - 18px) 0 0 -18px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 4px solid #fde4ec;
  border-top-color: #f06292; border-right-color: #f06292;
  background: rgba(255, 255, 255, .7);
  animation: mbTourne .9s linear infinite;
  z-index: 5;
}
li.product.mb-ouvre img,
.mb-car ul.products li.product.mb-ouvre img { opacity: .55 !important; }
/* =========================================================
   R. EFFET « J'APPUIE » SUR LA PHOTO D'UN PRODUIT
   ========================================================= */
li.product > a.woocommerce-LoopProduct-link { -webkit-tap-highlight-color: transparent; }
li.product > a.woocommerce-LoopProduct-link img {
  transition: transform .12s ease !important;
}
li.product > a.woocommerce-LoopProduct-link:active img,
.mb-car ul.products li.product > a.woocommerce-LoopProduct-link:active img {
  transform: scale(.95) !important;
}

/* =========================================================
   S. CARTE « AJOUTÉ AU PANIER » QUI GLISSE DEPUIS LA DROITE
      avec le résumé de tous les articles du panier
      (avec l'extrait « Panier – carte Ajouté (droite) »)
   ========================================================= */
#mb-ajout {
  position: fixed; top: 70px; right: 0;
  width: 55%; max-width: 260px; box-sizing: border-box;
  max-height: calc(100vh - 90px);
  display: flex; flex-direction: column;
  z-index: 100001;
  background: #fff;
  border: 1px solid #f8bbd0; border-right: 0;
  border-radius: 16px 0 0 16px;
  box-shadow: 0 8px 24px rgba(240, 98, 146, .25);
  padding: 12px;
  font-size: 13px;
  transform: translateX(105%);
  transition: transform .35s ease;
}
#mb-ajout.visible { transform: translateX(0); }
#mb-ajout .mb-aj-tete {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-weight: bold; color: #ec407a;
}
#mb-ajout .mb-aj-fermer {
  background: none !important; border: 0 !important; box-shadow: none !important;
  font-size: 22px; line-height: 1; color: #999 !important; padding: 0 2px !important; cursor: pointer;
}
/* Rappel du produit qui vient d'être ajouté */
#mb-ajout .mb-aj-ajoute {
  background: #fce4ec; color: #c2185b;
  border-radius: 8px; padding: 5px 8px;
  font-size: 12px; line-height: 1.3; margin-bottom: 8px;
}
#mb-ajout .mb-aj-titre-liste { font-weight: bold; color: #333; font-size: 12.5px; margin-bottom: 4px; }
/* Liste des articles, l'un sous l'autre (défile si le panier est long) */
#mb-ajout .mb-aj-liste {
  list-style: none; margin: 0; padding: 0;
  overflow-y: auto; max-height: 210px; flex: 0 1 auto;
}
#mb-ajout .mb-aj-liste li {
  display: flex; gap: 8px; align-items: center;
  margin: 0; padding: 6px 0;
  border-bottom: 1px solid #f8d7e3;
}
#mb-ajout .mb-aj-liste li:last-child { border-bottom: 0; }
#mb-ajout .mb-aj-liste img {
  width: 36px; height: 36px; flex: none;
  object-fit: cover; border-radius: 8px; margin: 0;
}
#mb-ajout .mb-aj-nom {
  font-size: 12px; color: #333; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#mb-ajout .mb-aj-qte { font-size: 11.5px; color: #888; margin-top: 1px; }
#mb-ajout .mb-aj-commander {
  display: block; margin-top: 10px;
  background: #f06292; color: #fff !important;
  text-align: center; border-radius: 20px; padding: 9px;
  font-weight: bold; text-decoration: none !important;
}
#mb-ajout .mb-aj-voir {
  display: block; text-align: center; margin-top: 6px;
  color: #ec407a !important; font-size: 12px; text-decoration: none !important;
}
@media (min-width: 768px) {
  #mb-ajout { width: 300px; max-width: none; top: 110px; }
}
/* Le lien « Voir le panier » ajouté sous le bouton n'est plus utile (la carte le remplace) */
li.product a.added_to_cart { display: none !important; }

/* S-bis. Carte « Ajouté au panier » : même largeur (78 %), mais PHOTOS DES PRODUITS PLUS GRANDES
          et nom du produit sur 3 lignes maximum */
#mb-ajout {
  top: 60px;
  width: 78%; max-width: 380px;
  max-height: calc(100vh - 80px);
  padding: 16px;
  font-size: 15px;
}
#mb-ajout .mb-aj-tete { font-size: 17px; margin-bottom: 10px; }
#mb-ajout .mb-aj-fermer { font-size: 28px !important; }
#mb-ajout .mb-aj-ajoute { font-size: 14.5px; padding: 8px 10px; margin-bottom: 10px; }
#mb-ajout .mb-aj-titre-liste { font-size: 15px; margin-bottom: 6px; }
#mb-ajout .mb-aj-liste { max-height: 58vh; }
#mb-ajout .mb-aj-liste li { gap: 12px; padding: 10px 0; align-items: flex-start; }
#mb-ajout .mb-aj-liste img { width: 124px; height: 124px; border-radius: 14px; }
#mb-ajout .mb-aj-nom {
  font-size: 16.5px; line-height: 1.3; color: #222;
  -webkit-line-clamp: 3;                 /* jusqu'à 3 lignes pour le nom */
}
#mb-ajout .mb-aj-qte { font-size: 14px; margin-top: 4px; }
#mb-ajout .mb-aj-commander { font-size: 16px; padding: 13px; margin-top: 12px; }
#mb-ajout .mb-aj-voir { font-size: 14.5px; margin-top: 8px; }
@media (min-width: 768px) {
  #mb-ajout { width: 400px; max-width: none; top: 100px; }
}

/* S-ter. Poignée rose à gauche pour glisser la carte vers la droite */
#mb-ajout { border-left: 3px solid #f06292; padding-left: 22px; }
#mb-ajout::before {
  content: ""; position: absolute; left: 7px; top: 50%;
  width: 5px; height: 56px; margin-top: -28px;
  border-radius: 5px; background: #f06292; opacity: .85;
}

/* T. VOILE SUR LA VITRINE + LISTE DU PANIER QUI NE « DÉBORDE » JAMAIS SUR LA PAGE */
#mb-voile {
  position: fixed; inset: 0;
  z-index: 100000;                       /* juste sous la carte (100001) */
  background: transparent;              /* invisible : la vitrine reste telle quelle */
  touch-action: none;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
#mb-voile.visible { opacity: 1; visibility: visible; }
#mb-ajout { overflow: hidden !important; touch-action: none; overscroll-behavior: contain; }
#mb-ajout .mb-aj-liste {
  flex: 1 1 auto !important; min-height: 0 !important;
  overflow-y: auto !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;   /* arrivé au bout de la liste, la page ne prend pas le relais */
  -webkit-overflow-scrolling: touch;
}

/* U. Poignée rose de la carte du panier : petite onde + léger mouvement vers la droite
      pour inviter à glisser la carte et la refermer */
#mb-ajout::before {
  animation: mbPoigneeOnde 1.8s ease-out infinite;
}
@keyframes mbPoigneeOnde {
  0%   { box-shadow: 0 0 0 0 rgba(240, 98, 146, .6); transform: translateX(0); }
  25%  { transform: translateX(3px); }
  45%  { transform: translateX(0); }
  70%  { box-shadow: 0 0 0 9px rgba(240, 98, 146, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 98, 146, 0); transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  #mb-ajout::before { animation: none; }
}

/* V. Carte du panier : effet « bouton poussoir » sur Commander et Voir tout le panier */
#mb-ajout .mb-aj-commander,
#mb-ajout .mb-aj-voir {
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
  user-select: none;
}
#mb-ajout .mb-aj-commander {
  box-shadow: 0 4px 0 #c2185b, 0 6px 12px rgba(240, 98, 146, .3);   /* relief du bouton */
}
#mb-ajout .mb-aj-commander:active {
  transform: translateY(3px) scale(.98);
  box-shadow: 0 1px 0 #c2185b, 0 2px 4px rgba(240, 98, 146, .25);   /* le bouton « s'enfonce » */
  background: #ec407a;
}
#mb-ajout .mb-aj-voir {
  border-radius: 20px;
  padding: 8px;
}
#mb-ajout .mb-aj-voir:active {
  transform: scale(.95);
  background: #fce4ec;
}

/* W. Carte du panier : onde rose sur le bouton Commander (le relief du bouton est conservé) */
#mb-ajout .mb-aj-commander {
  animation: mbCommanderOnde 1.8s ease-out infinite;
}
@keyframes mbCommanderOnde {
  0%   { transform: scale(1);
         box-shadow: 0 4px 0 #c2185b, 0 0 0 0 rgba(240, 98, 146, .65), 0 0 0 0 rgba(240, 98, 146, .4); }
  12%  { transform: scale(1.04); }
  24%  { transform: scale(.99); }
  34%  { transform: scale(1.02); }
  45%  { transform: scale(1); }
  70%  { box-shadow: 0 4px 0 #c2185b, 0 0 0 16px rgba(240, 98, 146, 0), 0 0 0 8px rgba(240, 98, 146, .12); }
  100% { transform: scale(1);
         box-shadow: 0 4px 0 #c2185b, 0 0 0 0 rgba(240, 98, 146, 0), 0 0 0 0 rgba(240, 98, 146, 0); }
}
/* Quand on appuie : l'onde s'arrête et le bouton s'enfonce */
#mb-ajout .mb-aj-commander:active { animation: none; }
@media (prefers-reduced-motion: reduce) {
  #mb-ajout .mb-aj-commander { animation: none; }
}

/* X. Carte du panier : sélecteur de quantité [ − ] 2 [ + ] sous le nom de chaque article */
#mb-ajout .mb-aj-infos { flex: 1 1 auto; min-width: 0; }
#mb-ajout .mb-qte {
  display: inline-flex; align-items: center;
  margin-top: 8px;
  border: 1.5px solid #f06292; border-radius: 30px;
  background: #fff; overflow: hidden;
}
#mb-ajout .mb-qte button {
  width: 38px; height: 34px;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: #fce4ec !important; color: #ec407a !important;
  font-size: 22px !important; font-weight: bold !important; line-height: 1 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .1s ease, transform .1s ease;
}
#mb-ajout .mb-qte button:active { background: #f8bbd0 !important; transform: scale(.9); }
#mb-ajout .mb-qte-n {
  min-width: 34px; text-align: center;
  font-size: 16px; font-weight: bold; color: #333;
}
/* En attente de confirmation du serveur (juste après l'ajout) : sélecteur grisé une seconde */
#mb-ajout .mb-qte-attente { opacity: .45; pointer-events: none; }
/* Article ramené à 0 : il s'estompe avant de disparaître */
#mb-ajout .mb-aj-liste li.mb-aj-retire { opacity: .35; transition: opacity .3s ease; }

/* Y. Boutique : le bouton « Ajouter au panier » est REMPLACÉ, au même endroit, par [ − ] 2 [ + ]
      quand le produit est dans le panier (avec l'extrait « Boutique – boutons − / + ») */
li.product.mb-dans-panier a.add_to_cart_button { display: none !important; }
li.product .mb-qte-boutique {
  display: flex !important; align-items: center; justify-content: space-between;
  width: 100%; box-sizing: border-box;
  height: 32px; margin: 5px 0 0 !important; flex: 0 0 auto !important;
  background: #fce4ec; border-radius: 18px; overflow: hidden;
  animation: mbQbEntre .35s ease-out;
}
.tax-product_cat li.product .mb-qte-boutique { margin-top: 8px !important; }
@keyframes mbQbEntre {
  from { transform: translateX(40%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}
li.product .mb-qte-boutique button {
  width: 40px; height: 32px; flex: 0 0 40px;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: #f06292 !important; color: #fff !important;
  font-size: 20px !important; font-weight: bold !important; line-height: 1 !important;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .1s ease, transform .1s ease;
}
li.product .mb-qte-boutique button:active { background: #ec407a !important; transform: scale(.9); }
li.product .mb-qte-boutique .mb-qb-n {
  flex: 1 1 auto; text-align: center;
  font-size: 14px; font-weight: bold; color: #ec407a;
}
/* Le chiffre « rebondit » à chaque toucher */
li.product .mb-qte-boutique .mb-qb-n.mb-qb-bond { animation: mbQbBond .3s ease-out; }
@keyframes mbQbBond {
  0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); }
}
li.product .mb-qte-boutique.mb-qb-sortie { opacity: .4; transition: opacity .3s ease; }

/* Bandeau de confirmation en bas de l'écran : « ✓ Panier mis à jour : 5 × … » */
#mb-toast {
  position: fixed; left: 50%; bottom: 18px;
  transform: translate(-50%, 140%);
  max-width: 90%; box-sizing: border-box;
  z-index: 100002;
  background: #f06292; color: #fff;
  font-size: 14px; font-weight: bold; line-height: 1.3; text-align: center;
  padding: 10px 16px; border-radius: 22px;
  box-shadow: 0 6px 18px rgba(240, 98, 146, .35);
  pointer-events: none;
  transition: transform .3s ease;
}
#mb-toast.visible { transform: translate(-50%, 0); }

/* Z. Petit message sous un sélecteur − / + (ex. stock maximum atteint) */
.mb-qb-msg {
  margin-top: 4px;
  font-size: 11.5px; line-height: 1.3;
  color: #c62828; text-align: center;
}
#mb-ajout .mb-qb-msg { text-align: left; font-size: 12.5px; }


/* AA. Page Panier : [ − ] 2 [ + ] à la place de la case de quantité, mise à jour automatique
       (avec l'extrait « Page panier – boutons − / + ») */
.woocommerce-cart-form [name="update_cart"] { display: none !important; }   /* plus besoin de ce bouton */
.woocommerce-cart-form .quantity.mb-qp {
  display: inline-flex !important; align-items: center;
  border: 1.5px solid #f06292; border-radius: 30px;
  background: #fff; overflow: hidden;
}
.woocommerce-cart-form .quantity.mb-qp button {
  width: 40px; height: 38px; flex: 0 0 40px;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: #fce4ec !important; color: #ec407a !important;
  font-size: 22px !important; font-weight: bold !important; line-height: 1 !important;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .1s ease, transform .1s ease;
}
.woocommerce-cart-form .quantity.mb-qp button:active { background: #f8bbd0 !important; transform: scale(.9); }
.woocommerce-cart-form .quantity.mb-qp input.qty {
  width: 44px !important; height: 38px !important;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; box-shadow: none !important; background: #fff !important;
  text-align: center; font-size: 16px !important; font-weight: bold; color: #333;
  -moz-appearance: textfield; appearance: textfield;
}
.woocommerce-cart-form .quantity.mb-qp input.qty::-webkit-outer-spin-button,
.woocommerce-cart-form .quantity.mb-qp input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce-cart-form input.qty.mb-qp-bond { animation: mbQbBond .3s ease-out; }

/* Article ramené à 0 : il glisse vers la droite et s'en va (page Panier + carte du panier) */
.woocommerce-cart-form .mb-qp-part {
  transform: translateX(-110%); opacity: 0;                     /* part vers la GAUCHE, plus vite */
  background: rgba(229, 57, 53, .15) !important;               /* rouge très léger */
  transition: transform .25s ease-in, opacity .25s ease-in, background .1s ease;
}
.woocommerce-cart-form tr.cart_item { transition: transform .3s ease-out, opacity .3s ease-out; }
#mb-ajout .mb-aj-liste li { transition: transform .3s ease-out, opacity .3s ease-out; }
#mb-ajout .mb-aj-liste li.mb-aj-retire {
  transform: translateX(-110%); opacity: 0;                     /* part vers la gauche, comme sur la page Panier */
  background: rgba(229, 57, 53, .12);
  transition: transform .2s ease-in, opacity .2s ease-in;      /* aussi rapide que sur la page Panier */
}

/* AB. Pied de page replié sur smartphone (avec l'extrait « Pied de page – replié (mobile) ») */
@media (max-width: 767px) {
  .mb-pied-titre {
    display: flex !important; justify-content: space-between; align-items: center;
    width: 100%; box-sizing: border-box;
    margin: 0 !important; padding: 11px 6px !important;
    font-size: 16px !important; line-height: 1.2 !important;
    border-bottom: 1px solid #f8bbd0;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .mb-pied-titre::after {
    content: "▾"; margin-left: 10px;
    font-size: 15px; color: #ec407a;
    transition: transform .25s ease;
  }
  .mb-pied-titre.ouvert::after { transform: rotate(180deg); }
  .mb-pied-titre:active { background: rgba(255, 255, 255, .5); }
  .mb-pied-contenu { display: none; padding: 4px 6px 8px; }
  .mb-pied-titre.ouvert + .mb-pied-contenu { display: block; animation: mbPiedOuvre .25s ease-out; }
  @keyframes mbPiedOuvre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* AC. Pied de page (smartphone) : effet « j'appuie » sur toute la ligne de chaque rubrique,
       sur chaque lien et sur les icônes des réseaux */
@media (max-width: 767px) {
  .mb-pied-titre {
    border-radius: 10px;
    transition: background .12s ease, transform .12s ease;
  }
  .mb-pied-titre:active {
    background: #f8bbd0 !important;
    transform: scale(.97);
  }
  .mb-pied-contenu a {
    display: block;
    padding: 8px 6px;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
    transition: background .12s ease, transform .12s ease;
  }
  .mb-pied-contenu a:active {
    background: #fce4ec;
    transform: scale(.96);
  }
  a[href*="facebook"], a[href*="instagram"], a[href*="tiktok"] {
    display: inline-block;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease;
  }
  a[href*="facebook"]:active, a[href*="instagram"]:active, a[href*="tiktok"]:active {
    transform: scale(.85);
  }
}

/* AD. Accueil : bloc « Noël chez M&B Cosmetics » plus lisible + bouton « Je découvre » plus grand */
.mb-hero small {
  font-size: 13px !important;
  letter-spacing: 1.2px !important;
}
.mb-hero h2 {
  font-size: 26px !important;
  line-height: 1.22 !important;
  margin: 6px 0 14px !important;
}
.mb-hero a.mb-cta {
  font-size: 17px !important;
  letter-spacing: .2px !important;
  padding: 11px 22px !important;
  border-radius: 26px !important;
  box-shadow: 0 4px 0 #c2185b, 0 6px 14px rgba(240, 98, 146, .3) !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s ease, box-shadow .1s ease !important;
}
.mb-hero a.mb-cta:active {                       /* effet bouton poussoir */
  transform: translateY(3px) scale(.98);
  box-shadow: 0 1px 0 #c2185b, 0 2px 5px rgba(240, 98, 146, .25) !important;
}
.mb-hero .mb-hero-deco { font-size: 68px !important; }

/* AE. Accueil : pastilles de catégories (Noël, Idées cadeaux, Fondants…) plus grandes + effet d'appui */
.mb-chips { gap: 10px !important; padding: 14px 2px 8px !important; }
.mb-chips a {
  font-size: 15px !important;
  padding: 10px 16px !important;
  border-radius: 24px !important;
  border-width: 2px !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s ease, background .1s ease !important;
}
.mb-chips a:active { background: #fce4ec !important; transform: scale(.94); }

/* AF. Page Panier sur smartphone : chaque article en « carte » avec sa PHOTO, façon Lethal
       [photo] Nom du produit ................ ×
       [photo] 6,49 €
       [photo] [ − 1 + ]               6,49 €   */
@media (max-width: 767px) {
  .woocommerce-cart table.shop_table.cart,
  .woocommerce-cart table.shop_table.cart tbody { display: block !important; border: 0 !important; }
  .woocommerce-cart table.shop_table.cart thead { display: none !important; }

  .woocommerce-cart table.cart tr.cart_item {
    display: grid !important;
    grid-template-columns: 92px 1fr auto;
    grid-template-areas:
      "img nom sup"
      "img prix prix"
      "img qte total";
    column-gap: 12px; row-gap: 6px;
    align-items: center;
    padding: 14px 4px !important;
    border: 0 !important; border-bottom: 1px solid #f8d7e3 !important;
    background: #fff !important;
  }
  .woocommerce-cart table.cart tr.cart_item td {
    display: block !important;
    border: 0 !important; padding: 0 !important; margin: 0 !important;
    background: transparent !important;
    text-align: left !important;
    min-width: 0;
  }
  /* plus d'étiquettes « Produit : », « Prix : »… */
  .woocommerce-cart table.cart tr.cart_item td::before { display: none !important; content: none !important; }

  /* la photo (cachée par défaut sur smartphone) */
  .woocommerce-cart table.cart tr.cart_item td.product-thumbnail { grid-area: img; display: block !important; }
  .woocommerce-cart table.cart tr.cart_item td.product-thumbnail img {
    display: block; width: 92px !important; height: 92px !important; max-width: none !important;
    object-fit: cover; border-radius: 14px; margin: 0 !important;
  }

  /* nom du produit */
  .woocommerce-cart table.cart tr.cart_item td.product-name { grid-area: nom; align-self: start; }
  .woocommerce-cart table.cart tr.cart_item td.product-name a {
    color: #222 !important; font-size: 15.5px; line-height: 1.3; text-decoration: none !important;
  }

  /* croix pour retirer l'article */
  .woocommerce-cart table.cart tr.cart_item td.product-remove { grid-area: sup; align-self: start; text-align: right !important; }
  .woocommerce-cart table.cart tr.cart_item td.product-remove a.remove {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 30px !important; height: 30px !important; border-radius: 50% !important;
    font-size: 20px !important; line-height: 1 !important;
    color: #999 !important; background: #f5f5f5 !important;
    -webkit-tap-highlight-color: transparent; transition: transform .1s ease, background .1s ease;
  }
  .woocommerce-cart table.cart tr.cart_item td.product-remove a.remove:active { background: #fce4ec !important; color: #ec407a !important; transform: scale(.88); }

  /* prix unitaire, quantité, sous-total */
  .woocommerce-cart table.cart tr.cart_item td.product-price { grid-area: prix; font-size: 14px; color: #888; }
  .woocommerce-cart table.cart tr.cart_item td.product-quantity { grid-area: qte; }
  .woocommerce-cart table.cart tr.cart_item td.product-subtotal {
    grid-area: total; text-align: right !important;
    font-size: 16px; font-weight: bold; color: #222;
  }
}

/* AG. Bloc « Noël » de l'accueil plus compact : le sapin se place à côté du bouton,
       le texte prend toute la largeur (mêmes tailles de lettres) */
.mb-hero {
  position: relative !important;
  display: block !important;
  padding: 16px 18px !important;
}
.mb-hero small {
  display: block;
  white-space: nowrap;                 /* « NOËL CHEZ M&B COSMETICS » sur une seule ligne */
}
.mb-hero h2 { margin: 6px 0 12px !important; }
.mb-hero .mb-hero-deco {
  position: absolute;
  right: 20px; bottom: 12px;           /* le sapin, en bas à droite, à hauteur du bouton */
  font-size: 58px !important;
}

/* AH. Page Panier : on peut glisser un article vers la gauche pour le supprimer */
.woocommerce-cart-form tr.cart_item { touch-action: pan-y; }

/* AI. Page Panier : pendant la mise à jour, voile blanc très léger au lieu du gros voile qui « fige » la page */
.woocommerce-cart .blockUI.blockOverlay {
  background: rgba(255, 255, 255, .25) !important;
  opacity: 1 !important;
}

/* AJ. En-tête smartphone : place RÉSERVÉE dès le début du chargement,
       pour que la page ne « saute » plus quand le logo change et que la loupe arrive (vers 3,8 s) */
@media (max-width: 767px) {
  .header-mb img.logo,
  .header-mb img.logo.img-fluid {
    height: 58px !important;            /* hauteur fixe : ancien ou nouveau logo, la hauteur ne bouge plus */
    max-height: 58px !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  .header-mb .login-cart > .row {
    min-width: 214px;                   /* largeur des 4 icônes réservée : loupe + compte + favoris + panier */
  }
}

/* AK. Smartphone : rien ne doit dépasser à droite de l'écran.
       (un élément trop large, même un instant pendant le chargement, fait « dézoomer » le téléphone,
        puis il « rezoome » : c'est l'effet de rétrécissement en 2 fois) */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  img, video, iframe { max-width: 100%; }
}

/* AL. Page Panier : pendant le recalcul des totaux (en arrière-plan), ils pâlissent légèrement
       et une petite roue rose tourne au milieu */
.cart_totals { position: relative; }
.cart_totals > * { transition: opacity .2s ease; }
.cart_totals.mb-totaux-maj > * { opacity: .4; }
.cart_totals.mb-totaux-maj::after {
  content: "";
  position: fixed; top: 50%; left: 50%;          /* au centre de l'écran, toujours visible */
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .85);
  box-sizing: border-box;
  border-radius: 50%;
  border: 4px solid #fde4ec;
  border-top-color: #f06292; border-right-color: #f06292;
  animation: mbTourne .8s linear infinite;
  z-index: 100003;
}

/* AM. En-tête : effet « bouton » bien visible sur l'icône du panier quand on la touche */
.header-mb .m-and-b-cart {
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s ease, background .1s ease !important;
}
.header-mb .m-and-b-cart:active,
.header-mb .login-cart a:active .m-and-b-cart,
.header-mb .login-cart a.m-and-b-cart:active,
.header-mb .login-cart a.mb-appui .m-and-b-cart,
.header-mb .login-cart a.mb-appui.m-and-b-cart {
  transform: scale(.8) !important;
  background: #f8bbd0 !important;
  border-radius: 50% !important;
  animation: none !important;                    /* l'onde s'arrête pendant l'appui */
}
.header-mb .m-and-b-cart:active .fa-shopping-bag,
.header-mb .login-cart a:active .fa-shopping-bag,
.header-mb .login-cart a.mb-appui .fa-shopping-bag {
  animation: none !important;
  color: #c2185b !important;                     /* l'icône fonce pendant l'appui */
}

/* AN. Carte du panier (qui glisse) : petite roue rose au centre pendant l'enregistrement d'une quantité */
#mb-ajout .mb-aj-liste { transition: opacity .2s ease; }
#mb-ajout.mb-aj-calcul .mb-aj-liste { opacity: .45; }
#mb-ajout.mb-aj-calcul::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 4px solid #fde4ec;
  border-top-color: #f06292; border-right-color: #f06292;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .85);
  animation: mbTourne .8s linear infinite;
  z-index: 5;
  pointer-events: none;
}

/* AO. Bloc « Noël » de l'accueil : le Père Noël sur son traîneau (version 3), à la place du sapin.
       Il est incliné comme au décollage et « vole » doucement. Les textes gardent leur disposition.
       (le fond blanc de l'image se fond dans le dégradé du bloc grâce à mix-blend-mode) */
.mb-hero .mb-hero-deco {
  font-size: 0 !important;                        /* on cache le sapin */
  right: 6px !important; bottom: 14px !important;
  pointer-events: none;
}
.mb-hero .mb-hero-deco::after {
  content: "";
  display: block;
  width: 172px; height: 57px;
  background: no-repeat center / contain url("https://m-b-cosmetics.com/wp-content/uploads/promo-bombes-florales/preview-3.webp");
  mix-blend-mode: multiply;
  transform-origin: left bottom;
  transform: rotate(-10deg);
  animation: mbTraineau 3.2s ease-in-out infinite;
}
@keyframes mbTraineau {
  0%, 100% { transform: rotate(-10deg) translateY(0); }
  50%      { transform: rotate(-12deg) translateY(-6px); }
}

/* AQ. Neige qui tombe (avec l'extrait « Bandeau Bienvenue… ») : ne gêne jamais les clics */
#mb-neige {
  position: fixed; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 99990;                                 /* sous la carte du panier et les messages */
}
#mb-neige .mb-flocon {
  position: absolute; top: -24px;
  color: #fff;
  text-shadow: 0 0 4px rgba(150, 200, 255, .9);
  animation-name: mbNeigeChute, mbNeigeBalance;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: normal, alternate;
  will-change: transform;
}
@keyframes mbNeigeChute   { to { top: 105%; } }
@keyframes mbNeigeBalance { from { transform: translateX(-12px); } to { transform: translateX(12px); } }
@media (prefers-reduced-motion: reduce) {
  #mb-neige { display: none; }
  .mb-hero .mb-hero-deco::after { animation: none; }
}

/* AR. Fond « blanc crème » très doux sur tout le site (plus chaleureux que le blanc pur) */
html, body,
#page, .site, .site-content, #content, main, .main,
body > .container-fluid, body > .container {
  background-color: #fff8f3 !important;
}
@media (max-width: 767px) {
  .header-mb { background: #fff8f3 !important; }                         /* en-tête assorti */
}
.mb-court::after { background: linear-gradient(rgba(255, 248, 243, 0), #fff8f3) !important; }   /* « Lire la suite » */

/* AS. Fiche produit : coins arrondis de la photo avec WooGallery Pro 3.5
       (la nouvelle version a changé le nom de ses blocs ; on vise tous les noms possibles) */
.single-product [class*="wcgs"] img,
.single-product [id*="wcgs"] img,
.single-product [class*="wpgs"] img,
.single-product [id*="wpgs"] img,
.single-product .woocommerce-product-gallery img,
.single-product div.images img {
  border-radius: 14px !important;
}
.single-product [class*="wcgs"] .swiper,
.single-product [class*="wcgs"] .swiper-container,
.single-product [class*="wcgs"] .swiper-slide,
.single-product [class*="wcgs-carousel"],
.single-product [class*="wcgs-slider"] {
  border-radius: 14px !important;
}

/* AT. Fiches produits à variations (ex. Bougies chantilly) avec WooGallery 3.5 :
       photo en pleine largeur, petits points sur une seule ligne, prix sans cadre blanc */
@media (max-width: 767px) {
  .single-product div.product .images,
  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product [class*="wcgs"],
  .single-product div.product [id*="wcgs"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .single-product div.product .images img,
  .single-product div.product .woocommerce-product-gallery img,
  .single-product div.product [class*="wcgs"] img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  /* les points sous la photo : petits, sur une seule ligne, centrés */
  .single-product div.product .swiper-pagination,
  .single-product div.product [class*="wcgs"] [class*="pagination"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    position: static !important;
    margin: 10px 0 4px !important;
    transform: none !important;
  }
  .single-product div.product .swiper-pagination-bullet {
    width: 7px !important;
    height: 7px !important;
    margin: 0 !important;
    flex: 0 0 7px !important;
  }
  /* le prix : plus de cadre blanc sur le fond crème */
  .single-product div.product .summary .price,
  .single-product div.product .woocommerce-variation-price,
  .single-product div.product .woocommerce-variation-price .price {
    background: transparent !important;
  }
}

/* AU. Galerie standard de WooCommerce (Reno ProductGallery désactivée) :
       les petites photos sur UNE seule ligne qui glisse avec le doigt, au lieu d'une grande grille */
.single-product .woocommerce-product-gallery .flex-viewport,
.single-product .woocommerce-product-gallery__image img {
  border-radius: 14px !important;
}
@media (max-width: 767px) {
  .single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 10px 0 6px !important;
    padding: 0 0 4px !important;
    list-style: none !important;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
  .single-product .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 62px !important;
    width: 62px !important;
    max-width: 62px !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 62px !important;
    height: 62px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 2px solid transparent !important;
    opacity: .6 !important;
    transition: opacity .2s, border-color .2s;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1 !important;
    border-color: #f06292 !important;          /* la photo affichée : contour rose */
  }
}

/* AV. Fiches produits sur smartphone : le choix (parfum, couleur…) juste sous la photo,
       en pastilles roses (avec l'extrait « Fiche produit – parfums en pastilles ») */
@media (max-width: 767px) {
  /* ordre : titre → étoiles → prix → CHOIX + bouton panier → texte de description */
  .single-product div.product .summary { display: flex !important; flex-direction: column !important; }
  .single-product div.product .summary > * { order: 5; }
  .single-product div.product .summary > .product_title { order: 1; }
  .single-product div.product .summary > .woocommerce-product-rating { order: 2; }
  .single-product div.product .summary > .price { order: 3; }
  .single-product div.product .summary > form.cart { order: 4; }
  .single-product div.product .summary > .woocommerce-product-details__short-description { order: 6; }
  .single-product div.product .summary > .product_meta { order: 7; }

  /* le tableau des variations devient une simple colonne */
  .single-product table.variations,
  .single-product table.variations tbody,
  .single-product table.variations tr,
  .single-product table.variations th,
  .single-product table.variations td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
  }
  .single-product table.variations { margin: 4px 0 10px !important; }
  .single-product table.variations tr { margin-bottom: 10px !important; }
  .single-product table.variations th.label label {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 6px !important;
    display: block !important;
  }
}

/* AW. Le menu déroulant des variations (extrait « Fiche produit – parfums en pastilles » v2)
       un joli bouton → une feuille qui monte du bas, avec la photo de chaque parfum */
.single-product select.mb-select-cache {
  position: absolute !important; opacity: 0 !important; pointer-events: none !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
}
.single-product form.variations_form table.variations td.value { position: relative !important; }
.mb-choix {
  display: flex !important; align-items: center; gap: 12px;
  width: 100% !important; min-height: 60px;
  padding: 8px 14px 8px 8px !important; margin: 0 !important;
  background: #fff !important; color: #333 !important;
  border: 1.5px solid #f6bfd2 !important; border-radius: 16px !important;
  box-shadow: 0 3px 12px rgba(240, 98, 146, .12) !important;
  text-align: left !important; text-transform: none !important; letter-spacing: 0 !important;
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s, box-shadow .2s;
}
.mb-choix:active { transform: scale(.98); }
.mb-choix-img {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 11px; object-fit: cover;
}
.mb-choix-vide { display: flex; align-items: center; justify-content: center; background: #fde7ef; color: #f06292; font-size: 20px; }
.mb-choix-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.mb-choix-txt small { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: .04em; }
.mb-choix-txt b { font-size: 16px; font-weight: 600; color: #f06292; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-choix-fait .mb-choix-txt b { color: #333; }
.mb-choix-fleche { font-size: 22px; line-height: 1; color: #f06292; margin-top: -8px; }

/* la feuille qui monte du bas */
#mb-choix-voile {
  position: fixed; inset: 0; z-index: 100010; background: rgba(0, 0, 0, .18);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
#mb-choix-voile.mb-on { opacity: 1; pointer-events: auto; }
#mb-choix-feuille {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100011;
  max-height: 78vh; display: flex; flex-direction: column;
  background: #fff8f3; border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .15);
  padding: 8px 14px calc(14px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
#mb-choix-feuille.mb-on { transform: translateY(0); }
@media (min-width: 768px) { #mb-choix-feuille { left: 50%; right: auto; width: 440px; margin-left: -220px; } }
.mb-cf-poignee { width: 44px; height: 5px; border-radius: 3px; background: #f6bfd2; margin: 2px auto 8px; }
.mb-cf-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mb-cf-titre { font-size: 18px; font-weight: 700; color: #333; }
.mb-cf-fermer {
  width: 34px; height: 34px; border-radius: 50% !important; border: 0 !important; padding: 0 !important;
  background: #fde7ef !important; color: #f06292 !important; font-size: 15px; cursor: pointer;
}
.mb-cf-recherche {
  width: 100%; height: 42px; border-radius: 12px !important; border: 1.5px solid #f6bfd2 !important;
  padding: 0 14px !important; margin: 0 0 8px !important; background: #fff !important; font-size: 16px !important;
}
.mb-cf-liste { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mb-cf-ligne {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 10px 7px 7px; margin: 0 0 6px; border-radius: 14px;
  background: #fff; border: 1.5px solid transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background .15s, transform .1s;
}
.mb-cf-ligne:active { transform: scale(.98); background: #fde7ef; }
.mb-cf-img { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 11px; object-fit: cover; }
.mb-cf-sans { background: #fde7ef; }
.mb-cf-nom { flex: 1; min-width: 0; font-size: 15.5px; color: #333; line-height: 1.25; }
.mb-cf-droite { font-size: 14px; color: #777; white-space: nowrap; }
.mb-cf-coche { display: none; color: #fff; background: #f06292; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; line-height: 24px; text-align: center; flex: 0 0 24px; }
.mb-cf-choisie { border-color: #f06292; background: #fff3f7; }
.mb-cf-choisie .mb-cf-nom { font-weight: 700; }
.mb-cf-choisie .mb-cf-coche { display: block; }
.mb-cf-indispo { opacity: .45; cursor: default; }
.mb-cf-indispo .mb-cf-droite { color: #c62828; }
html.mb-cf-ouvert, html.mb-cf-ouvert body { overflow: hidden !important; }

/* AX. Fiche produit : quantité − / + et bouton « Ajouter au panier » sur une seule ligne */
.single-product div.product form.cart:not(.variations_form),
.single-product div.product .woocommerce-variation-add-to-cart {
  display: flex !important; align-items: center !important; gap: 10px !important;
  flex-wrap: nowrap !important; width: 100% !important; margin-top: 10px !important;
}
.single-product div.product form.variations_form.cart { display: block !important; width: 100% !important; }
.single-product form.variations_form[data-mb-choix] table.variations th.label { display: none !important; }   /* « Parfums » est déjà écrit dans le bouton */
.single-product form.variations_form .single_variation_wrap { clear: both !important; width: 100% !important; float: none !important; }
.single-product form.variations_form table.variations { float: none !important; }
.single-product .woocommerce-variation-price .price { font-size: 20px !important; margin: 0 0 4px !important; }
.single-product .quantity.mb-qf {
  display: flex !important; align-items: center !important; flex: 0 0 auto !important;
  height: 50px; margin: 0 !important; float: none !important;
  background: #fff; border: 1.5px solid #f6bfd2; border-radius: 999px; overflow: hidden;
}
.single-product .quantity.mb-qf input.qty {
  width: 38px !important; height: 46px !important; border: 0 !important; padding: 0 !important;
  margin: 0 !important; text-align: center !important; font-size: 17px !important; font-weight: 600 !important;
  background: transparent !important; -moz-appearance: textfield; box-shadow: none !important;
}
.single-product .quantity.mb-qf input.qty::-webkit-inner-spin-button,
.single-product .quantity.mb-qf input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mb-qf-btn {
  width: 40px; height: 46px; border: 0 !important; padding: 0 !important; margin: 0 !important;
  background: transparent !important; color: #f06292 !important; font-size: 22px !important;
  line-height: 1 !important; cursor: pointer; box-shadow: none !important; -webkit-tap-highlight-color: transparent;
}
.mb-qf-btn:active { background: #fde7ef !important; }
.single-product form.cart .single_add_to_cart_button {
  flex: 1 1 auto !important; width: auto !important; min-height: 50px !important; margin: 0 !important;
  border-radius: 999px !important; font-size: 16px !important; white-space: nowrap !important;
  float: none !important; padding: 0 16px !important;
}
.single-product form.cart .single_add_to_cart_button.disabled { opacity: .5 !important; }
.single-product .reset_variations { font-size: 13px !important; color: #f06292 !important; display: inline-block; margin-top: 6px; }

/* AY. Fiche produit : les photos glissent avec le doigt sur la grande photo (plus de grille en vrac),
       avec des petits points roses en dessous (extrait « Fiche produit – menu des variations » v3) */
.single-product .woocommerce-product-gallery__wrapper.mb-glisse {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 14px;
  align-items: flex-start;
}
.single-product .woocommerce-product-gallery__wrapper.mb-glisse::-webkit-scrollbar { display: none; }
.single-product .woocommerce-product-gallery__wrapper.mb-glisse > .woocommerce-product-gallery__image {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.single-product .woocommerce-product-gallery__wrapper.mb-glisse img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px !important;
  display: block;
}
.mb-points { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 10px 0 4px; flex-wrap: nowrap; }
.mb-point {
  width: 7px; height: 7px; flex: 0 0 auto; padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 4px !important; background: #f6bfd2 !important;
  box-shadow: none !important; cursor: pointer; transition: width .2s, background .2s;
}
.mb-point.mb-on { width: 18px; background: #f06292 !important; }

/* AZ. Photos qui glissent : la loupe au toucher ne doit jamais gêner le glissement sur smartphone */
@media (max-width: 767px) {
  .single-product .woocommerce-product-gallery__wrapper.mb-glisse { touch-action: pan-x pan-y !important; }
  .single-product .woocommerce-product-gallery__wrapper.mb-glisse .zoomImg { display: none !important; }
}

/* BA. FÊTES : barre MENU dorée qui scintille (or champagne + paillettes)
       → après les fêtes, effacer cette section BA pour retrouver la barre rose */
#wprmenu_bar,
.wprmenu_bar {
  background-color: #c9993a !important;
  background-image:
    linear-gradient(100deg, rgba(255,255,255,0) 44%, rgba(255,250,230,.95) 50%, rgba(255,255,255,0) 56%),
    linear-gradient(110deg, #b8862b 0%, #f3d27a 22%, #c9993a 45%, #f7e09a 70%, #a8771f 100%) !important;
  background-size: 300% 100%, 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: 76% 0, 0 0;           /* sans !important : sinon la vague ne peut pas bouger */
  animation: mbOrVague 4.7s cubic-bezier(.4, .1, .4, 1) 0.4s infinite !important;   /* 1re vague 0,4 s après l'arrivée sur le site */
  overflow: hidden !important;
}
/* la vague de lumière traverse la barre de gauche à droite, puis une petite pause */
@keyframes mbOrVague {
  0%        { background-position: 76% 0, 0 0; }
  87%, 100% { background-position: 22% 0, 0 0; }
}

/* les paillettes : deux couches qui scintillent chacune à leur tour */
#wprmenu_bar::before,
#wprmenu_bar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
#wprmenu_bar::before {
  background:
    radial-gradient(circle, #fff 0 1.3px, rgba(255,255,255,.35) 1.9px, transparent 2.9000000000000004px) 6% 30% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1px, rgba(255,255,255,.35) 1.6px, transparent 2.6px) 14% 72% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1.6px, rgba(255,255,255,.35) 2.2px, transparent 3.2px) 23% 25% / 7px 7px no-repeat,
    radial-gradient(circle, #fff 0 1px, rgba(255,255,255,.35) 1.6px, transparent 2.6px) 33% 60% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1.4px, rgba(255,255,255,.35) 2.0px, transparent 3.0px) 46% 28% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1.1px, rgba(255,255,255,.35) 1.7000000000000002px, transparent 2.7px) 57% 74% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1.6px, rgba(255,255,255,.35) 2.2px, transparent 3.2px) 66% 32% / 7px 7px no-repeat,
    radial-gradient(circle, #fff 0 1px, rgba(255,255,255,.35) 1.6px, transparent 2.6px) 76% 62% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1.3px, rgba(255,255,255,.35) 1.9px, transparent 2.9000000000000004px) 85% 24% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1.1px, rgba(255,255,255,.35) 1.7000000000000002px, transparent 2.7px) 95% 68% / 6px 6px no-repeat;
  animation: mbPaillettes 2.2s ease-in-out infinite;
}
#wprmenu_bar::after {
  background:
    radial-gradient(circle, #fff 0 1px, rgba(255,255,255,.35) 1.6px, transparent 2.6px) 9% 58% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1.5px, rgba(255,255,255,.35) 2.1px, transparent 3.1px) 19% 35% / 7px 7px no-repeat,
    radial-gradient(circle, #fff 0 1px, rgba(255,255,255,.35) 1.6px, transparent 2.6px) 29% 78% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1.2px, rgba(255,255,255,.35) 1.7999999999999998px, transparent 2.8px) 40% 45% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1.6px, rgba(255,255,255,.35) 2.2px, transparent 3.2px) 51% 20% / 7px 7px no-repeat,
    radial-gradient(circle, #fff 0 1px, rgba(255,255,255,.35) 1.6px, transparent 2.6px) 62% 55% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1.2px, rgba(255,255,255,.35) 1.7999999999999998px, transparent 2.8px) 72% 26% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1.5px, rgba(255,255,255,.35) 2.1px, transparent 3.1px) 81% 76% / 7px 7px no-repeat,
    radial-gradient(circle, #fff 0 1px, rgba(255,255,255,.35) 1.6px, transparent 2.6px) 90% 40% / 6px 6px no-repeat,
    radial-gradient(circle, #fff 0 1.2px, rgba(255,255,255,.35) 1.7999999999999998px, transparent 2.8px) 98% 22% / 6px 6px no-repeat;
  animation: mbPaillettes 2.2s ease-in-out 1.1s infinite;
}
@keyframes mbPaillettes { 0%, 100% { opacity: 0; } 50% { opacity: .95; } }

/* texte et icône au-dessus des paillettes, blancs avec une légère ombre pour rester lisibles */
#wprmenu_bar > * { position: relative; z-index: 1; }
#wprmenu_bar .menu_title,
#wprmenu_bar .wpr_custom_menu,
#wprmenu_bar .menu_title a {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(110, 70, 10, .45);
  letter-spacing: .05em;
}
#wprmenu_bar .hamburger-inner,
#wprmenu_bar .hamburger-inner::before,
#wprmenu_bar .hamburger-inner::after {
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(110, 70, 10, .35);
}
/* au toucher : la dorure s'illumine un instant (au lieu du rose clair) */
#wprmenu_bar:active { filter: brightness(1.12); }

/* pas d'animation pour les personnes qui les ont désactivées sur leur téléphone */
@media (prefers-reduced-motion: reduce) {
  #wprmenu_bar { animation: none !important; background-position: 200% 0, 0 0; }
  #wprmenu_bar::before, #wprmenu_bar::after { animation: none !important; opacity: .6; }
}


/* BB. MENU DE GAUCHE (smartphone) : les catégories arrivent une à une, comme une vague
       (le menu glisse, puis chaque ligne entre par la gauche avec un léger décalage) */
@keyframes mbMenuVague {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: none; }
}
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li {
  animation: mbMenuVague .6s cubic-bezier(.2, .8, .3, 1) both;
}
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(1) { animation-delay: 0.10s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(2) { animation-delay: 0.19s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(3) { animation-delay: 0.28s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(4) { animation-delay: 0.37s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(5) { animation-delay: 0.46s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(6) { animation-delay: 0.55s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(7) { animation-delay: 0.64s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(8) { animation-delay: 0.73s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(9) { animation-delay: 0.82s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(10) { animation-delay: 0.91s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(11) { animation-delay: 1.00s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(12) { animation-delay: 1.09s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(13) { animation-delay: 1.18s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(14) { animation-delay: 1.27s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(15) { animation-delay: 1.36s; }
#mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li:nth-child(n+16) { animation-delay: 1.45s; }
/* les sous-catégories (ex. Bougies et fondants → Bougies, Fondants) : même effet quand elles s'ouvrent */
#mg-wprm-wrap ul.sub-menu > li {
  animation: mbMenuVague .5s cubic-bezier(.2, .8, .3, 1) both;
}
#mg-wprm-wrap ul.sub-menu > li:nth-child(1) { animation-delay: 0.00s; }
#mg-wprm-wrap ul.sub-menu > li:nth-child(2) { animation-delay: 0.07s; }
#mg-wprm-wrap ul.sub-menu > li:nth-child(3) { animation-delay: 0.14s; }
#mg-wprm-wrap ul.sub-menu > li:nth-child(4) { animation-delay: 0.21s; }
#mg-wprm-wrap ul.sub-menu > li:nth-child(5) { animation-delay: 0.28s; }
#mg-wprm-wrap ul.sub-menu > li:nth-child(6) { animation-delay: 0.35s; }
#mg-wprm-wrap ul.sub-menu > li:nth-child(7) { animation-delay: 0.42s; }
#mg-wprm-wrap ul.sub-menu > li:nth-child(8) { animation-delay: 0.49s; }
#mg-wprm-wrap ul.sub-menu > li:nth-child(9) { animation-delay: 0.56s; }
#mg-wprm-wrap ul.sub-menu > li:nth-child(10) { animation-delay: 0.63s; }
@media (prefers-reduced-motion: reduce) {
  #mg-wprm-wrap.cbp-spmenu-open #wprmenu_menu_ul > li,
  #mg-wprm-wrap ul.sub-menu > li { animation: none !important; }
}

/* BC. ACCUEIL : les pastilles (Noël, Idées cadeaux, Fondants…) invitent à glisser
       → à l'arrivée, la rangée « recule » un peu vers la gauche puis revient (2 fois, puis plus rien),
         et le bord droit s'estompe pour montrer qu'il y en a d'autres */
@keyframes mbChipsCoucou {
  0%, 12%   { transform: none; }
  40%, 58%  { transform: translateX(-38px); }
  82%       { transform: translateX(5px); }
  100%      { transform: none; }
}
.mb-chips a {
  animation: mbChipsCoucou 1.9s cubic-bezier(.45, .05, .35, 1) 1.2s 2;
}
.mb-chips {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 86%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 86%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  .mb-chips a { animation: none !important; }
}

/* BD. FICHE PRODUIT (smartphone)
   1) « Ajouter au panier » : le texte reste DANS le bouton, bien centré */
@media (max-width: 767px) {
  .single-product div.product form.cart .single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    min-width: 0 !important;
    padding: 0 12px !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    white-space: normal !important;            /* si l'écran est très étroit : 2 lignes plutôt que déborder */
    text-align: center !important;
    overflow: hidden !important;
  }
  .single-product div.product form.cart .single_add_to_cart_button::before { flex: 0 0 auto; margin: 0 !important; }
  .single-product .quantity.mb-qf .mb-qf-btn { width: 34px; }
  .single-product .quantity.mb-qf input.qty { width: 30px !important; }

/* 2) Les pastilles Conseils / Composition / Précautions glissent au doigt,
      le bord droit s'estompe et la rangée fait un petit « coucou » pour inviter à glisser */
  .single-product .woocommerce-tabs ul.tabs {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain;
    padding-right: 28px !important;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 84%, transparent 100%);
            mask-image: linear-gradient(to right, #000 0, #000 84%, transparent 100%);
  }
  .single-product .woocommerce-tabs ul.tabs li a { padding: 8px 14px !important; font-size: 13.5px !important; }
  .single-product .woocommerce-tabs ul.tabs li {
    animation: mbChipsCoucou 1.9s cubic-bezier(.45, .05, .35, 1) 1.5s 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .single-product .woocommerce-tabs ul.tabs li { animation: none !important; }
}