/**** ===== CARTES PRODUITS - DESIGN MODERNE AMÉLIORÉ ===== ****/

.excerpt-product {
  position: relative;
  background-color: #fff;
  height: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.excerpt-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.excerpt-product a:before {
  display: none;
}

/* ===== IMAGE GRANDE - PREND TOUT L'ESPACE ===== */
.excerpt-product .image {
  position: relative;
  background-color: #fff; /* ✅ CHANGÉ DE #f8f8f8 À #fff */
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
}

.excerpt-product .image a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.excerpt-product .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}

/* IMPORTANT : Empêcher les marques d'être dans l'image */
.excerpt-product .image .cats {
  display: none !important;
}

/* ===== FAVORIS - EN HAUT À DROITE ===== */
.excerpt-product .yith-add-to-wishlist-button-block {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.excerpt-product .yith-wcwl-add-to-wishlist-button {
  background: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 2px solid #fff;
  transition: all 0.2s ease;
}

.excerpt-product .yith-wcwl-add-to-wishlist-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.excerpt-product .yith-add-to-wishlist-button-block svg {
  width: 26px !important;
  height: 26px !important;
}

.excerpt-product .yith-add-to-wishlist-button-block span {
  display: none;
}

/* ===== BADGES PROMO - EN HAUT À GAUCHE ===== */
.excerpt-product .badge-sale {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #f06bc2 0%, #e62ca1 100%);
  color: #fff;
  padding: 10px 22px;
  font-weight: 700;
  border-radius: 24px;
  font-size: 1.05rem;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(230, 44, 161, 0.4);
}

.excerpt-product .badge-sale .bulk {
  font-size: 0.85rem;
}

/* Badge « Nouveau » (nouveautes-module.php, 2026-11-04). Même coin et même
   place que la remise, en vert pour ne pas se confondre avec elle, et plus
   petit : c'est un repère, pas une offre. Les deux ne cohabitent jamais sur
   une carte, la remise passe devant (voir template-parts/product/excerpt.php). */
.excerpt-product .badge-nouveau {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #12b39b 0%, #008f7e 100%);
  color: #fff;
  padding: 7px 16px;
  font-weight: 700;
  border-radius: 24px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(0, 143, 126, 0.35);
}

/* Déstockage à -34 % (lib/fin-de-serie.php) : une seconde ligne dans le badge */
.badge-sale:has(.badge-fin-serie) {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: 14px;
  line-height: 1.15;
}

.badge-fin-serie {
  display: block;
  margin-top: 3px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  /* sur deux lignes : la vignette fait ~170 px de large sur téléphone */
  max-width: 8.5em;
  text-align: center;
}

/* Tablette et téléphone : le badge collait à l'angle arrondi de la vignette */
@media (max-width: 991px) {
  .excerpt-product .badge-sale:has(.badge-fin-serie) {
    top: 20px;
    left: 20px;
    padding: 7px 12px;
    font-size: 0.95rem;
  }
}

/* Encadré sur la fiche produit */
.pdc-fin-serie {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #f5c26b;
  border-radius: 10px;
  background: #fff8eb;
  color: #5c3d00;
  font-size: 0.875rem;
  line-height: 1.45;
}

.pdc-fin-serie i,
.pdc-fin-serie svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #c27c0e;
}

.pdc-fin-serie strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.pdc-fin-serie p {
  margin: 0;
}

.pdc-fin-serie a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* ===== PRODUIT INDISPONIBLE =====
   Le fond passait en gris : dans une grille de cartes blanches, c'était la
   carte indisponible qui ressortait le plus. Le contraire de ce qu'on veut.
   La carte garde donc le même fond que ses voisines, et c'est son CONTENU qui
   s'efface : visuel désaturé, textes en gris, plus aucun bouton de couleur.
   Elle reste lisible pour qui la cherche, sans attirer l'œil de personne
   (2026-11-13). */
.excerpt-product.is-unavailable {
  background-color: #fff;
  border-color: #ededed;
}

.excerpt-product.is-unavailable .image {
  background-color: transparent;
}

.excerpt-product.is-unavailable .image img {
  filter: grayscale(1);
  opacity: 0.72;
}

.excerpt-product.is-unavailable .product-title,
.excerpt-product.is-unavailable .product-title a,
.excerpt-product.is-unavailable .price,
.excerpt-product.is-unavailable .price *,
.excerpt-product.is-unavailable .pdc-contenance {
  color: #9aa0a6 !important;
}

/* Les pastilles de promotion n'ont plus lieu d'être sur un produit qu'on ne
   peut pas acheter : elles rendaient la carte plus voyante encore. */
.excerpt-product.is-unavailable .on-sale-badge,
.excerpt-product.is-unavailable .badge-promo,
.excerpt-product.is-unavailable .badge-low-stock {
  display: none !important;
}

/* Remplace le bouton rose : un lien gris, lisible, qui ne crie pas. */
.btn-epuise {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 14px;
  border: 1px solid #e0e2e5;
  border-radius: 999px;
  background: #f6f7f8;
  color: #6b7280 !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: none;
}

.btn-epuise:hover {
  background: #eef0f2;
  color: #4b5563 !important;
}

/* Badge "Indisponible" — même emplacement que le badge promo (haut gauche),
   mais volontairement discret : gris clair sur fond clair, pas de capitales.
   Il était en gris foncé plein, ce qui en faisait la tache la plus sombre de
   la grille. */
