@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-VF.woff2") format("woff2-variations"), url("assets/fonts/Vazirmatn-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f2f4;
  --board: #fafafb;
  --surface: #ffffff;
  --soft: #f3f3f5;
  --ink: #141414;
  --ink-2: #3a3a3f;
  --muted: #74747c;
  --line: #e8e8ec;
  --dark: #151515;
  --accent: #f2683c;
  --accent-strong: #cc4416;
  --accent-50: #fff1eb;
  --danger: #c8341f;
  --radius: 26px;
  --radius-sm: 16px;
  --shadow: 0 10px 30px rgba(20, 20, 30, 0.06);
  --shadow-lg: 0 18px 40px rgba(20, 20, 30, 0.12);
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --dock-space: 112px;
  --bs-body-font-family: var(--font);
  --bs-body-font-size: 1.0625rem;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-radius: var(--radius-sm);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f6 35%, #e9e9ed 75%, #e2e2e7 100%) fixed;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }

[hidden] { display: none !important; }
svg { display: block; }
[lang="en"] { letter-spacing: 0.01em; }
.noscript { margin: 0; padding: 24px; text-align: center; font-size: 1.125rem; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--dark);
  display: grid;
  place-items: center;
}
.loader__inner { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--surface); padding: 24px; }
.loader__logo {
  width: 92px;
  height: 92px;
  color: var(--accent);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}
