/* HEADER COMPONENT
   ============================================ */
.header {
  position: relative;
  z-index: var(--z-sticky);
  background: rgba(5, 7, 13, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-md) 0;
}

.header-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.header-logo {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}

.header-logo-main {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}


.restaurant-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transform-origin: center;
  animation: menuLogoFloat 6s ease-in-out infinite;
}

.restaurant-branding {
  display: flex;
  flex-direction: column;
}

.restaurant-name {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.header-logo h1 {
  font-size: var(--font-size-xl);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Call Waiter Button - Header */
.call-waiter-btn-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.call-waiter-btn-header:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5), 0 0 40px rgba(16, 185, 129, 0.15);
}

.call-waiter-btn-header:active {
  transform: translateY(0) scale(0.98);
}

.call-waiter-btn-header svg {
  width: 18px;
  height: 18px;
}

.session-code-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.session-code-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .session-code-btn.mobile-compact {
    padding: 2px 6px !important;
    font-size: 10px !important;
    height: 28px !important;
    border-radius: 8px !important;
    gap: 4px !important;
  }
}

.header-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.table-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.table-badge svg {
  width: 16px;
  height: 16px;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.language-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + var(--space-xs));
  right: 0;
  min-width: 120px;
  background: #020209e6;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: var(--z-above, 999999);
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  color: #2effb5;
  transition: all var(--transition-fast);
}

.language-option:hover,
.language-option.active {
  background: rgb(100 117 236 / 15%);
  color: var(--primary);
}

/* ============================================
   CATEGORY TABS - Client Menu
   ============================================ */
.sticky-nav {
  position: sticky !important;
  position: -webkit-sticky !important;
  top: 0 !important;
  z-index: 110 !important;
  background: rgba(5, 7, 13, 0.82) !important;
  backdrop-filter: blur(20px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
  width: 100% !important;
  margin: 0 0 20px 0 !important;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 5px 0;
  transition: all 0.3s ease;
}

.search-flex {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: var(--space-md) 0;
}

.search-flex .search-container {
  flex: 1;
  margin: 0 !important;
}

.allergy-btn {
  height: 52px;
  padding: 0 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Specific color for dietary */
#dietaryFilterBtn {
  color: var(--success);
}


/* Glassmorphism Category Tabs */
.category-tabs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-sm) 0 !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.category-tab {
  flex-shrink: 0;
  white-space: break-spaces;
  padding: 10px 22px !important;
  border-radius: var(--radius-full) !important;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(129, 140, 248, 0.9)) !important;
  color: white !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
  font-weight: 700;
}

/* Secondary Category Tabs Styling */
.secondary-category-tabs .category-tab {
  padding: 6px 16px !important;
  font-size: 16px;
  background: rgb(255 255 255 / 5%);
  border-color: rgba(255, 255, 255, 0.03) !important;
}

.secondary-category-tabs .category-tab.active {
  background: var(--primary) !important;
  /* Use primary color for sub-tabs to distinguish from accent primary-tabs */
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.waiter-category-tabs.secondary-waiter-category-tabs .waiter-category-tab {
  padding: 6px 14px;
  font-size: 13px;
  opacity: 0.9;
}

.waiter-category-tabs.secondary-waiter-category-tabs .waiter-category-tab.active {
  background: var(--primary);
  color: white;
}

.data-table {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Search Bar Enhancement */
/* Premium Search Bar Enhancement */
.search-container {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px;
  display: flex !important;
  align-items: center;
  padding: 0 16px !important;
  height: 52px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: var(--space-md) 0 !important;
  position: relative;
  z-index: 10;
}

.search-container:focus-within {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), 0 4px 20px rgba(99, 102, 241, 0.1);
}

.search-container input {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  flex: 1;
  padding: 12px !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
  font-size: 15px !important;
  outline: none !important;
  width: 100%;
}

.search-icon {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.search-container:focus-within .search-icon {
  color: var(--accent);
}

/* Consolidated Order Status Card */
.order-status-card.consolidated {
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-xl);
}

.order-status-card.consolidated.collapsed .card-body {
  display: none;
}

.order-status-card.consolidated .status-indicator {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.order-status-card.consolidated .status-indicator.pending {
  background: #f97316;
  box-shadow: 0 0 10px #f97316;
}

.order-status-card.consolidated .status-indicator.preparing {
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
}

.order-status-card.consolidated .status-indicator.delivered {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.status-indicator.payment_requested {
  background: #ec4899;
  box-shadow: 0 0 10px #ec4899;
}

.order-items-summary {
  max-height: 200px;
  overflow-y: auto;
  padding-right: var(--space-sm);
}

.order-status-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--divider);
}

.order-status-item:last-child {
  border-bottom: none;
}

.order-status-card.collapsed .chevron-icon {
  transform: rotate(-90deg);
}

.order-blocks-container {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: var(--space-md);
  padding-right: 4px;
}

.order-blocks-container::-webkit-scrollbar {
  width: 4px;
}

.order-blocks-container::-webkit-scrollbar-track {
  background: transparent;
}

.order-blocks-container::-webkit-scrollbar-thumb {
  background: var(--divider);
  border-radius: 10px;
}

.order-status-block:last-child {
  border-bottom: none !important;
}

.order-status-block .text-muted {
  line-height: 1.4;
  word-break: break-word;
}


/* Blocked Table UI */
#blockedOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
  text-align: center;
  padding: var(--space-xl);
}

