/*
Theme Name: رازقی
Author: میلاد سخن‌گو – اسکاینو | Skyno
Author URI: https://www.skyno.ir
Description: قالب منوی دیجیتال رستوران؛ هدر با لوگو، انتخاب دسته‌بندی و نمایش غذاها با عکس، توضیح و قیمت. A modern restaurant menu theme (RTL & LTR).
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: razeghi
*/

/*
Razeghi WordPress theme, Copyright (C) 2026 Milad Sokhangoo / Skyno (https://www.skyno.ir)
Razeghi is distributed under the terms of the GNU General Public License v2 or later.
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #1b2a25;          /* deep forest: text, active chip */
  --mist: #eef2ea;         /* pale pistachio: page background */
  --paper: #fbfcf9;        /* card surface */
  --line: #d8dfd3;         /* borders */
  --muted: #52645c;        /* secondary text */
  --saffron: #e8a735;      /* focus ring, small accents */
  --pom: #a8283a;          /* price (overridable in Customizer) */
  --hdr: #b9d3bc;          /* header background: pastel sedri green (overridable) */
  --hdr-text: #1b2a25;
  --font: "Vazirmatn", "Vazir", Tahoma, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }

/* ---------- Header (full-screen hero) ---------- */
.site-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2rem, 6vw, 3.5rem) 1.25rem clamp(2.5rem, 7vh, 4rem);
  text-align: center;
  background: var(--hdr);
  color: var(--hdr-text);
  border-radius: 0 0 50% 50% / 0 0 clamp(28px, 6vw, 64px) clamp(28px, 6vw, 64px);
  isolation: isolate;
}
.site-header__main,
.scroll-cue { position: relative; z-index: 1; }

/* floating food icons in the header background */
.site-header__icons {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0.6;
  pointer-events: none;
}
.hicon {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(28px, calc(var(--s) * 1vw), calc(var(--s) * 12px));
  height: auto;
  transform: rotate(var(--r));
}
@media (prefers-reduced-motion: no-preference) {
  .hicon--a { animation: hicon-a var(--d) ease-in-out var(--delay) infinite; }
  .hicon--b { animation: hicon-b var(--d) ease-in-out var(--delay) infinite; }
  @keyframes hicon-a {
    0%, 100% { transform: translate(0, 0) rotate(var(--r)); }
    50%      { transform: translate(14px, -30px) rotate(calc(var(--r) + 16deg)); }
  }
  @keyframes hicon-b {
    0%, 100% { transform: translate(0, 0) rotate(var(--r)); }
    50%      { transform: translate(-18px, 26px) rotate(calc(var(--r) - 14deg)); }
  }
}

.site-header__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.brand { display: inline-block; text-decoration: none; }
.brand__logo {
  width: auto;
  max-height: clamp(96px, 24vw, 180px);
  margin-inline: auto;
}
.brand__name {
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.3;
}
.site-header__tagline {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  opacity: 0.8;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 1.25rem;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.scroll-cue__arrow { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue__arrow { animation: cue-bounce 1.6s ease-in-out infinite; }
  @keyframes cue-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
  }
}

/* ---------- Top bar (logo + search) and category chips ---------- */
.menu-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: none;
  padding: 0.75rem 0;
  background: color-mix(in srgb, var(--mist) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.js .menu-top { display: block; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: calc(100% - 2.5rem);
  max-width: 1296px;
  min-height: 3.75rem;
  margin: 0 auto;
  padding-block: 0.55rem;
  padding-inline: 1.1rem 0.6rem;
  color: var(--hdr-text);
  background: var(--hdr);
  border-radius: 22px;
}
.topbar__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}
.topbar__logo { width: auto; max-height: 40px; }

.search {
  display: none;
  align-items: center;
  gap: 0.15rem;
  width: min(340px, 100%);
  padding-inline: 0.3rem;
  background: color-mix(in srgb, var(--hdr-text) 10%, transparent);
  border-radius: 999px;
  transition: box-shadow 0.2s;
}
.js .search { display: flex; }
.search:focus-within { box-shadow: 0 0 0 3px var(--saffron); }
.search__input {
  flex: 1;
  min-width: 0;
  height: 2.5rem;
  padding: 0 0.3rem;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}
