/* =============================================
   PAGE PANIER
   ============================================= */
.cart-page {
  max-width: 1140px; margin: 0 auto;
  padding: 80px 64px 120px;
}

.cart-page-head {
  margin-bottom: 64px;
}

.cart-page-head h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 300; margin-top: 14px;
}

/* Layout 2 colonnes */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px; align-items: start;
}

/* =============================================
   PANIER VIDE
   ============================================= */
.cart-empty {
  grid-column: 1/-1;
  text-align: center; padding: 100px 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}

.cart-empty-icon { font-size: 64px; opacity: 0.25; }

.cart-empty h2 {
  font-family: var(--serif);
  font-size: 32px; font-weight: 300; color: var(--ink-soft);
}

.cart-empty p { font-size: 14px; color: var(--ink-soft); }

/* =============================================
   ITEMS
   ============================================= */
.cart-items { display: flex; flex-direction: column; gap: 16px; }

.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px; align-items: center;
  background: var(--white);
  border-radius: 18px; padding: 20px;
  border: 1px solid var(--border);
  transition: box-shadow var(--t);
}

.cart-item:hover { box-shadow: var(--shadow-sm); }

.cart-item-img {
  width: 110px; height: 110px;
  object-fit: cover; border-radius: 12px;
  background: var(--rose-pale);
}

.ci-name {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600; margin-bottom: 6px;
}

.ci-meta {
  font-size: 13px; color: var(--ink-soft); margin-bottom: 3px;
}

.ci-sub {
  font-size: 15px; font-weight: 500;
  color: var(--rose); margin-top: 10px;
}

.ci-qty {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
}

.ci-qty button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  font-size: 16px; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}

.ci-qty button:hover { background: var(--rose); border-color: var(--rose); color: #fff; }

.ci-qty .qty-n { font-weight: 600; min-width: 20px; text-align: center; }

.btn-rm {
  align-self: flex-start;
  background: none; border: none;
  color: rgba(20,20,20,0.2); font-size: 18px;
  padding: 4px; transition: color 0.2s;
}

.btn-rm:hover { color: #e0787a; }

/* =============================================
   RÉSUMÉ
   ============================================= */
.cart-summary {
  background: var(--cream);
  border-radius: 22px; padding: 32px;
  position: sticky; top: 94px;
  border: 1px solid var(--border);
}

.cart-summary h2 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 600;
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.sum-line {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--ink-soft);
  margin-bottom: 14px;
}

.sum-total {
  display: flex; justify-content: space-between;
  font-size: 18px; font-weight: 500;
  padding-top: 18px; margin-top: 4px;
  border-top: 1px solid var(--border);
  margin-bottom: 28px;
}

.btn-whatsapp {
  width: 100%; padding: 15px 20px;
  background: #25D366; color: #fff; border: none;
  border-radius: 14px;
  font-family: var(--sans); font-size: 14px;
  font-weight: 400; letter-spacing: 0.3px;
  display: flex; align-items: center;
  justify-content: center; gap: 10px;
  transition: background 0.25s, transform 0.2s;
  margin-bottom: 14px;
}

.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }

.btn-continue {
  display: block; text-align: center;
  font-size: 13px; color: var(--ink-soft);
  padding: 10px; transition: color 0.2s;
}

.btn-continue:hover { color: var(--ink); }

/* =============================================
   RESPONSIVE CART
   ============================================= */
@media (max-width: 1024px) {
  .cart-page { padding: 60px 32px 80px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 480px) {
  .cart-page { padding: 40px 16px 60px; }
  .cart-item { grid-template-columns: 80px 1fr auto; gap: 14px; padding: 14px; }
  .cart-item-img { width: 80px; height: 80px; }
  .ci-name { font-size: 17px; }
}

/* ── BOUTON PAYER ───────────────────────────── */
.btn-pay-now {
  width: 100%;
  padding: 16px 20px;
  background: var(--rose);
  color: #fff; border: none;
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center;
  justify-content: space-between;
  transition: background 0.25s, transform 0.2s;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.btn-pay-now:hover { background: #c07288; transform: translateY(-2px); }
.btn-arrow { font-size: 18px; }


/* =============================================
   FORMULAIRE COMMANDE
   ============================================= */
.order-form {
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.order-form h3 {
  font-family: var(--serif);
  font-size: 18px; font-weight: 600;
  margin-bottom: 18px;
  color: var(--ink);
}

.order-form label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  margin-top: 14px;
}

.order-form input[type="text"],
.order-form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.order-form input:focus {
  outline: none;
  border-color: var(--rose);
}

/* ── CHOIX LIVRAISON ── */
.delivery-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.delivery-option:hover { border-color: var(--rose); background: var(--rose-pale); }
.delivery-option.selected { border-color: var(--rose); background: var(--rose-pale); }

.d-icon { font-size: 22px; flex-shrink: 0; }

.delivery-option div { flex: 1; }
.delivery-option strong { font-size: 14px; display: block; }
.delivery-option p { font-size: 12px; color: var(--ink-soft); margin: 0; }

.d-check {
  width: 22px; height: 22px;
  background: var(--rose); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  opacity: 0; transition: opacity 0.2s;
  flex-shrink: 0;
}

.delivery-option.selected .d-check { opacity: 1; }

/* ── BOUTON ANNULER ── */
.btn-annuler {
  width: 100%;
  padding: 13px;
  background: none;
  border: 1.5px solid #e5c5c5;
  border-radius: 14px;
  color: #c07288;
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
}

.btn-annuler:hover { background: #fff0f3; border-color: var(--rose); }

/* =============================================
   MODAL CONFIRMATION
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  padding: 20px;
}

.modal-overlay.show {
  opacity: 1; pointer-events: auto;
}

.modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.show .modal-box {
  transform: translateY(0);
}

.modal-icon { font-size: 42px; margin-bottom: 16px; }

.modal-box h3 {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600;
  margin-bottom: 12px;
}

.modal-box p {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.6; margin-bottom: 8px;
}

.modal-sub {
  font-weight: 500; color: var(--ink) !important;
  margin-top: 20px !important;
}

.modal-btns {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 20px;
}

.modal-btn-suivi {
  padding: 14px;
  background: var(--rose); color: #fff;
  border: none; border-radius: 14px;
  font-family: var(--sans); font-size: 15px;
  cursor: pointer; transition: background 0.2s;
}
.modal-btn-suivi:hover { background: #c07288; }

.modal-btn-pay {
  padding: 14px;
  background: var(--ink); color: #fff;
  border: none; border-radius: 14px;
  font-family: var(--sans); font-size: 15px;
  cursor: pointer; transition: background 0.2s;
}
.modal-btn-pay:hover { background: #2a2a2a; }

.modal-btn-clear {
  padding: 13px;
  background: #f5f5f5; color: var(--ink);
  border: none; border-radius: 14px;
  font-family: var(--sans); font-size: 14px;
  cursor: pointer; transition: background 0.2s;
}
.modal-btn-clear:hover { background: #ebebeb; }

.modal-btn-cancel {
  padding: 12px;
  background: none; color: var(--ink-soft);
  border: none; font-family: var(--sans);
  font-size: 13px; cursor: pointer;
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .modal-box { padding: 32px 20px; }
  .delivery-choice { gap: 8px; }
}