/* ==========================================================================
   سایتِ منو — ماچی و فرگامو
   صفحه‌ی اول (پنلِ هر برند + اطلاعاتِ تماس)، منوی هر برند (دو چیدمان: فهرست و
   کارت)، جزئیاتِ آیتم و صفحه‌ی خطا. مستقل از bootstrap و luxury-public.css؛
   پنل‌ها، سبد خرید و پروفایل این فایل را بار نمی‌کنند.

   رنگ: زرشکیِ خودِ لوگوی ماچی (#6A0000) روی سفیدِ گرم. منوی برندِ «تیره»
   (فرگامو) با کلاسِ ms-dark روی body فقط توکن‌ها را عوض می‌کند.
   تزئین فقط از خودِ برند می‌آید (لوگو، رنگ، تایپوگرافی) — نه ایموجی، نه آیکونِ
   تزئینی. آیکون فقط جایی که کاری انجام می‌دهد (بازگشت، جستجو، سبد، بستن).
   ========================================================================== */

:root {
  --ms-crimson: #6A0000;
  --ms-crimson-deep: #4A0000;
  --ms-crimson-soft: #F7ECEC;
  --ms-crimson-line: #EAD3D3;
  --ms-ink: #171314;                 /* مشکیِ فرگامو */
  --ms-grad-crimson: radial-gradient(120% 95% at 50% -10%, #8E1414 0%, #6A0000 48%, #450000 100%);
  --ms-grad-dark: radial-gradient(110% 90% at 50% 115%, #3B0B0B 0%, #171314 52%, #0B090A 100%);

  --ms-bg: #F7F4F2;                  /* سفیدِ گرم؛ کارت‌ها سفیدِ خالص تا از زمینه جدا شوند */
  --ms-bg-soft: #FBF9F8;
  --ms-surface: #FFFFFF;
  --ms-surface-2: #F2EDEB;
  --ms-text: #1C1415;
  --ms-text-2: #564C4E;
  --ms-text-3: #8B8082;
  --ms-line: #EAE2E0;

  --ms-accent: var(--ms-crimson);
  --ms-accent-fill: var(--ms-crimson);
  --ms-accent-soft: var(--ms-crimson-soft);
  --ms-accent-line: var(--ms-crimson-line);
  --ms-on-accent: #FFFFFF;
  --ms-ph: linear-gradient(145deg, #F4E7E6 0%, #EFE3E1 55%, #E9DAD8 100%);

  --ms-ok: #1D7A46;
  --ms-ok-soft: #E8F5EE;

  --ms-radius-sm: 12px;
  --ms-radius: 18px;
  --ms-radius-lg: 26px;
  --ms-shadow-sm: 0 1px 2px rgba(30, 20, 21, .05);
  --ms-shadow: 0 1px 2px rgba(30, 20, 21, .04), 0 12px 30px -18px rgba(30, 20, 21, .22);
  --ms-shadow-lg: 0 2px 6px rgba(30, 20, 21, .05), 0 26px 50px -26px rgba(106, 0, 0, .42);

  --ms-topbar-h: 58px;
  --ms-font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --ms-ease: cubic-bezier(.22, .61, .36, 1);
}

body.ms-dark {
  --ms-bg: #0E0C0D;
  --ms-bg-soft: #131011;
  --ms-surface: #191617;
  --ms-surface-2: #231F20;
  --ms-text: #F6F0F0;
  --ms-text-2: #C2B7B8;
  --ms-text-3: #8E8485;
  --ms-line: #2B2526;

  --ms-accent: #E88A8A;              /* زرشکیِ روشن‌تر برای خوانایی روی تیره */
  --ms-accent-fill: #8A0F0F;
  --ms-accent-soft: rgba(138, 15, 15, .22);
  --ms-accent-line: rgba(232, 138, 138, .26);
  --ms-ph: linear-gradient(145deg, #231D1E 0%, #1C1718 55%, #171314 100%);

  --ms-ok: #62D293;
  --ms-ok-soft: rgba(98, 210, 147, .12);

  --ms-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --ms-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 32px -18px rgba(0, 0, 0, .75);
  --ms-shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 26px 50px -24px rgba(138, 15, 15, .55);
  color-scheme: dark;
}

/* ── پایه ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.ms-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ms-bg);
  color: var(--ms-text);
  font-family: var(--ms-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
/* پایه‌ها با :where() — بی‌وزن، تا قاعده‌ی هر جزء (مثلاً اندازه‌ی لوگو یا رنگِ
   پنل) همیشه بر آن‌ها غالب شود. «.ms-body img» اندازه‌ی لوگوها را خنثی می‌کرد. */
:where(.ms-body) a { color: inherit; text-decoration: none; }
:where(.ms-body) img { max-width: 100%; display: block; }
:where(.ms-body) button { font-family: inherit; }
:where(.ms-body) :is(h1, h2, h3) { margin: 0; line-height: 1.35; }
:where(.ms-body) p { margin: 0; }
:where(.ms-body) ::selection { background: var(--ms-crimson); color: #fff; }

.ms-main { flex: 1 0 auto; }
.ms-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.ms-wrap--narrow { max-width: 560px; }
.ms-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.ms-num { direction: ltr; unicode-bidi: isolate; font-feature-settings: "tnum"; }

:where(.ms-body) :focus-visible { outline: 2px solid var(--ms-accent); outline-offset: 3px; border-radius: 8px; }
.ms-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* لوگو: تک‌رنگ روی زمینه‌ی رنگی سفید می‌شود؛ لوگوی رنگی (نقره‌ایِ فرگامو) دست‌نخورده */
.is-mono { filter: brightness(0) invert(1); }

/* ── نوارِ بالا ───────────────────────────────────────────────────────── */
.ms-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--ms-topbar-h);
  background: color-mix(in srgb, var(--ms-bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.ms-topbar.is-scrolled { border-bottom-color: var(--ms-line); }
.ms-topbar__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ms-topbar__side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ms-topbar__title {
  position: absolute;
  inset-inline: 0;
  margin-inline: auto;
  width: max-content;
  max-width: 46%;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.ms-topbar.is-scrolled .ms-topbar__title { opacity: 1; transform: none; }

.ms-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding-inline: 10px 14px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ms-text-2);
  transition: background-color .2s ease, color .2s ease;
}
.ms-back:hover { background: var(--ms-surface-2); color: var(--ms-text); }

.ms-iconbtn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--ms-line);
  background: var(--ms-surface);
  color: var(--ms-text);
  transition: border-color .2s ease;
}
.ms-iconbtn:hover { border-color: var(--ms-accent-line); }
.ms-iconbtn__badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ms-accent-fill);
  color: var(--ms-on-accent);
  font-size: .68rem;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}
.ms-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 14px;
  border-radius: 999px;
  border: 1px solid var(--ms-line);
  background: var(--ms-surface);
  font-size: .84rem;
  font-weight: 700;
  color: var(--ms-text-2);
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}
.ms-pill-link:hover { border-color: var(--ms-accent-line); color: var(--ms-accent); }

