/* ===================================================
   LUMIÈRE CAFÉ DESIGN SYSTEM & STYLES (کافه لومیر)
   Modern Luxury Espresso & Amber Aesthetics
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --bg-main: #0c0a09;
  --bg-surface: #161412;
  --bg-card: #1f1b18;
  --bg-card-hover: #292420;
  --bg-glass: rgba(22, 20, 18, 0.75);
  --bg-glass-card: rgba(31, 27, 24, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(245, 158, 11, 0.35);

  /* Gold & Caramel Accents */
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-light: #fbbf24;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --accent-copper: #c2410c;

  /* Status Colors */
  --status-pending: #f59e0b;
  --status-preparing: #38bdf8;
  --status-ready: #10b981;
  --status-completed: #64748b;
  --danger: #f43f5e;
  --success: #10b981;

  /* Typography */
  --text-primary: #fcfbf9;
  --text-secondary: #a8a29e;
  --text-muted: #78716c;
  --text-accent: #fbbf24;

  /* Layout & Elevations */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.2);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  font-feature-settings: "ss01" on;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #1f1814 0%, #0c0a09 65%);
  overflow-x: hidden;
  padding-bottom: 100px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #332d29;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Background Atmosphere Glows */
.ambient-glow {
  position: fixed;
  top: -120px;
  right: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
.ambient-glow-2 {
  position: fixed;
  bottom: 100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(194, 65, 12, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* ===================================================
   HEADER & NAVBAR
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
  transition: var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--accent-gold-glow);
  color: #fff;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, var(--accent-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Table Selector Pill */
.table-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--accent-gold-light);
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-xl);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.table-badge-btn:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}
.table-badge-btn .table-icon {
  color: var(--accent-gold);
  flex-shrink: 0;
}
.table-badge-btn .table-chevron {
  opacity: 0.7;
  flex-shrink: 0;
}

.btn-icon-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}
.btn-icon-nav:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-admin-link {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}
.btn-admin-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}

/* ===================================================
   HERO / BANNER SECTION
   =================================================== */
.hero-section {
  padding: 2rem 0 1.25rem;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(38, 29, 23, 0.9), rgba(20, 16, 14, 0.95));
  border: 1px solid var(--border-subtle);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-bg-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  background-image: url('https://images.unsplash.com/photo-1442512595331-e89e73853f31?auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-accent);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 0.6rem;
}
.hero-title span {
  color: var(--accent-gold-light);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Search & Quick Filter Bar */
.search-filter-wrapper {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-icon {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: rgba(12, 10, 9, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 2.8rem 0.85rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}
.search-input:focus {
  border-color: var(--accent-gold);
  background: rgba(18, 15, 13, 0.95);
  box-shadow: 0 0 16px var(--accent-gold-glow);
}
.search-input::placeholder {
  color: var(--text-muted);
}

.order-tracker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.order-tracker-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

/* ===================================================
   CATEGORY NAV TABS (Sticky & Scrollable)
   =================================================== */
.category-nav-wrapper {
  position: sticky;
  top: 69px;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
}

.category-scroll-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.2rem 0;
}
.category-scroll-container::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  user-select: none;
}
.category-pill:hover {
  color: #fff;
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}
.category-pill.active {
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  color: #fff;
  border-color: var(--accent-gold-light);
  box-shadow: 0 4px 16px var(--accent-gold-glow);
}
.category-pill i {
  font-size: 1rem;
}

/* ===================================================
   MENU PRODUCTS GRID
   =================================================== */
.menu-section {
  padding-bottom: 3rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title span.count-pill {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.35rem;
}

/* Product Card */
.product-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #1c1917;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image {
  transform: scale(1.06);
}

.product-overlay-badges {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.badge-tag {
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

.product-time-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(12, 10, 9, 0.8);
  backdrop-filter: blur(6px);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--border-subtle);
}

.product-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-calories {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.2rem;
}

.product-en-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.product-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.product-price-box {
  display: flex;
  flex-direction: column;
}
.price-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold-light);
}
.price-value small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 0.2rem;
}

