/********************************************
 * 1. TYPO & PALETTE GLOBALES
 ********************************************/

/* Police globale Inter */
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Palette + couleurs principales */
:root {
  /* Palette BEST */
  --best-magenta: #d1006c;
  --best-magenta-soft: #fbd0ea;
  --best-violet: #8a2ba8;
  --best-violet-soft: #f0d6ff;
  --best-dark: #1d1d1d;
  --best-gray: #666666;
  --best-light-bg: #fafafa;

  /* Couleur principale du site */
  --primary: #d1006c;
  --primary-hover: #8a2ba8;
  --bs-primary: #d1006c;
}

/* Couleur des titres principaux */
h1, h2, h3, h4 {
  color: var(--best-dark);
}

/* Liens & helpers “primary” */
/* --- NOUVEAU CORRECTIF --- */

/* On force tous les liens à hériter de la couleur du texte (Noir/Gris) au lieu du bleu PrestaShop */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Au survol, TOUS les liens du site passent en Magenta (sauf exception header) */
a:hover, a:focus {
  color: var(--best-magenta) !important;
  text-decoration: none;
}

/* On définit le Magenta uniquement pour les éléments qui DOIVENT être magentas au repos */
.text-primary, 
a.text-primary,
.active {
  color: var(--best-magenta) !important;
}

/* Sécurité anti-bleu : on force les boutons primaires à utiliser ta palette */
.btn-primary {
  background-color: var(--best-magenta) !important;
  border-color: var(--best-magenta) !important;
  color: #ffffff !important;
}
/* --- FIN DU CORRECTIF --- */
.bg-primary {
  background-color: var(--primary) !important;
}

/* Contour propre (Chrome / Edge / Safari) */
.site-baseline,
.site-baseline .site-baseline-initial {
  padding-top: 10px;
  -webkit-text-stroke: 0.1px #ffffff; /* contour très fin (Chrome/Safari/Edge) */
  paint-order: stroke fill;
  text-shadow: none !important; /* on enlève les ombres */
}


/********************************************
 * 2. HEADER & BARRE DE RECHERCHE
 ********************************************/

/* Topbar */
.topbar {
  background: #f7f7f7;
  font-size: 0.9rem;
}
.topbar p {
  margin: 0;
  padding: 0.4rem 0;
  text-align: center;
}

/* Ligne principale logo + menu + actions */
.header-main {
  background: linear-gradient(90deg, #d1006c, #8a2ba8);
}
.header-main,
.header-main .container {
  text-align: left;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.8rem 0;
}

/* Logo */
.header__logo img {
  max-height: 60px;
  height: auto;
  width: auto;
}

/* Menu principal (zone) */
.header__nav {
  flex: 1;
}
.header__nav #_desktop_top_menu > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__nav #_desktop_top_menu > ul > li > a {
  text-decoration: none;
  font-weight: 500;
}

/* Connexion + Panier */
.header__actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.header__actions #_desktop_user_info,
.header__actions #_desktop_cart {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header__actions a {
  text-decoration: none;
  font-size: 0.9rem;
}

/* Header : supprimer le lien "Achat rapide" */
.header__search-inner .quick-buy-link,
.header__search-inner a[href*="achat-rapide"],
.header__search-inner a[href*="achat"],
.header__search-inner a[href*="quick-order"] {
  display: none !important;
}

/* 1. Cacher TOUTES les barres "Rechercher" du site */
input[placeholder*="Rechercher"],
form[action*="search"],
#search_widget {
  display: none !important;
}

/* 2. Ré-afficher uniquement celle du header */
.header__search input[placeholder*="Rechercher"],
.header__search form[action*="search"],
.header__search #search_widget {
  display: block !important;
}

/* Barre de recherche + achat rapide */
.header__search {
  background: linear-gradient(90deg, #d1006c, #8a2ba8) !important;
}

/* ✅ CORRECTION : UNE SEULE DÉFINITION (plus de conflit)
   -> la barre est centrée (et comme le widget est en width:100%, ça reste “propre”)
*/
.header__search-inner {
  display: flex;
  align-items: center;
  justify-content: center;   /* <-- choix final : centre */
  gap: 1rem;
  padding: 0.7rem 0;
}

/* Champ centré */
#search_widget form input {
  text-align: center;
}

/* Le widget de recherche occupe toute la ligne */
.header__search-inner #search_widget,
.header__search-inner .search-widget {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
}

/* Le formulaire et le champ prennent 100% */
.header__search-inner .search-widget form,
.header__search-inner .search-widget .input-group,
.header__search-inner .search-widget input[type="text"],
.header__search-inner .search-widget input[type="search"] {
  width: 100%;
}

/* Forcer Contactez-nous / Connexion à rester blancs partout */
.header-main__right,
.header-main__right a,
.header-main__right i,
.header-main__right .material-icons {
  color: #ffffff !important;
}

/* Si le thème met une couleur différente au survol, on force aussi */
.header-main__right a:hover,
.header-main__right a:focus {
  color: #ffffff !important;
}

/* Variante inner si utilisée par le thème */
.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-main__left {
  display: flex;
  align-items: center;
}
.header-main__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: flex-end;
  text-align: right;
}

/********************************************
 * 3. BANDEAU CATEGORIES & MENU
 ********************************************/

/* Barre catégories : fond blanc, légère ombre, trait dégradé en bas */
.category-bar {
  background: #ffffff !important;
  margin-bottom: -1px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 20;
  padding-bottom: 8px;
  padding-top: 7px;
}

/* Fine ligne dégradée en bas de la barre (rappel BEST) */
.category-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--best-magenta), var(--best-violet));
  pointer-events: none;
}

/* On retire les anciens fonds/bordures du menu natif */
#_desktop_top_menu,
.top-menu,
.menu {
  background: transparent !important;
  box-shadow: none !important;
}

