/* Modal panier – Food Court (Sur place uniquement, frais 100F/article) */
.cart-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  display: none;
  overflow-y: auto;
}
.cart-modal-overlay.open { display: block; }
.cart-modal {
  min-height: 100vh;
  padding: 16px;
  padding-bottom: 100px;
  max-width: 600px;
  margin: 0 auto;
}
.cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.cart-modal-header h2 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  border-bottom: 3px solid #ea580c;
  padding-bottom: 8px;
}
.cart-modal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(194,65,12,0.25);
  border: 2px solid #c2410c;
  border-radius: 10px;
  color: #ea580c;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
}
.cart-modal-back:hover { background: rgba(194,65,12,0.4); color: #fff; }
.cart-item {
  background: linear-gradient(135deg, rgba(42,28,20,0.98), rgba(26,18,12,0.98));
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(194,65,12,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-item-img {
  width: 70px;
  height: 70px;
  min-width: 70px;
  min-height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(194,65,12,0.2);
  flex-shrink: 0;
  display: block;
  border: 2px solid rgba(194,65,12,0.3);
}
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-body h3 { font-size: 15px; margin-bottom: 4px; color: #fff; }
.cart-item-body .sur-place { color: #ea580c; font-size: 12px; margin-bottom: 4px; }
.cart-item-body .price-line { color: rgba(255,255,255,0.8); font-size: 13px; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.cart-item-qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-qty span { font-weight: 700; min-width: 24px; text-align: center; color: #fff; }
.cart-item-total { font-weight: 700; color: #ea580c; white-space: nowrap; }
.cart-item-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}
.cart-item-remove:hover { color: #f97316; }
.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.7);
}
.cart-empty i { font-size: 3rem; margin-bottom: 12px; color: #ea580c; }
.cart-form {
  background: rgba(42,28,20,0.6);
  border-radius: 14px;
  padding: 20px;
  margin-top: 24px;
  border: 1px solid rgba(194,65,12,0.2);
}
.cart-form label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}
.cart-form input,
.cart-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid rgba(194,65,12,0.4);
  background: #2a2a2a;
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  box-sizing: border-box;
}
.cart-form input:focus,
.cart-form select:focus {
  outline: none;
  border-color: #ea580c;
}
.cart-form input[readonly] {
  background: rgba(26,18,12,0.8);
  color: rgba(255,255,255,0.85);
  cursor: not-allowed;
}
.cart-form .tel-prefix {
  display: flex;
  align-items: stretch;
}
.cart-form .tel-prefix span {
  padding: 12px 14px;
  border-radius: 10px 0 0 10px;
  border: 2px solid rgba(194,65,12,0.4);
  border-right: none;
  background: #1a1a1a;
  color: #fff;
}
.cart-form .tel-prefix input {
  border-radius: 0 10px 10px 0;
  margin-bottom: 0;
}
/* Options de paiement avec logos Wave / Orange Money */
.cart-paiement-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.cart-paiement-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 100px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid rgba(194,65,12,0.4);
  background: #2a2a2a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cart-paiement-opt:hover { border-color: #ea580c; background: rgba(194,65,12,0.15); }
.cart-paiement-opt input { display: none; }
.cart-paiement-opt img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.cart-paiement-opt.selected,
.cart-paiement-opt:has(input:checked) {
  border-color: #ea580c;
  background: rgba(194,65,12,0.25);
  box-shadow: 0 0 0 1px #ea580c;
}
.cart-total-block {
  background: rgba(42,28,20,0.95);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  border: 2px solid rgba(194,65,12,0.3);
}
.cart-total-block .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.9);
}
.cart-total-block .row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ea580c;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(194,65,12,0.3);
}
.cart-checkout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cart-checkout-btn:hover { opacity: 0.95; transform: translateY(-1px); }
.cart-checkout-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Bouton favori sur les plats (pages restaurant) */
.fav-btn { background: transparent; border: none; color: rgba(255,255,255,0.6); padding: 8px; cursor: pointer; font-size: 1.1rem; }
.fav-btn:hover { color: #ea580c; }
.fav-btn i.fa-heart { color: #ea580c; }
