:root {
  --primary-color: #E63946;
  --primary-color-light: #fff5e1;
  --primary-color-dark: #FFB703;
  --text-dark: #18181b;
  --text-light: #6b7280;
  --white: #ffffff;
  --max-width: 1200px;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  background: linear-gradient(180deg, #fff, #fff7f2);
  color: var(--text-dark);
}

/* Section container utility */
.section_container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ================= Navbar ================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  background-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav_header {
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.logo a span {
  color: var(--text-dark);
}

a {
  text-decoration: none;
  transition: 0.3s linear;
}

ul {
  list-style: none;
}

.nav_links {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.nav_links li a {
  font-weight: 700;
  color: white;
  text-decoration: none;
  position: relative;
  padding: 20px;
  transition: color 0.3s ease;
}

.nav_links li a:hover {
  color: black;
}

/* Active/hover underline accent */
.nav_links li a::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-color-dark), #ff6b6b);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav_links li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 
.nav_menu_btn {
  display: block;
  font-size: 1.8rem;
  color: var(--white);
  cursor: pointer;
} */

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}

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

/* ================= Header ================= */
.header_container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-width);
  margin: auto;
  padding: 8rem 1.25rem 4rem;
}

.header-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.header-image img:hover {
  transform: scale(1.02);
}

.header_content h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 4rem;
  color: var(--text-dark);
}

.header_content h1 span {
  color: var(--primary-color);
}

.section_description {
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.75rem;
}

.header-btn {
  display: flex;
  justify-content: flex-start;
}