.excerpt-product .badge-unavailable {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  background: #f0f1f3;
  color: #80868b;
  padding: 6px 12px;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

/* Bouton œil — même cercle que le bouton panier, mais en gris : cliquable et
   identifiable, sans capter l'attention comme un ajout au panier. */
/* Sans ombre : le style de base pose une ombre ROSE (couleur de marque),
   incohérente sur un bouton gris. */
.excerpt-product.is-unavailable .product-actions a.btn-color-1,
.excerpt-product.is-unavailable .product-actions a.btn-color-1:hover {
  box-shadow: none;
}

.excerpt-product.is-unavailable .product-actions a.btn-color-1 {
  background: #8d8d93;
}

.excerpt-product.is-unavailable .product-actions a.btn-color-1:hover {
  background: #76767c;
}

/* ===== BADGE STOCK - EN BAS À DROITE DANS L'IMAGE ===== */
.excerpt-product .badge-low-stock {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 87, 34, 0.95);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.excerpt-product .badge-low-stock.critical {
  background: rgba(220, 53, 69, 0.95);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.excerpt-product .badge-low-stock svg,
.excerpt-product .badge-low-stock i {
  width: 12px;
  height: 12px;
}

/* ===== MARQUES/GAMMES - JUSTE SOUS L'IMAGE (PAS DEDANS) ===== */
.excerpt-product > .cats {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px;
  margin-top: 12px;
  margin-bottom: 0;
}

.excerpt-product > .cats .cat {
  border: 1px solid #ddd;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  background-color: transparent;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===== CONTENU ===== */
.excerpt-product .excerpt-product-content {
  padding: 12px 16px 16px 16px;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.excerpt-product .excerpt-product-content .product-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.excerpt-product .excerpt-product-content .attribute-term {
  background-color: transparent;
  border: 1px solid #ddd;
  padding: 4px 12px;
  font-size: 0.7rem;
  border-radius: 20px;
  color: #666;
  font-weight: 500;
}

/* ===== TITRE ===== */
.excerpt-product .excerpt-product-content h3 {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 0.95rem;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

/* Le gabarit sort un <span class="title">, pas un <h3> : la règle ci-dessus
   ne l'atteint pas. Sans clamp, un titre long part sur trois lignes et
   descend le trait, le prix et le panier — d'où le décalage d'une carte à
   l'autre (2026-11-04). Cette règle existait, mais seulement sous 991 px. */
.excerpt-product .excerpt-product-content .title {
  display: -webkit-box;
  font-weight: 700;
  color: #1a1a1a;
  font-size: 0.95rem;
  margin: 0 0 8px 0;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

/* ===== DESCRIPTION ===== */
.excerpt-product .excerpt-product-content .excerpt {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 auto 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

/* ===== PRIX + PANIER SUR LA MÊME LIGNE ===== */
/* margin-top: auto — le bloc est collé au bas de la carte, donc le trait, le
   prix et le panier sont à la même hauteur d'une carte à l'autre quelle que
   soit la longueur du titre (les cartes d'une rangée ont la même hauteur).
   C'était l'extrait, avec son `margin-bottom: auto`, qui jouait ce rôle
   avant son retrait le 2026-11-04. */
.excerpt-product .excerpt-product-content .absolute-position {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.excerpt-product .excerpt-product-content .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wp--preset--color--color-1);
  margin: 0;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
}

.excerpt-product .excerpt-product-content .price del {
  font-size: 0.9rem;
  font-weight: 400;
  color: #999;
}

.excerpt-product .excerpt-product-content .price ins {
  text-decoration: none;
  font-size: 1.4rem;
}

.excerpt-product .excerpt-product-content .star-rating svg {
  color: var(--wp--preset--color--color-2);
  font-size: 0.875rem;
}

/* ===== ACTIONS (PANIER) ===== */
.excerpt-product .product-actions {
  width: auto;
  height: auto;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

/* Cacher le bouton VOIR */
.excerpt-product .product-actions .btn-white {
  display: none;
}

/* Bouton AJOUTER rond avec icône centrée */
.excerpt-product .product-actions button.add_to_cart_button,
.excerpt-product .product-actions a.btn-color-1 {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wp--preset--color--color-1);
  border: none;
  color: #fff;
  font-size: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(230, 44, 161, 0.3);
}

.excerpt-product .product-actions button.add_to_cart_button:hover,
.excerpt-product .product-actions a.btn-color-1:hover {
  background: #c0237d;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(230, 44, 161, 0.4);
}

/* FontAwesome peut être chargé en SVG (JS) ou en police (CSS, lib/vitesse.php
   depuis le 2026-10-15) : il faut couvrir les deux rendus.
   - en SVG, le <svg> hérite de width:1em et le font-size:0 du bouton le rend
     invisible : d'où width/height en pixels ;
   - en police, l'icône est un CARACTÈRE. width/height ne suffisent pas, elle
     se peint à la taille de la police — donc à zéro, et le bouton restait
     vide (constaté sur la préprod le 2026-11-04). D'où font-size ici.
   Règle générale : tout conteneur en font-size:0 doit redonner une taille à
   l'icône qu'il contient, pas seulement une largeur. */
.excerpt-product .product-actions button.add_to_cart_button svg,
.excerpt-product .product-actions button.add_to_cart_button i,
.excerpt-product .product-actions a.btn-color-1 svg,
.excerpt-product .product-actions a.btn-color-1 i {
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
  fill: #fff;
  color: #fff;
  display: block;
  margin: 0 auto;
}

/* !important requis : sur la fiche produit, les cartes « Vous aimerez aussi »
   sont DANS le div.product de la page → la règle native WooCommerce
   `.woocommerce div.product form.cart { margin-bottom: 2em }` (plus spécifique)
   gagnait et désalignait le bouton panier par rapport au prix. */
.excerpt-product form.cart {
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.excerpt-product form.cart .wc-forward {
  display: none;
}

/* Fiche produit : notre ajout AJAX (force_ajax…) déclenche `added_to_cart` en
   passant le bouton → WooCommerce insère un lien « Voir le panier » juste après
   le CTA, ce qui le rétrécit. Le drawer remplace la page panier, donc ce lien
   est inutile : on le masque (classe `added_to_cart`, propre à ce lien). */
a.added_to_cart {
  display: none !important;
}

/* ==========================================================================
   CARDS COMPACTES - TELEPHONE ET TABLETTE UNIQUEMENT
   Au-dessus de 991 px la card garde ses dimensions d'origine.
   ========================================================================== */
@media screen and (max-width: 991px) {
  .excerpt-product > .cats {
    margin-top: 8px;
  }

  .excerpt-product .excerpt-product-content {
    padding: 10px 16px 14px 16px;
    gap: 6px;
  }

  /* Le gabarit sort un <span class="title"> et non un <h3> : sans cette regle
     le titre n'est pas tronque et part sur trois lignes. */
  .excerpt-product .excerpt-product-content .title {
    display: -webkit-box;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.9rem;
    margin: 0 0 4px 0;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
  }

  .excerpt-product .excerpt-product-content .absolute-position {
    margin-top: auto;
    padding-top: 10px;
  }
}

/* ===== PRODUITS EN PROMO ===== */
.excerpt-product.on-sale {
  background-color: #fff;
  border: 2px solid #e62ca1;
}

/**** ===== CARROUSEL PRODUITS - MOBILE OPTIMISÉ ===== ****/

.produits-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 15px;
  padding: 0 10px 15px 15px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.produits-carousel::-webkit-scrollbar {
  display: none;
}

.produits-carousel .product-slide {
  flex: 0 0 72% !important;
  max-width: 72% !important;
  min-width: 72% !important;
  scroll-snap-align: start;
}

.produits-carousel .excerpt-product {
  height: 100% !important;
}

/* Images GRANDES sans espace gris - object-fit: contain pour garder proportions */
.produits-carousel .excerpt-product .image {
  height: 210px !important;
  padding: 0 !important;
  background-color: #fff;
}

.produits-carousel .excerpt-product .image a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.produits-carousel .excerpt-product .image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* ✅ Garde les proportions */
  object-position: center;
}

@media screen and (min-width: 576px) {
  .produits-carousel .product-slide {
    flex: 0 0 60% !important;
    max-width: 60% !important;
    min-width: 60% !important;
  }
}

@media screen and (min-width: 768px) {
  .produits-carousel .product-slide {
    flex: 0 0 48% !important;
    max-width: 48% !important;
    min-width: 48% !important;
  }
}

@media screen and (min-width: 992px) {
  .produits-carousel .product-slide {
    flex: 0 0 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
  }

  .produits-carousel .excerpt-product {
    height: auto !important;
  }

  .produits-carousel .excerpt-product .image {
    height: 280px !important;
    padding: 20px !important;
    background-color: #fff;
  }

  .produits-carousel .excerpt-product .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
  }
}

@media screen and (max-width: 380px) {
  .produits-carousel .product-slide {
    flex: 0 0 78% !important;
    max-width: 78% !important;
    min-width: 78% !important;
  }

  .produits-carousel .excerpt-product {
    height: 100% !important;
  }

  .produits-carousel .excerpt-product .image {
    height: 200px !important;
  }
}

/* ===== RESPONSIVE DESKTOP - VERSION CONTAIN (garde proportions) ===== */
@media screen and (min-width: 991px) {
  /* Images avec padding = fond blanc visible */
  .excerpt-product .image {
    height: 280px;
    padding: 20px !important;
    background-color: #fff;
  }

  .excerpt-product .image a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  /* Object-fit contain = garde les proportions, ne coupe pas */
  .excerpt-product .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
  }

  .excerpt-product .excerpt-product-content .excerpt {
    margin-bottom: 0;
  }

  .excerpt-product .product-actions {
    position: static;
    height: auto;
    opacity: 1;
  }
}

/* Large desktop - images plus grandes */
@media screen and (min-width: 1200px) {
  .excerpt-product .image {
    height: 320px;
    padding: 25px !important;
  }
}

/* Extra large desktop */
@media screen and (min-width: 1400px) {
  .excerpt-product .image {
    height: 340px;
    padding: 30px !important;
  }
}

/***** Single product ****/

.product .main-bloc {
  display: flex;

  flex-direction: row;

  justify-content: space-between;

  align-items: flex-start;

  background-color: #fdf3f9;

  padding: 2% 3% 3% 3%;

  border-radius: 5px;
}

.product .main-bloc .onsale {
  position: absolute;

  top: 5%;

  left: 5%;

  color: var(--wp--preset--color--color-1);

  background-color: var(--wp--preset--color--color-6);

  padding: 5px 15px;

  font-weight: 700;

  border-radius: 20px;

  font-size: 1.5rem;

  min-width: 0;

  min-height: 0;

  line-height: 1.2;
}

.product .main-bloc .woocommerce-product-gallery {
  width: 100% !important;

  background-color: #fff;

  border-radius: 20px;

  padding: 15px;
}

.product .main-bloc .woocommerce-product-gallery img {
  margin: 0 auto 20px auto;

  max-height: 600px;

  width: auto !important;
}

.product .main-bloc .single-product-intro .product_meta {
  display: flex;

  flex-direction: row;

  align-items: center;

  gap: 5px;
}

.product .main-bloc .yith-add-to-wishlist-button-block {
  gap: 5px;
}

.product .main-bloc .yith-add-to-wishlist-button-block a {
  font-size: 14px;
}

.product .main-bloc .yith-add-to-wishlist-button-block a svg {
  width: 20px;
}

.product .main-bloc .single-product-intro .product_meta .tagged_as {
  background-color: #fff;

  border: 1px solid var(--wp--preset--color--color-text);

  padding: 5px 15px;

  border-radius: 25px;

  margin-top: 15px;

  margin-bottom: 15px;
}

.product .main-bloc .single-product-intro h1 {
  font-size: 1.25rem;

  font-weight: 700;

  margin-bottom: 15px;

  letter-spacing: 0.5px;
}

.product .main-bloc .star-rating {
  font-size: 14px;
}

.product .main-bloc .star-rating:before {
  color: var(--wp--preset--color--color-2);
}

.product .main-bloc .woocommerce-product-rating {
  display: flex;

  align-items: baseline;

  gap: 5px;

  font-size: 14px;
}

.product .main-bloc .star-rating span:before {
  color: var(--wp--preset--color--color-2);
}

.product .main-bloc .sku_wrapper {
  display: block;

  margin-bottom: 15px;
}

.product .main-bloc .entry-summary {
  width: 100% !important;

  float: none !important;

  background-color: #fff;

  border-radius: 20px;

  padding: 15px;
}

/*** Prix ****/

.product .main-bloc .entry-summary .price {
  display: flex;

  flex-direction: column;

  color: var(--wp--preset--color--color-1);

  font-weight: 700;

  font-size: 2rem;

  line-height: 1.2;
}

.product .main-bloc .entry-summary .price del {
  font-size: 1rem;

  color: var(--wp--preset--color--color-text);

  font-weight: 400;
}

.product .main-bloc .entry-summary .price ins {
  text-decoration: none;
}

/**** Variations *****/

.product .main-bloc .entry-summary .variations .cfvsw-swatches-container {
  flex-direction: column;

  width: 100%;

  gap: 5px;
}

.product
  .main-bloc
  .entry-summary
  .variations
  .cfvsw-swatches-container
  .cfvsw-swatches-option {
  width: 100%;

  border: none;

  padding: 10px;

  background-color: #e6f2f0;

  color: var(--wp--preset--color--color-2);

  text-align: left;

  font-size: 1.125rem;

  font-weight: 500;
}

.product .main-bloc .entry-summary .variations td.value {
  display: flex;

  flex-direction: column;
}

.product
  .main-bloc
  .entry-summary
  .variations
  .cfvsw-swatches-container
  .cfvsw-swatches-option
  .cfvsw-swatch-inner {
  justify-content: flex-start;
}

.product
  .main-bloc
  .entry-summary
  .variations
  .cfvsw-swatches-container
  .cfvsw-swatches-option:not(.cfvsw-swatches-disabled):hover,
.product
  .main-bloc
  .entry-summary
  .variations
  .cfvsw-swatches-container
  .cfvsw-swatches-option.cfvsw-selected-swatch {
  background-color: var(--wp--preset--color--color-2);

  color: #fff;
}

.product
  .main-bloc
  .entry-summary
  .variations
  .cfvsw-swatches-container
  .cfvsw-swatches-disabled {
  cursor: not-allowed;

  position: relative;
}

.product
  .main-bloc
  .entry-summary
  .variations
  .cfvsw-swatches-container
  .cfvsw-swatches-disabled:before {
  opacity: 0.6;
}

.product
  .main-bloc
  .entry-summary
  .variations
  .cfvsw-swatches-container
  .cfvsw-swatches-disabled:after {
  position: absolute;

  content: "Hors stock";

  top: 0;

  right: 0;

  width: 45%;

  height: 100%;

  background-color: var(--wp--preset--color--color-2);

  color: #fff;

  text-transform: uppercase;

  font-size: 0.875rem;

  display: flex;

  align-items: center;

  justify-content: center;
}

.product .main-bloc .entry-summary .variations .reset_variations {
  display: none !important;
}

.product .main-bloc .entry-summary .woocommerce-variation-add-to-cart,
.product .main-bloc .entry-summary .single-cart {
  display: flex;

  flex-direction: row;

  justify-content: space-between;

  align-items: center;

  gap: 10px;

  margin-top: 5vh;
}

/* quantité */

.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after {
  display: none;
}

.single-product .product .main-bloc form.cart .qib-container {
  width: fit-content;

  display: flex;

  gap: 20px;

  flex-direction: row-reverse;

  border-radius: 4px;

  border: 1px solid hsla(0, 0%, 7%, 0.21);
}

.single-product .product .main-bloc form.cart .qib-container .quantity {
  margin: 0;
}

.single-product .product .main-bloc form.cart .qib-container .quantity input {
  border: none;

  padding: 10px 0;

  margin-right: -10px;
}

.single-product .product .main-bloc form.cart .qib-container button {
  border: none;

  background-color: transparent;

  padding: 10px;

  color: hsla(0, 0%, 7%, 0.71);
}

/**** Tabs ****/

.woocommerce-tabs {
  margin-top: 5vh;
}

.woocommerce-tabs ul.tabs {
  display: flex;

  align-items: center;

  justify-content: flex-start;

  row-gap: 10px;

  column-gap: 20px;

  flex-wrap: wrap;
}

.woocommerce-tabs ul.tabs:before {
  display: none !important;
}

.woocommerce-tabs ul.tabs li {
  border: none !important;

  padding: 0 !important;

  margin: 0 !important;

  background-color: transparent !important;
}

.woocommerce-tabs ul.tabs li a {
  color: var(--wp--preset--color--color-text) !important;
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--wp--preset--color--color-1) !important;

  text-decoration: underline !important;
}

@media screen and (min-width: 991px) {
  .product .main-bloc .entry-summary .woocommerce-variation-add-to-cart,
  .product .main-bloc .entry-summary .single-cart {
    flex-direction: column;
  }

  .woocommerce-tabs ul.tabs {
    justify-content: center;
  }
}

@media screen and (min-width: 1200px) {
  .product .main-bloc .entry-summary .woocommerce-variation-add-to-cart,
  .product .main-bloc .entry-summary .single-cart {
    flex-direction: row;
  }
}

/**** Produits liés ****/

.upsells.products,
.related.products {
  margin-top: 5vh;
}

.upsells.products h2,
.related.products h2 {
  margin-bottom: 5vh;

  text-transform: uppercase;

  font-weight: 500;

  font-size: 2.5rem;
}

/* ==========================================
   DESKTOP PRODUCT PAGE STYLES
   ========================================== */

/* Masquer le desktop sur mobile */
@media screen and (max-width: 991px) {
  .desktop-product-layout {
    display: none !important;
  }
}

/* Afficher desktop uniquement sur grand écran */
@media screen and (min-width: 992px) {
  .desktop-product-layout {
    display: block !important;
  }

  /* ========== 1. FIL D'ARIANE ========== */
  .desktop-breadcrumb-container {
    /* Padding bas resserré : il se cumulait avec celui de la section produit
       et créait un grand vide sous le fil d'ariane. */
    padding: 12px 0 6px;
  }

  .desktop-breadcrumb-container .woocommerce-breadcrumb {
    font-size: 0.875rem;
    color: #999;
  }

  .desktop-breadcrumb-container .woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
  }

  .desktop-breadcrumb-container .woocommerce-breadcrumb a:hover {
    color: var(--wp--preset--color--color-1);
  }

  /* ========== 2. SECTION PRODUIT PRINCIPALE ========== */
  .desktop-product-main-section {
    padding: 20px 0 34px;
    background-color: #fafafa;
    border-radius: 15px;
    margin-bottom: 20px;
  }

  /* Le titre s'aligne sur le haut de l'image plutôt que 20px plus bas */
  .desktop-product-right-content {
    padding-top: 4px;
  }

  /* GALERIE D'IMAGES */
  .desktop-gallery-wrapper {
    background-color: #fff;
    border-radius: 12px;
    padding: 0px;
    position: relative;
    overflow: hidden; /* Important : empêche la gommette de sortir */
    margin-left: 50px;
  }

  .desktop-gallery-wrapper .woocommerce-product-gallery {
    width: 100% !important;
    position: relative;
  }

  /* Agrandir l'image principale */
  .desktop-gallery-wrapper .woocommerce-product-gallery__wrapper {
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .desktop-gallery-wrapper .woocommerce-product-gallery__image img {
    border-radius: 8px;
    max-height: 550px;
    width: auto !important;
    object-fit: contain;
  }

  /* Badge réduction - Position ABSOLUTE dans le wrapper pour rester DANS l'image */
  .desktop-gallery-wrapper .onsale {
    position: absolute !important;
    top: 45px !important;
    left: 45px !important;
    background-color: var(--wp--preset--color--color-6) !important;
    color: var(--wp--preset--color--color-1) !important;
    padding: 8px 20px !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    z-index: 10 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  /* Forcer le conteneur de l'image à ne pas avoir d'espace blanc en haut */
  .desktop-gallery-wrapper .woocommerce-product-gallery figure {
    margin: 0 !important;
    position: relative;
  }

  /* CONTENU DROITE */
  .desktop-product-right-content {
    padding: 20px;
    position: relative;
  }

  /* Wishlist - Plus visible sous le titre */
  .desktop-wishlist-wrapper {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .desktop-wishlist-wrapper .yith-add-to-wishlist-button-block {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .desktop-wishlist-wrapper .yith-add-to-wishlist-button-block a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #fff3f8;
    border: 2px solid var(--wp--preset--color--color-1);
    border-radius: 25px;
    transition: all 0.2s;
    text-decoration: none;
  }

  .desktop-wishlist-wrapper .yith-add-to-wishlist-button-block a:hover {
    background-color: var(--wp--preset--color--color-1);
    transform: scale(1.05);
  }

  .desktop-wishlist-wrapper svg {
    width: 20px !important;
    height: 20px !important;
    color: var(--wp--preset--color--color-1) !important;
    transition: color 0.2s;
  }

  .desktop-wishlist-wrapper .yith-add-to-wishlist-button-block a:hover svg {
    color: #fff !important;
  }

  .desktop-wishlist-wrapper span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wp--preset--color--color-1);
    transition: color 0.2s;
  }

  .desktop-wishlist-wrapper .yith-add-to-wishlist-button-block a:hover span {
    color: #fff;
  }

  /* Titre H1 */
  .desktop-product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wp--preset--color--color-8);
    margin-bottom: 15px;
    line-height: 1.3;
  }

  /* Badges Marque + Gamme */
  .desktop-product-badges-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
  }

  .desktop-badge {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
  }

  .desktop-badge-brand {
    background-color: #e6f2f0;
    color: var(--wp--preset--color--color-2);
  }

  .desktop-badge-gamme {
    background-color: #fff3e0;
    color: #ff9800;
  }

  /* Note */
  .desktop-product-right-content .woocommerce-product-rating {
    margin-bottom: 20px;
  }

  .desktop-product-right-content .star-rating {
    font-size: 16px;
  }

  .desktop-product-right-content .star-rating:before,
  .desktop-product-right-content .star-rating span:before {
    color: var(--wp--preset--color--color-2);
  }

  /* Prix */
  .desktop-price-section {
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 15px;
  }

  .desktop-price-old {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
  }

  .desktop-price-new {
    font-size: 2.5rem;
    color: var(--wp--preset--color--color-1);
    font-weight: 700;
  }

  .desktop-price-single {
    font-size: 2.5rem;
    color: var(--wp--preset--color--color-1);
    font-weight: 700;
  }

  /* Promotion Type 9 */
  .desktop-promo-banner {
    background-color: var(--wp--preset--color--color-6);
    color: var(--wp--preset--color--color-1);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
  }

  .desktop-promo-banner i {
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .desktop-promo-banner a {
    color: var(--wp--preset--color--color-1);
    font-weight: 700;
    text-decoration: underline;
  }

  /* Description courte */
  .desktop-short-description {
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--wp--preset--color--color-text);
  }

  /* Variations */
  .desktop-variations-wrapper {
    margin-bottom: 25px;
  }

  /* Quantité + Stock */
  .desktop-quantity-stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
  }

  .desktop-quantity-group {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .desktop-quantity-group label {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
  }

  .desktop-qib-container {
    display: flex;
    align-items: center;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
  }

  .desktop-qib-container button {
    background-color: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wp--preset--color--color-2);
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .desktop-qib-container button:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .desktop-qib-container .desktop-qty-input {
    border: none;
    width: 60px;
    text-align: center;
    padding: 12px 8px;
    font-weight: 600;
    font-size: 1.1rem;
  }

  /* Stock */
  .desktop-stock-group {
    display: flex;
    align-items: center;
  }

  .desktop-stock-available {
    color: var(--wp--preset--color--color-2);
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .desktop-stock-available i {
    font-size: 1.5rem;
  }

  .desktop-stock-unavailable {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .desktop-stock-unavailable i {
    font-size: 1.5rem;
  }

  /* Bouton Ajouter au panier */
  .desktop-add-to-cart-wrapper {
    margin-bottom: 25px;
  }

  .desktop-cart-form {
    margin: 0 !important;
  }

  .desktop-btn-add-to-cart {
    width: 100%;
    padding: 18px 30px !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    border: none;
    transition:
      transform 0.2s,
      box-shadow 0.2s;
  }

  .desktop-btn-add-to-cart:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .desktop-btn-add-to-cart.disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  /* Réassurances - EN LIGNE avec couleurs */
  .desktop-reassurance-badges {
    display: flex;
    gap: 15px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
  }

  .desktop-reassurance-badges .desktop-reassurance-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 10px;
    flex: 1;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e6f7f5 0%, #d4f1ec 100%);
    border: 2px solid var(--wp--preset--color--color-2);
    border-radius: 10px;
    transition:
      transform 0.2s,
      box-shadow 0.2s;
  }

  .desktop-reassurance-badges .desktop-reassurance-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 189, 165, 0.2);
  }

  .desktop-reassurance-badges .desktop-reassurance-item i {
    font-size: 1.75rem;
    color: var(--wp--preset--color--color-2);
    flex-shrink: 0;
  }

  .desktop-reassurance-badges .desktop-reassurance-item span {
    font-size: 0.875rem;
    color: var(--wp--preset--color--color-8);
    font-weight: 600;
    line-height: 1.3;
  }

  /* ========== 3. SECTION CONTENU ========== */
  .desktop-content-section {
    /* Le padding haut se cumulait avec la marge basse de la section produit
       (50 + 50 = 100px de vide). Padding bas conservé pour la suite de page. */
    padding: 10px 0 50px;
  }

  /* SIDEBAR GAUCHE */
  .desktop-sidebar-wrapper {
    position: relative;
  }

  /* Menu des sections */
  .desktop-tabs-menu {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .desktop-tabs-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .desktop-tab-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 5px;
  }

  .desktop-tab-menu-item:hover {
    background-color: #f8f8f8;
  }

  .desktop-tab-menu-item.active {
    background-color: var(--wp--preset--color--color-2);
    color: #fff;
  }

  .desktop-tab-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    color: var(--wp--preset--color--color-2);
  }

  .desktop-tab-menu-item.active .desktop-tab-icon {
    color: #fff;
  }

  .desktop-tab-menu-item span {
    font-size: 0.95rem;
    font-weight: 500;
  }

  /* H2 "Vous consultez" */
  .desktop-consulted-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--wp--preset--color--color-8);
  }

  /* Card "Vous consultez" - VERSION CORRIGÉE */
  .desktop-consulted-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  /* FIX IMAGE "VOUS CONSULTEZ" - IMAGE COMPLÈTE */
  .desktop-card-image {
    height: 300px !important;
    min-height: 300px !important;
  }

  .desktop-card-image img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 280px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .desktop-card-info {
    text-align: center;
  }

  .desktop-card-product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--wp--preset--color--color-8);
    line-height: 1.3;
  }

  .desktop-card-price {
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wp--preset--color--color-1);
  }

  .desktop-card-price del {
    font-size: 0.95rem;
    color: #999;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 8px;
  }

  .desktop-card-price ins {
    text-decoration: none;
  }

  .desktop-card-btn {
    width: 100%;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: none;
  }

  /* Carte « Vous consultez » — produit épuisé : label rupture au lieu du CTA */
  .desktop-card-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    background: #fdecea;
    color: #dc3545;
    font-weight: 700;
    font-size: 0.95rem;
  }
  .desktop-card-unavailable i,
  .desktop-card-unavailable svg {
    color: #dc3545;
  }

  /* CONTENU DES ONGLETS
     Sans padding en haut : les 40 px décalaient le premier titre du panneau
     par rapport au menu des onglets de la colonne de gauche, qui démarre au
     bord du bloc. Les deux colonnes partent maintenant de la même ligne
     (2026-11-13). */
  .desktop-tabs-content-wrapper {
    background-color: #fff;
    border-radius: 12px;
    padding: 0 40px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 400px;
  }

  .desktop-tab-content-panel {
    display: none;
  }

  .desktop-tab-content-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Les .pdc-hN sont les h2–h6 du contenu d'onglet DÉGRADÉS en <div> côté
     desktop (copie anti-duplication du plan Hn — voir content-single-product.php).
     Ils doivent rendre exactement comme les titres d'origine. */
  .desktop-tab-content-panel h2,
  .desktop-tab-content-panel .pdc-h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--wp--preset--color--color-8);
  }

  .desktop-tab-content-panel .pdc-h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--wp--preset--color--color-8);
    line-height: 1.3;
  }

  .desktop-tab-content-panel .pdc-h4,
  .desktop-tab-content-panel .pdc-h5,
  .desktop-tab-content-panel .pdc-h6 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 18px 0 10px;
    color: var(--wp--preset--color--color-8);
    line-height: 1.3;
  }

  .desktop-tab-content-panel p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--wp--preset--color--color-text);
  }

  /* ========== 4. PRODUITS LIÉS ========== */
  .desktop-related-section {
    padding: 50px 0;
  }

  .desktop-related-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--wp--preset--color--color-8);
  }

  /* ========== 5. À PROPOS PHARMACIE ========== */
  .desktop-pharmacy-about-section {
    background-color: #fdf3f9;
    padding: 60px 0;
    margin-top: 50px;
  }

  .desktop-pharmacy-about-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--wp--preset--color--color-8);
    text-align: left;
    padding: 0 20px;
  }

  .desktop-pharmacy-about-section p {
    text-align: left;
    max-width: none;
    margin: 0 0 40px 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--wp--preset--color--color-text);
    padding: 0 20px;
  }

  .desktop-pharmacy-reassurance {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .desktop-pharmacy-reassurance .desktop-reassurance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    background-color: #fff;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition:
      transform 0.2s,
      box-shadow 0.2s;
  }

  .desktop-pharmacy-reassurance .desktop-reassurance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }

  .desktop-pharmacy-reassurance .desktop-reassurance-item i {
    font-size: 2.5rem;
    color: var(--wp--preset--color--color-2);
  }

  .desktop-pharmacy-reassurance .desktop-reassurance-item span {
    font-size: 0.875rem;
    color: var(--wp--preset--color--color-text);
    font-weight: 600;
    line-height: 1.3;
  }

  /* Responsive pour tablettes */
  @media screen and (max-width: 1199px) {
    .desktop-pharmacy-reassurance {
      grid-template-columns: repeat(3, 1fr);
    }

    .desktop-consulted-card.is-sticky {
      position: relative !important;
      width: 100% !important;
    }
  }

  /* FIX pour écrans entre 992px et 1200px */
  @media screen and (min-width: 992px) and (max-width: 1199px) {
    /* Réduire les badges de réassurance pour qu'ils ne dépassent pas */
    .desktop-reassurance-badges {
      flex-direction: column;
      gap: 10px;
    }

    .desktop-reassurance-badges .desktop-reassurance-item {
      padding: 12px 15px;
    }

    .desktop-reassurance-badges .desktop-reassurance-item i {
      font-size: 1.5rem;
    }

    .desktop-reassurance-badges .desktop-reassurance-item span {
      font-size: 0.8rem;
    }

    /* Empêcher le label "Quantité" de passer sur deux lignes */
    .desktop-quantity-stock-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }

    .desktop-quantity-group {
      width: 100%;
    }

    .desktop-quantity-group label {
      font-size: 0.9rem;
      white-space: nowrap; /* Empêche le retour à la ligne */
    }

    .desktop-stock-group {
      width: 100%;
    }

    /* Réduire la taille du titre si nécessaire */
    .desktop-product-title {
      font-size: 1.75rem;
    }

    /* Réduire les badges */
    .desktop-product-badges-row {
      flex-wrap: wrap;
    }

    .desktop-badge {
      font-size: 0.8rem;
      padding: 5px 14px;
    }
  }
}

