:root {
  --primary: #E63946;
  --primary-light: #ff6b75;
  --primary-dark: #b81d28;
  --secondary: #F1FAEE;
  --accent: #A8DADC;
  --accent-dark: #457B9D;
  --bg-color: #f8f9fa;
  --surface-color: #ffffff;
  --text-main: #1d3557;
  --text-muted: #6c757d;
  --success: #2a9d8f;
  --warning: #e9c46a;
  --danger: #e76f51;
  --nav-height: 70px;
  --nav-bottom-height: 65px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 24px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: var(--nav-bottom-height); /* For mobile nav */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-red {
  background: rgba(230, 57, 70, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

/* Layout constraints */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Desktop Navigation */
.navbar-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand i {
  font-size: 1.8rem;
}

.navbar-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.navbar-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar-links a:hover, .navbar-links a.active {
  color: var(--primary);
}

.cart-icon-wrapper {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  height: 20px;
  min-width: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Mobile Bottom Navigation */
.navbar-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-bottom-height);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  gap: 4px;
  transition: var(--transition);
}

.nav-item i {
  font-size: 1.3rem;
  transition: var(--transition);
}

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

.nav-item.active i {
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.1), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(69, 123, 157, 0.05), transparent 50%);
  z-index: -1;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(42, 157, 143, 0.1);
  color: var(--success);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(42, 157, 143, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 500px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(230, 57, 70, 0.05);
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-img-element {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: float 6s ease-in-out infinite;
}

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

/* Sections */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px auto;
}

/* Features / How it works */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--surface-color);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0; /* for observer */
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: rgba(230, 57, 70, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px auto;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Menu Filters */
.menu-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface-color);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.search-bar i {
  color: var(--text-muted);
  margin-right: 15px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
}

.category-pills {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  width: 100%;
  justify-content: center;
  scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }

.pill {
  padding: 10px 24px;
  background: var(--surface-color);
  border-radius: var(--radius-full);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.pill:hover {
  background: var(--bg-color);
}

.pill.active {
  background: var(--primary);
  color: white;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.meal-card {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.meal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.meal-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.meal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.meal-card:hover .meal-img {
  transform: scale(1.05);
}

.veg-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.veg-badge .dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  border: 1px solid white;
}
.veg-badge.non-veg .dot {
  background: var(--danger);
}
.veg-badge .square {
  border: 1px solid var(--success);
  padding: 2px;
  border-radius: 2px;
}
.veg-badge.non-veg .square {
  border-color: var(--danger);
}


.meal-content {
  padding: 20px;
}

.meal-category {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.meal-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.meal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.meal-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.add-btn {
  background: var(--bg-color);
  color: var(--primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
}

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

/* Auth Cards */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg-color) 0%, rgba(230, 57, 70, 0.05) 100%);
}

.auth-card {
  background: var(--surface-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.auth-toggle {
  margin-top: 20px;
  color: var(--text-muted);
}

.auth-toggle a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* Cart Page */
.page-header {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 40px;
  background: var(--primary);
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.cart-items {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

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

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--text-muted);
  font-weight: 500;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-color);
  padding: 5px;
  border-radius: var(--radius-sm);
}

.qty-btn {
  background: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.cart-item-total {
  font-weight: 700;
  font-size: 1.2rem;
  min-width: 80px;
  text-align: right;
}

.cart-item-remove {
  color: var(--danger);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
}

.cart-summary {
  background: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 30px;
}

.wa-btn {
  background: #25D366;
  color: white;
  width: 100%;
}
.wa-btn:hover {
  background: #128C7E;
}

.empty-cart {
  text-align: center;
  padding: 50px 20px;
}

.empty-cart i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: calc(var(--nav-bottom-height) + 20px);
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  color: var(--text-main);
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 4px solid var(--primary);
}

.toast.show {
  transform: translateX(0);
}

.toast i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  background: var(--surface-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: var(--bg-color);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

tr:last-child td {
  border-bottom: none;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tab-btn:hover {
  background: var(--bg-color);
  color: var(--text-main);
}

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

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 40px;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: var(--nav-height); /* For mobile desktop nav */
  }

  /* Handle Desktop Nav mapping to top fixed bar on mobile without links */
  .navbar-desktop .navbar-links {
    display: none; /* Hide links on mobile, rely on bottom nav */
  }
  
  .navbar-mobile {
    display: flex; /* Show bottom nav */
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .category-pills {
    justify-content: flex-start;
  }
  
  .cart-container {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 50px 0;
  }
  .carousel-slide img {
    height: 180px;
  }
}

/* Carousel */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.carousel-slide {
  display: none;
  animation: fade 1.5s;
}
.carousel-slide.active {
  display: block;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.carousel-prev, .carousel-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.6s ease;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
  border: none;
}
.carousel-next {
  right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.carousel-prev:hover, .carousel-next:hover {
  background-color: rgba(0,0,0,0.8);
}
.carousel-dots {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
}
.carousel-dots .dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.carousel-dots .active, .carousel-dots .dot:hover {
  background-color: white;
}
@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* WhatsApp Chatbot Float */
.whatsapp-chatbot-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: calc(var(--nav-bottom-height) + 20px);
  right: 20px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 32px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-chatbot-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
  color: white;
}

@media (min-width: 769px) {
  .whatsapp-chatbot-float {
    bottom: 40px;
    right: 40px;
  }
}
