.qr-body {
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.25rem;
  --spacing-2xl: 2rem;

  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;

  --primary-50: #eff6ff;
  --primary-600: #0f172a;
  --primary-700: #020617;
  --danger-500: #ef4444;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.18);
  --transition-fast: 0.18s ease;
}

.qr-layout-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 200;
}

.qr-layout-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

/* Push menu-filters sticky top down to clear the header */
.menu-filters {
  top: 65px;
}
.qr-body {
  background-color: #f8fafc;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
}

.qr-cafeteria-page {
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 80px;
}

.qr-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.qr-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  gap: 12px;
}

.qr-logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qr-logo {
  height: 36px;
  width: auto;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.page-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* Cart Button */
.qr-cart-btn {
  position: relative;
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #334155;
}

.qr-cart-btn:hover {
  background-color: #f1f5f9;
}

.qr-cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Filters - Same as main but more touch-friendly */
.menu-filters {
  padding: 1rem;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 73px;
  z-index: 99;
}

.filter-search {
  position: relative;
  margin-bottom: 1rem;
}

.filter-search input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
}

.filter-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

/* Category Tabs - Horizontal Scroll on Mobile */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 10px 18px;
  white-space: nowrap;
  border-radius: 9999px;
  border: none;
  background: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
}

.category-tab.active {
  background: #0f172a;
  color: white;
}

/* Menu Grid - 1 column on mobile, 2 on larger phones */
.qr-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding: 1rem;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.product-card:active {
  transform: scale(0.98);
}

.product-image {
  height: 180px;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-badge {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.product-badge.popular {
  background: #f59e0b;
}
.product-badge.new {
  background: #22c55e;
}
.product-badge.vegan {
  background: #10b981;
}
.product-badge.spicy {
  background: #ef4444;
}

.product-content {
  padding: 1rem;
}

.product-category {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 6px 0 4px;
  line-height: 1.3;
}

.product-description {
  font-size: 0.875rem;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.add-to-cart-btn {
  background: #0f172a;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border-radius: 9999px;
  padding: 4px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: white;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Cart Drawer - Full height on mobile */
.qr-cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: white;
  transition: right 0.3s ease;
  z-index: 1000;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.qr-cart-sidebar.open {
  right: 0;
}

@media (min-width: 641px) {
  .qr-cart-sidebar {
    max-width: 380px;
  }
}
