/* ═══════════════════════════════════════════════════════════════════
   P4P ONLINE ORDERING — CART & CHECKOUT STYLING
   Drawer, Bill Details, Coupons, Step Checkout, Razorpay Modal
   ═══════════════════════════════════════════════════════════════════ */

/* ── Cart Drawer (Desktop) & Sheet (Mobile) ── */
.p4p-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1500;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}

.p4p-cart-drawer {
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #06140e;
  border-left: 1.5px solid var(--p4p-gold);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
  animation: slideDrawerLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes slideDrawerLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (max-width: 640px) {
  .p4p-drawer-backdrop {
    align-items: flex-end;
  }
  .p4p-cart-drawer {
    max-width: 100%;
    height: 92vh;
    border-left: none;
    border-top: 1.5px solid var(--p4p-gold);
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

.cart-drawer-header {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 26, 19, 0.85);
}

.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--p4p-cream);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
}

/* ── Cart Line Item ── */
.cart-item-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.cart-item-img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(201, 168, 76, 0.3);
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--p4p-cream);
}

.cart-item-sub {
  font-size: 0.78rem;
  color: var(--p4p-gold);
  margin-top: 0.15rem;
}

.cart-item-modifiers {
  font-size: 0.75rem;
  color: var(--p4p-cream-muted);
  margin-top: 0.25rem;
}

.cart-item-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
}

.cart-item-stepper {
  display: flex;
  align-items: center;
  background: rgba(14, 30, 23, 0.9);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
}

.cart-item-stepper button {
  width: 24px;
  height: 24px;
  color: var(--p4p-gold);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-stepper span {
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--p4p-cream);
}

.cart-item-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--p4p-cream);
}

/* ── Coupon Section ── */
.cart-coupon-wrap {
  margin: 1.2rem 0;
  padding: 0.85rem;
  background: rgba(14, 30, 23, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-md);
}

.coupon-input-group {
  display: flex;
  gap: 0.5rem;
}

.coupon-input-group input {
  flex: 1;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.coupon-apply-btn {
  background: var(--p4p-gold);
  color: #040907;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
}

.applied-coupon-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Bill Details Card ── */
.bill-details-card {
  background: rgba(10, 24, 18, 0.8);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.bill-details-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--p4p-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.bill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--p4p-cream-muted);
  margin-bottom: 0.45rem;
}

.bill-row.discount {
  color: #34d399;
  font-weight: 600;
}

.bill-row.total {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--p4p-cream);
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(201, 168, 76, 0.3);
  margin-top: 0.65rem;
}

