body {
  /* Very light background color behind image */
  background-color: #f9f9f9;
  margin:0;

  /* Background image with light overlay */
  background-image: 
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.3)),
    url('/uploads/tikiri-cotsworls-menu-table-bg.jpg');

  background-position: top center;  /* align image to top */
  background-repeat: no-repeat;     /* prevent repeating */
  background-size: 100% auto;       /* full width, height auto to keep aspect ratio */
  min-height: 50vh;                 /* ensures image area is half viewport height */
  
  color: #333;
  font-family: 'Inter', sans-serif;
}



/* Menu container covers behind transparent header */
.menu-container {
  min-height: 100vh;
  margin: 0 auto; /* center container */
  margin-top: -100px; /* pull up so header overlaps */
  /*position: relative;*/
  z-index: 1;

  width: 80%; /* desktop width */
  max-width: 1200px;
  color: #333;
  padding: 120px 20px 60px; /* extra top padding so content clears header */
}




/* Titles */
.menu-title {
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  color: #333;
}

.category-title {
  font-size: 2rem;
  margin: 50px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  color: #333;
}

.subcategory-title {
  font-size: 1.5rem;
  margin: 25px 0 15px;
  color: #ddd;
}

/* Grid for menu items */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-auto-rows: 1fr; /* ensure all items in a row have same height */
  gap: 25px;
}

/* Menu item card */
.menu-item {
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.55);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  height: 100%; /* take full grid row height */
}




.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* Image wrap */
.menu-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.menu-item img.dish-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.menu-item:hover .dish-image {
  transform: scale(1.05);
}

/* Details inside menu-item should fill remaining space */
.menu-details {
  padding: 18px 20px 22px;
  flex-grow: 1; /* ensures equal height cards */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-details h4 {
  font-size: 1.3rem;
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.dish-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffd369;
}

.menu-details p,
.menu-details ul {
  color: #ccc;
  font-size: 0.95rem;
  margin: 5px 0;
}

.dish-sku {
  font-size: 0.85rem;
  color: #aaa;
}

/* Includes list */
.meal-includes {
  margin: 8px 0 12px;
  padding-left: 18px;
  list-style: disc;
}

/* Add to cart button */
.add-to-cart {
  background: #e74c3c;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-to-cart:hover {
  background: #c0392b;
}

/* Tags */
.tags {
  margin-top: 5px;
}

.tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 5px;
  color: #fff;
}

.tag.delivery {
  background: #27ae60;
}

.tag.collection {
  background: #2980b9;
}

/* Allergens */
.allergens {
  color: #e74c3c;
  font-size: 0.9rem;
}

/* Responsive: full width on small devices */
@media (max-width: 900px) {
  .menu-container {
    width: 100%;
    padding: 100px 15px 50px; /* adjust top padding for smaller screen */
  }
}
/* Responsive tweaks */
@media (max-width: 768px) {
    
  .menu-title {
    font-size: 2rem;
    margin-bottom: 35px;
  }

  .category-title {
    font-size: 1.6rem;
  }

  .subcategory-title {
    font-size: 1.2rem;
  }

  .menu-grid {
    gap: 15px;
  }

  .menu-img-wrap {
    height: 160px;
  }

  .menu-details h4 {
    font-size: 1.1rem;
  }

  .dish-price {
    font-size: 1rem;
  }
}
