@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 {
  --navy: #2c3a64;
  --navy-700: #243058;
  --navy-900: #1a2343;
  --navy-50: #e9ebf2;
  --bg: #e3e4e8;
  --panel: #f4f4f6;
  --notice: #d6d7dd;
  --ink: #2a2f45;
  --muted: #7b8094;
  --line: #cdd0d8;
  --white: #ffffff;
  --accent: #d2772a;
  --accent-50: #fbeee2;
  --danger: #c0392b;
  --radius: 24px;
  --radius-sm: 14px;
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --page-max: 600px;
  --fab-space: 96px;
  --bs-body-font-family: var(--font);
  --bs-body-font-size: 1.062rem;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-radius: var(--radius-sm);
}

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

body {
  font-family: var(--font);
  background: #cfd0d6;
  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; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--navy);
  display: grid;
  place-items: center;
}
.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 24px;
}
.loader__logo {
  width: 70px;
  height: 100px;
  color: var(--white);
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}
.loader__word {
  margin-top: 20px;
  font-size: 3.57rem;
  font-weight: 150;
  letter-spacing: 0.18em;
  line-height: 1;
  padding-inline-start: 0.18em;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.7s ease 0.5s forwards;
}
.loader__title {
  margin-top: 10px;
  font-size: 1.062rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.7s forwards;
}
.loader__bar {
  margin-top: 30px;
  width: 140px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.4s ease 0.8s forwards;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--white);
  animation: barFill 1s cubic-bezier(0.4, 0, 0.2, 1) 0.9s 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 {
  max-width: var(--page-max);
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg) 0%, #dcdde2 100%);
  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; }
@media (min-width: 640px) {
  .page { box-shadow: 0 0 60px rgba(26, 35, 67, 0.18); }
}

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: calc(14px + env(safe-area-inset-top)) 18px 50px;
  border-radius: 0 0 26px 26px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(0, 0, 0, 0.18), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero__bar { min-height: 52px; }
