/* ============================================================
   ADAM'S KITCHEN — CUSTOMER ORDERING APP CSS (v1.0)
   Ultra-Luxe Artisan Bakery & Cafe Experience
   ============================================================ */

:root {
  --primary-dark: #1C1008;
  --primary-brand: #2A1A0E;
  --caramel: #8B5E34;
  --gold-accent: #C9A882;
  --gold-border: #E8DACB;
  --cream-bg: #FDFAF0;
  --surface: #FFFFFF;
  --surface-alt: #FAF5EE;
  --text-main: #1C1008;
  --text-muted: #6E5D4F;
  --text-light: #9E8B7A;
  --success: #15803D;
  --success-bg: #ECFDF5;
  --danger: #B91C1C;
  --shadow-sm: 0 2px 8px rgba(44, 24, 12, 0.05);
  --shadow-md: 0 8px 24px rgba(44, 24, 12, 0.08);
  --shadow-lg: 0 16px 40px rgba(44, 24, 12, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Outfit', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-ar);
  background-color: var(--cream-bg);
  color: var(--text-main);
  direction: rtl;
  min-height: 100vh;
  padding-bottom: 90px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ── Top Header ── */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: #FFF;
  border: 1.5px solid var(--gold-border);
  padding: 2px;
  box-shadow: var(--shadow-sm);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--caramel);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header-action {
  background: #FFF;
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-header-action:active {
  transform: scale(0.96);
}

/* ── Hero & Status Banner ── */
.hero-banner {
  padding: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.status-card {
  background: linear-gradient(135deg, #2A1A0E 0%, #422915 100%);
  color: #FFF;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.status-card::after {
  content: '🍰';
  position: absolute;
  left: -10px;
  bottom: -15px;
  font-size: 5rem;
  opacity: 0.12;
  transform: rotate(-15deg);
  pointer-events: none;
}

.status-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(21, 128, 61, 0.25);
  border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #86EFAC;
  margin-bottom: 10px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.hero-sub {
  font-size: 0.82rem;
  color: #E2D3C4;
  line-height: 1.45;
  margin-bottom: 14px;
}

/* Order Mode Switcher */
.mode-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: #E8DACB;
  padding: 8px 4px;
  font-family: var(--font-ar);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mode-btn.active {
  background: #FFF;
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── Sticky Search & Category Navigation ── */
.controls-bar {
  position: sticky;
  top: 65px;
  z-index: 90;
  background: rgba(253, 250, 240, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px 6px;
  border-bottom: 1px solid var(--gold-border);
}

.search-box {
  position: relative;
  max-width: 800px;
  margin: 0 auto 10px;
}

.search-input {
  width: 100%;
  padding: 11px 40px 11px 16px;
  font-family: var(--font-ar);
  font-size: 0.92rem;
  border: 1.5px solid var(--gold-border);
  border-radius: 12px;
  background: #FFF;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px rgba(139, 94, 52, 0.12);
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
}

/* Horizontal Categories Carousel */
.categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  max-width: 800px;
  margin: 0 auto;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  white-space: nowrap;
  border: 1.5px solid var(--gold-border);
  background: #FFF;
  color: var(--text-muted);
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cat-pill:active {
  transform: scale(0.95);
}

.cat-pill.active {
  background: var(--primary-brand);
  color: #FFF;
  border-color: var(--primary-brand);
  box-shadow: 0 4px 12px rgba(42, 26, 14, 0.2);
}

/* ── Menu Section & Product Grid ── */
.menu-container {
  max-width: 800px;
  margin: 16px auto;
  padding: 0 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-count {
  font-size: 0.78rem;
  font-weight: 700;
  background: #F4E8D9;
  color: var(--caramel);
  padding: 2px 8px;
  border-radius: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.product-card {
  background: #FFF;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--caramel);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid #FDE68A;
}

.product-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--surface-alt);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.product-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 12px;
  min-height: 32px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--gold-border);
}

.product-price {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--caramel);
  font-family: var(--font-en), var(--font-ar);
}

.product-price span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 2px;
}

.btn-add-cart {
  background: var(--primary-brand);
  color: #FFF;
  border: none;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-add-cart:active {
  transform: scale(0.92);
}

.qty-control-inline {
  display: flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:active {
  background: #EADBC8;
}

.qty-display {
  font-size: 0.85rem;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
  color: var(--primary-dark);
}

/* ── Floating Bottom Cart Bar ── */
.floating-cart-bar {
  position: fixed;
  bottom: 65px;
  left: 16px;
  right: 16px;
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, #2A1A0E 0%, #442A16 100%);
  color: #FFF;
  border-radius: 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(42, 26, 14, 0.35);
  z-index: 150;
  cursor: pointer;
  border: 1.5px solid rgba(201, 168, 130, 0.4);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom center;
}

.floating-cart-bar:active {
  transform: scale(0.98);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.floating-cart-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-icon-bubble {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #DC2626;
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #2A1A0E;
}

.cart-text-details h4 {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.2;
}

.cart-text-details span {
  font-size: 0.74rem;
  color: #E8DACB;
}

.floating-cart-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 900;
  background: #FFF;
  color: var(--primary-dark);
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ── Bottom Navigation Bar ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 120;
  box-shadow: 0 -4px 16px rgba(44, 24, 12, 0.04);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 12px;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  background: none;
}

.nav-item.active {
  color: var(--caramel);
}

.nav-item-icon {
  font-size: 1.25rem;
}

/* ── Modal / Slide-Up Drawer for Cart & Checkout ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 16, 8, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#cart-drawer-overlay {
  align-items: flex-end;
}

.cart-drawer {
  background: #FFF;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .cart-drawer {
  transform: translateY(0);
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-alt);
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-close {
  background: #FFF;
  border: 1px solid var(--gold-border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

/* Cart Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-alt);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 10px 14px;
  gap: 12px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.cart-item-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--caramel);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-remove-item {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

/* Checkout Form */
.checkout-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 16px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-ar);
  font-size: 0.88rem;
  border: 1.5px solid var(--gold-border);
  border-radius: 12px;
  background: #FFF;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--caramel);
}

/* Payment Selector */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.payment-btn {
  border: 1.5px solid var(--gold-border);
  background: #FFF;
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
}

.payment-btn.active {
  border-color: var(--caramel);
  background: #FBF7F0;
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(139, 94, 52, 0.12);
}

/* Summary Box */
.summary-box {
  background: var(--surface-alt);
  border: 1.5px solid var(--gold-border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-dark);
  border-top: 1.5px dashed var(--gold-border);
  padding-top: 8px;
  margin-top: 8px;
  margin-bottom: 0;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--gold-border);
  background: #FFF;
}

.btn-confirm-order {
  width: 100%;
  background: linear-gradient(135deg, #15803D 0%, #166534 100%);
  color: #FFF;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-confirm-order:active {
  transform: scale(0.98);
}

/* ── Live Order Tracker View ── */
.tracker-view {
  max-width: 600px;
  margin: 16px auto;
  padding: 0 16px;
  display: none;
}

.tracker-card {
  background: #FFF;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.tracker-badge-id {
  display: inline-block;
  background: #F4E8D9;
  color: var(--primary-dark);
  font-family: var(--font-en), monospace;
  font-size: 1.1rem;
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--gold-border);
}

.tracker-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.tracker-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Tracker Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
  margin-bottom: 24px;
  padding: 0 10px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 2;
  transition: all 0.3s;
}

.timeline-step.completed .step-icon {
  background: #DCFCE7;
  border-color: #22C55E;
  color: #15803D;
}

.timeline-step.active .step-icon {
  background: #FEF3C7;
  border-color: #F59E0B;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.2);
  animation: pulse-step 2s infinite;
}

@keyframes pulse-step {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.step-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 21px;
  top: 44px;
  height: calc(100% - 24px);
  width: 2px;
  background: var(--gold-border);
}

.timeline-step.completed:not(:last-child)::after {
  background: #22C55E;
}

/* WhatsApp Button */
.btn-whatsapp-track {
  width: 100%;
  background: #25D366;
  color: #FFF;
  border: none;
  border-radius: 14px;
  padding: 12px;
  font-family: var(--font-ar);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-new-order {
  width: 100%;
  background: var(--surface-alt);
  border: 1.5px solid var(--gold-border);
  color: var(--primary-dark);
  border-radius: 14px;
  padding: 12px;
  font-family: var(--font-ar);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: #1C1008;
  color: #FFF;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════
   ADAM'S KITCHEN — ENHANCED ORDERING & SYSTEMATIC MENU CSS
   ================================================================== */

/* ── Top Order Session Strip ── */
.session-strip {
  background: #FFFDF9;
  border-bottom: 1.5px solid var(--gold-border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(44, 24, 12, 0.04);
}

.session-strip-content {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}

.session-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.session-strip-details {
  display: flex;
  flex-direction: column;
}

.session-strip-mode {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--caramel);
}

.session-strip-dest {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.btn-strip-change {
  background: #FFF;
  border: 1px solid var(--gold-border);
  color: var(--caramel);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-strip-change:hover {
  background: var(--surface-alt);
  border-color: var(--caramel);
}

/* ── Hero Make An Order Button ── */
.btn-hero-order {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, #2A1A0E 0%, #4A2E19 100%);
  color: #FFF;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-family: var(--font-ar);
  font-size: 0.95rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(42, 26, 14, 0.25);
  transition: all 0.25s ease;
}

.btn-hero-order:active {
  transform: scale(0.98);
}

.hero-btn-icon {
  font-size: 1.25rem;
}

.hero-btn-arrow {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* ── "Make an Order" Modal ── */
.setup-modal-card {
  background: #FFFFFF;
  border-radius: 22px;
  width: 92%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 20px 22px 28px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  margin: auto;
  pointer-events: auto;
}

@media (min-width: 600px) {
  .setup-modal-card {
    border-radius: 24px;
    margin: auto;
    max-height: 85vh;
  }
}

.setup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.setup-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setup-logo-badge {
  font-size: 2rem;
  background: var(--surface-alt);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-border);
}

.setup-title-box h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.setup-title-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.setup-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

/* Setup Mode Selector Tabs */
.setup-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.setup-tab-btn {
  background: var(--surface-alt);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
  transition: all 0.2s ease;
  font-family: var(--font-ar);
}

.setup-tab-btn.active {
  background: #FFF;
  border-color: var(--caramel);
  box-shadow: 0 4px 12px rgba(139, 94, 52, 0.15);
}

.setup-tab-btn .tab-icon {
  font-size: 1.4rem;
}

.setup-tab-btn .tab-txt strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.setup-tab-btn .tab-txt small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Form Layout */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-select {
  width: 100%;
  background: #FFF;
  border: 1.5px solid var(--gold-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--font-ar);
  font-size: 0.85rem;
  color: var(--primary-dark);
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--caramel);
}

/* Outside Damietta Notice Box */
.outside-notice-box {
  background: #FFFBEB;
  border: 1.5px solid #F59E0B;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 12px;
}

.notice-badge {
  display: inline-block;
  background: #FEF3C7;
  color: #B45309;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.notice-msg {
  font-size: 0.78rem;
  color: #78350F;
  line-height: 1.45;
}

.scheduled-date-input {
  border-color: #F59E0B !important;
  background: #FFFFFF !important;
  font-weight: 800;
  color: #92400E;
}

.field-hint {
  font-size: 0.7rem;
  color: #92400E;
  display: block;
  margin-top: 4px;
  font-weight: 600;
}

/* Pickup Branch Info Card */
.pickup-info-card {
  background: var(--surface-alt);
  border: 1px dashed var(--gold-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pickup-branch-icon {
  font-size: 2rem;
}

.pickup-branch-details strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary-dark);
}

.pickup-branch-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 2px 0 4px;
}

.pickup-ready-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--success-bg);
  color: var(--success);
  padding: 1px 8px;
  border-radius: 10px;
}

/* Setup Modal Submit Button */
.setup-footer {
  margin-top: 18px;
  border-top: 1px solid var(--gold-border);
  padding-top: 14px;
}

.btn-setup-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--caramel) 0%, #6E4420 100%);
  color: #FFF;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-family: var(--font-ar);
  font-size: 0.95rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 94, 52, 0.3);
  transition: all 0.2s ease;
}

