/* ==========================================================================
   Bistro Deluxe — Mobile First Design System
   ========================================================================== */

:root {
  --bg-dark: #0d0d10;
  --surface-card: #17171c;
  --surface-elevated: #22222a;
  --surface-border: rgba(255, 255, 255, 0.08);
  
  --primary-gold: #f59e0b;
  --primary-gold-hover: #d97706;
  --primary-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-floating: 0 20px 40px -10px rgba(245, 158, 11, 0.25);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

svg {
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.category-pill svg,
.diet-popover-item svg,
.popover-item-icon,
.popover-check-icon,
.trigger-label-left svg,
.trigger-chevron-icon,
.brand-logo svg,
.action-btn svg,
.add-btn svg,
.waiter-actions svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: calc(90px + var(--safe-bottom));
  overflow-x: hidden;
  line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   Header & Restaurant Info
   ========================================================================== */

.app-header {
  background: linear-gradient(180deg, rgba(23, 23, 28, 0.95) 0%, rgba(13, 13, 16, 0.95) 100%);
  backdrop-filter: blur(16px);
  padding: 20px 16px 14px;
  position: relative;
  border-bottom: 1px solid var(--surface-border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  background: var(--primary-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.2);
}

.restaurant-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--primary-gold);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 2px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Waiter Action Buttons */
.waiter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:active {
  transform: scale(0.97);
  background: var(--surface-elevated);
}

.action-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================================================
   Sticky Categories Bar
   ========================================================================== */

.categories-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(13, 13, 16, 0.85);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-border);
}

