body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #fffdf5;
    color: #333;
  }
  
  .menu-header {
    text-align: center;
    background-color: #d4af37; 
    color: #fff;
    padding: 2rem 1rem;
  }
  
  .menu-header h1 {
    margin: 0;
    font-size: 2.5rem;
  }
  
  .menu-header p {
    font-size: 1.2rem;
  }
  
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
  }
  
  .menu-item {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
  }
  
  .menu-item:hover {
    transform: scale(1.03);
  }
  
  .menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .menu-item h3 {
    margin: 1rem 0 0.5rem;
    color: #c0392b; 
  }
  
  .menu-item p {
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
  }

   .back-button {
    margin: 15px;
    padding: 10px 20px;
    background-color: #ff9900;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
  }

  .back-button:hover {
    background-color: #e68a00;
  }

  .menu-nav {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 100;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}

.menu-nav ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow-x: auto;
}

.menu-nav a {
  text-decoration: none;
  color: #333;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.menu-nav a:hover {
  background-color: #eee;
}

html {
  scroll-behavior: smooth;
}

.menu-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 15px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  scrollbar-width: none; /* Firefox */
}

.menu-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.pill {
  background-color: #f6f6f6;
  border: 1px solid #ccc;
  color: #333;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pill:hover,
.pill.active {
  background-color: #ff9d2d;
  color: white;
  border-color: #ff9d2d;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 99;
  font-size: 20px;
  border: none;
  outline: none;
  background-color: #f39c12;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  display: none;
  transition: opacity 0.3s ease;
}

#backToTop:hover {
  background-color: #d35400;
}

  
@media (max-width: 768px) {
  #backToTop {
    font-size: 16px;
    padding: 10px 14px;
    right: 10px;
    bottom: 15px;
  }
}

  @media (max-width: 768px) {
  .menu-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .menu-item {
    width: 90%; /* full width cards on mobile */
    margin-bottom: 20px;
  }

  .menu-item img {
    width: 100%;
    height: auto;
  }

  .menu-item h3 {
    font-size: 1.2rem;
  }

  .menu-item p {
    font-size: 1rem;
  }
}

.menu-category {
  margin: 40px 0;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
  display: none; /* hide scrollbar */
}

.menu-item {
  min-width: 200px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: center;
}
