/* 🌿 Fond propre */
body {
  background: white !important;
}

/* 🎯 Grille dynamique avec colonnes maîtrisées */
.babou-produits-slider {
  display: grid;
  gap: 28px;
  padding: 20px;
}

/* Colonnes forçées selon attribut */
.babou-produits-slider.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
.babou-produits-slider.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}
.babou-produits-slider.columns-5 {
  grid-template-columns: repeat(5, 1fr);
}
.babou-produits-slider.columns-6 {
  grid-template-columns: repeat(6, 1fr);
}
.babou-produits-slider.columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

/* 🧱 Carte produit */
.babou-produit-slide {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px #0002;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 1;
  transform: translateY(0);
}

/* 📸 Image carrée et responsive */
.babou-produit-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto !important;
  object-fit: cover;
  border-radius: 12px;
}

/* 📝 Titre */
.babou-produit-slide h3 {
  font-size: 1.05em;
  font-weight: 500;
  text-align: center;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.babou-produit-slide h3 a {
  color: inherit;
  text-decoration: none !important;
}

/* 💰 Prix */
.babou-produit-slide p {
  font-size: 1.05em;
  font-weight: normal;
  margin-bottom: 0.4em;
}
.babou-produit-slide p.price {
  text-align: center;
  margin-top: 6px;
}
.babou-produit-slide p.price ins {
  color: #1d8f3f;
  font-weight: 600;
}
.babou-produit-slide p.price del {
  color: #888;
  opacity: 0.7;
}

/* 🎁 Promo */
.babou-produit-slide .promo-label {
  color: #1d8f3f;
  font-weight: 500;
  font-size: 1em;
  margin-bottom: 0.5em;
}

/* 🛒 Bouton panier */
.babou-produit-slide .button,
.babou-product-item .button {
  background: #eee;
  color: #111;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  justify-content: center;
  width: auto;
  white-space: nowrap;
  margin-top: 10px;
  text-decoration: none !important;
}
.babou-produit-slide .button:hover {
  background: #ddd;
}

/* 🎯 Centrer formulaire Woo */
.babou-produit-slide form.cart,
.babou-product-item form.cart {
  display: flex;
  justify-content: center;
}

/* 🎛️ Contrôles */
.babou-slider-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.babou-slider-controls button {
  background: #eee;
  color: #111;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.babou-slider-controls button:hover {
  background: #ddd;
}

/* 🧼 Supprimer soulignements */
.babou-produit-slide a,
.babou-produit-slide * a {
  text-decoration: none !important;
}

/* 📱 Responsive mobile */
@media screen and (max-width: 768px) {
  .babou-produits-slider {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px;
    padding: 10px;
  }
}

/* 🔢 Compteur de produits */
.babou-slider-count {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1em;
  color: #444;
}

.fade-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* ✅ IMPORTANT pour éviter les images déformées */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1;
}

.fade-slider .slide.active {
  opacity: 1;
  z-index: 2;
}

.fade-slider img {
  width: 100%;
  height: 100%; /* ✅ on force la hauteur */
  object-fit: cover; /* ✅ pas d’étirement ni déformation */
  border-radius: 12px;
  display: block;
}
.woocommerce-notices-wrapper .woocommerce-info:has(:contains("Merci pour votre fidélité")) {
    background-color: #ffdce5 !important;
    border-left: 4px solid #ff80aa;
    color: #800033;
    font-weight: 500;
}

/* 🎞️ Slider produits survole
/* Base : on n’affiche que l’image principale partout */
.babou-product-image {
  position: relative;
  display: block;
  overflow: hidden;
}
.babou-product-image img {
  display: block;
  width: 100%;
}

/* Par défaut (mobile/tactile) : la 2e image est cachée */
.babou-product-image .hover-image {
  display: none;         /* <- évite l’empilement sur mobile */
}

/* Active l’effet uniquement sur appareils avec vrai hover (souris) */
@media (hover: hover) and (pointer: fine) {
  .babou-product-image .hover-image {
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .25s ease;
  }
  .babou-product-image .main-image {
    transition: opacity .25s ease;
  }
  .babou-product-image:hover .hover-image { opacity: 1; }
  .babou-product-image:hover .main-image { opacity: 0; }
}

