/* ==========================================
   MOBILE PRODUCT PAGE STYLES
   ========================================== */

/* Container sans padding-top (pas de sticky header personnalisé) */
.mobile-product-container {
  padding-top: 0;
}

/* Rendre le header principal sticky sur mobile */
.single-product header.container-fluid {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 1. IMAGE PRODUIT */
.mobile-product-image {
  background-color: #fff;
  padding: 15px;
  border: 1px solid #e5e7eb; /* filet gris clair autour de l'image */
  border-radius: 10px;
  margin-top: 15px;
  position: relative; /* Pour positionner les overlays (badge promo) */
}

.mobile-product-image .woocommerce-product-gallery {
  width: 100% !important;
}

/* Badge promo sur la photo. Le style de WooCommerce (.woocommerce span.onsale :
   pastille ronde décalée de -0,5em hors du cadre) était plus précis que
   l'ancienne règle et l'emportait : on le surclasse et on remet chaque
   propriété qu'il fixe. Même pilule que sur les vignettes. */
.single-product .mobile-product-image span.onsale {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 8px 16px;
  line-height: 1.2;
  border-radius: 24px;
  background: linear-gradient(135deg, #f06bc2 0%, #e62ca1 100%) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(230, 44, 161, 0.4);
  z-index: 10;
}

/* Wishlist en bas à droite dans l'image */
.mobile-product-image .image-wishlist {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 10;
}

.mobile-product-image .image-wishlist .yith-add-to-wishlist-button-block {
  margin: 0;
}

.mobile-product-image .image-wishlist .yith-add-to-wishlist-button-block a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.mobile-product-image
  .image-wishlist
  .yith-add-to-wishlist-button-block
  a:hover {
  background-color: var(--wp--preset--color--color-1);
  transform: scale(1.05);
}

.mobile-product-image
  .image-wishlist
  .yith-add-to-wishlist-button-block
  a:hover
  svg {
  color: #fff !important;
}

.mobile-product-image .image-wishlist .yith-add-to-wishlist-button-block svg {
  width: 22px !important;
  height: 22px !important;
  color: var(--wp--preset--color--color-1) !important;
  transition: color 0.2s;
}

.mobile-product-image .image-wishlist .yith-add-to-wishlist-button-block span {
  display: none; /* Masquer le texte */
}

/* FIX IMAGES MOBILE/TABLETTE - HAUTEUR LIMITÉE ET CENTRÉE
   Règle historique, écrite pour la galerie native de WooCommerce. Elle visait
   `.mobile-product-image img`, donc TOUTE image du bloc : elle plafonnait aussi
   le carrousel custom et rendait sa variable de réglage sans effet. Restreinte
   à la galerie WooCommerce, sa cible d'origine. */
.mobile-product-image .woocommerce-product-gallery img,
.mobile-product-image .woocommerce-product-gallery__image img {
  max-height: 260px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

/* SKU (« UGS : … » de WooCommerce) masqué sur mobile — prenait une ligne pour
   rien. product-mobile.css se charge partout → on scope avec une media query
   pour ne PAS toucher le desktop. */
@media screen and (max-width: 991px) {
  .sku_wrapper {
    display: none !important;
  }
}

/* 2. HEADER (Titre + Badges) */
.mobile-product-header {
  padding-top: 10px; /* le titre collait au cadre de l'image */
  margin-bottom: 15px; /* Réduit de 20px à 15px */
}

.mobile-product-header .product-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* ============================================================
   GALERIE MOBILE — carrousel horizontal scroll-snap
   ============================================================ */
.mobile-product-image {
  position: relative;
}

.mobile-gallery {
  position: relative;

  /* ═══════════════════════════════════════════════════════
     RÉGLAGE : hauteur maximale de l'image produit sur MOBILE
     Une seule valeur à modifier. Augmenter = image plus grande.
     Valeur de départ : 260px (l'ancien plafond réel) + 30px.
     Repère utile : au-delà de ~480px, le titre et le prix
     passent sous la ligne de flottaison sur un écran courant.
     ═══════════════════════════════════════════════════════ */
  --pdc-img-max-h: 340px;
}

.mobile-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mobile-gallery__track::-webkit-scrollbar {
  display: none;
}

.mobile-gallery__slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.mobile-gallery__slide img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  /* !important : le bloc parent porte d'autres règles sur `img` en !important */
  max-height: var(--pdc-img-max-h, 340px) !important;
  object-fit: contain;
  margin: 0 auto !important;
}

/* Flèches roses — signalent qu'on peut passer d'une image à l'autre */
.mobile-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wp--preset--color--color-1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.mobile-gallery__arrow--prev {
  left: 8px;
}

.mobile-gallery__arrow--next {
  right: 8px;
}

.mobile-gallery__arrow[disabled] {
  opacity: 0.35;
}

.mobile-gallery__arrow span {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.mobile-gallery__arrow--prev span {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.mobile-gallery__arrow--next span {
  transform: rotate(45deg);
  margin-right: 3px;
}

/* Pastilles de position */
.mobile-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.mobile-gallery__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d5db;
  transition: background 0.2s ease;
}

.mobile-gallery__dot.is-active {
  background: var(--wp--preset--color--color-1);
}

/* Filet de sécurité : si la galerie WooCommerce est rendue par un autre
   chemin (plugin, hook), sa bande de vignettes reste masquée sur mobile. */
.mobile-product-image .woocommerce-product-gallery__wrapper ~ *,
.mobile-product-image .flex-control-thumbs,
.mobile-product-image ol.flex-control-nav {
  display: none !important;
}

.mobile-product-header .brand-badge,
.mobile-product-header .gamme-badge {
  display: inline-block;
  background-color: #e6f2f0;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--wp--preset--color--color-2);
  font-weight: 500;
  text-decoration: none !important;
}

/* Badges cliquables : on neutralise la barre rose que le thème injecte
   sur tous les <a>, elle traversait la pastille. */
.mobile-product-header .brand-badge::before,
.mobile-product-header .brand-badge::after,
.mobile-product-header .gamme-badge::before,
.mobile-product-header .gamme-badge::after {
  display: none !important;
  content: none !important;
}

/* ── Fil d'ariane mobile : seulement la fin, sur une ligne ── */
.mobile-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
  margin: 10px 0 4px;
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.3;
}

.mobile-breadcrumb a {
  color: #6b7280 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.mobile-breadcrumb a::before,
.mobile-breadcrumb a::after {
  display: none !important;
  content: none !important;
}

.mobile-breadcrumb__sep,
.mobile-breadcrumb__ellipsis {
  flex: 0 0 auto;
  color: #d1d5db;
}

/* Le dernier maillon (page courante) peut être long → il se tronque */
.mobile-breadcrumb__current {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4b5563;
  font-weight: 600;
}

.mobile-product-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--wp--preset--color--color-8);
}

.mobile-product-header .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mobile-product-header .star-rating {
  font-size: 14px;
}

.mobile-product-header .star-rating:before,
.mobile-product-header .star-rating span:before {
  color: var(--wp--preset--color--color-2);
}

/* Description courte */
.mobile-product-header .woocommerce-product-details__short-description {
  font-size: 0.9rem;
  color: var(--wp--preset--color--color-text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.mobile-product-header .woocommerce-product-details__short-description p {
  margin-bottom: 8px;
}

/* Bénéfices produit en puces — même traitement que sur ordinateur, pour que la
   liste saisie dans la description courte se lise pareil des deux côtés. */
.mobile-product-header .woocommerce-product-details__short-description ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mobile-product-header .woocommerce-product-details__short-description li {
  position: relative;
  padding-left: 24px;
  line-height: 1.4;
}

.mobile-product-header
  .woocommerce-product-details__short-description
  li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 15px;
  height: 15px;
  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;
}

/* 3. PRIX */
.mobile-product-price {
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.mobile-product-price .offre-speciale {
  background-color: var(--wp--preset--color--color-6);
  color: var(--wp--preset--color--color-1);
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 0.875rem;
}

/* 4. RÉASSURANCE EN 3 LIGNES (une par élément) */
/* Réassurance retirée de la fiche mobile : l'info vit dans la sticky bar.
   Filet de sécurité si un cache sert encore l'ancien HTML. */
.mobile-reassurance {
  display: none !important;
}

.mobile-reassurance .reassurance-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.mobile-reassurance .reassurance-item:hover {
  border-color: var(--wp--preset--color--color-2);
}

.mobile-reassurance .reassurance-item i,
.mobile-reassurance .reassurance-item svg {
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--wp--preset--color--color-2);
  flex-shrink: 0;
}

/* ── Couleurs de réassurance ──
   Strictement la palette du thème : color-2 (secondaire) pour les garanties
   permanentes, color-1 (marque) pour la promotion, qui doit ressortir.
   Les fonds sont des teintes de ces mêmes variables via color-mix(), donc
   ils suivront automatiquement un changement de charte. */
.mobile-reassurance .reassurance-item {
  border-left-width: 0;
  background-color: color-mix(
    in srgb,
    var(--wp--preset--color--color-2) 7%,
    #fff
  );
  border-color: color-mix(in srgb, var(--wp--preset--color--color-2) 22%, #fff);
}

.mobile-reassurance .reassurance-item i,
.mobile-reassurance .reassurance-item svg {
  color: var(--wp--preset--color--color-2);
}

/* Promotion — couleur de marque */
.mobile-reassurance .reassurance-item--promo {
  background-color: color-mix(
    in srgb,
    var(--wp--preset--color--color-1) 7%,
    #fff
  );
  border-color: color-mix(in srgb, var(--wp--preset--color--color-1) 25%, #fff);
}
.mobile-reassurance .reassurance-item--promo i,
.mobile-reassurance .reassurance-item--promo svg {
  color: var(--wp--preset--color--color-1);
}
.mobile-reassurance .reassurance-item--promo span {
  font-weight: 700;
  color: var(--wp--preset--color--color-1);
}

.mobile-reassurance .reassurance-item span {
  font-size: 0.875rem;
  color: var(--wp--preset--color--color-text);
  font-weight: 500;
  line-height: 1.3;
  flex: 1;
}

/* 5. ONGLETS */
.mobile-product-tabs {
  margin-bottom: 10px;
}

/* ── En-tête de section : icône + libellé ── */
.mobile-product-tabs .accordion-button {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icônes nues : la pastille teintée derrière chacune faisait un aplat de
   couleur par ligne, plus visible que le titre lui-même. Il ne reste que le
   pictogramme, à la couleur de marque. */
.mobile-product-tabs .mobile-tab-icon,
.mobile-product-tabs .accordion-button > svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: none;
  color: var(--wp--preset--color--color-1);
}

/* Les titres d'onglets héritaient du 1.125rem des accordéons du site, trop
   gros pour une liste de sections. Sélecteur volontairement long : la règle
   globale (.accordion .accordion-item .accordion-button, dans global.css) est
   plus spécifique qu'un simple .mobile-product-tabs .accordion-button. */
.mobile-product-tabs .accordion .accordion-item .accordion-button,
.mobile-product-tabs .mobile-tab-label {
  font-size: 0.95rem;
}

.mobile-product-tabs .mobile-tab-label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}

/* Le contenu s'aligne sur le libellé, pas sur l'icône */
.mobile-product-tabs .accordion-body {
  padding-top: 4px;
}

.mobile-product-tabs .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.mobile-product-tabs .woocommerce-tabs ul.tabs:before {
  display: none !important;
}

.mobile-product-tabs .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.mobile-product-tabs .woocommerce-tabs ul.tabs li:before {
  display: none !important;
}

.mobile-product-tabs .woocommerce-tabs ul.tabs li:after {
  display: none !important;
}

.mobile-product-tabs .woocommerce-tabs ul.tabs li a {
  color: var(--wp--preset--color--color-text);
  font-size: 0.875rem;
  padding: 5px 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* PAS d'icônes dans les onglets */
.mobile-product-tabs .woocommerce-tabs ul.tabs li a:before {
  display: none !important;
}

.mobile-product-tabs .woocommerce-tabs ul.tabs li.active a {
  color: var(--wp--preset--color--color-1);
  font-weight: 600;
  border-bottom: 2px solid var(--wp--preset--color--color-1);
}

.mobile-product-tabs .woocommerce-Tabs-panel {
  padding: 15px;
  background-color: #fff;
  border-radius: 10px;
}

/* Réduire l'espace après les onglets */
.mobile-product-tabs .woocommerce-Tabs-panel {
  margin-bottom: 0;
}

/* 6. PRODUITS LIÉS - Carrousel mobile */
.mobile-related-products {
  margin-top: 20px;
  margin-bottom: 15px;
  padding: 0 15px;
}

.mobile-related-products .related-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Transformer la liste WooCommerce en carrousel */
.mobile-related-products .products,
.mobile-related-products ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 15px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

/* Masquer la scrollbar */
.mobile-related-products .products::-webkit-scrollbar,
.mobile-related-products ul.products::-webkit-scrollbar {
  display: none;
}

/* Chaque produit dans le carrousel */
.mobile-related-products .product,
.mobile-related-products li.product {
  min-width: 160px !important;
  max-width: 160px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* Réduire la taille des titres et prix */
.mobile-related-products .woocommerce-loop-product__title {
  font-size: 0.875rem !important;
  line-height: 1.3 !important;
  margin-bottom: 8px !important;
}

.mobile-related-products .price {
  font-size: 0.95rem !important;
}

.mobile-related-products .woocommerce-loop-product__link {
  display: block;
}

/* Image produit */
.mobile-related-products .attachment-woocommerce_thumbnail {
  width: 100%;
  height: auto;
}

/* 7. SECTION PHARMACIE - Réduire les espaces */
.mobile-pharmacy-info {
  background-color: #fdf3f9;
  padding: 20px 0 15px 0;
  margin-top: -5px;
  margin-bottom: 70px;
}

.mobile-pharmacy-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--wp--preset--color--color-8);
}

.mobile-pharmacy-info p {
  margin-bottom: 20px;
  color: var(--wp--preset--color--color-text);
}

/* La mise en forme de cette grille vit dans assets/css/home.css : elle y a ete
   refaite le 2026-11-13, et la redefinir ici a specificite egale revenait a
   laisser l'ordre de chargement decider du rendu. */

/* Les cartes de réassurance se règlent elles aussi dans home.css. Les règles
   qui vivaient ici (colonne centrée, icône FontAwesome de 2 rem, texte en
   0,75 rem) y ont été remplacées. */

/* ==========================================
   STICKY BAR COMPACT - NOUVELLE VERSION
   ========================================== */

.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 15px;
  z-index: 9998;
}

.mobile-sticky-bar .sticky-bar-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}

.mobile-sticky-bar form.cart,
.mobile-sticky-bar form.sticky-cart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0 !important;
}

