/* ====== MODERN QR MENU PLATFORM STYLES ====== */

/* Reset & Base Styles */
* { 
  box-sizing: border-box; 
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
}

:root { 
  --cart-collapsed: 60px;
  /* Modern Restaurant Theme - Rich & Elegant */
  --primary-color: #3b82f6;
  --primary-color-rgb: 59, 130, 246;
  --primary-hover: #2563eb;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  --primary-glow: 0 0 28px rgba(59, 130, 246, 0.18);
  --secondary-color: #14b8a6;
  --secondary-color-rgb: 20, 184, 166;
  --secondary-hover: #0d9488;
  --secondary-gradient: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
  --accent-color: #f59e0b;
  --accent-hover: #d97706;
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --danger-color: #ef4444;
  --danger-color-rgb: 239, 68, 68;
  --danger-hover: #dc2626;
  --danger-gradient: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  --success-color: #10b981;
  --success-color-rgb: 16, 185, 129;
  --success-hover: #059669;
  --warning-color: #f59e0b;
  --warning-color-rgb: 245, 158, 11;
  --warning-hover: #d97706;
  --info-color: #0ea5e9;
  --info-color-rgb: 14, 165, 233;
  --info-hover: #0284c7;
  
  /* Elegant Glass Effects */
  --glass-effect: blur(12px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.15);
  --glass-shine: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  --backdrop-blur: blur(20px);
  
  /* Refined Gray Scale */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-200-rgb: 229, 231, 235;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black: #000000;
  --white: #ffffff;
  
  /* Dark Mode Enhanced */
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --dark-card: #1e293b;
  --dark-border: #334155;
  --dark-text: #e2e8f0;
  --dark-text-muted: #94a3b8;
  --dark-glow: 0 0 40px rgba(59, 130, 246, 0.12);
  
  /* Refined Border Radiuses */
  --border-radius-xs: 6px;
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;
  
  /* Enhanced Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Subtle Inner Shadows */
  --shadow-inner-sm: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.08);
  
  /* Animations and Transitions */
  --transition-fast: all 0.15s ease;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-emphasis: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  
  /* Typography System */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: var(--font-sans);
  --font-body: var(--font-sans);
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */
  --text-5xl: 3rem;     /* 48px */
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* Font Weights */
  --font-thin: 100;
  --font-extralight: 200;
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
}

/* Typography Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: linear-gradient(145deg, var(--gray-50) 0%, var(--gray-100) 100%);
  color: var(--gray-900);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: var(--tracking-tight);
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-tight);
  margin-top: 0;
  margin-bottom: 0.5em;
  color: var(--gray-900);
}

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-muted { color: var(--gray-500); }

/* Add a subtle pattern overlay */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23000000' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.container { 
  max-width: 1440px; 
  margin: 0 auto; 
  padding: 32px 24px; 
  width: 100%; 
  overflow-x: hidden; 
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s var(--transition-emphasis);
  will-change: opacity, transform;
}

/* Page Transitions - Smooth page changes */
.page-transition-enter {
  opacity: 0;
  transform: translateY(15px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s, transform 0.5s var(--transition-emphasis);
}

.page-transition-exit {
  opacity: 1;
  transform: translateY(0);
}

.page-transition-exit-active {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.3s, transform 0.3s var(--transition-smooth);
}

/* Enhanced Animations */
@keyframes fadeIn {
  from { 
    opacity: 0;
    filter: blur(3px);
  }
  to { 
    opacity: 1; 
    filter: blur(0);
  }
}

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

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

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

/* Ensure content isn't hidden behind the collapsed cart */
.container { 
  padding-bottom: calc(var(--cart-collapsed) + 24px + env(safe-area-inset-bottom)); 
}

/* ====== LANDING PAGE STYLES ====== */

.landing-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.hero-container {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-content {
  margin-bottom: 60px;
}

.hero-icon {
  margin: 0 auto 32px;
  display: inline-block;
  filter: drop-shadow(0 12px 24px rgba(14, 165, 233, 0.25));
  animation: float 3s ease-in-out infinite;
}

.brand-logo {
  width: 120px;
  height: auto;
  max-width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

.brand-logo--hero {
  /* use fixed size to avoid vw jumps on Chrome/Firefox */
  width: 120px;
}

.brand-logo--admin {
  width: 72px;
}

.hero-icon:hover .brand-logo {
  transform: rotate(-2deg) scale(1.03);
}

.brand-logo .plate-outer {
  fill: #34495e;
  stroke: #2c3e50;
  stroke-width: 2.5;
}

.brand-logo .plate-inner {
  fill: #ecf0f1;
  stroke: #cfd8dc;
  stroke-width: 1.5;
}

.brand-logo .menu-icon rect {
  fill: #3498db;
  stroke: #2980b9;
  stroke-width: 2;
}

.brand-logo .menu-icon line {
  stroke: #eaf6ff;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.brand-logo .fork rect,
.brand-logo .knife rect,
.brand-logo .knife polygon {
  fill: #e67e22;
  stroke: #d35400;
  stroke-width: 1;
}

.brand-logo .knife polygon {
  stroke-linejoin: round;
}

.brand-logo .accent-line {
  stroke: #e74c3c;
  stroke-width: 3;
  stroke-linecap: round;
}

.brand-logo .accent-dot {
  fill: #e74c3c;
  opacity: 0.85;
}

@media (prefers-color-scheme: dark) {
  .brand-logo .plate-inner {
    fill: #1f2a36;
    stroke: #32465a;
  }

  .brand-logo .plate-outer {
    fill: #15202b;
    stroke: #243447;
  }

  .brand-logo .menu-icon rect {
    fill: #2f6cab;
    stroke: #214e7c;
  }

  .brand-logo .menu-icon line {
    stroke: #dbeafe;
  }

  .brand-logo .accent-dot {
    opacity: 0.95;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  /* use fixed rem to avoid vw jumps on Chrome/Firefox */
  font-size: 3rem;
  font-weight: var(--font-extrabold);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 24px;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  display: inline-block;
}

/* Add a subtle glow effect behind the text */
.hero-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  opacity: 0.06;
  filter: blur(20px);
  z-index: -1;
  border-radius: 50%;
  transform: scale(1.2);
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--gray-600);
  margin: 0 0 48px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
  letter-spacing: -0.01em;
  font-weight: var(--font-normal);
}

.feature-highlights {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 20px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
  font-size: 1.25rem;
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.action-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.action-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.action-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.action-card h3 {

.restaurant-listing {
  margin-top: 80px;
  text-align: left;
  position: relative;
}

.restaurant-listing::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(var(--bg-color-rgb), 0),
    rgba(var(--primary-color-rgb), 0.3),
    rgba(var(--secondary-color-rgb), 0.3),
    rgba(var(--bg-color-rgb), 0)
  );
}

.contact-highlight {
  margin: 80px auto 56px;
  max-width: 820px;
  padding: 0 20px;
}

.contact-card {
  background: linear-gradient(
    135deg, 
    rgba(14, 165, 233, 0.12) 0%, 
    rgba(34, 197, 94, 0.12) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--border-radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg),
    0 12px 32px -12px rgba(14, 165, 233, 0.3);
  border: 1px solid rgba(14, 165, 233, 0.2);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 65%
  );
  opacity: 0.4;
  pointer-events: none;
  animation: rotate 15s linear infinite;
  transform-origin: center;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}

.contact-header::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 3px;
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 16px -8px rgba(14, 165, 233, 0.6);
}

.contact-card h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--gray-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex: 1 1 280px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px -6px rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.3);
}

.contact-item-icon {
  font-size: 1.8rem;
  margin-top: 5px;
}

.contact-item-content {
  flex: 1;
}

.contact-item-content h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--gray-800);
  font-weight: 600;
}

.contact-card p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--gray-700);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-card a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 4px 2px;
}

.contact-card a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 0.3s ease;
  border-radius: 999px;
}

.contact-card a:hover {
  color: var(--secondary-color);
  transform: translateX(3px);
}

.contact-card a:hover::after {
  width: 100%;
}

.section-header {
  text-align: left;
  margin-bottom: 28px;
  position: relative;
}

.section-header::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg, 
    var(--primary-color), 
    var(--secondary-color)
  );
  margin-bottom: 16px;
  border-radius: 99px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  background: linear-gradient(
    90deg,
    var(--gray-900),
    var(--primary-color)
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-header p {
  margin: 0;
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.6;
}

.restaurant-search {
  max-width: 480px;
  margin: 0 0 36px;
}

.restaurant-search .search-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  padding: 14px 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-md),
    0 4px 20px -8px rgba(14, 165, 233, 0.25);
  flex: initial;
  min-width: 0;
  transition: all 0.3s ease;
}

.restaurant-search .search-container:focus-within {
  box-shadow: var(--shadow-lg),
    0 8px 24px -6px rgba(14, 165, 233, 0.3),
    0 0 0 3px rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.25);
  transform: translateY(-2px);
}

.restaurant-search .search-icon {
  font-size: 1.3rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.restaurant-search .search-container:focus-within .search-icon {
  opacity: 1;
  color: var(--primary-color);
}

.restaurant-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  width: 100%;
  color: var(--gray-800);
  font-weight: 500;
}

.restaurant-search input::placeholder {
  color: var(--gray-500);
  opacity: 0.8;
}

.dark .restaurant-search .search-container {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.restaurant-carousel {
  position: relative;
  margin: 56px 0;
  padding: 48px 24px;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.04) 0%, 
    rgba(147, 51, 234, 0.03) 25%,
    rgba(20, 184, 166, 0.03) 50%,
    rgba(245, 158, 11, 0.04) 100%);
  border-radius: var(--border-radius-xl);
  overflow: visible;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-viewport {
  position: relative;
  overflow: visible;
  padding: 0;
  overflow-anchor: none;
}

.restaurant-track {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 0;
  align-items: center;
  max-width: 100%;
}

.restaurant-track:active,
.restaurant-track.grabbing {
  cursor: default;
}

.restaurant-carousel::before {
  display: none;
}