.loader__title { margin-top: 16px; font-size: 1.75rem; font-weight: 900; opacity: 0; animation: fadeUp 0.7s ease 0.4s forwards; }
.loader__word {
  margin-top: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  padding-inline-start: 0.5em;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.55s forwards;
}
.loader__bar { margin-top: 28px; width: 140px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; opacity: 0; animation: fadeIn 0.4s ease 0.7s forwards; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); animation: barFill 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards; }
.loader.is-done { animation: loaderOut 0.5s ease forwards; pointer-events: none; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes barFill { to { width: 100%; } }
@keyframes loaderOut { to { opacity: 0; transform: scale(1.04); } }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
body.is-ready .page { opacity: 1; transform: none; }

.topbar { padding-top: calc(18px + env(safe-area-inset-top)); }
.where { border: 0; background: none; padding: 0; color: var(--ink); text-align: right; min-width: 0; }
.where__ico {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.where__ico svg { width: 24px; height: 24px; }
.where__txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.where__txt small { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.where__txt strong { font-size: 1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.where:focus-visible, .round-btn:focus-visible, .filter-btn:focus-visible, .cat:focus-visible, .dock__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.round-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}
.round-btn:active { transform: scale(0.92); }
.round-btn svg { width: 24px; height: 24px; }
.round-btn__dot { position: absolute; top: 12px; inset-inline-end: 13px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.round-btn__badge {
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--accent-strong);
  color: var(--surface);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}
.round-btn__badge.is-bump, .dock__badge.is-bump { animation: bump 0.35s ease; }

.headline {
  margin: 22px 0 18px;
  font-size: clamp(1.5rem, 5.6vw, 2.1rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 300;
}
.headline strong { font-weight: 900; }
.headline > span:not(.visually-hidden) { color: var(--ink-2); }

.search { max-width: 460px; margin-inline: auto; }
.search__field svg { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search__field .form-control {
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0 46px 0 16px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
}
.search__field .form-control::placeholder { color: #9a9aa2; }
.search__field .form-control:focus { box-shadow: 0 0 0 3px rgba(242, 104, 60, 0.35), var(--shadow); }
.filter-btn {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 16px;
  background: var(--dark);
  color: var(--surface);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}
.filter-btn:active { transform: scale(0.92); }
.filter-btn svg { width: 21px; height: 21px; }
.filter-btn__dot { position: absolute; top: 8px; inset-inline-end: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--dark); }

.cats { position: relative; z-index: 2; margin-top: 12px; }
.cats__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 24px 16px 40px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cats__track::-webkit-scrollbar { display: none; }
.cats__track > :first-child { margin-inline-start: auto; }
.cats__track > :last-child { margin-inline-end: auto; }
.cat {
  flex: 0 0 auto;
  width: 88px;
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  scroll-snap-align: center;
  border-radius: 20px;
}
.cat__img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(20, 20, 30, 0.09);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.cat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat__img svg { width: 32px; height: 32px; }
.cat__name { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; transition: color 0.25s ease; }
.cat.is-active .cat__img { transform: translateY(-6px) scale(1.2); box-shadow: 0 0 0 5px var(--surface), 0 18px 32px rgba(20, 20, 30, 0.16); }
.cat.is-active .cat__name { color: var(--ink); font-weight: 900; }
@media (hover: hover) { .cat:not(.is-active):hover .cat__img { transform: translateY(-3px); } }
@supports (animation-timeline: view()) {
  .cat { animation: arc linear both; animation-timeline: view(inline); }
  @keyframes arc {
    0% { translate: 0 30px; }
    50% { translate: 0 0; }
    100% { translate: 0 30px; }
  }
}

.board {
  position: relative;
  z-index: 1;
  margin-top: -78px;
  padding-top: 92px;
  padding-bottom: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 760px);
  border-radius: 50% 50% 0 0 / 80px 80px 0 0;
  min-height: 50vh;
}

.menu-sec { padding-top: 6px; margin-bottom: 30px; scroll-margin-top: 16px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 16px; flex-wrap: wrap; }
.sec-head__title { font-size: 1.375rem; font-weight: 900; margin: 0; line-height: 1.5; color: var(--ink); }
.sec-head__en { font-size: 0.875rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.2em; direction: ltr; }
.sec-head__count { margin-inline-start: auto; font-size: 0.875rem; font-weight: 700; color: var(--ink-2); background: var(--surface); border-radius: 99px; padding: 2px 12px; box-shadow: var(--shadow); }

.items > .col { animation: itemIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.items > .col:nth-child(2) { animation-delay: 40ms; }
.items > .col:nth-child(3) { animation-delay: 80ms; }
.items > .col:nth-child(4) { animation-delay: 120ms; }
.items > .col:nth-child(5) { animation-delay: 160ms; }
.items > .col:nth-child(n+6) { animation-delay: 200ms; }
@keyframes itemIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.dish {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 10px 14px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
@media (hover: hover) {
  .dish:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
  .dish:hover .dish__media img { transform: scale(1.05); }
}
.dish__media { aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--soft); }
.dish__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dish__tags { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: -16px; min-height: 32px; padding: 0 4px; }
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.6;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--surface);
  border: 3px solid var(--surface);
  white-space: nowrap;
}
.pill--soft { background: var(--accent-strong); }
.pill--off { background: #6f6f76; }
.dish__body { padding: 4px 6px 0; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dish__name { margin: 4px 0 2px; font-size: 1.125rem; font-weight: 800; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish__name a { color: inherit; text-decoration: none; }
.dish__name a:focus-visible { outline: 0; }
.dish__name a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.dish__sub { margin: 0 0 12px; font-size: 0.9375rem; color: var(--muted); line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.dish__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; line-height: 1.25; min-width: 0; }
.dish__price strong { font-size: 1.5rem; font-weight: 900; color: var(--ink); }
.dish__price small { font-size: 0.875rem; font-weight: 700; color: var(--accent-strong); }
.dish__price del { flex-basis: 100%; font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.dish__ctrl { position: relative; z-index: 2; flex: 0 0 auto; }
.dish.is-unavailable .dish__media img { filter: grayscale(1); opacity: 0.6; }
.dish.is-unavailable .dish__name { color: var(--muted); }

.btn-add {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-add svg { width: 20px; height: 20px; }
.btn-add:active { transform: scale(0.88); }
.btn-add:disabled { opacity: 0.45; cursor: not-allowed; }
@media (hover: hover) { .btn-add:not(:disabled):hover { background: var(--dark); color: var(--surface); } }
.btn-add.is-bump { animation: bump 0.35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

.mini-stepper { display: flex; align-items: center; gap: 2px; background: var(--soft); border-radius: 999px; padding: 3px; }
.mini-stepper button { width: 31px; height: 31px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); display: grid; place-items: center; padding: 0; transition: transform 0.15s ease; }
.mini-stepper button:active { transform: scale(0.88); }
.mini-stepper button svg { width: 16px; height: 16px; }
.mini-stepper button.is-dark { background: var(--dark); color: var(--surface); }
.mini-stepper span { min-width: 20px; text-align: center; font-weight: 900; font-size: 1rem; }
@media (max-width: 374.98px) {
  .dish__price strong { font-size: 1.25rem; }
  .mini-stepper button { width: 30px; height: 30px; }
  .mini-stepper span { min-width: 16px; }
}

.empty { text-align: center; padding: 48px 16px; color: var(--muted); font-size: 1.0625rem; }
.empty svg { width: 52px; height: 52px; margin: 0 auto 12px; color: var(--accent); opacity: 0.8; }
.empty p { margin: 0 0 14px; }

.info { padding-top: 24px; padding-bottom: 20px; }
.info__brand { background: var(--surface); border-radius: var(--radius); padding: 26px 18px 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.info__logo { width: 72px; height: 72px; margin: 0 auto 8px; color: var(--accent); }
.info__name { font-size: 1.625rem; font-weight: 900; margin: 0; }
.info__tagline { margin: 2px 0 0; color: var(--muted); font-size: 1.0625rem; }
.info__tagline:empty { display: none; }
.info__list { display: grid; gap: 10px; margin: 0 0 8px; }
.info__list a, .info__list .info__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: 20px;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.6;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.info__list a:active { transform: scale(0.98); }
.info__ico { width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: var(--surface); display: grid; place-items: center; flex: 0 0 auto; }
.info__ico svg { width: 20px; height: 20px; }
.info__chev { margin-inline-start: auto; color: var(--muted); width: 20px; height: 20px; }
.info__empty { color: var(--muted); font-size: 1rem; text-align: center; margin: 6px 0; }

.site-footer { padding: 26px 18px calc(var(--dock-space) + env(safe-area-inset-bottom)); color: var(--muted); }
.footer__logo { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 8px; }
.footer__bar { margin: 0; font-size: 0.9375rem; }

.preview-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--accent-strong);
  color: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.preview-bar a { color: var(--surface); }
body.is-preview .page { padding-top: 42px; }

.dock {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(430px, calc(100% - 32px));
  background: var(--dark);
  border-radius: 999px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 18px 40px rgba(10, 10, 15, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
body.is-ready .dock { opacity: 1; pointer-events: auto; }
body.is-locked .dock { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(24px); }
.dock__btn {
  position: relative;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.dock__btn svg { width: 25px; height: 25px; }
.dock__btn:active { transform: scale(0.9); }
.dock__btn.is-active { background: var(--accent); color: var(--surface); box-shadow: 0 8px 20px rgba(242, 104, 60, 0.45); }
@media (hover: hover) { .dock__btn:not(.is-active):hover { color: var(--surface); } }
.dock__badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 2px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent-strong);
  color: var(--surface);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--dark);
}

.sheet {
  --bs-offcanvas-height: auto;
  --bs-offcanvas-bg: var(--surface);
  --bs-offcanvas-color: var(--ink);
  height: auto;
  max-height: 92vh;
  max-height: 92dvh;
  border: 0;
  border-radius: 32px 32px 0 0;
  left: 0;
  right: 0;
  width: min(580px, 100vw);
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  font-family: var(--font);
}
.sheet .offcanvas-body { overscroll-behavior: contain; }
.sheet__head { padding: 18px 22px 12px; border-bottom: 1px solid var(--line); justify-content: space-between; gap: 12px; }
.sheet__titles .offcanvas-title { font-size: 1.375rem; font-weight: 900; line-height: 1.5; }
.sheet__en { margin: 0; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.28em; text-transform: uppercase; line-height: 1.4; }
.sheet__close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.sheet__close svg { width: 18px; height: 18px; }
.sheet__close--inline { position: static; background: var(--soft); box-shadow: none; }
.sheet__actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 22px; }

.product__media {
  position: relative;
  background: radial-gradient(120% 90% at 50% 0%, var(--accent-50), var(--soft) 70%);
  padding-top: 36px;
  height: 200px;
  border-radius: 32px 32px 0 0;
  display: flex;
  justify-content: center;
  margin-bottom: 86px;
}
.product__plate {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--soft);
  box-shadow: 0 24px 34px -16px rgba(20, 20, 30, 0.5), 0 0 0 7px var(--surface);
}
.product__plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__tags { position: absolute; left: 0; right: 0; bottom: -84px; }
.product__tags:empty { display: none !important; }
.product__body { padding: 14px 22px 24px; }
.product__name { font-size: 1.625rem; font-weight: 900; line-height: 1.5; margin: 0; }
.product__en { font-size: 0.9375rem; color: var(--muted); font-weight: 500; margin: 0; letter-spacing: 0.22em; text-transform: uppercase; }
.product__desc { font-size: 1.0625rem; color: var(--ink-2); line-height: 1.95; margin: 12px 0 0; text-align: center; }
.chips { gap: 6px; margin: 14px 0 0; }
.chips li { background: var(--soft); color: var(--ink); font-size: 0.9375rem; font-weight: 600; padding: 3px 14px; border-radius: 99px; }
.chips:empty { display: none !important; }
.product__foot { gap: 12px; margin: 22px 0 16px; }

.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; color: var(--ink); font-weight: 900; font-size: 1.25rem; line-height: 1.5; white-space: nowrap; }
.price small { font-size: 0.875rem; font-weight: 700; color: var(--accent-strong); }
.price del { flex-basis: 100%; font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.price--lg { font-size: 1.625rem; }

.stepper { gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); display: grid; place-items: center; transition: transform 0.15s ease; }
.stepper button:last-child { background: var(--dark); color: var(--surface); }
.stepper button:active { transform: scale(0.9); }
.stepper button:disabled { opacity: 0.35; }
.stepper button svg { width: 17px; height: 17px; }
.stepper span { min-width: 32px; text-align: center; font-weight: 900; font-size: 1.1875rem; }
.stepper--sm button { width: 32px; height: 32px; }
.stepper--sm button svg { width: 14px; height: 14px; }
.stepper--sm span { min-width: 24px; font-size: 1.0625rem; }
.stepper button.is-trash { background: #fde3dd; color: var(--danger); }

.btn-cafe, .btn-cafe-ghost {
  --bs-btn-padding-y: 13px;
  --bs-btn-padding-x: 16px;
  --bs-btn-font-size: 1.0625rem;
  --bs-btn-font-weight: 800;
  --bs-btn-border-radius: 18px;
  --bs-btn-border-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font);
}
.btn-cafe {
  --bs-btn-bg: var(--dark);
  --bs-btn-color: var(--surface);
  --bs-btn-hover-bg: #000;
  --bs-btn-hover-color: var(--surface);
  --bs-btn-active-bg: #000;
  --bs-btn-active-color: var(--surface);
  --bs-btn-disabled-bg: #b8b8be;
  --bs-btn-disabled-color: var(--surface);
  --bs-btn-disabled-opacity: 1;
}
.btn-cafe-ghost {
  --bs-btn-bg: var(--soft);
  --bs-btn-color: var(--ink);
  --bs-btn-hover-bg: #e9e9ed;
  --bs-btn-hover-color: var(--ink);
  --bs-btn-active-bg: #e1e1e6;
  --bs-btn-active-color: var(--ink);
}
.btn-cafe:focus-visible, .btn-cafe-ghost:focus-visible { box-shadow: 0 0 0 3px rgba(242, 104, 60, 0.5); }
.btn-cafe svg, .btn-cafe-ghost svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn__amount { margin-inline-start: auto; font-size: 1rem; font-weight: 700; color: #ffb699; padding-inline-start: 12px; border-inline-start: 1px solid rgba(255, 255, 255, 0.25); }

.cart__list { padding: 4px 22px; }
.cart__empty { text-align: center; padding: 44px 16px 36px; color: var(--muted); font-size: 1.0625rem; }
.cart__empty svg { width: 50px; height: 50px; margin: 0 auto 12px; color: var(--accent); opacity: 0.8; }
.cart__empty p { margin: 0; }
.cart__empty .cart__hint { font-size: 0.9375rem; margin-top: 4px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item__img { width: 62px; height: 62px; border-radius: 18px; object-fit: cover; background: var(--soft); flex: 0 0 auto; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 1.0625rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.cart-item__en { font-size: 0.875rem; color: var(--muted); direction: ltr; text-align: right; line-height: 1.4; }
.cart-item__unit { font-size: 0.875rem; color: var(--muted); }
.cart-item__total { font-size: 1rem; font-weight: 900; white-space: nowrap; color: var(--ink); }
.cart-item__total small { font-size: 0.8125rem; font-weight: 600; color: var(--accent-strong); }
.cart-item__ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart__foot {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 14px 22px calc(18px + env(safe-area-inset-bottom));
  display: grid;
  gap: 12px;
}
.field { gap: 12px; font-size: 1rem; color: var(--muted); }
.field > span { white-space: nowrap; }
.field .form-control {
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 14px;
  text-align: center;
  padding: 9px 12px;
}
.field .form-control:focus { border-color: var(--accent); background: var(--surface); box-shadow: none; }
.cart__total, .cart__save { font-size: 1.0625rem; color: var(--muted); }
.cart__total strong { font-size: 1.375rem; color: var(--ink); font-weight: 900; }
.cart__save strong { font-size: 1.0625rem; color: var(--accent-strong); font-weight: 800; }
.cart__total small, .cart__save small { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.cart__actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }

.sheet--receipt { --bs-offcanvas-bg: var(--bg); }
.sheet--receipt .sheet__head { border-bottom-color: #e2e2e7; }
.sheet--receipt .offcanvas-body { padding: 18px 22px 24px; }
.receipt__paper { position: relative; background: var(--surface); border-radius: 22px 22px 4px 4px; padding: 22px 20px 26px; box-shadow: var(--shadow-lg); }
.receipt__paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 10px;
  background:
    linear-gradient(-45deg, transparent 7px, var(--surface) 7px) 0 0 / 14px 10px repeat-x,
    linear-gradient(45deg, transparent 7px, var(--surface) 7px) 0 0 / 14px 10px repeat-x;
  background-position: -3px 0, 4px 0;
}
.receipt__brand { gap: 4px; font-size: 1.25rem; font-weight: 900; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.receipt__logo { width: 44px; height: 44px; color: var(--accent); }
.receipt__code { gap: 6px; padding: 16px 0 12px; }
.receipt__code span { font-size: 1rem; color: var(--muted); }
.receipt__code strong { font-size: 2.6rem; font-weight: 900; line-height: 1.2; letter-spacing: 4px; color: var(--surface); background: var(--dark); padding: 6px 26px 4px 22px; border-radius: 18px; }
.receipt__meta { gap: 24px; padding: 6px 0 14px; border-bottom: 1px dashed var(--line); margin: 0; }
.receipt__meta > div { text-align: center; }
.receipt__meta dt { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.receipt__meta dd { font-size: 1.0625rem; font-weight: 800; margin: 0; }
.receipt__items { padding: 12px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.receipt__items li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 1.0625rem; }
.receipt__items .qty { color: var(--accent-strong); font-weight: 900; min-width: 30px; }
.receipt__items .name { font-weight: 600; }
.receipt__items .dots { flex: 1; border-bottom: 1px dotted #c9c9cf; transform: translateY(-4px); }
.receipt__items .amt { font-weight: 800; white-space: nowrap; }
.receipt__total { padding: 14px 0 4px; font-size: 1.0625rem; color: var(--muted); }
.receipt__total strong { font-size: 1.5rem; font-weight: 900; color: var(--ink); }
.receipt__total small { font-size: 0.875rem; color: var(--muted); font-weight: 600; }
.receipt__note { margin: 14px 0 0; font-size: 1rem; color: var(--accent-strong); background: var(--accent-50); border-radius: 14px; padding: 10px 12px; line-height: 1.8; }
.receipt__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }

.opt-group { margin: 0 0 18px; }
.opt-group__title { font-size: 1.0625rem; font-weight: 800; margin-bottom: 10px; }
.opt-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-check:checked + .opt-chip { background: var(--dark); color: var(--surface); }
.btn-check:focus-visible + .opt-chip { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt-switch { margin: 0; padding: 12px 16px; background: var(--soft); border-radius: 18px; font-size: 1.0625rem; font-weight: 600; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.opt-switch .form-check-input { order: 2; float: none; flex: 0 0 auto; width: 2.6em; height: 1.4em; margin: 0; cursor: pointer; }
.opt-switch .form-check-label { cursor: pointer; }
.form-check-input:checked { background-color: var(--accent-strong); border-color: var(--accent-strong); }
.form-check-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 104, 60, 0.3); }

.notices:empty::before { content: "اطلاعیه‌ای ثبت نشده است."; color: var(--muted); text-align: center; padding: 20px 0; }
.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--soft);
  border-radius: 20px;
  padding: 12px 16px;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
}
.notice__text { flex: 1; margin: 0; }
.notice__icon { flex: 0 0 auto; color: var(--accent-strong); display: grid; place-items: center; }
.notice__icon--box { width: 40px; height: 40px; border-radius: 13px; background: var(--surface); }
.notice__icon--box svg { width: 20px; height: 20px; }
.cocoa { direction: ltr; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 2px; color: var(--accent-strong); line-height: 1; font-weight: 900; }
.cocoa__num { font-size: 2rem; letter-spacing: -0.02em; grid-row: span 2; }
.cocoa__pct { font-size: 1rem; align-self: end; }
.cocoa__txt { grid-column: 1 / -1; font-size: 0.5625rem; font-weight: 800; letter-spacing: 0.06em; margin-top: 2px; text-align: center; }

.toast-msg {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-space) + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(16px);
  z-index: 1100;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: max-content;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast-msg svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.toast-msg.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 768px) {
  .headline { margin-top: 34px; }
  .cat { width: 100px; }
  .cat__img { width: 78px; height: 78px; }
  .board { border-radius: 50% 50% 0 0 / 110px 110px 0 0; }
  .dish { padding: 12px 12px 16px; }
  .mini-stepper button { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .loader__logo, .loader__word, .loader__title, .loader__bar { opacity: 1; transform: none; }
  .loader__bar span { width: 100%; }
}