/* Ligne 1 : Prix + Stock (sur une ligne) */
/* Ligne 1 : la largeur se partage en deux moitiés — prix à gauche, sélecteur
   de quantité à droite. Le prix seul laissait une grande zone blanche vide. */
.mobile-sticky-bar .sticky-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.mobile-sticky-bar .sticky-price-wrapper {
  flex: 1 1 50%;
  min-width: 0;
  padding-left: 8px; /* le montant collait au bord de la barre */
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 700;
}

.mobile-sticky-bar .sticky-price-wrapper del {
  font-size: 1rem;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
}

.mobile-sticky-bar .sticky-price-wrapper ins {
  text-decoration: none;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--wp--preset--color--color-1, #e91e63);
}

.mobile-sticky-bar .sticky-price-wrapper .single-price {
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--wp--preset--color--color-1, #e91e63);
}

.mobile-sticky-bar .sticky-stock-wrapper {
  font-size: 0.95rem;
  font-weight: 600;
}

.mobile-sticky-bar .sticky-stock-wrapper .in-stock {
  color: var(--wp--preset--color--color-2, #00a896);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-sticky-bar .sticky-stock-wrapper .in-stock i {
  font-size: 0.9rem;
}

.mobile-sticky-bar .sticky-stock-wrapper .out-of-stock {
  color: #dc3545;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Réassurance en bas de sticky (produit disponible uniquement) ──
   Une CARTE colorée par élément, avec un écart entre les deux.
   Se replie dès que la page est scrollée (classe is-scrolled posée en JS
   sur .mobile-sticky-bar — voir content-single-product.php). */
.mobile-sticky-bar .sticky-reassurance {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow: hidden;
  transition:
    max-height 0.2s ease,
    opacity 0.15s ease,
    margin-top 0.2s ease;
}

/* Repli au scroll RÉTABLI : en haut de page les deux cartes se lisent, puis
   elles s'effacent dès les premiers pixels de défilement. Passé ce point, le
   visiteur lit la fiche et la barre ne doit plus lui manger l'écran — seuls le
   prix, la quantité et le bouton restent. */
.mobile-sticky-bar.is-scrolled .sticky-reassurance {
  max-height: 0;
  opacity: 0;
  /* Annule le gap de 8px de .sticky-bar-content : sans ça, le bloc replié
     laisse quand même une bande vide sous le bouton. */
  margin-top: -8px;
  pointer-events: none;
}

.mobile-sticky-bar .sticky-reassurance__item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e6f2f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #2a4e49;
}

/* SVG inline filaires (style Feather, cohérent avec la newsletter) —
   stroke: currentColor → la couleur se pilote ici */
.mobile-sticky-bar .sticky-reassurance__item svg {
  width: 16px;
  height: 16px;
  color: var(--wp--preset--color--color-2, #00a896);
  flex-shrink: 0;
}

@media screen and (max-width: 375px) {
  .mobile-sticky-bar .sticky-reassurance__item {
    font-size: 11px;
  }
}

/* Ligne 2 : le bouton d'ajout, seul et sur toute la largeur.
   Le sélecteur de quantité est remonté ligne 1, à droite du prix. */
.mobile-sticky-bar .sticky-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap !important;
}

.mobile-sticky-bar .sticky-action-row .sticky-add-btn {
  width: 100%;
}

/* Compteur de quantité compact (produit SIMPLE) — agrandi (52px) car la sticky
   sans variantes était trop petite. flex-shrink:0 pour ne jamais se comprimer. */
.mobile-sticky-bar .sticky-quantity-compact {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f8f8;
  height: 48px;
  /* Moitié de la ligne, comme le prix en face. */
  flex: 0 0 50%;
  width: 50%;
  justify-content: space-between;
}

.mobile-sticky-bar .sticky-quantity-compact .qty-btn {
  background-color: transparent;
  border: none;
  padding: 0 12px;
  font-size: 1.1rem;
  color: var(--wp--preset--color--color-2, #00a896);
  cursor: pointer;
  font-weight: 600;
  height: 100%;
  transition: background-color 0.2s;
}

.mobile-sticky-bar .sticky-quantity-compact .qty-btn:active {
  background-color: rgba(0, 0, 0, 0.05);
}

.mobile-sticky-bar .sticky-quantity-compact input.qty {
  border: none;
  /* Le champ absorbe la largeur restante : les deux boutons restent à leur
     taille, le compteur occupe le milieu. */
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  text-align: center;
  padding: 0 8px;
  font-weight: 600;
  font-size: 1.05rem;
  background-color: transparent;
  height: 100%;
}

/* Bouton ajouter au panier (produit SIMPLE) — agrandi (52px) pour une sticky
   plus présente sans variantes. */
.mobile-sticky-bar .sticky-add-btn {
  flex: 1 1 auto;
  padding: 14px 20px !important;
  font-size: 1rem !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: none;
  font-weight: 600;
  white-space: nowrap;
  height: 48px;
}

/* Variante : action row (sélecteur → qté + bouton) — mêmes règles « collés ». */
.mobile-sticky-bar .pdc-var-action-row {
  flex-wrap: nowrap !important;
  gap: 8px;
}
.mobile-sticky-bar .pdc-var-qty {
  flex-shrink: 0;
}

/* 2e CTA (test) dans le contenu mobile — au-dessus de la sticky, pleine largeur */
.mobile-inline-cta-wrap {
  margin: 4px 0 16px;
}
.mobile-inline-cta {
  width: 100%;
  min-height: 50px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* Message pour produits variables */
.mobile-sticky-bar .sticky-variable-message {
  width: 100%;
}

.mobile-sticky-bar .sticky-variable-message a {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
}

/* Produit indisponible : la sticky affiche l'état de rupture (pas de bouton) */
.mobile-sticky-bar .sticky-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  padding: 8px 12px;
}

.mobile-sticky-bar .sticky-unavailable-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #dc3545;
}

.mobile-sticky-bar .sticky-unavailable-badge i,
.mobile-sticky-bar .sticky-unavailable-badge svg {
  font-size: 1rem;
  color: #dc3545;
}

.mobile-sticky-bar .sticky-unavailable-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
}

