/* Public menu — themed via CSS custom properties set per restaurant. */

* { box-sizing: border-box; margin: 0; padding: 0; }
[x-cloak] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body-font);
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
  overflow-x: clip;
}

.menu-app { max-width: 760px; margin: 0 auto; padding: 0 1.1rem; }

/* ---- header ---- */
.hero { text-align: center; padding: 2.4rem 0 1.4rem; position: relative; }
.lang-toggle {
  position: absolute; top: .9rem; right: 0;
  display: inline-flex;
  border: 1.5px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.lang-toggle button {
  font: inherit; font-size: .82rem; font-weight: 600;
  padding: .3rem .75rem;
  border: 0; background: none; color: var(--muted); cursor: pointer;
}
.lang-toggle button.active { background: var(--primary); color: var(--background); }
.hero .logo {
  width: 84px; height: 84px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--accent); margin-bottom: .8rem; background: var(--surface);
}
.hero h1 {
  font-family: var(--heading-font);
  font-weight: 650;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  color: var(--primary);
  letter-spacing: .01em;
}
.hero .tagline { color: var(--muted); margin-top: .35rem; font-size: 1.02rem; }

/* ---- toolbar ---- */
.toolbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--background) 92%, transparent);
  backdrop-filter: blur(8px);
  padding: .7rem 0 .6rem;
}
.search { position: relative; }
.search svg {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.search input {
  width: 100%;
  padding: .72rem 2.4rem .72rem 2.6rem;
  font: inherit; font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 999px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.search .clear {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  border: 0; background: none; font-size: 1.4rem; line-height: 1;
  color: var(--muted); cursor: pointer; padding: .3rem .55rem;
}

.chips {
  display: flex; gap: .45rem; overflow-x: auto; padding: .65rem 0 .15rem;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  font: inherit; font-size: .88rem; font-weight: 500;
  padding: .38rem .95rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--primary);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.chip.active { background: var(--primary); color: var(--background); }
.chip-outline {
  background: transparent;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: color-mix(in srgb, var(--accent) 75%, var(--text));
}
.chip-outline.active { background: var(--accent); border-color: var(--accent); color: var(--background); }
.chips-secondary { padding-top: .3rem; }

/* ---- sections & items ---- */
.menu-section { margin-top: 1.9rem; }
.menu-section h2 {
  font-family: var(--heading-font);
  font-weight: 650;
  color: var(--primary);
  font-size: 1.45rem;
  margin-bottom: .9rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.items { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }

.item {
  background: var(--surface);
  border-radius: 14px;
  padding: .95rem 1.05rem;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--primary) 10%, transparent);
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.item-body { flex: 1; min-width: 0; }
.item-photo {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}
.item-photo-link {
  flex: 0 0 auto; display: block; cursor: zoom-in;
  border: 0; padding: 0; background: none;
}
.item-photo-link .item-photo { transition: transform .12s; }
.item-photo-link:hover .item-photo { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 15, 12, .85);
  padding: 1.2rem;
  overflow: auto;
}
.lightbox img {
  max-width: min(92vw, 900px); max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
  cursor: zoom-in;
}
.lightbox img.zoomed {
  max-width: none; max-height: none;
  cursor: zoom-out;
  border-radius: 0;
  align-self: flex-start;
  margin: auto;
}
.lightbox-close {
  position: fixed; top: .9rem; right: .9rem; z-index: 101;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); color: #222;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.item-head { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; row-gap: .1rem; }
.item-head h3 { font-size: 1.05rem; font-weight: 600; min-width: 0; }
.item-head .dots {
  flex: 1;
  border-bottom: 2px dotted color-mix(in srgb, var(--muted) 45%, transparent);
  transform: translateY(-4px);
  min-width: 1rem;
}
.price { font-weight: 600; color: var(--primary); white-space: nowrap; }
.price .currency { font-size: .72rem; color: var(--muted); font-weight: 500; }
.desc { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.desc-am { margin-top: .15rem; }

.meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; align-items: center; }
.tag {
  font-size: .74rem;
  padding: .13rem .55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  color: color-mix(in srgb, var(--accent) 60%, var(--text));
}
.badge {
  font-size: .72rem; font-weight: 600;
  padding: .13rem .5rem; border-radius: 6px;
}
.badge-vegan { background: #e0f2e4; color: #1d6b34; }
.badge-veg   { background: #e8f4dd; color: #4a7020; }
.badge-gf    { background: #f0e8fb; color: #6636a8; }
.badge-spicy { background: #fdeaea; color: #b2372f; }

.empty { text-align: center; color: var(--muted); margin-top: 3rem; font-size: 1.02rem; }

/* ---- footer ---- */
.site-footer {
  text-align: center;
  max-width: 760px;
  margin: 3.5rem auto 0;
  padding: 0 1.1rem 3rem;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer a { color: inherit; }
.site-footer .powered { margin-top: .8rem; font-size: .78rem; opacity: .7; }

@media (min-width: 640px) {
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 3.2rem; }
}

@media (max-width: 480px) {
  .item { padding: .8rem .85rem; gap: .7rem; }
  .item-photo { width: 58px; height: 58px; }
  .hero { padding: 1.8rem 0 1rem; }
  .hero .logo { width: 68px; height: 68px; }
}