.blocked-content {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  animation: scale-in 0.3s ease;
}

.blocked-content svg {
  color: #ef4444;
  filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.5));
}

body.table-blocked {
  overflow: hidden;
}

@keyframes scale-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  padding-bottom: 180px;
  /* Extra space for floating cart - increased from 140px */
}

/* Variation Previews on Cards */
.product-variations-preview {
  margin-top: 8px;
  margin-bottom: 4px;
}

.product-variations-preview span {
  font-size: 0.7rem !important;
  color: var(--text-muted) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  transition: all var(--transition-fast) !important;
}

/* Cart/Order Detail Styling */
.cart-item-note,
.placed-order-item .item-note {
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 4px;
  border-left: 2px solid var(--accent);
}

.cart-item-modifications,
.item-exclusions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.item-exclusion-badge,
.exclusion-badge {
  font-size: 0.7rem;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Variation Selection in Modal */
.variation-item {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.variation-item.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  color: white;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.variation-item.active .variation-check {
  display: block;
}

.variation-check {
  display: none;
  color: var(--primary);
}

.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease,
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

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

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35),
              0 0 30px rgba(99, 102, 241, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: transparent;
  /* Changed from var(--bg-tertiary) to prevent flicker */
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.img-fade-in {
  opacity: 0;
  transition: opacity 0.15s ease-out;
  will-change: opacity;
}

.img-fade-in.img-loaded {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent);
  border-radius: var(--radius-sm);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

/* In-cart quantity badge on product cards */
.product-in-cart-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: var(--radius-full);
  color: white;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Cart item actions wrapper */
.cart-item-actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
}

/* Remove item button in cart */
.btn-remove-item {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  border: 2px solid #ef4444;
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  font-weight: bold;
}

.btn-remove-item:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  border-color: #dc2626;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* Clear all button */
.clear-all-btn {
  margin-bottom: var(--space-md);
}

.product-content {
  padding: var(--space-md);
}

.product-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
  color: #ffffff;
}

.product-description {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.product-price {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
}



/* ============================================

   FLOATING CART
   ============================================ */
.floating-cart {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-fixed);
  width: calc(100% - var(--space-xl));
  max-width: 500px;
}

.cart-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-preview:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.cart-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cart-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: var(--radius-lg);
  color: white;
}

.cart-icon svg {
  width: 24px;
  height: 24px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: var(--radius-full);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

.cart-text h4 {
  font-size: var(--font-size-md);
  margin-bottom: 2px;
}

.cart-text p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.cart-total {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
}

/* Hidden state */
.floating-cart.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(100px);
}

