/* ============================================================
   SRI MANIKANTA POOJA STORES — CART NEW CSS
   Multi-step cart flow with WhatsApp / QR / COD options
   ============================================================ */

/* ── Cart Progress Steps ─────────────────────────────────────── */
.cart-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 0 40px;
  flex-wrap: wrap;
}
.cart-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
}
.cart-step .step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.cart-step span {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.cart-step.active .step-num {
  background: var(--saffron);
  border-color: var(--saffron);
  color: white;
  box-shadow: 0 4px 14px rgba(255,119,34,0.4);
}
.cart-step.active span { color: var(--saffron); font-weight: 600; }
.cart-step.done .step-num {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}
.cart-step-line {
  height: 2px;
  width: 60px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 24px;
  transition: background 0.3s ease;
}

/* ── Delivery Note ───────────────────────────────────────────── */
.delivery-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 4px 0 8px;
  background: var(--sand);
  padding: 6px 10px;
  border-radius: var(--r-md);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.delivery-note i { color: var(--saffron); flex-shrink: 0; }
.delivery-note.free-delivery { background: rgba(46,125,50,0.08); color: var(--color-success); }
.delivery-note.free-delivery i { color: var(--color-success); }

/* ── Order Method Cards ──────────────────────────────────────── */
.order-method-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: var(--white);
}
.order-method-card:hover { border-color: var(--saffron); background: rgba(255,119,34,0.02); }
.order-method-card.selected {
  border-color: var(--saffron);
  background: rgba(255,119,34,0.04);
  box-shadow: 0 4px 20px rgba(255,119,34,0.15);
}
.method-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}
.method-body { flex: 1; }
.method-body strong { display: block; font-size: var(--text-base); color: var(--charcoal); margin-bottom: 3px; }
.method-body span { font-size: var(--text-xs); color: var(--text-muted); }
.method-check {
  color: var(--border);
  font-size: 20px;
  transition: color 0.2s ease;
}
.order-method-card.selected .method-check { color: var(--saffron); }

/* ── WhatsApp / Order Preview ────────────────────────────────── */
.wa-preview, .cod-preview { margin-bottom: 16px; }

.order-bill {
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  font-size: var(--text-sm);
}
.bill-header {
  background: var(--maroon);
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-family: var(--font-heading);
}
.bill-customer {
  padding: 12px 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--charcoal);
}
.bill-customer i { color: var(--saffron); width: 14px; margin-right: 4px; }
.bill-items { padding: 12px 16px; border-bottom: 1px dashed var(--border); }
.bill-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: var(--text-xs);
}
.bill-item:last-child { border-bottom: none; }
.bill-totals { padding: 12px 16px; background: var(--sand); }
.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  padding: 4px 0;
}
.bill-row.total {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--maroon);
  border-top: 1.5px solid var(--border);
  margin-top: 4px;
  padding-top: 8px;
}

/* ── QR Payment Box ──────────────────────────────────────────── */
.qr-payment-box {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 16px;
}
.qr-code-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.qr-placeholder {
  width: 180px; height: 180px;
  border: 2px dashed var(--border);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--sand);
  color: var(--text-muted);
}
.qr-placeholder i { font-size: 64px; color: var(--maroon); opacity: 0.3; }
.qr-placeholder p { font-weight: 600; color: var(--charcoal); margin: 0; }
.qr-placeholder small { font-size: 11px; text-align: center; }
.qr-info h4 { font-family: var(--font-heading); color: var(--maroon); margin-bottom: 12px; }
.upi-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: var(--text-sm);
}
.upi-detail span { color: var(--text-muted); min-width: 70px; }
.copy-btn {
  padding: 3px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.copy-btn:hover { background: var(--saffron); color: white; border-color: var(--saffron); }
.upi-app-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  background: var(--white);
  color: var(--charcoal);
}

/* ── Order Success Page ──────────────────────────────────────── */
.order-success-page {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}
.success-anim {
  font-size: 100px;
  margin-bottom: 24px;
  animation: successBounce 0.6s ease;
}
@keyframes successBounce {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.order-success-page h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--maroon);
  margin-bottom: 12px;
}
.order-success-page p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ── Map Modal ───────────────────────────────────────────────── */
.map-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.map-modal-backdrop.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.map-modal-box {
  background: var(--white);
  border-radius: var(--r-2xl);
  max-width: 720px;
  width: 100%;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.map-modal-backdrop.open .map-modal-box { transform: scale(1); }
.map-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--maroon);
  color: white;
}
.map-modal-header h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-modal-header h3 i { color: var(--saffron); }
.map-modal-close {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.map-modal-close:hover { background: rgba(255,255,255,0.3); }
.map-modal-body { padding: 20px; }
.map-modal-info {
  margin-top: 12px;
  padding: 12px;
  background: var(--sand);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.map-modal-info i { color: var(--saffron); }

/* ── Footer Social Call Icon ─────────────────────────────────── */
.social-link.call:hover { background: var(--saffron); border-color: var(--saffron); color: white; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cart-step-line { width: 30px; }
  .qr-payment-box { grid-template-columns: 1fr; }
  .qr-code-wrap { justify-content: center; }
  .order-method-grid { gap: 10px; }
  .map-modal-box { max-width: 100%; border-radius: var(--r-xl); }
}
@media (max-width: 480px) {
  .cart-steps { gap: 4px; }
  .cart-step-line { width: 20px; }
  .cart-step .step-num { width: 32px; height: 32px; font-size: var(--text-sm); }
}