/* ================= Special Dishes ================= */
.special_container {
  padding: 3rem 1.25rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.special-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.special-item {
  background: var(--primary-color-light);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.special-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.special-item img {
  width: 100%;
  max-width: 200px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.special-item h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.rating {
  margin-bottom: 10px;
  color: #ffd700;
  font-size: 1.3rem;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 8px 0;
  color: var(--text-dark);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: #e63946;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s ease;
}

.cart-btn i {
  font-size: 1rem;
}

.cart-btn:hover {
  background: #ffb703;
  /* hover color */
}

/* Cart count badge inside nav button */
.nav_btn .btn span#cart-count {
  margin-left: 6px;
  background: #1f2937;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
}


/* ================= Menu Categories ================= */
.menu-section {
  text-align: center;
  padding: 3rem 1rem;
}

.menu-section .section_title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.menu-section .section_subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6rem;
}

.menu_categories {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

.category {
  text-align: center;
  width: 100px;
}

.category img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category:hover img {
  border-color: var(--primary-color);
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* ================= Dishes Section ================= */
.dishes-section {
  padding: 3rem 1rem;
}

.dishes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}


.dish-card {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dish-card .price {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fc7f09;
  margin-top: 10px;
}

.dish-card .cart-btn {
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

.dish-card .cart-btn:hover {
  background: var(--primary-color-dark);
}


.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.dish-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dish-card img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.dish-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dish-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.8rem;
}

/* ================= Footer ================= */
.footer {
  background: linear-gradient(135deg, var(--primary-color), #c72d39);
  color: #ffffff;
  padding: 50px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  padding: 0 20px;
  margin: 0 auto;
}

.footer-about h2 {
  font-family: 'Lobster', cursive;
  color: #ff9900;
}

.footer-about p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #fff5e1;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  text-underline-offset: 3px;
}

.footer-links ul li a:hover {
  color: #ff9900;
}

.footer-contact p {
  font-size: 14px;
  margin: 5px 0;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: all 0.3s ease-in-out;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.social-icons a:hover {
  background: var(--primary-color-dark);
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
}

/* ================= Responsive ================= */
@media (max-width: 1200px) {
  .nav_header {
    padding: 0.8rem 1.5rem;
  }

  .header_container {
    padding: 6rem 1.5rem 3rem;
  }

  .special-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .dishes-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .nav_header {
    padding: 0.8rem 1.25rem;
  }

  .nav_links {
    gap: 1.5rem;
  }

  .header_container {
    grid-template-columns: 1fr 1fr;
    padding: 7rem 1.5rem 3rem;
  }

  .header_content h1 {
    font-size: 2.4rem;
    line-height: 3.2rem;
  }

  .special-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dishes-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu_categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

  /* Navigation */
  .nav_header {
    padding: 0.8rem 1rem;
  }

  .nav_links {
    gap: 1rem;
  }

  .logo img {
    width: 32px;
    height: 32px;
  }

  .logo a {
    font-size: 1.2rem;
  }

  .nav_btn .btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  /* Header */
  .header_container {
    grid-template-columns: 1fr;
    padding: 6rem 1rem 2rem;
    text-align: center;
  }

  .header_content h1 {
    font-size: 2.2rem;
    line-height: 2.8rem;
    margin-bottom: 1rem;
  }

  .header_content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .header-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
  }

  .header-btn {
    justify-content: center;
  }

  /* Sections */
  .section-title,
  .menu-section .section_title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .menu-section .section_subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  /* Grid Layouts */
  .special-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dishes-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .menu_categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Images */
  .dish-card img {
    height: 160px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  }

  .special-item img {
    max-width: 140px;
    height: 140px;
    border-radius: 12px;
  }

  .category img {
    height: 70px;
    width: 70px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-about h2 {
    font-size: 1.5rem;
  }

  .footer-links h3,
  .footer-contact h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {

  /* Navigation */
  .nav_header {
    padding: 0.6rem 0.8rem;
    flex-wrap: wrap;
  }

  .nav_links {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .nav_links li a {
    padding: 8px 6px;
    font-size: 0.9rem;
  }

  .logo img {
    width: 28px;
    height: 28px;
  }

  .logo a {
    font-size: 1.1rem;
  }

  .nav_btn .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* Header */
  .header_container {
    padding: 5rem 0.8rem 1.5rem;
  }

  .header_content h1 {
    font-size: 1.8rem;
    line-height: 2.2rem;
    margin-bottom: 0.8rem;
  }

  .header_content p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
  }

  .header-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Sections */
  .section_container {
    padding: 2rem 0.8rem;
  }

  .section-title,
  .menu-section .section_title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .menu-section .section_subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
  }

  /* Grid Layouts */
  .special-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dishes-container {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .menu_categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  /* Images */
  .special-item img {
    max-width: 100px;
    height: 100px;
    border-radius: 8px;
  }

  .dish-card img {
    height: 140px;
    border-radius: 8px;
  }

  .category img {
    height: 50px;
    width: 50px;
  }

  /* Cards */
  .special-item,
  .dish-card {
    padding: 1rem;
    margin-bottom: 0.8rem;
  }

  .special-item h3,
  .dish-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }

  .special-item p,
  .dish-card p {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .price {
    font-size: 1.1rem;
    margin: 0.5rem 0;
  }

  .cart-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-about h2 {
    font-size: 1.3rem;
  }

  .footer-links h3,
  .footer-contact h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .footer-links ul li,
  .footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .social-icons a {
    margin: 0 0.3rem;
    font-size: 1.2rem;
  }
}

/* Cart notification popup */
.cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(-20px);
  z-index: 9999;
}

.cart-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  /* pehle hidden */
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 10000;
  overflow-y: auto;
}

.cart-sidebar.active {
  right: 0;
}

.cart-sidebar h2 {
  margin-bottom: 15px;
  font-size: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}

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

.quantity-control {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quantity-control button {
  background: #ff4d4d;
  border: none;
  color: #fff;
  font-size: 16px;
  width: 25px;
  height: 25px;
  cursor: pointer;
  border-radius: 4px;
}

.cart-total {
  margin-top: 15px;
  font-weight: bold;
  font-size: 16px;
}

/* Cart Modal */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cart-modal-content {
  background: #fff;
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 10px;
}

.close-cart {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

#cart-items .cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
}

.cart-item-info {
  flex: 1;
  margin-left: 10px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-actions button {
  background: #eee;
  border: none;
  padding: 5px 8px;
  cursor: pointer;
  border-radius: 4px;
}

.cart-footer {
  margin-top: 15px;
  text-align: right;
  font-weight: bold;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.modal-btn {
  padding: 10px 16px;
  border-radius: 24px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
}

.modal-btn.outline {
  background: #fff;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.modal-btn.primary {
  background: var(--primary-color);
  color: #fff;
}

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

.cart-modal-content {
  background: #fff;
  color: #333;
  /* <-- text dark kar diya */
}

.cart-item-info p {
  margin: 2px 0;
  color: #333;
  /* <-- text visible hoga */
  font-size: 14px;
}

.cart-item-actions button {
  background: #ff6600;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
}

.cart-item-actions button:hover {
  background: #e65c00;
}