/* Liens du menu principal */
#_desktop_top_menu .top-menu > li {
  border-bottom: none !important;
}
#_desktop_top_menu .top-menu > li > a {
  position: relative;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1d1d1d !important;
  text-decoration: none;
  background: transparent !important;
  border-radius: 0 !important;
  transition: color 0.2s ease;
}

/* Liens de catégories sur la barre : texte sombre, lisible */
.category-bar #_desktop_top_menu .top-menu > li > a {
  color: #1d1d1d !important;
  font-weight: 600;
  text-transform: none;
}

/* Hover / courant : pill dégradé */
#_desktop_top_menu .top-menu > li > a:hover,
#_desktop_top_menu .top-menu > li.current > a,
#_desktop_top_menu .top-menu > li.sfHoverForce > a {
  background: linear-gradient(#d1006c, #8a2ba8) padding-box !important;
  border-radius: 999px !important;
  box-shadow: 0 0 4px rgba(209, 0, 108, 0.20), 0 4px 10px rgba(0, 0, 0, 0.10) !important;
  color: #ffffff !important;
}

/* Catégorie active : petit pill blanc avec bordure dégradée */
.category-bar #_desktop_top_menu .top-menu > li.current > a {
  color: var(--best-magenta) !important;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, var(--best-magenta), var(--best-violet)) border-box !important;
  border-radius: 999px;
  border: 1px solid transparent;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
}

/* Trait sous les liens (si utilisé en thème) */
.category-bar #_desktop_top_menu .top-menu > li > a::after {
  background: linear-gradient(90deg, var(--best-magenta), var(--best-violet)) !important;
}

/* Alternative : ajuste l'alignement global dans la barre */
.category-bar .category-bar__inner{
  padding-top: 4px !important;   /* <- augmente si nécessaire */
}

/* Panel sous-catégories (SOFT / ÉNERGISANTE, etc.) */
#_desktop_top_menu .popover.sub-menu.js-sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  margin: 0;
  padding: 1.5rem 2rem !important;
  background: #ffffff !important;
  border-top: 2px solid var(--best-magenta) !important;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
}

/* Grille interne des sous-cats */
#_desktop_top_menu .popover.sub-menu.js-sub-menu > ul.top-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#_desktop_top_menu .popover.sub-menu.js-sub-menu li.category {
  flex: 0 0 20%; /* ~3 colonnes */
}

/* Liens sous-catégories */
#_desktop_top_menu .popover.sub-menu.js-sub-menu a.dropdown-item,
#_desktop_top_menu .popover.sub-menu.js-sub-menu a.dropdown-item.dropdown-submenu {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  background: transparent !important;
  color: #222222 !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 10px;
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
#_desktop_top_menu .popover.sub-menu.js-sub-menu a.dropdown-item:hover,
#_desktop_top_menu .popover.sub-menu.js-sub-menu a.dropdown-item.dropdown-submenu:hover {
  color: var(--best-magenta) !important;
  transform: translateX(4px);
}

/* Supprime tout trait/bordure bleu résiduel */
.category-bar a,
.top-menu a,
.breadcrumb a,
#category a {
  border-color: transparent !important;
  outline: none !important;
}
.category-bar a:focus,
.top-menu a:focus {
  box-shadow: none !important;
}
/* Page catégorie : cacher la barre de recherche locale */
.category-page .category-main .search-widget,
.category-page .category-main form[action*="search"] {
  display: none !important;
}

/********************************************
 * 4. HERO & SECTIONS ACCUEIL
 ********************************************/

/* Masquer complètement la bannière et les cartes de droite */
.hero {
  display: none !important;
}

/* Optionnel : si votre thème utilise d'autres classes pour ce bloc */
.hero__inner, .hero__banner, .hero__side {
  display: none !important;
}

