/* --- Sticky Add to Cart (mobile) --- */
#sticky-add-to-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px 15px;
}

/* Conteneur interne */
#sticky-add-to-cart .sticky-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

/* Bloc gauche : prix + disponibilité */
#sticky-add-to-cart .sticky-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
}

/* Prix */
#sticky-add-to-cart .sticky-price {
  font-size: 1.3em;
  font-weight: 700;
  color: #333;
}

/* Message de disponibilité */
#sticky-add-to-cart .sticky-stock {
  font-size: 0.85em;
  line-height: 1.3;
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  white-space: normal;
  word-break: break-word;
  max-width: 230px; /* empêche le texte de pousser le bouton */
}

/* Couleurs de statut */
#sticky-add-to-cart .text-success { color: #2ebd85; }   /* Vert menthe pour En stock */
#sticky-add-to-cart .text-warning { color: #ffb400; }   /* Jaune pour attention */
#sticky-add-to-cart .text-danger  { color: #d9534f; }   /* Rouge pour rupture */

/* Bouton principal (orange corail) */
#sticky-add-to-cart .add-to-cart {
  background-color: #ff7043;      /* Orange corail dynamique */
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  padding: 12px 20px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.1s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 5px rgba(255, 112, 67, 0.4);
}

/* Effet de clic */
#sticky-add-to-cart .add-to-cart:active {
  transform: scale(0.96);
  background-color: #e85a2a;      /* Plus foncé au clic */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Bouton désactivé */
#sticky-add-to-cart .add-to-cart:disabled {
  background-color: #ccc;
  color: #666;
  box-shadow: none;
  cursor: not-allowed;
}

/* Masquer sur desktop */
@media (min-width: 768px) {
  #sticky-add-to-cart {
    display: none;
  }
}

/* Petits écrans */
@media (max-width: 360px) {
  #sticky-add-to-cart .sticky-price {
    font-size: 1.1em;
  }
  #sticky-add-to-cart .sticky-stock {
    font-size: 0.8em;
    max-width: 180px;
  }
  #sticky-add-to-cart .add-to-cart {
    padding: 10px 14px;
    font-size: 0.9em;
  }
}
/* --- Correction bouton retour haut (backtotop) --- */
.backtotop {
  bottom: 90px !important; /* remonte au-dessus du sticky */
  
}