/* ============================================================
   ENCART « PRODUIT INDISPONIBLE → ALTERNATIVE » (compact)
   Intégré dans la zone d'achat de la fiche produit, à la place du
   bouton. Arrêté = accent rose (marque) ; temporaire = accent orange.
   ============================================================ */
.pdc-unavail {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  margin-bottom: 20px;
}

.pdc-unavail__status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pdc-unavail__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
}

.pdc-unavail.is-temp .pdc-unavail__badge {
  background: #f59e0b;
}

.pdc-unavail.is-discontinued .pdc-unavail__badge {
  background: var(--wp--preset--color--color-1, #e62ca1);
}

.pdc-unavail__status-text {
  color: #6b7280;
  font-size: 0.95rem;
}

.pdc-unavail__alt {
  border: 2px solid var(--wp--preset--color--color-1, #e62ca1);
  border-radius: 12px;
  padding: 14px;
  background: #fff5fb;
}

.pdc-unavail__alt-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--color-1, #e62ca1);
  margin-bottom: 12px;
}

.pdc-unavail__alt-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 14px;
}

.pdc-unavail__alt-img {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdc-unavail__alt-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdc-unavail__alt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pdc-unavail__alt-brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #9ca3af;
}

.pdc-unavail__alt-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.25;
}

.pdc-unavail__alt-price {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 2px;
}

.pdc-unavail__alt-price del {
  color: #9ca3af;
  font-weight: 400;
  font-size: 0.85em;
  margin-right: 6px;
}