/* ── Minimum Order Banner ── */
.min-order-alert {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #fcd34d;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* ── Cart Drawer Footer ── */
.cart-drawer-footer {
  padding: 1.2rem 1.4rem;
  background: #05120c;
  border-top: 1.5px solid rgba(201, 168, 76, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-checkout-btn {
  background: linear-gradient(135deg, var(--p4p-gold) 0%, #b28e36 100%);
  color: #040907;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.35);
  width: 100%;
}

.cart-checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Mobile Floating Cart Bar ── */
.mobile-floating-cart {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 99;
  background: linear-gradient(135deg, #c9a84c 0%, #a6842f 100%);
  color: #040907;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(201, 168, 76, 0.4);
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
  animation: slideUp 0.3s ease;
}

@media (max-width: 768px) {
  .mobile-floating-cart.visible {
    display: flex;
  }
}

/* ── Step-Based Checkout View ── */
.checkout-page-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  padding: 2.5rem 0 5rem;
}

@media (max-width: 1024px) {
  .checkout-page-container {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

.checkout-steps-column {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.checkout-step-card {
  background: var(--p4p-surface-card);
  border: 1.5px solid rgba(201, 168, 76, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.checkout-step-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(201, 168, 76, 0.25);
}

.step-num-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--p4p-gold);
  color: #040907;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.checkout-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--p4p-cream);
}

/* Address & Input Forms */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.form-field-wrap label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--p4p-cream-muted);
}

.use-location-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  margin-bottom: 1rem;
}

/* Payment Method Cards */
.payment-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.payment-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border: 1.5px solid rgba(201, 168, 76, 0.25);
  background: rgba(14, 30, 23, 0.6);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.payment-method-card.selected {
  border-color: var(--p4p-gold);
  background: rgba(201, 168, 76, 0.12);
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.2);
}

.payment-method-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.payment-icon {
  font-size: 1.3rem;
  color: var(--p4p-gold);
}

/* ── Interactive Mock Razorpay Gateway Modal ── */
.razorpay-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.razorpay-card {
  background: #ffffff;
  color: #1a1a1a;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  animation: scaleIn 0.25s ease;
}

.razorpay-header {
  background: #0c2340;
  color: #ffffff;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rzp-logo-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.razorpay-body {
  padding: 1.4rem;
}

.rzp-test-mode-banner {
  background: #fff3cd;
  color: #856404;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rzp-amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.rzp-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0c2340;
}

.rzp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.rzp-pay-success-btn {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
}

.rzp-pay-fail-btn {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
  padding: 0.65rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.85rem;
}

/* ── Enhanced Interactive Delivery Pin Map Styling ── */
.map-picker-container {
  background: rgba(10, 26, 18, 0.98);
  border: 2px solid var(--p4p-gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 168, 76, 0.2);
}

.map-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.map-picker-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--p4p-gold);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.map-locate-gps-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #34d399;
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.map-locate-gps-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

/* GPS Status Live Banner */
.gps-status-banner {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gps-status-banner.locating {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #fbbf24;
}

.gps-status-banner.warning {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}


/* Map Search Bar */
.map-search-bar-wrap {
  position: relative;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.map-search-input {
  flex: 1;
  background: #040e0a;
  border: 1.5px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.map-search-input:focus {
  border-color: var(--p4p-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25);
}

.map-search-input::placeholder {
  color: rgba(248, 244, 237, 0.45);
}

.map-search-btn {
  background: var(--p4p-gold);
  color: var(--p4p-forest-deep);
  border: none;
  padding: 0 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.map-search-btn:hover {
  opacity: 0.9;
}

.map-search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0a1f16;
  border: 1.5px solid var(--p4p-gold);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8);
}

.map-search-item {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--p4p-cream);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s;
}

.map-search-item:hover {
  background: rgba(201, 168, 76, 0.2);
  color: var(--p4p-gold);
}

/* Quick Area Jump Pills */
.map-quick-pills {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
  margin-bottom: 0.5rem;
  scrollbar-width: none;
}

.map-quick-pills::-webkit-scrollbar {
  display: none;
}

.quick-pill-btn {
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--p4p-cream);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-pill-btn:hover {
  background: var(--p4p-gold);
  color: var(--p4p-forest-deep);
  border-color: var(--p4p-gold);
}

/* Big Delivery Map Viewport */
#deliveryMap {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(201, 168, 76, 0.45);
  z-index: 10;
  background: #06140e;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

@media (max-width: 640px) {
  #deliveryMap {
    height: 310px;
  }
}

.map-pin-hint {
  font-size: 0.8rem;
  color: var(--p4p-cream-muted);
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

/* Pinned Address Display - Large and Clear */
.pinned-address-box {
  background: linear-gradient(135deg, rgba(6, 26, 17, 0.95) 0%, rgba(13, 40, 28, 0.95) 100%);
  border: 2px solid var(--p4p-gold);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-top: 0.85rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pinned-address-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  padding-bottom: 0.55rem;
}

.pinned-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pinned-address-main-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--p4p-cream);
  font-family: var(--font-display);
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pinned-address-main-title span.pin-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.pinned-address-full-desc {
  font-size: 0.88rem;
  color: var(--p4p-cream-muted);
  line-height: 1.45;
  padding-left: 2rem;
}

.pinned-coords-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(201, 168, 76, 0.25);
  margin-top: 0.2rem;
  font-size: 0.8rem;
  padding-left: 2rem;
}

.coords-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(201, 168, 76, 0.2);
  color: var(--p4p-gold);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.test-gmaps-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.2s;
}

.test-gmaps-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Custom Large Pin Marker */
.custom-pin-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2c47a 0%, #c9a84c 100%);
  color: #061c14;
  font-size: 1.45rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.7), 0 0 0 4px rgba(201,168,76,0.4);
  cursor: grab;
  animation: bouncePin 1.2s infinite alternate ease-in-out;
}

.custom-pin-marker:active {
  cursor: grabbing;
}

@keyframes bouncePin {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}



/* ═══════════════════════════════════════════════════════
   LIVE ORDERS DASHBOARD — My Orders Page Styles
   ═══════════════════════════════════════════════════════ */

/* Requirements Banner */
.requirements-banner {
  background: linear-gradient(135deg, rgba(10,26,18,0.98) 0%, rgba(6,18,12,0.98) 100%);
  border: 1.5px solid rgba(201,168,76,0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Section Head Bar */
.section-head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--p4p-cream);
  letter-spacing: 0.02em;
}

.section-count-badge {
  background: rgba(201,168,76,0.18);
  color: var(--p4p-gold);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
}

.refresh-btn {
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--p4p-gold);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.refresh-btn:hover {
  background: var(--p4p-gold);
  color: var(--p4p-forest-deep);
}

