/* menu_new.css */
.menu-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.menu-hero {
  text-align: center;
  margin-bottom: 30px;
}


.menu-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff1cf;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

.menu-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: #222;
}

.menu-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: #666;
  font-size: 18px;
  line-height: 1.7;
}

.menu-page__controls {
  margin-bottom: 22px;
}

.menuType {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: transparent;
  position: sticky;
  top: 76px;
  z-index: 50;
  padding: 10px 0;
}

.menu-button {
  background: linear-gradient(180deg, #f0a43a 0%, #d97706 100%);
  color: #fff;
  border: none;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.22);
}

.menu-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.menu-page__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 150px;
}


.sidebar-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf1 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #1f2937;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  max-height: 65vh;
  overflow: auto;
}

.sidebar ul li {
  padding: 10px 12px;
  cursor: pointer;
  background: #fff6e8;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 10px;
  color: #4b5563;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar ul li:hover {
  background: #ffe7bf;
  transform: translateX(2px);
}
.sidebar ul li.active {
  background: linear-gradient(180deg, #f0a43a, #d97706);
  color: white;
  transform: translateX(2px);
}

.content {
  min-width: 0;
}

.menu-notes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.menu-note-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7e8;
  color: #8a5a00;
  font-weight: 700;
  font-size: 14px;
}

.menu-alert {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf1 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 5px solid #d97706;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.menu-alert h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #b45309;
  text-align: left;
}

.menu-alert p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.menu-item.no-image {
  display: block !important;
}

.menu-item.no-image .menu-item-details {
  width: 100%;
  padding-left: 0;
}

.category-section {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  scroll-margin-top: 150px;
}

.category-section h3 {
  margin: 0 0 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff3d6 0%, #ffe4ad 100%);
  color: #1f2937;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-section > p {
  margin: 0 0 10px;
  color: #6b7280;
  font-style: italic;
  line-height: 1.6;
}

.menu-item {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.menu-button {
    background: transparent !important;
    color: #8a5a00;
    border: 2px solid #d97706;
    box-shadow: none !important;
  }
  .menu-button.is-active {
    background: linear-gradient(180deg, #f0a43a, #d97706) !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.35);
  }
.menu-item:last-child {
  border-bottom: none;
}

.zoom-container {
  width: 280px;
  height: 190px;
  overflow: hidden;
  border-radius: 16px;
  background: #f8f8f8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.zoom-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.zoom-container:hover img {
  transform: scale(1.08);
}

.menu-item-details h4 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #1f2937;
}

.menu-item-details .item-description {
  margin: 0 0 8px;
  color: #6b7280;
  line-height: 1.7;
}

.menu-item-details .item-price {
  display: inline-block;
  margin-right: 12px;
  color: #d97706;
  font-weight: 800;
  padding: 0;
}

#back-to-top {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  border: none;
  outline: none;
  background: #d97706;
  color: white;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.26);
}

#back-to-top:hover {
  background: #b45309;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1200;
  inset: 0;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: 70px auto 0;
  display: block;
  width: min(90%, 900px);
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.close {
  position: absolute;
  top: 18px;
  right: 24px;
  left: auto;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.2s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #ddd;
}

#caption {
  margin: 18px auto 0;
  display: block;
  width: 90%;
  max-width: 700px;
  text-align: center;
  color: #eee;
  padding: 0 0 24px;
  height: auto;
}

@media (max-width: 1024px) {
  .menu-page__layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .menu-item {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .zoom-container {
    width: 240px;
    height: 165px;
  }
}

@media (max-width: 768px) {
  .menu-page {
    padding: 28px 16px 40px;
  }

/*  .menuType {
    grid-template-columns: 1fr;
    top: 68px;
  }*/
  .menuType {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    top: 68px;
  }
  .menu-button {
    font-size: 13px;
    padding: 12px 8px;
    border-radius: 10px;
  }
  .menu-page__layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
  .menu-page__layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .sidebar {
    position: sticky;
    top: 68px;
    z-index: 300;

    width: 100%;
    /*left: 50%;*/
    /*transform: translateX(-50%);*/

    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0;
  }

  .sidebar ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

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

  .zoom-container {
    width: 100%;
    height: 220px;
  }

  .category-section {
    scroll-margin-top: 120px;
  }

  .category-section h3 {
    font-size: 22px;
  }

  .menu-item-details h4 {
    font-size: 19px;
  }
}

@media (max-width: 520px) {
  .sidebar ul {
    grid-template-columns: 1fr;
  }

  .menu-hero p,
  .menu-alert p,
  .menu-item-details .item-description {
    font-size: 15px;
  }

  .menu-button {
    font-size: 14px;
    padding: 13px 14px;
  }

  .menu-note-pill {
    font-size: 13px;
  }
}