.pdc-unavail__alt-price ins {
  text-decoration: none;
  color: var(--wp--preset--color--color-1, #e62ca1);
}

.pdc-unavail__alt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff !important;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: var(--wp--preset--color--color-1, #e62ca1);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.pdc-unavail__alt-btn:hover {
  background: #c91f8a;
  transform: translateY(-1px);
}

.mobile-unavail-block {
  margin: 8px 0 4px;
}

/* ============================================================
   SÉLECTEUR DE VARIATION CUSTOM (fiche produit — mobile + desktop)
   Un seul menu déroulant + quantité + bouton. Voir
   template-parts/product/variation-selector.php et product-variations.js
   ============================================================ */
.pdc-variation-form {
  margin: 6px 0 4px;
}

.pdc-var-field {
  margin-bottom: 14px;
}

.pdc-var-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.pdc-variation-select {
  width: 100%;
  padding: 13px 40px 13px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  background-color: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e62ca1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.pdc-variation-select:focus {
  outline: none;
  border-color: var(--wp--preset--color--color-1, #e62ca1);
  box-shadow: 0 0 0 3px rgba(230, 44, 161, 0.12);
}

.pdc-variation-select option:disabled {
  color: #9ca3af;
}

/* Ligne de stock sous le select */
.pdc-var-stock {
  min-height: 18px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}
.pdc-var-stock .pdc-stock-low {
  color: #d97706;
}
.pdc-var-stock .pdc-stock-ok {
  color: #16a34a;
}
.pdc-var-stock .pdc-stock-out {
  color: #dc2626;
}

/* Ligne quantité + bouton */
.pdc-var-action-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.pdc-var-qty {
  display: inline-flex;
  align-items: center;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.pdc-qty-btn {
  width: 42px;
  height: 100%;
  min-height: 48px;
  border: none;
  background: #f9fafb;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.pdc-qty-btn:hover {
  background: #f1f2f4;
}

.pdc-var-qty-input {
  width: 52px;
  height: 48px;
  border: none;
  border-left: 2px solid #e5e7eb;
  border-right: 2px solid #e5e7eb;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  -moz-appearance: textfield;
}
.pdc-var-qty-input::-webkit-outer-spin-button,
.pdc-var-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdc-var-add {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.pdc-var-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Prix « À partir de » du bloc mobile */
.mobile-variation-block {
  margin: 4px 0 8px;
}
.mobile-variable-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--wp--preset--color--color-1, #e62ca1);
  margin-bottom: 14px;
}
.mobile-variable-price del {
  color: #9ca3af;
  font-weight: 500;
  font-size: 17px;
  margin-right: 8px;
}
.mobile-variable-price ins {
  text-decoration: none;
}

/* =============================================================================
   FICHE PRODUIT DESKTOP — galerie, favoris, stock, zone d'achat
   ============================================================================= */
@media screen and (min-width: 992px) {
  .desktop-custom-gallery {
    position: relative;

    /* ═══════════════════════════════════════════════════════
       RÉGLAGE : hauteur maximale de l'image produit sur PC
       Une seule valeur à modifier. Elle pilote à la fois l'image
       et la hauteur de sa zone d'affichage — les modifier
       séparément créerait un vide ou un débordement.
       ═══════════════════════════════════════════════════════ */
    --pdc-img-max-h: 650px;
  }

  .desktop-main-image-wrapper {
    position: relative;
  }

  .desktop-gallery-wrapper .desktop-main-image,
  #desktop-main-product-image {
    max-height: var(--pdc-img-max-h, 650px) !important;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto !important;
  }

  .desktop-gallery-wrapper .desktop-main-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--pdc-img-max-h, 650px);
  }

  /* ── Stock faible : overlay en haut à DROITE de l'image ── */
  .desktop-gallery-stock {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: #b45309;
    border: 1px solid #fcd34d;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
  }

  .desktop-gallery-stock i,
  .desktop-gallery-stock svg {
    width: 14px;
    height: 14px;
    color: #16a34a;
  }

  /* ── Favoris : en bas à DROITE de l'image, cœur SVG ── */
  /* Le CERCLE est porté par notre propre conteneur, pas par le <a> de YITH :
     sa géométrie est ainsi indépendante du markup du plugin (wrappers,
     nœuds texte, padding hérité), qui décentrait le cœur. */
  .desktop-gallery-wishlist {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 5;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    color: #9ca3af;
    overflow: hidden;
    transition:
      color 0.2s ease,
      transform 0.15s ease;
  }

  .desktop-gallery-wishlist:hover {
    color: var(--wp--preset--color--color-1);
    transform: scale(1.08);
  }

  /* Les blocs d'état de YITH restent centrés sans qu'on touche à leur display */
  .desktop-gallery-wishlist .yith-wcwl-add-button,
  .desktop-gallery-wishlist .yith-wcwl-wishlistaddedbrowse,
  .desktop-gallery-wishlist .yith-wcwl-wishlistexistsbrowse {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
  }

  /* Le lien de la galerie doit rester AU-DESSUS des overlays (badge stock,
     pastille favoris), sinon il n'est plus cliquable et PhotoSwipe ne s'ouvre
     plus. Le favoris, lui, remonte à 6 pour rester atteignable. */
  .desktop-main-image-wrapper .desktop-main-image-link {
    position: relative;
    z-index: 2;
  }

  .desktop-gallery-wishlist {
    z-index: 6;
  }

  /* Tous les niveaux intermédiaires de YITH deviennent de simples boîtes
     transparentes qui remplissent le cercle et recentrent leur contenu. */
  /* IMPORTANT : ne PAS forcer le display des blocs d'état de YITH
     (.yith-wcwl-add-button, .yith-wcwl-wishlistaddedbrowse,
     .yith-wcwl-wishlistexistsbrowse). YITH les masque en style inline pour
     n'en montrer qu'un ; les forcer en flex les superposait tous, et le clic
     atterrissait sur l'état inactif — d'où l'impossibilité de retirer des
     favoris. On laisse YITH piloter leur affichage, le centrage vient du
     conteneur parent. */
  .desktop-gallery-wishlist > div,
  .desktop-gallery-wishlist .yith-add-to-wishlist-button-block,
  .desktop-gallery-wishlist .yith-wcwl-add-to-wishlist,
  .desktop-gallery-wishlist a {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    /* YITH insère son libellé en NŒUD TEXTE brut : aucun display:none ne peut
       l'atteindre, seul font-size:0 le réduit à zéro. */
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: 0 !important;
    color: inherit !important;
    text-decoration: none !important;
  }

  /* On garde l'ICÔNE de YITH (c'est elle qui porte les états ajouté/retiré,
     mis à jour par son propre JS) et on ne masque que le LIBELLÉ texte.
     Auparavant je masquais l'icône pour dessiner mon propre cœur en masque
     CSS : le rendu était propre mais figé, aucun changement de couleur à
     l'ajout, et le clic ne pilotait plus le retrait. */
  .desktop-gallery-wishlist a span:not(.yith-wcwl-icon) {
    display: none !important;
  }

  .desktop-gallery-wishlist a i,
  .desktop-gallery-wishlist a svg,
  .desktop-gallery-wishlist a img {
    display: block !important;
    width: 23px !important;
    height: 23px !important;
    font-size: 21px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  /* Le cœur dessiné en masque CSS est retiré : il ne pouvait pas refléter
     l'état réel du favori. C'est l'icône de YITH qui reprend sa place. */

  /* Produit déjà en favoris → cœur en couleur de marque. La couleur est posée
     sur le conteneur, le ::before héritant via currentColor. */
  .desktop-gallery-wishlist:has(.yith-wcwl-wishlistexistsbrowse),
  .desktop-gallery-wishlist:has(.yith-wcwl-wishlistaddedbrowse),
  .desktop-gallery-wishlist:has(a.exists),
  .desktop-gallery-wishlist:has(a.added) {
    color: var(--wp--preset--color--color-1);
  }

  /* ── Vignettes : défilement horizontal + flèches roses ── */
  .desktop-thumbnails-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
  }

  .desktop-thumbnails-wrapper .desktop-thumbnails-list {
    flex: 1 1 auto;
    min-width: 0;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    margin: 0 !important;
    padding: 2px !important;
    list-style: none !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  .desktop-thumbnails-wrapper .desktop-thumbnails-list::-webkit-scrollbar {
    display: none;
  }

  .desktop-thumbnails-wrapper .desktop-thumb-item {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    margin: 0 !important;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease;
  }

  .desktop-thumbnails-wrapper .desktop-thumb-item.active {
    border-color: var(--wp--preset--color--color-1);
  }

  .desktop-thumbnails-wrapper .desktop-thumb-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    margin: 0 !important;
    padding: 5px;
    box-sizing: border-box;
  }

  .desktop-thumbs-arrow {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--wp--preset--color--color-1);
    cursor: pointer;
    transition:
      opacity 0.2s ease,
      transform 0.15s ease;
  }

  .desktop-thumbs-arrow:hover {
    transform: scale(1.1);
  }

  /* Extrémité atteinte : la flèche s'estompe sans disparaître (le décalage
     des vignettes serait pire que le maintien d'une flèche inactive). */
  .desktop-thumbs-arrow[disabled] {
    opacity: 0.3;
    cursor: default;
    transform: none;
  }

  .desktop-thumbs-arrow span {
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
  }

  .desktop-thumbs-arrow--prev span {
    transform: rotate(-135deg);
    margin-left: 3px;
  }

  .desktop-thumbs-arrow--next span {
    transform: rotate(45deg);
    margin-right: 3px;
  }

  /* ── Badges marque / gamme cliquables ── */
  .desktop-product-badges-row a.desktop-badge {
    text-decoration: none !important;
    transition:
      filter 0.2s ease,
      transform 0.15s ease;
  }

  .desktop-product-badges-row a.desktop-badge:hover {
    filter: brightness(0.94);
    transform: translateY(-1px);
  }

  /* Barre rose animée que le thème injecte sur tous les <a> */
  .desktop-product-badges-row a.desktop-badge::before,
  .desktop-product-badges-row a.desktop-badge::after,
  .desktop-gallery-wishlist a::after {
    display: none !important;
    content: none !important;
  }

  /* Survol du CTA : anneau rose autour du bouton. `outline` plutôt que
     `border`, pour ne pas modifier la boîte et donc l'alignement avec le
     sélecteur de quantité posé juste à côté. */
  .desktop-btn-add-to-cart:hover,
  .desktop-btn-add-to-cart:focus-visible {
    outline: 2px solid var(--wp--preset--color--color-1);
    outline-offset: 3px;
  }

  /* ── Quantité + CTA sur une seule ligne ── */
  .desktop-buy-row {
    display: flex !important;
    align-items: stretch;
    gap: 12px;
    margin: 0 !important;
  }

  .desktop-buy-row .desktop-qib-container {
    flex: 0 0 auto;
  }

  /* Padding vertical réel (il était à 0) et libellé insécable : le bouton se
     coupait en trois lignes dès que la colonne se resserrait. */
  .desktop-buy-row .desktop-btn-add-to-cart {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    white-space: nowrap;
    padding: clamp(14px, 1.15vw, 20px) clamp(16px, 1.9vw, 34px) !important;
    font-size: clamp(0.88rem, 0.95vw, 1.125rem) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 0.6vw, 10px);
  }

  /* La rangée ne contient plus que le stock : on l'allège */
  .desktop-quantity-stock-row.desktop-stock-only {
    padding: 12px 20px;
    margin-bottom: 15px;
    justify-content: flex-start;
  }

  /* ── Titre + marque/gamme + logo de marque ── */
  .desktop-title-row {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 1.5vw, 24px);
    margin-bottom: 15px;
  }

  /* Colonne de gauche : le H1 et, juste dessous, les badges marque / gamme. */
  .desktop-title-row__main {
    flex: 1 1 auto;
    min-width: 0;
  }

  .desktop-title-row .desktop-product-title {
    margin-bottom: 0;
    font-size: clamp(1.25rem, 1.75vw, 1.75rem);
    font-weight: 600;
  }

  /* Collés au titre : 8px seulement, et plus de marge basse (c'est la
     .desktop-title-row qui porte l'écart avec la suite). */
  .desktop-title-row .desktop-product-badges-row {
    margin: 8px 0 0;
  }

  .desktop-brand-logo {
    flex: 0 0 20%;
    width: 20%;
    max-width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  }

  .desktop-brand-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* ── Réf produit ── */
  .desktop-product-right-content .sku_wrapper {
    display: block;
    margin-bottom: 15px;
    font-size: 0.625rem; /* 10px */
    color: var(--wp--preset--color--color-text);
  }

  /* ── Prix intégré à la ligne d'achat ── */
  .desktop-price-inline {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 !important;
    white-space: nowrap;
  }

  .desktop-price-inline {
    gap: clamp(5px, 0.65vw, 10px);
  }

  .desktop-price-inline .desktop-price-old {
    font-size: clamp(0.95rem, 1.15vw, 1.25rem);
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
  }

  .desktop-price-inline .desktop-price-new,
  .desktop-price-inline .desktop-price-single {
    font-size: clamp(1.45rem, 2.1vw, 2.125rem);
    line-height: 1;
    font-weight: 700;
    color: var(--wp--preset--color--color-1);
  }

  .desktop-buy-row {
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(8px, 1.05vw, 16px);
  }

  /* Sélecteur de quantité fluide, pour qu'il ne mange pas la place du CTA */
  .desktop-buy-row .desktop-qty-minus,
  .desktop-buy-row .desktop-qty-plus {
    width: clamp(30px, 2.6vw, 42px);
  }

  .desktop-buy-row .desktop-qty-input {
    width: clamp(38px, 3.2vw, 56px);
  }

  /* ── Description courte : les bénéfices produit, en puces ── */
  .desktop-short-description {
    margin-bottom: 20px;
  }

  .desktop-short-description p {
    margin-bottom: 10px;
  }

  .desktop-short-description p:last-child,
  .desktop-short-description ul:last-child {
    margin-bottom: 0;
  }

  /* Puces « bénéfice » : coche à la couleur de marque plutôt qu'un rond gris.
     La coche est un masque et non une image de fond, pour qu'elle suive la
     couleur définie ici sans avoir à ré-encoder le SVG. */
  .desktop-short-description ul {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .desktop-short-description ul li {
    position: relative;
    padding-left: 26px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--wp--preset--color--color-text);
  }

  .desktop-short-description ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 16px;
    height: 16px;
    background-color: var(--wp--preset--color--color-2, #00a896);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
      no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
      no-repeat center / contain;
  }

  .pdc-more-link {
    color: var(--wp--preset--color--color-1);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
  }

  .pdc-more-link::before,
  .pdc-more-link::after {
    display: none !important;
    content: none !important;
  }

  /* ── Réassurance : une ligne pleine largeur par élément ── */
  .desktop-reassurance-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .desktop-reassurance-badges .desktop-reassurance-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(8px, 0.85vw, 12px);
    flex: 0 0 auto;
    padding: clamp(9px, 0.85vw, 12px) clamp(12px, 1.3vw, 18px);
    background: #eefaf7;
    border: 1px solid #cfeee7;
    border-radius: 10px;
    transition: none;
  }

  .desktop-reassurance-badges .desktop-reassurance-item:hover {
    transform: none;
    box-shadow: none;
  }

  .desktop-reassurance-badges .desktop-reassurance-item i,
  .desktop-reassurance-badges .desktop-reassurance-item > svg {
    font-size: clamp(0.95rem, 1.15vw, 1.125rem);
    width: clamp(15px, 1.15vw, 18px);
    height: clamp(15px, 1.15vw, 18px);
    flex-shrink: 0;
    color: var(--wp--preset--color--color-2);
  }

  .desktop-reassurance-badges .desktop-reassurance-item span {
    font-size: clamp(0.74rem, 0.88vw, 0.84rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--wp--preset--color--color-8);
  }

  /* Couleurs par nature d'information (charte du site) */
  .desktop-reassurance-item.is-promo {
    background: #fff3e0;
    border-color: #ffe0b2;
  }
  .desktop-reassurance-item.is-promo i {
    color: #ff9800;
  }

  .desktop-reassurance-item.is-shipping {
    background: #eefaf7;
    border-color: #cfeee7;
  }

  .desktop-reassurance-item.is-payment {
    background: #eef7fd;
    border-color: #cfe7f7;
  }
  .desktop-reassurance-item.is-payment i {
    color: #5bb7e5;
  }

  .desktop-reassurance-item.is-quality {
    background: #fdf3f9;
    border-color: #f6d5e9;
  }
  .desktop-reassurance-item.is-quality i {
    color: var(--wp--preset--color--color-1);
  }

  /* ── Moyens de paiement ── */
  .pdc-paylogos {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.55vw, 8px);
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Logos SVG identiques à ceux du checkout — ratio 60x38 conservé */
  .pdc-card-icon {
    display: block;
    flex: 0 0 auto;
    height: clamp(22px, 1.85vw, 28px);
    width: auto;
    aspect-ratio: 60 / 38;
    border-radius: 4px;
  }

  /* ── Chapô en tête de l'onglet Description ── */
  .desktop-tab-content-panel .pdc-panel-lead {
    font-size: 16.5px;
    color: #1f2937;
    margin: 0 0 24px;
  }

  /* ── Onglets en barre horizontale ── */
  .desktop-tabs-menu--horizontal {
    margin-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
  }

  .desktop-tabs-menu--horizontal .desktop-tabs-menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .desktop-tabs-menu--horizontal .desktop-tab-menu-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 !important;
    padding: 13px 22px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    list-style: none !important;
    transition:
      color 0.2s ease,
      border-color 0.2s ease;
  }

  .desktop-tabs-menu--horizontal .desktop-tab-menu-item:hover {
    color: var(--wp--preset--color--color-1);
  }

  .desktop-tabs-menu--horizontal .desktop-tab-menu-item.active {
    color: var(--wp--preset--color--color-1);
    border-bottom-color: var(--wp--preset--color--color-1);
    background: none;
  }

  .desktop-tabs-menu--horizontal .desktop-tab-icon,
  .desktop-tabs-menu--horizontal .desktop-tab-menu-item svg {
    width: 16px;
    height: 16px;
    font-size: 16px;
    flex: 0 0 auto;
  }
}

/* Chapô de l'onglet Description — hors media query : sert aussi sur mobile */
.mobile-product-tabs .accordion-body .pdc-panel-lead {
  font-size: 16.5px;
  color: #1f2937;
  margin: 0 0 18px;
}

/* Tablettes 992 → 1199px.
   Les tailles et paddings sont désormais fluides dans la règle de base : les
   redéclarer ici recréerait exactement le saut à 1200px qu'on cherche à
   éviter. On ne garde que le repli des logos de paiement sous le libellé,
   qui est un vrai changement de disposition et non un changement d'échelle. */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .desktop-reassurance-item.is-payment {
    flex-wrap: wrap;
  }
  .desktop-reassurance-item.is-payment .pdc-paylogos {
    margin-left: 30px;
  }
}

/* =============================================================================
   CONTENU ÉDITORIAL DES ONGLETS (description, conseils, composition…)
   Même contenu rendu à deux endroits : accordéon mobile et panneaux desktop.
   Les styles sont donc mutualisés ici.

   NB : dans les panneaux desktop, les h2–h6 sont dégradés en <div class="pdc-hN">
   pour ne pas dupliquer le plan de titres (cf. content-single-product.php) —
   d'où le double ciblage hN / .pdc-hN.
   ============================================================================= */
.mobile-product-tabs .accordion-body,
.desktop-tab-content-panel {
  /* global.css impose color-text (le vert de la charte) à tout .accordion-body :
     illisible sur un corps de texte long. On repasse en gris anthracite, la
     couleur restant réservée aux accents. */
  color: #374151 !important;
  font-size: 15.5px;
  line-height: 1.65;
}

.mobile-product-tabs .accordion-body p,
.desktop-tab-content-panel p {
  color: inherit;
  margin: 0 0 14px;
  line-height: inherit;
}

.mobile-product-tabs .accordion-body p:last-child,
.desktop-tab-content-panel p:last-child {
  margin-bottom: 0;
}

/* Chapô : le premier paragraphe porte le résumé, on lui donne du poids */
.mobile-product-tabs .accordion-body > p:first-child,
.desktop-tab-content-panel > p:first-child {
  font-size: 16.5px;
  color: #1f2937;
  margin-bottom: 18px;
}

.mobile-product-tabs .accordion-body strong,
.mobile-product-tabs .accordion-body b,
.desktop-tab-content-panel strong,
.desktop-tab-content-panel b {
  color: #1f2937;
  font-weight: 700;
}

/* Sous-titres saisis dans l'éditeur */
.mobile-product-tabs .accordion-body h3,
.mobile-product-tabs .accordion-body h4,
.desktop-tab-content-panel .pdc-h3,
.desktop-tab-content-panel .pdc-h4,
.desktop-tab-content-panel h3,
.desktop-tab-content-panel h4 {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin: 22px 0 10px;
  line-height: 1.3;
}

/* Listes : puce remplacée par une coche rose — c'est le format idéal pour les
   énumérations d'actifs, de précautions ou de mentions « 0% … ». */
.mobile-product-tabs .accordion-body ul,
.desktop-tab-content-panel ul {
  list-style: none !important;
  margin: 0 0 14px;
  padding: 0 !important;
}

.mobile-product-tabs .accordion-body ul li,
.desktop-tab-content-panel ul li {
  position: relative;
  list-style: none !important;
  margin: 0 0 8px;
  padding-left: 26px;
}

.mobile-product-tabs .accordion-body ul li::marker,
.desktop-tab-content-panel ul li::marker {
  content: none !important;
}

.mobile-product-tabs .accordion-body ul li::before,
.desktop-tab-content-panel ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--wp--preset--color--color-1);
  border-bottom: 2px solid var(--wp--preset--color--color-1);
  transform: rotate(-45deg);
}

/* Listes numérotées : on garde les chiffres, en couleur de marque */
.mobile-product-tabs .accordion-body ol,
.desktop-tab-content-panel ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.mobile-product-tabs .accordion-body ol li,
.desktop-tab-content-panel ol li {
  margin-bottom: 8px;
}

.mobile-product-tabs .accordion-body ol li::marker,
.desktop-tab-content-panel ol li::marker {
  color: var(--wp--preset--color--color-1);
  font-weight: 700;
}

/* =============================================================================
   « VOUS AIMEREZ AUSSI » — titre et bouton catégorie
   ============================================================================= */
.shared-related-products .related.products > h2,
.shared-related-products .related.products > h2.home-h2 {
  font-size: 30px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 800;
  margin-bottom: 18px;
}

.related-all-products {
  display: flex;
  justify-content: center;
  /* Espacement symétrique au-dessus et en dessous du bouton */
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Bouton pleine largeur, fond plein — plus lisible qu'un contour et cohérent
   avec un bloc qui se termine sur une action. */
.related-all-products__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  max-width: 520px;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--wp--preset--color--color-1);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  transition:
    filter 0.2s ease,
    transform 0.1s ease;
}

.related-all-products__btn:hover {
  filter: brightness(0.93);
  color: #fff !important;
}

.related-all-products__btn:active {
  transform: translateY(1px);
}

/* Barre rose animée injectée par le thème sur tous les <a> */
.related-all-products__btn::before,
.related-all-products__btn::after {
  display: none !important;
  content: none !important;
}

/* =============================================================================
   SOUS-CATÉGORIES — pilules cliquables au-dessus de la grille produits
   ============================================================================= */
.subcat-chips {
  margin: 0 0 22px;
}

.subcat-chips__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subcat-chips__list li {
  margin: 0;
  list-style: none;
}

/* Le thème pose une barre rose animée en ::before sur tous les <a> : on la
   neutralise ici, elle traverserait la pilule. */
.subcat-chips a::before,
.subcat-chips a::after {
  display: none !important;
  content: none !important;
}

