/* Menu section */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.menu-tab {
  padding: 0.5rem 2rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: "Nunito", Arial, sans-serif;
  font-weight: bold;
  position: relative;
}

.menu-tab h2 {
  color: var(--text-color);
  transition: color 0.3s ease; 
}

/* Create a pseudo-element for the sliding border */
.menu-tab::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: hsl(24, 76%, 86%); /* Hover color */
  transform: scaleX(0); /* Start with 0 width */
  transform-origin: left; /* Animation will start from left side */
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.menu-tab:hover::after {
  transform: scaleX(1); /* Expand to full width */
}

.menu-tab.active::after {
  transform: scaleX(1); /* Keep at full width */
  background-color: hsl(24, 76%, 56%); /* Active state color */
}

.menu-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.menu-grid.active {
  display: grid;
}

.menu-item {
  overflow: hidden;
  transition: transform 0.3s;
}

.menu-item:hover {
  transform: none;
}

.menu-item img {
  width: 100%;
  height: 300px;
  border-radius: 7px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.menu-item:hover img {
  transform: scale(1.05);
}

.menu-item-content {
  padding: 1rem;
  text-align: center;
}

.menu-item-price {
  color: var(--menu-item-price);
  font-weight: bold;
  margin: 0;
}