.btn-setup-submit:active {
  transform: scale(0.98);
}

/* ── Systematic Categorized Menu Sections ── */
.menu-category-section {
  margin-bottom: 28px;
}

.cat-section-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-section-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.cat-section-count {
  font-size: 0.72rem;
  background: var(--surface-alt);
  border: 1px solid var(--gold-border);
  color: var(--caramel);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.cat-section-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Inline edit button */
.btn-edit-inline {
  background: none;
  border: none;
  color: var(--caramel);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Checkout Summary Card inside Drawer */
.checkout-summary-card {
  background: var(--surface-alt);
  border: 1.5px solid var(--gold-border);
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.checkout-summary-label {
  color: var(--text-muted);
  font-weight: 600;
}

.checkout-summary-val {
  color: var(--primary-dark);
  font-weight: 800;
}

/* ══════════════════════════════════════════════════════════
   ORDER CONFIRMATION MODAL & SUCCESS MODAL STYLES
   ══════════════════════════════════════════════════════════ */
.confirm-modal-card {
  background: #FFFFFF;
  border-radius: 24px;
  width: 94%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  margin: auto;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
}

.confirm-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--gold-border);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.confirm-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.confirm-header-icon {
  font-size: 2rem;
  background: var(--surface-alt);
  border-radius: 14px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-border);
}

.confirm-header-title h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.confirm-header-title p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.confirm-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.confirm-modal-body {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.confirm-box {
  background: var(--surface-alt);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 12px 14px;
}

.confirm-box-title {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--caramel);
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--gold-border);
  padding-bottom: 5px;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.82rem;
  margin-bottom: 6px;
  gap: 8px;
}