/* ============================================
   CART MODAL / DRAWER
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  max-height: 85vh;
  max-height: 85dvh;
  background: rgba(8, 10, 20, 0.95);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border-radius: 28px 28px 0 0;
  z-index: var(--z-modal);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px;
  padding-top: 28px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  flex-shrink: 0;
  background: var(--bg-secondary);
  min-height: 60px;
  box-sizing: border-box;
}

.cart-modal-header::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.cart-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.cart-modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  border: 2px solid #ef4444;
  border-radius: 50%;
  color: white;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  flex-shrink: 0;
}

.cart-modal-close:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

.cart-modal-body {
  flex: 1 1 auto;
  width: 100%;
  min-height: 100px;
  max-height: 40vh;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.cart-modal-footer {
  width: 100%;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Cart Items */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  background: var(--primary);
}

.qty-btn.remove:hover {
  background: var(--error);
}

.cart-item-qty {
  min-width: 30px;
  text-align: center;
  font-weight: var(--font-weight-semibold);
}

/* Inline Quantity Selector on Product Cards */
.product-qty-selector {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.product-qty-selector .qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  font-weight: bold;
}

.product-qty-selector .qty-btn:hover {
  background: var(--accent) !important;
  color: white !important;
  transform: scale(1.1);
}

.product-qty-selector .qty-text {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--accent);
}

.cart-item-total {
  font-weight: var(--font-weight-bold);
  color: var(--accent);
  font-size: var(--font-size-lg);
  align-self: center;
}

/* Empty Cart */
.cart-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.cart-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.cart-empty-icon svg {
  width: 40px;
  height: 40px;
}

.cart-empty h3 {
  margin-bottom: var(--space-sm);
}

.cart-empty p {
  color: var(--text-muted);
}

/* Cart Summary */
.cart-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-summary-row.total {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  font-size: var(--font-size-lg);
}

.cart-summary-row.total span:last-child {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent);
}

/* ============================================

   CALL WAITER BUTTON
   ============================================ */
.call-waiter-btn {
  position: fixed;
  bottom: 120px;
  right: var(--space-lg);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius-full);
  color: white;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-fixed);
  transition: all var(--transition-fast);
}

.call-waiter-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.call-waiter-btn svg {
  width: 28px;
  height: 28px;
}

.call-waiter-btn.calling {
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(245, 158, 11, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 88vh;
  background: rgba(8, 10, 20, 0.95);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border-radius: 28px 28px 0 0;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: 0 -15px 60px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-modal.active {
  transform: translateY(0);
}

.product-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  padding-top: max(var(--space-sm), env(safe-area-inset-top));
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.product-modal-nav {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-modal-nav:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  transform: scale(1.08);
}

.product-modal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.product-modal-close {
  width: 44px;
  height: 44px;
  border: 2px solid #ef4444;
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.product-modal-close:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

.product-modal-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.product-modal-image {
  width: 100%;
  height: 200px;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

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

.product-modal-content {
  padding: var(--space-lg);
}

.product-modal-name {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.product-modal-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.product-modal-ingredients {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.product-modal-ingredients h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.ingredient-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ingredient-toggle.added {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--success);
  color: #ffffff;
}

.ingredient-toggle.removed {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--error);
  color: var(--error);
  text-decoration: line-through;
}

.item-exclusion {
  color: #ef4444 !important;
  font-weight: 500;
}

.product-modal-note {
  margin-bottom: var(--space-md);
}

.product-modal-note label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.product-modal-note textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  resize: none;
  transition: border-color 0.2s ease;
}

.product-modal-note textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.product-modal-note textarea::placeholder {
  color: var(--text-muted);
}

.product-modal-price {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--accent);
}

.product-modal-footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quantity-selector .qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quantity-selector .qty-btn:hover {
  background: var(--primary);
  color: white;
}

.quantity-selector .qty-value {
  min-width: 40px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--accent);
}

.product-modal-footer .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 50px;
}

.product-modal-footer .add-price {
  font-weight: var(--font-weight-bold);
  opacity: 0.9;
}

.add-to-cart-btn-large {
  flex: 1;
  display: flex;
  gap: var(--space-sm);
  min-height: 52px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
  color: white !important;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.add-to-cart-btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5), 0 0 40px rgba(99, 102, 241, 0.15);
  filter: brightness(1.08);
}

.add-to-cart-btn-large:active {
  transform: translateY(0) scale(0.98);
}


