.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 {
  /* État replié par défaut pour éviter le flash au chargement */
  max-height: 45px;
  overflow: hidden;
  position: relative;
}

/* État quand la description est développée */
#category-description.expanded {
  max-height: none;
  overflow: visible;
}

/* Effet fondu uniquement quand c'est replié */
#category-description:not(.expanded)::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;
  }
}



/* ========================================
   CART QUICKVIEW - Hover effect with zoom icon
   ======================================== */
.quickview-cart {
  cursor: pointer;
}

.cart-img-wrapper {
  cursor: zoom-in;
}

.cart-img-overlay {
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.cart-img-overlay .material-icons {
  font-size: 1.25rem;
}

.cart-img-wrapper:hover .cart-img-overlay {
  opacity: 1;
}

.cart-img-wrapper img {
  transition: filter 0.2s ease;
}

.cart-img-wrapper:hover img {
  filter: brightness(0.8);
}

@media (max-width: 768px) {
  .accessory-img-overlay {
    opacity: 1 !important;
  }
  
  .cart-img-overlay {
    opacity: 1 !important;
  }
}

@media (max-width: 768px) {
    .img-prod {
        margin-top: 1em;
        margin-bottom: 1em;
        max-height: 100%;
    }
}
@media (max-width: 768px) {
    .img-fab, .img-prod {
        border-radius: 20px;
        object-fit: cover;
        max-height: 150px;
        width: 100%;
    }
}

.d-none-modal .ps-stories-wrapper, .d-none-modal .product__additional-info{
    display: none;
}

/* ========================================
   VOUCHER PROGRESS BAR
   ======================================== */
.voucher-progress-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: var(--bs-border-radius);
}

.voucher-progress-bar {
  height: 8px;
  border-radius: 4px;
}

.voucher-progress-fill {
  background: linear-gradient(90deg, var(--bs-primary-text-emphasis) 0%, var(--bs-primary) 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.voucher-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.voucher-code-action .btn {
  transition: all 0.3s ease;
  font-weight: 500;
}

.voucher-code-action .btn-success {
  animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(25, 135, 84, 0); }
}

.js-voucher-submit .spinner-border {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .voucher-progress-bar {
    height: 10px;
  }
}

/* Badge avis - affichage au survol et clic/touch */
.reviews-badge-container {
  z-index: 100;
}
.reviews-badge-container .reviews-hover-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 250px;
  max-width: 300px;
  z-index: 101;
}
.reviews-badge-container.active .reviews-hover-content {
  display: block;
}
@media (min-width: 992px) {
  .reviews-badge-container:hover .reviews-hover-content {
    display: block;
  }
}
