/* =========================
   HERO
========================= */
.menu-hero {
  background: url('../img/header-menu.png') center/cover no-repeat;
  height: 260px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.menu-title {
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
}

/* =========================
   LAYOUT DESKTOP
========================= */
.menu-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

/* SIDEBAR */
.menu-sidebar {
  position: sticky;
  top: 120px;
}

.menu-sidebar ul {
  list-style: none;
  padding: 0;
}

.menu-sidebar li {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  margin: 3px;
}

.menu-sidebar li.active {
  background: #000;
  color: #fff;
}

.menu-sidebar li:hover {
    border: 1px solid #000;
}

/* =========================
   MENU GRID
========================= */
.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.menu-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #eee;
}

.menu-card img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    margin-bottom: 18px;
}

.menu-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.menu-price {
    font-size: 1rem;
    color: #146c43;
    font-weight: 700;
}

.menu-desc {
    font-size: .9rem;
    opacity: .8;
}

.menu-section {
    margin-bottom: 120px !important;
}

/* =========================
   CATEGORY BAR (MOBILE)
========================= */
.menu-category-bar {
  display: none;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.menu-category-bar button {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 600;
}

.menu-category-bar button.active {
  background: #000;
  color: #fff;
}

/* =========================
   MODAL
========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 30px;
    position: relative;
    animation: fadeIn 0.25s ease;
    text-align: center;
}

.modal-box img {
  max-width: 100%;
  height: auto;
  padding-top: 30px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 32px;
    cursor: pointer;
    z-index: 999999;
    padding: 10px;
    line-height: 1;
}

.modal-img-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.modal-price {
    font-size: 22px;
    font-weight: bold;
    color: #006d2f;
}

.modal-btn {
    display: inline-block;
    background: #222;
    color: white;
    padding: 12px 24px;
    margin-top: 20px;
    border-radius: 30px;
    font-size: 16px;
    text-decoration: none;
}

.modal-btn:hover {
    background: #fff;
    color: #000;
    border: solid 1px #222;
}

/* =========================
   MOBILE FIX (≤576px)
========================= */
@media (max-width: 576px) {

  .menu-layout {
    grid-template-columns: 1fr;
  }

  .menu-sidebar {
    display: none;
  }

  .menu-category-bar {
    display: flex;
  }

  .menu-title {
    font-size: 2rem;
  }

  .menu-hero {
    height: 180px;
  }

  .modal-box {
    max-width: 100%;
  }
}
