/* CSS Variables - Light Theme (Default) */
:root,
[data-theme='light'] {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fdba74;
  --secondary: #fbbf24;
  --background: #fafaf9;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #18181b;
  --text-muted: #71717a;
  --text-light: #a1a1aa;
  --border: #e4e4e7;
  --border-light: #f4f4f5;
  --success: #22c55e;
  --whatsapp: #25d366;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --header-height: 0;
  --nav-height: 3.5rem;
  --filter-height: 3rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Dark Theme */
[data-theme='dark'] {
  --primary: #fb923c;
  --primary-dark: #f97316;
  --primary-light: #fdba74;
  --secondary: #fbbf24;
  --background: #18181b;
  --surface: #27272a;
  --surface-elevated: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-light: #71717a;
  --border: #3f3f46;
  --border-light: #27272a;
  --success: #22c55e;
  --whatsapp: #25d366;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4),
    0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4),
    0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4),
    0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding-bottom: calc(
    var(--nav-height) + var(--filter-height) + var(--safe-bottom)
  );
}

/* Nav on top layout */
[data-nav-position='top'] body {
  padding-bottom: 0;
  padding-top: 0;
}

[data-nav-position='top'] .header {
  top: calc(var(--nav-height) + var(--filter-height));
}

[data-nav-position='top'] .bottom-nav {
  top: 0;
  bottom: auto;
  border-bottom: 1px solid var(--border);
  border-top: none;
}

[data-nav-position='top'] .filter-bar {
  top: var(--nav-height);
  bottom: auto;
  border-bottom: 1px solid var(--border);
  border-top: none;
}

[data-nav-position='top'] .main {
  padding-top: calc(var(--nav-height) + var(--filter-height) + 0.75rem);
}

/* Icon Styles */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Header - Hidden on mobile, visible on desktop */
.header {
  display: none;
  background: var(--primary);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background-color 0.15s ease;
}

.header-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

.header-btn .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.desktop-only {
  display: none;
}

.logo-img {
  height: 85%;
  width: auto;
  max-height: 2.5rem;
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  display: none;
}

.cart-badge {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  transition: background-color 0.15s ease;
}

.cart-badge:active {
  background: rgba(255, 255, 255, 0.3);
}

.cart-badge .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.badge {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  background: white;
  color: var(--primary);
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge:empty,
.badge[data-count='0'] {
  display: none;
}

/* Main Content */
.main {
  padding: 0.75rem 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.category-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
  color: var(--text);
}

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

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

/* Desktop Category Tabs - Hidden on mobile */
.desktop-category-tabs {
  display: none;
}

/* Products Grid - Mobile: 2 columns */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  border: 1px solid var(--border-light);
}

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

.product-action-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
  z-index: 1;
}

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

.product-action-btn .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.product-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.25;
  padding-right: 1.75rem;
}

.product-description {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  padding-top: 0.25rem;
}

.product-customize {
  font-size: 0.625rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-weight: 500;
}

.product-customize .icon {
  width: 0.625rem;
  height: 0.625rem;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-item:active {
  background: var(--border-light);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item .icon {
  width: 1.375rem;
  height: 1.375rem;
}

.nav-badge {
  position: absolute;
  top: 0.25rem;
  right: 50%;
  transform: translateX(calc(50% + 0.75rem));
  background: var(--primary);
  color: white;
  font-size: 0.5rem;
  font-weight: 700;
  min-width: 0.875rem;
  height: 0.875rem;
  padding: 0 0.1875rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-badge:empty,
.nav-badge[data-count='0'] {
  display: none;
}

/* Nav Logo */
.nav-logo {
  flex: 1;
  padding: 0.25rem 0;
}

.nav-logo-img {
  height: 100%;
  max-height: 2.5rem;
  width: auto;
  object-fit: contain;
}

/* Filter Bar */
.filter-bar {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom));
  left: 0;
  right: 0;
  height: var(--filter-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 99;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
}

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

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

.filter-bar .category-tab {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

/* Cart Panel */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

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

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.cart-panel.active {
  transform: translateX(0);
}

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

.cart-header h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.cart-close {
  background: var(--background);
  border: 1px solid var(--border);
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.cart-close:active {
  background: var(--border);
}

.cart-close .icon {
  width: 1rem;
  height: 1rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.875rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  font-size: 0.875rem;
}

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

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

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

.cart-item-name {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
  color: var(--text);
}

.cart-item-mods {
  font-size: 0.6875rem;
  color: var(--primary-dark);
  font-style: italic;
  margin-bottom: 0.125rem;
}

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

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.qty-btn {
  background: var(--background);
  border: 1px solid var(--border);
  width: 1.625rem;
  height: 1.625rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.15s ease;
}

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

.qty-btn .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.cart-item-qty {
  font-weight: 600;
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text);
}

/* Cart Footer */
.cart-footer {
  padding: 0.875rem 1rem calc(0.875rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--background);
  flex-shrink: 0;
}

.delivery-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.delivery-option {
  flex: 1;
}

.delivery-option input {
  display: none;
}

.delivery-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 0.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
}

.delivery-option input:checked + .delivery-label {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.08);
}

.delivery-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--text-muted);
}

