/* =============================================
   MODERNA — checkout.css — Panier & Commande
   ============================================= */

.checkout-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 80px;
}

.checkout-header {
  text-align: center;
  padding: 60px 0 48px;
}
.checkout-header h1 {
  font-family: var(--font-title);
  font-size: clamp(36px,5vw,56px);
  font-weight: 300;
  margin-top: 12px;
  color: var(--dark);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
@media(max-width:860px){
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static !important; }
}

/* ── ARTICLES (gauche) ── */
.checkout-items {
  background: white;
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: 28px;
}
.checkout-items-title {
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light);
}

/* Items dans le panier */
.cart-page-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--light);
  align-items: flex-start;
}
.cart-page-item:last-child { border-bottom: none; }

.cart-page-img {
  width: 86px; height: 102px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
}
.cart-page-img img { width:100%; height:100%; object-fit:cover; }

.cart-page-info { flex: 1; }
.cart-page-name {
  font-family: var(--font-title);
  font-size: 19px; font-weight: 400;
  margin-bottom: 5px; color: var(--dark);
}
.cart-page-detail {
  font-size: 12px; color: var(--mid);
  margin-bottom: 10px; letter-spacing: .5px;
}
.cart-page-price {
  font-size: 15px; font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.cart-page-qty {
  display: flex; align-items: center; gap: 10px;
}
.qty-btn {
  width: 30px; height: 30px;
  border: 1.5px solid var(--light);
  background: var(--cream); border-radius: 4px;
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: .2s; color: var(--dark);
  font-family: var(--font-body);
}
.qty-btn:hover { border-color: var(--terracotta); background: var(--terracotta); color: white; }
.remove-btn {
  background: none; border: none;
  color: var(--mid); font-size: 22px;
  cursor: pointer; padding: 4px;
  transition: color .2s; align-self: flex-start;
  line-height: 1;
}
.remove-btn:hover { color: var(--terracotta); }

/* ── RÉSUMÉ (droite) ── */
.checkout-summary {
  background: white;
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
  overflow: hidden;
}
.checkout-summary::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  margin: -28px -28px 24px;
}
.checkout-summary h3 {
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light);
}

/* Lignes prix */
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(237,232,224,.6);
  font-size: 14px;
}
.summary-line > span:first-child { color: var(--mid); font-weight: 400; font-size:14px; }
.summary-line > span:last-child  { font-weight: 600; color: var(--dark); }

.promo-line > span:first-child { color: var(--emerald); }
.promo-line > span:last-child  { color: var(--emerald); }

/* Total */
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 20px;
  font-size: 13px;
}
.summary-total > span:first-child {
  font-size: 10px; letter-spacing: 3px;
  font-weight: 700; text-transform: uppercase;
  color: var(--dark);
}
.summary-total > span:last-child {
  font-family: var(--font-title);
  font-size: 26px;
  color: var(--gold);
  font-weight: 400;
}

/* Options livraison */
.livraison-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--light);
}
.liv-option {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--dark);
  cursor: pointer;
  padding: 4px 0;
  font-weight: 400;
}
.liv-option input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--terracotta);
  flex-shrink: 0; cursor: pointer;
}

/* Code promo */
.promo-row {
  display: flex;
  gap: 0;
  margin: 0 0 6px;
}
.promo-row input {
  flex: 1; padding: 11px 14px;
  border: 1.5px solid var(--light);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 12px; outline: none;
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
  transition: border-color .3s;
}
.promo-row input:focus { border-color: var(--terracotta); }
.promo-row button {
  padding: 11px 18px;
  background: var(--dark); color: white;
  border: none; font-size: 10px;
  letter-spacing: 2px; font-weight: 700;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background .3s;
}
.promo-row button:hover { background: var(--terracotta); }

/* Commander btn */
.checkout-summary .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}