/* ===== Sélecteur de variante DANS la sticky bar =====
   Variante (menu déroulant) en haut, puis quantité + bouton en dessous.
   On compacte le module .pdc-variation-form pour qu'il tienne dans la barre. */
.mobile-sticky-bar .sticky-variable-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Ligne prix + stock : stock à gauche, prix à droite (space-between hérité de
   .sticky-info-row) → gain de place vertical. */
.mobile-sticky-bar .sticky-variable-wrap .mobile-variable-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wp--preset--color--color-1, #e91e63);
  margin: 0;
  text-align: right;
}
.mobile-sticky-bar .sticky-variable-wrap .mobile-variable-price del {
  font-size: 0.85rem;
  font-weight: 400;
  color: #999;
  margin-right: 6px;
}
.mobile-sticky-bar .sticky-variable-wrap .mobile-variable-price ins {
  text-decoration: none;
}

/* Stock (à gauche de la ligne) */
.mobile-sticky-bar .mobile-variable-stock {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.mobile-sticky-bar .mobile-variable-stock .pdc-stock-ok {
  color: var(--wp--preset--color--color-2, #00a896);
}
.mobile-sticky-bar .mobile-variable-stock .pdc-stock-low {
  color: #d97706;
}
.mobile-sticky-bar .mobile-variable-stock .pdc-stock-out {
  color: #dc2626;
}

/* La ligne de stock interne au module n'est plus utile en sticky :
   le stock est désormais sur la ligne prix. */
.mobile-sticky-bar .sticky-variable-wrap .pdc-var-stock {
  display: none;
}

.mobile-sticky-bar .pdc-variation-form {
  gap: 8px;
}

/* Label discret (on gagne de la place dans la barre) */
.mobile-sticky-bar .pdc-var-field {
  margin: 0;
}
.mobile-sticky-bar .pdc-var-label {
  font-size: 12px;
  margin-bottom: 4px;
}

/* Menu déroulant compact */
.mobile-sticky-bar .pdc-variation-select {
  padding: 10px 38px 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

/* Ligne de stock compacte */
.mobile-sticky-bar .pdc-var-stock {
  min-height: 0;
  margin: 0;
  font-size: 12px;
}

/* Ligne quantité + bouton : même gabarit que la sticky "simple" (44px) */
.mobile-sticky-bar .pdc-var-action-row {
  gap: 10px;
}
.mobile-sticky-bar .pdc-var-qty {
  border-radius: 8px;
  height: 44px;
  background-color: #f8f8f8;
}
.mobile-sticky-bar .pdc-var-qty .pdc-qty-btn {
  min-height: 44px;
  height: 44px;
  width: 40px;
  background: transparent;
  color: var(--wp--preset--color--color-2, #00a896);
}
.mobile-sticky-bar .pdc-var-qty-input {
  height: 44px;
  width: 46px;
  border-left-color: #e5e5e5;
  border-right-color: #e5e5e5;
  background: transparent;
}
.mobile-sticky-bar .pdc-var-add {
  flex: 1;
  height: 44px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* Responsive pour très petits écrans */
@media screen and (max-width: 375px) {
  .mobile-sticky-bar {
    padding: 8px 10px;
  }

  .mobile-sticky-bar .sticky-price-wrapper del {
    font-size: 0.9rem;
  }

  .mobile-sticky-bar .sticky-price-wrapper ins,
  .mobile-sticky-bar .sticky-price-wrapper .single-price {
    font-size: 1.4rem;
  }

  .mobile-sticky-bar .sticky-stock-wrapper {
    font-size: 0.85rem;
  }

  .mobile-sticky-bar .sticky-add-btn {
    font-size: 0.85rem !important;
    padding: 10px 15px !important;
  }

  .mobile-sticky-bar .sticky-quantity-compact .qty-btn {
    padding: 0 10px;
  }
}

/* Masquer le formulaire complet du summary sur mobile */
.mobile-product-layout .summary.entry-summary {
  display: none;
}

/* RESPONSIVE ADJUSTMENTS */
@media screen and (max-width: 375px) {
  .mobile-reassurance .reassurance-item span {
    font-size: 0.65rem;
  }

  .mobile-sticky-bar .sticky-price {
    font-size: 1.25rem;
  }
}


/* Masquer le menu sticky du footer sur les pages produit */
.single-product #app-menu-container {
  display: none !important;
}

/* Hide desktop on mobile, show mobile on mobile */
@media screen and (max-width: 991px) {
  .desktop-product-layout {
    display: none !important;
  }

  .mobile-product-layout {
    display: block !important;
  }
}

/* Hide mobile on desktop, show desktop on desktop */
@media screen and (min-width: 992px) {
  .mobile-product-layout {
    display: none !important;
  }

  .desktop-product-layout {
    display: block !important;
  }

  .mobile-sticky-bar {
    display: none !important;
  }

  /* Header reste sticky sur desktop aussi */
  .single-product header.container-fluid {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }
}

/* ==========================================
   GALERIE DESKTOP PERSONNALISÉE - CORRIGÉE
   ========================================== */

.desktop-custom-gallery {
  position: relative;
  width: 100%;
  /* CORRECTION: Centrage avec flexbox */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge promo */
.desktop-sale-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--wp--preset--color--color-6, #e91e63);
  color: var(--wp--preset--color--color-1, #fff);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badge « Nouveau » de la fiche produit : exactement la place et le gabarit
   du badge promo, en vert. Les deux ne cohabitent jamais — le gabarit ne
   l'affiche que si le produit n'est pas en promotion. */
.desktop-nouveau-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #008f7e;
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Wrapper de l'image principale */
.desktop-main-image-wrapper {
  position: relative;
  width: 100%;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  /* CORRECTION: Centrage parfait avec Flexbox */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  max-height: 600px;
}

/* CORRECTION: Le lien qui entoure l'image */
.desktop-main-image-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100%;
  min-height: 500px;
  max-height: 600px;
  cursor: zoom-in;
  padding: 20px;
  box-sizing: border-box;
}

/* CORRECTION: L'image principale - CENTRÉE ET RESPONSIVE */
.desktop-main-image,
#desktop-main-product-image {
  max-width: 100% !important;
  max-height: 560px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  /* Centrage de l'image elle-même */
  display: block !important;
  margin: 0 auto !important;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Effet hover sur le wrapper */
.desktop-main-image-wrapper:hover .desktop-main-image,
.desktop-main-image-wrapper:hover #desktop-main-product-image {
  transform: scale(1.02);
}

/* Animation de changement d'image */
.desktop-main-image.changing {
  opacity: 0.5;
}

/* Wrapper des thumbnails */
.desktop-thumbnails-wrapper {
  width: 100%;
  padding: 10px 0;
}

/* CORRECTION: Thumbnails centrées */
.desktop-thumbnails-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  /* CORRECTION: Centrer les thumbnails */
  justify-content: center !important;
}

/* Chaque thumbnail */
.desktop-thumb-item {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-sizing: border-box;
}

.desktop-thumb-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s;
}

.desktop-thumb-item:hover {
  border-color: var(--wp--preset--color--color-2, #00a896);
  box-shadow: 0 2px 8px rgba(0, 168, 150, 0.2);
}

.desktop-thumb-item.active {
  border-color: var(--wp--preset--color--color-1, #e91e63);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.desktop-thumb-item:not(.active):hover img {
  opacity: 0.85;
}

/* Placeholder si pas d'image */
.desktop-no-image {
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 12px;
}

.desktop-no-image img {
  max-width: 100%;
  height: auto;
}

/* CORRECTION: Override pour forcer le centrage du wrapper parent */
.desktop-gallery-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========================================
   RESPONSIVE POUR LA GALERIE DESKTOP
   ======================================== */

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .desktop-main-image-wrapper {
    min-height: 400px;
    max-height: 500px;
  }

  .desktop-main-image-link {
    min-height: 400px;
    max-height: 500px;
    padding: 15px;
  }

  .desktop-main-image,
  #desktop-main-product-image {
    max-height: 460px !important;
  }

  .desktop-thumb-item {
    width: 70px;
    height: 70px;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
  .desktop-main-image-wrapper {
    min-height: 480px;
    max-height: 580px;
  }

  .desktop-main-image-link {
    min-height: 480px;
    max-height: 580px;
  }

  .desktop-main-image,
  #desktop-main-product-image {
    max-height: 540px !important;
  }

  .desktop-thumb-item {
    width: 85px;
    height: 85px;
  }
}

@media screen and (min-width: 1400px) {
  .desktop-main-image-wrapper {
    min-height: 550px;
    max-height: 650px;
  }

  .desktop-main-image-link {
    min-height: 550px;
    max-height: 650px;
  }

  .desktop-main-image,
  #desktop-main-product-image {
    max-height: 610px !important;
  }

  .desktop-thumb-item {
    width: 95px;
    height: 95px;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.desktop-main-image,
#desktop-main-product-image {
  animation: fadeIn 0.3s ease;
}

/* ========================================
   ICÔNE DE ZOOM (optionnel)
   ======================================== */

.desktop-main-image-wrapper::after {
  content: "\f00e"; /* FontAwesome search-plus */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--wp--preset--color--color-2, #00a896);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.desktop-main-image-wrapper:hover::after {
  opacity: 1;
}

/* ========================================
   CORRECTION Z-INDEX PHOTOSWIPE
   Pour que la lightbox passe au-dessus du header
   ======================================== */

.pswp {
  z-index: 999999 !important;
}

/* Lien d'agrandissement de l'image mobile */
.mobile-gallery__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mobile-gallery__link::before,
.mobile-gallery__link::after {
  display: none !important;
  content: none !important;
}

/* ============================================================
   VISIONNEUSE D'IMAGES (modale plein écran)
   Construite en JS à partir des liens du carrousel produit.
   ============================================================ */
.pdc-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.pdc-lb.is-open {
  display: flex;
}

/* Empêche le défilement de la page sous la modale */
body.pdc-lb-open {
  overflow: hidden;
}

.pdc-lb__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pdc-lb__track::-webkit-scrollbar {
  display: none;
}

.pdc-lb__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 72px;
  box-sizing: border-box;
}

.pdc-lb__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.pdc-lb__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.pdc-lb__count {
  position: absolute;
  top: 22px;
  left: 16px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
}

.pdc-lb__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wp--preset--color--color-1);
  cursor: pointer;
}

