/* -----------------------------------
   FOOD DETAIL PAGE (CONTENT ONLY)
----------------------------------- */

.food-detail {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.food-detail h2 {
  font-size: 34px;
  font-weight: 700;
  margin-top: 20px;
  color: #222;
}

/* Food Image */
.food-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Rating */
.rating {
  margin: 12px 0 20px;
  color: #ffb400;
  font-size: 22px;
}

.rating span {
  color: #555;
  font-size: 16px;
  margin-left: 5px;
}

/* Section Titles */
.food-detail h3 {
  font-size: 26px;
  margin: 25px 0 10px;
  font-weight: 600;
  position: relative;
  padding-left: 12px;
}

/* Left border line */
.food-detail h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 4px;
  height: 22px;
  background: #d62828;
  border-radius: 2px;
}

.food-detail ul {
  padding-left: 20px;
  margin-top: 10px;
}

/* -----------------------------------
   RELATED FOODS
----------------------------------- */
.related-foods {
  margin-top: 40px;
}

.related-foods h3 {
  font-size: 26px;
  margin-bottom: 15px;
}

.food-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.food-card {
  text-decoration: none;
  background: #fff;
  color: #222;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #ddd;
  transition: 0.3s ease;
}

.food-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

.food-card img {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

.food-card p {
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
  font-size: 18px;
}

/* -----------------------------------
   BACK BUTTON
----------------------------------- */
.back-btn {
  display: inline-block;
  margin-top: 40px;
  text-decoration: none;
  background: #d62828;
  color: #fff;
  padding: 12px 22px;
  font-size: 16px;
  border-radius: 8px;
  transition: 0.3s ease;
}

.back-btn:hover {
  background: #b71d1d;
  transform: translateY(-3px);
}

/* -----------------------------------
   RESPONSIVE
----------------------------------- */
@media (max-width: 600px) {
  .food-detail {
    padding: 15px;
  }

  .food-detail h2 {
    font-size: 28px;
  }

  .food-image {
    height: 250px;
  }

  .food-detail h3 {
    font-size: 22px;
  }
}
