/* ========================================
   CHECKOUT PAGE — Premium Form & Summary
   ======================================== */

/* ---- Layout ---- */
.checkout-hero {
  padding-top: 16px;
  padding-bottom: 0;
}
.checkout-hero .section-title {
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.checkout-hero .muted {
  font-size: .92rem;
}

/* ---- Shipping Form Card ---- */
.shipping-card {
  position: relative;
  overflow: hidden;
}
.shipping-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(232,133,74,.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Form group */
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: .88rem;
  color: var(--muted);
}
.form-group label .icon {
  font-size: 1rem;
}
.form-group input:focus + .focus-line,
.form-group textarea:focus + .focus-line {
  transform: scaleX(1);
}

/* ---- Order Summary ---- */
.summary-card {
  position: sticky;
  top: 80px;
}
.summary-card .summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.summary-card .summary-title .icon {
  font-size: 1.3rem;
}

/* Order items */
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(62,46,36,.2);
  animation: item-slide .4s var(--ease-smooth);
}
@keyframes item-slide {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}
.order-item:last-child { border-bottom: none; }

.order-item .item-info b {
  display: block;
  font-size: .95rem;
  margin-bottom: 2px;
}
.order-item .item-info small {
  color: var(--muted);
}

/* Qty controls */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.qty-controls .btn {
  width: 32px; height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: .9rem;
  border-radius: 8px;
}
.qty-controls input {
  width: 48px;
  text-align: center;
  padding: 6px;
  font-size: .9rem;
  border-radius: 8px;
}
.qty-controls .btn-delete {
  background: rgba(196,58,58,.12);
  color: #f87171;
  border: 1px solid rgba(196,58,58,.2);
  margin-left: 4px;
}
.qty-controls .btn-delete:hover {
  background: rgba(196,58,58,.25);
}

/* Summary totals */
.summary-totals {
  margin-top: 16px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: .95rem;
}
.summary-row.total {
  border-top: 2px solid rgba(62,46,36,.3);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.1rem;
}
.summary-row.total strong {
  color: var(--accent);
  font-size: 1.2rem;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid rgba(62,46,36,.25);
  margin: 14px 0;
}

/* ---- Map modal ---- */
.map-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.map-modal.active { display: flex; }
.map-modal .card {
  width: min(900px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modal-in .3s var(--ease-smooth);
}
.map-modal #mapBox {
  height: 60vh;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

/* ---- Payment note ---- */
.payment-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  margin-top: 14px;
  background: rgba(62,46,36,.15);
  border: 1px solid rgba(62,46,36,.25);
  border-radius: var(--radius-sm);
  font-size: .87rem;
  color: var(--muted);
}
.payment-note .icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---- Empty cart ---- */
.empty-cart {
  text-align: center;
  padding: 40px 20px;
}
.empty-cart .emoji {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.empty-cart p { color: var(--muted); margin-bottom: 14px; }