.hero__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
.hero__banner {
  background: linear-gradient(135deg, #ff8a80, #ffca28);
  border-radius: 8px;
  padding: 2rem;
  color: #fff;
}
.hero__content h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.hero__content p {
  margin: 0 0 1rem;
}
.hero__side {
  display: grid;
  gap: 0.8rem;
}
.hero-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.hero-card h2 {
  margin: 0 0 0.4rem;
}

/* Lien simple */
.link {
  text-decoration: underline;
  font-size: 0.9rem;
}

/* Sections produits */
.section-products {
  padding: 1.8rem 0;
  background: #ffffff;
}
.section-products--alt {
  background: #f5f5f5;
}
.section-products__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-products__header h2 {
  margin: 0;
}
.home-products {
  margin-top: 0.5rem;
}

/* Page catégorie */
.category-page {
  padding: 1.5rem 0;
}
.category-sidebar {
  margin-bottom: 1.5rem;
}
.category-main .products .product-miniature {
  margin-bottom: 1.5rem;
}
/* Catégorie : cacher le "5 produits" à droite du titre */
.category-page .section-products__header span {
  display: none !important;
}
/* Catégorie : centrer le header et le titre */
.category-page .section-products__header {
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.category-page .section-products__header h1 {
  margin: 0;
}
/* Emoji boisson à côté du titre de catégorie */
body.category-id-3 .section-products__header h1::after {
  content: " 🥤";
  margin-left: 0.35rem;
}

/* 1. La règle pour les écrans larges (Ordinateurs) */
.featured-products .products-section-title, 
#content .featured-products .products-section-title {
  background: linear-gradient(90deg, #d1006c, #8a2ba8) !important;
  color: #ffffff !important;
  margin-left: -35px !important;
  margin-right: -35px !important;
  padding: 15px 35px !important; 
  display: block !important;
  width: auto !important;
  border-radius: 0; 
  text-transform: uppercase;
  font-size: 1.2rem;
  clear: both;
}

/* 2. La règle pour les mobiles (écrans de moins de 767px) */
@media (max-width: 767px) {
  .featured-products .products-section-title,
  #content .featured-products .products-section-title {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 15px 20px !important;
  }
}

/********************************************
 * 5. CARTES PRODUITS B2B (LISTING)
 ********************************************/

/* Carte produit premium */
.product-miniature.product-card {
  position: relative;
  overflow: visible;
}

.product-miniature.product-card .product-card__inner {
  background: #ffffff;
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid #d1006c;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  height: auto !important;
  min-height: 100%;
  overflow: visible;
}


.product-miniature.product-card .product-card__inner:hover {
  transform: translateY(-3px);
  border-color: #8a2ba8;
  box-shadow:
    0 0 6px rgba(209, 0, 108, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Image centrée */
.product-miniature.product-card .thumbnail-top {
  text-align: center;
}
.product-miniature.product-card .product-thumbnail img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Alignement images dans les listes */
.product-thumbnail img,
.product-miniature .thumbnail-container .product-thumbnail img {
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Description flexible */
.product-miniature.product-card .product-description {
  margin-top: 0.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: auto;
}

/* Titre produit (centré, stable, 1 ou 2 lignes) */
.product-miniature .product-title {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.product-miniature.product-card .product-title {
  margin-top: 0.9rem;
  margin-bottom: 0.35rem;
}

.product-miniature .product-title a {
  display: block;
  width: 100%;
  line-height: 1.25;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  white-space: normal;
  text-align: center;
}

/* Bloc prix listing */
.product-miniature.product-card .product-price-and-shipping {
  margin-top: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 60px;
  margin-bottom: -10px;
}

/* Ancien prix (promo) */
.product-miniature.product-card .regular-price,
.product-miniature.product-card .price-ht-old {
  font-size: 0.8rem;
  color: #999;
  opacity: 0.9;
  text-decoration: line-through;
}

/* Prix TTC principal (si jamais affiché) */
.product-miniature.product-card .price {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
}

/* Prix HT principal */
.product-miniature.product-card .price-ht-important {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  display: block;
  margin-bottom: 0.25rem;
}
.product-miniature.product-card .price-ht-important .price-ht-suffix {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.75;
  letter-spacing: 0.03em;
  vertical-align: super;
}

/* Masquer le prix TTC sur les cartes produit */
.product-miniature.product-card .price-ttc-current {
  display: none !important;
}

/* Zone QTÉ + BOUTON – version B2B homogène */
.product-b2b-actions {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.product-b2b-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Stock */
.product-b2b-stock {
  font-size: 0.75rem;
}
.product-b2b-stock--in {
  color: #2e7d32;
}
.product-b2b-stock--out {
  color: #c62828;
}

/* Enlever la bordure noire au clic sur "Ajouter au panier" */
.product-miniature .btn.add-to-cart:focus,
.product-miniature .btn.add-to-cart:active,
.product-add-to-cart .btn.btn-primary:focus,
.product-add-to-cart .btn.btn-primary:active {
  outline: none !important;
}
button[disabled],
.btn[disabled],
.btn.disabled {
  cursor: not-allowed !important;
}

/* Quantité - 1 + en pill (listing / home) */
.product-b2b-qty {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  min-width: 140px;
  height: 40px;
  overflow: hidden;
}
.b2b-qty-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.b2b-qty-input {
  border: none;
  outline: none;
  width: 46px;
  height: 100%;
  text-align: center;
  font-size: 0.9rem;
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
  appearance: textfield;
}
.b2b-qty-input::-webkit-inner-spin-button,
.b2b-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Bouton AJOUTER AU PANIER dans les vignettes */
.product-b2b-form .product-b2b-btn {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  padding: 0.4rem 1.4rem;
}

/* Empêcher les cartes d'être coupées */
.js-product.product,
.product-miniature.product-card,
.product-miniature .thumbnail-container {
  height: auto !important;
}
.product-miniature .product-description {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
}

/* S'assurer que prix + actions sont visibles */
.product-miniature .product-price-and-shipping,
.product-miniature .product-b2b-actions,
.product-miniature .product-add-to-cart,
.product-miniature .add-to-cart {
  display: block !important;
  margin-top: 0.4rem;
}

/* Cartes arrondies globales (toutes vignettes) */
.products .product-miniature,
.featured-products .product-miniature,
#products .product-miniature {
  border-radius: 18px;
  overflow: visible;
}

/* Désactiver l'overlay "Aperçu rapide" */
.product-miniature .highlighted-informations {
  display: none !important;
}

/* Désactiver le lien overlay qui rendait toute la carte cliquable */
.product-miniature.product-card .product-card-overlay-link {
  display: none !important;
}

/* Masquer le bouton "cœur" sur les vignettes produit */
.product-miniature .wishlist-button,
.product-miniature .wishlist-button-add,
.product-miniature .js-add-wishlist,
.product-miniature [data-link-action="add-to-wishlist"] {
  display: none !important;
}

/********************************************
 * 6. MINIATURES PRODUIT (FICHE) – CADRE PREMIUM
 ********************************************/

.product-images .thumb-container img,
.js-qv-product-images .thumb-container img {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 8px;
}

/* Miniature sélectionnée : cadre dégradé + glow */
.product-images .thumb.selected,
.product-images .thumb-container.selected,
.js-qv-product-images .thumb.selected,
.js-qv-product-images .thumb-container.selected {
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #d1006c, #8a2ba8) border-box !important;
  box-shadow:
    0 0 4px rgba(209, 0, 108, 0.18),
    0 0 8px rgba(138, 43, 168, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.06) !important;
  outline: none !important;
}

/********************************************
 * 7. FICHE PRODUIT – TITRE, PRIX & DISCOUNT
 ********************************************/

/* Titre H1 de la fiche produit */
.product h1 {
  font-size: 24px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

/* Masquer le prix TTC / mentions TTC */
.product-prices .tax-shipping-delivery-label,
.product-prices .current-price-tax,
.product-prices .price-ttc,
.product-prices .product-price-all-taxes-included {
  display: none !important;
}

/* Prix HT principal */
.product-prices .price-ht-important {
  font-size: 2rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: #000;
}
.product-prices .price-ht-important .price-ht-suffix {
  font-size: 0.75rem;
  margin-left: 0.2rem;
  vertical-align: super;
  opacity: 0.75;
}
.price-ht-suffix {
  font-size: 0.65em;
  font-weight: 600;
  vertical-align: super;
  letter-spacing: 0.03em;
}

/* Bloc prix : mise en colonne propre */
.product-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.3rem;
  margin-bottom: 1.1rem;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Ordre : 1) prix principal, 2) ligne promo */
.product-prices .current-price {
  order: 0;
}
.product-prices .product-discount {
  order: 1;
}

/* Ligne "ancien prix + pastille ÉCONOMISEZ" */
.product-prices .product-discount {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: transparent !important;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  box-shadow: none !important;
}

/* Ancien prix : discret, gris, barré */
.product-prices .product-discount .regular-price,
.product-prices .regular-price {
  position: static !important;
  display: inline-block !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #999999 !important;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: line-through;
  opacity: 1 !important;
}

/* Suppression définitive de toute barre décorative sous le prix barré */
.product-prices .regular-price::before,
.product-prices .regular-price::after,
.product-discount .regular-price::before,
.product-discount .regular-price::after {
  content: none !important;
}

/* Pastille "ÉCONOMISEZ xx%" */
.product-discount,
.product-discount .discount,
.product-discount span,
.discount-percentage,
.discount-amount {
  background: linear-gradient(135deg, var(--best-magenta), var(--best-violet)) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 0.35rem 0.9rem !important;
  border: none !important;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

/* Badge "ÉCONOMISEZ" un peu plus compact */
.product-prices .product-discount .discount,
.product-prices .product-discount .discount-amount,
.product-prices .product-discount .discount-percentage {
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem !important;
}

/* Encart "Connectez-vous pour accéder aux tarifs" sur la fiche produit */
.best-login-notice {
  margin-top: 40px;
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(209, 0, 108, 0.35);
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  font-size: 0.9rem;
  color: #444;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.best-login-notice p {
  margin: 0 0 0.5rem;
  width: 100%;
  text-align: center;
  margin-bottom: 0.6rem;
}

.best-login-notice .btn {
  font-size: 0.85rem;
  padding: 0.4rem 1.2rem;
}

/********************************************
 * 8. FICHE PRODUIT – QUANTITÉ [- 1 +] + BOUTON
 ********************************************/

/* Bloc global quantité + bouton, bien aligné en colonne */
.product-add-to-cart {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  margin-top: 0.6rem;
  margin-bottom: 1.2rem;
}

/* Bloc quantité : label + pill */
.product-add-to-cart .product-quantity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  font-size: 0.9rem;
}

/* Label "Quantité" */
.product-add-to-cart .product-quantity .control-label,
.product-add-to-cart .product-quantity label[for="quantity_wanted"] {
  margin: 0 0 0.05rem 4px;
  font-weight: 500;
  text-align: left;
}

/* PILL [- 1 +] */
.best-qty-control {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  border: 1px solid #dddddd;
  background: #ffffff;
  height: 40px;
  min-width: 140px;
  overflow: hidden;
}

/* Boutons - et + */
.best-qty-btn {
  width: 40px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.best-qty-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}
.best-qty-btn:focus,
.best-qty-btn:active {
  outline: none;
  box-shadow: none;
  border: none;
}

/* Champ quantité centré */
.best-qty-input {
  width: 46px;
  height: 100%;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1rem;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
  appearance: textfield;
}

/* Masquer les flèches natives */
.product-add-to-cart input#quantity_wanted[type="number"],
.product-add-to-cart .best-qty-input[type="number"] {
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
  appearance: textfield;
}
.product-add-to-cart input#quantity_wanted[type="number"]::-webkit-inner-spin-button,
.product-add-to-cart input#quantity_wanted[type="number"]::-webkit-outer-spin-button,
.product-add-to-cart .best-qty-input[type="number"]::-webkit-inner-spin-button,
.product-add-to-cart .best-qty-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Bouton panier aligné en dessous, à gauche */
.product-add-to-cart .add,
.product-add-to-cart .add-to-cart {
  align-self: flex-start;
}

/* Bouton "Ajouter au panier" harmonisé */
.product-add-to-cart .btn.add-to-cart,
.product-add-to-cart button.add-to-cart,
.product-add-to-cart button[type="submit"].add-to-cart,
.product-add-to-cart .btn.btn-primary.add-to-cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 40px;
  padding: 0.45rem 1.6rem !important;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Masquer le cœur wishlist sur la fiche produit */
.product-actions .wishlist-button,
.product-actions .wishlist-button-add,
.product-actions [data-link-action="add-to-wishlist"],
.product-additional-info .wishlist-button,
.product-additional-info [data-link-action="add-to-wishlist"],
.product-add-to-cart .wishlist-button,
.product-add-to-cart [data-link-action="add-to-wishlist"] {
  display: none !important;
}

/* Masquer le vieux label qui fout le bazar */
.product-add-to-cart > .control-label {
  display: none !important;
}

/* Masquer le bloc réassurance */
.blockreassurance_product {
  display: none !important;
}

/********************************************
 * 9. BOUTONS GLOBAUX – STYLE BEST PREMIUM
 ********************************************/

/* Boutons plein / CTA principaux */
.btn-primary,
button.btn-primary,
button[type="submit"].btn,
.add-to-cart,
.product-miniature .product-actions .add-to-cart,
.product-miniature .product-actions .btn,
.thumbnail-container .product-actions .add-to-cart,
.thumbnail-container .product-actions .btn,
.product-miniature .btn.btn-primary {
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #d1006c, #8a2ba8) border-box !important;
  color: #d1006c !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.8rem !important;
  box-shadow:
    0 0 4px rgba(209, 0, 108, 0.20),
    0 4px 10px rgba(0, 0, 0, 0.10) !important;
  transition: transform 0.15s ease,
              box-shadow 0.15s ease,
              background-color 0.15s ease,
              color 0.15s ease;
}

/* Hover : remplissage dégradé + texte blanc */
.btn-primary:hover,
button.btn-primary:hover,
button[type="submit"].btn:hover,
.add-to-cart:hover,
.product-miniature .product-actions .add-to-cart:hover,
.product-miniature .product-actions .btn:hover,
.thumbnail-container .product-actions .add-to-cart:hover,
.thumbnail-container .product-actions .btn:hover,
.product-miniature .btn.btn-primary:hover {
  background: linear-gradient(90deg, #d1006c, #8a2ba8) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow:
    0 0 6px rgba(209, 0, 108, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.15) !important;
}

/* Boutons outline (si utilisés) */
.btn-outline-primary,
button.btn-outline-primary {
  background: transparent;
  color: var(--best-magenta);
  border-radius: 999px;
  border: 2px solid var(--best-magenta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.45rem 1.4rem;
}
.btn-outline-primary:hover,
button.btn-outline-primary:hover {
  background: rgba(209, 0, 108, 0.08);
  color: var(--best-magenta);
}

/********************************************
 * 10. BADGES, BREADCRUMB, TABS, ALERTES
 ********************************************/

/* Badges produit (PROMO, NOUVEAU...) */
.product-flags .product-flag,
.product-flag {
  background: linear-gradient(135deg, var(--best-magenta), var(--best-violet)) !important;
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px !important;
  padding: 0.25rem 0.8rem !important;
  border: none !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}
.product-flag.discount,
.product-flag.on-sale {
  background: linear-gradient(135deg, var(--best-magenta), var(--best-violet)) !important;
}

/* Breadcrumb / fil d’Ariane */
.breadcrumb {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 1.2rem;
}
.breadcrumb li {
  display: inline-block;
}
.breadcrumb li + li:before {
  content: "›";
  margin: 0 0.3rem;
  color: #bbbbbb;
}
.breadcrumb a {
  color: #666666;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--best-magenta);
}
.breadcrumb li:last-child {
  font-weight: 600;
  color: #111111;
}

/* Tabs produit (Description / Détails...) */
.nav.nav-tabs .nav-link {
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  box-shadow: none !important;
}
.nav.nav-tabs .nav-link.active {
  color: var(--best-magenta) !important;
  border-bottom-color: var(--best-magenta) !important;
  background: transparent !important;
}
.nav.nav-tabs .nav-link:hover {
  color: var(--best-magenta) !important;
  border-bottom-color: rgba(209, 0, 108, 0.6) !important;
}

/* Alerte info (panier, etc.) */
.alert-info {
  background: #fef4fb !important;
  border: 1px solid #f5c6e8 !important;
  color: #444444 !important;
}
.alert-info a,
.alert-info i,
.alert-info .material-icons {
  color: var(--best-magenta) !important;
}

/* Entête des onglets : tabs + EAN à droite */
.best-tabs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Bloc EAN */
.product-ean {
  font-size: 0.85rem;
  color: #666666;
  white-space: nowrap;
}
.product-ean span {
  font-weight: 600;
  margin-left: 0.25rem;
  color: #111111;
}

/********************************************
 * 11. VARIANTS & COULEURS
 ********************************************/

.product-variants .product-variants-item select,
.product-variants .product-variants-item .form-control-select {
  border-radius: 999px !important;
  border: 1px solid #dddddd;
  padding: 0.35rem 1.2rem;
  font-size: 0.9rem;
  min-width: 130px;
  background-color: #ffffff;
}
.product-variants .product-variants-item select:hover,
.product-variants .product-variants-item select:focus {
  border-color: #d1006c;
  outline: none;
}

/* Options couleur */
.color {
  border-radius: 6px !important;
  border: 1px solid #ccc !important;
  width: 22px !important;
  height: 22px !important;
  margin-right: 6px !important;
}
.color:hover,
.color.checked {
  border-color: #d1006c !important;
  box-shadow: 0 0 6px rgba(209, 0, 108, 0.25);
}

/********************************************
 * 12. PAGE CATÉGORIE – ALIGNEMENT & HOVER
 ********************************************/

/* Conteneur visuel : même hauteur partout */
.product-miniature .thumbnail-container .product-thumbnail img {
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Header liste produit */
#js-product-list-header {
  margin-top: 1.4rem !important;
  margin-bottom: 1.4rem !important;
}

/* Un peu d'air entre l'image et le contenu texte */
#products .products .product-miniature.product-card .thumbnail-top {
  margin-bottom: 0.6rem;
}

/* Description interne en vraie colonne, avec un petit gap régulier */
#products .products .product-miniature.product-card .product-description {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Titre produit : lisible, mais évite les pavés de 4 lignes */
#products .products .product-miniature.product-card .product-title a {
  font-size: 0.98rem;
  line-height: 1.3;
}

/* Clamp à 2 lignes sur desktop pour garder des cartes régulières */
@media (min-width: 768px) {
  #products .products .product-miniature.product-card .product-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;

    /* clamp (WebKit) */
    -webkit-line-clamp: 2;

    /* clamp (standard – pour satisfaire VS Code + futur support) */
    line-clamp: 2;

    text-align: center;
  }
}


/* Petites infos sous le titre (réf, conditionnement, short desc) en gris B2B */
#products .products .product-miniature.product-card .product-description .product-reference,
#products .products .product-miniature.product-card .product-description .product-desc,
#products .products .product-miniature.product-card .product-description .product-description-short {
  font-size: 0.78rem;
  color: var(--best-gray);
  margin-bottom: 0.1rem;
}

/* Bloc prix : un chouïa d'espace au-dessus, mais sans tout décaler */
#products .products .product-miniature.product-card .product-price-and-shipping {
  margin-top: 0.35rem;
}

/* Sécurité : masquer d'éventuels prix TTC résiduels sur le listing */
#products .products .product-miniature.product-card .price-ttc-current,
#products .products .product-miniature.product-card .price.price-tax,
#products .products .product-miniature.product-card .tax-shipping-delivery-label {
  display: none !important;
}

