/* =========================================================================
   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)
   ========================================================================= */

/* =========================================================
   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: #f06292 !important;
  transition: background 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: #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;
  transition: transform .45s ease-in, opacity .45s ease-in;
}
.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;
  transition: transform .45s ease-in, opacity .45s ease-in;
}

/* 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; } }
}