/** Shopify CDN: Minification failed

Line 808:1 Expected "}" to go with "{"

**/
/* Conteneur principal pour le bundle et le résumé de sélection */
#bundle-container {
  position: relative;
  display: flex;
}

/* Résumé de la sélection, fixe lors du scroll */
#selection-summary-wrapper {
  position: sticky;
  top: 20px;
  padding: 40px;
  width: 100%;
  max-width: 550px;
  flex: 4;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1;
  color:#000;
}

/* Style pour le conteneur de l'icône */
#summary-icon {
  display: none;
  cursor: pointer;
}


/* Style pour la carte produit sélectionnée */
#bundle-container .product-list .product-card.product-card-selected {
  border: 2px solid #1c1c1c;
}
/* Style pour le titre du produit dans la carte sélectionnée */
#bundle-container .product-list .product-card.product-card-selected .product-title {
  background: #1c1c1c;
  color: white;
}
/* Style pour les contrôles de quantité dans la carte sélectionnée */
#bundle-container .product-list .product-card.product-card-selected .quantity-control-wrapper {
  border: 1px solid #1c1c1c;
}

#bundle-container .product-badge {
  position: absolute;
  top: -12.5px;
  left: 50%;
  transform: translate(-50%);
  background: #efefef;
  color: #1c1c1c;
  border-radius: 5px;
  padding: 2.5px 10px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap; /* Empêche le retour à la ligne */
}

/* Cacher les boutons de contrôle (flèches) dans un champ input de type number */
#bundle-container .quantity-input::-webkit-outer-spin-button,
#bundle-container .quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Pour les autres navigateurs comme Firefox */
#bundle-container .quantity-input[type="number"] {
  -moz-appearance: textfield;
}

/* Titre de produit dans la carte produit */
#selection-summary-wrapper .bloc_step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
#selection-summary-wrapper .bloc_step span {
  background: #1c1c1c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 25px;
  height: 25px;
  border-radius: 2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#selection-summary-wrapper .bloc_step h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

/* Style du résumé */
#bundle-container .summary-content {
  margin: 25px auto 0;
  border: 1px solid #DCDCDC;
  border-radius: 5px;
}
#bundle-container .summary-content-progress {
  padding: 15px 20px;
  background-color: #FBFAF9;
}
#bundle-container .summary-content-list {
  padding: 20px 20px 0;
  max-height: 250px;
  overflow-y: auto;
  border-bottom: 1px solid #DCDCDC;
}

#bundle-container .summary-product-name {
  color: #1c1c1c;
  font-weight: 700;
}

/* Style pour chaque article dans le résumé */
#bundle-container .summary-item {
  display: flex;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #DCDCDC;
  align-items: flex-start;
  justify-content: space-between;
}

#bundle-container .metafield-rich_text_field {
  font-size: 12px;
  color: #999;
  margin-top: 0.25rem;
}

/* Image d'article dans le résumé */
#bundle-container .summary-item img {
  width: 75px;
  height: 75px;
  object-fit: cover;
}
#bundle-container .summary-product-left {
  display: flex;
  gap: 20px;
}

/* Contrôles de quantité pour le résumé */
#bundle-container .summary-quantity-controls {
  display: flex;
  border-radius: 5px;
  padding: 5px;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #DCDCDC;
  font-size: 14px;
}

/* Boutons de contrôle de quantité */
#bundle-container .summary-quantity-controls button {
  width: 15px;
  height: auto;
  background: none;
  color: #1c1c1c;
  font-size: 18px;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Champ de saisie de quantité */
#bundle-container .summary-quantity-controls .quantity-input {
  width: 30px;
  padding: 0;
  text-align: center;
  background: none;
  border: none;
}

/* Affichage du stock disponible pour chaque article */
#bundle-container .product-stock {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 12px;
  margin: 0;
}

/* Style du prix du produit */
#bundle-container .product-price {
  font-size: 14px;
  margin: 0;
}

