@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #E23744; /* Zomato Red */
  --primary-hover: #D02B38;
  --secondary: #FC8019; /* Swiggy Orange Accent */
  --bg-main: #F8F9FA;
  --bg-white: #FFFFFF;
  --text-main: #1C1C1C;
  --text-muted: #696969;
  --text-light: #9C9C9C;
  --border-color: #E8E8E8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Light Theme Cards & Layouts */
.clean-card {
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clean-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.menu-item-card {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

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

/* Primary Button */
.btn-primary {
  background-color: var(--primary);
  color: white;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

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

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

/* Add to Cart Button (Zomato Style) */
.btn-add {
  background-color: var(--bg-white);
  color: var(--primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-add:hover {
  box-shadow: 0 4px 12px rgba(226, 55, 68, 0.15);
  border-color: var(--primary);
}

.cart-counter {
  background-color: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(226, 55, 68, 0.2);
}

.cart-counter button {
  padding: 0.5rem 0.75rem;
  font-weight: bold;
  background: transparent;
  color: white;
}

.cart-counter button:hover {
  background: rgba(255,255,255,0.1);
}

.cart-counter span {
  font-weight: 700;
  padding: 0 0.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #CCCCCC;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Sidebar Sticky */
.sticky-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Category Nav Link */
.cat-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 500;
  border-right: 3px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  text-transform: capitalize;
}

.cat-link:hover {
  color: var(--primary);
  background: rgba(226, 55, 68, 0.03);
}

.cat-link.active {
  color: var(--primary);
  font-weight: 700;
  border-right-color: var(--primary);
  background: linear-gradient(90deg, transparent, rgba(226, 55, 68, 0.05));
}

/* Utilities */
.section-padding {
  padding: 4rem 0;
}

/* Header transition */
header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Veg Icon */
.veg-icon {
  width: 16px;
  height: 16px;
  border: 1px solid #10B981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
.veg-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
}

/* Floating Actions */
.floating-btn {
  position: fixed;
  bottom: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 50;
  transition: transform 0.2s ease;
}
.floating-btn:hover {
  transform: translateY(-3px);
}
.btn-whatsapp {
  right: 2rem;
  background-color: #25D366;
}
.btn-cart {
  right: 6.5rem;
  background-color: var(--primary);
}

@media (max-width: 768px) {
  .btn-cart {
    right: 2rem;
    bottom: 6.5rem;
  }
}

/* Hero Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes float-delayed {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-15px) rotate(-3deg) scale(1.05); }
  100% { transform: translateY(0px) rotate(0deg) scale(1); }
}
@keyframes float-fast {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-25px); }
  100% { transform: translateY(0px); }
}

.floating-dish {
  animation: float 6s ease-in-out infinite;
}
.floating-dish-delayed {
  animation: float-delayed 7s ease-in-out infinite;
  animation-delay: 1s;
}
.floating-dish-fast {
  animation: float-fast 5s ease-in-out infinite;
  animation-delay: 2s;
}
