/* --- BỐ CỤC CHUNG --- */
.restaurant-menu-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  gap: 30px;
  padding: 0 15px;
  font-family: 'Poppins', sans-serif;
}

/* --- CỘT TRÁI: SIDEBAR --- */
.menu-sidebar {
  flex: 0 0 250px; /* Chiều rộng cố định 250px */
  background-color: #fff8f0; /* Màu nền be nhạt */
  padding: 20px;
  border-radius: 12px;
  height: fit-content;
  position: sticky; /* Giữ cố định khi cuộn trang */
  top: 80px; 
}

.sidebar-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 15px;
}

.menu-link {
  text-decoration: none;
  color: #555;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: block;
}

.menu-link:hover, .menu-link.active {
  color: #e31837; /* Màu đỏ cam khi hover hoặc đang xem */
  font-weight: 700;
  border-bottom: 1px solid #e31837;
  display: inline-block;
}

/* --- CỘT PHẢI: NỘI DUNG MÓN ĂN --- */
.menu-main-content {
  flex: 1; /* Chiếm toàn bộ phần không gian còn lại */
}

/* Kiểu chữ tiêu đề đặc biệt */
.section-title {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem); 
  background: linear-gradient(45deg, #cc0000, #ff6600);
  -webkit-background-clip: text;
  background-clip: text; 
  color: transparent;
  -webkit-text-fill-color: transparent; 
  filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.15));
  text-align: center;
  margin-bottom: 40px;
}

.section-title span {
  font-size: 1.1em;
  background: linear-gradient(45deg, #ff3300, #ffcc00);
  -webkit-background-clip: text;
   background-clip: text; 
  -webkit-text-fill-color: transparent;
}

.menu-category-section {
  margin-bottom: 50px;
  animation: fadeInMenu 0.4s ease-in-out;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.category-header h3 {
  font-size: 1.5rem;
  color: #222;
  margin: 0;
}

.badge-new {
  background-color: #e31837;
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}

/* Thẻ ngang (Món phổ biến) */
.horizontal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.food-card-h {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s;
}

.food-card-h:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.food-card-h img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

/* Danh sách dọc (Món ngon) */
.vertical-list {
  display: flex;
  flex-direction: column;
}

.food-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.food-list-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

/* Định dạng chung cho thông tin món */
.food-info h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  color: #333;
}

.food-info .price {
  color: #e31837;
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- RESPONSIVE CHO ĐIỆN THOẠI --- */
@media (max-width: 768px) {
  .restaurant-menu-wrapper {
    flex-direction: column; /* Xếp chồng cột menu lên trên nội dung */
  }
  
  .menu-sidebar {
    flex: auto;
    position: relative; /* Tắt sticky trên mobile */
    top: 0;
    overflow-x: auto; /* Cuộn ngang menu sidebar trên điện thoại */
    white-space: nowrap;
    padding: 15px;
  }

  .sidebar-list {
    display: flex;
    gap: 15px;
  }
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}