/* ===== MENU PAGE ===== */
.menu-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

/* FILTER */
.menu-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 48px 0 64px;
}

.filter-btn {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
}

/* CATEGORY */
.menu-category {
  margin-bottom: 64px;
}

.menu-category.hidden {
  display: none;
}

.category-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--teal-light);
  margin-bottom: 32px;
  text-align: left;
  position: relative;
  padding-bottom: 12px;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

/* MENU GRID */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* MENU CARD */
.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(21, 119, 135, 0.3);
  border-color: var(--teal);
}

.menu-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-mid);
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.1);
}

.menu-card-body {
  padding: 20px;
}

.menu-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  min-height: 2.4em;
}

.menu-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.menu-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange);
}

.menu-weight {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(21, 119, 135, 0.2);
  padding: 4px 12px;
  border-radius: 6px;
}

/* DISH MODAL */
.dish-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dish-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.dish-modal {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.dish-modal-overlay.active .dish-modal {
  transform: scale(1);
}

.dish-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dish-modal-close:hover {
  background: var(--orange);
  transform: rotate(90deg);
}

.dish-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.dish-modal-img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--bg-dark);
}

.dish-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-modal-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dish-modal-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.dish-modal-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.dish-modal-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange);
}

.dish-modal-weight {
  font-size: 1rem;
  color: var(--text-muted);
  background: rgba(21, 119, 135, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
}

.dish-modal-composition {
  margin-bottom: 32px;
}

.dish-modal-composition h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-light);
  margin-bottom: 12px;
}

.dish-modal-composition p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-page {
    padding: 100px 0 60px;
  }

  .menu-filter {
    gap: 8px;
    margin: 32px 0 48px;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .menu-card-img {
    height: 180px;
  }

  .category-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .dish-modal-content {
    grid-template-columns: 1fr;
  }

  .dish-modal-img {
    min-height: 300px;
  }

  .dish-modal-info {
    padding: 24px;
  }

  .dish-modal-info h2 {
    font-size: 1.5rem;
  }

  .dish-modal-price {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-filter {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }
}