/* Desktop adjustments for product modal */
@media (min-width: 768px) {

  /* Use standard centering for all product-like modals when active */
  .modal.active .product-modal {
    max-width: 500px;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    max-height: 85vh;
    border-radius: var(--radius-xl);
    bottom: auto !important;
    height: auto;
    min-height: 200px;
    display: flex !important;
    /* Ensure it's visible */
  }

  .product-modal-image {
    height: 250px;
  }
}

/* ============================================

   ORDER STATUS CARDS - Client Menu
   ============================================ */
.order-status-card {
  position: relative;
  z-index: 50;
  margin-top: var(--space-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  animation: slideUp 0.3s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
}

.order-status-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.order-status-card .card-body {
  padding: var(--space-md) var(--space-lg);
}

.order-status-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* ============================================

   SPECIAL PRODUCTS SLIDER
   ============================================ */
.special-slider-container {
  width: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: center;
}

.special-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.special-slider-header {
  text-align: center;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
}

.special-slider-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.special-slider-header p {
  font-size: 0.9rem;
}

.special-slides-track {
  display: flex;
  position: relative;
  transform: translateX(0);
  transition: transform 0.4s ease-out;
  touch-action: pan-y;
  z-index: 1;
  /* Flexbox children determine width */
}

.special-slide {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  height: 220px;
  max-height: 220px;
  box-sizing: border-box;
  overflow: hidden;
}

.special-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  border-radius: var(--radius-xl);
  z-index: 0;
}

.special-product-card {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 130px;
  min-width: 100px;
  max-width: 160px;
  height: 180px;
  max-height: 180px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

/* Adaptive sizing based on product count */
.special-slide[data-count="1"] .special-product-card {
  width: 180px;
  max-width: 200px;
}

.special-slide[data-count="2"] .special-product-card {
  width: 160px;
  max-width: 180px;
}

.special-slide[data-count="3"] .special-product-card {
  width: 130px;
  max-width: 150px;
}

.special-slide[data-count="4"] .special-product-card {
  width: 110px;
  max-width: 130px;
}

.special-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.special-product-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
  background: var(--bg-tertiary);
  flex-shrink: 0;
}

.special-product-info {
  padding: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.special-product-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  flex-shrink: 0;
}

.special-product-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.special-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
  min-height: 32px;
}

.special-add-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

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

.special-add-btn svg {
  width: 14px;
  height: 14px;
}

/* Slider Navigation Dots */
.special-slider-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  position: relative;
  z-index: 2;
}

.special-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.special-slider-dot.active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 480px) {
  .special-slides-track {
    gap: 24px;
    /* Space between slides */
  }

  .special-slide {
    gap: var(--space-sm);
    /* Revert internal item spacing */
    padding: var(--space-sm);
    min-height: 180px;
  }

  .special-product-card {
    width: 90px;
    min-width: 80px;
    max-width: 100px;
  }

  .special-slide[data-count="1"] .special-product-card {
    width: 140px;
    max-width: 160px;
  }

  .special-slide[data-count="2"] .special-product-card {
    width: 120px;
    max-width: 140px;
  }

  .special-slide[data-count="3"] .special-product-card,
  .special-slide[data-count="4"] .special-product-card {
    width: 85px;
    max-width: 95px;
  }

  .special-product-image {
    height: 50px;
  }

  .special-product-name {
    font-size: 0.65rem;
  }

  .special-product-price {
    font-size: 0.7rem;
  }

  .special-add-btn {
    padding: 6px 8px;
    font-size: 0.65rem;
    min-height: 28px;
  }

  .special-add-btn svg {
    width: 12px;
    height: 12px;
  }

  .special-slider-header h3 {
    font-size: 1rem;
  }

  .special-slider-header p {
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) {
  .special-product-card {
    width: 150px;
    max-width: 180px;
  }

  .special-product-image {
    height: 85px;
  }

  .special-slide {
    min-height: 220px;
    gap: var(--space-md);
  }

  .special-slide[data-count="4"] .special-product-card {
    width: 140px;
    max-width: 160px;
  }
}

#newCartLabel {
  background: var(--bg-card);
  /* Darker/different than tertiary? */
  background-color: #fca5a5;
  /* Light red to distinguish? User wants distinct color. */
  /* Wait, user said "box they are in". Maybe make it look like a button or header. */
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary-hover);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-top: 0;
  /* Pull up more */
  position: relative;
  z-index: 20;
  /* Higher z-index */
  box-shadow: var(--shadow-md);
  display: block;
  text-align: center;
  font-weight: bold;
}

