/* ============================================
   MENU DIGITALE — Public Menu Styles
   Mobile-first | Light theme | Premium design
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --accent: #ff5e1a;
  --accent-light: #fff0ea;
  --accent-dark: #d94e14;

  --bg-primary: #fafafa;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;

  --text-primary: #1a1a2e;
  --text-secondary: #5a5a72;
  --text-tertiary: #8e8ea0;
  --text-on-accent: #ffffff;

  --border: #ebebf0;
  --border-light: #f2f2f5;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --header-height: 0px;
  --controls-height: 110px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--controls-height) + 16px);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

.hidden {
  display: none !important;
}

/* ---------- Loading Overlay ---------- */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

.loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  text-align: center;
}

.spinner-ring {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ---------- Restaurant Header ---------- */
.restaurant-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  padding: 0;
}

.header-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
  padding: 12px 20px 28px;
}

.header-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
}

/* Language Selector */
.lang-selector {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out);
}

.lang-btn.active {
  background: rgba(255,255,255,0.95);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lang-btn:hover:not(.active) {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Restaurant Info */
.restaurant-info {
  text-align: center;
}

.restaurant-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.restaurant-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-fallback {
  font-size: 32px;
  line-height: 1;
}

.restaurant-name {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
  letter-spacing: -0.3px;
}

.restaurant-description {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.restaurant-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

.meta-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* ---------- Sticky Controls Bar ---------- */
.controls-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s var(--ease-out);
}

.controls-bar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Search */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 12px;
  gap: 8px;
  margin-bottom: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-icon {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: color 0.3s;
}

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

.search-input {
  flex: 1;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: transparent;
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-clear {
  padding: 4px;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

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

/* Allergen Filter Button */
.allergen-filter-btn {
  position: relative;
  flex-shrink: 0;
  padding: 6px;
  color: var(--text-tertiary);
  transition: color 0.2s;
  border-left: 1px solid var(--border-light);
  padding-left: 12px;
}

.allergen-filter-btn:hover {
  color: var(--accent);
}

.allergen-filter-btn.active {
  color: var(--accent);
}

.filter-badge {
  position: absolute;
  top: 0;
  right: -4px;
  min-width: 17px;
  height: 17px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-full);
  padding: 0 4px;
  animation: popIn 0.3s var(--ease-spring);
}

@keyframes popIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Category Tabs */
.category-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.tabs-track {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  min-width: max-content;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.1px;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 3px 12px rgba(255, 94, 26, 0.3);
}

.tab-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ---------- Allergen Filter Panel ---------- */
.allergen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.allergen-overlay.show {
  opacity: 1;
}

.allergen-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 210;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px 20px 32px;
  max-height: 75vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: var(--shadow-xl);
}

.allergen-panel.show {
  transform: translateY(0);
}

.allergen-panel-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.allergen-panel-desc {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.allergen-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.allergen-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  user-select: none;
}

.allergen-option:hover {
  border-color: var(--accent);
}

.allergen-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.allergen-option .allergen-emoji {
  font-size: 1.2rem;
  line-height: 1;
}

.allergen-option .allergen-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
}

.allergen-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--border);
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
}

.allergen-option.selected .allergen-checkbox {
  background: var(--accent);
  border-color: var(--accent);
}

.allergen-option.selected .allergen-checkbox::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.allergen-panel-actions {
  display: flex;
  gap: 10px;
}

.allergen-clear-btn {
  flex: 1;
  padding: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}

.allergen-clear-btn:hover {
  border-color: var(--text-secondary);
}

.allergen-apply-btn {
  flex: 1;
  padding: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-on-accent);
  background: var(--accent);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(255, 94, 26, 0.3);
}

.allergen-apply-btn:hover {
  background: var(--accent-dark);
}

/* ---------- Menu Content ---------- */
.menu-content {
  padding: 16px 16px 0;
}

/* Category Section */
.category-section {
  margin-bottom: 28px;
  animation: fadeInUp 0.5s var(--ease-out) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.category-title-icon {
  font-size: 1.15rem;
}

.category-dish-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: auto;
}

.dishes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Dish Card ---------- */
.dish-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.dish-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--border);
}

.dish-card:active {
  transform: scale(0.985);
}

.dish-card-image {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.dish-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-image-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
}

.dish-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dish-card-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.3;
  letter-spacing: -0.1px;
}

.dish-card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.dish-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dish-card-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.dish-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.dietary-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
}

.tag-vegetarian {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag-vegan {
  background: #e0f2f1;
  color: #00796b;
}

.tag-gluten-free {
  background: #fff3e0;
  color: #e65100;
}

.tag-spicy {
  background: #fce4ec;
  color: #c62828;
}

.tag-new {
  background: var(--accent-light);
  color: var(--accent);
}

.tag-popular {
  background: #fff8e1;
  color: #f57f17;
}

.dish-card-allergens {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.allergen-dot {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  cursor: help;
  line-height: 1;
}

.dish-unavailable {
  opacity: 0.5;
  pointer-events: none;
}

.dish-unavailable::after {
  content: 'Non disponibile';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #c62828;
  background: #fce4ec;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

/* ---------- Dish Detail Modal ---------- */
.dish-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.dish-modal.show {
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.dish-modal.show .modal-backdrop {
  opacity: 1;
}

.modal-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

.dish-modal.show .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 10px auto;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.modal-image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-image-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.modal-body {
  padding: 20px 20px 32px;
}

.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-dish-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.modal-dish-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.modal-dish-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.modal-dietary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.modal-dietary-tags:empty {
  display: none;
}

.modal-dietary-tags .dietary-tag {
  font-size: 0.72rem;
  padding: 5px 10px;
}

.modal-allergens-section {
  margin-bottom: 16px;
}

.modal-allergens-section h4,
.modal-ingredients-section h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.modal-allergens-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-allergen-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.modal-allergen-badge .badge-emoji {
  font-size: 0.9rem;
}

.modal-ingredients-section p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.menu-footer {
  margin-top: 32px;
  padding: 24px 20px 32px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-brand {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.footer-brand strong {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-heading);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(255, 94, 26, 0.35);
  transition: all 0.3s var(--ease-out);
  opacity: 0;
  transform: translateY(16px);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 94, 26, 0.45);
}

/* ---------- Responsive (larger phones / small tablets) ---------- */
@media (min-width: 430px) {
  .header-content {
    padding: 16px 24px 32px;
  }

  .restaurant-name {
    font-size: 1.85rem;
  }

  .controls-bar {
    padding: 14px 20px 0;
  }

  .menu-content {
    padding: 20px 20px 0;
  }

  .dish-card {
    padding: 16px;
  }

  .dish-card-image {
    width: 100px;
    height: 100px;
  }

  .allergen-options {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 600px) {
  .dishes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .dish-card {
    flex-direction: column;
    gap: 12px;
  }

  .dish-card-image {
    width: 100%;
    height: 140px;
  }

  .modal-sheet {
    max-width: 520px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
  }

  .dish-modal {
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .menu-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 24px 0;
  }

  .controls-bar {
    max-width: 720px;
    margin: 0 auto;
    left: 0;
    right: 0;
  }

  .restaurant-name {
    font-size: 2rem;
  }

  .restaurant-meta {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
}

/* ---------- Stagger Animation Utility ---------- */
.dish-card {
  opacity: 0;
  animation: fadeInCard 0.4s var(--ease-out) forwards;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .controls-bar,
  .allergen-filter-btn,
  .back-to-top,
  .lang-selector,
  .search-container {
    display: none !important;
  }

  .dish-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
