* {
  font-family: Arial, sans-serif;
}

.categories-container {
  position: sticky;
  top: 50px;
  padding: 1rem;
  background: transparent;
  z-index: 99;
}

.categories {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  gap: 1rem;
  padding: 0.5rem;
}

.categories::-webkit-scrollbar {
  display: none;
}

.category-btn {
  padding: 0.5rem 1.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 25px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
}

.category-btn.active {
  background: red;
  color: #fff;
  border-color: red;
}
/* red */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.scroll-left {
  left: 0.5rem;
}

.scroll-right {
  right: 0.5rem;
}

.menu-items {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  background:transparent;
}

.menu-item {
  background: transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.menu-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.menu-item-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.menu-item-title {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: #333;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 1.4em;
}

.menu-item-price {
  color: red;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.menu-item-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.add-to-cart-btn {
  background: red;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  transition: background 0.3s;
}

.add-to-cart-btn:hover {
  background: #e67e0d;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .menu-items {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem;
      padding: 0.5rem;
  }

  .menu-item img {
      height: 150px;
  }

  .menu-item-content {
      padding: 0.8rem;
  }

  .menu-item-title {
      font-size: 0.85rem;
  }

  .menu-item-price {
      font-size: 1rem;
  }

  .menu-item-description {
      font-size: 0.8rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  .add-to-cart-btn {
      padding: 0.6rem;
      font-size: 0.9rem;
  }
}