/* ===== PANIER ===== */

.cart-section {
  position: fixed;
  top: 15%;
  right: -400px;
  width: 350px;
  height: 55vh;
  max-width: 300px;
  background-color: #fffdf6;
  border-radius: 12px;
  transition: right 0.3s ease-in-out;
  padding: 20px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-section.show {
  right: 0;
}

.cart-section h3 {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.cart-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.cart-section ul li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-section ul li:last-child {
  border-bottom: none;
}

.cart-product {
  display: flex;
  align-items: center;
  background-color: transparent;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cart-product-image {
  width: 70px;
  height: auto;
  margin-right: 12px;
}

.cart-product-info {
  flex: 1;
}

.cart-product-name {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 14px;
}

.cart-product-quantity {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
}

.qty-value {
  display: inline-block;
  width: 30px;
  text-align: center;
  font-size: 16px;
  margin: 0 10px;
}

.cart-product-price {
  font-size: 14px;
  color: #444;
}

.cart-delete-btn {
  border: none;
  background: none !important;
  font-size: 10px !important;
  cursor: pointer;
  color: #000 !important;
  margin-left: 8px;
}

#cartTotal {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  padding: 15px;
  margin-top: auto;
  border-radius: 5px;
}

.cart-section button {
  background: #152040;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
  margin-top: 10px;
}

.cart-section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
}

#cartList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-section button:hover {
  background: red;
}

#closeCart {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #152040;
  cursor: pointer;
}

#closeCart:hover {
  color: red;
}

.cart-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background-color: white;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  display: inline-block;
}

.cart-btn i {
  font-size: 24px;
  color: #152040;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #d19b6f;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  z-index: 1002;
}

.DisplayPanier-btn {
  background: #e0b78f;
  color: #1e2a57;
  font-family: "lovelo Black";
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 20px;
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  margin-left: auto;
  margin-right: 10px;
}

.DisplayPanier-btn:hover {
  background-color: #d19b6f;
  color: #1e2a57;
}

.cart-header {
  background-color: #d2ae88;
  padding: 10px;
  border-radius: 10px 10px 0 0;
  font-weight: bold;
  color: black;
  text-align: center;
  margin: 0px 0px 10px 0px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  margin-top: 30px;
  font-size: 18px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

#cart-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
  margin-bottom: 10px;
  justify-items: center;
}