/********************************************
 * 13. RESPONSIVE
 ********************************************/

@media (max-width: 991px) {
  .header__inner {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .header__nav {
    order: 3;
    width: 100%;
  }
  .header__nav #_desktop_top_menu > ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* (plus besoin de redéfinir .header__search-inner ici : déjà centré en base) */
  .hero__banner {
    padding: 1.4rem;
  }
}

@media (max-width: 576px) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header__actions {
    align-self: flex-end;
  }
  .hero {
    padding-top: 1rem;
  }
}

/********************************************
 * 14. PAGE COMPTE / LOGIN – BEST B2B
 ********************************************/

.page-authentication #content,
.page-customer-account #content {
  max-width: 980px;
  margin: 2rem auto;
}

.page-authentication h1,
.page-customer-account h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.page-authentication #content .row {
  row-gap: 1.5rem;
}

.page-authentication .login-form,
.page-authentication .register-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

.page-authentication .login-form h3,
.page-authentication .register-form h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.page-authentication .login-form p,
.page-authentication .register-form p {
  font-size: 0.9rem;
  color: var(--best-gray);
}

.page-authentication .form-control {
  border-radius: 999px;
  border: 1px solid #dddddd;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  box-shadow: none;
}
.page-authentication .form-control:focus {
  border-color: var(--best-magenta);
  box-shadow: 0 0 0 2px rgba(209, 0, 108, 0.12);
  outline: none;
}