/* Style pour le prix barré */
.product-price-before,
#add-bundle-to-cart-btn .product-price-before {
  text-decoration: line-through;
  color: #cacaca;
  margin-right: 5px;
}
.product-price-after,
#add-bundle-to-cart-btn .product-price-after {
  font-weight: bold;
  color: #1c1c1c;
}
#add-bundle-to-cart-btn .product-price-before {
  margin-left: 5px;
}
#add-bundle-to-cart-btn .product-price-after {
  color: #fff;
}

/* Carte de produit individuelle */
#bundle-container .product-card {
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 0px;
  border: 1px solid #efefef;
  border-radius: 5px;
}

/* Bulle */
.product-info-bubble {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #1c1c1c;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
}
.product-info-bubble span {
  font-size: 12px;
  line-height: 0;
  color: #fff;
}
/* Popup */
.product-info-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Au-dessus de tous les autres éléments */
}
.popup-content {
  background-color: #fff;
  padding: 20px;
  max-width: 50%;
  max-height: 65%;
  overflow-y: auto;
  position: relative;
  border-radius: 8px;
}
.close-popup {
  position: absolute;
  top: 15px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #818181;
  cursor: pointer;
  line-height: 0;
}
.popup-description {
  margin-top: 20px;
}
.popup-description stock-indicator {
  margin-top: 0.5rem;
}

/* Image de produit dans la carte produit */
#bundle-container .product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  /*border: 1px solid #DCDCDC;*/
}

/* Bouton pour ajouter un produit au bundle */
#bundle-container .product-card .add-to-selection-btn {
  width: 100%;
  padding: 5px;
  background-color: #1c1c1c;
  color: white;
  border: .75px solid #1c1c1c;
  border-radius: 5px;
  font-size: 12px;
  text-transform: uppercase;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .3s ease;
}

/* Conteneur de contrôle de quantité dans la carte produit */
#bundle-container .product-card .quantity-control-wrapper {
  height: 28px;
  border-radius: 5px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #DCDCDC;
}

/* Boutons de contrôle de quantité dans la carte produit */
#bundle-container .product-card .quantity-control-wrapper button {
  width: 100%; /* Compatibilité avec tous les navigateurs */
  width: -webkit-fill-available; /* Compatibilité WebKit */
  background: none;
  color: #1c1c1c;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Champ de saisie de quantité dans la carte produit */
#bundle-container .product-card .quantity-input {
  width: 100%;
  padding: 0;
  text-align: center;
  background: none;
  border: none;
  font-size: 13px;
}

/* Bulle indiquant la quantité sélectionnée sur une carte produit */
#bundle-container .product-quantity-bubble {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #1c1c1c;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* Titre du produit dans la carte produit */
#bundle-container .product-card h3 {
  position: relative;
  background: #efefef;
  color: #1c1c1c;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  padding: 5px;
  margin-top: -5px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}

/* Style pour les éléments désactivés */
#bundle-container .product-list .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Affichage du remplissage de la barre de progression */
#progress-bar-fill,
#selected-items-summary {
  display: block !important;
}

#remaining-items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

/* Indicateur de quantité restante pour compléter le bundle */
#remaining-items-count {
  font-size: 12px;
  margin-top: 0;
  margin-bottom: 0;
}

/* Conteneur de la barre de progression pour la sélection */
#bundle-container .progress-bar-wrapper {
  position: relative;
  width: 100%;
  height: 5px;
  background-color: #FFFFFF;
  border-radius: 1.5px;
  overflow: visible;
}

/* Remplissage dynamique de la barre de progression */
#bundle-container .progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #1c1c1c;
  width: 0%;
  border-radius: 1.5px 0 0 1.5px;
  transition: width 0.3s ease;
}

/* Marqueur indiquant la quantité actuelle sur la barre de progression */
#bundle-container .progress-bar-marker {
  position: absolute;
  top: -30.5px;
  transform: translateX(-50%);
  font-size: 14px;
  color: #1c1c1c;
  text-align: center;
  font-weight: 700;
  z-index: 1;
}

