/**
 * WebAR Menu - Traditional Menu Styles
 * Modern, responsive styling for restaurant menu view
 */

:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #e94560;
  --accent-hover: #d63650;
  --background: #0f0f1a;
  --surface: #1a1a2e;
  --surface-elevated: #232342;
  --text-primary: #ffffff;
  --text-secondary: #b8b8d0;
  --text-muted: #8888a0;
  --border-color: #2d2d4a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
  --z-header: 100;
  --z-modal: 200;
  --z-toast: 300;
  --z-sidebar: 400;
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .order-sidebar {
  left: 0;
  right: auto;
  transform: translateX(-100%);
  border-right: none;
  border-left: 1px solid var(--border-color);
}

[dir="rtl"] .order-sidebar.open {
  transform: translateX(0);
}

[dir="rtl"] .order-toggle {
  left: 16px;
  right: auto;
}

[dir="rtl"] .carousel-prev,
[dir="rtl"] .carousel-next {
  transform: rotate(180deg);
}

[dir="rtl"] .dish-card {
  direction: rtl;
}

[dir="rtl"] .modal-body {
  direction: rtl;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  color: inherit;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loading-content {
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.loading-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  color: var(--accent-color);
}

.loading-spinner {
  width: 100%;
  height: 100%;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: var(--surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto;
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), #ff6b7a);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app[hidden] {
  display: none;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.restaurant-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.restaurant-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}

.restaurant-info {
  min-width: 0;
}

.restaurant-name {
  font-size: 1.125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.restaurant-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent-color);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-ar:hover,
.btn-ar:active {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.4);
}

.btn-ar svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.icon-btn:hover,
.icon-btn:active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Category Navigation */
.category-nav {
  border-top: 1px solid var(--border-color);
  background: var(--surface);
  position: sticky;
  top: 76px; /* header height */
  z-index: 50;
}

.category-scroll {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  max-width: 1400px;
  margin: 0 auto;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.category-btn:hover,
.category-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.category-icon {
  font-size: 1.125rem;
}

.category-count {
  font-size: 0.6875rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

.category-btn.active .category-count {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Hero Section */
.hero-section {
  margin-bottom: 32px;
}

.hero-content {
  text-align: center;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Featured Carousel */
.featured-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  z-index: 10;
  transition: all var(--transition-fast);
  opacity: 0;
  pointer-events: none;
}

.featured-carousel:hover .carousel-btn {
  opacity: 1;
  pointer-events: auto;
}

.carousel-btn:hover,
.carousel-btn:active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

/* Menu Sections */
.menu-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.menu-category {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-icon {
  font-size: 1.5rem;
}

.category-name {
  font-size: 1.5rem;
  font-weight: 600;
}

.category-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .dishes-grid {
    grid-template-columns: 1fr;
  }
}

/* Dish Card */
.dish-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  animation: slideIn 0.4s ease forwards;
  opacity: 0;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.dish-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.dish-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--background);
}

.dish-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.dish-card:hover .dish-image img {
  transform: scale(1.05);
}

.dish-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[dir="rtl"] .dish-badges {
  right: auto;
  left: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-featured {
  background: var(--accent-color);
  color: white;
}

.badge-popular {
  background: #f59e0b;
  color: white;
}

.badge-new {
  background: #22c55e;
  color: white;
}

.badge-vegetarian {
  background: #16a34a;
  color: white;
}

.badge-vegan {
  background: #15803d;
  color: white;
}

.badge-gluten-free {
  background: #eab308;
  color: #1a1a2e;
}

.badge-spicy {
  background: #ef4444;
  color: white;
}

.dish-content {
  padding: 20px;
}

.dish-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dish-title {
  font-size: 1.125rem;
  font-weight: 600;
  flex: 1;
}

.dish-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
  white-space: nowrap;
}

.dish-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.dish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dish-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.dish-actions {
  display: flex;
  gap: 10px;
}

.dish-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.dish-actions .btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--surface-elevated);
  border-color: var(--accent-color);
}

.btn-accent {
  background: var(--accent-color);
  color: white;
}

.btn-accent:hover,
.btn-accent:active {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover,
.btn-secondary:active {
  background: var(--surface-elevated);
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-color);
  padding: 32px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.footer-details {
  text-align: left;
}

.footer-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-address {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--background);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  text-decoration: none;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal:not(.hidden) .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.modal-close:hover,
.modal-close:active {
  background: var(--surface-elevated);
  color: var(--text-primary);
}

.modal-close svg {
  width: 22px;
  height: 22px;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

@media (min-width: 640px) {
  .modal-body {
    grid-template-columns: 280px 1fr;
  }
}

.modal-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--background);
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[dir="rtl"] .modal-badges {
  right: auto;
  left: 12px;
}

.modal-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  font-family: 'Playfair Display', serif;
}

