.carousel-indicator-more {
  bottom: 0;
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 10;
}


.product-flags li {
  background-color:#fff;
  border:0;
  color:var(--bs-black);
  border-radius:unset;
  transition:transform .25s ease;
  margin:0 0.25rem 0.25rem 0;
  border-radius: var(--bs-border-radius-sm);
}
.product-flag .material-icons{
  font-size: 1rem;
}
  
.product-flags li:hover {
  transform: translateX(-4px);
}

#product .product-flags li.fermete-1{
  background-color:#FBF4EB !;
}
.product-flags li.fermete-1 {
 background-color: #FBF4EB !important;
}

#product #product-images .product-flags li.fermete-2{
  background-color:#FBF4EB !important;
}
.product-flags li.fermete-2 {
  background-color: #FBF4EB !important;
}
#product #product-images .product-flags li.fermete-2{
  background-color:#FBF4EB !important;
}
.product-flags li.fermete-3 {
  background-color: #FBF4EB !important;
}
#product #product-images .product-flags li.fermete-3{
  background-color:#FBF4EB !important;
}
.product-flags li.flag-taille {
  background-color: #6c2e1b !important;
}
#product #product-images .product-flags li.flag-taille{
  background-color:#6c2e1b !important;
}

.product-flags li.flag-mousse {
  background-color: #CEE9FF !important;
}
#product #product-images .product-flags li.flag-mousse{
  background-color:#CEE9FF !important;
}

.product-flags li.flag-latex {
  background-color: #CEE9FF !important;
}
#product #product-images .product-flags li.flag-latex{
  background-color:#CEE9FF !important;
}
.product-flags li.flag-latexnaturel { 
  background-color: #133d27 !important;
}
#product #product-images .product-flags li.flag-latexnaturel{
  background-color:#133d27 !important;
  color:#fff !important;
}

.product-flags li.flag-ressorts {
  background-color: #CEE9FF !important;
}
#product #product-images .product-flags li.flag-ressorts{
  background-color:#CEE9FF !important;
}
.product-flags li.flag-coco {
  background-color: #6C2A12 !important;
}

.product-flags .flag-mémoire-de-forme {
  background-color: #DFD8F3 !important;
}
#product #product-images .product-flags .flag-mémoire-de-forme{
  background-color:#DFD8F3 !important;
}

/* cacher bouton panier */
.offcanvas-cart .product-line__actions,
.offcanvas-cart .increment,
.offcanvas-cart .decrement {
  display: none;
}

.offcanvas-cart input {
  border: none !important;
  font-weight: bold !important;

}

.offcanvas-cart input:before {
  content: "x";
}

/* Collapse de la description de catégorie - tous écrans */
#category-description.collapsed {
  max-height: 45px;
  /* hauteur visible par défaut */
  overflow: hidden;
  position: relative;
}

#category-description.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #fff);
  /* effet fondu */
}

/* Container des images */
.thumbnail-container {
  position: relative;
  overflow: hidden;
}

/* Style des images */
.product-image {
  display: block;
  width: 100%;
  transition: opacity 0.3s ease;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Image principale visible par défaut */
.main-image {
  opacity: 1;
  position: relative;
  z-index: 1;
}

/* Image secondaire cachée par défaut */
.secondary-image {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Desktop : Survol */
@media (min-width: 768px) {
  .thumbnail-container:hover .main-image {
    opacity: 0;
  }

  .thumbnail-container:hover .secondary-image {
    opacity: 1;
  }
}

/* Indicateur de pagination (points) */
.image-dots {
  position: absolute;
  bottom: 10px;
  right: 0;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}

.image-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.image-dot.active {
  background: rgba(0, 0, 0, 0.8);
}

/* Mobile : Préparer pour le swipe */
@media (max-width: 767px) {
  .thumbnail-container {
    touch-action: pan-y;
  }

  .thumbnail-container.swiped .main-image {
    opacity: 0;
  }

  .thumbnail-container.swiped .secondary-image {
    opacity: 1;
  }
  
  .thumbnail-container.swiped .image-dot:first-child {
    background: rgba(0, 0, 0, 0.4);
  }
  
  .thumbnail-container.swiped .image-dot:last-child {
    background: rgba(0, 0, 0, 0.8);
  }
}

@media (min-width: 768px) {
  .offcontainer-fluid {
    margin-left: -48px !important;
    margin-right: -48px !important;
  }
}