.btn-add-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  color: var(--accent-gold-light);
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-add-item:hover {
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-gold-glow);
  transform: translateY(-2px);
}

.out-of-stock-badge {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fca5a5;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  grid-column: 1 / -1;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ===================================================
   FLOATING CART BAR (Bottom Navigation)
   =================================================== */
.floating-cart-bar {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 2.5rem);
  max-width: 540px;
  background: rgba(24, 20, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.25rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), var(--shadow-glow);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cart-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.cart-info-col {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.cart-icon-badge-box {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-gold), #92400e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.cart-count-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 20px;
  height: 20px;
  background: #fff;
  color: #92400e;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
}

.cart-summary-text {
  display: flex;
  flex-direction: column;
}
.cart-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.cart-total-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.cart-total-price small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-gold-light);
  margin-right: 0.2rem;
}

.btn-view-cart {
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}
.btn-view-cart:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ===================================================
   MODALS & DRAWERS
   =================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-smooth);
  overflow: hidden;
}
.modal-backdrop.active .modal-content-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.2rem;
}
.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Item Customization Modal Specific */
.custom-product-preview {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.custom-preview-img {
  width: 75px;
  height: 75px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}
.custom-preview-info h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.custom-preview-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.custom-preview-info .preview-price {
  font-size: 1rem;
  color: var(--accent-gold-light);
  font-weight: 800;
  margin-top: 0.3rem;
}

.custom-group {
  margin-bottom: 1.25rem;
}
.custom-group-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.custom-group-title span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.custom-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-fast);
}
.custom-option-label:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}
.custom-option-label.checked {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
}

.custom-option-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  font-weight: 500;
}
.custom-option-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

/* Quantity Adjuster */
.quantity-control {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.btn-qty {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.btn-qty:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-gold-light);
}
.qty-display {
  width: 36px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Cart Drawer Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}
.cart-item-customs {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.cart-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-top: 0.3rem;
}

.cart-controls-col {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-remove-cart {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem;
  transition: var(--transition-fast);
}
.btn-remove-cart:hover {
  color: var(--danger);
}

.cart-table-selector-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--border-accent);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.cart-table-selector-box label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 0.5rem;
}
.table-select-dropdown {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.table-select-dropdown:focus {
  border-color: var(--accent-gold);
}

.cart-note-box textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  resize: none;
  height: 65px;
}
.cart-note-box textarea:focus {
  border-color: var(--accent-gold);
}

.cart-cost-breakdown {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cost-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.cost-row.total-row {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.6rem;
  margin-top: 0.3rem;
}
.cost-row.total-row span:last-child {
  color: var(--accent-gold-light);
}

.btn-primary-action {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  color: #fff;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px var(--accent-gold-glow);
  transition: var(--transition-fast);
}
.btn-primary-action:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}
.btn-primary-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===================================================
   ORDER SUCCESS / RECEIPT & LIVE TRACKER MODAL
   =================================================== */
.receipt-wrapper {
  background: linear-gradient(180deg, #24201c 0%, #171412 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.receipt-success-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--status-ready);
  color: var(--status-ready);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
  animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.receipt-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
}
.receipt-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Giant Order Code Display */
.order-code-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.order-code-banner .label {
  font-size: 0.78rem;
  color: var(--accent-gold-light);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.order-code-banner .code-number {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 20px var(--accent-gold-glow);
  font-family: monospace;
}
.order-code-banner .table-number-tag {
  display: inline-block;
  background: var(--bg-card);
  padding: 0.25rem 0.8rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-top: 0.4rem;
}

/* Live Order Progress Tracker */
.order-tracker-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 1.75rem 0;
  padding: 0 0.5rem;
}
.order-tracker-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}
.timeline-progress-line {
  position: absolute;
  top: 18px;
  right: 20px;
  height: 3px;
  background: var(--accent-gold);
  z-index: 2;
  transition: width 0.5s ease;
}