.page-authentication .form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.page-authentication .form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.page-authentication .form-footer a,
.page-authentication .forgot-password a {
  font-size: 0.85rem;
  color: var(--best-magenta);
  text-decoration: none;
}
.page-authentication .form-footer a:hover,
.page-authentication .forgot-password a:hover {
  color: var(--best-violet);
  text-decoration: underline;
}

.page-authentication .alert-danger,
.page-authentication .alert-warning {
  border-radius: 12px;
  border: 1px solid #f5c6cb;
  background: #fff5f6;
  color: #721c24;
  font-size: 0.9rem;
}

/* Liens du compte client */
.page-customer-account .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-customer-account .links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  text-decoration: none;
  font-size: 0.9rem;
  color: #222;
}
.page-customer-account .links a:hover {
  border-color: rgba(209, 0, 108, 0.35);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  color: var(--best-magenta);
}
.carousel .carousel-control .icon-next:hover i,
.carousel .carousel-control .icon-prev:hover i,
.dropdown:hover .expand-more,
.page-my-account #content .links a:hover i,
.search-widget form button[type=submit] .search:hover,
.top-menu .sub-menu a:hover {
  color: #8a2ba8;
}

@media (max-width: 768px) {
  .page-authentication #content {
    padding: 0 0.75rem;
  }
  .page-authentication .login-form,
  .page-authentication .register-form {
    padding: 1.4rem 1.2rem;
  }
  .page-authentication .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .page-customer-account #content {
    padding: 0 0.75rem;
  }
}