/* روی سرصفحه‌ی رنگی: شفاف و سفید، تا اسکرول */
body.ms-hero-page .ms-topbar:not(.is-scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fff;
}
body.ms-hero-page .ms-topbar:not(.is-scrolled) .ms-back { color: rgba(255, 255, 255, .92); }
body.ms-hero-page .ms-topbar:not(.is-scrolled) .ms-back:hover { background: rgba(255, 255, 255, .12); color: #fff; }
body.ms-hero-page .ms-topbar:not(.is-scrolled) .ms-iconbtn,
body.ms-hero-page .ms-topbar:not(.is-scrolled) .ms-pill-link {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}
body.ms-hero-page .ms-topbar:not(.is-scrolled) .ms-iconbtn__badge { background: #fff; color: var(--ms-crimson); }

/* ── پیام‌ها ────────────────────────────────────────────────────────── */
.ms-flash {
  margin: 12px auto 0;
  padding: 12px 14px;
  border-radius: var(--ms-radius-sm);
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid var(--ms-accent-line);
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
}
.ms-flash--ok { border-color: color-mix(in srgb, var(--ms-ok) 30%, transparent); background: var(--ms-ok-soft); color: var(--ms-ok); }

/* ── بافت و دانه‌ی مشترکِ سطوحِ رنگی (پنل، سرصفحه، سرِ کارت) ─────────── */
.ms-panel, .ms-hero, .ms-bcard__head, .ms-bfoot { position: relative; isolation: isolate; overflow: hidden; }
.ms-panel::after, .ms-hero::after, .ms-bcard__head::after, .ms-bfoot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ms-texture { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.ms-texture img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190%;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-14deg);
  filter: brightness(0) invert(1);
  opacity: .055;
  transition: transform 1.2s var(--ms-ease);
}
.ms-texture img.is-square { width: 120%; }
.ms-texture span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  font-size: clamp(7rem, 34vw, 16rem);
  font-weight: 800;
  letter-spacing: -.03em;
  white-space: nowrap;
  direction: ltr;
  color: #fff;
  opacity: .05;
}
.is-crimson { background: var(--ms-grad-crimson); }
.is-dark { background: var(--ms-grad-dark); }

/* ══════════════════════════════════════════════════════════════════════
   صفحه‌ی اول — پنلِ هر برند
   ══════════════════════════════════════════════════════════════════════ */
