/* ================================
   ZEFERAN — FULL MENU PAGE
   ================================ */

body.menu-page {
  background: var(--black);
  min-height: 100vh;
}

/* Nav active state */
.nav .nav-links a.active {
  color: var(--gold);
}

/* ---- Hero ---- */
.menu-hero {
  padding: 14rem 3rem 6rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.menu-hero-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.menu-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.menu-hero-title em {
  font-style: italic;
  color: var(--gold);
}

.menu-hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Sticky Category Nav ---- */
.menu-cat-nav {
  position: sticky;
  top: 82px;
  z-index: 90;
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.menu-cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  scroll-behavior: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.menu-cat-nav-inner::-webkit-scrollbar { display: none; }


.menu-cat-btn {
  flex-shrink: 0;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.menu-cat-btn:hover { color: var(--text); }
.menu-cat-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---- Main Menu Content ---- */
.menu-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem 8rem;
}

/* ---- Category Section ---- */
.menu-section {
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.menu-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-section-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--dark-border);
}

.menu-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}

.menu-section-count {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Menu Items Grid ---- */
.menu-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* ---- Menu Item ---- */
.menu-item-full {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s;
}

.menu-item-full.visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-item-full:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.05);
}

/* Item Image */
.menu-item-img-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--dark2);
}

.menu-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s, transform 0.4s;
}

.menu-item-full:hover .menu-item-img-wrap img {
  filter: grayscale(0%);
  transform: scale(1.06);
}

.menu-item-img-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-item-img-empty svg {
  width: 24px;
  height: 24px;
  stroke: var(--dark-border);
  fill: none;
}

/* Item Content */
.menu-item-body {
  flex: 1;
  min-width: 0;
}

.menu-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.menu-item-name-full {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.menu-item-price-full {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item-desc-full {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Signature Badge ---- */
.menu-item-full.signature .menu-item-name-full::after {
  content: '★';
  font-size: 0.6rem;
  color: var(--gold);
  margin-left: 0.4rem;
  vertical-align: super;
}

/* ---- No Items ---- */
.menu-no-items {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ---- Divider between menu types ---- */
.menu-type-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}

.menu-type-divider span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.menu-type-divider::before,
.menu-type-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dark-border);
}

/* ---- Back to top ---- */
.menu-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 100;
}

.menu-back-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-back-top:hover { background: var(--gold-light); }
.menu-back-top svg { width: 18px; height: 18px; stroke: var(--black); fill: none; }

/* ---- Light theme overrides ---- */
body.theme-light.menu-page { background: #f5f0e8; }
body.theme-light .menu-cat-nav { background: #f0ebe1; border-color: #e0d8cc; }
body.theme-light .menu-cat-btn { color: #8a7a6a; }
body.theme-light .menu-cat-btn:hover { color: #2a1a0a; }
body.theme-light .menu-cat-btn.active { color: #401a58; border-bottom-color: #401a58; }
body.theme-light .menu-section-title { color: #1a0a0a; }
body.theme-light .menu-item-name-full { color: #1a0a0a; }
body.theme-light .menu-item-price-full { color: #401a58; }
body.theme-light .menu-item-img-wrap { background: #e8e0d4; }
body.theme-light .menu-section-header { border-color: #d8d0c4; }
body.theme-light .menu-item-full { border-color: rgba(0,0,0,0.07); }
body.theme-light .menu-item-full:nth-child(even) { border-color: rgba(0,0,0,0.07); }

/* ---- Lightbox ---- */
.menu-item-img-clickable {
  cursor: zoom-in;
}

.menu-item-img-clickable:hover img {
  filter: grayscale(0%) brightness(1.08);
}

#menu-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#menu-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lb-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

#menu-lightbox.active .lb-content {
  transform: scale(1);
}

.lb-img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}

.lb-img.lb-loaded {
  opacity: 1;
}

.lb-caption {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  text-align: center;
}

.lb-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lb-close:hover { background: rgba(255,255,255,0.2); }

.lb-close svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .menu-cat-nav {
    top: 62px;
  }
  .menu-hero { padding: 10rem 1.5rem 4rem; }
  .menu-main { padding: 3rem 1.5rem 5rem; }
  .menu-cat-nav-inner { padding: 0 1rem; }
  .menu-items-grid { grid-template-columns: 1fr; }
  .menu-item-full:nth-child(even) { padding-left: 0; border-left: none; }
  .menu-item-full { padding: 1.5rem 0; }
}