/********************************************
 * 15. FORMULAIRES GLOBAUX & INPUT-GROUP
 ********************************************/

/* Style unifié pour tous les inputs */
.page-authentication .form-control,
.page-customer-account .form-control,
.page-addresses .form-control,
.page-customer-account-password .form-control,
.page-my-account .form-control {
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #dddddd !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.95rem !important;
  box-shadow: none !important;
}

/* Fix : suppression du contour cyan/bleu navigateur */
.page-authentication .form-control:focus,
.page-customer-account .form-control:focus,
.page-addresses .form-control:focus,
.page-customer-account-password .form-control:focus,
.page-my-account .form-control:focus {
  outline: none !important;
  border-color: var(--best-magenta) !important;
  box-shadow: 0 0 0 2px rgba(209, 0, 108, 0.20) !important;
}

/* Bouton "MONTRER" intégré dans un input arrondi */
.input-group .input-group-btn .btn {
  border-radius: 999px !important;
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem !important;
  font-size: 0.8rem !important;
  background: #6b6b6b !important;
  color: #fff !important;
  border: none !important;
  height: 100% !important;
}
.input-group .input-group-btn .btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Fix : l’input-group (password + bouton) doit garder la forme pill */
.input-group {
  display: flex !important;
  align-items: center !important;
}
.input-group .form-control {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Sur les pages internes → bloc blanc */
.page-customer-account #content,
.page-customer-account-password #content,
.page-addresses #content {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.8rem 1.8rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

/* Fix autofill */
.page-authentication input.form-control:-webkit-autofill,
.page-customer-account input.form-control:-webkit-autofill,
.page-addresses input.form-control:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
  box-shadow: 0 0 0 30px #ffffff inset !important;
  -webkit-text-fill-color: #111111 !important;
}

/* Fix cadre turquoise autour des input-group */
.page-authentication .input-group,
.page-customer-account .input-group {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}
.page-authentication .input-group:focus-within,
.page-customer-account .input-group:focus-within {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/********************************************
 * 16. NEUTRALISER TOUCHSPIN SUR FICHE PRODUIT
 ********************************************/

.product-add-to-cart .bootstrap-touchspin,
.product-add-to-cart .input-group.bootstrap-touchspin {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.product-add-to-cart .bootstrap-touchspin .input-group-btn-vertical,
.product-add-to-cart .bootstrap-touchspin .input-group-addon,
.product-add-to-cart .bootstrap-touchspin .btn,
.product-add-to-cart .bootstrap-touchspin .btn-touchspin,
.product-add-to-cart .bootstrap-touchspin .material-icons {
  display: none !important;
  border: none !important;
  box-shadow: none !important;
}
.product-add-to-cart .bootstrap-touchspin input[type="number"] {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  text-align: center;
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
  appearance: textfield;
}
.product-add-to-cart .bootstrap-touchspin input[type="number"]::-webkit-inner-spin-button,
.product-add-to-cart .bootstrap-touchspin input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/********************************************
 * 17. PANIER & POPUP – COULEURS
 ********************************************/

/* Popup "Produit ajouté au panier" */
#blockcart-modal .product-name,
#blockcart-modal .product-name a,
#blockcart-modal .modal-body .product-line-info a {
  color: var(--best-magenta) !important;
}
#blockcart-modal .product-name a:hover,
#blockcart-modal .modal-body .product-line-info a:hover {
  color: var(--best-violet) !important;
}