.ms-gate { display: grid; }
.ms-body a.ms-panel { color: #fff; }
.ms-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: max(300px, 44svh);
  padding: 48px 24px 44px;
  text-align: center;
}
.ms-panel__body { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ms-panel__logo {
  width: auto;
  height: auto;
  max-width: min(66vw, 320px);
  max-height: 190px;
  transition: transform .6s var(--ms-ease);
}
.ms-panel__logo.is-mono { filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0, 0, 0, .25)); }
.ms-panel__logo:not(.is-mono) { filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .45)); }
.ms-panel__latin { font-size: .78rem; font-weight: 700; letter-spacing: .44em; direction: ltr; opacity: .62; }
.ms-panel__name { font-size: clamp(2.7rem, 13vw, 3.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.ms-panel__tag { font-size: 1rem; font-weight: 500; opacity: .8; }
.ms-panel__meta { font-size: .84rem; font-weight: 600; opacity: .7; }
.ms-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  margin-top: 12px;
  padding-inline: 22px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: .94rem;
  font-weight: 700;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.ms-panel__cta .ms-icon { width: 18px; height: 18px; transition: transform .3s var(--ms-ease); }
.ms-panel:hover .ms-panel__cta,
.ms-panel:focus-visible .ms-panel__cta { background: #fff; border-color: #fff; color: var(--ms-crimson); }
.ms-panel.is-dark:hover .ms-panel__cta,
.ms-panel.is-dark:focus-visible .ms-panel__cta { color: var(--ms-ink); }
.ms-panel:hover .ms-panel__cta .ms-icon { transform: translateX(-4px); }
.ms-panel:hover .ms-panel__logo { transform: scale(1.03); }
.ms-panel:hover .ms-texture img { transform: translate(-50%, -50%) rotate(-14deg) scale(1.05); }
.ms-panel:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 0; }

@media (min-width: 900px) {
  .ms-gate { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }   /* یک ستون برای هر برند */
  .ms-panel { min-height: min(78vh, 740px); padding: 64px 40px; }
  .ms-panel__logo { max-width: min(30vw, 380px); max-height: 240px; }
}

/* ══════════════════════════════════════════════════════════════════════
   صفحه‌ی اول — اطلاعاتِ تماس
   ══════════════════════════════════════════════════════════════════════ */
.ms-info { padding: clamp(44px, 8vh, 80px) 0 clamp(28px, 5vh, 48px); }
.ms-info__intro { text-align: center; margin-bottom: 28px; }
.ms-overline {
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ms-accent);
  margin-bottom: 6px;
}
.ms-info__title { font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; }
.ms-info__lead { margin-top: 6px; color: var(--ms-text-3); font-size: .95rem; }

/* آدرس — کارتِ پهنِ بالای دو برند */
.ms-address {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow);
}
.ms-address__body { flex: 1; min-width: 0; }
.ms-label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  color: var(--ms-text-3);
  letter-spacing: .01em;
}
.ms-address__text { margin-top: 2px; font-size: clamp(1.05rem, 4vw, 1.25rem); font-weight: 800; line-height: 1.7; }
.ms-address__note { margin-top: 2px; font-size: .84rem; color: var(--ms-text-3); }
.ms-btn-map {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding-inline: 20px 16px;
  border-radius: 999px;
  background: var(--ms-crimson);
  color: #fff !important;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 12px 24px -14px rgba(106, 0, 0, .8);
  transition: transform .2s ease, background-color .2s ease;
}
.ms-btn-map:hover { background: var(--ms-crimson-deep); transform: translateY(-1px); }
.ms-btn-map .ms-icon { width: 17px; height: 17px; }
@media (max-width: 600px) {
  .ms-address { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; }
  .ms-btn-map { justify-content: center; }
}

/* کارتِ هر برند */
.ms-bcards { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 760px) { .ms-bcards { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; } }

.ms-bcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--ms-radius-lg);
  background: var(--ms-surface);
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow);
  overflow: hidden;
  transition: box-shadow .35s var(--ms-ease), transform .35s var(--ms-ease);
}
.ms-bcard:hover { box-shadow: var(--ms-shadow-lg); transform: translateY(-2px); }
.ms-bcard__head {
  display: grid;
  place-items: center;
  height: 150px;
  padding: 20px;
  color: #fff;
}
/* اندازه‌ی ثابت، نه درصد: خانه‌ی grid اندازه‌اش را از خودِ عکس می‌گیرد و درصد بی‌اثر می‌شد */
.ms-bcard__logo { width: auto; height: auto; max-width: 224px; max-height: 96px; }
.ms-bcard__logo.is-mono { filter: brightness(0) invert(1); }
.ms-bcard__name { font-size: 2rem; font-weight: 800; }
.ms-bcard__body { flex: 1; display: flex; flex-direction: column; padding: 6px 22px 22px; }
.ms-rows { list-style: none; margin: 0; padding: 0; }
.ms-rows > li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ms-line);
}
.ms-rows > li:last-child { border-bottom: 0; }
.ms-rows__val { text-align: left; font-weight: 700; font-size: .98rem; color: var(--ms-text); }
.ms-rows__val a { transition: color .2s ease; }
.ms-rows__val a:hover { color: var(--ms-accent); }
.ms-rows__phones { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ms-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-end: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  vertical-align: 2px;
  background: var(--ms-surface-2);
  color: var(--ms-text-3);
}
.ms-open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ms-open.is-open { background: var(--ms-ok-soft); color: var(--ms-ok); }
.ms-insta { display: inline-flex; align-items: center; gap: 4px; direction: ltr; }
.ms-insta .ms-icon { width: 14px; height: 14px; opacity: .6; }

.ms-reserve { margin-top: auto; padding-top: 16px; }
.ms-reserve__title { font-size: .8rem; font-weight: 800; color: var(--ms-text-3); margin-bottom: 8px; }
.ms-reserve__btns { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ms-reserve__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--ms-crimson);
  color: #fff !important;
  text-align: center;
  line-height: 1.5;
  transition: transform .2s ease, filter .2s ease;
}
.ms-reserve__btn small { font-size: .7rem; font-weight: 700; opacity: .75; }
.ms-reserve__btn b { font-size: 1rem; font-weight: 800; }
.ms-reserve__btn:hover { transform: translateY(-1px); filter: brightness(1.12); }
.ms-bcard.is-dark-brand .ms-reserve__btn { background: var(--ms-ink); }