html,
body {
  overscroll-behavior-y: none;
  /* Removed overflow fix that was breaking sticky nav */
}

/* ============================================

   APP FOOTER
   ============================================ */
.app-footer {
  padding: var(--space-xl) var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  margin-bottom: 100px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link:hover {
  transform: translateY(-4px);
  color: white;
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25), 0 0 30px rgba(99, 102, 241, 0.1);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================

   SPECIAL SLIDER STYLES
   ============================================ */
.special-slider-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  min-height: 200px;
  /* Ensure visibility */
}

.special-slider-header {
  padding: 16px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

/* Slide structure removed here and consolidated below at the end of the file */

.special-product-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  overflow: hidden;
  width: 140px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
}

.special-product-image {
  width: 100%;
  aspect-ratio: 1/1;
  /* Force square */
  object-fit: cover;
  background: #334155;
}

.special-product-info {
  padding: 8px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.special-product-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.special-product-price {
  font-size: 12px;
  color: #f59e0b;
  margin-bottom: 8px;
  font-weight: 700;
}

.special-add-btn {
  width: 100%;
  padding: 6px;
  font-size: 12px;
  background: #6366f1;
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s;
}

.special-add-btn:hover {
  background: #4f46e5;
}

.special-add-btn svg {
  width: 14px;
  height: 14px;
}

.special-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 12px;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.special-slider-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border: none;
  padding: 0;
  transition: all 0.3s;
}


.special-slider-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* FIX: Waiter Cart Clickability Issue */
.waiter-cart-section {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 410px;
  background: rgba(8, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top-left-radius: 16px;
  box-shadow: -4px -4px 20px rgba(99, 102, 241, 0.15);
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.1s ease;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Ensure modal content allows clicks on children if it has lower z-index */
.modal-content {
  overflow: hidden;
  /* sometimes needed, but can be issue if strict */
}

/* FIX: Special Slider Scrolling & Width */
/* Duplicate slider styles removed - consolidated in main slider section above (lines 6231-6537) */

/* ============================================

   SPECIAL SLIDER STYLES (Fixed Alignment)
   ============================================ */
.special-slider-container {
  display: block;
  margin-bottom: 25px;
  width: 100%;
  overflow: hidden;
}

.special-slider-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  /* background handled inline */
}

/* Header inside the wrapper but outside the track */
.special-slider-header {
  padding: 10px 15px 5px;
  margin-bottom: 5px;
}

.special-slider-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.special-slider-header p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.special-slides-track {
  display: flex;
  width: 100%;
  gap: 16px;
  /* FIXED GAP DEFINITION */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  padding-bottom: 2px;
}

.special-slide {
  flex: 0 0 100%;
  /* Takes full width of container */
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.special-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  color: white;
}

.special-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.special-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.special-slider-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;


}

/* ============================================
   Calabria premium menu overrides
   ============================================ */
.header,
.sticky-nav {
  background:
    linear-gradient(180deg, rgba(8, 18, 13, 0.92), rgba(8, 18, 13, 0.76)),
    linear-gradient(90deg, rgba(31, 139, 76, 0.12), transparent 42%, rgba(204, 47, 47, 0.1)) !important;
  border-bottom-color: rgba(246, 239, 225, 0.08);
}