.search__input::placeholder { color: inherit; opacity: 0.6; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.search__close { display: none; }
.search.has-value .search__close { display: grid; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cats {
  --tile: clamp(87px, 24vw, 110px);
  position: relative;
  display: none;
  width: calc(100% - 2.5rem);
  max-width: 1296px;
  margin: 0.75rem auto 0;
}
.js .cats { display: block; }

/* the slider track */
.cats__inner {
  display: flex;
  gap: 0.85rem;
  justify-content: flex-start;
  padding: 6px 6px 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cats__inner::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cats__inner { cursor: grab; }
}
.cats__inner.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/* square category tile: cartoon icon + name, dashed stitch line inset */
.cat-chip {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.29rem;
  width: var(--tile);
  aspect-ratio: 1;
  padding: 0.58rem 0.35rem 0.46rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 25px;
  cursor: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s, border-color 0.2s;
}
.cat-chip::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px dashed #b9c4b3;
  border-radius: 17px;
  pointer-events: none;
  transition: border-color 0.2s;
}
.cat-chip:hover { border-color: var(--ink); }
.cat-chip__icon {
  display: block;
  width: calc(var(--tile) * 0.46);
  height: calc(var(--tile) * 0.46);
  pointer-events: none;
}
.cat-chip__icon svg { display: block; width: 100%; height: 100%; }
.cat-chip__label {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  pointer-events: none;
}
.cat-chip.is-active {
  background: #fbe6b0;
  border-color: var(--ink);
}
.cat-chip.is-active::before { border-color: var(--ink); }
/* while a search is running, no category looks selected */
.cats.is-searching .cat-chip.is-active {
  background: var(--paper);
  border-color: var(--line);
}
.cats.is-searching .cat-chip.is-active::before { border-color: #b9c4b3; }

/* slider arrows (mouse devices only) */
.cats__arrow {
  position: absolute;
  top: calc(50% - 0.5rem);
  z-index: 2;
  display: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: -1.2rem;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(27, 42, 37, 0.12);
  cursor: pointer;
}
.cats__arrow--left { left: -0.6rem; }
.cats__arrow--right { right: -0.6rem; }
@media (hover: hover) and (pointer: fine) {
  .js .cats__arrow { display: grid; }
  .js .cats__arrow.is-hidden { display: none; }
}

/* mobile: search collapses to an icon, tapping it takes over the bar */
@media (max-width: 640px) {
  .topbar { min-height: 3.5rem; gap: 0.5rem; }
  .search { width: auto; padding-inline: 0; background: transparent; }
  .search__input,
  .search__close { display: none; }
  .search__toggle {
    width: 2.6rem;
    height: 2.6rem;
    background: color-mix(in srgb, var(--hdr-text) 10%, transparent);
  }
  .topbar.is-open .topbar__brand { display: none; }
  .topbar.is-open .search {
    flex: 1;
    width: 100%;
    padding-inline: 0.3rem;
    background: color-mix(in srgb, var(--hdr-text) 10%, transparent);
  }
  .topbar.is-open .search__toggle { background: none; }
  .topbar.is-open .search__input { display: block; }
  .topbar.is-open .search__close { display: grid; }
}

/* ---------- Menu panels ---------- */
.menu {
  max-width: 1296px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}
.panel { margin-top: 1.5rem; scroll-margin-top: 6rem; }
.js .panel { display: none; }
.js .panel.is-active { display: block; }
/* search mode: show every category that has a match */
.js .menu.is-searching .panel { display: none; }
.js .menu.is-searching .panel.has-match { display: block; }
.dish[hidden] { display: none; }
.no-results {
  margin: 3rem 0;
  text-align: center;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .js .panel.is-active { animation: panel-in 0.35s ease; }
  @keyframes panel-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}

.panel__head { margin-bottom: 1.25rem; }
/* category name centered between two dashed lines */
.panel__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
.panel__title::before,
.panel__title::after {
  content: "";
  flex: 1;
  border-top: 2px dashed #b9c4b3;
}
.panel__desc {
  max-width: 60ch;
  margin: 0.4rem auto 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- Dish card ---------- */
.dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dish {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.dish__media {
  flex: none;
  width: clamp(88px, 22vw, 120px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--mist);
  border-radius: 999px 999px 16px 16px; /* the arch */
}
.dish__media img { width: 100%; height: 100%; object-fit: cover; }
.dish__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #7d8e83;
  background: linear-gradient(160deg, #e4ebdd, #d3ddcb);
}

.dish__body { flex: 1; min-width: 0; }
.dish__head { display: flex; align-items: baseline; gap: 0.6rem; }
.dish__name { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.5; }
.dish__leader {
  flex: 1;
  min-width: 1rem;
  border-bottom: 2px dotted #b9c4b3;
  transform: translateY(-0.3em);
}
.dish__price { font-weight: 800; color: var(--pom); white-space: nowrap; }
.dish__price small {
  margin-inline-start: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.dish__desc {
  display: -webkit-box;
  margin: 0.35rem 0 0;
  overflow: hidden;
  font-size: 0.92rem;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ---------- Empty state & footer ---------- */
.empty {
  max-width: 46ch;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 24px;
}
.site-footer {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .dish { padding: 0.75rem; gap: 0.8rem; }
  .dish__name { font-size: 1rem; }
}

/* ---------- Dish card is clickable ---------- */
.dish { position: relative; cursor: pointer; transition: border-color 0.2s; }
.dish:hover { border-color: var(--ink); }
.dish__open {
  padding: 0;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  text-align: start;
  background: none;
  border: 0;
  cursor: pointer;
}
/* stretched hit area: the whole card opens the popup */
.dish__open::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
}
.dish__open:focus-visible { outline: none; }
.dish__open:focus-visible::after { outline: 3px solid var(--saffron); outline-offset: 3px; }

/* ---------- Dish popup ---------- */
[hidden] { display: none !important; }
html.modal-open { overflow: hidden; }

.dish-modal {
  --dm-max: calc(100vh - 3rem);
  width: min(880px, calc(100% - 2rem));
  max-width: none;
  max-height: var(--dm-max);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: inherit;
  background: var(--paper);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(27, 42, 37, 0.35);
}
@supports (height: 1dvh) {
  .dish-modal { --dm-max: calc(100dvh - 3rem); }
}
.dish-modal::backdrop {
  background: rgba(27, 42, 37, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.dm {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: minmax(0, 1fr);
  max-height: var(--dm-max);
}

.dm__close {
  position: absolute;
  top: 0.9rem;
  inset-inline-end: 0.9rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(27, 42, 37, 0.15);
  cursor: pointer;
}

/* image column (on the right in RTL) */
.dm__media {
  display: flex;
  padding: 1.25rem;
  background: var(--mist);
}
.dm__imgwrap {
  flex: 1;
  min-height: 320px;
  overflow: hidden;
  background: #d3ddcb;
  border-radius: 999px 999px 20px 20px; /* the arch, again */
}
.dm__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dm__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #7d8e83;
  background: linear-gradient(160deg, #e4ebdd, #d3ddcb);
}
.dm__img:not([hidden]) ~ .dm__ph { display: none; }

/* details column */
.dm__body { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dm__scroll { flex: 1; padding: 2rem 2rem 1rem; overflow-y: auto; }
.dm__cat {
  margin: 0;
  padding-inline-end: 2.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.dm__title {
  margin: 0.15rem 0 0.9rem;
  padding-inline-end: 2.8rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
}
.dm__text { color: var(--muted); line-height: 1.95; }
.dm__text > :first-child { margin-top: 0; }
.dm__text > :last-child { margin-bottom: 0; }
.dm__ing {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border: 2px dashed #b9c4b3;
  border-radius: 16px;
}
.dm__ing h3 { margin: 0 0 0.25rem; font-size: 0.9rem; font-weight: 700; }
.dm__ing p { margin: 0; color: var(--muted); white-space: pre-line; }
.dm__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}
.dm__facts li {
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  background: var(--mist);
  border-radius: 999px;
}
.dm__facts b { margin-inline-end: 0.35rem; font-weight: 700; }

.dm__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem 1.4rem;
  border-top: 2px dashed #b9c4b3;
}
.dm__price-label { font-weight: 600; color: var(--muted); }
.dm__price-value strong { font-size: 1.6rem; font-weight: 800; color: var(--pom); }
.dm__price-value small { margin-inline-start: 0.35rem; font-size: 0.85rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .dish-modal[open] { animation: dm-in 0.28s ease; }
  .dish-modal[open]::backdrop { animation: dm-fade 0.28s ease; }
  @keyframes dm-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes dm-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes dm-sheet { from { transform: translateY(100%); } to { transform: none; } }
}

/* mobile: bottom sheet, image on top, then name, details, price */
@media (max-width: 640px) {
  .dish-modal {
    --dm-max: 92vh;
    width: 100%;
    margin: auto 0 0;
    border-radius: 26px 26px 0 0;
  }
  @supports (height: 1dvh) {
    .dish-modal { --dm-max: 92dvh; }
  }
  .dm { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .dm.no-img { grid-template-rows: minmax(0, 1fr); }
  .dm.no-img .dm__media { display: none; }
  .dm__media { display: block; padding: 0; }
  .dm__imgwrap {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }
  .dm__scroll { padding: 1.25rem 1.25rem 0.75rem; }
  .dm__price { padding: 0.9rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .dish-modal[open] { animation-name: dm-sheet; }
}

/* ---------- Sticky header: search + categories + current category title ---------- */
.menu-top { padding: 0.75rem 0 0.5rem; transition: box-shadow 0.2s; }
.menu-top.is-stuck {
  box-shadow: 0 10px 24px -14px rgba(27, 42, 37, 0.35);
}
.cats__inner { padding-bottom: 8px; }
/* centre the tiles when they all fit, but never clip them when they overflow
   (auto margins collapse to 0 on overflow; works where `justify-content: safe center` does not) */
.cats__inner > .cat-chip:first-child { margin-inline-start: auto; }
.cats__inner > .cat-chip:last-child { margin-inline-end: auto; }

.cur-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: calc(100% - 2.5rem);
  max-width: 1296px;
  margin: 0.15rem auto 0;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}
.cur-title::before,
.cur-title::after {
  content: "";
  flex: 1;
  border-top: 2px dashed #b9c4b3;
}


/* the category name lives in the sticky header, so hide the in-list copy
   (it comes back as a group heading while searching) */
.js .menu:not(.is-searching) .panel__title { display: none; }
.js .menu:not(.is-searching) .panel__head { margin-bottom: 0.9rem; }
.panel { margin-top: 1rem; scroll-margin-top: calc(var(--top-h, 12rem) + 0.5rem); }
.topbar { min-height: 3.5rem; }

/* ---------- Mobile: smaller sticky header ---------- */
@media (max-width: 640px) {
  .menu-top { padding: 0.5rem 0 0.35rem; }
  .topbar {
    min-height: 3rem;
    padding-block: 0.4rem;
    border-radius: 18px;
  }
  .topbar__logo { max-height: 32px; }
  .topbar__brand { font-size: 1.05rem; }
  .search__toggle { width: 2.3rem; height: 2.3rem; }
  .search__input { height: 2.3rem; }

  .cats { --tile: 99px; margin-top: 0.5rem; }
  .cats__inner { gap: 0.75rem; padding: 6px 6px 8px; }
  .cat-chip { gap: 0.15rem; padding: 0.46rem 0.3rem 0.38rem; border-radius: 24px; }
  .cat-chip::before { inset: 6px; border-width: 2px; border-radius: 18px; }
  .cat-chip__icon { width: calc(var(--tile) * 0.42); height: calc(var(--tile) * 0.42); }
  .cat-chip__label { font-size: 0.95rem; line-height: 1.25; }

  .cur-title { margin-top: 0; gap: 0.75rem; font-size: 1rem; }
}

/* ---------- Site top bar (inside the hero): logo (start) + phone / blog / contact (end) ---------- */
.site-header { padding-top: 0.9rem; }
.sitebar-wrap { position: relative; z-index: 1; width: 100%; }
.sitebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1296px;
  min-height: 7rem;
  margin: 0 auto;
  padding-block: 1rem;
  padding-inline: 1.75rem 1.25rem;
  color: var(--bar-text, #fff);
  background: var(--bar-bg, #1b2a25);
  border-radius: 28px;
  box-shadow: 0 14px 30px -16px rgba(27, 42, 37, 0.6);
  text-align: start;
}
.sitebar__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  color: inherit;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}
.sitebar__logo { width: auto; max-height: 76px; }
.sitebar__contact { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.sitebar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.65rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  background: color-mix(in srgb, var(--bar-text, #fff) 12%, transparent);
  border-radius: 999px;
  transition: background-color 0.2s;
}
.sitebar__item:hover { background: color-mix(in srgb, var(--bar-text, #fff) 22%, transparent); }
.sitebar__item svg { flex: none; }
.sitebar__item--icon {
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
}
.sitebar__text {
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* mobile: icons only */
@media (max-width: 640px) {
  .sitebar {
    min-height: 6rem;
    padding-block: 0.75rem;
    padding-inline: 1.1rem 0.75rem;
    border-radius: 24px;
  }
  .sitebar__logo { max-height: 56px; }
  .sitebar__brand { font-size: 1.25rem; }
  .sitebar__item {
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
  }
  .sitebar__item .sitebar__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* ---------- Reserved logo slot above the hero text ---------- */
.hero-logo {
  display: grid;
  place-items: center;
  min-height: clamp(120px, 26vw, 200px);
  margin-bottom: 0.5rem;
}
.hero-logo .brand__logo { max-height: clamp(110px, 26vw, 200px); }
.hero-logo__ph {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.2rem;
  width: clamp(140px, 30vw, 200px);
  aspect-ratio: 1;
  padding: 1rem;
  color: inherit;
  text-align: center;
  text-decoration: none;
  border: 2px dashed color-mix(in srgb, var(--hdr-text) 45%, transparent);
  border-radius: 999px 999px 28px 28px; /* arch */
}
.hero-logo__ph span { font-weight: 800; }
.hero-logo__ph small { font-size: 0.78rem; opacity: 0.7; }

@media (max-width: 640px) {
  .site-header__icons { opacity: 0.5; }
}

/* ---------- Dish grid: 1 column on phones, 2 on tablets, 3 on desktop ---------- */
.dishes { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dish__media { width: 104px; }
}

/* ---------- Dashed line at the end of each list ---------- */
.panel::after {
  content: "";
  display: block;
  margin-top: 1.75rem;
  border-top: 2px dashed #b9c4b3;
}

/* ---------- Compact header (inner pages) ---------- */
.site-header--compact {
  min-height: 0;
  padding-bottom: clamp(2rem, 6vw, 3rem);
  border-radius: 0 0 50% 50% / 0 0 clamp(24px, 5vw, 48px) clamp(24px, 5vw, 48px);
}
.site-header--compact .site-header__icons { opacity: 0.4; }
.site-header__main--compact { flex: none; padding-top: clamp(1.25rem, 4vw, 2rem); }
.page-title {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.4;
}

/* ---------- Contact page ---------- */
.contact { max-width: 1296px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.page-content { max-width: 860px; margin: 0 auto; line-height: 1.95; }
.page-content > :first-child { margin-top: 0; }
.contact__intro { margin-bottom: 2rem; text-align: center; color: var(--muted); }

.dashed-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}
.dashed-title::before,
.dashed-title::after {
  content: "";
  flex: 1;
  border-top: 2px dashed #b9c4b3;
}
.dashed-end { margin-top: 2rem; border-top: 2px dashed #b9c4b3; }

.branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 400px));
  justify-content: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.branch {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.branch__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist);
  border-radius: 20px;
}
.branch__media img { width: 100%; height: 100%; object-fit: cover; }
.branch__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #7d8e83;
  background: linear-gradient(160deg, #e4ebdd, #d3ddcb);
}
.branch__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 0.5rem 0.5rem;
}
.branch__name { margin: 0; font-size: 1.3rem; font-weight: 800; line-height: 1.5; }
.branch__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding-top: 0.9rem;
  border-top: 2px dashed #b9c4b3;
}
.branch__ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--ink);
  background: var(--mist);
  border-radius: 50%;
}
.branch__text { min-width: 0; padding-top: 0.15rem; line-height: 1.8; }
.branch__phones { display: flex; flex-direction: column; gap: 0.15rem; }
.branch__phones a { color: inherit; font-weight: 700; text-decoration: none; }
.branch__phones a:hover { text-decoration: underline; }
.branch__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.8rem 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--ink);
  border-radius: 999px;
}
.branch__btn:hover { background: #2b3f37; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 700px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: var(--ink); }
.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist);
  border-radius: 20px;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #7d8e83;
  background: linear-gradient(160deg, #e4ebdd, #d3ddcb);
}
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.6rem; padding: 1rem 0.5rem 0.5rem; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.post-card__cat {
  padding: 0.15rem 0.7rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--mist);
  border-radius: 999px;
}
.post-card__title { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.6; }
.post-card__title a { color: inherit; text-decoration: none; }
/* the title link covers the whole card */
.post-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.post-card__title a:focus-visible { outline: none; }
.post-card__title a:focus-visible::after { outline: 3px solid var(--saffron); outline-offset: 3px; }
.post-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.post-card__more { margin-top: auto; padding-top: 0.4rem; font-weight: 700; color: var(--pom); }

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.9rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
}
.pagination a:hover { border-color: var(--ink); }
.pagination .is-current { color: #fff; background: var(--ink); border-color: var(--ink); }
.pagination .pagination__gap { background: none; border-color: transparent; }

/* single post */
.post-single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--muted); }
.post-single__cover { margin-bottom: 1.75rem; overflow: hidden; border-radius: 28px; }
.post-single__cover img { width: 100%; height: auto; }
.post-single__content { font-size: 1.05rem; line-height: 2; }
.post-single__content > :first-child { margin-top: 0; }
.post-single__content h2,
.post-single__content h3 { margin: 2rem 0 0.75rem; font-weight: 800; line-height: 1.6; }
.post-single__content img { border-radius: 20px; }
.post-single__content a { color: var(--pom); }
.post-single__content blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 1.25rem;
  color: var(--muted);
  border-inline-start: 3px dashed #b9c4b3;
}
.post-single__back { margin: 1.25rem 0 0; text-align: center; font-weight: 700; }
.post-single__back a { color: var(--pom); text-decoration: none; }

/* ---------- Social boxes (same colour as the header) ---------- */
.socials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
@media (min-width: 700px) {
  .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .socials { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.social {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  color: var(--hdr-text);
  text-decoration: none;
  background: var(--hdr);
  border: 1px solid color-mix(in srgb, var(--hdr-text) 16%, transparent);
  border-radius: 28px;
  box-shadow: 0 8px 22px -16px rgba(27, 42, 37, 0.45);
  transition: border-color 0.2s;
}
.social:hover { border-color: var(--hdr-text); }
.social__icon { flex: none; width: 2.6rem; height: 2.6rem; }
.social__icon svg,
.social__img { display: block; width: 100%; height: 100%; }
.social__img { object-fit: contain; }
.social__fold { stroke: var(--hdr); }
.social__text { display: flex; flex: 1; flex-direction: column; gap: 0.1rem; min-width: 0; }
.social__title { display: flex; align-items: baseline; gap: 0.3rem; line-height: 1.5; }
.social__title small { font-size: 0.85rem; opacity: 0.7; }
.social__title strong { font-size: 1.3rem; font-weight: 800; }
.social__sub { font-size: 0.9rem; line-height: 1.6; opacity: 0.75; }
.social__go {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: color-mix(in srgb, var(--hdr-text) 10%, transparent);
  border-radius: 14px;
  transition: background-color 0.2s;
}
.social__go svg { width: 1.3rem; height: 1.3rem; }
.social:hover .social__go { background: color-mix(in srgb, var(--hdr-text) 20%, transparent); }
.social--unset { border-style: dashed; }

/* ---------- Footer credit ---------- */
.site-footer p { margin: 0; }
.site-footer__credit { margin-top: 0.4rem; font-size: 0.8rem; }
.site-footer__credit a { color: inherit; text-decoration: none; }
.site-footer__credit a:hover { color: var(--ink); text-decoration: underline; }

/* a box whose link is not set yet: visible, but not clickable */
.social--idle { cursor: default; }
.social--idle:hover { border-color: color-mix(in srgb, var(--hdr-text) 16%, transparent); }
.social--idle .social__go { opacity: 0.35; }

/* ---------- "پیام شما برای ما" ---------- */
.feedback { margin-top: 2.75rem; }
.feedback__desc { max-width: 60ch; margin: -0.5rem auto 1.5rem; text-align: center; color: var(--muted); }
.feedback__form {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.feedback__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.feedback__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 700px) {
  .feedback__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; font-weight: 700; }
.field small { font-weight: 500; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--mist);
  border: 1.5px solid var(--line);
  border-radius: 16px;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus,
.field textarea:focus { outline: 3px solid var(--saffron); outline-offset: 1px; border-color: var(--ink); }
.feedback__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.feedback__btn {
  padding: 0.85rem 2.25rem;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.feedback__btn:hover { background: #2b3f37; }
.feedback__btn:disabled { opacity: 0.6; cursor: progress; }
.feedback__status { margin: 0; font-weight: 700; }
.feedback__status.is-ok { color: #2f6b3f; }
.feedback__status.is-error { color: var(--pom); }

/* ---------- Loading screen ---------- */
.sfl {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem;
  color: var(--hdr-text);
  text-align: center;
  background: var(--hdr);
  transition: opacity 0.45s ease, visibility 0s linear 0s;
}
.js .sfl { display: flex; }
.sfl-skip .sfl { display: none !important; }
.sfl.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.sfl__art { width: clamp(130px, 38vw, 190px); aspect-ratio: 1; }
.sfl__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sfl__name { margin: 0.9rem 0 0; font-size: 1.25rem; font-weight: 800; }
.sfl__text { margin: 0; font-size: 0.9rem; opacity: 0.75; }

/* pizza: slices fly out one by one */
.sfl-slice {
  transition: transform 0.45s cubic-bezier(0.4, 0.1, 0.3, 1), opacity 0.35s ease;
}
.sfl-slice.is-gone {
  opacity: 0;
  transform: translate(var(--dx), var(--dy));
}

/* Iranian dish: rising steam, the plate bobs slightly */
.sfl-steam { opacity: 0; animation: sfl-steam 1.9s ease-in-out infinite; }
.sfl-steam.s2 { animation-delay: 0.35s; }
.sfl-steam.s3 { animation-delay: 0.7s; }
.sfl-bob { animation: sfl-bob 2.4s ease-in-out infinite; }
@keyframes sfl-steam {
  0%   { opacity: 0; transform: translateY(5px); }
  40%  { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(-7px); }
}
@keyframes sfl-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.5px); }
}
@media (prefers-reduced-motion: reduce) {
  .sfl-steam { opacity: 0.8; animation: none; }
  .sfl-bob { animation: none; }
  .sfl-slice { transition: none; }
}

/* coffee: the cup fills up, steam appears once it is nearly full */
.sfl-liquid {
  transform: translateY(calc(32px - var(--fill, 0) * 29px));
  transition: transform 0.35s linear;
}
.sfl-steamwrap {
  opacity: clamp(0, calc((var(--fill, 0) - 0.5) * 3), 1);
  transition: opacity 0.4s ease;
}
@media (prefers-reduced-motion: reduce) {
  .sfl-liquid,
  .sfl-steamwrap { transition: none; }
}

/* ---------- Dish tags + sold out ---------- */
.dish__media { position: relative; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  border-radius: 999px;
}
.tag svg { flex: none; }
.tag--spicy { color: #a8283a; background: #f8dede; }
.tag--veg { color: #2f6b3f; background: #dcebd9; }
.tag--new { color: #7a5a00; background: #fbe6b0; }
.tag--chef { color: #fff; background: var(--ink); }
.tag--soldout { color: #5c6a64; background: #e4e8e2; }
.dish__tags,
.dm__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.dish__tags { margin-top: 0.4rem; }
.dm__tags { margin: -0.3rem 0 0.9rem; }
.dish--soldout .dish__media img,
.dish--soldout .dish__ph { filter: grayscale(1); opacity: 0.55; }
.dish--soldout .dish__name,
.dish--soldout .dish__desc { opacity: 0.6; }
.dish--soldout .dish__price { opacity: 0.6; text-decoration: line-through; }
.dish__soldout {
  position: absolute;
  inset-inline: 0;
  bottom: 0.6rem;
  padding: 0.15rem 0;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  background: rgba(27, 42, 37, 0.78);
}

/* ---------- Branch map ---------- */
.branch__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }
.branch__actions .branch__btn { flex: 1 1 8rem; margin-top: 0; }
.branch__mapbtn {
  display: flex;
  flex: 1 1 8rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.branch__mapbtn:hover { background: var(--mist); }
.branch__map {
  margin-top: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.branch__map iframe { display: block; width: 100%; height: 260px; border: 0; }

/* ---------- Comments ---------- */
.comments { margin-top: 2.5rem; }
.comment-list { display: grid; gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.comment-list .children {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  padding-inline-start: 1.25rem;
  list-style: none;
  border-inline-start: 2px dashed #b9c4b3;
}
.comment-body { padding: 1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; font-size: 0.85rem; color: var(--muted); }
.comment-author { font-size: 1rem; font-weight: 800; color: var(--ink); }
.comment-awaiting { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--pom); }
.comment-text { margin-top: 0.5rem; line-height: 1.9; }
.comment-text p { margin: 0 0 0.6rem; }
.comment-text > :last-child { margin-bottom: 0; }
.reply a { font-size: 0.9rem; font-weight: 700; color: var(--pom); text-decoration: none; }
.comments-closed,
.comment-notes { color: var(--muted); }
.comment-respond { padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; }
.comment-reply-title { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 800; }
.comment-reply-title small { margin-inline-start: 0.75rem; font-size: 0.85rem; font-weight: 600; }
.comment-form p { margin: 0 0 1rem; }
.comment-form .field { margin-bottom: 1rem; }
.comment-form-comment textarea { min-height: 8rem; }
.comment-navigation,
.comments-pagination { margin-bottom: 1.5rem; text-align: center; }
.comment-navigation a { color: var(--pom); font-weight: 700; }

/* ---------- Open now + working hours ---------- */
.open-now {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hdr-text);
  background: color-mix(in srgb, var(--hdr-text) 10%, transparent);
  border-radius: 999px;
}
.open-now[hidden] { display: none; }
.open-now__dot { flex: none; width: 0.65rem; height: 0.65rem; background: #7a8a82; border-radius: 50%; }
.open-now.is-open .open-now__dot { background: #2f9e5b; }
.open-now.is-soon .open-now__dot { background: #e8a735; }
.open-now.is-closed .open-now__dot { background: #d9503f; }
@media (prefers-reduced-motion: no-preference) {
  .open-now.is-open .open-now__dot { animation: open-pulse 2s ease-out infinite; }
  @keyframes open-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(47, 158, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0); }
  }
}
.open-now--table { margin: -0.5rem 0 1rem; color: var(--ink); background: var(--mist); }
.hours { max-width: 560px; margin: 0 auto 2.5rem; text-align: center; }
.hours__list { margin: 0; padding: 0; text-align: start; list-style: none; }
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-top: 2px dashed #b9c4b3;
}
.hours__row:last-child { border-bottom: 2px dashed #b9c4b3; }
.hours__row.is-today { font-weight: 800; background: var(--mist); }
.hours__time { white-space: nowrap; }
.hours__note { margin: 1rem 0 0; color: var(--muted); }

/* ---------- several prices ---------- */
.dish__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted);
  list-style: none;
}
.dish__sizes strong { color: var(--pom); }
.dm__price.has-rows { align-items: flex-start; }
.dm__price.has-rows .dm__price-value { display: grid; flex: 1; gap: 0.4rem; }
.dm__pricerow { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.dm__pricelabel { font-weight: 600; color: var(--muted); }
.dm__pricerow strong { font-size: 1.25rem; font-weight: 800; color: var(--pom); }
.dm__pricerow small { margin-inline-start: 0.35rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- 404 ---------- */
.nf { padding-top: 1rem; }
.nf__box {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.nf__art { width: 120px; height: 120px; margin: 0 auto; }
.nf__art svg { display: block; width: 100%; height: 100%; }
.nf__code { margin: 0.5rem 0 0; font-size: 3rem; font-weight: 800; line-height: 1.2; color: var(--pom); }
.nf__title { margin: 0.25rem 0 0.5rem; font-size: 1.4rem; font-weight: 800; }
.nf__text { margin: 0 0 1.5rem; color: var(--muted); }
.nf__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background-color 0.2s;
}
.btn:hover { background: #2b3f37; }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--mist); }

.sfl__text { transition: opacity 0.25s ease; }
.sfl__text.is-swap { opacity: 0; }

/* ---------- sold-out dish inside the popup ---------- */
.dm__imgwrap { position: relative; }
.dm__sold-badge {
  position: absolute;
  inset-inline: 0;
  bottom: 1.1rem;
  display: none;
  padding: 0.35rem 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  background: rgba(27, 42, 37, 0.82);
}
.dm.is-soldout .dm__sold-badge { display: block; }
.dm.is-soldout .dm__img,
.dm.is-soldout .dm__ph { filter: grayscale(1); opacity: 0.6; }
.dm.is-soldout .dm__title { opacity: 0.7; }
.dm.is-soldout .dm__price-value { opacity: 0.55; text-decoration: line-through; }
.dm__soldout {
  margin: 0 0 1rem;
  padding: 0.6rem 1rem;
  font-weight: 700;
  color: #5c6a64;
  background: #e4e8e2;
  border: 2px dashed #b9c4b3;
  border-radius: 14px;
}

/* ---------- Print the menu ---------- */
.print-head { display: none; }
.print-row { margin-top: 1.75rem; text-align: center; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
.print-row .btn { display: inline-flex; align-items: center; gap: 0.5rem; }

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body { color: #000; background: #fff !important; }
  body { font-size: 11pt; }

  /* hide everything that is not the menu itself */
  .sfl, .site-header, .menu-top, .cats, .socials, .feedback, .print-row,
  .dish-modal, .site-footer, .no-results, .dish__soldout, .dish--soldout,
  .dish__media, .tag svg { display: none !important; }

  .print-head { display: block; margin-bottom: 8mm; text-align: center; }
  .print-head__logo { width: auto; max-height: 24mm; margin: 0 auto 2mm; }
  .print-head__name { margin: 0; font-size: 22pt; font-weight: 800; }
  .print-head__line { margin: 1mm 0 0; font-size: 10pt; color: #333; }

  .menu { max-width: none; padding: 0; }

  /* every category, one after another (ignoring the tabs and the search) */
  .panel,
  .js .panel,
  .js .menu.is-searching .panel { display: block !important; margin-top: 7mm; break-inside: auto; }
  .js .menu:not(.is-searching) .panel__title,
  .panel__title { display: flex !important; break-after: avoid; font-size: 15pt; }
  .panel__title::before, .panel__title::after { border-top: 1.5px dashed #000; }
  .panel__head { break-after: avoid; }
  .panel::after { display: none; }

  .dishes { display: block; column-count: 2; column-gap: 10mm; }
  .dish,
  .dish[hidden] {
    display: block !important;
    margin: 0 0 4mm;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid;
  }
  .dish__open { color: #000; font-size: 11pt; font-weight: 800; }
  .dish__open::after { display: none; }
  .dish__leader { border-bottom: 1.5px dotted #000; }
  .dish__price { color: #000; }
  .dish__price small { color: #333; }
  .dish__desc { display: block; overflow: visible; font-size: 9pt; color: #333; -webkit-line-clamp: unset; }
  .dish__sizes { color: #000; }
  .dish__sizes strong { color: #000; }
  .dish__tags { margin-top: 1mm; }
  .tag { padding: 0 2mm; font-size: 8pt; color: #000; background: none; border: 1px solid #666; }
}

/* ---------- Paged posts ---------- */
.page-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.page-links a,
.page-links > span {
  display: grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.7rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
}
.page-links > span:not(.post-page-numbers) { color: #fff; background: var(--ink); border-color: var(--ink); }