/* ══════════════════════════════════════════════════════════════════════
   منوی برند — سرصفحه
   ══════════════════════════════════════════════════════════════════════ */
.ms-hero {
  padding: 12px 0 62px;
  border-radius: 0 0 32px 32px;
  color: #fff;
  text-align: center;
}
body.ms-hero-page .ms-hero { margin-top: calc(-1 * var(--ms-topbar-h)); padding-top: calc(var(--ms-topbar-h) + 20px); }

/* ردیفِ بالای سرصفحه: بازگشت به همه‌ی منوها + (برای کارکنان/سفارشِ آنلاین) دکمه‌ها */
.ms-hero__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  margin-bottom: 14px;
}
.ms-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding-inline: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff !important;
  font-size: .84rem;
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease;
}
.ms-hero__back:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .42); }
.ms-hero__back .ms-icon { width: 17px; height: 17px; }
.ms-hero__acts, .ms-detail__acts { display: flex; align-items: center; gap: 8px; }
.ms-hero__acts .ms-pill-link,
.ms-hero__acts .ms-iconbtn {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}
.ms-hero__acts .ms-iconbtn__badge { background: #fff; color: var(--ms-crimson); }
.ms-hero.is-dark { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); }
.ms-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.ms-hero__logo { margin: 4px 0 12px; line-height: 0; }
.ms-hero__logo img { width: auto; height: auto; max-width: min(60vw, 280px); max-height: 150px; }
.ms-hero__logo img.is-mono { filter: brightness(0) invert(1) drop-shadow(0 8px 20px rgba(0, 0, 0, .25)); }
.ms-hero__logo img:not(.is-mono) { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.ms-hero__latin { font-size: .76rem; font-weight: 700; letter-spacing: .4em; direction: ltr; opacity: .65; }
.ms-hero__title { margin-top: 2px; font-size: clamp(2.2rem, 9vw, 3rem); font-weight: 800; letter-spacing: -.01em; color: #fff; }
.ms-hero__tag { color: rgba(255, 255, 255, .8); font-size: .98rem; }

.ms-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .94);
}
.ms-status__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.ms-status.is-open .ms-status__dot { background: #6EE7A0; animation: ms-pulse 2.4s ease-out infinite; }
.ms-status__hours { opacity: .74; font-weight: 600; }
@keyframes ms-pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 160, .55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(110, 231, 160, 0); }
}