.categories-scroll {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 12px;
  width: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.category-pill {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  padding: 8px 4px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.category-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-pill.active {
  background: var(--primary-gradient);
  color: #000;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   Main Menu Feed & Food Cards
   ========================================================================== */

.main-content {
  padding: 16px;
}

.category-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 24px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.category-section-title:first-child {
  margin-top: 8px;
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:active {
  transform: scale(0.99);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: var(--surface-elevated);
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.out-of-stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(239, 68, 68, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-weight-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.product-details {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.product-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-gold);
  letter-spacing: -0.01em;
}

/* Stepper / Add Button */
.add-btn {
  background: var(--primary-gradient);
  color: #000;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.add-btn:active {
  transform: scale(0.94);
}

.add-btn.disabled {
  background: var(--surface-elevated);
  color: var(--text-dim);
  box-shadow: none;
  cursor: not-allowed;
}

.cart-stepper {
  display: flex;
  align-items: center;
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--primary-gold);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stepper-btn:active {
  background: rgba(245, 158, 11, 0.15);
}

.stepper-count {
  width: 28px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Skeleton Loading */
.skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-card {
  height: 280px;
  background: linear-gradient(90deg, var(--surface-card) 25%, var(--surface-elevated) 50%, var(--surface-card) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-lg);
  animation: skeletonLoading 1.5s infinite;
}

.skeleton-pill {
  width: 90px;
  height: 38px;
  background: var(--surface-card);
  border-radius: 24px;
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   Floating Sticky Bottom Cart Bar
   ========================================================================== */

.cart-floating-bar {
  position: fixed;
  bottom: calc(16px + var(--safe-bottom));
  left: 16px;
  right: 16px;
  z-index: 100;
  background: var(--primary-gradient);
  color: #000;
  padding: 14px 20px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-floating);
  cursor: pointer;
  transform: translateY(180%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, visibility 0.25s ease;
}

.cart-floating-bar.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cart-floating-bar.bump {
  animation: barBump 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes barBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.cart-bar-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-bar-badge {
  position: relative;
  font-size: 1.4rem;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #000;
  color: var(--primary-gold);
  font-size: 0.72rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-bar-info {
  display: flex;
  flex-direction: column;
}

.cart-label {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-total {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.cart-bar-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
}

/* ==========================================================================
   Cart Modal / Bottom Sheet Drawer
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-sheet {
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  background: var(--surface-card);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
}

.modal-backdrop.active .cart-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 5px;
  background: var(--surface-elevated);
  border-radius: 3px;
  margin: 10px auto 4px;
}

.sheet-header {
  padding: 12px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--surface-border);
}

.sheet-title h2 {
  font-size: 1.2rem;
  font-weight: 800;
}

.sheet-table-tag {
  font-size: 0.8rem;
  color: var(--primary-gold);
  font-weight: 700;
}

.close-btn {
  background: var(--surface-elevated);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cart List Item */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-border);
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary-gold);
  font-weight: 700;
  margin-top: 2px;
}

/* Order Comment Input */
.order-comment-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-comment-section label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.order-comment-section textarea {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 10px 12px;
  resize: none;
  height: 70px;
  outline: none;
}

.order-comment-section textarea:focus {
  border-color: var(--primary-gold);
}

/* Price Breakdown */
.price-breakdown {
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breakdown-row.total-row {
  border-top: 1px solid var(--surface-border);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.total-price {
  color: var(--primary-gold);
}

.sheet-footer {
  padding: 16px 20px calc(16px + var(--safe-bottom));
  border-top: 1px solid var(--surface-border);
}

.checkout-btn {
  width: 100%;
  background: var(--primary-gradient);
  color: #000;
  border: none;
  padding: 16px;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.checkout-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Order Success View Modal
   ========================================================================== */

.success-card {
  width: 90%;
  max-width: 420px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.success-icon-animated {
  font-size: 3.5rem;
  margin-bottom: 12px;
  animation: bounceSuccess 1s ease infinite alternate;
}

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

.success-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 16px;
}

.order-receipt-box {
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.secondary-btn {
  width: 100%;
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   Active Orders Tracker Section (Real-Time Live Status)
   ========================================================================== */

.active-orders-section {
  position: sticky;
  top: 0;
  z-index: 95;
  padding: 14px 16px;
  background: rgba(13, 13, 16, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  max-height: 55vh;
  overflow-y: auto;
}

.active-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.active-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.active-count-badge {
  background: var(--primary-gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.active-orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.active-order-card {
  background: var(--surface-card);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.active-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.active-order-id {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.status-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
}

.status-badge-live.new { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-badge-live.accepted { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-badge-live.cooking { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.status-badge-live.ready { background: rgba(16, 185, 129, 0.25); color: #10b981; border: 1px solid #10b981; animation: readyGlow 1.5s infinite alternate; }

@keyframes readyGlow {
  from { box-shadow: 0 0 5px rgba(16, 185, 129, 0.3); }
  to { box-shadow: 0 0 18px rgba(16, 185, 129, 0.8); }
}

/* Timeline Progress Bar */
.order-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 16px 0 12px;
  padding: 0 4px;
}

.timeline-line-bg {
  position: absolute;
  top: 14px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--surface-elevated);
  z-index: 1;
}

.timeline-line-progress {
  position: absolute;
  top: 14px;
  left: 10px;
  height: 3px;
  background: var(--primary-gradient);
  z-index: 2;
  transition: width 0.4s ease;
}

.timeline-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 2px solid var(--surface-border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.3s ease;
}

.timeline-step.active .step-circle {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  color: #000;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.timeline-step.completed .step-circle {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #000;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-step.active .step-label {
  color: var(--primary-gold);
}

.active-order-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--surface-border);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dismiss-btn {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   Product Detail Modal Preview
   ========================================================================== */

.product-modal-card {
  width: 90%;
  max-width: 440px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.product-modal-image-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  background: var(--surface-elevated);
}

.product-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.product-modal-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-modal-category {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.product-modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.product-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 12px;
}

.product-modal-weight {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface-elevated);
  padding: 4px 10px;
  border-radius: 6px;
}

.product-modal-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-gold);
}

/* Toast Container */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}

.toast {
  background: rgba(34, 34, 42, 0.95);
  border: 1px solid var(--primary-gold);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.hidden { display: none !important; }

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Dietary Filters Dropdown Select (Halal, Vegan, Spicy, Non-Alcoholic)
   ========================================================================== */

.diet-filter-nav {
  padding: 10px 16px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--surface-border);
}

.diet-select-wrapper {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 46px !important;
  background: #17171c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.diet-select-wrapper:hover,
.diet-select-wrapper:focus-within {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15) !important;
}

.diet-icon-funnel {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  color: #f59e0b !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.diet-native-select {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #fbbf24 !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  margin: 0 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.diet-native-select option {
  background-color: #17171c !important;
  color: #ffffff !important;
  padding: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.diet-icon-chevron {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 14px !important;
  height: 14px !important;
  color: #f59e0b !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Dietary Badge Pills on Dish Cards */
.diet-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.diet-tag-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
}

.diet-tag-badge.halal {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.diet-tag-badge.vegan {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
}

.diet-tag-badge.spicy {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
}

.diet-tag-badge.drink {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.25);
}

/* ==========================================================================
   Product Modal Exclusions & Upsell Recommendations
   ========================================================================== */

.product-modal-allergies {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 4px;
}

.allergies-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 8px;
}

.ingredients-checkboxes-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ingredient-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.ingredient-checkbox-item input[type="checkbox"] {
  accent-color: var(--primary-gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Cart Excluded Text */
.cart-item-excluded {
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 3px;
  font-weight: 600;
}

/* Upsell Recommendations Section */
.modal-recommendations-section {
  margin-top: 10px;
  border-top: 1px dashed var(--surface-border);
  padding-top: 12px;
}

.recommendations-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recommended-products-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.recommended-products-scroll::-webkit-scrollbar {
  display: none;
}

.recommended-dish-card {
  flex: 0 0 130px;
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recommended-dish-img {
  width: 100%;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.recommended-dish-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommended-dish-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.recommended-dish-price {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-gold);
}

.recommended-add-btn {
  background: var(--primary-gradient);
  border: none;
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
}

