/* === Style global === */
body {
  margin: 0;
  padding: 30px;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fdf3fb;
  color: #3b1d3f;
}

/* === En-tête === */
header {
  background-color: #ffffff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header h1 {
  font-size: 2rem;
  color: hsl(314, 54%, 63%);
  margin: 0;
}

.logo {
  width: 180px;
  height: auto;
  margin-bottom: 10px;
}

/* === Conteneur principal === */
.cart-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* === Élément panier === */
.cart-item {
  display: flex;
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
  gap: 20px;
  flex-wrap: wrap;
}

.cart-item-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h3 {
  font-size: 1.3rem;
  color: #a24888;
  margin-bottom: 10px;
}

.cart-item-details p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.cart-item-details label {
  font-weight: 500;
  margin-right: 10px;
}

.quantity-input {
  width: 60px;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 5px;
}

/* === Boutons === */
.remove-item {
  margin-top: 10px;
  background-color: #f44336;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.remove-item:hover {
  background-color: #d32f2f;
}

.btn-payer {
  background-color: #fdb6e2;
  color: #5a0a45;
  border: none;
  padding: 15px 25px;
  font-size: 1.2em;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 20px;
}

.btn-payer:hover {
  background-color: #ff85cc;
}

/* === Résumé panier === */
.cart-summary {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
  text-align: center;
}

.cart-summary h3 {
  font-size: 1.5rem;
  color: hsl(313, 49%, 63%);
  margin-bottom: 15px;
}

.cart-summary p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.checkout {
  width: 100%;
  background-color: hsl(311, 66%, 65%);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.checkout:hover {
  background-color: hsl(314, 66%, 66%);
}

/* === Responsive === */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cart-item-img {
    width: 100%;
    max-width: 250px;
  }

  .quantity-input {
    margin-top: 10px;
  }
}
