/* Menu Improvements - Better Image Display */

/* Force Override Original CSS for Consistent Image Display */
.food_section .box .img-box img {
  max-width: 100% !important;
  max-height: none !important;
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Enhanced Food Section Styling */
.food_section {
  background: #f8f9fa;
  padding: 80px 0;
}

.food_section .heading_container h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  position: relative;
}

.food_section .heading_container h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #ffbe33;
  border-radius: 2px;
}

/* Improved Filter Menu */
.food_section .filters_menu {
  background: #ffffff;
  padding: 15px;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  width: fit-content;
}

.food_section .filters_menu li {
  padding: 12px 25px;
  margin: 0 5px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.food_section .filters_menu li:hover {
  background-color: rgba(255, 190, 51, 0.1);
  color: #ffbe33;
}

.food_section .filters_menu li.active {
  background: linear-gradient(135deg, #ffbe33, #ff9500);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(255, 190, 51, 0.4);
}

/* Enhanced Menu Item Cards */
.food_section .box {
  position: relative;
  margin-top: 30px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  height: 100%;
  background: linear-gradient(to bottom, #ffffff 60%, #222831 60%);
}

.food_section .box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Improved Image Box - Consistent Display */
.food_section .box .img-box {
  background: #ffffff !important;
  padding: 20px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 250px !important;
  position: relative !important;
  overflow: hidden !important;
  /* Force consistent container */
  min-height: 250px !important;
  max-height: 250px !important;
}

.food_section .box .img-box::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(34, 40, 49, 0.1));
}

.food_section .box .img-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* Force consistent aspect ratio */
  aspect-ratio: 4/3;
  /* Prevent image distortion */
  image-rendering: auto;
  /* Smooth scaling */
  image-rendering: -webkit-optimize-contrast;
}

.food_section .box:hover .img-box img {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Enhanced Detail Box */
.food_section .box .detail-box {
  padding: 25px;
  background: #222831;
  color: #ffffff;
  position: relative;
}

.food_section .box .detail-box h5 {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  color: #ffffff;
  line-height: 1.3;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.food_section .box .detail-box p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  min-height: 60px;
}

/* Enhanced Options Section */
.food_section .box .options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.food_section .box .options h6 {
  font-size: 20px;
  font-weight: 700;
  color: #ffbe33;
  margin: 0;
}

.food_section .box .options a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffbe33, #ff9500);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 190, 51, 0.3);
}

.food_section .box .options a:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 5px 15px rgba(255, 190, 51, 0.5);
}

.food_section .box .options a svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

/* Enhanced Button */
.food_section .btn-box {
  margin-top: 60px;
  text-align: center;
}

.food_section .btn-box a {
  display: inline-block;
  padding: 15px 50px;
  background: linear-gradient(135deg, #ffbe33, #ff9500);
  color: #ffffff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 190, 51, 0.3);
}

.food_section .btn-box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 190, 51, 0.4);
  color: #ffffff;
  text-decoration: none;
}

/* Grid Layout Improvements */
.food_section .filters-content .row {
  margin: 0 -15px;
}

.food_section .filters-content [class*="col-"] {
  padding: 0 15px;
  margin-bottom: 30px;
}

/* Responsive Improvements - Consistent Image Display */
@media (max-width: 768px) {
  .food_section .box .img-box {
    height: 220px;
    padding: 15px;
  }

  .food_section .box .img-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
  }

  .food_section .box .detail-box h5 {
    font-size: 16px;
    min-height: auto;
  }

  .food_section .box .detail-box p {
    min-height: auto;
    font-size: 13px;
  }

  .food_section .filters_menu {
    flex-wrap: wrap;
    margin: 30px auto;
  }

  .food_section .filters_menu li {
    margin: 5px;
    padding: 10px 20px;
  }
}

@media (max-width: 576px) {
  .food_section .box .img-box {
    height: 200px;
    padding: 15px;
  }

  .food_section .box .img-box img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
  }

  .food_section .box .detail-box {
    padding: 20px;
  }

  .food_section .heading_container h2 {
    font-size: 2.2rem;
  }
}

/* Category-specific styling */
.food_section .box.appetizer-item {
  background: linear-gradient(to bottom, #fff5e6 60%, #222831 60%);
}

.food_section .box.pho-item {
  background: linear-gradient(to bottom, #f0f8ff 60%, #222831 60%);
}

.food_section .box.rice-item {
  background: linear-gradient(to bottom, #fff8dc 60%, #222831 60%);
}

.food_section .box.ramen-item {
  background: linear-gradient(to bottom, #ffe4e1 60%, #222831 60%);
}

.food_section .box.vermicelli-item {
  background: linear-gradient(to bottom, #f0fff0 60%, #222831 60%);
}

.food_section .box.banhmi-item {
  background: linear-gradient(to bottom, #fdf5e6 60%, #222831 60%);
}

.food_section .box.drinks-item {
  background: linear-gradient(to bottom, #f5f0ff 60%, #222831 60%);
}