.subcat-chips__item {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid #dcdcde;
  border-radius: 999px;
  background: #fff;
  color: #2b2b2b !important;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none !important;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

/* Survol : pilule pleine en rose de marque */
.subcat-chips__item:hover,
.subcat-chips__item:focus-visible {
  border-color: var(--wp--preset--color--color-1);
  background: var(--wp--preset--color--color-1);
  color: #fff !important;
}

/* Catégorie courante (cas d'une feuille : on affiche ses sœurs) — en contour,
   pour rester distincte de l'état de survol qui, lui, est plein. */
.subcat-chips__item.is-current {
  border-color: var(--wp--preset--color--color-1);
  color: var(--wp--preset--color--color-1) !important;
  font-weight: 600;
}

.subcat-chips__item.is-current:hover,
.subcat-chips__item.is-current:focus-visible {
  color: #fff !important;
}

/* Les pilules qui ne tiennent pas sur deux lignes sont repliées derrière
   « Voir les X autres ». C'est product-filters.js qui pose l'attribut hidden,
   lui seul connaît la largeur réelle des pilules à l'écran. */
.subcat-chips__list > li[hidden] {
  display: none;
}

/* Le bouton est une pilule de la liste : il doit finir la deuxième ligne,
   pas commencer une troisième à lui tout seul. */
.subcat-chips__more {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: none;
  border: 1px dashed #c9ccd3;
  border-radius: 999px;
  color: #5e6470;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.subcat-chips__more:hover,
.subcat-chips__more:focus-visible {
  border-color: var(--wp--preset--color--color-1);
  color: var(--wp--preset--color--color-1);
}

@media screen and (max-width: 991px) {
  .subcat-chips {
    margin-bottom: 16px;
  }

  .subcat-chips__list {
    gap: 8px;
  }

  .subcat-chips__item {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* =============================================================================
   TABLEAUX DANS LE CONTENU ÉDITORIAL (posologie, composition…)
   Saisis en WYSIWYG, ils ont souvent plus de colonnes que la largeur d'un
   mobile. On les rend défilables horizontalement plutôt que de les laisser
   déborder de la page — inutile d'ajouter une classe côté rédaction.
   ============================================================================= */
.mobile-product-tabs .accordion-body table,
.desktop-tab-content-panel table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 0 0 18px;
  /* Indique visuellement qu'il y a du contenu à droite */
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.12), transparent)
      left center,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.12), transparent)
      right center;
  background-repeat: no-repeat;
  background-size:
    32px 100%,
    32px 100%,
    12px 100%,
    12px 100%;
  background-attachment: local, local, scroll, scroll;
}

.mobile-product-tabs .accordion-body table th,
.mobile-product-tabs .accordion-body table td,
.desktop-tab-content-panel table th,
.desktop-tab-content-panel table td {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
  min-width: 90px;
}

.mobile-product-tabs .accordion-body table th,
.desktop-tab-content-panel table th {
  background: #f7f7f8;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}

.mobile-product-tabs .accordion-body table tr:nth-child(even) td,
.desktop-tab-content-panel table tr:nth-child(even) td {
  background: #fcfcfd;
}

/* ---- Image produit plus grande sur tablette ---- */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .mobile-gallery {
    --pdc-img-max-h: 420px;
  }
}

/* =============================================================================
   LIENS DANS LE CONTENU ÉDITORIAL DES ONGLETS
   -----------------------------------------------------------------------------
   Aucune règle ne stylait les liens ici : ils héritaient du gris anthracite
   du corps de texte (#374151), sans soulignement — donc indistinguables d'un
   mot ordinaire. Les liens de maillage interne étaient bien posés mais
   invisibles à l'œil.
   ========================================================================== */
.mobile-product-tabs .accordion-body a:not(.btn-color-1):not(.btn-white),
.desktop-tab-content-panel a:not(.btn-color-1):not(.btn-white) {
  color: var(--wp--preset--color--color-1, #e62ca1);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 500;
}

.mobile-product-tabs .accordion-body a:not(.btn-color-1):not(.btn-white):hover,
.desktop-tab-content-panel a:not(.btn-color-1):not(.btn-white):hover {
  text-decoration-thickness: 2px;
}

/* Phrase de maillage : légèrement détachée du paragraphe qui la précède,
   sans encadré ni fond — elle doit se lire comme du texte rédactionnel. */
p.ml-maillage {
  margin-top: 0.75em;
}

/* ──────────────────────────────────────────────────────────────
   Mentions réglementaires du médicament
   ──────────────────────────────────────────────────────────────
   Tout élément cliquable du site se signale par un soulignement rose : un
   lien de la couleur du texte passe inaperçu, et un bouton encadré sans
   soulignement se lit comme une étiquette.
   ────────────────────────────────────────────────────────────── */

.pdc-mentions-medicament {
  margin-top: 1.25rem;
}

/*
 * Encart du medicament : l'avertissement et les trois actions dans un meme
 * cadre rose.
 *
 * Rassembles plutot que juxtaposes : la phrase renvoie a la notice, les
 * boutons y donnent acces. Separes, on lisait une consigne puis des liens sans
 * rapport apparent.
 */
.pdc-encart-medicament {
  /* Respiration au-dessus et en dessous : l'encart etait colle aux elements
     de reassurance qui l'entourent. */
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  /* Teinte a peine perceptible : l'encart doit se distinguer du fond sans
     rivaliser avec le prix et le bouton d'achat, qui sont les deux elements
     que le visiteur cherche. */
  background: #fffafc;
  border: 1px solid #f4dce9;
  border-radius: 12px;
}

.pdc-encart-medicament__texte {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #55505a;
}

.pdc-encart-medicament__texte strong {
  font-weight: 600;
  color: #3f3a45;
}

.pdc-encart-medicament__icone {
  flex: 0 0 auto;
  color: #d4739f;
  line-height: 0;
  margin-top: 2px;
}

/* La taille est imposee en CSS et non par les attributs du SVG : elle doit
   pouvoir changer selon l'ecran, ce que des attributs figes interdisent. */
.pdc-encart-medicament__icone svg {
  width: 15px;
  height: 15px;
}

/*
 * Grille plutot que flex : notice et RCP occupent chacun une colonne, quelle
 * que soit la largeur de l'ecran, et la question au pharmacien passe dessous
 * sur toute la largeur. Un flex-wrap aurait fait descendre le RCP sous la
 * notice des que la place manque, ce qui n'est pas voulu.
 */
.pdc-liens-medicament {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.75rem 0 0;
}

/* La question prend les deux colonnes : c'est une action d'une autre nature
   que le telechargement d'un document. */
.pdc-lien-question {
  grid-column: 1 / -1;
}

/* Un seul document disponible : il n'a pas a occuper une demi-largeur en
   laissant l'autre moitie vide. */
.pdc-liens-medicament--un-doc .pdc-lien-notice,
.pdc-liens-medicament--un-doc .pdc-lien-rcp {
  grid-column: 1 / -1;
}

/*
 * Chaque action est encadree ET soulignee en rose.
 *
 * Le cadre seul se lit comme une etiquette : c'est la regle du site, tout ce
 * sur quoi on peut cliquer porte un soulignement rose.
 */
.pdc-lien-medicament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  text-align: center;
  border: 1px solid #ececef;
  border-radius: 10px;
  background: #fff;
  color: #e62ca1;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.pdc-lien-medicament svg {
  flex: 0 0 auto;
}

.pdc-lien-medicament:hover,
.pdc-lien-medicament:focus {
  background: #fdf3f8;
  border-color: #f0c4de;
  color: #b81f7f;
  text-decoration-thickness: 2px;
}