.delivery-option input:checked + .delivery-label .delivery-icon {
  color: var(--primary);
}

/* Address Input */
.address-input {
  margin-bottom: 0.75rem;
}

.address-input label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.address-input input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}

.address-input input::placeholder {
  color: var(--text-light);
}

.address-input input:focus {
  outline: none;
  border-color: var(--primary);
}

.cart-summary {
  margin-bottom: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
  color: var(--text);
}

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

.whatsapp-btn {
  width: 100%;
  background: var(--whatsapp);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.15s ease;
}

.whatsapp-btn:active:not(:disabled) {
  opacity: 0.8;
}

.whatsapp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.whatsapp-btn .icon {
  width: 1rem;
  height: 1rem;
}

.whatsapp-btn.disabled {
  background: var(--text-muted);
  opacity: 0.6;
  cursor: not-allowed;
}

.closed-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.closed-message .icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 300;
}

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

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

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

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

.modal-header h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: var(--background);
  border: 1px solid var(--border);
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.modal-close .icon {
  width: 1rem;
  height: 1rem;
}

.modal-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

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

.modal-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.modal-description:empty {
  display: none;
}

.ingredients-section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem;
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.ingredient-item.removed {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.ingredient-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.ingredient-item.removed .ingredient-checkbox {
  background: #ef4444;
  border-color: #ef4444;
}

.ingredient-checkbox .icon {
  width: 0.625rem;
  height: 0.625rem;
  color: white;
  opacity: 0;
}

.ingredient-item.removed .ingredient-checkbox .icon {
  opacity: 1;
}

.ingredient-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
}

.ingredient-item.removed .ingredient-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.modal-footer {
  padding: 1rem;
  padding-bottom: calc(1rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}

.btn-cancel,
.btn-add {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.btn-cancel {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-add {
  background: var(--primary);
  border: none;
  color: white;
}

.btn-add:active {
  opacity: 0.8;
}

.btn-add .icon {
  width: 0.875rem;
  height: 0.875rem;
}

/* Categories Modal */
.categories-modal {
  max-width: 400px;
}

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

.category-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s ease;
}

.category-list-item:active {
  background: var(--border-light);
}

.category-list-item.active {
  background: rgba(249, 115, 22, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

/* Combo Card Styles */
.combo-card {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--secondary) 0%,
    var(--primary) 100%
  ) !important;
  color: white !important;
}

.combo-card .product-name,
.combo-card .product-price,
.combo-card .product-description,
.combo-card .product-customize {
  color: white !important;
}

.combo-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Combo Modal */
.combo-modal {
  max-width: 420px;
}

.combo-slots {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.combo-slot {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.875rem;
}

.combo-slot-header {
  margin-bottom: 0.5rem;
}

.combo-slot-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.combo-slot-select {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
}

.combo-slot-product {
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.5rem 0;
}

.combo-slot-ingredients {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border-light);
}

.combo-ingredients-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.375rem;
}

.combo-ingredient-btn {
  display: inline-block;
  margin: 0.125rem;
  padding: 0.375rem 0.625rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.combo-ingredient-btn.removed {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  text-decoration: line-through;
}

/* Cart Combo Styles */
.cart-item-combo {
  border-left: 3px solid var(--secondary);
}

.cart-combo-badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 0.0625rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.375rem;
  vertical-align: middle;
}

.cart-combo-details {
  margin-top: 0.25rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border-light);
}

.cart-combo-selection {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin: 0.125rem 0;
}

.cart-combo-slot {
  font-weight: 600;
}

.cart-combo-mods {
  font-style: italic;
  color: var(--primary);
}

/* Settings Modal */
.settings-modal {
  max-width: 400px;
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-section h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theme-selector {
  display: flex;
  gap: 0.5rem;
}

.theme-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text);
  transition: all 0.15s ease;
}

.theme-option.active {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.08);
}

.theme-option .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.color-option {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.color-option label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.color-option input[type='color'] {
  width: 100%;
  height: 2.25rem;
  padding: 0.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--surface);
}

.color-option input[type='color']::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-option input[type='color']::-webkit-color-swatch {
  border: none;
  border-radius: var(--radius-sm);
}

.settings-toggle {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  padding: 0.375rem 0;
}

.settings-toggle + .settings-toggle {
  border-top: 1px solid var(--border-light);
  padding-top: 0.625rem;
  margin-top: 0.25rem;
}

.settings-toggle input {
  display: none;
}