/* Boutons - / + : pas de cadre noir au focus */
.b2b-qty-btn {
  border: none;
  outline: none;
  box-shadow: none;
}
/* Hover léger gris sur les boutons - / + (listing + fiche produit) */
.product-b2b-qty .b2b-qty-btn,
.best-qty-control .best-qty-btn {
  background: #ffffff;
  transition: background 0.15s ease;
}

.product-b2b-qty .b2b-qty-btn:hover,
.best-qty-control .best-qty-btn:hover {
  background: #f2f2f2 !important;
}
/* On neutralise aussi les états focus / active */
.b2b-qty-btn:focus,
.b2b-qty-btn:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/********************************************
 * 19. RESPONSIVE LOGO
 ********************************************/
/* Centrer le logo uniquement sur smartphone */
@media (max-width: 576px) {
  /* Conteneur du logo */
  #_desktop_logo,
  .header__logo {
    margin: 0 auto;
    align-items: center;
    text-align: center;
  }

  /* L'image elle-même */
  #_desktop_logo img,
  .header__logo img {
    margin: 0 auto;
    display: block;
  }

  /* Si tu veux centrer aussi la baseline BEST */
  #_desktop_logo {
    align-items: center;
  }
  #_desktop_logo .site-baseline {
    text-align: center;
  }

  /* PARTIE DROITE DU HEADER (header-main__right) centrée */
  .header-main__right {
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  /* Centrer le bloc quantité + bouton sur la fiche produit */
  .product-add-to-cart {
    align-items: center;
  }

  /* Centrer visuellement la ligne quantité + stock */
  .product-add-to-cart .product-quantity{
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .product-add-to-cart .product-qty-line {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 2px !important;
  }

  /* Le pill [- 1 +] bien centré */
  .product-add-to-cart .best-qty-control {
    margin-left: auto;
    margin-right: auto;
  }

  /* Centrer le bouton "AJOUTER AU PANIER" sous la quantité */
  .product-add-to-cart .add,
  .product-add-to-cart .add-to-cart {
    align-self: center !important;
    margin-top: 2px !important;
  }

  /* Centrer le mot "Quantité" sur la fiche produit */
  .product-add-to-cart .product-quantity {
    align-items: center;
  }

  .product-add-to-cart .product-quantity .control-label,
  .product-add-to-cart .product-quantity label[for="quantity_wanted"] {
    margin: 0 0 0.25rem 0;
    text-align: center;
  }
}

/********************************************
 * 20. HEADER DÉGRADÉ FIXE
 ********************************************/

/* Bloc dégradé (topbar + header-main + recherche) toujours visible */
.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Laisser de la place sous le header fixe */
body {
  padding-top: 230px !important;
}

.user-info .logout {
  display: none !important;
}

/* Encart "Connectez-vous pour voir le tarif" sur les cartes produit */
.best-card-login-hint {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  text-align: center;
}

.best-card-login-hint a {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 0, 108, 0.4);
  background: #ffffff;
  color: #d1006c;
  text-decoration: none;
  font-weight: 500;
}

.best-card-login-hint a:hover {
  background: linear-gradient(90deg, #d1006c, #8a2ba8);
  color: #ffffff !important;
}

/********************************************
 * 20. === Header du passage de commande : même look que l'accueil ===
 ********************************************/

/* Fond dégradé sur toute la zone header du checkout */
body#checkout #header,
body#checkout .header-main,
body#checkout .header__search {
  background: linear-gradient(90deg, #d1006c, #8a2ba8) !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* On évite qu'un bloc interne remette du blanc */
body#checkout #header .container,
body#checkout #header .header-nav {
  background: transparent !important;
}

/* Logo + partie droite toujours lisibles en blanc */
body#checkout .header-main__right,
body#checkout .header-main__right a,
body#checkout .header-main__right i,
body#checkout .header-main__right .material-icons {
  color: #ffffff !important;
}

/* Si un lien “Contactez-nous” prend une autre couleur au survol */
body#checkout .header-main__right a:hover,
body#checkout .header-main__right a:focus {
  color: #ffffff !important;
}

/* Pas de gros bandeau blanc sur le tunnel de commande */
body#checkout {
  padding-top: 0 !important;
}

.custom-radio input[type=radio]:checked+span {
  background-color: #8a2ba8;
}
body#checkout section.checkout-step .address-item.selected {
  border: #8a2ba8 2px solid;
  border-radius: 20px;
}
.text-muted {
  color: var(--primary) !important;
}
.text-muted :hover{
  color: var(--primary) !important;
}
.block_myaccount_infos .myaccount-title a,#header a {
  color: #ffffff !important;
}

/* Couleur de la baseline sous le logo */
#_desktop_logo .site-baseline,
#_desktop_logo .site-baseline .site-baseline-initial {
  color: #ffffff !important;
}

/* Masque le champ SIRET natif */
#customer-form input[name="siret"],
#customer-form label[for="field-siret"],
#customer-form #field-siret {
  display: none !important;
}

/* Masque aussi la ligne "Optionnel" liée au champ SIRET */
#customer-form #field-siret ~ .form-control-comment {
  display: none !important;
}

/* Supprime tous les "Optionnel" sur le formulaire d'inscription */
#customer-form .form-control-comment{
  display: none !important;
}

