/* menu.css — page-specific styles only. Shared styles are in shared.css */

/* ================= MENU HERO ================= */

.menu-hero {
  height: 50vh;
  min-height: 260px;
  background-image: url("pictures/biryani.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.menu-hero .container {
  position: relative;
  z-index: 2;
}

.main_heading {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  text-align: center;
  color: var(--white);
  font-family: cursive;
  font-weight: 800;
}

/* ================= CATEGORY TABS ================= */

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 48px 0 40px;
}

.tab-btn {
  padding: 10px 22px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(13px, 1.5vw, 15px);
  transition: var(--transition);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  color: var(--white);
}

/* ================= MENU SECTIONS ================= */

.menu-section {
  display: none;
  margin-bottom: 60px;
}

.menu-section.active {
  display: block;
}

/* Universal grid — overridden per section below */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* Specific grids */
#salad .menu-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#handi .menu-grid,
#karahi .menu-grid,
#bbq .menu-grid,
#tandoor .menu-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ================= MENU CARD ================= */

.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.menu-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.menu-content {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-content h3 {
  color: var(--primary);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.3;
}

.menu-content p {
  color: #555;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  line-height: 1.6;
  flex: 1;
}

.menu-content hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 4px 0;
}

.price {
  display: block;
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin-top: 4px;
}


/* =============================================
   RESPONSIVE — Menu-specific overrides
   ============================================= */

@media (max-width: 768px) {
  .menu-hero {
    height: 40vh;
  }

  .category-tabs {
    gap: 8px;
    margin: 32px 0 28px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  #handi .menu-grid,
  #karahi .menu-grid,
  #bbq .menu-grid,
  #tandoor .menu-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .menu-hero {
    height: 35vh;
    min-height: 200px;
  }
  .cart-text {
    display: none;
  }

  .menu-grid,
  #handi .menu-grid,
  #karahi .menu-grid,
  #bbq .menu-grid,
  #tandoor .menu-grid,
  #salad .menu-grid {
    grid-template-columns: 1fr;
  }

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