/* ── Menu page hero ── */
.menu-hero {
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--nav-height);
}
.menu-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/photos/food-peking-duck.webp');
  background-size: cover;
  background-position: center;
}
.menu-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,0,0,0.62) 0%, rgba(60,0,0,0.48) 100%);
}
.menu-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.menu-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: #ffffff;
}

/* ── Tab bar ── */
.tab-bar-wrapper {
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--outline-variant);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tab-scroll-hint {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52px;
  border: none;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 1.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tab-scroll-hint.visible {
  opacity: 1;
  pointer-events: auto;
}
.tab-scroll-hint--left {
  left: 0;
  justify-content: flex-start;
  padding-left: 0.4rem;
  background: linear-gradient(to right, #fff 55%, rgba(255,255,255,0));
}
.tab-scroll-hint--right {
  right: 0;
  justify-content: flex-end;
  padding-right: 0.4rem;
  background: linear-gradient(to left, #fff 55%, rgba(255,255,255,0));
}
.tab-bar {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1rem 1.25rem;
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s, transform 0.18s, letter-spacing 0.18s;
}
.tab-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
  letter-spacing: 0.14em;
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── Menu sections ── */
.menu-sections { padding: 3rem 0 5rem; }

.menu-section { margin-bottom: 4rem; }

.menu-section-header {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 2rem 1rem;
  border-bottom: 1px solid var(--outline-variant);
}
.menu-section-header .zh {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}
.menu-section-header .en {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--on-surface);
  margin-top: 0.25rem;
}

/* ── Item grid ── */
.menu-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .menu-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Item card ── */
.menu-item {
  background: #ffffff;
  border: 1px solid var(--outline-variant);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.menu-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.menu-item-photo {
  position: relative;
  overflow: hidden;
}
.menu-item-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-item:hover .menu-item-img { transform: scale(1.07); }
.menu-item-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--outline);
}
.menu-item-body {
  padding: 0.75rem 0.9rem 0.9rem;
}
.menu-item-zh {
  display: block;
  font-size: 0.8rem;
  color: var(--primary);
  line-height: 1.3;
}
.menu-item-en {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-surface);
  margin-top: 2px;
  line-height: 1.3;
}
.menu-item-price {
  display: none; /* prices hidden until menu is updated */
  font-size: 0.9rem;
  color: var(--primary);
  margin-top: 0.4rem;
}

/* ── Badge strip ── */
.badge-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: linear-gradient(90deg, #8b0000, #c0390a, #8b0000);
  color: #fefccf;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.28rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: var(--font);
}

/* ── Detail row (expand-in-place) ── */
.menu-item.detail-open {
  border-color: #8b0000;
  box-shadow: 0 0 0 2px rgba(139,0,0,0.15);
}

.detail-row {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid #dedcb1;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  animation: detailReveal 220ms ease;
}

@keyframes detailReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .detail-row { animation: detailFade 220ms ease; }
  @keyframes detailFade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

.detail-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.detail-placeholder {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #ece9c0 0%, #dedcb1 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #b0aa82;
  font-size: 2.5rem;
}

.detail-placeholder span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b0aa82;
  font-family: var(--font);
}

.detail-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #ece9c0;
}

.detail-zh {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.detail-en {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.detail-desc {
  font-size: 1rem;
  color: #555548;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
  max-width: 42ch;
}

.detail-price {
  display: none; /* prices hidden until menu is updated */
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .detail-row {
    grid-template-columns: 1fr;
  }
  .detail-photo,
  .detail-placeholder {
    aspect-ratio: 16 / 9;
  }
  .detail-body {
    border-left: none;
    border-top: 1px solid #ece9c0;
    padding: 1.25rem;
  }
  .detail-en { font-size: 1.3rem; }
}
