/* ───────── Μενού ─────────
   Υπολογιστής: αριστερά ευρετήριο που μένει σταθερό, δεξιά η «κάρτα» με τα πιάτα.
   Κινητό: μικρή μπάρα «πού είμαι» που ανοίγει όλες τις κατηγορίες με ένα πάτημα. */

.pmenu {
  --pm-max: 1240px;
  --pm-aside: 260px;
  --pm-nav-clear: 104px;          /* κενό κάτω από το νησάκι πλοήγησης */
  position: relative;
  padding: clamp(110px, 12vw, 170px) 0 clamp(80px, 10vw, 140px);
  background:
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(245, 179, 36, 0.07), transparent 70%),
    var(--bg);
}

.pmenu__head { max-width: var(--pm-max); margin: 0 auto; padding: 0 var(--gutter); }
.pmenu__head h2 { margin-top: 22px; font-size: clamp(44px, 6.4vw, 100px); }
.pmenu__head p { margin-top: 20px; max-width: 440px; color: var(--text-dim); }

.pmenu__layout {
  display: grid; grid-template-columns: var(--pm-aside) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px);
  max-width: var(--pm-max); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--gutter);
}

/* ───────── Ευρετήριο ───────── */
.pmenu__aside {
  position: sticky; top: var(--pm-nav-clear); align-self: start;
  display: flex; flex-direction: column; gap: 28px;
}
.pindex { list-style: none; border-top: 1px solid var(--line); }
.pindex__link {
  position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: baseline; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  color: var(--text-faint); transition: color 0.35s var(--ease);
}
.pindex__num { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.pindex__name { font-size: 15px; font-weight: 500; color: var(--text-dim); transition: color 0.35s var(--ease), translate 0.5s var(--ease); }
.pindex__count { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pindex__link::before {   /* χρυσή γραμμή που «γεμίζει» στην ενεργή κατηγορία */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.pindex__link:hover .pindex__name { color: var(--text); }
.pindex__link.is-active { color: var(--gold); }
.pindex__link.is-active .pindex__name { color: var(--text); translate: 4px 0; }
.pindex__link.is-active::before { transform: scaleX(1); }

.pmenu__legend { display: flex; flex-wrap: wrap; gap: 14px; }
.pmenu__call { align-self: flex-start; }

/* ───────── Ετικέτες: λεπτή τελεία αντί για emoji ───────── */
.ptag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); white-space: nowrap;
}
.ptag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }
.ptag--spicy::before { background: #ff7a4d; box-shadow: 0 0 8px rgba(255, 122, 77, 0.7); }
.ptag--lent::before { background: var(--basil); box-shadow: 0 0 8px rgba(127, 174, 90, 0.7); }

/* ───────── Κατηγορία ───────── */
.pcat + .pcat { margin-top: clamp(88px, 10vw, 150px); }
.pcat__head { display: flex; gap: clamp(18px, 2.4vw, 32px); align-items: flex-start; }
.pcat__num {
  flex: none; font-family: var(--serif); font-style: italic; font-weight: 400; line-height: 0.9;
  font-size: clamp(48px, 5.4vw, 80px); color: transparent; -webkit-text-stroke: 1px rgba(242, 196, 90, 0.55);
}
.pcat__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.pcat__title { margin-top: 10px; font-size: clamp(34px, 4vw, 58px); }
.pcat__intro { margin-top: 12px; max-width: 48ch; font-size: 15px; color: var(--text-dim); }

.pcat__photo {
  position: relative; margin-top: clamp(28px, 3.4vw, 44px); overflow: hidden;
  aspect-ratio: 16 / 7; border-radius: 20px; background: var(--bg-raise);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.pcat__photo img { width: 100%; height: 100%; object-fit: cover; }
.pcat__photo::after {   /* απαλό σκοτείνιασμα στις άκρες, σαν φακός */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(8, 6, 5, 0.55) 100%);
}

/* ───────── Πιάτα: όνομα αριστερά, τιμή δεξιά, υλικά από κάτω ───────── */
.pcat__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; margin-top: clamp(20px, 2.4vw, 32px); }
.pdish { padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.pdish__row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.pdish__name { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; }
.pdish__tags { display: inline-flex; gap: 10px; margin-left: 10px; vertical-align: 3px; }
.pdish__price { flex: none; display: inline-flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.pdish__from { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.pdish__amount { font-size: 15.5px; font-weight: 700; color: var(--gold); }
.pdish__desc { margin-top: 7px; max-width: 44ch; font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }
.pdish:hover .pdish__name { color: #fff; }

/* ───────── Μπάρα και φύλλο κατηγοριών (κινητό) ───────── */
.pmenu__bar { display: none; }

.psheet {
  width: min(100%, 520px); max-width: 100%; max-height: 88vh; max-height: 88dvh; margin: auto auto 0;
  padding: 8px 22px max(22px, env(safe-area-inset-bottom));
  border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0;
  background: #120e0b; color: var(--text); overflow-y: auto;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.6);
}
.psheet[open] { animation: pm-sheet-in 0.5s var(--ease); }
.psheet::backdrop { background: rgba(5, 4, 3, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.psheet__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 14px; }
.psheet__head::before {  /* λαβή φύλλου */
  content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px;
  border-radius: 4px; background: var(--line);
}
.psheet__title { font-family: var(--serif); font-size: 26px; }
.psheet__close {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  cursor: pointer; font-size: 14px; color: var(--text-dim);
}
.pindex--sheet .pindex__link { padding: 13px 0; }
.pindex--sheet .pindex__name { font-size: 17px; }
body:has(.psheet[open]) { overflow: hidden; }

@keyframes pm-sheet-in { from { transform: translateY(100%); } to { transform: none; } }

/* ───────── Απαλή εμφάνιση ───────── */
.pmenu.is-ready [data-pm-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--pm-delay, 0ms);
}
.pmenu.is-ready .pcat__photo[data-pm-reveal] { transform: none; clip-path: inset(6% 4% round 20px); transition: opacity 1.1s var(--ease), clip-path 1.3s var(--ease); }
.pmenu.is-ready .pcat__photo img { scale: 1.08; transition: scale 1.8s var(--ease); }
.pmenu.is-ready [data-pm-reveal].is-in { opacity: 1; transform: none; }
.pmenu.is-ready .pcat__photo.is-in { clip-path: inset(0 round 20px); }
.pmenu.is-ready .pcat__photo.is-in img { scale: 1; }

/* Χαμηλές οθόνες laptop: το ευρετήριο πυκνώνει για να χωράει ολόκληρο. */
@media (min-width: 1024px) and (max-height: 780px) {
  .pmenu__aside { gap: 20px; }
  .pindex__link { padding: 8px 0; }
}

/* ───────── Tablet ───────── */
@media (max-width: 1180px) {
  .pcat__list { grid-template-columns: 1fr; }
}

/* ───────── Κινητό & tablet ───────── */
@media (max-width: 1023px) {
  .pmenu__layout { display: block; margin-top: 48px; }
  .pmenu__aside { display: none; }

  /* Η μπάρα φαίνεται μόνο όσο ο επισκέπτης βλέπει πιάτα, και σβήνει απαλά στο τέλος. */
  .pmenu__bar {
    display: block; position: fixed; z-index: 40; top: 80px; left: 0; right: 0;
    max-width: var(--pm-max); margin: 0 auto; padding: 0 var(--gutter);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  }
  .pmenu__bar.is-visible { opacity: 1; visibility: visible; transform: none; }
  .pmenu__bar-btn {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px 12px 20px;
    border: 1px solid var(--line); border-radius: 999px; cursor: pointer; text-align: left;
    background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  }
  .pmenu__bar-num { flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--gold); font-variant-numeric: tabular-nums; }
  .pmenu__bar-title { flex: 1; min-width: 0; font-family: var(--serif); font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pmenu__bar-more {
    flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
    background: var(--brand); color: var(--on-brand); font-size: 12.5px; font-weight: 700;
  }
  .pmenu__bar-more::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -2px; }

  .pcat { scroll-margin-top: 140px; }
  .pcat__photo { aspect-ratio: 16 / 10; border-radius: 18px; }
  .pmenu.is-ready .pcat__photo[data-pm-reveal] { clip-path: inset(5% 4% round 18px); }
  .pmenu.is-ready .pcat__photo.is-in { clip-path: inset(0 round 18px); }
}

@media (max-width: 520px) {
  .pcat__head { gap: 14px; }
  .pcat__num { font-size: 44px; }
  .pdish__name { font-size: 19px; }
  .pdish__row { gap: 14px; }
  .pdish__tags { display: flex; margin: 8px 0 0; }
  /* Στο στενό κινητό το «Κατηγορίες» γίνεται στρογγυλό βελάκι, για να χωράει ο τίτλος.
     Η λέξη μένει για όσους χρησιμοποιούν αναγνώστη οθόνης. */
  .pmenu__bar-more { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 0; }
}

/* «Λιγότερη κίνηση» στα Windows: μόνο απαλό σβήσιμο-άναμμα, χωρίς μετακινήσεις. */
@media (prefers-reduced-motion: reduce) {
  .pmenu.is-ready [data-pm-reveal], .pmenu.is-ready .pcat__photo[data-pm-reveal] { transform: none; clip-path: none; transition: opacity 0.8s ease; }
  .pmenu.is-ready .pcat__photo img { scale: 1; transition: none; }
  .psheet[open] { animation: none; }
  .pindex__link.is-active .pindex__name { translate: none; }
  .pmenu__bar { transform: none; transition: opacity 0.4s ease, visibility 0.4s; }
}