.step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 70px;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.step-node.active .step-circle {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  color: #fff;
  box-shadow: 0 0 14px var(--accent-gold-glow);
}
.step-node.active .step-label {
  color: var(--accent-gold-light);
  font-weight: 700;
}

.step-node.completed .step-circle {
  background: var(--status-ready);
  border-color: var(--status-ready);
  color: #fff;
}
.step-node.completed .step-label {
  color: #fff;
}

/* Receipt Details List */
.receipt-details-card {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: right;
  margin-top: 1rem;
}
.receipt-item-summary {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border-subtle);
}
.receipt-item-summary:last-child {
  border-bottom: none;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}
.toast-message {
  background: rgba(24, 20, 18, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-accent);
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===================================================
   RESPONSIVE MEDIA QUERIES (Mobile-First Optimization)
   =================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  /* Minimalist compact header on mobile */
  .site-header {
    padding: 0.5rem 0;
  }
  .container {
    padding: 0 0.85rem;
  }
  .brand-wrapper {
    gap: 0.5rem;
  }
  .brand-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .brand-logo-icon svg {
    width: 17px !important;
    height: 17px !important;
  }
  .brand-text h1 {
    font-size: 1.05rem;
    line-height: 1.1;
  }
  .brand-subtitle {
    display: none !important;
  }

  .header-actions {
    gap: 0.4rem;
  }
  .table-badge-btn {
    padding: 0.32rem 0.65rem;
    font-size: 0.78rem;
    gap: 0.3rem;
  }
  .btn-icon-nav {
    width: 34px;
    height: 34px;
  }

  /* Compact Hero on Mobile */
  .hero-section {
    padding: 0.75rem 0 0.4rem;
  }
  .hero-card {
    padding: 1.1rem 0.95rem;
    border-radius: 16px;
    gap: 0.65rem;
  }
  .hero-tag {
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.2rem;
  }
  .hero-title {
    font-size: 1.22rem;
    line-height: 1.35;
    margin-bottom: 0.3rem;
  }
  .hero-subtitle {
    font-size: 0.8rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .search-filter-wrapper {
    margin-top: 0.4rem;
    gap: 0.5rem;
  }
  .search-box {
    min-width: 100%;
  }
  .search-input {
    padding: 0.6rem 2.4rem 0.6rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 10px;
  }
  .order-tracker-btn {
    display: none;
  }

  /* Category pills */
  .category-nav-wrapper {
    top: 50px;
    padding: 0.45rem 0;
    margin-bottom: 0.85rem;
  }
  .category-pill {
    padding: 0.42rem 0.85rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }
  .category-pill svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Products list */
  .menu-section {
    padding-bottom: 5.5rem;
  }
  .section-header-row {
    margin-bottom: 0.8rem;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .product-card {
    border-radius: 16px;
  }
  .product-image-wrap {
    aspect-ratio: 16 / 10;
  }
  .product-body {
    padding: 0.95rem;
  }
  .product-title {
    font-size: 1.05rem;
  }
  .product-desc {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    -webkit-line-clamp: 2;
  }

  /* Floating Cart Bar */
  .floating-cart-bar {
    width: calc(100% - 1.25rem);
    bottom: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-radius: 18px;
  }
  .cart-icon-badge-box {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .cart-label {
    font-size: 0.7rem;
  }
  .cart-total-price {
    font-size: 1rem;
  }
  .btn-view-cart {
    padding: 0.6rem 1.05rem;
    font-size: 0.82rem;
    border-radius: 13px;
  }

  /* Mobile Bottom Sheet Modal Behavior */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal-content-card {
    max-width: 100%;
    border-radius: 22px 22px 0 0;
    max-height: 88vh;
    border-bottom: none;
    transform: translateY(100%);
  }
  .modal-backdrop.active .modal-content-card {
    transform: translateY(0);
  }
  .modal-header {
    padding: 0.95rem 1.15rem;
  }
  .modal-body {
    padding: 1rem 1.15rem;
  }
  .modal-footer {
    padding: 0.85rem 1.15rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }
}

