.product-selection {
  padding: 4rem 0;
  text-align: center;
}

.product-selection-text {
  color: #6F6761;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Badge Cadeau BeerMe */
.gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 163, 0, 0.1);
  border-radius: 999px;
  padding: 8px 20px;
  margin-bottom: 1.5rem;
}

.gift-icon {
  color: #F5A300;
}

.gift-text {
  color: #F5A300;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Le Container principal */
.product-selection .box {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 1000px;
  margin: 2rem auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1ece6;
}

/* Titres des étapes */
.product-selection .h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #161311;
  margin-bottom: 0.75rem !important;
  letter-spacing: 0.5px;
  text-align: left;
}

/* Groupes de boutons de choix */
.choice-group {
  display: flex;
  flex-wrap: nowrap; /* Empêche le retour à la ligne */
  gap: 12px;
  margin-bottom: 2rem;
  overflow-x: auto; /* Permet le défilement horizontal fluide sur mobile */
  padding-bottom: 4px; /* Évite de masquer les ombres lors du défilement */
}

/* Bouton d'options individuel */
.choice-btn {
  flex: 1; /* Distribue équitablement l'espace sur une seule ligne */
  min-width: max-content; /* S'assure que le texte du bouton ne se coupe pas */
  padding: 14px 16px;
  border: 1px solid #e1d8cf;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #4a3e3d;
  background: #faf8f5;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top:1px;
}

.choice-btn:hover {
  border-color: #F5A300;
  background: #fffdfa;
  transform: translateY(-1px);
}

.choice-btn.active {
  border-color: #F5A300;
  background: #F5A300;
  color: #161311;;
  box-shadow: 0 4px 12px rgba(245, 163, 0, 0.2);
}

/* Affichage du produit */
.product-display {
  margin-top: 20px;
  text-align: center;
}

.product-display img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 12px;
  background-color: #faf8f5;
  padding: 1rem;
  transition: transform 0.3s ease;
}

/* Bouton d'ajout au panier */
.add-to-cart {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 10px;
  background-color: #F5A300;
  color: #161311;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(245, 163, 0, 0.3);
  margin-top:1.5rem;
}

.add-to-cart:hover {
  background-color: #e09200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 163, 0, 0.4);
}

.add-to-cart:active {
  transform: translateY(0);
}

/* Switch (pour mode Cadeau / Pour moi) */
.switch-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2rem;
  justify-content: center;
}

.switch-wrapper input {
  display: none;
}

.switch {
  width: 48px;
  height: 26px;
  background: #e1d8cf;
  border-radius: 30px;
  position: relative;
  transition: .25s;
}

.switch::after {
  content: "";
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: .25s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.switch-wrapper input:checked + .switch {
  background: #F5A300;
}

.switch-wrapper input:checked + .switch::after {
  transform: translateX(22px);
}
