* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #15a8a4;
  --primary-dark: #128a87;
  --secondary: #ff6b6b;
  --text: #1a1a1a;
  --text-light: #666;
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f0fdfd 0%, #e8f9f9 25%, #ffffff 50%, #f5fafb 75%, #f0fdfd 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Subtle pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(21, 168, 164, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(21, 168, 164, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 50%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header */
/* Combined Header Section */
.header-section {
  position: sticky;
  top: 0;
  z-index: 98;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: visible;
}

.header {
  background: linear-gradient(135deg, #15a8a4 0%, #128a87 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: none;
  position: relative;
  z-index: 1001;
  overflow: visible;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1001;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.user-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.user-dropdown {
  position: fixed;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10000;
  overflow: hidden;
}

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

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.user-dropdown-item:last-child {
  border-bottom: none;
}

.user-dropdown-item:hover {
  background: var(--bg);
  color: var(--primary);
}

.back-btn, .cart-btn, .my-orders-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.625rem;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.back-btn:hover, .cart-btn:hover, .my-orders-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cart-btn {
  position: relative;
}

.my-orders-btn {
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
}

.my-orders-text {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .my-orders-text {
    display: none;
  }
  
  .my-orders-btn {
    padding: 0.625rem;
    min-width: 44px;
  }
  
  .header-content {
    padding: 0.75rem 1rem !important;
  }
  
  .category-tabs-container {
    padding: 0.75rem 1rem !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }
  
  /* First line: Filter icon, search bar, and controls */
  .filter-icon-btn {
    order: 1 !important;
    flex-shrink: 0 !important;
  }
  
  .search-container {
    max-width: none !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    order: 2 !important;
    min-width: 200px !important;
  }
  
  .search-input {
    font-size: 1rem !important;
    padding: 1rem 3rem 1rem 1.25rem !important;
    min-height: 48px !important;
    border-width: 2px !important;
    width: 100% !important;
  }
  
  .search-input::placeholder {
    font-size: 1rem !important;
    opacity: 0.7 !important;
  }
  
  .search-clear {
    right: 0.75rem !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0.5rem !important;
  }
  
  .menu-customization-controls {
    gap: 0.5rem !important;
    order: 3 !important;
    flex-shrink: 0 !important;
  }
  
  /* Second line: Category tabs - full width */
  .category-tabs {
    order: 4 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid var(--border) !important;
  }
  
  .customization-btn {
    min-width: 40px !important;
    height: 40px !important;
    padding: 0.5rem !important;
  }
  
  /* Hide cart summary pop-up on mobile */
  .cart-summary {
    display: none !important;
  }
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--secondary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255,107,107,0.4);
  border: 2px solid white;
  animation: cartBounce 0.4s ease;
}

@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Search Bar */
.search-bar-container {
  background: linear-gradient(135deg, #128a87 0%, #0f7a77 100%);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  flex: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  background: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.search-icon {
  color: var(--text-light);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--text);
}

.search-bar input::placeholder {
  color: #999;
}

.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.search-clear:hover {
  background: #f0f0f0;
  color: var(--text);
}

/* Dietary Filters */
.dietary-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 0;
  max-width: 600px;
  margin: 0 auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dietary-filters::-webkit-scrollbar {
  display: none;
}

.dietary-filter-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.dietary-filter-btn:hover {
  background: white;
  transform: translateY(-1px);
}

.dietary-filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Enhanced Search Container */
.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
  margin: 0 0.5rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 24px;
  font-size: 0.9375rem;
  background: var(--white);
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 168, 164, 0.1);
}

.search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.search-clear:hover {
  background: var(--bg);
  color: var(--text);
}

.search-autocomplete {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  padding: 0.5rem 0;
}

@media (max-width: 767px) {
  .search-autocomplete {
    max-height: calc(100vh - 300px) !important;
    max-height: 40vh !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
    z-index: 2000 !important;
    border-radius: 12px !important;
    border: 2px solid var(--primary) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }
  
  .search-container {
    position: relative !important;
  }
  
  .autocomplete-label {
    font-size: 0.8125rem !important;
    padding: 0.75rem 1rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    background: rgba(21, 168, 164, 0.05) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
  }
  
  .autocomplete-item {
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    -webkit-tap-highlight-color: rgba(21, 168, 164, 0.1) !important;
  }
  
  .autocomplete-item:active {
    background: rgba(21, 168, 164, 0.15) !important;
  }
  
  .autocomplete-icon {
    font-size: 1.25rem !important;
    width: 24px !important;
  }
}

.autocomplete-section {
  padding: 0.5rem 0;
}

.autocomplete-label {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9375rem;
}

.autocomplete-item:hover {
  background: var(--bg);
}

.autocomplete-icon {
  font-size: 1.125rem;
  width: 20px;
  text-align: center;
}

/* Menu Customization Controls */
.menu-customization-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.customization-btn {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  min-width: 36px;
  height: 36px;
}

.customization-btn:hover {
  border-color: var(--primary);
  background: rgba(21, 168, 164, 0.05);
}

.customization-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Sort Menu Dropdown */
.sort-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  min-width: 200px;
  padding: 0.5rem 0;
  display: none;
}

.sort-menu[style*="block"] {
  display: block !important;
}

.sort-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9375rem;
  color: var(--text);
}

.sort-menu-item:hover {
  background: var(--bg);
}

