/* ============================================================
   BurgerZone — Cart Off-canvas Panel (Dark mode, Orange accent)
   ============================================================ */

/* ── Overlay ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Off-canvas Panel ── */
.bz-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 460px;
  height: 100vh;
  background: #111111;
  color: #ffffff;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.40s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 48px rgba(0,0,0,0.6);
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}
.bz-cart-panel.open {
  transform: translateX(0);
}

/* ── Panel Views ── */
.bz-panel-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.bz-panel-view--hidden {
  display: none;
}

/* ── Panel Header ── */
.bz-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.bz-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}
.bz-panel-title i {
  color: #FF5722;
  font-size: 1.2rem;
}
.bz-panel-close {
  background: rgba(255,255,255,0.07);
  border: none;
  color: #aaaaaa;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.bz-panel-close:hover {
  background: rgba(255, 87, 34, 0.15);
  color: #FF5722;
}

/* ── Step Badge ── */
.bz-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FF5722;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Cart Items Area ── */
.bz-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bz-cart-items::-webkit-scrollbar { width: 4px; }
.bz-cart-items::-webkit-scrollbar-track { background: #1a1a1a; }
.bz-cart-items::-webkit-scrollbar-thumb { background: #FF5722; border-radius: 2px; }

/* ── Empty State ── */
.bz-cart-empty {
  text-align: center;
  margin: auto;
  padding: 40px 20px;
  color: rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.bz-cart-empty i {
  font-size: 3rem;
  color: rgba(255,255,255,0.15);
}
.bz-cart-empty p {
  font-size: 0.95rem;
  margin: 0;
}

/* ── Cart Item Row ── */
.bz-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 14px;
}
.bz-cart-item-info { flex: 1; }
.bz-cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}
.bz-cart-item-price {
  font-size: 0.88rem;
  color: #FF5722;
  font-weight: 700;
}
.bz-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.bz-qty-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s;
}
.bz-qty-btn:hover { background: #FF5722; }
.bz-qty-num {
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  font-size: 0.9rem;
}
.bz-remove-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 6px;
  transition: color 0.2s;
}
.bz-remove-btn:hover { color: #ff4444; }

/* ── Panel Footer (Totals) ── */
.bz-panel-footer {
  padding: 20px 24px;
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.bz-totals { display: flex; flex-direction: column; gap: 10px; }
.bz-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.bz-totals-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.bz-totals-grand {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.bz-orange { color: #FF5722 !important; }

/* ── Buttons ── */
.bz-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 50px;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.bz-btn-orange {
  background: #FF5722;
  color: #fff;
}
.bz-btn-orange:hover:not(:disabled) {
  background: #E64A19;
  box-shadow: 0 6px 24px rgba(255,87,34,0.35);
  transform: translateY(-1px);
}
.bz-btn-orange:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.bz-btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.bz-btn-whatsapp:hover {
  background: #1ebe57;
  box-shadow: 0 6px 24px rgba(37,211,102,0.3);
  transform: translateY(-1px);
}
.bz-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  border-radius: 50px;
  padding: 10px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bz-btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.bz-btn-full { width: 100%; }

/* ── Checkout Body ── */
.bz-checkout-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.bz-checkout-body::-webkit-scrollbar { width: 4px; }
.bz-checkout-body::-webkit-scrollbar-thumb { background: #FF5722; border-radius: 2px; }

.bz-checkout-step { display: flex; flex-direction: column; height: 100%; }
.bz-step-active { display: flex; }

/* ── Form Fields ── */
.bz-form-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.bz-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.bz-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bz-field input,
.bz-field textarea {
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.bz-field input::placeholder,
.bz-field textarea::placeholder { color: #aaaaaa; }
.bz-field input:focus,
.bz-field textarea:focus {
  border-color: #FF5722;
}

.bz-reference-input {
  font-size: 1.4rem !important;
  letter-spacing: 8px;
  text-align: center;
  font-weight: 700 !important;
}

/* ── Mini Order Summary (in checkout step 1) ── */
.bz-order-mini {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bz-order-mini:empty { display: none; }
.bz-order-mini-item {
  display: flex;
  justify-content: space-between;
}
.bz-order-mini-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #FF5722;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
}

/* ── Payment Amount ── */
.bz-pay-amount {
  background: rgba(255,87,34,0.08);
  border: 1px solid rgba(255,87,34,0.2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.bz-pay-usd { color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* ── Payment Tabs ── */
.bz-pay-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.bz-pay-tab {
  flex: 1;
  padding: 9px 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: rgba(255,255,255,0.55);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bz-pay-tab.active {
  background: rgba(255,87,34,0.12);
  border-color: #FF5722;
  color: #FF5722;
}
.bz-pay-tab:hover:not(.active) {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ── Payment Details ── */
.bz-pay-details { margin-bottom: 4px; }
.bz-pay-data { display: none; }
.bz-pay-data.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: bzFadeIn 0.2s ease;
}
.bz-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  font-size: 0.85rem;
}
.bz-pay-row span { color: rgba(255,255,255,0.5); }
.bz-pay-row strong { color: #ffffff; }

/* ── Nav Cart Button ── */
.nav-cart-btn {
  position: relative;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-cart-btn:hover {
  background: rgba(255,87,34,0.2);
  border-color: #FF5722;
  color: #FF5722;
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #FF5722;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-body, #0D0A06);
}

/* ── Utility ── */
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 14px !important; }

@keyframes bzFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .bz-cart-panel { max-width: 100%; }
  .bz-form-grid2 { grid-template-columns: 1fr; }
}