.confirm-row:last-child {
  margin-bottom: 0;
}

.confirm-row span {
  color: var(--text-muted);
  flex-shrink: 0;
}

.confirm-row strong {
  color: var(--primary-dark);
  text-align: left;
  word-break: break-word;
}

.confirm-row.alert-scheduled {
  background: #FEF3C7;
  color: #92400E;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #FCD34D;
  margin-top: 6px;
}

.confirm-row.alert-scheduled span,
.confirm-row.alert-scheduled strong {
  color: #92400E;
}

/* Confirm Items List */
.confirm-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.confirm-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(232, 218, 203, 0.4);
}

.confirm-item-row:last-child {
  border-bottom: none;
}

.confirm-item-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary-dark);
}

.confirm-item-qty {
  background: var(--primary-brand);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
}

.confirm-item-price {
  font-weight: 800;
  color: var(--caramel);
}

/* Total calculation box in confirmation */
.confirm-total-box {
  background: linear-gradient(135deg, #FAF5EE 0%, #F5EDE0 100%);
  border: 1.5px solid var(--gold-border);
  border-radius: 14px;
  padding: 12px 16px;
}

.confirm-calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.confirm-calc-row.discount {
  color: var(--success);
  font-weight: 700;
}

.confirm-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px dashed var(--gold-border);
  padding-top: 8px;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.grand-price {
  font-size: 1.25rem;
  color: #B45309;
  font-weight: 900;
}

/* Footer buttons in confirmation */
.confirm-modal-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-confirm-submit {
  width: 100%;
  background: linear-gradient(135deg, #15803D 0%, #166534 100%);
  color: #FFF;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.3);
  transition: all 0.2s ease;
}

.btn-confirm-submit:hover {
  filter: brightness(1.05);
}

.btn-confirm-submit:active {
  transform: scale(0.98);
}

.btn-confirm-back {
  width: 100%;
  background: #FFF;
  color: var(--text-muted);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-confirm-back:active {
  background: var(--surface-alt);
}

/* ══════════════════════════════════════════════════════════
   SUCCESS MODAL
   ══════════════════════════════════════════════════════════ */
.success-modal-card {
  background: #FFFFFF;
  border-radius: 26px;
  width: 92%;
  max-width: 480px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  margin: auto;
  pointer-events: auto;
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon-wrap {
  font-size: 3.5rem;
  margin-bottom: 10px;
  animation: bounceSoft 1s infinite alternate ease-in-out;
}

@keyframes bounceSoft {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.success-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.success-order-pill {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1.5px solid #FCD34D;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.success-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 10px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-success-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFF;
  border-radius: 14px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-success-wa:active {
  transform: scale(0.98);
}

.btn-success-track {
  background: var(--surface-alt);
  color: var(--primary-dark);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-success-track:active {
  background: #E8DACB;
}