.ms-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.ms-hpill {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: .86rem;
  font-weight: 700;
  color: #fff !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ms-hpill:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.ms-hpill--solid { background: #fff; border-color: #fff; color: var(--ms-crimson) !important; }
.ms-hpill--solid:hover { background: rgba(255, 255, 255, .88); }
.ms-hero.is-dark .ms-hpill--solid { color: var(--ms-ink) !important; }

/* جستجو، روی لبه‌ی پایینِ سرصفحه */
.ms-search-wrap { position: relative; z-index: 3; margin-top: -27px; }
.ms-search { position: relative; max-width: 560px; margin: 0 auto; }
.ms-search > .ms-icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 18px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--ms-text-3);
  pointer-events: none;
}
.ms-search input {
  width: 100%;
  height: 54px;
  padding-inline: 50px 48px;
  border-radius: 999px;
  border: 1px solid var(--ms-line);
  background: var(--ms-surface);
  color: var(--ms-text);
  font: inherit;
  font-size: .95rem;
  box-shadow: 0 16px 36px -20px rgba(40, 10, 10, .5), 0 2px 6px rgba(30, 20, 21, .06);
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ms-search input::placeholder { color: var(--ms-text-3); }
.ms-search input:focus { outline: none; border-color: var(--ms-accent-line); box-shadow: 0 0 0 4px var(--ms-accent-soft), 0 16px 36px -20px rgba(40, 10, 10, .5); }
.ms-search input::-webkit-search-cancel-button { display: none; }
.ms-search__clear {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: var(--ms-surface-2);
  color: var(--ms-text-2);
  cursor: pointer;
}
.ms-search.has-value .ms-search__clear { display: grid; }
.ms-search__clear .ms-icon { width: 16px; height: 16px; }

/* نوارِ دسته‌ها — تنها نوارِ چسبان. در جای خودش ساده است؛ وقتی به بالای صفحه
   می‌چسبد (is-stuck) رنگِ برند و لوگوی کوچک می‌گیرد و «سرِ صفحه»ی جمع‌وجور می‌شود. */
/* فاصله‌ی بالای نوار روی نشانگر است، نه روی خودِ نوار — تا «چسبیدن» دقیقاً
   همان لحظه‌ای تشخیص داده شود که نوار به لبه‌ی بالا می‌رسد. */
#msStripSentinel { height: 16px; }
.ms-strip {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ms-bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ms-line);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ms-strip__inner { display: flex; align-items: center; max-width: 1120px; margin-inline: auto; }
.ms-strip__brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding-inline-start: 0;
  color: #fff !important;
  font-weight: 800;
  white-space: nowrap;
  transition: max-width .4s var(--ms-ease), opacity .3s ease, padding .4s var(--ms-ease);
}
.ms-strip__brand img { width: auto; height: auto; max-height: 30px; max-width: 92px; }
.ms-strip .ms-cats__scroll { flex: 1; min-width: 0; }
.ms-strip.is-stuck { border-bottom-color: transparent; box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .55); }
.ms-strip.is-stuck.is-crimson { background: linear-gradient(180deg, #7A0707 0%, #5C0000 100%); }
.ms-strip.is-stuck.is-dark { background: #141112; border-bottom-color: rgba(255, 255, 255, .07); }
.ms-strip.is-stuck .ms-strip__brand { max-width: 130px; opacity: 1; padding-inline-start: 16px; }
.ms-strip.is-stuck .ms-chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .88); }
.ms-strip.is-stuck .ms-chip:hover { border-color: rgba(255, 255, 255, .42); color: #fff; }
.ms-strip.is-stuck .ms-chip.is-active { background: #fff; border-color: #fff; color: var(--ms-crimson); }
.ms-strip.is-stuck.is-dark .ms-chip.is-active { color: var(--ms-ink); }
.ms-cats__scroll {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-padding-inline: 16px;
  max-width: 1120px;
  margin-inline: auto;
  cursor: grab;
}
.ms-cats__scroll::-webkit-scrollbar { display: none; }
.ms-cats__scroll.is-dragging { cursor: grabbing; user-select: none; }
.ms-chip {
  flex-shrink: 0;
  height: 38px;
  padding-inline: 18px;
  border-radius: 999px;
  border: 1px solid var(--ms-line);
  background: var(--ms-surface);
  color: var(--ms-text-2);
  font-size: .87rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ms-chip:hover { border-color: var(--ms-accent-line); color: var(--ms-text); }
.ms-chip.is-active { background: var(--ms-accent-fill); border-color: var(--ms-accent-fill); color: var(--ms-on-accent); }

/* ══════════════════════════════════════════════════════════════════════
   منوی برند — دسته‌ها و آیتم‌ها
   ══════════════════════════════════════════════════════════════════════ */
.ms-menu { padding: 6px 0 48px; }
.ms-cat { padding-top: 30px; scroll-margin-top: 72px; }
.ms-cat__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ms-cat__name { font-size: clamp(1.3rem, 5vw, 1.55rem); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.ms-cat__rule { flex: 1; height: 1px; background: linear-gradient(to left, var(--ms-line), transparent); }
.ms-cat__count { flex-shrink: 0; font-size: .76rem; font-weight: 700; color: var(--ms-text-3); }
.ms-sub { margin: 22px 0 12px; font-size: 1.02rem; font-weight: 800; color: var(--ms-text-2); display: flex; align-items: center; gap: 10px; }
.ms-sub::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--ms-accent); }

.ms-price { display: inline-flex; align-items: baseline; gap: 5px; font-weight: 800; color: var(--ms-accent); font-size: 1.02rem; white-space: nowrap; }
.ms-price small { font-size: .7rem; font-weight: 600; color: var(--ms-text-3); }
.ms-price del { font-size: .78rem; font-weight: 600; color: var(--ms-text-3); }

.ms-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.ms-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  background: var(--ms-accent-soft);
  color: var(--ms-accent);
  white-space: nowrap;
}
.ms-badge--solid { background: var(--ms-accent-fill); color: var(--ms-on-accent); }
.ms-badge--muted { background: var(--ms-surface-2); color: var(--ms-text-3); }

.ms-item {
  position: relative;
  border-radius: var(--ms-radius);
  background: var(--ms-surface);
  border: 1px solid var(--ms-line);
  box-shadow: var(--ms-shadow-sm);
  transition: border-color .25s ease, box-shadow .3s ease, transform .3s var(--ms-ease);
}
.ms-item:hover { border-color: var(--ms-accent-line); box-shadow: var(--ms-shadow); }
.ms-item__name { font-weight: 800; color: var(--ms-text); }
.ms-item__desc { color: var(--ms-text-3); display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.ms-item.is-unavailable .ms-item__link { opacity: .5; }
.ms-item.is-unavailable img { filter: grayscale(1); }

/* دکمه‌ی افزودن — فقط وقتی سفارش آنلاین روشن است */
.ms-add {
  position: absolute;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--ms-accent-fill);
  color: var(--ms-on-accent);
  box-shadow: 0 8px 18px -8px rgba(106, 0, 0, .65);
  cursor: pointer;
  transition: transform .2s ease;
}
.ms-add:hover { transform: scale(1.07); }
.ms-add:disabled { opacity: .6; cursor: default; transform: none; }
.ms-add .ms-icon { width: 18px; height: 18px; }

/* ── چیدمانِ «فهرست» ─────────────────────────────────────────────── */
.ms-list { display: grid; gap: 12px; }
@media (min-width: 760px) { .ms-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

.ms-item--row .ms-item__link { display: flex; align-items: stretch; gap: 14px; padding: 14px 16px; min-height: 120px; }
.ms-item--row .ms-item__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ms-item--row .ms-badges { margin-bottom: 4px; }
.ms-item--row .ms-item__name { font-size: 1.04rem; }
.ms-item--row .ms-item__desc { margin-top: 3px; font-size: .84rem; line-height: 1.8; -webkit-line-clamp: 2; }
.ms-item--row .ms-item__foot { margin-top: auto; padding-top: 10px; }
.ms-item--row .ms-item__thumb {
  flex-shrink: 0;
  width: 108px;
  height: 108px;
  align-self: center;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ms-ph);
}
.ms-item--row .ms-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ms-ease); }
.ms-item--row:hover .ms-item__thumb img { transform: scale(1.06); }
.ms-item--row .ms-add { bottom: 12px; inset-inline-end: 12px; }
.ms-item--row.has-thumb .ms-add { bottom: 20px; inset-inline-end: 22px; }