/* Masque complètement la ligne SIRET */
#customer-form label[for="field-siret"],
#customer-form label[for="field-siret"] ~ * {
  display: none !important;
}

/* Fallback : enlève le champ et réduit la hauteur au minimum */
#customer-form #field-siret,
#customer-form input[name="siret"],
#customer-form label[for="field-siret"],
#customer-form #field-siret ~ .form-control-comment {
  display: none !important;
}

#customer-form label[for="field-siret"] {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

/* Supprime la row entière qui contient le champ SIRET */
#customer-form .form-group.row:has(#field-siret) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cart-item .current-price .price {
    color: #414141 !important; /* Remplace #414141 par ta couleur (ex: #000000 pour noir) */
}

.mb-0 {
  text-align: center;
}

/* 1. Définition des polices */

/* Regular */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Italic */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Bold (700) */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Application globale sur le site */
body {
  font-family: 'Inter', sans-serif !important;
}

/* Correction de l'adresse coupée dans le footer */
.block-contact, #contact-infos, .footer-contact {
    overflow: visible !important;
    white-space: normal !important;
    height: auto !important;
}

.block-contact .data, .footer-contact .data {
    width: 100% !important;
    display: block !important;
}

/* Autorise l'adresse à s'afficher sur plusieurs lignes */
.block-contact p, 
#contact-infos {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/********************************************
 * 21. FICHE PRODUIT – DLUO / DISPONIBILITÉ
 ********************************************/

/* Supprime le fond vert du bloc DLUO / disponibilité */
.product-availability,
.product-availability .product-available,
#product-availability,
#product-availability .product-available {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Texte DLUO en gris type description */
.product-availability,
.product-availability span,
.product-availability .product-available,
#product-availability,
#product-availability span,
#product-availability .product-available {
  color: var(--best-gray) !important;
  font-weight: 500 !important;
}

/* Supprime le carré / encart vert éventuel */
.product-availability .alert,
.product-availability .alert-success,
#product-availability .alert,
#product-availability .alert-success {
  background: transparent !important;
  border: none !important;
  color: var(--best-gray) !important;
  box-shadow: none !important;
}

/* Supprime l’icône coche verte */
.product-availability i,
.product-availability svg,
.product-availability .material-icons,
#product-availability i,
#product-availability svg,
#product-availability .material-icons {
  display: none !important;
}

/********************************************
 * 22. PAGE CATÉGORIE – HAUTEUR CARTES STABLE
 ********************************************/

/* Ne pas casser la grille native PrestaShop */
#products .products {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

/* Chaque colonne produit garde sa largeur Bootstrap normale */
#products .products .js-product,
#products .products .product {
  display: flex !important;
  margin-bottom: 2rem !important;
}

/* La carte prend toute la hauteur de sa colonne */
#products .products .product-miniature.product-card {
  width: 100% !important;
  display: flex !important;
}

#products .products .product-miniature.product-card .product-card__inner {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Image : hauteur fixe pour éviter les décalages */
#products .products .product-miniature.product-card .thumbnail-top {
  min-height: 185px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#products .products .product-miniature.product-card .product-thumbnail img {
  max-height: 170px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Titre : hauteur régulière */
#products .products .product-miniature.product-card .product-title {
  min-height: 44px !important;
}

/* Prix : hauteur régulière */
#products .products .product-miniature.product-card .product-price-and-shipping {
  min-height: 60px !important;
}

/* Stock + quantité + bouton toujours en bas */
#products .products .product-miniature.product-card .product-b2b-actions {
  margin-top: auto !important;
}

/********************************************
 * 23. MOBILE – BANDEAU CATÉGORIES PROPRE
 ********************************************/

@media (max-width: 767px) {

  /* Barre catégories compacte */
  .category-bar {
    display: block !important;
    background: #ffffff !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    z-index: 30 !important;
  }

  .category-bar__wrapper,
  .category-bar__inner {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  /* On force le menu à être visible sur mobile */
  .category-bar #_desktop_top_menu,
  .category-bar #_desktop_top_menu.hidden-sm-down {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
  }

  /* Liste horizontale propre */
  .category-bar #top-menu,
  .category-bar .top-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    list-style: none !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Cache la barre de scroll sur Chrome/Safari mobile */
  .category-bar #top-menu::-webkit-scrollbar,
  .category-bar .top-menu::-webkit-scrollbar {
    display: none !important;
  }

  /* Chaque catégorie reste sur une seule ligne */
  .category-bar #top-menu > li,
  .category-bar .top-menu > li {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Liens catégories */
  .category-bar #top-menu > li > a,
  .category-bar .top-menu > li > a {
    display: block !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1d1d1d !important;
    background: transparent !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  /* Hover / actif sur mobile */
  .category-bar #top-menu > li > a:hover,
  .category-bar .top-menu > li > a:hover,
  .category-bar #top-menu > li.current > a,
  .category-bar .top-menu > li.current > a {
    background: linear-gradient(90deg, #d1006c, #8a2ba8) !important;
    color: #ffffff !important;
  }

  /* Supprime les flèches / icônes de sous-menu qui polluent le mobile */
  .category-bar .navbar-toggler,
  .category-bar .collapse-icons,
  .category-bar .add,
  .category-bar .remove,
  .category-bar .material-icons,
  .category-bar .sub-menu {
    display: none !important;
  }

  /* Sécurité : les sous-menus ne doivent pas s'ouvrir dans le bandeau mobile */
  .category-bar .popover,
  .category-bar .js-sub-menu,
  .category-bar .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}



/********************************************
 * 24. MOBILE – HEADER FIXE + MENU CATÉGORIES
 ********************************************/

@media (max-width: 767px) {

  body {
    padding-top: 330px !important;
  }

  .category-bar {
    position: sticky !important;
    top: 350px !important;
    z-index: 999 !important;
    background: #ffffff !important;
  }
}