@media (max-width: 768px) {
  .restaurant-carousel {
    margin: 40px 0;
    padding: 32px 16px;
  }
  
  .restaurant-track {
    gap: 32px;
  }
  
  .restaurant-card {
    max-width: 100% !important;
    margin: 0 8px !important;
  }
  
  .restaurant-card .card-body {
    padding: 28px 24px;
  }
  
  .restaurant-card:hover {
    transform: translateY(-8px) scale(1.005);
  }
  
  .restaurant-card.partner:hover {
    transform: translateY(-10px) scale(1.01);
  }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.8rem; }
  .hero-description { font-size: 1rem; }
  
  .restaurant-carousel {
    padding: 24px 12px;
  }
  
  .restaurant-card {
    margin: 0 4px !important;
  }
  
  .restaurant-card .card-body {
    padding: 24px 20px;
    gap: 16px;
  }
}



.restaurant-card {
  position: relative !important;
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  border-radius: calc(var(--border-radius-xl) + 4px) !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 250, 252, 0.96) 50%,
    rgba(255, 255, 255, 0.98) 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.15) !important;
  box-shadow: 
    0 32px 80px rgba(15, 23, 42, 0.08),
    0 8px 32px rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.6) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(12px) !important;
}

.restaurant-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(14, 165, 233, 0.12) 45%,
    rgba(34, 197, 94, 0.12) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.restaurant-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 
    0 48px 100px rgba(15, 23, 42, 0.12),
    0 16px 40px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.4);
}

.restaurant-card:hover::before {
  opacity: 1;
}

.restaurant-card > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(220px, 32vw, 320px);
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.restaurant-card:hover > img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.restaurant-card > .restaurant-cover-fallback {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(220px, 32vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top,
    rgba(59, 130, 246, 0.25) 0%,
    rgba(14, 165, 233, 0.2) 50%,
    rgba(248, 250, 252, 0.9) 100%);
  color: var(--primary-color);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.restaurant-card:hover > .restaurant-cover-fallback {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.restaurant-cover-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
  pointer-events: none;
  animation: lightSweep 6s ease-in-out infinite alternate;
}

.restaurant-card:hover .restaurant-cover-fallback::after {
  opacity: 1;
}

.restaurant-phone {
  color: inherit;
  text-decoration: none;
  font-weight: var(--font-semibold);
}

.restaurant-phone:hover,
.restaurant-phone:focus {
  color: var(--primary-color);
  text-decoration: underline;
}

/* პარტნიორი რესტორნების სპეც-სტილი */
.restaurant-card.partner {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 
    0 36px 90px rgba(147, 51, 234, 0.15),
    0 12px 36px rgba(168, 85, 247, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 255, 0.96) 50%,
    rgba(252, 248, 255, 0.98) 100%);
}
.restaurant-card.partner::before {
  background: linear-gradient(135deg,
    rgba(168, 85, 247, 0.15) 0%,
    rgba(99, 102, 241, 0.12) 35%,
    rgba(59, 130, 246, 0.10) 100%);
}
.restaurant-card.partner:hover {
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-16px) scale(1.02);
  box-shadow: 
    0 56px 120px rgba(147, 51, 234, 0.18),
    0 20px 50px rgba(168, 85, 247, 0.12),
    0 0 0 1px rgba(168, 85, 247, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.restaurant-badge.partner {
  background: linear-gradient(135deg, 
    #a855f7 0%, 
    #8b5cf6 25%, 
    #6366f1 75%, 
    #4f46e5 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 24px rgba(168, 85, 247, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

@keyframes lightSweep {
  0% { transform: rotate(0deg); opacity: 0; }
  30% { opacity: 0.8; }
  70% { opacity: 0.8; }
  100% { transform: rotate(360deg); opacity: 0; }
}

.restaurant-card .card-body {
  position: relative;
  z-index: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.restaurant-card-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.restaurant-card-header::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 99px;
  top: -10px;
  left: 0;
  opacity: 0;
  transform: scaleX(0.7);
  transform-origin: left;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.restaurant-card:hover .restaurant-card-header::before {
  opacity: 1;
  transform: scaleX(1);
}

.restaurant-card h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.restaurant-card:hover h3 {
  color: var(--primary-color);
}

.restaurant-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.6;
}

.restaurant-description {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

.restaurant-description::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30%;
  height: 1.6em;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--white) 80%);
}

.restaurant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-500);
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.15);
  margin-top: 4px;
}

.restaurant-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.restaurant-card:hover .restaurant-meta span {
  color: var(--gray-700);
}

.restaurant-meta span:hover {
  color: var(--primary-color);
  transform: translateX(2px);
}

.restaurant-meta .icon {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* რესტორნის ბეჯი სტატუსისთვის */
.restaurant-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.restaurant-badge.open {
  background: rgba(34, 197, 94, 0.95);
  color: white;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.restaurant-badge.closed {
  background: rgba(239, 68, 68, 0.95);
  color: white;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.restaurant-card:hover .restaurant-badge {
  transform: translateY(-4px);
}

/* რესტორნის რეიტინგი */
.restaurant-rating {
  margin: 2px 0 8px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.restaurant-rating .star {
  color: #f59e0b;
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.restaurant-rating .star.empty {
  color: rgba(245, 158, 11, 0.3);
}

.restaurant-rating .star.half {
  position: relative;
  overflow: hidden;
}

.restaurant-rating .star.half::before {
  content: '★';
  position: absolute;
  width: 50%;
  overflow: hidden;
  color: #f59e0b;
}

.restaurant-card:hover .restaurant-rating .star {
  transform: scale(1.1);
}

.restaurant-rating .rating-value {
  margin-left: 6px;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.85rem;
}

/* რესტორნის კატეგორიის/კუხნის ტეგები */
.restaurant-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 999px;
  padding: 4px 12px;
  /* allow only horizontal panning inside the carousel area */
  touch-action: pan-x;
  /* stop overscroll from bubbling to the page */
  overscroll-behavior: contain;
  font-weight: 500;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  max-width: fit-content;
}

.restaurant-card:hover .restaurant-tag {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.25);
}

.restaurant-tag .tag-icon {
  font-size: 1rem;
}

.restaurant-card .card-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
  padding-top: 8px;
}

.restaurant-card .card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, 
    var(--primary-color) 0%, 
    var(--secondary-color) 100%
  );
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 20px -10px rgba(14, 165, 233, 0.5),
              0 0 0 2px rgba(14, 165, 233, 0.08);
  position: relative;
  overflow: hidden;
}

.restaurant-card .card-actions a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
}

.restaurant-card .card-actions a:hover {
  transform: translateX(6px) translateY(-2px);
  box-shadow: 0 14px 24px -8px rgba(14, 165, 233, 0.6),
              0 0 0 3px rgba(14, 165, 233, 0.15);
}

.restaurant-card .card-actions a:hover::before {
  left: 100%;
}

.restaurant-card .card-actions a::after {
  content: '→';
  opacity: 0;
  transform: translateX(-12px);
  transition: all 0.3s ease;
}

.restaurant-card .card-actions a:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

.dark .restaurant-card .card-actions a {
  box-shadow: 0 10px 20px -10px rgba(14, 165, 233, 0.3),
              0 0 0 2px rgba(14, 165, 233, 0.2);
}

.restaurant-loading,
.restaurant-empty {
  max-width: 460px;
  margin: 40px auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.restaurant-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: inline-block;
  position: relative;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(14, 165, 233, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

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

/* დამატებითი ანიმაციები რესტორნის ბარათებისთვის */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}



@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.restaurant-empty, 
.restaurant-loading {
  animation: fadeIn 0.4s ease-out;
}

.restaurant-empty::before,
.restaurant-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shine 3s infinite ease-in-out;
}

@keyframes shine {
  to { left: 100%; }
}
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--gray-900);
}

.action-card p {
  color: var(--gray-600);
  margin: 0 0 24px;
  line-height: 1.5;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 14px;
}

.action-btn:hover {
  background: var(--primary-hover);
  transform: translateX(4px);
}

.action-btn.secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.action-btn.secondary:hover {
  background: var(--gray-200);
}

/* ====== ADMIN SECTION STYLES ====== */

.admin-section {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.admin-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.admin-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.admin-logo {
  flex-shrink: 0;
}

.admin-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin: 4px 0 0;
  font-size: 1rem;
}

/* Authentication Card */
.auth-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  max-width: 500px;
  margin: 0 auto;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 8px;
}

.auth-card-header p {
  color: var(--gray-600);
  margin: 0;
}

/* Auth form spacing handled by individual form groups */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.input-container {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  z-index: 1;
}

.input-container input {
  width: 100%;
  padding: 12px 12px 12px 44px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: all 0.2s ease;
  background: var(--white);
}

.input-container input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.auth-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--border-radius);
  font-size: 14px;
  text-align: center;
}

/* ====== DASHBOARD STYLES ====== */

.dashboard {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-title-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px;
}

.dashboard-title-section p {
  color: var(--gray-600);
  margin: 0;
  font-size: 1rem;
}

.dashboard-actions {
  flex-shrink: 0;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.dashboard-card:hover {
  box-shadow: var(--shadow-lg);
}

.dashboard-card.full-width {
  grid-column: 1 / -1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.card-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
}

.cover-preview {
  width: 100%;
  min-height: 120px;
  border: 1px dashed var(--gray-300);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
  overflow: hidden;
}

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

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: 0.2s;
  border-radius: 28px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.switch input:checked + .slider {
  background-color: var(--primary-color);
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

.form-section {
  margin-bottom: 24px;
}

.form-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* QR Code Card Specific Styles */
.qr-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.qr-settings {
  min-width: 0;
}

.qr-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.qr-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-code-container {
  padding: 16px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.qr-info {
  margin-top: 16px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.qr-info small {
  color: var(--gray-600);
  font-size: 13px;
}

/* Dish Management Styles - spacing handled by individual form sections */

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.dish-list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Category Management Styles */
.category-edit-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.edit-card-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 16px;
}

/* Category form spacing handled by individual form groups */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* Form Message Styles */
.form-message {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--border-radius);
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: block;
}

.form-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  display: block;
}

/* Admin Footer */
.admin-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.footer-content p {
  color: var(--gray-600);
  margin: 0 0 4px;
  font-size: 14px;
}

.footer-content small {
  color: var(--gray-500);
  font-size: 12px;
}

/* Public Site Footer */
.site-footer {
  margin: 60px 0 20px;
  text-align: center;
}
.site-footer .footer-content p {
  margin: 4px 0;
  color: var(--gray-600);
}
.site-footer .footer-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}
.site-footer .footer-content a:hover {
  text-decoration: underline;
}

