.modal-content {
  border-radius: 14px;
}
/* ===============================
   🖼️ MODAL PRODUIT – IMAGES STABLES
   =============================== */

/* Limite globale du carousel */
#pmCarousel {
  max-height: 420px;
  overflow: hidden;
}

/* Chaque slide */
#pmCarousel .carousel-item {
  text-align: center;
}

/* Image principale */
.modal-product-img {
  max-height: 380px;       /* ⛔ LIMITE CLAIRE */
  width: 100%;
  object-fit: contain;     /* ⛔ PAS DE COUPE */
  background: #fff;
  border-radius: 12px;
}

/* Mobile */
@media (max-width: 576px) {
  #pmCarousel {
    max-height: 260px;
  }

  .modal-product-img {
    max-height: 240px;
  }
}

/* Miniatures */
#pmThumbs {
  margin-top: 12px;
}

.pm-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.pm-thumb.active {
  opacity: 1;
  border-color: #0d6efd;
}

.pm-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}
/* ===============================
   🧩 MINIATURES – FIX DÉFINITIF
   =============================== */

#pmThumbs {
  display: flex;
  justify-content: center;
  align-items: center;   /* 🔑 TRÈS IMPORTANT */
  gap: 10px;

  padding: 12px 0;      /* 🔑 évite la coupure haut/bas */
  min-height: 90px;     /* 🔒 force l’espace */

  overflow: visible;    /* 🔑 empêche le masquage */
}
.pm-thumb {
  width: 70px;
  height: 70px;

  object-fit: contain;   /* 🔑 PAS cover */
  background: #fff;

  border-radius: 8px;
  cursor: pointer;

  border: 2px solid transparent;
  opacity: 0.7;

  box-sizing: border-box; /* 🔑 évite le débordement */
  transition: all 0.2s ease;
}

.pm-thumb.active {
  opacity: 1;
  border-color: #0d6efd;
}

.pm-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}
#pmCarousel {
  overflow: visible;   /* 🔑 autorise les éléments dessous */
  margin-bottom: 10px;
}
@media (max-width: 576px) {
  #pmThumbs {
    min-height: 80px;
  }

  .pm-thumb {
    width: 60px;
    height: 60px;
  }
}