.pdc-lien-medicament:focus-visible {
  outline: 2px solid #e62ca1;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  /* L'encart doit rester lisible sans manger l'ecran : le texte se resserre,
     les boutons aussi, mais la disposition en grille ne change pas. */
  .pdc-encart-medicament {
    padding: 0.9rem 0.95rem;
  }

  .pdc-encart-medicament__texte {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .pdc-encart-medicament__icone svg {
    width: 13px;
    height: 13px;
  }

  .pdc-liens-medicament {
    gap: 0.45rem;
  }

  .pdc-lien-medicament {
    padding: 0.55rem 0.5rem;
    gap: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .pdc-lien-medicament svg {
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdc-lien-medicament {
    transition: none;
  }
}

/* Date de mise à jour : dernière ligne de l'onglet Description, détachée du
   texte par un filet. Elle qualifie ce qu'on vient de lire, sans lui disputer
   la place. */
.pdc-date-maj {
  display: block;
  margin: 24px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 0.75rem;
  font-style: italic;
  color: #6b7280;
}

/* =============================================================================
   FICHE PRODUIT PC : image carrée, le reste pour la colonne de droite
   =============================================================================
   Bootstrap découpe la section en deux col-lg-6, donc deux moitiés égales. La
   colonne de gauche n'a pas besoin de la moitié de l'écran : elle n'affiche
   qu'une image. On la fait donc épouser son contenu, et la colonne de droite
   prend tout ce qui reste, ce qui laisse respirer le titre, le prix et les
   informations réglementaires.

   La largeur de l'image est FLUIDE et non plus figée à 650 px. Figée, elle
   mangeait presque toute la largeur utile entre 1024 et 1400 px : la colonne
   de droite tombait sous les 350 px et la ligne prix + quantité + bouton y
   débordait.
   ============================================================================= */
@media screen and (min-width: 992px) {
  .desktop-product-main-section > .row > .col-lg-6:first-child {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .desktop-product-main-section > .row > .col-lg-6:last-child {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
  }

  /* Le décalage de 50 px n'a plus lieu d'être : la colonne épouse désormais
     l'image, ce retrait ne ferait que rogner sa largeur utile. */
  .desktop-gallery-wrapper {
    width: clamp(300px, 44vw, 650px);
    max-width: 100%;
    margin-left: 0;
  }

  /* Zone d'affichage carrée, qui suit la largeur réelle du bloc : une hauteur
     en pixels laisserait un vide sous l'image dès que celle-ci rétrécit.
     Filet gris clair + coins arrondis autour de la zone d'image. */
  .desktop-gallery-wrapper .desktop-main-image-link {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
  }

  /* L'image se cale sur la boîte carrée plutôt que sur un plafond en pixels. */
  .desktop-gallery-wrapper .desktop-main-image,
  #desktop-main-product-image {
    max-height: 100% !important;
  }
}

/* =============================================================================
   ÉCRANS INTERMÉDIAIRES (1024 → 1399 px) : la ligne d'achat peut se replier
   =============================================================================
   Prix, sélecteur de quantité et bouton tenaient sur une seule ligne quoi qu'il
   arrive (flex-wrap: nowrap) : sur ces largeurs le bouton sortait de la colonne.
   On les laisse passer à la ligne, le prix gardant sa ligne à lui.
   ============================================================================= */
@media screen and (min-width: 992px) and (max-width: 1399px) {
  .desktop-buy-row {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .desktop-buy-row .desktop-price-inline {
    flex: 1 0 100%;
  }

  .desktop-buy-row .desktop-btn-add-to-cart {
    flex: 1 1 200px;
  }

  /* Le logo de marque prend un cinquième de la colonne : trop, quand celle-ci
     se resserre. On le plafonne pour laisser le titre respirer. */
  .desktop-brand-logo {
    flex-basis: 90px;
    width: 90px;
    padding: 8px;
  }
}

/* =============================================================================
   ENCART MÉDICAMENT SUR ORDINATEUR : les actions sur une seule ligne
   =============================================================================
   En mobile, notice et RCP se partagent une ligne et la question passe dessous :
   trois boutons côte à côte y seraient illisibles. Sur un écran large, la place
   ne manque pas, les trois s'alignent.

   Le nombre de colonnes suit le nombre réel de boutons, porté par
   data-pdc-actions : un visiteur déconnecté n'en voit que deux, et trois
   colonnes lui laisseraient un vide à droite.
   ============================================================================= */
@media screen and (min-width: 992px) {
  .pdc-liens-medicament[data-pdc-actions="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pdc-liens-medicament[data-pdc-actions="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdc-liens-medicament[data-pdc-actions="1"] {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Plus rien ne s'étend sur toute la largeur : chaque bouton tient sa colonne. */
  .pdc-liens-medicament .pdc-lien-question,
  .pdc-liens-medicament--un-doc .pdc-lien-notice,
  .pdc-liens-medicament--un-doc .pdc-lien-rcp {
    grid-column: auto;
  }
}

/* =============================================================================
   ONGLET « QUESTIONS FRÉQUENTES »
   =============================================================================
   <details>/<summary> : le contenu des onglets est rendu deux fois dans la page
   (accordéon mobile + panneau ordinateur), donc pas d'identifiants d'accordéon
   ni de titres Hn à dupliquer. Voir pdc_onglet_faq_produit().
   ============================================================================= */
.pdc-faq-produit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdc-faq-produit__item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.pdc-faq-produit__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--wp--preset--color--color-text);
  cursor: pointer;
  list-style: none;
}

/* Le triangle natif est remplacé par un chevron qui pivote à l'ouverture. */
.pdc-faq-produit__q::-webkit-details-marker {
  display: none;
}

.pdc-faq-produit__q::after {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--wp--preset--color--color-1, #e62ca1);
  border-bottom: 2px solid var(--wp--preset--color--color-1, #e62ca1);
  transform: rotate(45deg);
  transform-origin: center;
  margin-top: -4px;
  transition: transform 0.2s ease;
}

.pdc-faq-produit__item[open] .pdc-faq-produit__q::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.pdc-faq-produit__item[open] .pdc-faq-produit__q {
  border-bottom: 1px solid #f0f0f0;
}

.pdc-faq-produit__a {
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.pdc-faq-produit__a p:last-child {
  margin-bottom: 0;
}

/* =============================================================================
   « SOUVENT ACHETÉS ENSEMBLE » — le lot en un clic
   =============================================================================
   Sur ordinateur : les articles en ligne, séparés par un « + », et le résumé
   (total + bouton) à droite. Sur mobile la ligne devient une colonne, et le
   résumé passe dessous — trois vignettes côte à côte y seraient illisibles.
   ============================================================================= */
.pdc-lot {
  margin: 32px 0;
}

.pdc-lot__titre {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 18px;
}

.pdc-lot__contenu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.pdc-lot__articles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

/* Le « + » : repère de lecture, jamais un élément cliquable. */
.pdc-lot__plus {
  align-self: center;
  font-size: 1.35rem;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1;
}

.pdc-lot__carte {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #eef0f2;
  border-radius: 10px;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.15s ease;
}

.pdc-lot__carte:hover {
  border-color: #d8dade;
}

/* L'article consulté : on le signale sans le sortir de la liste. */
.pdc-lot__carte.is-courant {
  background: #fafafa;
}

.pdc-lot__case {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--wp--preset--color--color-1, #e62ca1);
  cursor: pointer;
}

.pdc-lot__visuel {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pdc-lot__visuel img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pdc-lot__nom {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--wp--preset--color--color-text);
}

.pdc-lot__marqueur {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
}

.pdc-lot__prix {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Le prix barré éventuel reste lisible malgré le gras du conteneur. */
.pdc-lot__prix del {
  font-weight: 400;
  color: #9ca3af;
  margin-right: 5px;
}

.pdc-lot__prix ins {
  text-decoration: none;
  color: var(--wp--preset--color--color-1, #e62ca1);
}

.pdc-lot__resume {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.pdc-lot__total-ligne {
  margin: 0;
  font-size: 1rem;
}

.pdc-lot__total-ligne strong {
  font-size: 1.35rem;
  color: var(--wp--preset--color--color-1, #e62ca1);
}

.pdc-lot__ajouter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 22px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.pdc-lot__ajouter[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.pdc-lot__mention {
  margin: 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

@media screen and (min-width: 992px) {
  .pdc-lot__contenu {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 24px;
  }

  /* Les articles en ligne, comme sur les places de marché : le « + » entre
     deux vignettes dit « et », là où une liste verticale dirait « ou ». */
  .pdc-lot__articles {
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    flex: 1 1 auto;
  }

  .pdc-lot__carte {
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    padding: 14px;
  }

  /* La case remonte en surimpression du visuel : en colonne, elle occupait une
     ligne à elle seule au-dessus de l'image. */
  .pdc-lot__carte .pdc-lot__case {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .pdc-lot__visuel {
    flex: 0 0 auto;
    width: 100%;
    height: 120px;
  }

  .pdc-lot__resume {
    flex: 0 0 260px;
    width: 260px;
  }
}

/* =============================================================================
   CHOIX RAPIDE SUR LA CARTE PRODUIT  (2026-11-12)

   Le panneau est masque par defaut ; ce sont les listes de produits qui le
   montrent au survol (assets/css/categories.css). Ces regles vivent ici parce
   que cette feuille est lue partout ou une carte produit s'affiche, accueil
   compris : dans categories.css, le « display: none » manquait sur l'accueil.
   ============================================================================= */

/* Calé à 8px des bords, soit un peu plus loin que le badge « Plus que X en
   stock » (10px) : le panneau le recouvre entièrement au lieu de le laisser
   dépasser, et le fond est opaque pour la même raison. */
.carte-rapide {
  position: absolute;
  z-index: 6;
  left: 7px;
  right: 7px;
  bottom: 7px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px;
  background: #fff;
  border: 1px solid #ebebee;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.carte-rapide__qte {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid #e3e4e8;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.carte-rapide__pas {
  width: 30px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: #3f4652;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.carte-rapide__pas:hover:not(:disabled) {
  background: #f4f4f6;
}

.carte-rapide__pas:disabled {
  color: #ccced4;
  cursor: default;
}

.carte-rapide__nombre {
  width: 32px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.carte-rapide__nombre:focus {
  outline: none;
}

.carte-rapide__ajouter {
  flex: 1 1 auto;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: var(--wp--preset--color--color-1);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.carte-rapide__ajouter:hover {
  filter: brightness(1.08);
}

.carte-rapide__ajouter.loading {
  opacity: 0.65;
  cursor: wait;
}

/* WooCommerce ajoute un lien « Voir le panier » derrière le bouton : le
   tiroir de panier s'ouvre déjà tout seul, ce lien ferait doublon. */
.carte-rapide .added_to_cart {
  display: none !important;
}


/* =============================================================================
   16. FICHE PRODUIT, VERSION ORDINATEUR  (2026-11-13)

   La fiche s'étalait sur toute la largeur de l'écran alors que le header est
   centré dans une colonne plus étroite, et l'image occupait 650 px de haut :
   le prix et le bouton passaient sous la ligne de flottaison. On reprend ici
   les paliers du header, on réduit l'image, et on remonte tout ce qui sert à
   décider dans le premier écran.
   ============================================================================= */

.pdc-fiche .container.large {
  padding-left: 40px;
  padding-right: 40px;
}

@media screen and (min-width: 1200px) {
  .pdc-fiche .container.large {
    max-width: 1400px;
    padding-left: 80px;
    padding-right: 80px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 1400px) {
  .pdc-fiche .container.large {
    max-width: 1600px;
    padding-left: 120px;
    padding-right: 120px;
  }
}

@media screen and (min-width: 1600px) {
  .pdc-fiche .container.large {
    max-width: 1800px;
    padding-left: 160px;
    padding-right: 160px;
  }
}

@media screen and (max-width: 991px) {
  .pdc-fiche .container.large {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (min-width: 992px) {
  /* Galerie : plus petite, et elle suit le défilement.
     L'image restait à 650 px de haut, calée à 50 px du bord gauche : elle
     repoussait le prix hors de l'écran et cassait l'alignement avec le header.
     Collante, elle reste visible pendant qu'on lit la colonne d'achat, qui est
     désormais la plus longue des deux (le lot y a été ajouté). */
  .pdc-fiche .desktop-gallery-wrapper {
    margin-left: 0;
    position: sticky;
    top: calc(var(--pdc-entete-h, 90px) + 16px);
    align-self: flex-start;
  }

  .pdc-fiche .desktop-gallery-wrapper .woocommerce-product-gallery__wrapper {
    max-height: 460px;
    --pdc-img-max-h: 460px;
  }

  .pdc-fiche .desktop-gallery-wrapper .desktop-main-image,
  .pdc-fiche #desktop-main-product-image {
    max-height: 460px !important;
  }

  .pdc-fiche .desktop-gallery-wrapper .desktop-main-image-link {
    min-height: 460px;
  }

  /* Note aux côtés de la marque.
     Les étoiles occupaient une ligne entière entre le titre et le prix. Elles
     qualifient le produit de cette marque : leur place est sur la même ligne. */
  .pdc-fiche .desktop-product-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .pdc-fiche .desktop-product-badges-row .woocommerce-product-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1;
  }

  .pdc-fiche .desktop-product-badges-row .woocommerce-product-rating .star-rating {
    margin: 0;
  }

  .pdc-fiche .desktop-product-badges-row .woocommerce-review-link {
    color: #555;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  /* Le logo de marque a été retiré du gabarit : la règle qui lui réservait
     20 % de la ligne n'a plus d'objet. */
  .pdc-fiche .desktop-brand-logo {
    display: none;
  }
}

/* Accroche et « En savoir plus » */

.pdc-resume {
  margin: 0 0 16px;
}

.pdc-resume__accroche {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
}

.pdc-resume__plus {
  margin-top: 6px;
}

.pdc-resume__bouton {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-1, #0a7d5a);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

/* Safari pose encore sa propre flèche sur summary. */
.pdc-resume__bouton::-webkit-details-marker {
  display: none;
}

.pdc-resume__bouton:hover {
  text-decoration: underline;
}

.pdc-resume__chevron {
  transition: transform 0.2s ease;
}

.pdc-resume__fermer {
  display: none;
}

.pdc-resume__plus[open] .pdc-resume__ouvrir {
  display: none;
}

.pdc-resume__plus[open] .pdc-resume__fermer {
  display: inline;
}

.pdc-resume__plus[open] .pdc-resume__chevron {
  transform: rotate(180deg);
}

.pdc-resume__liste {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.pdc-resume__liste li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #444;
}

/* Une coche plutôt qu'une puce : ce sont des bénéfices, pas une énumération. */
.pdc-resume__liste li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--color-1, #0a7d5a);
  border-bottom: 2px solid var(--color-1, #0a7d5a);
  transform: rotate(-45deg);
}

.pdc-resume__tout {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #555;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Prix ramené au litre, au kilo ou à l'unité */

.pdc-prix-unitaire {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.2;
  color: #6b7280;
  white-space: nowrap;
}

.pdc-prix-unitaire[hidden] {
  display: none;
}

/* Variantes en tuiles, deux par rangée */

.pdc-var-field--masque {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pdc-var-tuiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.pdc-var-tuile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.pdc-var-tuile:hover:not(:disabled) {
  border-color: #b9c0c8;
}

.pdc-var-tuile.is-active {
  border-color: var(--color-1, #0a7d5a);
  box-shadow: inset 0 0 0 1px var(--color-1, #0a7d5a);
}

.pdc-var-tuile:disabled,
.pdc-var-tuile.is-epuise {
  cursor: not-allowed;
  opacity: 0.55;
}

.pdc-var-tuile__libelle {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.25;
}

.pdc-var-tuile__prix {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.2;
}

.pdc-var-tuile__prix del {
  margin-right: 4px;
  color: #9ca3af;
}

.pdc-var-tuile__prix ins {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-promo, #c0392b);
}

.pdc-var-tuile__etat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #9ca3af;
}

/* « Souvent achetés ensemble » dans la colonne d'achat */

.pdc-lot--colonne {
  margin: 18px 0 0;
  padding: 0;
}

.pdc-lot--colonne .pdc-lot__cadre {
  padding: 14px 16px 16px;
  background: #fafbfc;
  border: 1px solid #e6e9ed;
  border-radius: 12px;
}

.pdc-lot--colonne .pdc-lot__titre {
  margin: 0 0 12px;
  font-size: 1rem;
  text-align: left;
}

/* En colonne, les articles s'empilent : la rangée horizontale avec ses signes
   plus demandait une largeur qu'on n'a plus ici. */
.pdc-lot--colonne .pdc-lot__contenu,
.pdc-lot--colonne .pdc-lot__articles {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.pdc-lot--colonne .pdc-lot__plus {
  display: none;
}

.pdc-lot--colonne .pdc-lot__carte {
  display: grid;
  grid-template-columns: auto 52px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 8px;
  text-align: left;
}

.pdc-lot--colonne .pdc-lot__visuel {
  width: 52px;
  height: 52px;
}

.pdc-lot--colonne .pdc-lot__nom {
  font-size: 0.83rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdc-lot--colonne .pdc-lot__prix {
  font-size: 0.85rem;
  white-space: nowrap;
}

.pdc-lot--colonne .pdc-lot__resume {
  margin-top: 12px;
  text-align: left;
}

.pdc-lot--colonne .pdc-lot__ajouter {
  width: 100%;
  justify-content: center;
}

/* Logos de paiement */

.pdc-paylogos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.pdc-paylogos .pdc-card-icon {
  width: 38px;
  height: auto;
  display: block;
}

/* Référence et date de mise à jour, en fin de description */

.pdc-fiche-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
  font-size: 0.8rem;
  color: #8a8f98;
}

.pdc-fiche-pied .pdc-date-maj {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.pdc-fiche-pied__ref {
  letter-spacing: 0.02em;
}

/* Avis vérifié */

.pdc-avis-verifie {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f5ef;
  color: #0a6b4d;
  font-size: 0.75rem;
  font-weight: 600;
  font-style: normal;
  white-space: nowrap;
}

/* Questions fréquentes */

.pdc-faq {
  padding: 36px 0 8px;
}

.pdc-faq__titre {
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 600;
}

.pdc-faq__liste {
  display: grid;
  gap: 8px;
  max-width: 900px;
}

.pdc-faq__item {
  border: 1px solid #e6e9ed;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.pdc-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  list-style: none;
}

.pdc-faq__question::-webkit-details-marker {
  display: none;
}

.pdc-faq__question:hover {
  background: #fafbfc;
}

.pdc-faq__chevron {
  flex: 0 0 auto;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

.pdc-faq__item[open] .pdc-faq__chevron {
  transform: rotate(180deg);
}

.pdc-faq__reponse {
  padding: 0 16px 15px;
}

.pdc-faq__reponse p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #444;
}

.pdc-faq__lien {
  font-size: 0.85rem;
  color: var(--color-1, #0a7d5a);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* La mention « soit X € les 100 ml » est un enfant direct de la ligne d'achat,
   pas du bloc du prix : .desktop-price-inline est un conteneur flex, la mention
   s'y mettait sur la meme ligne que le prix, la zone passait de 145 a 250 px et
   le bouton « Ajouter au panier » tombait a 55 px de large (2026-11-13). */
.pdc-fiche .desktop-buy-row > .pdc-prix-unitaire,
.pdc-fiche .pdc-var-action-row > .pdc-prix-unitaire {
  flex: 1 0 100%;
  order: 1;
  margin: -6px 0 0;
}

.pdc-fiche .desktop-buy-row .desktop-btn-add-to-cart,
.pdc-fiche .pdc-var-action-row .pdc-var-add {
  order: 2;
  min-width: 165px;
}

/* Ligne d'achat sur deux rangees (demande du 2026-11-13).
   Rangee 1 : le prix et la quantite, les deux donnees qu'on compare.
   Rangee 2 : le bouton, pleine largeur.
   Sur une seule rangee, le bouton se faisait comprimer des que le prix ou la
   contenance s'allongeait, et il finissait a 55 px de large. */
@media screen and (min-width: 992px) {
  .pdc-fiche .desktop-buy-row,
  .pdc-fiche .pdc-var-action-row {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .pdc-fiche .desktop-buy-row .desktop-btn-add-to-cart,
  .pdc-fiche .pdc-var-action-row .pdc-var-add {
    flex: 1 0 100%;
    width: 100%;
    justify-content: center;
  }

  /* Le selecteur de variantes garde sa propre rangee, au-dessus. */
  .pdc-fiche .pdc-var-tuiles {
    width: 100%;
  }
}

/* =============================================================================
   17. FICHE PRODUIT — RETOUCHES DU 2026-11-13 (deuxième passe)
   ============================================================================= */

/* ── Bénéfices : une vraie coche ──
   La puce était une équerre faite de deux bordures CSS pivotées à 45°. À 11 px,
   le rendu sortait flou et de travers selon le zoom du navigateur. C'est
   maintenant un SVG dans le balisage. */
.pdc-resume__liste li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-left: 0;
}

/* Une règle plus ancienne, .desktop-short-description ul li::before, posait
   déjà une coche en masque CSS : les deux se superposaient. Elle est plus
   spécifique, d'où les deux classes ici pour la neutraliser proprement. */
.pdc-resume__liste li::before,
.desktop-short-description .pdc-resume__liste li::before,
.mobile-short-description .pdc-resume__liste li::before {
  content: none;
}

.pdc-resume__coche {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--color-1, #0a7d5a);
}

/* ── Contenance, prix et prix à l'unité, au-dessus de la ligne d'achat ── */
.pdc-achat-entete {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.pdc-achat-entete__contenance {
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.01em;
}

/* Le prix et sa mention à l'unité sur la même ligne, la mention alignée sur la
   base du prix. Elle était en dessous, ce qui faisait trois lignes pour une
   seule information. */
.pdc-achat-entete .desktop-price-section {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
}

.pdc-achat-entete .pdc-prix-unitaire {
  display: inline;
  margin: 0;
}

/* ── Ligne d'achat : quantité et bouton, une seule rangée ──
   Le prix en est sorti, la place ne manque plus. */
@media screen and (min-width: 992px) {
  .pdc-fiche .desktop-buy-row,
  .pdc-fiche .pdc-var-action-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
  }

  .pdc-fiche .desktop-buy-row .desktop-btn-add-to-cart,
  .pdc-fiche .pdc-var-action-row .pdc-var-add {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: center;
  }

  .pdc-fiche .desktop-qib-container,
  .pdc-fiche .pdc-var-qty {
    flex: 0 0 auto;
  }
}

/* ── « Souvent achetés ensemble » : des lignes indépendantes ──
   Plus de cases à cocher ni de total : chaque complément a son prix et son
   bouton. Un clic sur la carte ne défait plus une sélection. */
.pdc-lot__liste {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdc-lot__article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  transition: border-color 0.15s ease;
}

.pdc-lot__article:hover {
  border-color: #d3d7dc;
}

.pdc-lot__visuel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.pdc-lot__visuel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdc-lot__corps {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pdc-lot__nom {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2937 !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdc-lot__nom:hover {
  text-decoration: underline !important;
}

.pdc-lot__note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Étoiles dessinées en CSS : un dégradé coupé au pourcentage de la note, donc
   pas de demi-étoile à fabriquer et aucune image à charger. */
.pdc-lot__etoiles {
  display: inline-block;
  width: 68px;
  height: 12px;
  background: linear-gradient(
    to right,
    #f5a623 0,
    #f5a623 var(--pdc-note, 0%),
    #dfe1e5 var(--pdc-note, 0%),
    #dfe1e5 100%
  );
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 12'%3E%3Cpath d='M6 0l1.8 3.7 4.1.6-3 2.9.7 4.1L6 9.4 2.4 11.3l.7-4.1-3-2.9 4.1-.6zM20 0l1.8 3.7 4.1.6-3 2.9.7 4.1L20 9.4l-3.6 1.9.7-4.1-3-2.9 4.1-.6zM34 0l1.8 3.7 4.1.6-3 2.9.7 4.1L34 9.4l-3.6 1.9.7-4.1-3-2.9 4.1-.6zM48 0l1.8 3.7 4.1.6-3 2.9.7 4.1L48 9.4l-3.6 1.9.7-4.1-3-2.9 4.1-.6zM62 0l1.8 3.7 4.1.6-3 2.9.7 4.1L62 9.4l-3.6 1.9.7-4.1-3-2.9 4.1-.6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 12'%3E%3Cpath d='M6 0l1.8 3.7 4.1.6-3 2.9.7 4.1L6 9.4 2.4 11.3l.7-4.1-3-2.9 4.1-.6zM20 0l1.8 3.7 4.1.6-3 2.9.7 4.1L20 9.4l-3.6 1.9.7-4.1-3-2.9 4.1-.6zM34 0l1.8 3.7 4.1.6-3 2.9.7 4.1L34 9.4l-3.6 1.9.7-4.1-3-2.9 4.1-.6zM48 0l1.8 3.7 4.1.6-3 2.9.7 4.1L48 9.4l-3.6 1.9.7-4.1-3-2.9 4.1-.6zM62 0l1.8 3.7 4.1.6-3 2.9.7 4.1L62 9.4l-3.6 1.9.7-4.1-3-2.9 4.1-.6z'/%3E%3C/svg%3E");
  -webkit-mask-size: 68px 12px;
  mask-size: 68px 12px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.pdc-lot__detail {
  font-size: 0.78rem;
  color: #9aa0a6;
}

.pdc-lot__fin {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.pdc-lot__prix {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
}

.pdc-lot__prix del {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #9aa0a6;
}

.pdc-lot__prix ins {
  text-decoration: none;
  color: var(--wp--preset--color--color-1, #e62ca1);
}

/* width: auto — .btn-color-1 impose une largeur de 100 %, qui etirait le
   bouton sur toute la rangee. */
.pdc-lot__ajouter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto !important;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
}

.pdc-lot__ajouter i {
  font-size: 0.85em;
}

/* En colonne d'achat : meme disposition en trois parties que la version pleine
   largeur, resserree. Le prix et le bouton passaient sous le nom, sur une
   rangee a eux : le bouton s'etirait alors sur 400 px pour porter un mot, et
   le bloc ressemblait a une pile de barres vides (2026-11-13). */
.pdc-lot--colonne .pdc-lot__article {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 12px;
}

.pdc-lot--colonne .pdc-lot__visuel {
  width: 54px;
  height: 54px;
}

.pdc-lot--colonne .pdc-lot__fin {
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.pdc-lot--colonne .pdc-lot__nom {
  font-size: 0.86rem;
}

.pdc-lot--colonne .pdc-lot__prix {
  font-size: 0.95rem;
}

/* ── Questions fréquentes ──
   La liste était bornée à 900 px : elle ne tombait pas sur les bords du
   header. Elle occupe désormais toute la largeur, sur deux colonnes dès qu'il
   y a la place, et chaque question a son filet de couleur à gauche. */
.pdc-faq {
  padding: 44px 0 12px;
}

.pdc-faq__titre {
  position: relative;
  padding-left: 16px;
}

.pdc-faq__titre::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 2px;
  background: var(--wp--preset--color--color-1, #e62ca1);
}

.pdc-faq__liste {
  max-width: none;
  gap: 10px;
}

@media screen and (min-width: 1200px) {
  .pdc-faq__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px 20px;
  }
}

.pdc-faq__item {
  border: 1px solid #e8eaed;
  border-radius: 12px;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.pdc-faq__item:hover {
  border-color: #d7dade;
}

.pdc-faq__item[open] {
  border-color: #d7dade;
  box-shadow: 0 2px 14px rgba(20, 24, 31, 0.06);
}

.pdc-faq__question {
  padding: 15px 18px;
  font-size: 0.97rem;
  line-height: 1.35;
}

.pdc-faq__chevron {
  color: var(--wp--preset--color--color-1, #e62ca1);
}

.pdc-faq__reponse {
  padding: 0 18px 17px;
}

/* Un filet qui prolonge le texte de la réponse : on voit tout de suite à
   quelle question elle appartient quand deux colonnes se répondent. */
.pdc-faq__reponse p {
  padding-left: 13px;
  border-left: 2px solid #eceef1;
  margin-bottom: 10px;
}

/* ── « À propos de Parapharmacie-online.fr » ──
   C'était quatre icônes FontAwesome suivies de trois mots, de tailles
   inégales, alignées sur une rangée : un bandeau décoratif dont on ne retenait
   rien. Chaque promesse a maintenant sa carte et une seconde ligne qui dit ce
   qu'elle recouvre. */
/* La mise en forme de « À propos » vit dans assets/css/home.css, qui portait
   deja ces selecteurs : deux regles de meme specificite dans deux fichiers,
   c'est l'ordre de chargement qui aurait tranche. */

/* Les boutons des compléments passent en contour plutôt qu'en aplat rose.
   Trois boutons pleins empilés juste sous « Ajouter au panier » faisaient
   quatre appels à l'action de même poids dans la même colonne : le principal
   ne se distinguait plus. */
/* !important : la regle de base de .btn-color-1 en porte un, sans quoi le
   fond rose l'emporte quelle que soit la specificite. */
.pdc-lot__ajouter.btn-color-1 {
  background: #fff !important;
  color: var(--wp--preset--color--color-1, #e62ca1) !important;
  border: 1px solid var(--wp--preset--color--color-1, #e62ca1) !important;
  box-shadow: none !important;
}

.pdc-lot__ajouter.btn-color-1:hover {
  background: var(--wp--preset--color--color-1, #e62ca1) !important;
  color: #fff !important;
}

.pdc-lot--colonne .pdc-lot__ajouter {
  flex: 0 0 auto;
}

/* =============================================================================
   FICHE PRODUIT — COMPARAISON AVEC DOCMORRIS ET IHERB  (2026-11-18)

   Le lot quitte la colonne d'achat et passe pleine largeur sous la fiche, en
   cartes cochables avec un total. « L'essentiel » remplace le paragraphe par
   des paires libelle / valeur. La note s'affiche meme sans avis, et le stock
   restant rejoint la reassurance, qui remonte sous le bouton.
   ============================================================================= */

/* ── « L'essentiel » ───────────────────────────────────────────────────────── */

.pdc-essentiel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 22px;
  margin: 12px 0 0;
  padding: 0;
}

.pdc-essentiel__paire {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pdc-essentiel dt {
  font-size: 0.74rem;
  font-weight: 500;
  color: #8a909c;
}

.pdc-essentiel dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2937;
  overflow-wrap: break-word;
}

/* ── La note quand il n'y a pas encore d'avis ──────────────────────────────── */

.woocommerce-product-rating.is-vide {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pdc-note-vide {
  display: inline-flex;
  gap: 1px;
  color: #c7ccd4;
}

.woocommerce-product-rating.is-vide .woocommerce-review-link {
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce-product-rating.is-vide .woocommerce-review-link:hover {
  color: var(--wp--preset--color--color-1, #e62ca1);
}

/* ── Le stock restant, dans la réassurance ─────────────────────────────────── */

.desktop-reassurance-item.is-stock i {
  color: #ff6b35;
}

.desktop-reassurance-item.is-stock span {
  font-weight: 600;
  color: #c2410c;
}

/* ── Le menu des onglets colle au défilement ───────────────────────────────── */

@media screen and (min-width: 992px) {
  .desktop-sidebar-wrapper {
    position: sticky;
    top: calc(var(--pdc-entete-h, 110px) + 16px);
  }
}

/* ── « Fréquemment achetés ensemble », pleine largeur ──────────────────────── */

.pdc-lot {
  padding: 34px 0 6px;
}

.pdc-lot__titre {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
}

.pdc-lot__cadre {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  background: #f5f8f7;
  border: 1px solid #e3eae7;
  border-radius: 16px;
}

.pdc-lot__rangee {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdc-lot__carte {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 14px 14px 16px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
}

.pdc-lot__plus {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-weight: 600;
  color: #9aa3ad;
}

/* La case est une vraie case, dans le coin : on peut aller voir un complément
   sans la décocher par accident, ce qui avait fait abandonner la version
   précédente du lot. */
.pdc-lot__case {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  cursor: pointer;
}

.pdc-lot__case input {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}

.pdc-lot__case span {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #c7ccd4;
  border-radius: 5px;
  background: #fff;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.pdc-lot__case input:checked + span {
  background: var(--wp--preset--color--color-1, #e62ca1);
  border-color: var(--wp--preset--color--color-1, #e62ca1);
}

.pdc-lot__case input:checked + span::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  margin: 1px auto 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pdc-lot__case input:focus-visible + span {
  outline: 2px solid var(--wp--preset--color--color-1, #e62ca1);
  outline-offset: 2px;
}

.pdc-lot__drapeau {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #0a7d5a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
}

.pdc-lot__visuel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
  margin-bottom: 8px;
}

.pdc-lot__visuel img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pdc-lot__nom {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2937 !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdc-lot__nom:hover {
  color: var(--wp--preset--color--color-1, #e62ca1) !important;
}

.pdc-lot__detail {
  font-size: 0.74rem;
  color: #8a909c;
}

.pdc-lot__prix {
  margin-top: auto;
  padding-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.pdc-lot__prix del {
  margin-right: 5px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #9aa3ad;
}

.pdc-lot__bilan {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 212px;
}

.pdc-lot__total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.pdc-lot__total-libelle {
  font-size: 0.78rem;
  color: #6b7280;
}

.pdc-lot__total strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
}

.pdc-lot__ajouter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.pdc-lot__ajouter[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.pdc-lot__ajouter.est-en-cours {
  pointer-events: none;
  opacity: 0.7;
}

/* Une carte décochée recule d'un cran : on voit ce qui part au panier sans
   avoir à relire les cases. */
.pdc-lot__carte.est-decochee {
  background: #fbfbfc;
  border-style: dashed;
}

.pdc-lot__carte.est-decochee .pdc-lot__visuel,
.pdc-lot__carte.est-decochee .pdc-lot__nom,
.pdc-lot__carte.est-decochee .pdc-lot__prix {
  opacity: 0.45;
}

@media screen and (max-width: 991px) {
  .pdc-lot {
    padding: 24px 0 4px;
  }

  .pdc-lot__titre {
    font-size: 1.1rem;
  }

  .pdc-lot__cadre {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }

  .pdc-lot__rangee {
    gap: 8px;
  }

  .pdc-lot__plus {
    font-size: 1rem;
  }

  .pdc-lot__carte {
    padding: 12px 10px 14px;
  }

  .pdc-lot__visuel {
    height: 76px;
  }

  .pdc-lot__nom {
    font-size: 0.76rem;
  }

  .pdc-lot__prix {
    font-size: 0.9rem;
  }

  .pdc-lot__bilan {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  .pdc-lot__total {
    align-items: flex-start;
  }

  .pdc-lot__ajouter {
    width: auto;
  }

  .pdc-essentiel {
    gap: 5px 16px;
    margin-top: 10px;
  }
}

@media screen and (max-width: 575px) {
  .pdc-lot__bilan {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .pdc-lot__total {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .pdc-lot__ajouter {
    width: 100%;
  }
}

/* Le drapeau « Produit actuel » couvrait la photo sur une carte de 84 px :
   plus petit et plus discret sur telephone, l'image reste lisible. */
@media screen and (max-width: 575px) {
  .pdc-lot__drapeau {
    padding: 2px 6px;
    font-size: 0.58rem;
    line-height: 1.2;
  }

  .pdc-lot__case span,
  .pdc-lot__case input {
    width: 18px;
    height: 18px;
  }
}

/* =============================================================================
   FICHE PRODUIT — RETOURS DU GÉRANT  (2026-11-18, deuxième série)

   Le titre remonte, le lot passe en cartes horizontales avec la case dans sa
   propre colonne, et « Vous aimerez aussi » prend des cartes compactes.
   ============================================================================= */

/* ── Le titre s'aligne sur le haut de l'image ──────────────────────────────── */

@media screen and (min-width: 992px) {
  .desktop-product-right-content {
    padding-top: 0;
  }
}

/* ── « L'essentiel » : la marque et la gamme restent cliquables ────────────── */

.pdc-essentiel dd a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #c7ccd4;
}

.pdc-essentiel dd a:hover {
  color: var(--wp--preset--color--color-1, #e62ca1);
  text-decoration-color: currentColor;
}

/* ── Le lot : image à gauche, texte à droite ───────────────────────────────── */

.pdc-lot__carte {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

/* La case a sa propre colonne : plus rien ne la recouvre, donc plus de clic
   qui part sur la fiche produit au lieu de décocher. */
.pdc-lot__case {
  position: static;
  flex: 0 0 auto;
}

.pdc-lot__case--fixe span {
  background: #e3eae7;
  border-color: #d2ddd8;
}

.pdc-lot__visuel {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  margin: 0;
}

.pdc-lot__texte {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.pdc-lot__drapeau {
  position: static;
  align-self: flex-start;
  margin-bottom: 2px;
}

.pdc-lot__prix {
  margin-top: 2px;
  padding-top: 0;
}

/* ── « Vous aimerez aussi » : des cartes compactes ─────────────────────────── */

.shared-related-products {
  padding-top: 6px;
}

.shared-related-products .excerpt-product {
  border-radius: 12px;
}

.shared-related-products .excerpt-product .image {
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 8px;
}

.shared-related-products .excerpt-product > .cats {
  margin-top: 6px;
  padding: 0 10px;
}

.shared-related-products .excerpt-product > .cats .cat {
  padding: 2px 8px;
  font-size: 0.62rem;
}

.shared-related-products .excerpt-product .excerpt-product-content {
  gap: 4px;
  padding: 6px 10px 10px;
}

.shared-related-products .excerpt-product .excerpt-product-content .title {
  margin-bottom: 4px;
  font-size: 0.78rem;
  line-height: 1.3;
  min-height: 2.4em;
}

.shared-related-products .excerpt-product .excerpt-product-content .price,
.shared-related-products .excerpt-product .excerpt-product-content .price * {
  font-size: 0.92rem;
}

.shared-related-products .excerpt-product .excerpt-product__contenance {
  font-size: 0.72rem;
}

.shared-related-products .excerpt-product .badge-sale {
  top: 8px;
  left: 8px;
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 0.74rem;
  white-space: nowrap;
}

@media screen and (max-width: 991px) {
  /* Une carte par rangee, image a gauche : trois cartes cote a cote sur 343 px
     donnaient des vignettes de 84 px ou l'on ne reconnaissait plus le produit.
     Les « + » passent entre les rangees. */
  .pdc-lot__rangee {
    flex-direction: column;
    gap: 6px;
  }

  .pdc-lot__carte {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .pdc-lot__plus {
    justify-content: center;
    font-size: 1.05rem;
  }

  .pdc-lot__visuel {
    width: 62px;
    height: 62px;
  }

  .pdc-lot__nom {
    -webkit-line-clamp: 2;
  }

  .shared-related-products .excerpt-product .badge-sale {
    top: 7px;
    left: 7px;
    padding: 3px 8px;
    border-radius: 11px;
    font-size: 0.64rem;
  }
}

/* Les suggestions occupent la largeur, quel qu'en soit le nombre.
   Au-dela de six, on masque : selon les filtres actifs, la requete en renvoie
   parfois huit. */
@media screen and (min-width: 992px) {
  /* Elles etaient figees a 200 px et la rangee centree, pour que six tiennent
     sur une ligne sans laisser de trou a droite quand la requete n'en rendait
     que quatre. Le remede etait pire : sur un ecran de 1600 px, quatre cartes
     de 200 px occupaient 800 px des 1289 disponibles et flottaient au milieu
     d'un grand vide, sous un titre cale a gauche (2026-11-18).

     Des colonnes elastiques reglent les deux cas d'un coup : chacune demande
     sa part de la rangee — un quart a quatre, un sixieme a six — et le
     plafond a 25 % evite qu'une ou deux suggestions ne s'etalent en cartes
     geantes. Le centrage ne sert plus qu'a ce cas-la. */
  .shared-related-products .produits-grid {
    justify-content: center;
  }

  .shared-related-products .produits-grid > .col-lg-3 {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 25%;
  }

  .shared-related-products .produits-grid > .col-lg-3:nth-child(n + 7) {
    display: none;
  }
}

/* ===== PRIX DÉGRESSIF =====
   Grille des paliers sous le prix (lib/prix-degressif.php). Le tableau est
   rendu par l'extension de tarification dynamique : on habille son HTML sans
   le réécrire, pour que les montants affichés restent ceux du panier.
   Son gabarit : advanced-dynamic-pricing-for-woocommerce/bulk-table.php
   (2026-11-18). */
.pdc-degressif {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid #b6e9de;
  border-radius: 12px;
  background: #f1fbf8;
  color: #2c463a;
}

.pdc-degressif__titre {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

/* FontAwesome tourne en SVG+JS : le <i> est remplacé par un <svg>, il faut
   viser les deux sans quoi la taille ne s'applique qu'avant le remplacement. */
.pdc-degressif__titre i,
.pdc-degressif__titre svg {
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  color: #39c3a8;
}

.pdc-degressif__intro {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #4a6257;
}

/* Le shortcode de l'extension accepte les mêmes paramètres que [products] et
   peut donc renvoyer son tableau dans une boucle de produits. On neutralise la
   grille de cartes qui irait avec, sinon le tableau hérite de la mise en page
   du catalogue. */
.pdc-degressif ul.products,
.pdc-degressif li.product {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  float: none;
  list-style: none;
  border: 0;
  background: none;
}

.pdc-degressif .bulk_table > .clear,
.pdc-degressif .wdp_pricing_table_caption {
  /* Le titre de l'encadré remplace la légende de l'extension, qui est un texte
     fixe réglé côté extension (en anglais par défaut). */
  display: none;
}

.pdc-degressif .wdp_pricing_table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.875rem;
}

.pdc-degressif .wdp_pricing_table td {
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #e4f1ec;
  text-align: left;
  vertical-align: middle;
}

.pdc-degressif .wdp_pricing_table thead td {
  background: #e9f7f3;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #39796a;
}

.pdc-degressif .wdp_pricing_table tbody tr:last-child td {
  border-bottom: 0;
}

.pdc-degressif .wdp_pricing_table tbody td:last-child {
  font-weight: 700;
  color: #1f7a66;
  white-space: nowrap;
}

/* Palier atteint par la quantité en cours : l'extension pose la classe. */
.pdc-degressif .wdp_pricing_table tbody tr.wdp_pricing_table_active td,
.pdc-degressif .wdp_pricing_table tbody tr.active td {
  background: #e9f7f3;
}

.pdc-degressif .wdp_pricing_table_footer {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #4a6257;
}

/* Signalement réservé au gérant : règle active, tableau absent. */
.pdc-degressif--alerte {
  border-color: #f5c26b;
  background: #fff8eb;
  color: #5c3d00;
}

.pdc-degressif--alerte strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pdc-degressif--alerte p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

/* =============================================================================
   LOT « FRÉQUEMMENT ACHETÉS ENSEMBLE » — DE 992 À 1199 px  (2026-11-18)

   Le panneau de droite est figé à 260 px dès 992 px. Sur un portable de
   1024 px, les trois cartes se partagent ce qu'il reste et tombent sous
   200 px : le nom du produit déborde sur quatre lignes et la vignette
   rétrécit d'autant. Ce panneau n'a pas besoin de cette largeur — un total et
   un bouton tiennent dans 200 px — alors que les cartes, elles, portent le
   visuel, le nom, la contenance et le prix.

   On rend donc 60 px aux cartes, et on resserre le bouton dans la même
   proportion : c'est le contenu du bouton qui fixait la largeur du panneau.
   ============================================================================= */
@media screen and (min-width: 992px) and (max-width: 1199.98px) {
  /* Le panneau de droite ne garde que la largeur de son bouton, au lieu des
     212 px qu'il reserve d'office. */
  .pdc-lot__bilan {
    min-width: 0;
  }

  /* « au panier » se tait a cette largeur : le bloc s'appelle « Frequemment
     achetes ensemble », le total est juste au-dessus et l'icone est un panier
     — ces deux mots ne disent rien que l'ecran ne dise deja, et ils coutent
     une cinquantaine de pixels aux trois cartes. */
  .pdc-lot__ajouter-fin {
    display: none;
  }

  .pdc-lot__ajouter {
    gap: 6px;
    padding: 11px 14px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .pdc-lot__total strong {
    font-size: 1.15rem;
  }

  .pdc-lot__rangee {
    gap: 10px;
  }
}

/* Grille du dégressif propre au site : même habillage que le tableau de
   l'extension, pour que les deux sources se ressemblent (2026-11-18). */
.pdc-degressif__grille {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.875rem;
}

.pdc-degressif__grille td {
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #e4f1ec;
  text-align: left;
  vertical-align: middle;
}

.pdc-degressif__grille thead td {
  background: #e9f7f3;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #39796a;
}

.pdc-degressif__grille tbody tr:last-child td {
  border-bottom: 0;
}

.pdc-degressif__grille tbody td:last-child {
  font-weight: 700;
  color: #1f7a66;
  white-space: nowrap;
}

/* Mention sous le prix d'une ligne de panier : sans elle, un prix plus bas que
   celui de la fiche passe pour une erreur de calcul. */
.pdc-degressif-ligne {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f7a66;
}

/* =============================================================================
   FICHE PARAPHARMACIE : LES LEVIERS DE CONVERSION  (2026-11-19)

   Tout ce qui suit n'est rendu que si pdc_fiche_offensive() repond true, donc
   jamais sur une fiche medicament (lib/fiche-conversion.php). Les couleurs
   suivent la convention deja en place dans la reassurance : une teinte par
   nature d'information, jamais du rouge d'alerte pour vendre.
   ============================================================================= */

/* ── 1. Minuteur d'expedition ──────────────────────────────────────────────── */

/* Ambre : la meme famille que la promotion, parce qu'il s'agit du meme registre
   (une opportunite qui a une fin), et non du vert de la reassurance, qui dit
   une promesse permanente.

   Une seule mise en forme depuis le 2026-11-19, pour les deux largeurs : le
   minuteur a quitte la liste de reassurance et vit maintenant sous le bouton,
   entre le prix et la barre de livraison offerte. */
.pdc-minuteur {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  padding: 9px 12px;
  background: #fff4ea;
  border: 1px solid #ffd9bd;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: #9a3b05;
}

.pdc-minuteur i,
.pdc-minuteur svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  font-size: 1rem;
  color: #f2691f;
}

/* ── 2. Badge d'economie, contre le prix ──────────────────────────────────── */

.pdc-economie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.pdc-economie__pct {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--wp--preset--color--color-1, #e62ca1);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* L'economie en euros en vert : c'est un gain, et le vert la distingue du
   pourcentage sans en faire une seconde etiquette. */
.pdc-economie__euros {
  font-size: 0.84rem;
  font-weight: 600;
  color: #0a7d5a;
}

/* ── 3. Barre « livraison offerte » ───────────────────────────────────────── */

.pdc-franco {
  margin: 14px 0 0;
}

.pdc-franco__texte {
  margin: 0 0 7px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  color: #374151;
}

.pdc-franco__texte strong {
  font-weight: 700;
  color: var(--wp--preset--color--color-1, #e62ca1);
}

.pdc-franco__piste {
  height: 7px;
  border-radius: 999px;
  background: #eceff3;
  overflow: hidden;
}

.pdc-franco__jauge {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7a1d8 0%, var(--wp--preset--color--color-1, #e62ca1) 100%);
  transition: width 0.35s ease;
}

/* Seuil atteint : la barre passe au vert, comme celle du tiroir de panier. */
.pdc-franco.est-atteint .pdc-franco__texte,
.pdc-franco.est-atteint .pdc-franco__texte strong {
  color: #0a7d5a;
}

.pdc-franco.est-atteint .pdc-franco__jauge {
  background: linear-gradient(90deg, #49b98d 0%, #0a7d5a 100%);
}

/* ── 4. Benefices sous le bouton ──────────────────────────────────────────── */

.pdc-benefices {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pdc-benefices li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  color: #374151;
}

.pdc-benefices svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--wp--preset--color--color-2, #00bda5);
}

/* ── 5. Nombre de ventes ──────────────────────────────────────────────────── */

.desktop-reassurance-badges .desktop-reassurance-item.is-ventes {
  background: #f4f1fd;
  border-color: #ddd4f7;
}

.desktop-reassurance-badges .desktop-reassurance-item.is-ventes i {
  color: #7a5af5;
}

/* La ligne « Retour sous 14 jours » a vecu une journee : posee le 2026-11-18,
   retiree le 2026-11-19 parce qu'elle faisait une cinquieme promesse dans une
   colonne qui en comptait deja quatre. Son habillage est parti avec elle. */

/* ── 6. Barre d'achat collante (ordinateur) ───────────────────────────────── */

/* EN HAUT, SOUS L'EN-TETE (2026-11-19, demande du gerant).
   --pdc-entete-h est publiee par header-scroll.js et suit le repli de
   l'en-tete : la barre descend et remonte avec lui au lieu de passer dessous.
   Sous le tiroir de panier (z-index tres eleve) et au-dessus du reste de la
   page. La barre basse du telephone vit a 9999 : celle-ci reste en dessous,
   les deux ne coexistent jamais a la meme largeur de toute facon. */
.pdc-sticky {
  position: fixed;
  top: var(--pdc-entete-h, 110px);
  right: 0;
  left: 0;
  /* SOUS l'en-tete (z-index 1000) et au-dessus de la page : repliee, la barre
     remonte derriere lui au lieu de lui passer devant. C'est la contrepartie
     du passage en haut d'ecran : en bas, on pouvait la mettre au-dessus de
     tout sans rien cacher. */
  z-index: 990;
  background: #fff;
  border-bottom: 1px solid #e6e9ee;
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.1);
  transform: translateY(-100%);
  transition:
    transform 0.25s ease,
    top 0.25s ease;
}

.pdc-sticky.est-visible {
  transform: none;
}

.pdc-sticky__cadre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}

.pdc-sticky__produit {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pdc-sticky__visuel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 8px;
}

.pdc-sticky__visuel img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pdc-sticky__nom {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdc-sticky__droite {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.pdc-sticky__prix {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
}

.pdc-sticky__prix del {
  font-size: 0.86rem;
  font-weight: 400;
  color: #9aa3ad;
}

.pdc-sticky__prix ins {
  text-decoration: none;
  color: var(--wp--preset--color--color-1, #e62ca1);
}

.pdc-sticky__bouton {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  border: 0;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

/* ── 8. Tableau comparatif ────────────────────────────────────────────────── */

.pdc-comparatif {
  padding: 34px 0 10px;
}

.pdc-comparatif__titre {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
}

/* Le tableau defile horizontalement plutot que de comprimer ses colonnes :
   trois produits plus la colonne des libelles ne tiennent pas sous 600 px. */
.pdc-comparatif__defilement {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pdc-comparatif__table {
  width: 100%;
  min-width: 560px;
  /* Largeurs imposees : en mise en page automatique, le produit au nom le plus
     long prenait deux fois la place des autres, et la comparaison devenait
     illisible (constate sur la preprod le 2026-11-19). */
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  overflow: hidden;
}

.pdc-comparatif__table th,
.pdc-comparatif__table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #f1f3f6;
}

.pdc-comparatif__table tbody tr:last-child th,
.pdc-comparatif__table tbody tr:last-child td {
  border-bottom: 0;
}

.pdc-comparatif__table thead th:first-child,
.pdc-comparatif__table tbody th[scope="row"] {
  width: 16%;
}

.pdc-comparatif__table tbody th[scope="row"] {
  font-size: 0.78rem;
  font-weight: 500;
  color: #8a909c;
  background: #fbfbfc;
}

.pdc-comparatif__table td {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f2937;
}

/* La colonne du produit consulte est teintee de bout en bout : on retrouve
   d'un coup d'oeil quelle colonne est la sienne, sans relire l'entete. */
.pdc-comparatif__table .est-actuel {
  background: #fdf3f9;
}

.pdc-comparatif__produit {
  width: 28%;
  vertical-align: top;
  background: #fff;
}

.pdc-comparatif__drapeau {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--wp--preset--color--color-1, #e62ca1);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.pdc-comparatif__lien {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none !important;
}

.pdc-comparatif__visuel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 86px;
}

.pdc-comparatif__visuel img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pdc-comparatif__nom {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdc-comparatif__lien:hover .pdc-comparatif__nom {
  color: var(--wp--preset--color--color-1, #e62ca1);
}

.pdc-comparatif__ajouter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  color: #fff !important;
}

.pdc-comparatif__ici {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8a909c;
}

@media screen and (max-width: 991px) {
  /* La barre collante d'ordinateur n'existe pas sur telephone : la barre basse
     de la fiche mobile fait deja ce travail, et les deux se superposeraient. */
  .pdc-sticky {
    display: none !important;
  }

  .pdc-comparatif {
    padding: 24px 0 6px;
  }

  .pdc-comparatif__titre {
    font-size: 1.1rem;
  }

  .pdc-comparatif__table thead th:first-child,
  .pdc-comparatif__table tbody th[scope="row"] {
    width: 19%;
  }

  .pdc-comparatif__table tbody th[scope="row"] {
    font-size: 0.72rem;
  }

  .pdc-comparatif__produit {
    width: 27%;
  }

  .pdc-comparatif__table th,
  .pdc-comparatif__table td {
    padding: 10px;
  }

  .pdc-comparatif__visuel {
    height: 68px;
  }
}

/* Fidélité : ce que le produit rapporte, sous le prix (lib/fidelite-affichage.php). */
.pdc-points-produit {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 10px 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #4a6257;
}

/* FontAwesome en SVG+JS : viser le i ET le svg. */
.pdc-points-produit i,
.pdc-points-produit svg {
  flex: 0 0 auto;
  width: 0.9em;
  height: 0.9em;
  color: #39c3a8;
}

.pdc-points-produit strong {
  color: #1f7a66;
}

/* =============================================================================
   VARIANTES : NE MONTRER QUE CE QU'ON PEUT ACHETER  (2026-11-20)

   Une fiche à plusieurs contenances affichait toutes ses options, épuisées
   comprises, grisées et impossibles à choisir. Le visiteur passait son temps
   sur ce qu'il ne pouvait pas acheter. Les options épuisées sont donc masquées
   par défaut, et la case les ramène : elles disent que le format existe et
   qu'il reviendra, ce qui n'est pas rien quand c'est justement celui qu'on
   cherche.

   Tout en CSS : sans JavaScript, la case reste cochable et le navigateur fait
   le travail. Le <select> de repli, lui, garde toutes ses options.
   ============================================================================= */

.pdc-var-dispo__case {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pdc-var-dispo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}

.pdc-var-dispo__marque {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #c7ccd4;
  border-radius: 5px;
  background: #fff;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.pdc-var-dispo__case:checked + .pdc-var-dispo .pdc-var-dispo__marque {
  background: var(--wp--preset--color--color-1, #e62ca1);
  border-color: var(--wp--preset--color--color-1, #e62ca1);
}

.pdc-var-dispo__case:checked + .pdc-var-dispo .pdc-var-dispo__marque::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pdc-var-dispo__case:focus-visible + .pdc-var-dispo .pdc-var-dispo__marque {
  outline: 2px solid var(--wp--preset--color--color-1, #e62ca1);
  outline-offset: 2px;
}

.pdc-var-dispo__compte {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f3f6;
  font-size: 0.74rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

/* Le cœur du mécanisme : case cochée, les tuiles épuisées disparaissent. */
.pdc-var-dispo__case:checked ~ .pdc-var-tuiles .pdc-var-tuile.is-epuise {
  display: none;
}

@media screen and (max-width: 991px) {
  .pdc-var-dispo {
    margin-bottom: 8px;
    font-size: 0.78rem;
  }

  .pdc-var-dispo__compte {
    font-size: 0.7rem;
  }
}