.toggle-slider {
  width: 2.5rem;
  height: 1.375rem;
  background: var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.125rem;
  height: 1.125rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.settings-toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.settings-toggle input:checked + .toggle-slider::after {
  transform: translateX(1.125rem);
}

.toggle-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.btn-reset {
  width: 100%;
  padding: 0.625rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text);
  cursor: pointer;
}

.btn-install {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.15s ease;
}

.btn-install:hover {
  opacity: 0.9;
}

.btn-install .icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* Toast Notifications - Sonner Style */
.toast-container {
  position: fixed;
  bottom: calc(
    var(--nav-height) + var(--filter-height) + var(--safe-bottom) + 0.75rem
  );
  right: 0.75rem;
  left: 0.75rem;
  z-index: 400;
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  pointer-events: none;
  --toast-gap: 0.5rem;
}

[data-nav-position='top'] .toast-container {
  bottom: 0.75rem;
}

.toast-container.expanded .toast,
.toast-container:hover .toast {
  --toast-y: calc(
    var(--toast-index) * -1 * (var(--toast-height, 3rem) + var(--toast-gap))
  );
  --toast-scale: 1;
  --toast-opacity: 1;
}

.toast {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem;
  padding-right: 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  font-size: 0.8125rem;
  pointer-events: auto;
  border: 1px solid var(--border);
  --toast-index: 0;
  --toast-y: calc(var(--toast-index) * -0.5rem);
  --toast-scale: calc(1 - var(--toast-index) * 0.05);
  --toast-opacity: calc(1 - var(--toast-index) * 0.15);
  transform: translateY(var(--toast-y)) scale(var(--toast-scale));
  opacity: var(--toast-opacity);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: calc(100 - var(--toast-index));
}

.toast.entering {
  animation: toastEnter 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}

.toast.exiting {
  animation: toastExit 0.2s cubic-bezier(0.06, 0.71, 0.55, 1) forwards;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--primary);
}

.toast-message {
  flex: 1;
  line-height: 1.3;
}

.toast-close {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.toast-close .icon {
  width: 0.75rem;
  height: 0.75rem;
}

/* Hidden toasts (index > 2) */
.toast[style*='--toast-index: 3'],
.toast[style*='--toast-index: 4'],
.toast[style*='--toast-index: 5'] {
  --toast-opacity: 0;
  pointer-events: none;
}

.toast-container:hover .toast[style*='--toast-index: 3'],
.toast-container:hover .toast[style*='--toast-index: 4'],
.toast-container:hover .toast[style*='--toast-index: 5'] {
  --toast-opacity: 1;
  pointer-events: auto;
}

@keyframes toastEnter {
  from {
    opacity: 0;
    transform: translateY(100%) scale(0.9);
  }
  to {
    opacity: var(--toast-opacity);
    transform: translateY(var(--toast-y)) scale(var(--toast-scale));
  }
}

@keyframes toastExit {
  from {
    opacity: var(--toast-opacity);
    transform: translateY(var(--toast-y)) scale(var(--toast-scale));
  }
  to {
    opacity: 0;
    transform: translateY(var(--toast-y)) translateX(100%)
      scale(var(--toast-scale));
  }
}

/* Loading State */
.loading {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Tablet breakpoint */
@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .product-card {
    padding: 1rem;
  }

  .product-name {
    font-size: 0.9375rem;
  }

  .modal {
    border-radius: var(--radius-xl);
    max-width: 400px;
    max-height: 80vh;
    max-height: 80dvh;
    margin: auto;
  }

  .modal-overlay {
    align-items: center;
    padding: 1rem;
  }

  .modal-footer {
    padding-bottom: 1rem;
  }

  .toast-container {
    left: auto;
    right: 1rem;
    max-width: 320px;
  }
}

/* Desktop breakpoint */
@media (min-width: 768px) {
  :root {
    --header-height: 3.5rem;
    --filter-height: 0;
  }

  body {
    padding-bottom: 0;
  }

  [data-nav-position='top'] body {
    padding-top: var(--header-height);
  }

  [data-nav-position='top'] .header {
    top: 0;
  }

  .header {
    display: block;
  }

  .header-content {
    padding: 0 1.5rem;
  }

  .header-left {
    gap: 0.5rem;
  }

  .desktop-only {
    display: flex;
  }

  .logo-text {
    display: block;
    font-size: 1.125rem;
  }

  .main {
    padding: calc(var(--header-height) + 1rem) 1rem 2rem;
  }

  .bottom-nav,
  .filter-bar {
    display: none;
  }

  .desktop-category-tabs {
    display: flex;
  }

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

  .product-card {
    padding: 1.125rem;
  }

  .product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .product-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.125rem;
  }

  .cart-footer {
    padding-bottom: 1rem;
  }

  .toast-container {
    bottom: 1rem;
  }
}

/* Large desktop */
@media (min-width: 1024px) {
  .header-content,
  .main {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .products-grid {
    gap: 1.5rem;
  }
}
