/* Styles améliorés pour le design de l'offre du jour */

/* Conteneur principal avec effet d'ombre et bordure */
.produit-vedette {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background-image: linear-gradient(to bottom, #ffffff, #fafafa);
}

/* Titre principal avec style moderne */
.produit-vedette > .titre {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  text-align: center;
}

/* Ligne décorative sous le titre */
.produit-vedette > .titre:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 3px;
}

/* Conteneur de l'image avec ombre et bordure */
.produit-vedette .conteneur-image,
.produit-vedette .carousel {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produit-vedette .conteneur-image:hover,
.produit-vedette .carousel:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Style des images */
.produit-vedette .carousel-item img,
.produit-vedette .conteneur-vitrine img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 350px;
  display: block;
  margin: 0 auto;
  transition: transform 0.5s ease;
}

/* Effet de zoom léger au survol de l'image */
.produit-vedette .carousel-item img:hover,
.produit-vedette .conteneur-vitrine img:hover {
  transform: scale(1.03);
}

/* Style des étoiles de notation */
.produit-vedette .notation-vitrine {
  color: #f39c12;
  font-size: 22px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.produit-vedette .notation-vitrine .etoile-vide {
  color: #e0e0e0;
}

/* Style du titre du produit */
.produit-vedette .titre-vitrine {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Style de la description */
.produit-vedette .description-vitrine {
  color: #7f8c8d;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Style des prix */
.produit-vedette .boite-prix {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.produit-vedette .prix {
  font-size: 28px;
  font-weight: 700;
  color: #e74c3c;
}

.produit-vedette del {
  font-size: 18px;
  color: #95a5a6;
  margin-left: 12px;
  text-decoration: line-through;
}

/* Style du bouton découvrir */
.produit-vedette .btn-decouvrir {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
  margin-bottom: 20px;
}

.produit-vedette .btn-decouvrir:hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

/* Style du statut du produit */
.produit-vedette .statut-vitrine {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
}

.produit-vedette .statut-vitrine .enveloppe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.produit-vedette .statut-vitrine .element {
  display: flex;
  align-items: center;
  color: #7f8c8d;
  font-size: 14px;
}

.produit-vedette .statut-vitrine .element i {
  margin-right: 5px;
  color: #3498db;
}

/* Style du compte à rebours */
.produit-vedette .boite-compte-rebours {
  background: linear-gradient(135deg, #f5f7fa, #e8edf2);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-top: 15px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.produit-vedette .desc-compte-rebours {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.produit-vedette .compte-rebours {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.produit-vedette .element-compte-rebours {
  background-color: white;
  border-radius: 8px;
  min-width: 60px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.produit-vedette .element-compte-rebours:hover {
  transform: translateY(-3px);
}

.produit-vedette .nombre-affiche {
  font-size: 24px;
  font-weight: 700;
  color: #3498db;
  line-height: 1.1;
}

.produit-vedette .texte-affiche {
  font-size: 12px;
  text-transform: uppercase;
  margin-top: 5px;
  letter-spacing: 0.5px;
  color: #95a5a6;
}

/* Style de la barre de progression */
.produit-vedette .barre-statut-vitrine {
  position: relative;
  height: 10px;
  width: 100%;
  background: #ecf0f1;
  border-radius: 5px;
  margin-top: 20px;
  overflow: hidden;
}

.produit-vedette .progression-produit {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 5px;
  transition: width 0.5s ease;
}

/* Style des boutons de navigation */
.produit-vedette .btn-vers-1,
.produit-vedette .btn-vers-2 {
  opacity: 1;
  pointer-events: auto;
  background: linear-gradient(135deg, #3498db, #2980b9);
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  color: white;
}

.produit-vedette .btn-vers-1 {
  left: 15px;
}

.produit-vedette .btn-vers-2 {
  right: 15px;
}

.produit-vedette .btn-vers-1:hover,
.produit-vedette .btn-vers-2:hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%) scale(1.1);
}

/* Indicateur de disponibilité */
.produit-vedette .disponibilite {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  font-size: 14px;
  color: #7f8c8d;
}

.produit-vedette .disponibilite .vendus {
  display: flex;
  align-items: center;
}

.produit-vedette .disponibilite .disponibles {
  display: flex;
  align-items: center;
  color: #27ae60;
  font-weight: 600;
}

.produit-vedette .disponibilite i {
  margin-right: 5px;
}

/* Badge de réduction */
.produit-vedette .badge-reduction {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 8px 15px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
  z-index: 5;
}

/* Styles responsifs */
@media (max-width: 768px) {
  .produit-vedette {
    padding: 20px;
    margin: 20px 0;
  }

  .produit-vedette > .titre {
    font-size: 24px;
  }

  .produit-vedette .titre-vitrine {
    font-size: 20px;
  }

  .produit-vedette .prix {
    font-size: 24px;
  }

  .produit-vedette .btn-vers-1,
  .produit-vedette .btn-vers-2 {
    width: 40px;
    height: 40px;
  }

  .produit-vedette .element-compte-rebours {
    min-width: 55px;
  }

  .produit-vedette .nombre-affiche {
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .produit-vedette {
    padding: 15px;
    margin: 15px 0;
  }

  .produit-vedette > .titre {
    font-size: 22px;
  }

  .produit-vedette .titre-vitrine {
    font-size: 18px;
  }

  .produit-vedette .description-vitrine {
    font-size: 14px;
  }

  .produit-vedette .prix {
    font-size: 22px;
  }

  .produit-vedette del {
    font-size: 16px;
  }

  .produit-vedette .btn-decouvrir {
    width: 100%;
    padding: 12px 20px;
  }

  .produit-vedette .btn-vers-1,
  .produit-vedette .btn-vers-2 {
    width: 35px;
    height: 35px;
  }

  .produit-vedette .element-compte-rebours {
    min-width: 50px;
    padding: 8px;
  }

  .produit-vedette .nombre-affiche {
    font-size: 20px;
  }

  .produit-vedette .texte-affiche {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .produit-vedette {
    padding: 12px;
    margin: 12px 0;
  }

  .produit-vedette > .titre {
    font-size: 20px;
  }

  .produit-vedette .titre-vitrine {
    font-size: 16px;
  }

  .produit-vedette .prix {
    font-size: 20px;
  }

  .produit-vedette del {
    font-size: 14px;
  }

  .produit-vedette .btn-vers-1,
  .produit-vedette .btn-vers-2 {
    width: 30px;
    height: 30px;
  }

  .produit-vedette .element-compte-rebours {
    min-width: 45px;
    padding: 6px;
  }

  .produit-vedette .nombre-affiche {
    font-size: 18px;
  }

  .produit-vedette .texte-affiche {
    font-size: 9px;
  }
}