/* Option accessibilité : pas d’animation si l’utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  .babou-product-image .hover-image,
  .babou-product-image .main-image {
    transition: none;
  }
}


/* === 🎨 Couleurs dynamiques (fond produit) === */
.bg-color-blanc   { background: #ffffff !important; }
.bg-color-rose    { background: #ffe4e9 !important; }
.bg-color-menthe  { background: #e4fff4 !important; }
.bg-color-jaune   { background: #fffde4 !important; }
.bg-color-bleu    { background: #e4f0ff !important; }
.bg-color-peche   { background: #ffeede !important; }
.bg-color-lavande { background: #f5e9ff !important; }
.bg-color-vert    { background: #e9ffe4 !important; }
.bg-color-corail  { background: #ffe4dc !important; }
.bg-color-gris    { background: #f2f2f2 !important; }
.bg-color-ivoire  { background: #fefae0 !important; }

/* === 🎨 Couleurs dynamiques (bouton) === */
.btn-color-blanc   { background-color: #ffffff !important; }
.btn-color-rose    { background-color: #e68ca7 !important; }
.btn-color-menthe  { background-color: #87cfc3 !important; }
.btn-color-jaune   { background-color: #e6d85c !important; }
.btn-color-bleu    { background-color: #5c9be6 !important; }
.btn-color-peche   { background-color: #f5a97f !important; }
.btn-color-lavande { background-color: #b38ce6 !important; }
.btn-color-vert    { background-color: #8ce68c !important; }
.btn-color-corail  { background-color: #f28b82 !important; }
.btn-color-gris    { background-color: #f2f2f2 !important; }
.btn-color-noir    { background-color: #222 !important; }
.isabel-color-preview {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ccc;
  vertical-align: middle;
}
/* ✅ Couleurs pastilles ADMIN (fond produit) */
.isabel-color-preview.bg-color-blanc   { background-color: #ffffff !important; }
.isabel-color-preview.bg-color-rose    { background-color: #ffe4e9 !important; }
.isabel-color-preview.bg-color-menthe  { background-color: #e4fff4 !important; }
.isabel-color-preview.bg-color-jaune   { background-color: #fffde4 !important; }
.isabel-color-preview.bg-color-bleu    { background-color: #e4f0ff !important; }
.isabel-color-preview.bg-color-peche   { background-color: #ffeede !important; }
.isabel-color-preview.bg-color-lavande { background-color: #f5e9ff !important; }
.isabel-color-preview.bg-color-vert    { background-color: #e9ffe4 !important; }
.isabel-color-preview.bg-color-corail  { background-color: #ffe4dc !important; }
.isabel-color-preview.bg-color-gris    { background-color: #f2f2f2 !important; }
.isabel-color-preview.bg-color-ivoire  { background-color: #fefae0 !important; }

/* ✅ Couleurs pastilles ADMIN (bouton) */
.isabel-color-preview.btn-color-blanc   { background-color: #ffffff !important; }
.isabel-color-preview.btn-color-rose    { background-color: #e68ca7 !important; }
.isabel-color-preview.btn-color-menthe  { background-color: #87cfc3 !important; }
.isabel-color-preview.btn-color-jaune   { background-color: #e6d85c !important; }
.isabel-color-preview.btn-color-bleu    { background-color: #5c9be6 !important; }
.isabel-color-preview.btn-color-peche   { background-color: #f5a97f !important; }
.isabel-color-preview.btn-color-lavande { background-color: #b38ce6 !important; }
.isabel-color-preview.btn-color-vert    { background-color: #8ce68c !important; }
.isabel-color-preview.btn-color-corail  { background-color: #f28b82 !important; }
.isabel-color-preview.btn-color-gris    { background-color: #f2f2f2 !important; }
.isabel-color-preview.btn-color-noir    { background-color: #222 !important; }
/* Texte du bouton */
.btn-textcolor-white { color: #fff !important; }
.btn-textcolor-gray  { color: #666 !important; }
.btn-textcolor-black { color: #000 !important; }

/* Titre produit */
.title-color-black { color: #000 !important; }
.title-color-gray  { color: #666 !important; }
.title-color-white { color: #fff !important; }

/* 🎯 Animation douce sur le bouton au survol */
.babou-produit-slide .add_to_cart_button {
  transition: transform 0.25s ease;
  display: inline-block; /* Pour permettre le scale sans déformer */
}

.babou-produit-slide .add_to_cart_button:hover {
  transform: scale(1.05);
}
.babou-produit-slide h3 {
  margin-top: 0.8em; /* ou 1em si tu veux plus d’espace */
}
.isabel-box-grey {
  background: #f1f1f1;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0001;
  margin-bottom: 30px;
}

.isabel-box-white {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px #0002;
  margin-bottom: 40px;
}

.isabel-box-yellow {
  background: #fff9d1;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 1px 6px #0001;
  margin-top: 40px;
}
/* 🔵 Fond bleu pâle pour les blocs statiques */
.isabel-box-pale-blue {
  background: #eaf7ff;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 30px;
  font-size: 14px;
}