/* ── چیدمانِ «کارت» — عکسِ بزرگ بالا، نام و قیمت پایین ───────────────── */
.ms-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .ms-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .ms-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.ms-item--tile { overflow: hidden; display: flex; flex-direction: column; }
.ms-item--tile:hover { transform: translateY(-3px); }
.ms-item--tile .ms-item__link { display: flex; flex-direction: column; flex: 1; }
.ms-tile__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ms-ph); }
.ms-tile__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ms-ease); }
.ms-item--tile:hover .ms-tile__media > img { transform: scale(1.06); }
/* بی‌عکس: نشانِ برند، کم‌رنگ روی زمینه‌ی گرم — نه جای خالی */
.ms-tile__ph { position: absolute; inset: 0; display: grid; place-items: center; }
.ms-tile__ph img { width: auto; height: auto; max-width: 58%; max-height: 42%; opacity: .14; }
.ms-dark .ms-tile__ph img { filter: brightness(0) invert(1); opacity: .1; }
.ms-tile__ph span { font-size: 3.4rem; font-weight: 800; color: var(--ms-accent); opacity: .16; }
.ms-tile__badges { position: absolute; top: 10px; inset-inline-start: 10px; }
.ms-tile__badges .ms-badge { box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); }
.ms-tile__badges .ms-badge:not(.ms-badge--solid):not(.ms-badge--muted) { background: rgba(255, 255, 255, .94); }
.ms-tile__body { flex: 1; display: flex; flex-direction: column; padding: 12px 14px 14px; }
.ms-item--tile .ms-item__name { font-size: .98rem; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ms-item--tile .ms-item__desc { margin-top: 3px; font-size: .78rem; line-height: 1.75; -webkit-line-clamp: 2; }
.ms-item--tile .ms-item__foot { margin-top: auto; padding-top: 10px; }
.ms-item--tile.has-add .ms-item__foot { padding-inline-end: 44px; }
.ms-item--tile .ms-add { bottom: 12px; inset-inline-end: 12px; width: 36px; height: 36px; }
@media (max-width: 380px) {
  .ms-tile__body { padding: 10px 11px 12px; }
  .ms-item--tile .ms-item__name { font-size: .92rem; }
  .ms-item--tile .ms-price { font-size: .95rem; }
}

.ms-empty { padding: 56px 16px; text-align: center; color: var(--ms-text-3); }
.ms-empty h3 { font-size: 1.1rem; color: var(--ms-text-2); margin-bottom: 4px; }

/* نوارِ شناورِ سبد */
.ms-cartbar {
  position: fixed;
  z-index: 60;
  inset-inline: 12px;
  bottom: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 18px;
  background: var(--ms-accent-fill);
  color: #fff !important;
  box-shadow: 0 18px 40px -16px rgba(80, 10, 10, .7);
  transform: translateY(140%);
  transition: transform .4s var(--ms-ease);
}
.ms-cartbar.is-shown { transform: none; }
.ms-cartbar__count { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; background: rgba(255, 255, 255, .18); font-weight: 800; }
.ms-cartbar__text { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.ms-cartbar__text b { font-size: .98rem; }
.ms-cartbar__text span { font-size: .76rem; opacity: .85; }
.ms-cartbar__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .9rem; }

/* ══════════════════════════════════════════════════════════════════════
   جزئیاتِ آیتم
   ══════════════════════════════════════════════════════════════════════ */
.ms-detail { padding: 0 0 56px; }
.ms-detail__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.ms-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding-inline: 12px 16px;
  border-radius: 999px;
  background: var(--ms-surface);
  border: 1px solid var(--ms-line);
  color: var(--ms-text-2) !important;
  font-size: .86rem;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease;
}
.ms-back-pill:hover { border-color: var(--ms-accent-line); color: var(--ms-text) !important; }
.ms-back-pill .ms-icon { width: 17px; height: 17px; }
.ms-detail__grid { display: grid; gap: 22px; }
@media (min-width: 820px) {
  .ms-detail__grid.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 40px; }
}
.ms-detail__img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--ms-radius-lg); overflow: hidden; background: var(--ms-ph); box-shadow: var(--ms-shadow); }
.ms-detail__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 819px) { .ms-detail__img { aspect-ratio: 4 / 3; } }
.ms-detail__img--brand { display: grid; place-items: center; isolation: isolate; color: #fff; }
/* رنگِ برند باید بر زمینه‌ی پیش‌فرضِ جای عکس (--ms-ph) غالب شود */
.ms-detail__img--brand.is-crimson { background: var(--ms-grad-crimson); }
.ms-detail__img--brand.is-dark { background: var(--ms-grad-dark); }
.ms-detail__img--brand::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ms-detail__emblem { width: auto; height: auto; max-width: 58%; max-height: 46%; }
.ms-detail__emblem.is-mono { filter: brightness(0) invert(1) drop-shadow(0 8px 20px rgba(0, 0, 0, .25)); }
.ms-detail__emblem:not(.is-mono) { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.ms-detail__emblem-name { font-size: clamp(2.2rem, 9vw, 3.2rem); font-weight: 800; }
.ms-detail .ms-badges { margin-bottom: 8px; }
.ms-detail__cat { display: inline-block; font-size: .82rem; font-weight: 800; color: var(--ms-accent); margin-bottom: 4px; }
.ms-detail__name { font-size: clamp(1.7rem, 6vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; }
.ms-detail__price { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.ms-detail__price .ms-price { font-size: 1.45rem; }
.ms-detail__price .ms-price small { font-size: .86rem; }
.ms-detail__desc { margin-top: 16px; color: var(--ms-text-2); line-height: 2; font-size: 1rem; }
.ms-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ms-meta span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding-inline: 12px; border-radius: 999px; background: var(--ms-surface-2); color: var(--ms-text-2); font-size: .82rem; font-weight: 700; }
.ms-note { margin-top: 16px; padding: 12px 14px; border-radius: var(--ms-radius-sm); border: 1px solid var(--ms-line); background: var(--ms-surface); font-size: .88rem; color: var(--ms-text-2); line-height: 1.9; }
.ms-note b { color: var(--ms-text); }
.ms-note--warn { border-color: var(--ms-accent-line); background: var(--ms-accent-soft); }

.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding-inline: 26px;
  border-radius: 999px;
  border: 0;
  background: var(--ms-accent-fill);
  color: var(--ms-on-accent) !important;
  font: inherit;
  font-weight: 800;
  font-size: .98rem;
  cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(106, 0, 0, .7);
  transition: transform .2s ease, filter .2s ease;
}
.ms-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.ms-btn:disabled { opacity: .6; cursor: default; transform: none; }
.ms-btn--ghost { background: transparent; color: var(--ms-text) !important; border: 1px solid var(--ms-line); box-shadow: none; }
.ms-btn--block { width: 100%; }
.ms-detail__actions { margin-top: 24px; }

.ms-stars { display: inline-flex; align-items: center; gap: 3px; color: #C9901B; }
.ms-stars .ms-icon { width: 15px; height: 15px; }
.ms-stars .is-off { color: var(--ms-line); }
.ms-reviews { margin-top: 44px; }
.ms-reviews__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ms-reviews__head h2 { font-size: 1.2rem; font-weight: 800; }
.ms-review { padding: 14px 16px; border-radius: var(--ms-radius); background: var(--ms-surface); border: 1px solid var(--ms-line); }
.ms-review + .ms-review { margin-top: 10px; }
.ms-review__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ms-review__name { font-weight: 800; font-size: .9rem; }
.ms-review__text { margin-top: 6px; font-size: .88rem; color: var(--ms-text-2); line-height: 1.9; }
.ms-review__date { margin-top: 4px; font-size: .74rem; color: var(--ms-text-3); }

/* ══════════════════════════════════════════════════════════════════════
   صفحه‌ی خطا
   ══════════════════════════════════════════════════════════════════════ */
.ms-error { padding: clamp(56px, 13vh, 120px) 0; text-align: center; }
.ms-error__code { font-size: clamp(4.5rem, 20vw, 7rem); font-weight: 800; line-height: 1; color: var(--ms-crimson-line); letter-spacing: -.03em; }
.ms-error__emoji { font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.ms-error h1 { margin-top: 12px; font-size: 1.45rem; font-weight: 800; }
.ms-error p { margin: 8px auto 28px; max-width: 420px; color: var(--ms-text-2); line-height: 2; }
.ms-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ms-error__rid { margin-top: 32px; font-size: .75rem; color: var(--ms-text-3); }
.ms-error__rid code { display: block; margin-top: 4px; direction: ltr; font-size: .75rem; }

/* ── پانویس ─────────────────────────────────────────────────────────── */
/* صفحه‌ی اول و خطا: یک خطِ آرام */
.ms-footer {
  flex-shrink: 0;
  padding: 22px 0 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  color: var(--ms-text-3);
  font-size: .8rem;
}
.ms-footer__inner { display: flex; justify-content: center; }

/* صفحه‌های برند: پانویسِ برند، قرینه‌ی سرصفحه‌ی منو */
.ms-bfoot {
  flex-shrink: 0;
  margin-top: 28px;
  padding: 40px 0 20px;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  border-radius: 32px 32px 0 0;
  color: #fff;
  text-align: center;
}
.ms-bfoot.is-dark { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.ms-bfoot__inner { display: flex; flex-direction: column; align-items: center; }
.ms-bfoot__brand { display: inline-block; line-height: 0; }
.ms-bfoot__logo { width: auto; height: auto; max-width: min(48vw, 210px); max-height: 100px; transition: transform .5s var(--ms-ease); }
.ms-bfoot__logo.is-mono { filter: brightness(0) invert(1) drop-shadow(0 8px 20px rgba(0, 0, 0, .25)); }
.ms-bfoot__logo:not(.is-mono) { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.ms-bfoot__brand:hover .ms-bfoot__logo { transform: scale(1.03); }
.ms-bfoot__name { font-size: 2.3rem; font-weight: 800; line-height: 1.3; }
.ms-bfoot__tag { margin-top: 8px; font-size: .95rem; opacity: .78; }

.ms-bfoot__facts { display: grid; gap: 10px; width: 100%; max-width: 620px; margin: 24px 0 0; }
@media (min-width: 640px) { .ms-bfoot__facts { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.ms-bfoot__facts > div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
}
.ms-bfoot__facts dt { font-size: .74rem; font-weight: 700; opacity: .66; margin-bottom: 2px; }
.ms-bfoot__facts dd { margin: 0; font-weight: 700; font-size: .95rem; line-height: 1.8; }

.ms-bfoot__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 620px; margin-top: 16px; }
.ms-fpill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding-inline: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff !important;
  font-size: .9rem;
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.ms-fpill small { font-size: .72rem; font-weight: 700; opacity: .7; }
.ms-fpill:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.ms-fpill--solid { background: #fff; border-color: #fff; color: var(--ms-crimson) !important; }
.ms-fpill--solid:hover { background: rgba(255, 255, 255, .9); transform: translateY(-1px); }
.ms-fpill--solid small { opacity: .6; }
.ms-bfoot.is-dark .ms-fpill--solid { color: var(--ms-ink) !important; }

.ms-bfoot__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8rem;
}
.ms-bfoot__base span { opacity: .6; }
.ms-bfoot__base a { font-weight: 700; opacity: .85; transition: opacity .2s ease; }
.ms-bfoot__base a:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════════
   سفارش آنلاین: برگه‌ی افزونه‌ها و اعلان‌ها
   ══════════════════════════════════════════════════════════════════════ */
.ms-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 14, 15, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.ms-modal.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.ms-modal__panel {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  border-radius: 24px 24px 0 0;
  background: var(--ms-surface);
  color: var(--ms-text);
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4);
  transform: translateY(24px);
  transition: transform .3s var(--ms-ease);
}
.ms-modal.is-open .ms-modal__panel { transform: none; }
@media (min-width: 600px) {
  .ms-modal { align-items: center; padding: 16px; }
  .ms-modal__panel { border-radius: 24px; }
}
.ms-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--ms-line); }
.ms-modal__head h2 { font-size: 1.1rem; font-weight: 800; }
.ms-modal__close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ms-surface-2); color: var(--ms-text-2); cursor: pointer; }
.ms-modal__close .ms-icon { width: 18px; height: 18px; }
.ms-modal__body { padding: 16px 20px; overflow-y: auto; }
.ms-modal__foot { padding: 12px 20px 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--ms-line); }
.ms-opt-group + .ms-opt-group { margin-top: 18px; }
.ms-opt-group__label { font-size: .84rem; font-weight: 800; color: var(--ms-text-2); margin-bottom: 8px; }
.ms-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ms-line); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.ms-opt + .ms-opt { margin-top: 8px; }
.ms-opt input { accent-color: var(--ms-crimson); width: 18px; height: 18px; margin: 0; }
.ms-opt__name { flex: 1; font-weight: 600; font-size: .92rem; }
.ms-opt__price { font-size: .82rem; color: var(--ms-text-3); font-weight: 600; }
.ms-opt:has(input:checked) { border-color: var(--ms-accent-line); background: var(--ms-accent-soft); }
.ms-modal__total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: .88rem; color: var(--ms-text-3); }
.ms-modal__total b { font-size: 1.15rem; color: var(--ms-accent); }
.ms-spinner { width: 28px; height: 28px; margin: 24px auto; border-radius: 50%; border: 3px solid var(--ms-line); border-top-color: var(--ms-crimson); animation: ms-spin .8s linear infinite; }
@keyframes ms-spin { to { transform: rotate(360deg); } }