.pdc-lb__arrow--prev {
  left: 10px;
}

.pdc-lb__arrow--next {
  right: 10px;
}

.pdc-lb__arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.pdc-lb__arrow--prev span {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.pdc-lb__arrow--next span {
  transform: rotate(45deg);
  margin-right: 4px;
}

.pdc-lb__dots {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.pdc-lb__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.pdc-lb__dot.is-active {
  background: var(--wp--preset--color--color-1);
}

/* =============================================================================
   FICHE PRODUIT, VERSION TÉLÉPHONE  (2026-11-13)

   Le nom, la marque et la note passent devant l'image : c'est ce qui dit si la
   page est la bonne. Le cadre autour de la photo disparaît, le fil d'ariane
   redevient complet sur une ligne qui défile, et les variantes se choisissent
   dans un panneau qu'on ouvre depuis la barre d'achat.
   ============================================================================= */

/* ── Fil d'ariane : complet, sur une ligne qu'on fait glisser ──
   Il était tronqué à ses deux derniers maillons avec des points de suspension :
   le visiteur perdait le chemin et ne pouvait plus remonter d'un rayon. */
.mobile-breadcrumb {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* Le dégradé de droite signale qu'il reste du texte au-delà du bord. */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
}

.mobile-breadcrumb::-webkit-scrollbar {
  display: none;
}

/* Plus de troncature sur le dernier maillon : la ligne défile désormais. */
.mobile-breadcrumb__current {
  overflow: visible;
  text-overflow: clip;
  padding-right: 24px;
}

/* ── Titre, marque et note, au-dessus de l'image ── */
.mobile-product-header {
  margin-bottom: 12px;
}

/* Le titre faisait quatre lignes avant même d'arriver à la photo. */
.mobile-product-header .mobile-product-title {
  font-size: 1.12rem;
  line-height: 1.3;
}

.mobile-product-header .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 0.82rem;
}

.mobile-product-header .woocommerce-product-rating .star-rating {
  margin: 0;
}

/* ── Photo sans cadre ──
   Le filet gris et les 15 px de marge dessinaient une boîte autour d'un visuel
   déjà sur fond blanc : deux blancs séparés par un trait. */
.mobile-product-image {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

/* ── Accroche sous la photo ── */
.mobile-short-description {
  margin: 14px 0 4px;
}

/* ── Variantes : bouton « Choisir » et son panneau ──
   La liste des variantes était dépliée dans la barre d'achat collée en bas :
   elle en mangeait la moitié de la hauteur d'écran. */
.pdc-var-mobile {
  position: relative;
  width: 100%;
}

.pdc-var-declencheur {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1f2937;
  cursor: pointer;
}

.pdc-var-declencheur__texte {
  font-weight: 600;
}

.pdc-var-declencheur__valeur {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  color: #4b5563;
}

.pdc-var-declencheur__chevron {
  flex: 0 0 auto;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

.pdc-var-declencheur.is-ouvert .pdc-var-declencheur__chevron {
  transform: rotate(180deg);
}

/* Le panneau s'ouvre VERS LE HAUT : la barre d'achat est collée en bas de
   l'écran, vers le bas il n'y a plus de place. */
.pdc-var-panneau {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 52vh;
  overflow-y: auto;
  padding: 12px;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 14px;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.16);
}

.pdc-var-panneau[hidden] {
  display: none;
}

.pdc-var-panneau__titre {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
}

/* Une variante par rangée dans le panneau : le libellé et le prix tiennent
   côte à côte, et la cible du doigt fait toute la largeur. */
.pdc-var-tuiles--mobile {
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 0;
}

.pdc-var-tuiles--mobile .pdc-var-tuile {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
}

/* Le sommaire de la description a ete retire le 2026-11-13 : une rangee de
   pastilles qui defile horizontalement au milieu d'une page dont le but est
   l'ajout au panier ajoutait une interaction qui en detournait. */

/* Moins de vide entre l'accroche et « Souvent achetes ensemble » : le bloc
   suivant commencait un demi-ecran plus bas. */
.mobile-short-description {
  margin: 12px 0 0;
}

.pdc-lot--large {
  margin-top: 0;
  padding-top: 8px;
}

/* Sur telephone, la grille a trois colonnes du lot laissait 120 px au nom du
   produit : « A-Derma Biology AC... » et rien de plus. Le prix et le bouton
   passent donc sous le nom, comme dans la colonne d'achat de la version
   ordinateur. */
@media screen and (max-width: 767px) {
  .pdc-lot--large .pdc-lot__article {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
      "visuel corps"
      "fin fin";
    gap: 10px 12px;
  }

  .pdc-lot--large .pdc-lot__visuel {
    grid-area: visuel;
    width: 56px;
    height: 56px;
  }

  .pdc-lot--large .pdc-lot__corps {
    grid-area: corps;
  }

  .pdc-lot--large .pdc-lot__fin {
    grid-area: fin;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .pdc-lot--large .pdc-lot__nom {
    -webkit-line-clamp: 3;
  }
}