/* Ligne sous le marqueur pour indiquer la progression */
#bundle-container .progress-bar-marker::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 15px;
  background-color: #1c1c1c;
}

#bundle-container .summary-product-header {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
#bundle-container .summary-product-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
#bundle-container .summary-price {
  font-size: 14px;
}

/* Conteneur pour les options de bundle */
#bundle-container .bundle-options {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Activer le défilement horizontal */
  scroll-snap-type: x mandatory; /* Rendre le scroll fluide */
  margin: 20px auto;
}
#bundle-container .bundle-options.scroll {
  padding: 20px 0;
  margin-top: 0;
}

/* Style pour chaque option de bundle */
#bundle-container .bundle-option {
  display: flex;
  scroll-snap-align: start;
  flex: 0 0 calc(100% / 3); /* Par défaut, pour afficher 3 produits par ligne */
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #DCDCDC;
  cursor: pointer;
  text-align: center;
  width: calc(100% / 3 - 20px);
  position: relative;
  background-color: #FBFAF9;
  border-radius: 5px;
  transition: border-color 0.3s ease;
}

/* Style pour le choix de quantité du lot */
#bundle-container .bundle-option .bundle-option-block {
  padding: 20px 0;
}
#bundle-container .bundle-option .bundle-option-quantity {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 10px;
  margin: 0;
}
#bundle-container .bundle-option .bundle-option-pricing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  font-size: 16px;
}
#bundle-container .bundle-option .bundle-option-price-unity {
  color: #818181;
  font-size: 12px;
  padding-top: .25rem;
  margin: 0;
}
#bundle-container .bundle-option.selected .bundle-option-price-unity {
  color: #fff;
}
#bundle-container .bundle-option .bundle-option-promo {
  background: white;
  color: #1c1c1c;
  font-size: 14px;
  padding: 5px;
  margin: 0;
  border-radius: 0 0 5px 5px;
}
#bundle-container .bundle-option-pricing-before {
  text-decoration: line-through;
}
#bundle-container .bundle-option-pricing-after {
  font-weight: 700;
}

/* Indicateur de popularité pour une option de bundle */
#bundle-container .popularity-label {
  position: absolute;
  top: -15px;
  right: 55px;
  background-color: white;
  color: #1c1c1c;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid #DCDCDC;
  border-radius: 5px;
}
#bundle-container .popular.selected .popularity-label {
  background-color: #1c1c1c;
  color: white;
  border: none;
}

/* Indicateur d'économie pour une option de bundle */
#bundle-container .bundle-savings {
  color: #28a745;
  font-size: 14px;
  margin-top: 5px;
}

/* Style pour l'option de bundle sélectionnée */
#bundle-container .bundle-option.selected {
  background-color: #1c1c1c;
  border-color: #1c1c1c;
  color: white;
}
#bundle-container .bundle-option.selected .bundle-option-promo {
  background: #E2F7DC;
}


/* Bouton principal pour ajouter le bundle au panier */
#add-bundle-to-cart-btn {
  width: 100%;
  padding: 20px 0;
  background-color: #1c1c1c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

/* Style désactivé pour le bouton 'Ajouter au panier' */
#add-bundle-to-cart-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* Style de chargement pour le bouton 'Ajouter au panier' */
#add-bundle-to-cart-btn.loading {
  cursor: progress;
}

/* Désactive les boutons d'incrémentation et décrémentation */
#bundle-container .quantity-increment-btn:disabled,
#bundle-container .quantity-decrement-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* Style pour le message toast */
#bundle-container .toast-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
  opacity: 0.9;
  font-size: 14px;
}

/* Bouton pour réinitialiser la sélection */
#reset-selection-btn {
  display: flex;
  background: none;
  color: #999999;
  border: none;
  cursor: pointer;
  padding: 0;
  align-items: center;
  gap: 2.5px;
  margin: 0;
  font-size: 12px;
}
#reset-selection-btn svg {
  width: 18px;
  height: auto;
}