.ms-toasts { position: fixed; z-index: 120; top: calc(var(--ms-topbar-h) + 8px); inset-inline: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.ms-toast { max-width: 420px; padding: 10px 16px; border-radius: 14px; background: var(--ms-text); color: var(--ms-bg); font-size: .88rem; font-weight: 700; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease; }
.ms-toast.is-shown { opacity: 1; transform: none; }
.ms-toast--error { background: var(--ms-accent-fill); color: #fff; }

/* ── حرکت — فقط اگر کاربر حرکت را کم نکرده باشد ───────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .ms-rise { animation: ms-rise .7s var(--ms-ease) both; }
  .ms-rise--2 { animation-delay: .08s; }
  .ms-rise--3 { animation-delay: .16s; }
  .ms-rise--4 { animation-delay: .24s; }
  @keyframes ms-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  /* کارت‌ها هنگامِ اسکرول — کلاسِ ms-reveal را فقط جاوااسکریپت می‌گذارد؛
     بدونِ آن هیچ چیزی پنهان نمی‌ماند */
  .ms-reveal .ms-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s var(--ms-ease), transform .55s var(--ms-ease), border-color .25s ease, box-shadow .3s ease;
  }
  .ms-reveal .ms-item.is-in { opacity: 1; transform: none; }
  .ms-reveal .ms-item--tile.is-in:hover { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
