/* ===== PRODUITS ===== */

.produits {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.produit img {
  width: 50%;
  height: 50%;
}

#products-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

#products-container .product {
  flex: 0 0 calc((75% - 2 * 20px) / 3);
  box-sizing: border-box;
}

.products {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 100px;
  margin: 20px 0 10px;
  padding: 20px;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 250px;
  padding: 20px;
  text-align: center;
}

.product img {
  width: 75%;
  height: 85%;
  max-width: 250px;
  border-radius: 10px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.product img:hover,
.pack img:hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-frame {
  border: 2px solid #1e2a57;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 10px auto;
  border-radius: 10px;
  height: 280px;
  width: 70%;
  background-color: #f9f9f9;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  font-family: "Futura";
}

.price {
  margin-bottom: 1%;
  font-size: 20px;
  font-weight: bold;
}

.stock {
  text-align: left;
  font-weight: bold;
  color: green;
  margin-left: 10px;
}

/* ===== PACKS ===== */
.packs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 100px;
  margin: 10px 0 10px;
  padding: 10px;
}

.pack {
  position: relative;
  width: 280px;
  background-color: #fff;
  border-radius: 15px;
  margin: 20px;
  padding: 15px;
  text-align: center;
  font-family: "Futura", sans-serif;
}

.pack img {
  width: 100%;
  border-radius: 10px;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  border: 2px solid #1e2a57;
  object-fit: contain;
}

@keyframes clinoter {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.badge-best {
  position: absolute;
  bottom: 10px;
  background: linear-gradient(135deg, #e63946, #d62828);
  color: white;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 45px;
  transform: rotate(0deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  font-family: "Futura", sans-serif;
  pointer-events: none;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 6px;
  letter-spacing: 0.5px;
  animation: clinoter 1.5s ease-in-out infinite;
}

.pack-image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pack-title {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: bold;
  margin-bottom: 10px;
  padding: 5px 10px;
  font-family: "Lovelo Black";
  border-radius: 5px;
  background: #c99d6c;
  color: white;
  height: 45px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: unset;
}

.hygiene {
  background: #c99d6c;
  color: white;
}

.atmosphere {
  background: #d4a86a;
  color: white;
}

.current-price {
  font-weight: bold;
  color: #1e2a57;
}

/* ===== CONTROLES PRODUITS ===== */
.cart-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  margin-top: 10px;
}

.quantity-container {
  display: flex;
  align-items: center;
  border: 1px solid #1e2a57;
  border-radius: 10px;
  padding: 5px;
  gap: 2px;
  background-color: #f9f9f9;
}

.quantity-container button {
  background: white;
  border: 0px solid black;
  cursor: pointer;
  padding: 0px 5px;
  border-radius: 5px;
}

.quantity-container input {
  width: 20px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
}

.quantity-container .plus,
.quantity-container .moins {
  color: #1e2a57;
  background-color: transparent;
}

.add-to-cart {
  background: #1e2a57;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.add-to-cart:hover {
  background: #152040;
}

.favorite {
  font-size: 50px;
  color: navy;
  cursor: pointer;
  transition: color 0.3s ease;
}

.favorite:hover {
  color: red;
}

.minus,
.plus {
  background: #ddd;
}