.hero__burger {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  display: grid;
  place-items: center;
  margin-inline-start: -6px;
}
.hero__burger svg { width: 30px; height: 30px; }
.hero__burger:active { background: rgba(255, 255, 255, 0.1); }
.hero__logo { color: var(--white); display: block; }
.hero__logo svg { width: 34px; height: 49px; }
.hero__title {
  margin: 4px 0 0;
  font-size: clamp(3.816rem, 19.08vw, 4.876rem);
  font-weight: 150;
  line-height: 1;
  letter-spacing: 0.08em;
  padding-inline-start: 0.08em;
}
.hero__sub {
  margin: 8px 0 22px;
  font-size: 0.812rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.switch {
  display: inline-flex;
  background: var(--white);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.switch__btn {
  border: 0;
  background: transparent;
  color: #3d4256;
  font-size: 0.812rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.switch__btn.is-active { background: #dfe1e8; color: var(--navy-900); font-weight: 700; }
.switch__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tabs-sentinel { height: 1px; margin-top: -1px; }
.cats {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -26px 10px 0;
  background: var(--panel);
  border-radius: 26px;
  box-shadow: 0 8px 22px rgba(26, 35, 67, 0.08);
  transition: box-shadow 0.25s ease, border-radius 0.25s ease, margin 0.25s ease;
  overflow: hidden;
}
.cats.is-stuck { border-radius: 0 0 22px 22px; box-shadow: 0 10px 26px rgba(26, 35, 67, 0.2); }
.cats__track {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 10px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cats__track::-webkit-scrollbar { display: none; }
.cat {
  position: relative;
  flex: 0 0 auto;
  min-width: 84px;
  max-width: 120px;
  padding: 8px 10px 8px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #4a4f63;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.812rem;
  font-weight: 600;
  line-height: 1.4;
  scroll-snap-align: center;
  transition: background 0.25s ease, color 0.25s ease;
}
.cat__img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 12px -6px rgba(26, 35, 67, 0.45);
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat__img svg { width: 28px; height: 28px; }
.cat__name { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cat.is-active { background: var(--navy); color: var(--white); }
.cat.is-active .cat__img { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 14px -6px rgba(0, 0, 0, 0.6); }
.cat.is-active::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--navy);
  border-bottom: 0;
}
.cat:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) { .cat:not(.is-active):hover { background: #e7e8ed; } }

.notices { display: grid; gap: 10px; padding: 18px 16px 4px; }
.notices:empty { display: none; }
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--notice);
  border-radius: 18px;
  padding: 10px 14px;
  color: #3a3e52;
  font-size: 0.812rem;
  font-weight: 700;
  line-height: 1.75;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.notice__text { flex: 1; margin: 0; }
.notice__icon { flex: 0 0 auto; color: var(--accent); display: grid; place-items: center; }
.notice__icon--box {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 2px solid var(--accent);
}
.notice__icon--box svg { width: 16px; height: 16px; }
.cocoa {
  direction: ltr;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 2px;
  color: var(--accent);
  line-height: 1;
  font-weight: 800;
}
.cocoa__num { font-size: 1.995rem; letter-spacing: -0.02em; grid-row: span 2; }
.cocoa__pct { font-size: 0.938rem; align-self: end; }
.cocoa__txt {
  grid-column: 1 / -1;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: 2px;
  text-align: center;
}

.menu { padding: 18px 16px 30px; min-height: 55vh; }
.menu__empty { color: var(--muted); text-align: center; padding: 40px 0; margin: 0; }

.section-head { text-align: center; margin: 14px 0 6px; }
.section-head__fa { font-size: 1.25rem; font-weight: 800; color: #393e54; margin: 0; line-height: 1.6; }
.section-head__en {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.812rem;
  font-weight: 500;
  color: #6b7084;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  line-height: 1.6;
  direction: ltr;
}
.section-head__en::before, .section-head__en::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b6b9c4);
}
.section-head__en::after { background: linear-gradient(270deg, transparent, #b6b9c4); }

.item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  animation: itemIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.item:last-child { border-bottom: 0; }
.item:nth-child(2) { animation-delay: 40ms; }
.item:nth-child(3) { animation-delay: 80ms; }
.item:nth-child(4) { animation-delay: 120ms; }
.item:nth-child(5) { animation-delay: 160ms; }
.item:nth-child(6) { animation-delay: 200ms; }
.item:nth-child(n+7) { animation-delay: 240ms; }
@keyframes itemIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.item__fa, .item__en { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item__fa { text-align: right; }
.item__en { text-align: left; direction: ltr; }
.item__name { margin: 0; font-size: 1.062rem; font-weight: 800; color: #2f344c; line-height: 1.5; }
.item__name a { color: inherit; text-decoration: none; }
.item__en .item__title { font-size: 1rem; font-weight: 600; color: #3c4157; line-height: 1.5; margin: 0; }
.item__ing { font-size: 0.812rem; color: var(--muted); line-height: 1.6; margin: 0; }
.item__en .item__ing { font-size: 0.812rem; }
.item__price { font-size: 0.812rem; font-weight: 700; color: #3c4157; margin: 2px 0 0; white-space: nowrap; }
.item__en .item__price { font-size: 0.812rem; font-weight: 600; }
.item__badge {
  align-self: flex-start;
  font-size: 0.812rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-50);
  border-radius: 99px;
  padding: 0 8px;
  line-height: 1.8;
  margin-bottom: 2px;
}
.item__badge--off { color: #6b7084; background: #e4e5ea; }

.item__media { position: relative; width: 92px; height: 92px; }
.item__plate {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 18px -10px rgba(26, 35, 67, 0.55), 0 0 0 3px rgba(255, 255, 255, 0.7);
}
.item__plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item.is-unavailable .item__plate img { filter: grayscale(1); opacity: 0.6; }
.item.is-unavailable .item__name, .item.is-unavailable .item__title { color: var(--muted); }

.btn-add {
  position: absolute;
  z-index: 2;
  bottom: -4px;
  left: -4px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-add svg { width: 15px; height: 15px; }
.btn-add:active { transform: scale(0.88); }
.btn-add:disabled { background: #b9bcc7; cursor: not-allowed; }
.btn-add.is-bump { animation: bump 0.35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

@media (max-width: 360px) {
  .item { gap: 6px; }
  .item__media { width: 76px; height: 76px; }
  .item__name { font-size: 1rem; }
  .item__en .item__title { font-size: 0.938rem; }
}

.info { padding: 22px 16px 30px; }
.info__card--brand {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px 18px 20px;
  text-align: center;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(26, 35, 67, 0.08);
  margin-bottom: 10px;
}
.info__logo { width: 52px; height: 75px; margin: 0 auto 8px; }
.info__name { font-size: 1.365rem; font-weight: 800; margin: 0; color: var(--ink); }
.info__tagline { margin: 2px 0 0; color: var(--muted); font-size: 1rem; }
.info__tagline:empty { display: none; }
.info__list { display: grid; gap: 8px; margin: 10px 0 8px; }
.info__list a, .info__list .info__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--notice);
  border-radius: 16px;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}
.info__list a:active { background: #cbccd3; }
.info__ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.info__ico svg { width: 18px; height: 18px; }
.info__chev { margin-inline-start: auto; color: var(--muted); width: 18px; height: 18px; }
.info__empty { color: var(--muted); font-size: 1rem; text-align: center; margin: 6px 0; }

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 26px 26px 0 0;
  padding: 26px 18px calc(var(--fab-space) + env(safe-area-inset-bottom));
}
.footer__logo { width: 36px; height: 52px; color: var(--white); margin: 0 auto 10px; }
.footer__bar { font-size: 0.875rem; }

.preview-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--accent);
  color: var(--white);
  font-size: 0.938rem;
  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(--white); }
body.is-preview .page { padding-top: 40px; }
body.is-preview .cats { top: 40px; }

.cart-fab {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(26, 35, 67, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  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 .cart-fab { opacity: 1; pointer-events: auto; }
body.is-locked .cart-fab { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }
.cart-fab__icon { display: grid; place-items: center; }
.cart-fab__icon svg { width: 22px; height: 22px; }
.cart-fab__badge {
  position: absolute;
  top: -8px;
  left: -10px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.812rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.cart-fab__badge.is-bump { animation: bump 0.35s ease; }
.cart-fab__total { font-weight: 700; font-size: 0.938rem; padding-inline-start: 10px; border-inline-start: 1px solid rgba(255, 255, 255, 0.25); }
.cart-fab__total:empty { display: none; }

.drawer {
  --bs-offcanvas-width: min(310px, 86vw);
  --bs-offcanvas-bg: var(--navy);
  --bs-offcanvas-color: var(--white);
  border: 0 !important;
  border-radius: 26px 0 0 26px;
  font-family: var(--font);
}
.drawer__head { padding: calc(16px + env(safe-area-inset-top)) 18px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.drawer__logo { width: 34px; height: 49px; color: var(--white); }
.drawer .sheet__close--inline { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.drawer .offcanvas-body { padding: 14px 14px 24px; }
.drawer__label { font-size: 0.812rem; font-weight: 600; color: rgba(255, 255, 255, 0.55); margin: 6px 8px 6px; }
.drawer__list { display: grid; gap: 4px; margin-bottom: 14px; }
.drawer__link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--white);
  border-radius: 14px;
  padding: 7px 8px;
  text-align: right;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.drawer__link:hover, .drawer__link:focus-visible { background: rgba(255, 255, 255, 0.08); outline: 0; }
.drawer__link.is-active { background: rgba(255, 255, 255, 0.14); }
.drawer__link small { display: block; font-size: 0.812rem; font-weight: 400; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.08em; text-transform: uppercase; }
.drawer__thumb, .drawer__ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.drawer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.drawer__thumb svg, .drawer__ico svg { width: 20px; height: 20px; }

.sheet {
  --bs-offcanvas-height: auto;
  --bs-offcanvas-bg: var(--panel);
  --bs-offcanvas-color: var(--ink);
  height: auto;
  max-height: 92vh;
  max-height: 92dvh;
  border: 0;
  border-radius: 28px 28px 0 0;
  left: 0;
  right: 0;
  width: min(560px, 100vw);
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
  font-family: var(--font);
}
.sheet .offcanvas-body { overscroll-behavior: contain; }
.sheet__head { padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.sheet__titles .offcanvas-title { font-size: 1.25rem; font-weight: 800; line-height: 1.5; }
.sheet__en { margin: 0; font-size: 0.812rem; color: var(--muted); letter-spacing: 0.28em; text-transform: uppercase; line-height: 1.4; }
.sheet__close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  display: grid;
  place-items: center;
}
.sheet__close svg { width: 18px; height: 18px; }
.sheet__close--inline { position: static; background: var(--navy-50); color: var(--navy); }

.product__media {
  position: relative;
  background: var(--navy);
  padding: 34px 0 0;
  height: 190px;
  border-radius: 28px 28px 0 0;
  display: flex;
  justify-content: center;
  margin-bottom: 64px;
}
.product__plate {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 30px -14px rgba(26, 35, 67, 0.6), 0 0 0 6px var(--panel);
}
.product__plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__badge {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.812rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 99px;
}
.product__body { padding: 8px 20px 22px; }
.product__names { text-align: center; }
.product__name { font-size: 1.522rem; font-weight: 800; line-height: 1.5; margin: 0; }
.product__en { font-size: 0.938rem; color: var(--muted); font-weight: 500; margin: 0; letter-spacing: 0.24em; text-transform: uppercase; }
.product__desc { font-size: 1rem; color: #474c62; line-height: 1.9; margin: 12px 0 0; text-align: center; }
.chips { gap: 6px; margin: 14px 0 0; }
.chips li { background: var(--white); color: var(--navy); font-size: 0.875rem; font-weight: 600; padding: 3px 12px; border-radius: 99px; box-shadow: 0 1px 0 var(--line); }
.chips:empty { display: none !important; }
.product__foot { gap: 12px; margin: 20px 0 14px; }

.price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.188rem;
  line-height: 1.6;
  white-space: nowrap;
}
.price small { font-size: 0.812rem; font-weight: 500; color: var(--muted); }
.price--lg { font-size: 1.418rem; }

.stepper { gap: 4px; background: var(--white); border-radius: 999px; padding: 4px; box-shadow: 0 1px 0 var(--line); }
.stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}
.stepper button:active { transform: scale(0.9); }
.stepper button:disabled { opacity: 0.35; }
.stepper button svg { width: 16px; height: 16px; }
.stepper span { min-width: 30px; text-align: center; font-weight: 800; font-size: 1.125rem; }
.stepper--sm button { width: 28px; height: 28px; }
.stepper--sm button svg { width: 14px; height: 14px; }
.stepper--sm span { min-width: 24px; font-size: 1rem; }
.stepper button.is-trash { background: #f3dcd9; color: var(--danger); }

.btn-cafe, .btn-cafe-ghost {
  --bs-btn-padding-y: 12px;
  --bs-btn-padding-x: 16px;
  --bs-btn-font-size: 1rem;
  --bs-btn-font-weight: 700;
  --bs-btn-border-radius: 16px;
  --bs-btn-border-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-cafe {
  --bs-btn-bg: var(--navy);
  --bs-btn-color: var(--white);
  --bs-btn-hover-bg: var(--navy-700);
  --bs-btn-hover-color: var(--white);
  --bs-btn-active-bg: var(--navy-900);
  --bs-btn-active-color: var(--white);
  --bs-btn-disabled-bg: #b9bcc7;
  --bs-btn-disabled-color: var(--white);
  --bs-btn-disabled-opacity: 1;
}
.btn-cafe-ghost {
  --bs-btn-bg: var(--navy-50);
  --bs-btn-color: var(--navy);
  --bs-btn-hover-bg: #dde0ea;
  --bs-btn-hover-color: var(--navy);
  --bs-btn-active-bg: #d2d6e3;
  --bs-btn-active-color: var(--navy);
}
.btn-cafe svg, .btn-cafe-ghost svg { width: 19px; height: 19px; flex: 0 0 auto; }
.btn__amount { margin-inline-start: auto; font-size: 0.938rem; font-weight: 600; opacity: 0.9; padding-inline-start: 10px; border-inline-start: 1px solid rgba(255, 255, 255, 0.35); }

.cart__list { padding: 4px 20px; }
.cart__empty { text-align: center; padding: 44px 16px 36px; color: var(--muted); font-size: 1rem; }
.cart__empty svg { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--navy); opacity: 0.6; }
.cart__empty p { margin: 0; }
.cart__empty .cart__hint { font-size: 0.938rem; margin-top: 4px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item__img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  flex: 0 0 auto;
  box-shadow: 0 8px 12px -6px rgba(26, 35, 67, 0.5);
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 1.062rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.cart-item__en { font-size: 0.812rem; color: var(--muted); direction: ltr; text-align: right; line-height: 1.4; }
.cart-item__unit { font-size: 0.812rem; color: var(--muted); }
.cart-item__total { font-size: 0.938rem; font-weight: 800; white-space: nowrap; color: var(--navy); }
.cart-item__total small { font-size: 0.812rem; font-weight: 500; }
.cart-item__ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart__foot {
  position: sticky;
  bottom: 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 14px 20px 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.062rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  padding: 8px 12px;
}
.field .form-control:focus { border-color: var(--navy); box-shadow: none; }
.cart__total { font-size: 1rem; color: var(--muted); }
.cart__total strong { font-size: 1.312rem; color: var(--ink); font-weight: 800; }
.cart__total small { font-size: 0.812rem; font-weight: 500; color: var(--muted); }
.cart__actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }

.sheet--receipt { --bs-offcanvas-bg: var(--bg); }
.sheet--receipt .offcanvas-body { padding: 18px 20px 22px; }
.receipt__paper {
  position: relative;
  background: var(--white);
  border-radius: 18px 18px 4px 4px;
  padding: 22px 20px 26px;
  box-shadow: 0 10px 30px rgba(26, 35, 67, 0.12);
}
.receipt__paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 10px;
  background:
    linear-gradient(-45deg, transparent 7px, var(--white) 7px) 0 0 / 14px 10px repeat-x,
    linear-gradient(45deg, transparent 7px, var(--white) 7px) 0 0 / 14px 10px repeat-x;
  background-position: -3px 0, 4px 0;
}
.receipt__brand { gap: 4px; color: var(--navy); font-size: 1.125rem; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.receipt__logo { width: 34px; height: 49px; }
.receipt__code { gap: 4px; padding: 16px 0 12px; }
.receipt__code span { font-size: 0.938rem; color: var(--muted); }
.receipt__code strong {
  font-size: 2.52rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 4px;
  color: var(--white);
  background: var(--navy);
  padding: 6px 24px 4px 20px;
  border-radius: 16px;
}
.receipt__meta { gap: 22px; padding: 6px 0 14px; border-bottom: 1px dashed var(--line); margin: 0; }
.receipt__meta > div { text-align: center; }
.receipt__meta dt { font-size: 0.812rem; color: var(--muted); font-weight: 500; }
.receipt__meta dd { font-size: 1rem; font-weight: 700; 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: 1rem; }
.receipt__items .qty { color: var(--accent); font-weight: 800; min-width: 28px; }
.receipt__items .name { font-weight: 600; }
.receipt__items .dots { flex: 1; border-bottom: 1px dotted #c3c6d0; transform: translateY(-4px); }
.receipt__items .amt { font-weight: 700; white-space: nowrap; }
.receipt__total { padding: 14px 0 4px; font-size: 1rem; color: var(--muted); }
.receipt__total strong { font-size: 1.365rem; font-weight: 800; color: var(--ink); }
.receipt__total small { font-size: 0.812rem; color: var(--muted); font-weight: 500; }
.receipt__note { margin: 14px 0 0; font-size: 0.938rem; color: var(--navy); background: var(--navy-50); border-radius: 12px; padding: 10px 12px; line-height: 1.8; }
.receipt__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }

.toast-msg {
  position: fixed;
  left: 50%;
  bottom: calc(var(--fab-space) + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(16px);
  z-index: 1100;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(26, 35, 67, 0.22);
  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);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast-msg svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }
.toast-msg.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@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%; }
}