#bundle-container input[type="number"],
#bundle-container button,
#bundle-container img {
  /* font-size: 16px; Empêche le zoom automatique sur iOS */
  -webkit-text-size-adjust: 100%; /* Ajustement du texte sur iOS */
  -webkit-tap-highlight-color: transparent; /* Supprime la surbrillance au tap */
  touch-action: manipulation; /* Améliore la réactivité au tap */
  user-select: none; /* Empêche la sélection accidentelle */
}

/* Alignement avec le titre affiché */
#bundle-container .summary-content-block .bloc_step.justify-between {
  justify-content: space-between;
}
#bundle-container .summary-content-block .bloc_step h4 {
  font-weight: bold !important; 
}
#summary-content-btn {
  width: 100%;
  padding: 15px 0;
  background-color: #1c1c1c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
#summary-content-btn svg {
  fill: #1c1c1c;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transform: rotate(180deg);
}

/* Supprime le focus visuel */
#bundle-container .quantity-input:focus {
  outline: none;
  box-shadow: none;
}

#remaining-products-message {
  display: flex;
  font-size: 14px;
  color: #1c1c1c;
  align-items: center;
  gap: 7.5px;
}
#remaining-products-message.all-selected {
  color: green;
  font-weight: bold;
}
.summary-content-block .bloc_step-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
}

/* Disposition des produits en grille pour les écrans moyens et grands */
@media (min-width: 769px) {
  /* Liste des produits, scrollable si dépassement de hauteur */
  #product-list-wrapper {
    flex: 7;
    overflow-y: auto;
    max-height: 100vh;
  }
  #bundle-container .product-list {
    position: relative;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  /* Ordinateur : 3 produits par ligne sans scroll, sinon 2,5 */
  #bundle-container .bundle-options.no-scroll .bundle-option {
    flex: 0 0 calc(100% / 3);
  }
  #bundle-container .bundle-options.scroll .bundle-option {
    flex: 0 0 40%; /* Pour afficher 2,5 produits */
  }
  #bundle-container .summary-content-block .bloc_step {
    display: none !important;
  }
  #summary-content-btn {
    display: none;
  }
  #bundle-container .summary-content {
    display: block;
  }
}

/* Disposition des produits en grille pour les petits écrans */
@media (max-width: 768px) {
  #bundle-container {
    display: flex;
    flex-direction: column-reverse;
  }
  #product-list-wrapper {
    margin-top: 30px;
  }
  #selection-summary-wrapper {
    max-width: 100%;
    padding: 40px 1.25rem;
  }
  #bundle-container .product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-inline: 0;
  }
  /* Mobile : 2 produits par ligne sans scroll, sinon 1,5 */
  #bundle-container .bundle-options.no-scroll .bundle-option {
    flex: 0 0 calc(50% - 8px);
  }
  #bundle-container .bundle-options.scroll .bundle-option {
    flex: 0 0 42.5%; /* 40% pour afficher 2,5 produit ou 66.6% pour 1,5 */
  }
  #bundle-container .popularity-label {
    right: 32.5px;
  }
  /* Superposition opaque pour l'arrière-plan du résumé */
  #bundle-container .overlay-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Ajustez l'opacité si besoin */
    z-index: 1;
    display: none; /* Masqué par défaut */
  }
  /* Assurez-vous que le contenu du résumé reste au-dessus de la superposition */
  #bundle-container .summary-content-block {
    position: fixed;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border: 0;
    border-radius: 0;
    padding: 20px;
    margin: 0;
    border-top: 1px solid #DCDCDC;
  }
  #bundle-container #bundle-container .summary-content {
    display: none;
    margin: 20px auto 0;
  }
  #bundle-container .bundle-options {
    gap: 10px;
  }
  #bundle-container .product-card h3 {
    font-size: 8px;
  }
  #bundle-container .product-card .add-to-selection-btn {
    font-size: 10px;
  }
  .popup-content {
    max-width: 90%;
  }
  #bundle-container .product-card .quantity-input {
    font-size: 11px;
  }
  #bundle-container .product-badge {
    font-size: 8px;
}