.modal-category {
  font-size: 0.8125rem;
  padding: 6px 12px;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Nutrition Grid */
.modal-nutrition h3,
.modal-allergens h3,
.modal-dietary h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.nutrition-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.nutrition-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.nutrition-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Allergen & Dietary Tags */
.allergen-tags,
.dietary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.allergen-tag,
.dietary-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.allergen-tag {
  border-color: #ef4444;
  color: #ef4444;
}

.dietary-tag {
  border-color: #22c55e;
  color: #22c55e;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.modal-actions .btn {
  flex: 1;
  padding: 14px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-actions .btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   ORDER SIDEBAR
   ============================================ */
.order-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: 100vw;
  z-index: var(--z-sidebar);
  background: var(--surface);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  pointer-events: auto;
}

.order-sidebar.open {
  transform: translateX(0);
}

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.order-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.close-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.close-btn:hover,
.close-btn:active {
  background: var(--surface-elevated);
  color: var(--text-primary);
}

.close-btn svg {
  width: 22px;
  height: 22px;
}

.order-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.order-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.order-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  animation: slideIn 0.3s ease forwards;
}

.order-item-image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-item-price {
  font-size: 0.875rem;
  color: var(--accent-color);
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

.order-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.quantity-btn:hover,
.quantity-btn:active {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.quantity-btn svg {
  width: 16px;
  height: 16px;
}

.quantity-value {
  font-size: 0.9375rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.order-item-total {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: auto;
  font-family: 'Playfair Display', serif;
}

.order-summary {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: var(--background);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9375rem;
}

.summary-row.total {
  font-size: 1.125rem;
  font-weight: 700;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Playfair Display', serif;
}

.summary-row span:last-child {
  font-weight: 600;
}

.summary-row.total span:last-child {
  color: var(--accent-color);
  font-size: 1.25rem;
}

.btn-checkout {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  font-size: 1rem;
}

/* ============================================
   ORDER TOGGLE (Mobile)
   ============================================ */
.order-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--accent-color);
  color: white;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.order-toggle.hidden {
  display: none;
}

.order-toggle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.order-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.order-total-text {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

/* ============================================
   TOASTS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 100px;
  left: 16px;
  right: 16px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 90vw;
  pointer-events: auto;
  animation: toastIn 0.4s ease forwards;
}

.toast-success {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

.toast-error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.toast-info {
  border-color: var(--accent-color);
  background: rgba(233, 69, 96, 0.15);
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-success .toast-icon { color: #22c55e; }
.toast-error .toast-icon { color: #ef4444; }
.toast-info .toast-icon { color: var(--accent-color); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(300px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .header-content {
    padding: 12px 16px;
  }
  
  .restaurant-details {
    display: none;
  }
  
  .btn-ar span {
    display: none;
  }
  
  .btn-ar {
    padding: 10px;
  }
  
  .category-scroll {
    padding: 10px 16px;
  }
  
  .category-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  
  .main-content {
    padding: 16px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .dishes-grid {
    grid-template-columns: 1fr;
  }
  
  .dish-content {
    padding: 16px;
  }
  
  .dish-actions {
    flex-direction: column;
  }
  
  .modal-content {
    margin: 12px;
    max-height: calc(100vh - 24px);
  }
  
  .modal-body {
    grid-template-columns: 1fr;
  }
  
  .modal-image {
    aspect-ratio: 16/10;
  }
  
  .order-sidebar {
    width: 100vw;
  }
  
  .order-toggle {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
  }
  
  .footer-content {
    padding: 0 16px;
  }
}

@media (min-width: 768px) {
  .order-toggle {
    display: none !important;
  }
  
  .order-sidebar {
    position: fixed;
    right: 0;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --border-color: #ffffff;
    --text-secondary: #ffffff;
    --text-muted: #cccccc;
  }
  
  .btn-ar,
  .icon-btn,
  .category-btn,
  .dish-card,
  .btn {
    border-width: 2px;
  }
}

*:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .header,
  .footer,
  .order-sidebar,
  .order-toggle,
  .toast-container,
  .modal,
  .dish-actions,
  .carousel-btn {
    display: none !important;
  }
  
  .main-content {
    padding: 0;
  }
  
  .dish-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .dish-card,
  .modal-content {
    background: white;
    border-color: #ccc;
  }
}