/* Back to home button in auth card */
.back-to-home {
  margin-bottom: 20px;
  align-self: flex-start;
}

/* ====== BUTTON STYLES ====== */

/* Modern Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--border-radius-full);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--transition-emphasis);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  line-height: 1.4;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

/* Primary Button - Gradient with Hover Effect */
.btn.primary {
  background: var(--primary-gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.25);
  position: relative;
}

.btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
  filter: brightness(1.1);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(var(--primary-color-rgb), 0.35);
}

.btn.primary:hover::before {
  opacity: 1;
}

/* Ripple Effect */
.btn.primary:active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  border-radius: 100%;
  transform: scale(1) translate(-50%, -50%);
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0) translate(-50%, -50%);
    opacity: 0.8;
  }
  100% {
    transform: scale(30) translate(-50%, -50%);
    opacity: 0;
  }
}

/* Secondary Button - Outline with Subtle Hover */
.btn.secondary {
  background: var(--white);
  color: var(--gray-700);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.btn.secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--gray-50), var(--gray-100));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
}

.btn.secondary:hover {
  border-color: var(--gray-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--gray-800);
}

.btn.secondary:hover::before {
  opacity: 1;
}

/* Success Button */
.btn.success {
  background: var(--success-color);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(var(--success-color-rgb), 0.25);
}

.btn.success:hover {
  background: var(--success-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--success-color-rgb), 0.3);
}

/* Danger Button */
.btn.danger {
  background: var(--danger-color);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(var(--danger-color-rgb), 0.25);
}

.btn.danger:hover {
  background: var(--danger-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--danger-color-rgb), 0.3);
}

/* Ghost Button */
.btn.ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
}

.btn.ghost:hover {
  background: rgba(var(--gray-200-rgb), 0.5);
  color: var(--gray-900);
}

.btn.ghost.ghost-danger {
  color: var(--danger-color);
}

.btn.ghost.ghost-danger:hover {
  background: rgba(var(--danger-color-rgb), 0.12);
  color: var(--danger-hover);
}

/* Button Sizes */
.btn.btn-xs {
  padding: 6px 12px;
  font-size: var(--text-xs);
}

.btn.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

.btn.btn-lg {
  padding: 14px 24px;
  font-size: var(--text-base);
}

/* Full Width Button */
.btn.full-width {
  width: 100%;
}

/* Disabled Button */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

/* ====== INPUT STYLES ====== */

/* Form Controls */
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-full);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  line-height: 1.5;
  transition: all 0.2s var(--transition-smooth);
  background: var(--white);
  color: var(--gray-800);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Focus States with Animation */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
  background-color: white;
}

/* Select Arrow Styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236B7280' d='M4.293 5.293a1 1 0 011.414 0L8 7.586l2.293-2.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Placeholder Styling */
::placeholder {
  color: var(--gray-400);
  opacity: 1;
}

/* File Input */
input[type="file"] {
  padding: 10px;
  font-size: var(--text-sm);
  cursor: pointer;
}

/* Custom File Input Button */
input[type="file"]::file-selector-button {
  border: 1px solid var(--gray-300);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  background-color: var(--gray-100);
  color: var(--gray-800);
  margin-right: 12px;
  transition: all 0.2s ease;
}

input[type="file"]:hover::file-selector-button {
  background-color: var(--gray-200);
}

/* Search Input */
.search-input {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.86 3.86a1 1 0 0 0 1.415-1.414l-3.86-3.86zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 16px;
}

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

/* ====== RESPONSIVE DESIGN ====== */

@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; }
  .hero-description { font-size: 1.125rem; }
  
  .feature-highlights {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .action-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .action-card {
    padding: 24px;
  }

  .contact-highlight {
    margin: 40px 0 32px;
  }

  .restaurant-listing {
    margin-top: 48px;
  }

  .section-header {
    text-align: center;
  }

  .restaurant-search {
    width: 100%;
  }
  .admin-header-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .admin-title {
    font-size: 1.5rem;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .qr-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .card-actions {
    flex-direction: column;
  }
  
  .btn.full-width-mobile {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }
  
  .hero-title { font-size: 1.9rem; }
  
  .dashboard-card {
    padding: 16px;
  }
  
  .auth-card {
    padding: 24px;
  }

  .restaurant-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 280px;
  }

  .restaurant-card img,
  .restaurant-cover-fallback {
    height: 180px;
  }
  
  /* საკონტაქტო ბარათის პატარა ეკრანების სტილები */
  .contact-highlight {
    margin: 50px auto 40px;
    padding: 0 10px;
  }
  
  .contact-card {
    padding: 20px;
  }
  
  .contact-card h2 {
    font-size: 1.6rem;
  }
  
  .contact-item {
    padding: 16px;
  }
  
  .contact-item-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }
  
  .contact-card p {
    font-size: 1rem;
  }
}

/* დიდი ეკრანებისთვის */
@media (min-width: 1200px) {
  .restaurant-card img,
  .restaurant-cover-fallback {
    height: 180px; /* შევამციროთ სიმაღლე დიდ ეკრანებზე */
    max-height: 25vh;
  }
}

/* საშუალო ეკრანებისთვის */
@media (min-width: 768px) and (max-width: 1199px) {
  .restaurant-card img,
  .restaurant-cover-fallback {
    height: 200px;
    max-height: 28vh;
  }
}

/* ====== LEGACY COMPATIBILITY STYLES ====== */

/* Legacy card and grid styles for menu system compatibility */
.card { 
  background: rgba(255, 255, 255, 0.98); 
  border: 1px solid var(--gray-200); 
  border-radius: var(--border-radius); 
  padding: 28px; 
  margin: 20px 0; 
  box-shadow: var(--shadow-md); 
  transition: var(--transition-smooth);
  backdrop-filter: var(--glass-effect);
  animation: fadeInUp 0.5s var(--transition-emphasis);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
  transform: translateZ(0);
}

/* Add subtle gradient border */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    to bottom right, 
    rgba(255, 255, 255, 0.8), 
    rgba(255, 255, 255, 0.4), 
    rgba(var(--primary-color-rgb), 0.2),
    rgba(var(--secondary-color-rgb), 0.2)
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Elegant shine effect */
.card::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.2) 25%, 
    rgba(255, 255, 255, 0) 30%
  );
  opacity: 0;
  transform: rotate(30deg);
  transition: all 1.2s var(--transition-smooth);
  pointer-events: none;
}

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

.card:hover::after {
  opacity: 1;
  transform: translateY(100%) rotate(30deg);
}

/* Enhanced hover effect - subtle glow */
.card:hover {
  box-shadow: 
    var(--shadow-lg),
    0 0 20px rgba(var(--primary-color-rgb), 0.08),
    0 0 10px rgba(var(--primary-color-rgb), 0.04);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px);
  }
  80% {
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  box-shadow: var(--shadow-lg), var(--primary-glow);
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.2);
}

.card:hover::after {
  left: 0;
  opacity: 1;
}

.row { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  flex-wrap: wrap; 
}

.actions { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
}

.grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
  gap: 24px; 
  margin: 24px 0;
  position: relative;
  z-index: 1;
}

.grid.list-view { 
  grid-template-columns: 1fr; 
}

.item { 
  background: rgba(255, 255, 255, 0.95); 
  border: 1px solid var(--gray-200); 
  border-radius: var(--border-radius); 
  overflow: hidden; 
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--glass-effect);
  animation: fadeInUp 0.6s ease-out;
  position: relative;
}

.item:hover { 
  transform: translateY(-4px) scale(1.02); 
  box-shadow: var(--shadow-xl), 0 0 0 2px var(--primary-color);
  border-color: transparent;
  z-index: 2;
}

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

.item .meta { 
  min-width: 0; 
}

.item .meta strong { 
  display: block; 
  line-height: 1.25; 
  overflow-wrap: anywhere; 
  word-break: break-word; 
}

.grid.list-view .item { 
  display: flex; 
  flex-direction: row; 
}

.grid.list-view .item img { 
  width: 120px; 
  height: 120px; 
  flex-shrink: 0; 
}

.meta { 
  padding: 16px; 
  transition: all 0.3s ease;
}

.item:hover .meta {
  background-color: rgba(99, 102, 241, 0.03);
}

.qty-inline { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  border: 1px solid var(--gray-300); 
  border-radius: 10px; 
  padding: 4px 6px; 
  background: var(--white); 
}

.qty-inline .qty-btn { 
  width: 28px; 
  height: 28px; 
  border-radius: 8px; 
  border: 1px solid var(--gray-300); 
  background: var(--gray-50); 
  color: var(--gray-800); 
  cursor: pointer; 
}

.qty-inline .qty-btn:active { 
  transform: scale(0.98); 
}

.qty-inline .qty-input { 
  width: 54px; 
  text-align: center; 
  border: none; 
  outline: none; 
  font-weight: 600; 
  font-size: 14px; 
  color: var(--gray-800); 
  background: transparent; 
  padding: 2px 4px; 
}

.price { 
  font-weight: 700; 
  color: #059669; 
  font-size: 18px; 
}

.badge { 
  font-size: 12px; 
  background: var(--gray-100); 
  padding: 4px 8px; 
  border-radius: 999px; 
  color: var(--gray-500); 
}

small.muted { 
  color: var(--gray-500); 
}

hr.sep { 
  border: 0; 
  border-top: 1px solid var(--gray-200); 
  margin: 12px 0; 
}

.qr { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
}

/* Menu Header Styles */
.menu-header { 
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); 
  border: none; 
}