.sort-menu-item.active {
  background: rgba(21, 168, 164, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.sort-menu-item.active::after {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  margin-left: 0.5rem;
}

/* Price Filter Menu */
.price-filter-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  min-width: 150px;
  padding: 0.5rem 0;
  display: none;
}

.price-filter-menu[style*="block"] {
  display: block !important;
}

.price-filter-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9375rem;
  color: var(--text);
}

.price-filter-item:hover {
  background: var(--bg);
}

.price-filter-item.active {
  background: rgba(21, 168, 164, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.price-filter-item.active::after {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  margin-left: 0.5rem;
  float: right;
}

/* List View Styles */
.menu-list-view .menu-grid-items,
.menu-list-view .featured-items-grid,
.menu-list-view .menu-items-horizontal,
.menu-list-view .menu-items-two-rows {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

.menu-list-view .menu-items-two-rows .menu-items-horizontal {
  display: flex !important;
  flex-direction: column !important;
}

.menu-list-view .menu-item,
.menu-list-view .featured-item {
  display: flex !important;
  flex-direction: row !important;
  max-width: 100% !important;
  width: 100% !important;
  align-items: stretch !important;
}

.menu-list-view .menu-item-image-container,
.menu-list-view .featured-item-image-container {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  align-self: stretch !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  align-items: stretch !important;
}

.menu-list-view .menu-item-image,
.menu-list-view .featured-item-image {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  flex-shrink: 0 !important;
  align-self: stretch !important;
}

.menu-list-view .menu-item-content,
.menu-list-view .featured-item-content {
  flex: 1 !important;
  padding: 0.75rem 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.125rem !important;
  min-height: 0 !important;
  justify-content: flex-start !important;
}

.menu-list-view .menu-item-content > div:first-child,
.menu-list-view .featured-item-content > div:first-child {
  flex: 0 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.menu-list-view .menu-item-name,
.menu-list-view .featured-item-name,
.menu-list-view .menu-item .menu-item-name,
.menu-list-view .menu-item .featured-item-name {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  margin-bottom: 0.25rem !important;
  line-height: 1.3 !important;
}

.menu-list-view .menu-item-description,
.menu-list-view .featured-item-description,
.menu-list-view .menu-item .menu-item-description,
.menu-list-view .menu-item .featured-item-description {
  font-size: 0.8125rem !important;
  color: var(--text-light) !important;
  margin-bottom: 0.125rem !important;
  line-height: 1.4 !important;
  -webkit-line-clamp: 2 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  flex: 0 1 auto !important;
}

.menu-list-view .featured-item-footer,
.menu-list-view .menu-item .featured-item-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 0 !important;
  flex-shrink: 0 !important;
}

.menu-list-view .menu-item-price,
.menu-list-view .featured-item-price,
.menu-list-view .menu-item .menu-item-price,
.menu-list-view .menu-item .featured-item-price {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-top: 0 !important;
}

.menu-list-view .add-to-cart-btn,
.menu-list-view .add-btn-featured {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Filter Icon Button */
.filter-icon-btn {
  position: relative;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.625rem;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.filter-icon-btn:hover {
  border-color: var(--primary);
  background: rgba(21, 168, 164, 0.05);
  transform: translateY(-1px);
}

.filter-icon-btn:active {
  transform: scale(0.95);
}

.filter-icon-btn svg {
  width: 20px;
  height: 20px;
}

.filter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--secondary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255,107,107,0.4);
  border: 2px solid white;
}

/* Filter Modal */
.filter-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.filter-modal.active {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.filter-modal-content {
  background: white;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}

.filter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.filter-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.filter-modal-close:hover {
  background: #f0f0f0;
  color: var(--text);
}

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

/* Filter Search Section */
.filter-search-section {
  margin-bottom: 2rem;
}

.filter-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  transition: all 0.2s;
}

.filter-search-bar:focus-within {
  border-color: var(--primary);
  background: white;
}

.filter-search-bar .search-icon {
  color: var(--text-light);
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.filter-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
}

.filter-search-bar input::placeholder {
  color: #999;
}

.search-clear-modal {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  margin-left: 0.5rem;
}

.search-clear-modal:hover {
  background: #f0f0f0;
  color: var(--text);
}

/* Filter Options Section */
.filter-favorites-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-favorites-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-favorites-list {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.filter-favorites-list::-webkit-scrollbar {
  width: 6px;
}

.filter-favorites-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.filter-favorites-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.filter-favorite-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}

.filter-favorite-item:hover {
  background: #f0f0f0;
  border-color: var(--primary);
  transform: translateX(4px);
}

.filter-favorite-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.filter-favorite-info {
  flex: 1;
  min-width: 0;
}

.filter-favorite-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-favorite-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

.filter-favorite-remove {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.filter-favorite-remove:hover {
  background: #ffebee;
  color: #e53935;
}

.filter-options-section {
  margin-bottom: 2rem;
}

.filter-options-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.filter-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.filter-option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.filter-option-btn:hover {
  background: #f0f0f0;
  border-color: var(--primary);
}

.filter-option-btn.active {
  background: rgba(21, 168, 164, 0.1);
  border-color: var(--primary);
}

.filter-option-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.filter-option-label {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
}

.filter-check {
  width: 20px;
  height: 20px;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s;
}

.filter-option-btn.active .filter-check {
  opacity: 1;
}

/* Filter Modal Footer */
.filter-modal-footer {
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: white;
  margin-top: auto;
}

.filter-clear-btn,
.filter-apply-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-clear-btn {
  background: var(--bg);
  color: var(--text);
}

.filter-clear-btn:hover {
  background: #e0e0e0;
}

.filter-apply-btn {
  background: var(--primary);
  color: white;
}

.filter-apply-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 168, 164, 0.3);
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .category-tabs-container {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  
  .filter-icon-btn {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
  }
  
  .filter-modal-content {
    max-height: 90vh;
  }
  
  .filter-modal-header {
    padding: 1.25rem;
  }
  
  .filter-modal-header h2 {
    font-size: 1.25rem;
  }
  
  .filter-modal-body {
    padding: 1.25rem;
  }
  
  .filter-option-btn {
    padding: 0.875rem;
  }
  
  .filter-option-icon {
    font-size: 1.25rem;
    width: 36px;
  }
}

.dietary-filter-btn.active:hover {
  background: var(--primary-dark);
}

/* Pickup Time Estimate */
.cart-pickup-time {
  margin-bottom: 1rem;
}

.pickup-time-estimate {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #e8f5f4 0%, #d4edeb 100%);
  border-radius: 12px;
  border: 1px solid var(--primary);
  text-align: center;
}

.pickup-time-estimate.busy {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-color: #ff9800;
}

.pickup-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.pickup-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.pickup-time-estimate.busy .pickup-text {
  color: #e65100;
}

.orders-ahead {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Floating cart summary pickup time */
.cart-summary-pickup {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 2px;
}

/* Checkout page pickup time */
.checkout-pickup-time {
  background: linear-gradient(135deg, #e8f5f4 0%, #d4edeb 100%);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: center;
}

.checkout-pickup-time.busy {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-color: #ff9800;
}

.checkout-pickup-time h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.checkout-pickup-time .time {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.checkout-pickup-time.busy .time {
  color: #e65100;
}

.checkout-pickup-time .orders-info {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Confirmation page pickup time */
.confirmation-pickup {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 16px;
  margin: 1.5rem 0;
  text-align: center;
  box-shadow: 0 4px 15px rgba(21, 168, 164, 0.3);
}

.confirmation-pickup h3 {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.confirmation-pickup .time {
  font-size: 2.5rem;
  font-weight: 800;
}

.confirmation-pickup .ready-by {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* Item Badges */
.item-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-popular {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(255,107,107,0.3);
}

.badge-new {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(168,85,247,0.3);
}

.badge-vegan {
  background: #22c55e;
  color: white;
}

.badge-gf {
  background: #eab308;
  color: white;
}

.badge-df {
  background: #3b82f6;
  color: white;
}

/* Search Results Highlight */
.search-results-header {
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-results-header h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.search-results-count {
  color: var(--text-light);
  font-size: 0.9rem;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.no-results svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Badges on Image */
.image-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
}

.image-badges .item-badges {
  margin-bottom: 0;
}

/* Search Results Grid */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1rem 1.5rem;
}

@media (max-width: 1024px) {
  .menu-items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .menu-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .category-tabs-container {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  
  .category-tabs {
    gap: 0.375rem;
  }
  
  .search-results-header {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .search-results-header h3 {
    font-size: 0.9rem;
  }
  
  .image-badges .badge {
    font-size: 0.55rem;
    padding: 2px 6px;
  }
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1;
  justify-content: center;
}

.header-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  flex-shrink: 0;
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}

.header-title h1 {
  font-size: 1.375rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
  margin: 0;
  line-height: 1.2;
}

.header-title p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
  margin: 0;
  line-height: 1.3;
}

/* Category Tabs */
.category-tabs-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 0.625rem 1.25rem;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  color: var(--text);
}

.category-tab:hover {
  border-color: var(--primary);
}

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

/* Desktop: Teal and bold category tabs */
@media (min-width: 768px) {
  .category-tab {
    color: var(--primary);
    font-weight: 700;
    border-color: rgba(21, 168, 164, 0.2);
  }
  
  .category-tab:hover {
    border-color: var(--primary);
    background: rgba(21, 168, 164, 0.05);
  }
  
  .category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 700;
  }
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 120px;
  position: relative;
  z-index: 1;
}

/* Featured Items Section (Uber Eats style) */
.featured-section {
  margin-bottom: 3rem;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding: 0;
}

.featured-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.featured-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  align-items: stretch;
}

.featured-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.featured-item-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: stretch;
  min-height: 0;
  flex-shrink: 0;
  flex-grow: 0;
}

.featured-item-image-container .favorite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

.featured-item-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
  flex-shrink: 0;
  align-self: stretch;
}

.featured-item:hover .featured-item-image {
  transform: scale(1.05);
}

.featured-item-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.featured-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.featured-item-description {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 1 auto;
  min-height: 0;
}

.featured-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.featured-item-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.add-btn-featured {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 44px;
  height: 44px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.add-btn-featured:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.add-to-cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Menu Grid */
.menu-section {
  margin-bottom: 3rem;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.subcategory-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.menu-grid-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* Desktop: Enhanced Grid Layout (Uber Eats style) */
@media (min-width: 768px) {
  .menu-grid {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .menu-items-horizontal {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem !important;
    overflow: visible !important;
  }
  
  .menu-items-two-rows {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem !important;
  }
  
  .menu-items-two-rows .menu-items-horizontal {
    display: contents !important;
  }
  
  .menu-item-image-container {
    aspect-ratio: 1 / 1 !important;
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
    background: #f0f0f0 !important;
    display: flex !important;
    align-items: stretch !important;
    min-height: 0 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }
  
  .menu-item-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
  }
  
  .menu-item:hover .menu-item-image {
    transform: scale(1.05) !important;
  }
  
  .menu-item-content {
    padding: 1rem !important;
  }
  
  .menu-item-name {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
  }
  
  .menu-item-description {
    font-size: 0.875rem !important;
    color: var(--text-light) !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  
  .menu-item-price {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
  }
  
  .add-to-cart-btn {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    min-width: 44px !important;
    height: 44px !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  }
}

/* Mobile: Use grid layout like featured items */
@media (max-width: 767px) {
  .menu-items-horizontal {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    overflow: visible !important;
  }
  
  .menu-items-two-rows {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  .menu-items-two-rows .menu-items-horizontal {
    display: contents !important;
  }
  
  .menu-items-horizontal .menu-item {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Desktop: Hide mobile modal elements and dropdown arrows */
@media (min-width: 768px) {
  .subcategory-modal-overlay,
  .subcategory-modal {
    display: none !important;
  }

  .subcategory-modal-overlay.open,
  .subcategory-modal.open {
    display: none !important;
  }

  .category-tab.has-subcategories::after {
    display: none;
  }
}

.menu-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  align-items: stretch;
  z-index: 1;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--border);
}

.menu-item-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: stretch;
  min-height: 0;
  flex-shrink: 0;
  flex-grow: 0;
}

.menu-item-image-container .favorite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

.menu-item-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
  flex-shrink: 0;
  align-self: stretch;
}

.menu-item:hover .menu-item-image {
  transform: scale(1.05);
}

/* Desktop: Show + button on image overlay - Match featured items exactly */
.add-to-cart-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 44px;
  height: 44px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  width: auto;
}

/* Favorite Button */
.favorite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.favorite-btn:hover {
  transform: scale(1.1);
  background: white;
}

.favorite-btn.active {
  background: rgba(21, 168, 164, 0.1);
}

.favorite-btn.active svg {
  fill: var(--primary);
  stroke: var(--primary);
}

/* Favorites Section */
.favorites-section {
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 2px dashed #ff6b6b;
}

.favorites-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.favorites-header h3 {
  color: #ff6b6b;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.favorites-header span {
  font-size: 1.25rem;
}

.favorites-items {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.favorites-items::-webkit-scrollbar {
  height: 4px;
}

.favorites-items::-webkit-scrollbar-thumb {
  background: #ff6b6b;
  border-radius: 4px;
}

.favorites-items .menu-item {
  min-width: 160px;
  max-width: 160px;
  scroll-snap-align: start;
}

.menu-item-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Ensure menu items with featured-item-footer have same spacing as featured items */
.menu-item-content .featured-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.menu-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-item-description {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 1 auto;
  min-height: 0;
}

/* Ensure menu items match featured items exactly */
.menu-item .menu-item-content,
.menu-item .featured-item-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.menu-item .menu-item-content > div:first-child,
.menu-item .featured-item-content > div:first-child {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
}

.menu-item .featured-item-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Ensure menu item text elements match featured items exactly */
.menu-item .menu-item-name,
.menu-item .featured-item-name {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.3 !important;
}

.menu-item .menu-item-description,
.menu-item .featured-item-description {
  font-size: 0.875rem !important;
  color: var(--text-light) !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  flex: 0 1 auto !important;
  min-height: 0 !important;
}

.menu-item .menu-item-price,
.menu-item .featured-item-price {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
}

/* Ensure content container has no gap that would add extra spacing */
.menu-item .menu-item-content,
.menu-item .featured-item-content {
  gap: 0 !important;
}

/* Ensure first div wrapper doesn't add extra spacing */
.menu-item .menu-item-content > div:first-child,
.menu-item .featured-item-content > div:first-child {
  gap: 0 !important;
  margin-bottom: 0 !important;
}

.menu-item-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.add-to-cart-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 44px;
  height: 44px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.add-to-cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

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

.add-to-cart-btn.added {
  background: #10b981;
  animation: btnSuccess 0.6s ease;
}

@keyframes btnSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Cart Summary (Floating) - Completely Hidden */
.cart-summary {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  z-index: -1 !important;
}

.cart-summary-content {
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px rgba(21,168,164,0.3);
}

.cart-summary-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-summary-items {
  font-size: 0.875rem;
  opacity: 0.9;
}

.cart-summary-total {
  font-size: 1.5rem;
  font-weight: 700;
}

.checkout-btn {
  background: white;
  color: var(--primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.checkout-btn:hover {
  transform: scale(1.05);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 200;
  transition: right 0.3s ease;
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.close-cart {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.close-cart:hover {
  background: var(--bg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  min-height: 0;
  max-height: 100%;
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-light);
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: #e0e0e0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-options {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

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

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.quantity-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 1.25rem;
  color: var(--primary);
}

.quantity-btn:hover {
  background: var(--bg);
}

.quantity {
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}

.cart-totals {
  margin-bottom: 1rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}

.cart-total-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
  margin-top: 0.5rem;
}

.checkout-btn-full {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.checkout-btn-full:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

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

.skeleton-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 1.25rem;
}

.skeleton-image {
  width: 100%;
  height: 180px;
  margin-bottom: 1rem;
}

.skeleton-text {
  height: 20px;
  margin-bottom: 0.5rem;
}

.skeleton-text.short {
  width: 60%;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.btn-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Responsive Design - Tablet and Mobile */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .menu-section {
    margin-bottom: 2.5rem;
  }

  .subcategory-title {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
  }

  .menu-grid-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .menu-item-image {
    height: 180px;
  }

  .menu-item-content {
    padding: 1rem;
  }

  .cart-sidebar {
    max-width: 420px;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  .header-content {
    padding: 0.75rem 1rem;
  }

  .back-btn, .cart-btn {
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
  }

  .header-title h1 {
    font-size: 1.125rem;
  }

  .header-title p {
    font-size: 0.7rem;
  }

  .category-tabs {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .category-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .main-content {
    padding: 0.5rem;
    padding-bottom: 100px;
  }

  .menu-section {
    margin-bottom: 2rem;
  }

  .subcategory-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .menu-grid-items,
  .menu-items-horizontal {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    display: grid;
  }

  .menu-item-image-container {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: stretch;
    min-height: 0;
    overflow: hidden;
  }

  .menu-item-image {
    height: 100%;
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
    align-self: stretch;
  }

  .menu-item-content {
    padding: 0.75rem;
  }

  .menu-item-name {
    font-size: 0.875rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
  }

  .menu-item-price {
    font-size: 0.875rem;
    font-weight: 700;
  }
  
  .subcategory-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
  }

  .cart-summary {
    display: none !important;
  }

  .cart-summary-content {
    padding: 0.875rem 1rem;
    border-radius: 12px;
  }

  .cart-summary-total {
    font-size: 1.25rem;
  }

  .checkout-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .cart-sidebar {
    max-width: 100%;
  }

  .cart-item {
    padding: 0.875rem;
  }

  .cart-item-image {
    width: 70px;
    height: 70px;
  }

  .modal-content {
    max-width: 95%;
    margin: 1rem;
  }
}

/* PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #15a8a4, #128a87);
  color: white;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 10000;
  animation: slideUp 0.3s ease-out;
}

.pwa-install-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.pwa-install-text strong {
  font-size: 1rem;
  font-weight: 700;
}

.pwa-install-text span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pwa-install-btn {
  background: white;
  color: #15a8a4;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pwa-install-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.pwa-dismiss-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

.pwa-dismiss-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* iOS Install Instructions */
.ios-install-instructions {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ios-install-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.ios-install-content h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.ios-install-content ol {
  text-align: left;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.ios-install-content li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--text);
}

.ios-install-content button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s;
}

.ios-install-content button:hover {
  background: var(--primary-dark);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .featured-section {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .featured-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .featured-item-name {
    font-size: 0.9rem;
  }
  
  .featured-item-description {
    font-size: 0.8rem;
    -webkit-line-clamp: 1;
  }
  
  .featured-item-price {
    font-size: 1rem;
  }
  
  .add-btn-featured {
    padding: 0.5rem 1rem !important;
    font-size: 1.5rem !important;
    min-width: 44px !important;
    height: 44px !important;
    bottom: 12px !important;
    right: 12px !important;
  }
  
  .add-to-cart-btn {
    padding: 0.5rem 1rem !important;
    font-size: 1.5rem !important;
    min-width: 44px !important;
    height: 44px !important;
    bottom: 12px !important;
    right: 12px !important;
  }
  
  .menu-section {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }
  
  .subcategory-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .pwa-install-banner {
    padding: 1rem;
  }
  
  .pwa-install-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .pwa-install-actions {
    justify-content: space-between;
  }
  
  .pwa-install-btn {
    flex: 1;
  }
}

/* Mobile (480px and below) - DoorDash Style */
/* Mobile - Extended breakpoint for modern phones */
@media (max-width: 767px) {
  .header-content {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }
  
  .header-logo {
    width: 36px;
    height: 36px;
  }

  .header-title h1 {
    font-size: 1.125rem;
  }

  .header-title p {
    font-size: 0.7rem;
  }

  .back-btn, .cart-btn {
    padding: 0.4rem;
  }

  .main-content {
    padding: 0.75rem;
    padding-bottom: 100px;
    background: #fff;
  }

  .menu-section {
    margin-bottom: 1.5rem;
  }

  /* Category Tabs - Compact for mobile */
  .category-tabs-container {
    padding: 8px 12px !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }
  
  /* First line: Filter icon, search bar, and controls */
  .filter-icon-btn {
    order: 1 !important;
    flex-shrink: 0 !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 4px !important;
  }
  
  .search-container {
    order: 2 !important;
    flex: 1 1 0 !important;
    min-width: 100px !important;
    max-width: none !important;
  }
  
  .search-input {
    font-size: 0.875rem !important;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem !important;
    min-height: 32px !important;
  }
  
  .menu-customization-controls {
    order: 3 !important;
    flex-shrink: 0 !important;
    gap: 0.25rem !important;
  }
  
  .customization-btn {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0.375rem !important;
  }
  
  /* Second line: Category tabs - full width */
  .category-tabs {
    order: 4 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid var(--border) !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .filter-icon-btn {
    min-width: 36px !important;
    height: 36px !important;
    padding: 6px !important;
    flex-shrink: 0 !important;
  }

  .category-tab-wrapper {
    position: relative;
    flex-shrink: 0;
  }

  .category-tab {
    padding: 6px 12px !important;
    font-size: 13px !important;
    border-radius: 16px !important;
    border-width: 1px !important;
    min-height: auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
  }
  
  .category-tab.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
  }

  .category-tab.has-subcategories::after {
    content: '▼';
    font-size: 8px !important;
    margin-left: 4px !important;
    opacity: 0.7;
  }

  /* Subcategory Modal Dropdown */
  .subcategory-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
  }

  .subcategory-modal-overlay.open {
    display: block;
  }

  .subcategory-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    width: 85%;
    max-width: 320px;
    max-height: 70vh;
    overflow: hidden;
    z-index: 9999;
  }

  .subcategory-modal.open {
    display: block;
  }

  .subcategory-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
  }

  .subcategory-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #191919;
  }

  .subcategory-modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }

  .subcategory-modal-list {
    overflow-y: auto;
    max-height: calc(70vh - 60px);
  }

  .subcategory-modal-item {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #191919;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
  }

  .subcategory-modal-item:last-child {
    border-bottom: none;
  }

  .subcategory-modal-item:hover,
  .subcategory-modal-item:active {
    background: #f5f5f5;
  }

  .subcategory-modal-item.active {
    color: #15a8a4;
    font-weight: 600;
  }

  /* Legacy dropdown - hide on mobile */
  .subcategory-dropdown {
    display: none !important;
  }

  .subcategory-title {
    font-size: 12px !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    padding: 0 1rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    border-bottom: none !important;
    background: transparent !important;
    display: block !important;
  }

  .menu-section {
    margin-bottom: 16px !important;
    padding: 0 1rem !important;
  }

  .menu-grid {
    padding: 1rem 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Ensure list view containers take full width */
  .menu-list-view .menu-grid {
    padding: 1rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* List View on Mobile - Full Width Items - MUST override grid view rules */
  .menu-list-view .menu-items-horizontal,
  .menu-list-view .menu-items-two-rows {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0.75rem !important;
  }

  .menu-list-view .menu-item,
  .menu-list-view .featured-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    margin-bottom: 0.75rem !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    display: flex !important;
  }

  .menu-list-view .menu-item:last-child,
  .menu-list-view .featured-item:last-child {
    margin-bottom: 0 !important;
  }

  .menu-list-view .menu-item-image-container,
  .menu-list-view .featured-item-image-container {
    width: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    max-width: 100px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    align-self: stretch !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: stretch !important;
    position: relative !important;
  }

  .menu-list-view .menu-item-image,
  .menu-list-view .featured-item-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
    border-radius: 8px !important;
  }

  .menu-list-view .menu-item-content,
  .menu-list-view .featured-item-content {
    flex: 1 !important;
    padding: 0.75rem 1rem !important;
    min-width: 0 !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.125rem !important;
    justify-content: flex-start !important;
  }

  /* Two-row container - use grid layout */
  .menu-items-two-rows {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  .menu-items-two-rows .menu-items-horizontal {
    display: contents !important;
  }

  /* Grid layout for menu items (matching featured items) */
  .menu-items-horizontal {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    overflow: visible !important;
  }

  .menu-items-horizontal .menu-item {
    width: 100% !important;
    max-width: none !important;
  }

  .menu-items-horizontal .menu-item-image-container {
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: stretch !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .menu-items-horizontal .menu-item-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
  }

  .menu-grid-items {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  .featured-items-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .menu-item,
  .featured-item {
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    background: #fff !important;
    position: relative !important;
    overflow: hidden !important;
    align-items: stretch !important;
  }

  /* CRITICAL: List view override - must override grid view rules */
  .menu-list-view .menu-item,
  .menu-list-view .featured-item {
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    min-width: 0 !important;
    display: flex !important;
    height: auto !important;
  }

  .menu-list-view .menu-item-image-container,
  .menu-list-view .featured-item-image-container {
    width: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    max-width: 100px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    align-self: stretch !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: stretch !important;
    position: relative !important;
  }

  .menu-list-view .menu-item-image,
  .menu-list-view .featured-item-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
    border-radius: 8px !important;
  }

  .menu-list-view .menu-item-content,
  .menu-list-view .featured-item-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0.75rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: auto !important;
  }

  .menu-item:hover,
  .featured-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
  }

  .menu-item-image-container,
  .featured-item-image-container {
    position: relative !important;
    width: 100% !important;
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: stretch !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    background: #f0f0f0 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }

  .menu-item-image,
  .featured-item-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    display: block !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
  }

  .menu-item-content,
  .featured-item-content {
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    flex: 1 !important;
    min-height: 0 !important;
  }
  
  .menu-item-name,
  .featured-item-name {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
  }
  
  .menu-item-description,
  .featured-item-description {
    font-size: 0.875rem !important;
    color: var(--text-light) !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex: 0 1 auto !important;
    min-height: 0 !important;
  }
  
  .menu-item-price,
  .featured-item-price {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
  }
  
  .featured-item-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important;
  }
  
  /* Hide + button in list view on mobile */
  .menu-list-view .add-to-cart-btn,
  .menu-list-view .add-btn-featured {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .menu-item-header {
    margin-bottom: 0 !important;
    gap: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* Override for list view - ensure proper sizing */
  .menu-list-view .menu-item .menu-item-name,
  .menu-list-view .menu-item-name,
  .menu-list-view .featured-item-name {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.3 !important;
  }

  .menu-list-view .menu-item .menu-item-price,
  .menu-list-view .menu-item-price,
  .menu-list-view .featured-item-price {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
  }

  .menu-list-view .menu-item-description,
  .menu-list-view .featured-item-description {
    display: -webkit-box !important;
    font-size: 0.8125rem !important;
    color: var(--text-light) !important;
    margin-bottom: 0.125rem !important;
    line-height: 1.4 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* Grid view only - hide description on mobile grid */
  .menu-item:not(.menu-list-view .menu-item) .menu-item-description {
    display: none;
  }

  .food-labels {
    display: none;
  }

  .food-label {
    display: none;
  }

  /* Mobile: Show + button on image overlay - Match featured items exactly */
  .add-to-cart-btn {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    min-width: 44px !important;
    height: 44px !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    width: auto !important;
  }

  .add-to-cart-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px) !important;
  }

  .cart-summary-content {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    padding: 1rem;
  }

  .checkout-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .category-tabs {
    padding: 0.625rem 0.75rem;
    gap: 0.375rem;
  }

  .category-tab {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .back-btn, .cart-btn, .category-tab, .menu-item, .add-to-cart-btn {
    -webkit-tap-highlight-color: transparent;
  }

  .menu-item:active {
    transform: scale(0.98);
  }

  .category-tab:active {
    transform: scale(0.95);
  }

  /* Ensure touch targets are at least 44x44px */
  .back-btn, .cart-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .category-tab {
    min-height: 44px;
  }

  .add-to-cart-btn {
    min-height: 44px;
  }
}

/* Modal responsive fixes */
.modal-content {
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 1;
  color: #15a8a4;
}

.modal-close svg {
  stroke: #15a8a4;
}

.modal-close:hover {
  background: var(--bg);
  color: #128a87;
}

.modal-close:hover svg {
  stroke: #128a87;
}

/* Modal Item Styles */
.modal-item-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.modal-item-details {
  padding: 1.5rem;
}

.modal-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.modal-item-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  line-height: 1.3;
}

.modal-item-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.modal-item-description {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Modifier Styles in Modal */
.modifier-group {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.modifier-group:last-of-type {
  border-bottom: none;
}

.modifier-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.modifier-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.modifier-required {
  background: #ffebee;
  color: #c62828;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
}

.modifier-optional {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
}

.modifier-multi {
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
}

.modifier-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modifier-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 0;
}

.modifier-option-btn:hover {
  border-color: var(--primary);
  background: rgba(21, 168, 164, 0.05);
}

.modifier-option-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.modifier-option-btn .option-name {
  font-weight: 500;
}

.modifier-option-btn .option-price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.modifier-option-btn.selected .option-price {
  color: white;
}

/* Item Modal Specific Styles */
.item-modal-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.item-modal-details {
  padding: 1.5rem;
}

.item-modal-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.item-modal-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.item-modal-description {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* Cart Modifier Styles */
.cart-item-modifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.cart-item-notes {
  font-size: 0.85rem;
  color: var(--primary);
  background: rgba(21, 168, 164, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.cart-modifier {
  background: var(--bg);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  color: var(--text-light);
}

/* Modal Quantity Controls */
.modal-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}

.modal-quantity-controls .quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--white);
  border-radius: 6px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}

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

.modal-quantity-controls .quantity {
  font-size: 1rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.modal-item-notes {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.notes-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.item-notes-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  transition: border-color 0.2s;
}

.item-notes-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 168, 164, 0.1);
}

.notes-char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.modal-item-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal-item-actions .quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: 8px;
}

.modal-item-actions .quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--white);
  border-radius: 6px;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.modal-item-actions .quantity {
  font-size: 1rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.modal-add-btn {
  flex: 1;
  max-width: 200px;
  padding: 0.875rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-add-btn:hover {
  background: var(--primary-dark);
}

/* Mobile Modal Styles */
@media (max-width: 767px) {
  .modal-content {
    max-width: 95%;
    margin: 0.5rem;
    max-height: 85vh;
  }

  .modal-item-image {
    height: 180px;
  }

  .modal-item-details {
    padding: 1rem;
  }

  .modal-item-name {
    font-size: 1rem;
  }

  .modal-item-price {
    font-size: 1rem;
  }

  .modal-item-description {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
  }

  .modal-item-actions {
    flex-direction: row;
    gap: 0.75rem;
  }

  .modal-item-actions .quantity-controls {
    padding: 0.375rem 0.5rem;
  }

  .modal-item-actions .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .modal-item-actions .quantity {
    font-size: 0.875rem;
    min-width: 20px;
  }

  .modal-add-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    max-width: 160px;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    top: 0.75rem;
    right: 0.75rem;
  }
}

/* Enhanced Item Modal Styles */
.item-modal-image-container {
  position: relative;
  cursor: zoom-in;
  margin-bottom: 1rem;
}

.item-modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s;
}

.item-modal-image:hover {
  transform: scale(1.02);
}

.zoom-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  border: none;
  pointer-events: none;
}

.item-modal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

.item-prep-time {
  font-size: 0.875rem;
  color: var(--text-light);
  background: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.item-dietary-tags {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.dietary-tag {
  background: rgba(21, 168, 164, 0.1);
  color: var(--primary);
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Similar Items Section */
.similar-items-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.similar-items-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.similar-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.similar-item {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
}

.similar-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.similar-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.similar-item-name {
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.similar-item-price {
  padding: 0 0.5rem 0.5rem;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
}

/* Image Zoom Overlay */
.image-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.image-zoom-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.image-zoom-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.image-zoom-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Smart Cart Suggestions */
.cart-suggestions {
  padding: 1rem;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.cart-suggestions-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.cart-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.cart-suggestion-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-suggestion-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-suggestion-details {
  flex: 1;
}

.cart-suggestion-name {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cart-suggestion-price {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
}

.cart-suggestion-add {
  background: var(--primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-suggestion-add:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* ============================================
   EXPRESS REORDER / QUICK ADD STYLES
   ============================================ */

.express-reorder-section {
  background: linear-gradient(135deg, rgba(21, 168, 164, 0.05), rgba(21, 168, 164, 0.02));
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid rgba(21, 168, 164, 0.1);
}

.express-reorder-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.express-reorder-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reorder-last-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(21, 168, 164, 0.3);
}

.reorder-last-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(21, 168, 164, 0.4);
}

.quick-add-section {
  margin-top: 1rem;
}

.quick-add-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.quick-add-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.quick-add-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.quick-add-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-add-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.quick-add-info {
  text-align: center;
  flex: 1;
}

.quick-add-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.quick-add-price {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.quick-add-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.quick-add-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.quick-add-empty {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
  padding: 1rem;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .express-reorder-section {
    margin: 1rem;
    padding: 1rem;
  }
  
  .quick-add-items {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
  }
  
  .quick-add-image {
    width: 50px;
    height: 50px;
  }
  
  .quick-add-name {
    font-size: 0.75rem;
  }
}

/* ============================================
   SMART UPSELL & CROSS-SELL STYLES
   ============================================ */

.cart-suggestions-section {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: rgba(21, 168, 164, 0.02);
  flex-shrink: 0;
  max-height: 30vh;
  overflow-y: auto;
}

.cart-suggestions-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.cart-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-suggestion-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-suggestion-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-suggestion-details {
  flex: 1;
}

.cart-suggestion-name {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.cart-suggestion-price {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
}

.cart-suggestion-add-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cart-suggestion-add-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* ============================================
   BUNDLE DEALS & COMBOS STYLES
   ============================================ */

.bundle-deals-section {
  display: none !important;
  visibility: hidden !important;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(255, 107, 107, 0.02));
  flex-shrink: 0;
  max-height: 40vh;
  overflow-y: auto;
}

.bundle-deals-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.bundle-deals-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bundle-deal-item {
  background: white;
  border: 2px solid var(--secondary);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.bundle-deal-item:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
  transform: translateY(-2px);
}

.bundle-deal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.bundle-deal-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.bundle-deal-badge {
  background: var(--secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.bundle-deal-description {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.bundle-deal-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.bundle-item-tag {
  background: rgba(255, 107, 107, 0.1);
  color: var(--secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.bundle-deal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bundle-deal-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.bundle-add-btn {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.bundle-add-btn:hover {
  background: #ff5252;
  transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 767px) {
  .cart-suggestions-section,
  .bundle-deals-section {
    padding: 0.75rem;
  }
  
  .bundle-deal-item {
    padding: 0.75rem;
  }
  
  .bundle-deal-name {
    font-size: 0.9375rem;
  }
  
  .bundle-deal-price {
    font-size: 1rem;
  }
}


/* ============================================
   CHECKOUT PAGE STYLES
   ============================================ */

.checkout-page {
  background: var(--bg);
}

.checkout-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  align-items: start;
  position: relative;
  overflow: visible;
}

.checkout-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: visible;
  height: auto;
}

.checkout-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 168, 164, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Order Summary - Sticky Container (Separate from scrollable content) */
.order-summary {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: fit-content;
  z-index: 10;
}

.order-items {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  max-height: 40vh;
  min-height: 0;
}

.order-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

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

.order-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.order-item-details {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.order-item-quantity {
  font-size: 0.85rem;
  color: var(--text-light);
}

.order-item-price {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.order-totals {
  border-top: 2px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
  flex-shrink: 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.total-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.place-order-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1rem;
}

.place-order-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 168, 164, 0.3);
}

.place-order-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.secure-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 1rem;
  flex-shrink: 0;
}

/* Pickup Options */
.pickup-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pickup-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.pickup-option:hover {
  border-color: var(--primary);
  background: rgba(21, 168, 164, 0.05);
}

.pickup-option.active {
  border-color: var(--primary);
  background: rgba(21, 168, 164, 0.1);
}

.pickup-icon {
  font-size: 1.5rem;
}

.pickup-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.pickup-time {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Payment Options */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.payment-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-option:hover {
  border-color: var(--primary);
  background: rgba(21, 168, 164, 0.05);
}

.payment-option.active {
  border-color: var(--primary);
  background: rgba(21, 168, 164, 0.1);
}

.card-payment {
  margin-top: 1rem;
}

.card-element {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.card-errors {
  color: #e53935;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Loyalty Section */
.loyalty-section {
  background: linear-gradient(135deg, rgba(21, 168, 164, 0.05), rgba(21, 168, 164, 0.02));
  border: 2px solid rgba(21, 168, 164, 0.2);
}

.loyalty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.login-btn {
  background: var(--primary);
  color: white;
}

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

.signup-btn {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.signup-btn:hover {
  background: rgba(21, 168, 164, 0.1);
}

.logout-btn {
  background: #f44336;
  color: white;
}

.logout-btn:hover {
  background: #d32f2f;
}

/* Login Modal */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.login-modal.active {
  display: flex;
}

.login-modal-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.login-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary);
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: var(--text);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .checkout-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .order-summary {
    position: sticky;
    top: 1rem;
    z-index: 100;
    max-height: calc(100vh - 2rem);
    margin-bottom: 1rem;
    overflow-y: auto;
  }

  .order-items {
    max-height: 30vh;
  }

  .checkout-section {
    padding: 1rem;
  }

  .pickup-options,
  .payment-options {
    grid-template-columns: 1fr;
  }
}