/* Orders List */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Empty State */
.empty-state-card {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(12,28,21,0.5);
  border: 1px dashed rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
}

/* Live Order Card */
.order-card-live {
  background: var(--p4p-surface-card);
  border: 1.5px solid rgba(201,168,76,0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: border-color 0.3s;
}
.order-card-live:hover {
  border-color: rgba(201,168,76,0.5);
}
.order-card-live[data-status="received"],
.order-card-live[data-status="preparing"] {
  border-color: rgba(245,158,11,0.4);
  box-shadow: 0 4px 20px rgba(245,158,11,0.12);
}
.order-card-live[data-status="out_for_delivery"] {
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 4px 20px rgba(16,185,129,0.12);
}
.order-card-live[data-status="cancelled"] {
  border-color: rgba(239,68,68,0.25);
  opacity: 0.8;
}

/* Card Top Row */
.order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.2rem 1.4rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.order-id-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.order-ticket-icon {
  font-size: 1.1rem;
}

.order-mode-tag {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--p4p-gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
}

.order-status-badge-wrap {
  text-align: right;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  border: 1.5px solid;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Progress Bar */
.order-progress-track {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.4rem;
  background: rgba(0,0,0,0.2);
  overflow-x: auto;
  scrollbar-width: none;
}
.order-progress-track::-webkit-scrollbar { display: none; }

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 52px;
}

.progress-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  transition: all 0.3s;
}

.progress-step.done .progress-dot {
  background: rgba(52,211,153,0.2);
  border-color: #34d399;
  color: #34d399;
  font-size: 1rem;
  font-weight: 900;
}

.progress-step.active .progress-dot {
  background: rgba(245,158,11,0.25);
  border-color: #f59e0b;
  color: #fbbf24;
  font-size: 0.9rem;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.15);
  animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245,158,11,0.15); }
  50% { box-shadow: 0 0 0 8px rgba(245,158,11,0.3); }
}

.progress-label {
  font-size: 0.62rem;
  color: rgba(248,244,237,0.4);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.progress-step.done .progress-label,
.progress-step.active .progress-label {
  color: var(--p4p-cream-muted);
}
.progress-step.active .progress-label {
  color: #fbbf24;
}

.progress-connector {
  flex: 1;
  min-width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 1.2rem;
  border-radius: 2px;
  transition: background 0.4s;
}
.progress-connector.filled {
  background: linear-gradient(90deg, #34d399, #10b981);
}

/* Meta Info Grid */
.order-card-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.meta-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--p4p-cream-muted);
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
}

/* Items Preview */
.order-items-preview {
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.order-item-row:last-of-type { border-bottom: none; }

.item-qty-badge {
  background: rgba(201,168,76,0.15);
  color: var(--p4p-gold);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
}

.item-name {
  flex: 1;
  color: var(--p4p-cream);
  font-weight: 600;
}

.item-price {
  font-weight: 700;
  color: var(--p4p-cream);
  font-size: 0.82rem;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(201,168,76,0.25);
  margin-top: 0.5rem;
}

/* ETA Strip */
.order-eta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.4rem;
  background: rgba(16,185,129,0.08);
  border-top: 1px solid rgba(16,185,129,0.2);
  font-size: 0.85rem;
}

/* Action Row */
.order-action-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.4rem;
}

.order-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
}

.track-btn {
  background: var(--p4p-gold);
  color: var(--p4p-forest-deep);
}
.track-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.reorder-btn {
  background: rgba(201,168,76,0.12);
  color: var(--p4p-gold);
  border: 1px solid rgba(201,168,76,0.4);
}
.reorder-btn:hover {
  background: rgba(201,168,76,0.25);
}

.cancel-btn {
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.35);
}
.cancel-btn:hover {
  background: rgba(239,68,68,0.2);
  color: #ef4444;
  border-color: #ef4444;
}

/* Cancel Confirmation Area */
.cancel-confirm-area {
  padding: 0.85rem 1.4rem;
  background: rgba(239,68,68,0.06);
  border-top: 1px solid rgba(239,68,68,0.2);
}

.cancel-confirm-yes-btn {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cancel-confirm-yes-btn:hover { opacity: 0.85; }

.cancel-confirm-no-btn {
  background: rgba(255,255,255,0.07);
  color: var(--p4p-cream-muted);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cancel-confirm-no-btn:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 600px) {
  .order-card-meta-grid { grid-template-columns: 1fr; }
  .order-card-top { padding: 1rem 1rem 0.75rem; }
  .order-items-preview,
  .order-action-row,
  .cancel-confirm-area { padding-left: 1rem; padding-right: 1rem; }
  .order-progress-track { padding: 0.75rem 1rem; }
}