.menu-header h1 { 
  color: #0f172a; 
  text-shadow: 0 1px 2px rgba(255,255,255,0.25); 
  overflow-wrap: anywhere; 
  word-break: break-word; 
  line-height: 1.2; 
}

.menu-header .row > div { 
  min-width: 0; 
}

.language-selector select { 
  width: auto; 
  min-width: 120px; 
}

.menu-header .menu-icons { 
  display: flex; 
  gap: 8px; 
  align-items: center; 
}

.icon-btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  width: 40px; 
  height: 40px; 
  border-radius: var(--border-radius-full); 
  border: 1px solid rgba(255,255,255,0.25); 
  background: rgba(255,255,255,0.15); 
  color: var(--gray-800); 
  cursor: pointer; 
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  transition: all 0.2s var(--transition-smooth);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  box-shadow: var(--shadow-sm);
}

.icon-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.icon-btn:hover { 
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.icon-btn:hover::before {
  opacity: 1;
}

.icon-btn:active {
  transform: translateY(0);
}

.menu-controls { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  align-items: center; 
}

.search-container { 
  flex: 2; 
  min-width: 200px; 
}

.filter-container { 
  flex: 1; 
  min-width: 200px; 
}

.view-controls { 
  flex: 0; 
  display: flex; 
  gap: 4px; 
}

.view-controls .btn { 
  padding: 8px 12px; 
  font-size: 12px; 
}

/* Category page specific styles */
.category-controls { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  align-items: center; 
}

.category-controls .search-container {
  flex: 2;
  min-width: 200px;
}

.category-controls .language-selector {
  flex: 0;
  min-width: 140px;
}

.category-controls .view-controls {
  flex: 0;
  display: flex;
  gap: 4px;
}

/* Menu Stats */
.menu-stats { 
  background: var(--gray-50); 
  border-color: var(--gray-200); 
}

.stat-item { 
  text-align: center; 
  flex: 1; 
}

.stat-item strong { 
  display: block; 
  font-size: 20px; 
  color: var(--primary-color); 
}

.stat-item small { 
  color: var(--gray-500); 
  font-size: 12px; 
}

/* Empty and Loading States */
.empty-state, .loading-state { 
  text-align: center; 
  padding: 40px 20px; 
}

.empty-icon { 
  font-size: 48px; 
  margin-bottom: 16px; 
}

.loading-spinner { 
  width: 40px; 
  height: 40px; 
  margin: 0 auto 16px; 
  border: 4px solid var(--gray-200); 
  border-top: 4px solid var(--primary-color); 
  border-right: 4px solid transparent;
  border-radius: 50%; 
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; 
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

/* Legacy Footer */
footer { 
  margin: 40px 0 20px; 
  text-align: center; 
}

/* Animation for dish cards */
.item { 
  animation: fadeInUp 0.3s ease-out; 
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(20px);
    filter: blur(4px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
    filter: blur(0);
  }
}

/* No image placeholder */
.no-image { 
  width: 100%; 
  height: 200px; 
  background: var(--gray-100); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 48px; 
  color: var(--gray-400);
}

.grid.list-view .no-image { 
  width: 120px; 
  height: 120px; 
  font-size: 32px; 
  flex-shrink: 0; 
}

/* Categories Grid */
.categories-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 24px; 
  margin-top: 28px;
  animation: fadeIn 0.5s var(--transition-emphasis);
}

/* Staggered Animations for Grid Items */
.categories-grid .category-card:nth-child(1) { animation-delay: 0.05s; }
.categories-grid .category-card:nth-child(2) { animation-delay: 0.1s; }
.categories-grid .category-card:nth-child(3) { animation-delay: 0.15s; }
.categories-grid .category-card:nth-child(4) { animation-delay: 0.2s; }
.categories-grid .category-card:nth-child(5) { animation-delay: 0.25s; }
.categories-grid .category-card:nth-child(6) { animation-delay: 0.3s; }
.categories-grid .category-card:nth-child(7) { animation-delay: 0.35s; }
.categories-grid .category-card:nth-child(8) { animation-delay: 0.4s; }
.categories-grid .category-card:nth-child(9) { animation-delay: 0.45s; }
.categories-grid .category-card:nth-child(10) { animation-delay: 0.5s; }

.category-card { 
  background: var(--white); 
  border: 1px solid var(--gray-200); 
  border-radius: var(--border-radius-lg); 
  overflow: hidden; 
  transition: all 0.3s var(--transition-emphasis);
  cursor: pointer;
  animation: fadeInUp 0.3s ease-out;
  position: relative;
  box-shadow: var(--shadow-md);
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

/* Add subtle gradient border */
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    to bottom right, 
    rgba(255, 255, 255, 0.8), 
    rgba(var(--primary-color-rgb), 0.2), 
    rgba(var(--secondary-color-rgb), 0.2)
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.category-card:hover { 
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.category-card:hover::before {
  opacity: 1;
}

.category-image { 
  width: 100%; 
  height: 180px; 
  overflow: hidden; 
}

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

.category-image .no-image { 
  height: 180px; 
  font-size: 56px; 
}

.category-info { 
  padding: 20px; 
  position: relative; 
}

.category-info h3 { 
  margin: 0 0 8px; 
  font-size: 20px; 
  color: var(--gray-900); 
  overflow-wrap: anywhere; 
  word-break: break-word;
}

.category-info p { 
  margin: 0; 
  color: var(--gray-500); 
  font-size: 14px; 
}

.category-arrow { 
  position: absolute; 
  top: 20px; 
  right: 20px; 
  font-size: 20px; 
  color: var(--primary-color); 
  font-weight: bold;
}

/* Category Page Styles */
.category-header { 
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); 
  color: white; 
  border: none; 
  margin-bottom: 20px; 
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.back-navigation { 
  margin-bottom: 16px; 
}

.back-navigation .back-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: transparent !important;
  border: none !important;
  padding: 0;
  margin: 0;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  border-radius: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.category-hero { 
  display: flex; 
  gap: 20px; 
  align-items: center; 
  margin-bottom: 20px; 
}

.category-hero-info { 
  flex: 1 1 auto; 
  min-width: 0; 
}

/* Restaurant name top line on category page */
.restaurant-name-top { 
  margin-bottom: 4px; 
}

.restaurant-name-top-text { 
  margin: 0; 
  font-size: 18px; 
  font-weight: 600; 
  letter-spacing: 0.2px; 
  color: #0f172a; 
  text-shadow: 0 1px 1px rgba(255,255,255,0.25); 
}

/* Absolute-corner layout for category view controls inside the header */
.category-page-header {
  position: relative;
  padding-top: 56px;
  padding-bottom: 64px;
}

.category-page-header .category-controls { 
  position: static; 
}

.category-page-header .search-container {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
}

.category-page-header .view-toggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
}

.category-page-header .view-toggle .btn {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--border-radius);
  padding: 8px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Subcategory styles */
.subcat-mobile-btn { 
  display: none !important; 
}

.subcat-overlay { 
  position: fixed; 
  right: 14px; 
  bottom: 74px; 
  z-index: 2300; 
  background: linear-gradient(180deg, var(--white), var(--gray-50)); 
  border-radius: var(--border-radius); 
  box-shadow: var(--shadow-xl); 
  padding: 12px; 
  width: 320px; 
  max-width: calc(100% - 28px); 
}

.subcat-overlay-inner { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.subcat-overlay-header { 
  font-weight: 700; 
  margin-bottom: 6px; 
}

.subcat-overlay-list { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  max-height: 320px; 
  overflow: auto; 
}

.chip { 
  display: inline-block; 
  padding: 8px 12px; 
  border-radius: 999px; 
  background: var(--gray-100); 
  border: 1px solid var(--gray-200); 
  color: var(--gray-900); 
  cursor: pointer; 
  white-space: normal; 
  word-break: break-word; 
  overflow-wrap: anywhere; 
  text-align: left; 
}

.chip:hover { 
  background: #e6f6ff; 
}

/* Cart styles for compatibility */
.subcat-mobile-btn::before { 
  content: '\25BE';
  display: block; 
  font-weight: 700; 
  color: #ff6a00; 
  background: linear-gradient(90deg, #ff9a00 0%, #ff2d00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 6px rgba(255,120,0,0.85), 0 0 14px rgba(255,200,0,0.45);
}

.cart-summary-right .subcat-mobile-btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  margin-left: 10px; 
  background: rgba(255,255,255,0.06); 
  color: var(--white); 
  width: 34px; 
  height: 34px; 
  border-radius: 8px; 
}

.cart-summary-right .subcat-mobile-btn::before { 
  content: ''; 
  width: 10px; 
  height: 10px; 
  border-radius: 2px; 
  background: linear-gradient(180deg, #06b6d4, var(--primary-color)); 
  display: block; 
}

.cart-summary-right { 
  position: relative; 
}

.cart-summary-right .subcat-mobile-btn { 
  position: absolute; 
  right: -58px; 
  top: -24px; 
  width: 36px; 
  height: 36px; 
  background: transparent; 
  color: inherit; 
  border-radius: 10px; 
  box-shadow: none; 
  border: 1px solid rgba(15,23,42,0.14); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  backdrop-filter: none; 
  -webkit-backdrop-filter: none; 
}
.cart-summary-right .subcat-mobile-btn:hover {
  border-color: rgba(15,23,42,0.32);
  background: rgba(15,23,42,0.02);
}

.cart-summary-right .subcat-mobile-btn::before { 
  width: 12px; 
  height: 12px; 
  border-radius: 3px; 
  background: linear-gradient(180deg, #06b6d4, var(--primary-color)); 
}

/* Dark theme adjustments for cart handle */
html[data-theme="dark"] .cart-summary-right .subcat-mobile-btn {
  border-color: rgba(229,231,235,0.22);
}
html[data-theme="dark"] .cart-summary-right .subcat-mobile-btn:hover {
  border-color: rgba(229,231,235,0.38);
  background: rgba(255,255,255,0.04);
}

/* Right slide-out drawer for subcategories */
.subcat-drawer { 
  position: fixed; 
  right: 0; 
  top: 0; 
  bottom: 0; 
  width: 84%; 
  max-width: 360px; 
  transform: translateX(100%); 
  transition: transform 260ms cubic-bezier(.22,.9,.32,1); 
  background: linear-gradient(180deg, var(--white), var(--gray-50)); 
  z-index: 2600; 
  box-shadow: -12px 0 30px rgba(0,0,0,0.28); 
  padding: 16px 12px; 
  display: flex; 
  flex-direction: column; 
}

.subcat-drawer.open { 
  transform: translateX(0); 
}

.subcat-drawer .drawer-handle { 
  position: absolute; 
  left: -44px; 
  top: 50%; 
  transform: translateY(-50%); 
  width: 44px; 
  height: 120px; 
  background: transparent; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.subcat-drawer .drawer-close { 
  position: absolute; 
  left: -40px; 
  top: 12px; 
  width: 36px; 
  height: 36px; 
  border-radius: 8px; 
  background: var(--white); 
  box-shadow: var(--shadow-lg); 
  border: 1px solid rgba(16,24,40,0.06); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.subcat-drawer h3 { 
  margin: 0 0 8px 0; 
  font-size: 16px; 
}

.subcat-drawer .drawer-list { 
  overflow: auto; 
  padding-top: 8px; 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.subcat-drawer .drawer-item { 
  padding: 10px 12px; 
  border-radius: 10px; 
  background: var(--white); 
  border: 1px solid #eef2ff; 
  cursor: pointer; 
}

.subcat-drawer .drawer-item:hover { 
  background: #f1f5ff; 
}

/* ====== DARK THEME COMPATIBILITY ====== */

/* Enhanced Dark Mode */
html[data-theme="dark"] body { 
  background: linear-gradient(135deg, var(--dark-bg) 0%, #151e2d 70%, #1a1a2e 100%); 
  color: var(--dark-text); 
  background-size: 200% 200%;
  animation: dark-gradient-animation 30s ease infinite;
}

html[data-theme="dark"]::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23FFFFFF' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

@keyframes dark-gradient-animation {
  0% { background-position: 0% 25%; }
  50% { background-position: 100% 75%; }
  100% { background-position: 0% 25%; }
}

/* Dark Mode Cards with Subtle Glow */
html[data-theme="dark"] .card { 
  background: rgba(31, 41, 55, 0.85); 
  border-color: rgba(55, 65, 81, 0.65);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(59, 130, 246, 0.08);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

/* Subtle shine effect */
html[data-theme="dark"] .card::before {
  background: linear-gradient(
    to bottom right, 
    rgba(255, 255, 255, 0.1), 
    rgba(255, 255, 255, 0.05), 
    rgba(59, 130, 246, 0.05),
    rgba(20, 184, 166, 0.05)
  );
}

html[data-theme="dark"] .item { 
  background: rgba(30, 30, 46, 0.95); 
  border-color: var(--dark-border);
  backdrop-filter: blur(20px);
}

/* Dark Mode Category Cards */
html[data-theme="dark"] .category-card { 
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.9), rgba(30, 30, 46, 0.9)); 
  border-color: rgba(55, 65, 81, 0.65); 
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.25),
    0 0 40px rgba(59, 130, 246, 0.08);
}

/* Adjust the gradient border for dark mode */
html[data-theme="dark"] .category-card::before {
  background: linear-gradient(
    to bottom right, 
    rgba(255, 255, 255, 0.12), 
    rgba(59, 130, 246, 0.15), 
    rgba(20, 184, 166, 0.12)
  );
  opacity: 0.8;
}

html[data-theme="dark"] .category-card:hover::before {
  opacity: 1;
}

html[data-theme="dark"] .no-image { 
  background: rgba(31, 41, 55, 0.8); 
  color: #94a3b8;
  backdrop-filter: blur(10px); 
  border: 1px dashed rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .price { 
  color: #34d399;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: var(--font-medium);
}

html[data-theme="dark"] .menu-header { 
  background: linear-gradient(135deg, #1e40af 0%, #065f46 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-color: rgba(55, 65, 81, 0.6);
}

html[data-theme="dark"] .category-header { 
  background: linear-gradient(135deg, #1e40af 0%, #065f46 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-color: rgba(55, 65, 81, 0.6);
}

html[data-theme="dark"] .category-page-header .view-toggle .btn, 
html[data-theme="dark"] .category-controls .search-container .icon-btn, 
html[data-theme="dark"] .icon-btn { 
  border-color: rgba(255,255,255,0.15); 
  background: rgba(255,255,255,0.08);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .icon-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .btn.primary {
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.35);
}

html[data-theme="dark"] .btn.secondary {
  background: rgba(31, 41, 55, 0.7);
  border-color: rgba(75, 85, 99, 0.6);
  color: var(--gray-200);
}

html[data-theme="dark"] .btn.secondary:hover {
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Form Controls in Dark Mode */
html[data-theme="dark"] input, 
html[data-theme="dark"] select, 
html[data-theme="dark"] textarea { 
  background: #0b1320; 
  color: #e5e7eb; 
  border-color: var(--dark-border); 
}

html[data-theme="dark"] .category-info h3 { 
  color: #e5e7eb; 
}

html[data-theme="dark"] .category-info p { 
  color: #94a3b8; 
}

html[data-theme="dark"] .category-arrow { 
  color: #38bdf8; 
}

html[data-theme="dark"] .restaurant-name-top-text { 
  color: var(--white); 
  text-shadow: 0 1px 2px rgba(0,0,0,0.35); 
}

html[data-theme="dark"] .menu-header h1 { 
  color: var(--white) !important; 
  text-shadow: 0 1px 2px rgba(0,0,0,0.5); 
  overflow-wrap: anywhere; 
  word-break: break-word; 
}

html[data-theme="dark"] .qty-inline { 
  border-color: var(--gray-600); 
  background: var(--dark-card); 
}

html[data-theme="dark"] .qty-inline .qty-btn { 
  border-color: var(--gray-600); 
  background: var(--gray-800); 
  color: #e5e7eb; 
}

html[data-theme="dark"] .qty-inline .qty-input { 
  color: #e5e7eb; 
}

html[data-theme="dark"] .subcat-drawer { 
  background: #0b1220; 
  color: #e5e7eb; 
}

html[data-theme="dark"] .subcat-drawer .drawer-item { 
  background: #071018; 
  border-color: var(--dark-border); 
  color: #e5e7eb; 
}

html[data-theme="dark"] .subcat-drawer .drawer-item:hover { 
  background: var(--dark-card); 
}

html:not([data-theme="dark"]) .subcat-drawer { 
  background: linear-gradient(180deg, var(--white), var(--gray-50)); 
  color: var(--gray-900); 
}

html:not([data-theme="dark"]) .subcat-drawer .drawer-item { 
  background: var(--white); 
  border-color: #eef2ff; 
  color: var(--gray-900); 
}

/* ====== RESPONSIVE LEGACY OVERRIDES ====== */

@media (max-width: 420px) {
  .subcat-mobile-btn { 
  .hero-title { font-size: 2rem; }
    height: 32px; 
    line-height: 32px; 
  }
}

/* Menu Header Styles */
.menu-header { background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%); border:none; }
.menu-header h1 { color:#0f172a; text-shadow: 0 1px 2px rgba(255,255,255,0.25); overflow-wrap:anywhere; word-break:break-word; line-height:1.2; }
html[data-theme="dark"] .menu-header { background: linear-gradient(135deg, #0b74bd 0%, #1d8f56 100%); }
html[data-theme="dark"] .menu-header h1 { color:#ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5); overflow-wrap:anywhere; word-break:break-word; }
/* Allow long titles to wrap inside header layout */
.menu-header .row > div { min-width: 0; }
.language-selector select { width:auto; min-width:120px; }
.menu-header .menu-icons { display:flex; gap:8px; align-items:center; }
.icon-btn { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:12px; border:1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.18); color:#fff; cursor:pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.icon-btn:hover { background: rgba(255,255,255,0.28); }
html[data-theme="dark"] body { background:#0b0f14; color:#e5e7eb; }
.card { background:#fff; }
html[data-theme="dark"] .card { background:#0f1720; border-color:#1f2937; box-shadow: 0 2px 4px rgba(0,0,0,0.5); }
html[data-theme="dark"] .item { background:#0f1720; border-color:#1f2937; }
html[data-theme="dark"] .category-card { background:#0f1720; border-color:#1f2937; }
html[data-theme="dark"] .no-image { background:#111827; color:#6b7280; }
html[data-theme="dark"] .price { color:#34d399; }
html[data-theme="dark"] .menu-header { background: linear-gradient(135deg, #0b74bd 0%, #1d8f56 100%); }
html[data-theme="dark"] .category-header { background: linear-gradient(135deg, #0b74bd 0%, #1d8f56 100%); }
html[data-theme="dark"] .category-page-header .view-toggle .btn, html[data-theme="dark"] .category-controls .search-container .icon-btn, html[data-theme="dark"] .icon-btn { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.12); }
html[data-theme="dark"] input, 
html[data-theme="dark"] select, 
html[data-theme="dark"] textarea { 
  background: rgba(17, 24, 39, 0.8); 
  color: var(--gray-100); 
  border-color: rgba(55, 65, 81, 0.6); 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] input:focus, 
html[data-theme="dark"] select:focus, 
html[data-theme="dark"] textarea:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: rgba(17, 24, 39, 0.9);
}

/* Select Styling in Dark Mode */
html[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23CBD5E1' d='M4.293 5.293a1 1 0 011.414 0L8 7.586l2.293-2.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z'/%3E%3C/svg%3E");
}

/* Placeholder Text in Dark Mode */
html[data-theme="dark"] ::placeholder {
  color: var(--gray-500);
  opacity: 1;
}
.menu-controls { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.search-container { flex:2; min-width:200px; }
.filter-container { flex:1; min-width:200px; }
.view-controls { flex:0; display:flex; gap:4px; }
.view-controls .btn { padding:8px 12px; font-size:12px; }

/* Category page specific styles */
.category-controls { 
  display:flex; 
  gap:12px; 
  flex-wrap:wrap; 
  align-items:center; 
}

.category-controls .search-container {
  flex:2;
  min-width:200px;
}

.category-controls .language-selector {
  flex:0;
  min-width:140px;
}

.category-controls .view-controls {
  flex:0;
  display:flex;
  gap:4px;
}

/* Menu Stats */
.menu-stats { background:#f8fafc; border-color:#e2e8f0; }
.stat-item { text-align:center; flex:1; }
.stat-item strong { display:block; font-size:20px; color:#0ea5e9; }
.stat-item small { color:#6b7280; font-size:12px; }

/* Empty and Loading States */
.empty-state, .loading-state { text-align:center; padding:40px 20px; }
.empty-icon { font-size:48px; margin-bottom:16px; }
/* Enhanced Loading Spinner */
.loading-spinner { 
  width: 48px; 
  height: 48px; 
  margin: 0 auto 16px; 
  border: 3px solid rgba(var(--primary-color-rgb), 0.1); 
  border-top: 3px solid var(--primary-color); 
  border-right: 3px solid var(--primary-color);
  border-radius: 50%; 
  animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  filter: drop-shadow(0 0 10px rgba(var(--primary-color-rgb), 0.15));
}

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

.loading-state {
  animation: pulse 2s infinite ease-in-out;
}

/* Shimmer Effect for Loading States */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0)
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Footer */
footer { margin:40px 0 20px; text-align:center; }
.footer-content { color:#6b7280; }
.footer-content p { margin:4px 0; font-size:14px; }
.footer-content small { font-size:12px; }

/* Responsive Design */
@media (max-width: 768px) {
  .container { padding: 0 12px; }
  
  .menu-controls { 
    flex-direction:column; 
    align-items:stretch; 
  }
  
  .category-controls { 
    flex-direction:column; 
    align-items:stretch; 
    gap:8px;
  }
  
  .search-container { 
    min-width:unset; 
    width:100%; 
  }
  
  .search-container input {
    width:100%;
    font-size:14px;
    padding:8px 12px;
  }
  
  .language-selector { 
    align-self:stretch;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  
  .language-selector select { 
    min-width:unset;
    width:auto;
    flex:1;
    margin-left:8px;
    font-size:14px;
    padding:6px 8px;
  }
  
  .view-controls { 
    justify-content:center;
    width:100%;
  }
  
  .view-controls .btn { 
    padding:6px 10px; 
    font-size:11px;
    flex:1;
    max-width:80px;
  }
  
  .grid { grid-template-columns: 1fr; }
}

/* Animation for dish cards */
.item { animation: fadeInUp 0.3s ease-out; }
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}

/* No image placeholder */
.no-image { 
  width:100%; 
  height:200px; 
  background:#f1f5f9; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  font-size:48px; 
  color:#9ca3af;
}
.grid.list-view .no-image { 
  width:120px; 
  height:120px; 
  font-size:32px; 
  flex-shrink:0; 
}

/* Categories Grid */
.categories-grid { 
  display:grid; 
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap:20px; 
  margin-top:20px; 
}

.category-card { 
  background:#fff; 
  border:1px solid #e5e7eb; 
  border-radius:12px; 
  overflow:hidden; 
  transition: transform 0.2s ease, box-shadow 0.2s ease; 
  cursor:pointer;
  animation: fadeInUp 0.3s ease-out;
}

.category-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 24px rgba(0,0,0,0.15); 
}

.category-image { 
  width:100%; 
  height:180px; 
  overflow:hidden; 
}

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

.category-image .no-image { 
  height:180px; 
  font-size:56px; 
}

.category-info { 
  padding:20px; 
  position:relative; 
}

.category-info h3 { 
  margin:0 0 8px; 
  font-size:20px; 
  color:#111; 
  overflow-wrap:anywhere; 
  word-break:break-word;
}
html[data-theme="dark"] .category-info h3 { color:#e5e7eb; }

.category-info p { 
  margin:0; 
  color:#6b7280; 
  font-size:14px; 
}
html[data-theme="dark"] .category-info p { color:#94a3b8; }

.category-arrow { 
  position:absolute; 
  top:20px; 
  right:20px; 
  font-size:20px; 
  color:#0ea5e9; 
  font-weight:bold;
}
html[data-theme="dark"] .category-arrow { color:#38bdf8; }

/* Category Page Styles */
.category-header { 
  background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%); 
  color:white; 
  border:none; 
  margin-bottom:20px; 
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.back-navigation { margin-bottom:16px; }
.back-navigation .back-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: transparent !important;
  border: none !important;
  padding: 0;
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  border-radius: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.category-hero { 
  display:flex; 
  gap:20px; 
  align-items:center; 
  margin-bottom:20px; 
}
.category-hero-info { flex: 1 1 auto; min-width: 0; }

/* Restaurant name top line on category page */
.restaurant-name-top { margin-bottom: 4px; }
.restaurant-name-top-text { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: 0.2px; }
html[data-theme="dark"] .restaurant-name-top-text { color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.restaurant-name-top-text { color: #0f172a; text-shadow: 0 1px 1px rgba(255,255,255,0.25); }

/* Absolute-corner layout for category view controls inside the header */
.category-page-header {
  position: relative;
  padding-top: 56px;  /* was 64px */
  padding-bottom: 64px; /* more space for long texts above controls */
}

.category-page-header .category-controls { position: static; }

.category-page-header .search-container {
  position: absolute;
  bottom: 12px; /* bottom-left */
  left: 12px;
  z-index: 3;
}

/* language selector removed per design */

.category-page-header .view-toggle {
  position: absolute;
  bottom: 12px;
  right: 12px; /* bottom-right */
  z-index: 3;
}

.category-page-header .view-toggle .btn {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  padding: 8px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Subcategory mobile button and overlay */
.subcat-mobile-btn { display: none !important; }
.subcat-overlay { position: fixed; right: 14px; bottom: 74px; z-index: 2300; background: linear-gradient(180deg, #ffffff, #f8fafc); border-radius:12px; box-shadow: 0 12px 30px rgba(0,0,0,0.2); padding:12px; width:320px; max-width:calc(100% - 28px); }
.subcat-overlay-inner { display:flex; flex-direction:column; gap:8px; }
.subcat-overlay-header { font-weight:700; margin-bottom:6px; }
.subcat-overlay-list { display:flex; flex-direction:column; gap:8px; max-height:320px; overflow:auto; }
.chip { display:inline-block; padding:8px 12px; border-radius:999px; background:#f1f5f9; border:1px solid #e2e8f0; color:#0f172a; cursor:pointer; white-space:normal; word-break:break-word; overflow-wrap:anywhere; text-align:left; }
.chip:hover { background:#e6f6ff; }

/* Subcategory button: show only three small dots and no outer frame */
.subcat-mobile-btn::before { 
  /* keep the same marker but give it a fiery color/gradient */
  content: '\25BE'; /* small down-pointing triangle ▾ as a reasonable marker */
  display:block; 
  font-weight:700; 
  /* Fire gradient with fallback color */
  color: #ff6a00; 
  background: linear-gradient(90deg, #ff9a00 0%, #ff2d00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; /* gradient text */
  /* subtle glow */
  text-shadow: 0 0 6px rgba(255,120,0,0.85), 0 0 14px rgba(255,200,0,0.45);
}
/* ensure button stays compact on very small screens */
@media (max-width:420px) {
  .subcat-mobile-btn { width:32px; height:32px; line-height:32px; }
}

/* When the button is placed inside the cart summary, show it inline next to the total */
.cart-summary-right .subcat-mobile-btn { display:inline-flex; align-items:center; justify-content:center; margin-left:10px; background: rgba(255,255,255,0.06); color: #fff; width:34px; height:34px; border-radius:8px; }
.cart-summary-right .subcat-mobile-btn::before { content: ''; width:10px; height:10px; border-radius:2px; background: linear-gradient(180deg,#06b6d4,#0ea5e9); display:block; }
/* Precisely position the button above the cart total area (the white highlighted spot in your screenshot) */
.cart-summary-right { position: relative; }
.cart-summary-right .subcat-mobile-btn { position: absolute; right: -58px; top: -24px; width:36px; height:36px; background: #ffffff; color:#0b1220; border-radius:10px; box-shadow: 0 6px 16px rgba(0,0,0,0.18); border: 1px solid rgba(16,24,40,0.06); display:flex; align-items:center; justify-content:center; }
.cart-summary-right .subcat-mobile-btn::before { width:12px; height:12px; border-radius:3px; background: linear-gradient(180deg,#06b6d4,#0ea5e9); }

/* Right slide-out drawer for subcategories */
.subcat-drawer { position: fixed; right: 0; top: 0; bottom: 0; width: 84%; max-width: 360px; transform: translateX(100%); transition: transform 260ms cubic-bezier(.22,.9,.32,1); background: linear-gradient(180deg,#fff,#f7fafc); z-index: 2600; box-shadow: -12px 0 30px rgba(0,0,0,0.28); padding: 16px 12px; display:flex; flex-direction:column; }
.subcat-drawer.open { transform: translateX(0); }
.subcat-drawer .drawer-handle { position:absolute; left:-44px; top:50%; transform:translateY(-50%); width:44px; height:120px; background:transparent; display:flex; align-items:center; justify-content:center; }
.subcat-drawer .drawer-close { position:absolute; left:-40px; top:12px; width:36px; height:36px; border-radius:8px; background:#fff; box-shadow:0 6px 16px rgba(0,0,0,0.12); border:1px solid rgba(16,24,40,0.06); display:flex; align-items:center; justify-content:center; }
.subcat-drawer h3 { margin:0 0 8px 0; font-size:16px; }
.subcat-drawer .drawer-list { overflow:auto; padding-top:8px; display:flex; flex-direction:column; gap:8px; }
.subcat-drawer .drawer-item { padding:10px 12px; border-radius:10px; background:#fff; border:1px solid #eef2ff; cursor:pointer; }
.subcat-drawer .drawer-item:hover { background:#f1f5ff; }

/* Theme-aware adjustments for drawer */
html[data-theme="dark"] .subcat-drawer { background: #0b1220; color: #e5e7eb; }
html[data-theme="dark"] .subcat-drawer .drawer-item { background: #071018; border-color: #1f2937; color: #e5e7eb; }
html[data-theme="dark"] .subcat-drawer .drawer-item:hover { background: #0f1720; }
html:not([data-theme="dark"]) .subcat-drawer { background: linear-gradient(180deg,#fff,#f7fafc); color: #0f172a; }
html:not([data-theme="dark"]) .subcat-drawer .drawer-item { background: #fff; border-color: #eef2ff; color: #0f172a; }

/* Visible right-edge handle to open the subcategory drawer */
#subcatDrawerHandle {
  position: fixed;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width:40px;
  height:40px;
  /* Thin-outline style (no solid background) */
  background: transparent;
  border: 1px solid rgba(15,23,42,0.14); /* slate-900 @ ~14% */
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: inherit;
  font-weight:700;
  z-index: 2700;
  /* remove heavy glow */
  box-shadow: none;
  cursor: pointer;
}
/* make sure the handle gets touch/click events even if elements overlap */
#subcatDrawerHandle { pointer-events: auto; }
#subcatDrawerHandle:hover {
  border-color: rgba(15,23,42,0.32);
  background: rgba(15,23,42,0.02);
}
#subcatDrawerHandle::before { 
  /* left-pointing triangle marker kept, but styled with a fiery gradient */
  content: '◀';
  font-size:18px; 
  line-height:1; 
  /* Fire gradient text with sensible fallback for older browsers */
  color: #ff6a00;
  background: linear-gradient(90deg, #ff9a00 0%, #ff2d00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 6px rgba(255,120,0,0.9), 0 0 14px rgba(255,200,0,0.45);
}

/* Dark theme: slightly lighter outline for visibility */
html[data-theme="dark"] #subcatDrawerHandle {
  border-color: rgba(229,231,235,0.22);
}
html[data-theme="dark"] #subcatDrawerHandle:hover {
  border-color: rgba(229,231,235,0.38);
  background: rgba(255,255,255,0.04);
}

/* ensure drawer close button contrasts in dark theme */
html[data-theme="dark"] .subcat-drawer { background: #0f1720; color:#e5e7eb; }
html[data-theme="dark"] .subcat-drawer .drawer-close { background:#0b1220; color:#e5e7eb; border-color:#1f2937; }

@media (max-width: 768px) {
  .subcat-mobile-btn { display:inline-flex; }
  .category-page-header .view-toggle { right: 72px; }
  /* hide the desktop select on small screens inside the public category header only - use overlay button;
    keep admin page select visible (it is not inside .category-controls) */
  .category-controls #subcategorySelect { display: none !important; }
}

/* Nudge desktop subcategory select slightly left and down so it doesn't overlap prices */
#subcategorySelect {
  position: relative;
  transform: translate(-18px, 8px);
  z-index: 30;
  max-width: 220px;
}

/* Hide the inline subcategory select on desktop/laptop to avoid showing
   a duplicate subcategory control next to the category title. Mobile uses
   the overlay/drawer instead. */
@media (min-width: 769px) {
  /* Only hide the subcategory select when it's inside the public category header
    (.category-controls). Keep the admin page select visible (it is not inside
    .category-controls). */
  .category-controls #subcategorySelect { display: none !important; }
}

/* Ensure per-item price is visible and above floating controls */
.item .price {
  display: inline-block;
  margin-right: 12px;
  position: relative;
  z-index: 40;
}

/* In list view make price block-level and avoid float overlap */
.grid.list-view .item .price { display:block; margin-right:0; text-align:left; }

.category-hero-image { 
  width:180px; 
  height:180px; 
  border-radius:12px; 
  overflow:hidden; 
  flex-shrink:0; 
}
.category-hero-image > #categoryImageContainer { width: 100%; height: 100%; display:block; }

.category-hero-img { 
  width:100%; 
  height:100%; 
  object-fit:cover; 
}

.category-hero-placeholder { 
  width:100%; 
  height:100%; 
  background:rgba(255,255,255,0.2); 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  font-size:48px; 
  border-radius:8px; 
}

.category-hero-info h1 { 
  color:white !important; 
  margin:0 0 8px; 
  /* prefer wrapping at spaces; avoid breaking words mid-word */
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  white-space: normal;
  font-size: clamp(22px, 4.5vw, 32px);
  line-height: 1.2;
}

/* Ensure category title element doesn't hyphenate or break words mid-word */
#categoryTitle { word-break: keep-all; overflow-wrap: normal; hyphens: none; white-space: normal; }

.category-hero-info p { 
  color:rgba(255,255,255,0.9); 
  margin:0 0 8px; 
}
.restaurant-info { 
  color:rgba(255,255,255,0.8); 
}

.category-controls { 
  display:flex; 
  gap:12px; 
  flex-wrap:wrap; 
  align-items:center;
  width:100%;
  max-width:100%;
  overflow:hidden;
}

@media (max-width: 768px) {
  .categories-grid { 
    grid-template-columns: 1fr; 
  }
  
  .category-hero { 
    flex-direction:column; 
    text-align:center; 
  }
  
  .category-hero-image { 
    width:150px; 
    height:150px; 
  }
  
  /* Keep header controls absolute; just ensure padding so they don't overlap */
  .category-page-header .category-controls { padding-top: 56px; padding-bottom: 56px; }
  
  .category-controls .language-selector {
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    max-width:100%;
  }
  
  .category-controls .language-selector select {
    min-width:unset;
    width:60%;
    font-size:14px;
    padding:6px;
    max-width:60%;
  }
  
  .category-controls .view-controls {
    display:flex;
    width:100%;
    gap:8px;
    max-width:100%;
  }
  
  .category-controls .view-controls .btn {
    flex:1;
    padding:8px;
    font-size:12px;
    text-align:center;
    max-width:calc(50% - 4px);
  }
}

/* Admin Category Management */
.category-admin-item { 
  display:flex; 
  gap:12px; 
  align-items:center; 
}

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

.category-admin-placeholder { 
  width:60px; 
  height:60px; 
  background:#f1f5f9; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  font-size:24px; 
  color:#9ca3af; 
  border-radius:8px; 
  flex-shrink:0; 
}

.category-admin-info { 
  flex:1; 
}

/* Category Sections for Admin Dishes List */
.category-section {
  margin-bottom: 24px;
}

.category-section h3 {
  margin: 16px 0 8px 0;
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  position: sticky;
  top: 0;
  background: #f7f7f8;
  z-index: 10;
}

.category-section .item {
  margin-left: 16px;
  margin-bottom: 8px;
}

.category-section:first-child h3 {
  margin-top: 0;
}

/* Expandable Category Management */
.category-management-card {
  transition: all 0.2s ease;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-dish-count {
  color: #6b7280;
  font-size: 14px;
  font-weight: normal;
}

.btn-expand {
  font-size: 13px;
  padding: 6px 12px;
}

.category-dishes-container {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
}

.category-dishes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-dish-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.dish-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dish-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px -10px rgba(15, 23, 42, 0.35);
}

.dish-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-thumb--empty {
  font-size: 34px;
  color: #94a3b8;
}

.dish-thumb-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transform: scale(1);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.dish-thumb:hover .dish-thumb-remove,
.dish-thumb:focus-within .dish-thumb-remove {
  opacity: 1;
  transform: scale(1.05);
}

.dish-thumb-remove:hover {
  background: rgba(239, 68, 68, 0.95);
}

.dish-thumb-remove:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.9);
  outline-offset: 2px;
}

html[data-theme="dark"] .dish-thumb {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.25);
}

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

.dish-name {
  font-weight: 500;
  font-size: 14px;
  color: #111;
}

.dish-subcategory {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.dish-price {
  font-weight: 600;
  color: #059669;
  font-size: 14px;
  margin-top: 2px;
}

.dish-description {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.3;
}

.no-dishes {
  text-align: center;
  padding: 20px;
  color: #0f172a; 
  overflow-wrap:anywhere; 
  word-break:break-word; 
  font-style: italic;
}

.dishes-loading {
  text-align: center;
  padding: 12px;
  color: #6b7280;
}

/* Minimal baseline for controls; page variant handles positioning */
.category-controls { width: 100%; max-width: 100%; }
.category-controls .language-selector label { font-size:12px; white-space:nowrap; margin-right:6px; color:rgba(255,255,255,0.9); }
.category-controls .language-selector select { min-width:0; color:#111827; background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:6px 8px; }

/* Compact search: icon-only button that expands input when open */
.category-controls .search-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-controls .search-container .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.05s ease, border-color 0.2s ease;
}

.category-controls .search-container .icon-btn:hover { background: rgba(255,255,255,0.28); }

.category-controls .search-container .icon-btn:active { transform: scale(0.98); }

/* Hidden by default; expands when container has .open */
.category-controls .search-container .search-input {
  width: 0;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
  margin: 0;
  transition: width 0.2s ease, opacity 0.15s ease;
}

.category-controls .search-container.open .search-input {
  width: clamp(180px, 70vw, 320px);
  opacity: 1;
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 12px;
  border-radius: 12px;
  color: #111827;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 16px; /* avoid iOS zoom */
}

/* Medium screens: two columns, search on its own row */
@media (max-width: 900px) {
  .category-controls {
    grid-template-columns: 1fr 1fr;
  }
  .category-controls .search-container {
    grid-column: 1 / -1;
  }
  .category-controls .language-selector,
  .category-controls .view-controls {
    justify-self: stretch;
  }
  .category-controls .language-selector select {
    width: 100%;
    min-width: 0 !important;
  }
  .category-controls .view-controls .btn {
    flex: 1;
  }
}

/* Small phones: single column stacked controls */
@media (max-width: 480px) {
  .category-controls {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .category-controls .search-container,
  .category-controls .language-selector,
  .category-controls .view-controls {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
  }
  .category-controls .search-container {
    gap: 6px;
  }
  .category-controls .search-container .icon-btn {
    width: 36px;
    height: 36px;
  }
  .category-controls .search-container.open .search-input {
    width: 100%;
  }
  .category-controls .language-selector {
    display: grid;
    grid-template-columns: auto 1fr; /* label then select */
    align-items: center;
    column-gap: 8px;
  }
  .category-controls .language-selector select {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 14px;
    padding: 6px 8px;
  }
  .category-controls .view-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .category-controls .view-controls .btn {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* Avoid subcategory mobile button overlapping cart collapsed price */
/* push the collapsed cart's right-side total left by reserving space on the right */
.cart-collapsed { padding-right: 100px; }
.cart-summary-right { margin-right: 8px; }

@media (min-width: 900px) {
  /* on wide screens the floating subcat button is elsewhere; reduce reserved space */
  .cart-collapsed { padding-right: 24px; }
}

@media (max-width: 420px) {
  /* very small phones need a bit more gap for the fixed subcat button */
  .cart-collapsed { padding-right: 180px; }
  /* move the floating subcat button further left on very small phones */
  .subcat-mobile-btn { right: 110px; bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* Subcategory header and overlay theme-aware styling */
.subcat-header {
  padding: 8px 12px;
  border-radius: 10px;
  margin: 8px 0 12px 0;
  font-weight: 700;
  background: #f3f4f6;
  color: #0f172a;
}
.subcat-overlay { background: linear-gradient(180deg, #ffffff, #f8fafc); color: #0f172a; }

html[data-theme="dark"] .subcat-header {
  background: #0b1320; /* dark neutral */
  color: #e5e7eb;
  border: 1px solid #1f2937;
}
html[data-theme="dark"] .subcat-overlay { background: linear-gradient(180deg, #071018, #0b1220); color: #e5e7eb; }


/* Dish card styles for category admin page */
.dish-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.dish-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.dish-image-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  margin: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dish-image-wrapper:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.35);
}

.dish-image-wrapper--empty {
  font-size: 28px;
  color: #94a3b8;
}

.dish-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-info {
  flex: 1;
  padding: 16px;
  padding-left: 8px;
}

.dish-info h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #1f2937;
  line-height: 1.3;
}

.dish-name-en, .dish-name-ru {
  margin: 2px 0;
  color: #6b7280;
  font-size: 12px;
}

.dish-desc {
  margin: 6px 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
}

.dish-price {
  font-weight: 700;
  color: #059669;
  font-size: 16px;
  margin: 6px 0 0 0;
}

/* Admin inline price editor */
.price-edit { display:flex; gap:8px; align-items:center; margin-top:8px; flex-wrap:wrap; }
.price-edit .price-label { font-size:12px; color:#6b7280; }
.price-edit .price-input { width:140px; max-width:50%; }

/* Responsive design for mobile */
@media (max-width: 768px) {
  .dish-card {
    margin-bottom: 12px;
  }
  
  .dish-image {
    width: 60px;
    height: 60px;
    margin: 8px;
  }
  
  .dish-info {
    padding: 12px;
    padding-left: 4px;
  }
  
  /* საკონტაქტო ბარათის მობილური სტილები */
  .contact-card {
    padding: 24px;
  }
  
  .contact-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    margin-bottom: 24px;
  }
  
  .contact-header::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-content {
    gap: 20px;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-item-icon {
    margin: 0 auto 10px;
    font-size: 2rem;
  }
  
  .dish-info h3 {
    font-size: 14px;
  }
  
  .dish-name-en, .dish-name-ru {
    font-size: 11px;
  }
  
  .dish-desc {
    font-size: 12px;
  }
  
  .dish-price {
    font-size: 14px;
  }
}

.dish-actions {
  padding: 12px 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: flex-end;
}

/* Cart bottom sheet */
.cart-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #ffffff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
  transform: translateY(calc(100% - var(--cart-collapsed)));
  transition: transform 0.25s ease;
  z-index: 1000;
}
.cart-sheet.open { transform: translateY(0); }
.cart-sheet.dragging { transition: none; }
.cart-grabber {
  width: 64px; height: 8px; border-radius: 999px; background: #e5e7eb; margin: 10px auto; cursor: pointer;
  position: relative;
}
.cart-grabber::before {
  content: '';
  position: absolute;
  left: -16px; right: -16px; top: -8px; bottom: -8px; /* larger hit area */
}
.cart-close {
  position: sticky;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
  color: #374151;
  border-radius: 999px;
  width: 34px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 8px;
  cursor: pointer;
}
.cart-collapsed { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 4px; border-top-left-radius: 16px; border-top-right-radius: 16px; }
.cart-summary-left { display: flex; align-items: center; gap: 8px; }
.cart-count { background: #0ea5e9; color:#fff; font-weight:700; padding:2px 8px; border-radius:999px; min-width: 26px; text-align:center; font-size:13px; }
.cart-label { color:#374151; font-size:13px; }
.cart-summary-right .cart-total { font-size: 15px; color:#059669; }
.cart-expanded { max-height: 60vh; overflow: auto; padding: 4px 12px 12px; }
.cart-list { display: flex; flex-direction: column; gap: 8px; }
.cart-item { display:flex; align-items:center; gap: 8px; border:1px solid #e5e7eb; border-radius:12px; padding:8px; }
.cart-thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink:0; background:#f1f5f9; display:block; }
.cart-thumb.noimg { display:flex; align-items:center; justify-content:center; color:#9ca3af; font-size:24px; }
.cart-item-info { flex:1; min-width:0; }
.cart-item-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.cart-item-name { font-weight:600; color:#111827; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; white-space:normal; line-height:1.25; }
html[data-theme="dark"] .cart-item-name { color:#e5e7eb; }
.cart-item-price { color:#4b5563; font-size:14px; }
html[data-theme="dark"] .cart-item-price { color:#9ca3af; }
.cart-item-bottom { display:flex; align-items:center; justify-content:space-between; gap: 8px; margin-top:6px; }
.qty { display:flex; align-items:center; gap:8px; }
.qty-btn { width:28px; height:28px; border-radius:8px; border:1px solid #d1d5db; background:#fff; cursor:pointer; color:#111827; }
.qty-btn:active { transform: scale(0.98); }
.qty-num { min-width: 20px; text-align:center; color:#111827; }
.line-total { font-weight:600; color:#059669; }
.remove { background: transparent; border: none; color:#9ca3af; cursor: pointer; font-size: 16px; padding: 6px; }
.cart-actions {
  display: flex;
  justify-content: center;
  padding: 12px 16px 20px;
  border-top: 1px solid transparent;
  background: transparent;
}

.cart-actions .btn {
  flex: 0;
}

.cart-clear-btn {
  min-width: 160px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--gray-900);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: none;
  font-weight: var(--font-semibold);
  letter-spacing: 0.01em;
}

.cart-clear-btn:hover {
  background: rgba(15, 23, 42, 0.12);
  color: var(--gray-50);
  transform: translateY(-1px);
}

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

@media (min-width: 900px) {
  .cart-sheet { left: auto; right: 20px; width: 420px; border-radius: 16px; transform: translateY(calc(100% - var(--cart-collapsed))); }
}

/* Dark theme for cart for proper contrast */
html[data-theme="dark"] .cart-sheet { background: #0f1720; box-shadow: 0 -8px 24px rgba(0,0,0,0.4); }
html[data-theme="dark"] .cart-collapsed { background: transparent; }
html[data-theme="dark"] .cart-label { color:#e5e7eb; }
html[data-theme="dark"] .cart-summary-right .cart-total { color:#34d399; }
html[data-theme="dark"] .cart-item { background:#0b1220; border-color:#1f2937; }
html[data-theme="dark"] .qty-btn { background:#111827; border-color:#374151; color:#e5e7eb; }
html[data-theme="dark"] .qty-num { color:#e5e7eb; }
html[data-theme="dark"] .line-total { color:#34d399; }
html[data-theme="dark"] .remove { color:#94a3b8; }
html[data-theme="dark"] .cart-close { background: rgba(255,255,255,0.08); border-color:#334155; color:#e5e7eb; }
html[data-theme="dark"] .cart-grabber { background:#475569; }

/* Spacer to avoid overlap with bottom cart on mobile */
.cart-safe-bottom { height: calc(var(--cart-collapsed) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .cart-safe-bottom { height: 0; } }

/* Compact search for menu page: icon-only until open */
.menu-controls .search-container { display:flex; align-items:center; gap:8px; }
.menu-controls .search-container .icon-btn { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:12px; border:1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.18); color:#ffffff; cursor:pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.2s ease, transform 0.05s ease, border-color 0.2s ease; }
.menu-controls .search-container .icon-btn:hover { background: rgba(255,255,255,0.28); }
.menu-controls .search-container .icon-btn:active { transform: scale(0.98); }
.menu-controls .search-container .search-input { width:0; opacity:0; pointer-events:none; border:0; padding:0; margin:0; transition: width 0.2s ease, opacity 0.15s ease; }
.menu-controls .search-container.open .search-input { width: clamp(180px, 70vw, 320px); opacity:1; pointer-events:auto; border: 1px solid rgba(255,255,255,0.35); padding: 10px 12px; border-radius: 12px; color: #111827; background: rgba(255,255,255,0.92); box-shadow: 0 8px 24px rgba(0,0,0,0.15); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size:16px; }
/* საკონტაქტო ბარათის მედია მოთხოვნა */
@media (max-width: 768px) {
  .contact-card {
    padding: 24px;
  }
  
  .contact-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    margin-bottom: 24px;
  }
  
  .contact-header::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-content {
    gap: 20px;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-item-icon {
    margin: 0 auto 10px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .contact-highlight {
    margin: 50px auto 40px;
    padding: 0 10px;
  }
  
  .contact-card {
    padding: 20px;
  }
  
  .contact-card h2 {
    font-size: 1.6rem;
  }
  
  .contact-item {
    padding: 16px;
  }
  
  .contact-item-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }
  
  .contact-card p {
    font-size: 1rem;
  }
}

/* === Cart total visibility toggle (admin configurable) === */
html.hide-cart-total .cart-total,
html.hide-cart-total .line-total {
  visibility: hidden !important;
  opacity: 0 !important;
  transition: opacity 0.25s ease;
}
/* Preserve layout so space remains consistent */
html.hide-cart-total .cart-total,
html.hide-cart-total .line-total { position: relative; }