.restaurant-name {
  background: linear-gradient(90deg, #1f8b4c 0%, #f6efe1 46%, #cc2f2f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.theme-selector {
  display: flex;
  align-items: center;
}

.theme-selector .language-btn {
  min-width: 108px;
  justify-content: center;
  font-weight: 700;
}

.call-waiter-btn-header {
  background: linear-gradient(135deg, #1f8b4c 0%, #16683a 100%);
  border-color: rgba(111, 217, 149, 0.24);
}

.product-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(246, 239, 225, 0.06), rgba(246, 239, 225, 0.025)),
    linear-gradient(135deg, color-mix(in srgb, var(--category-accent, #1f8b4c) 14%, transparent), transparent 62%);
  border: 1px solid rgba(246, 239, 225, 0.08);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(246, 239, 225, 0), var(--category-accent, #1f8b4c), rgba(246, 239, 225, 0));
  opacity: 0.95;
  z-index: 2;
}

.product-card[data-preset="pizza"] { --category-accent: #cc2f2f; }
.product-card[data-preset="burger"] { --category-accent: #8b5a2b; }
.product-card[data-preset="gyros"] { --category-accent: #1f8b4c; }
.product-card[data-preset="sandwich"] { --category-accent: #c88a38; }
.product-card[data-preset="drinks"] { --category-accent: #1f8b4c; }
.product-card[data-preset="ice-cream"] { --category-accent: #cc2f2f; }

.product-card:hover {
  border-color: color-mix(in srgb, var(--category-accent, #1f8b4c) 48%, rgba(246, 239, 225, 0.12));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.34),
    0 0 32px color-mix(in srgb, var(--category-accent, #1f8b4c) 14%, transparent);
}

.btn-add,
.special-add-btn,
.variation-item.active,
.variation-chip.active {
  background: linear-gradient(135deg, #1f8b4c 0%, #16683a 100%);
  border-color: rgba(111, 217, 149, 0.26);
  color: #fff;
}

.btn.btn-primary,
.btn-primary {
  background: linear-gradient(135deg, #1f8b4c 0%, #16683a 100%);
  border-color: rgba(111, 217, 149, 0.26);
  box-shadow: 0 12px 28px rgba(31, 139, 76, 0.24);
}

.btn.btn-secondary,
.btn-secondary {
  background: rgba(246, 239, 225, 0.06);
  border-color: rgba(246, 239, 225, 0.1);
  color: #f6efe1;
}

.btn.btn-warning,
.btn-warning {
  background: linear-gradient(135deg, #cc2f2f 0%, #9a1a23 100%);
  border-color: rgba(255, 140, 140, 0.24);
}

.variation-item {
  background: rgba(246, 239, 225, 0.04);
  border-color: rgba(246, 239, 225, 0.08);
}

.variation-item.active .variation-check {
  color: #f6efe1;
}

.ingredient-toggle.added {
  background: rgba(31, 139, 76, 0.18);
  border-color: rgba(111, 217, 149, 0.28);
  color: #f6efe1;
}

.ingredient-toggle.removed {
  background: rgba(204, 47, 47, 0.14);
  border-color: rgba(255, 134, 134, 0.28);
  color: #ffb5b5;
}

.ingredient-toggle.extra-selected {
  box-shadow: 0 0 0 1px rgba(111, 217, 149, 0.2), 0 10px 22px rgba(31, 139, 76, 0.18);
}

.item-extra-badge {
  font-size: 0.7rem;
  background: rgba(31, 139, 76, 0.12);
  color: #bff4d2;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(111, 217, 149, 0.24);
}

.cart-summary-row.total,
.product-modal-price,
.cart-item-total {
  color: #f6efe1;
}

#deliveryFeeRow {
  color: #d7d0bf;
}

#deliveryDetailsModal .premium-form-input {
  width: 100%;
  margin-top: 6px;
}

#deliveryDetailsModal .reservation-form-grid {
  gap: 16px;
}

#deliveryDetailsModal .premium-chip,
#deliveryDetailsModal .premium-secondary-action {
  min-height: 46px;
}

html[data-theme="day"] .header,
html[data-theme="day"] .sticky-nav {
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(255, 247, 238, 0.84)),
    linear-gradient(90deg, rgba(31, 139, 76, 0.08), transparent 42%, rgba(204, 47, 47, 0.06)) !important;
}

html[data-theme="day"] .product-card,
html[data-theme="day"] .cart-item,
html[data-theme="day"] .variation-item,
html[data-theme="day"] #deliveryDetailsModal {
  color: var(--text-primary);
  border-color: rgba(24, 38, 29, 0.09);
}

html[data-theme="day"] .product-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68)),
    linear-gradient(135deg, color-mix(in srgb, var(--category-accent, #1f8b4c) 10%, transparent), transparent 62%);
}

html[data-theme="day"] .ingredient-toggle.added {
  color: #1b3425;
}

@keyframes menuLogoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(1.2deg); }
}
