/* ==========================================================================
   Razima — layout.css
   قاب سایت: نوار بالا، هدر (و قرص شناور)، مگامنوی یک‌سطحی، کشوها، برگه‌ی جستجو، نوار پایین موبایل،
   فوتر روشن، چیدمان متمرکز ورود، صفحه‌ی خطا و دکمه‌ی گفت‌وگو. حرکت فقط transform و opacity.
   ========================================================================== */

@media (max-width: 1023px) { :root { --header-h: 60px; } }

/* ============================ نوار بالا ============================ */
.topbar { background: var(--bg-soft); color: var(--fg-muted); font-size: var(--fs-xs); }
.topbar .waistband { height: 5px; opacity: .7; }
.topbar__inner { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.topbar__msgs { display: grid; flex: 1; min-width: 0; justify-items: center; }
.topbar__msg {
  grid-area: 1 / 1;
  max-width: 100%;
  overflow: hidden;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease), visibility 0s;
}
.topbar__msg:not(.is-active) { opacity: 0; transform: translateY(6px); visibility: hidden; transition-duration: var(--dur-2), var(--dur-2), 0s; transition-delay: 0s, 0s, var(--dur-2); }
.topbar__msg.is-leaving { transform: translateY(-6px); }
.topbar__msg a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.topbar__pause { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--fg-subtle); }
.topbar__pause:hover { background: var(--bg-tint); color: var(--fg); }
.topbar__pause[aria-pressed="true"] .icon { color: var(--accent); }
.topbar__links { display: flex; flex: none; gap: 18px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-muted); transition: color var(--dur-2); }
.topbar__links a:hover { color: var(--fg); }
@media (min-width: 1024px) { .topbar__msgs { padding-inline-start: 220px; } }
@media (max-width: 1023px) { .topbar__links { display: none; } }

/* ============================ هدر ============================ */
.site-header { position: relative; z-index: 90; height: var(--header-h); }
.hdr { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; height: var(--header-h); }
.hdr__burger { display: none; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 40px; max-width: 180px; object-fit: contain; }
.brand-logo--dark { display: none; }
:root[data-theme="dark"] .brand-logo--light { display: none; }
:root[data-theme="dark"] .brand-logo--dark { display: block; }
.hdr__actions { display: flex; align-items: center; gap: 2px; }
.hdr__cart, .tabbar__icon { position: relative; }
.count {
  position: absolute;
  top: 3px;
  inset-inline-end: 1px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: .6875rem;
  font-weight: 750;
  line-height: 1;
}
.count.is-bumped { animation: rz-bump var(--dur-3) var(--ease); }
@keyframes rz-bump { 50% { transform: scale(1.25); } }

/* قرص شناور پس از اسکرول (Sabalan): نوار ثابت می‌شود و از بالا می‌لغزد؛ جای خود هدر محفوظ است */
.site-header.is-pinned .hdr {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  max-width: calc(var(--container) - 16px);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--sh-2);
  animation: rz-pin var(--dur-3) var(--ease-out);
}
.site-header.is-pinned { --bar-h: 58px; }
.site-header.is-pinned .hdr__inner { height: var(--bar-h); padding-inline: 22px 12px; }
.site-header.is-pinned .brand img { height: 34px; }
@keyframes rz-pin { from { opacity: 0; transform: translateY(-120%); } }

/* ---------- منوی اصلی و مگامنو ---------- */
.nav { justify-self: center; height: 100%; }
.nav__list { display: flex; height: 100%; }
.nav__item { display: flex; align-items: center; }
.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--bar-h, var(--header-h));
  padding-inline: 12px;
  color: var(--fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--dur-2);
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--tone); }
.nav__link--sale { color: var(--accent); }
/* چوب‌لباسی کوچک زیر خط باز یا جاری */
.nav__link .hanger { position: absolute; bottom: 9px; left: 50%; width: 22px; height: 11px; margin-left: -11px; opacity: 0; transform: translateY(-4px); transition: opacity var(--dur-2), transform var(--dur-2) var(--ease), background-color var(--dur-2); }
.nav__link:hover .hanger, .nav__item.is-open .hanger, .nav__link[aria-current="page"] .hanger { opacity: 1; transform: none; background: var(--tone); }
.nav__link--sale .hanger { --tone: var(--accent); }
.nav__more { display: grid; place-items: center; width: 22px; height: 22px; margin-inline-start: -10px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--fg-subtle); }
.nav__more .icon { transition: transform var(--dur-2) var(--ease); }
.nav__item.is-open .nav__more .icon { transform: rotate(180deg); }

.mega {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  padding: 10px 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}
.nav__item.is-open > .mega,
html:not(.js) .nav__item:hover > .mega,
html:not(.js) .nav__item:focus-within > .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.mega__panel {
  display: grid;
  grid-template-columns: auto 250px;
  gap: 24px;
  width: max-content;
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-3);
}
.mega__tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; align-content: start; gap: 14px; }
@media (max-width: 1279px) { .mega__tiles { grid-auto-columns: 122px; } }
.mega__tile { display: grid; gap: 8px; color: var(--fg); font-size: var(--fs-sm); font-weight: 600; text-align: center; }
.mega__img { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--tint); color: var(--tone); }
.mega__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease); }
.mega__img .icon { width: 40px; height: 40px; stroke-width: 1.3; transition: transform var(--dur-3) var(--ease); }
.mega__tile:hover img, .mega__tile:hover .mega__img .icon { transform: scale(1.04); }
.mega__tile:hover .mega__name { color: var(--tone); }
.mega__tile--all .mega__img { border: 1px dashed var(--line-strong); background: var(--surface); }
.mega__promo { position: relative; display: flex; align-items: flex-end; min-height: 260px; overflow: hidden; border-radius: var(--r-lg); background: var(--tint); }
.mega__promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega__promo-copy { position: relative; display: grid; gap: 2px; width: 100%; margin: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-glass); }
.mega__promo-copy b { font-size: var(--fs-lg); font-weight: 750; }
.mega__promo-copy small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--fg-muted); font-size: var(--fs-xs); line-height: 1.8; }

/* ---------- حالت روشن / تیره ---------- */
.theme-toggle { display: inline-grid; }
.theme-toggle[aria-pressed="true"] { color: var(--fg); }
.theme-toggle .icon { grid-area: 1 / 1; transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.theme-toggle__moon { opacity: 0; transform: rotate(-70deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(70deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; }

/* ---------- منوی بازشوی حساب ---------- */
.pop { position: relative; }
.pop__panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  z-index: 95;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}
.pop__panel--end { inset-inline-start: auto; inset-inline-end: 0; }
.pop.is-open .pop__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pop__title { padding: 6px 12px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--fg-subtle); font-size: var(--fs-xs); font-weight: 650; }
.menu-list a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; transition: background-color var(--dur-2); }
.menu-list a:hover { background: var(--bg-soft); }
.menu-list .icon { color: var(--fg-subtle); }

@media (max-width: 1023px) {
  .nav, .hdr__theme, .hdr__account { display: none; }
  .hdr__burger { display: inline-grid; }
  .hdr__inner { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .brand { justify-self: center; }
  .brand img { height: 34px; }
  .hdr__actions { justify-self: end; }
  .site-header.is-pinned .hdr { left: 8px; right: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); }
  .site-header.is-pinned { --bar-h: 54px; }
  .site-header.is-pinned .hdr__inner { padding-inline: 6px; }
  .site-header.is-pinned .brand img { height: 30px; }
}

/* ============================ کشوها ============================ */
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: min(400px, 92vw);
  background: var(--surface);
  box-shadow: var(--sh-3);
  visibility: hidden;
  transition: transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
}
.drawer--start { inset-inline-start: 0; transform: translateX(105%); }
.drawer--end { inset-inline-end: 0; transform: translateX(-105%); }
[dir="ltr"] .drawer--start { transform: translateX(-105%); }
[dir="ltr"] .drawer--end { transform: translateX(105%); }
.drawer--top { inset-inline: 0; bottom: auto; width: auto; max-height: 92vh; border-radius: 0 0 var(--r-xl) var(--r-xl); transform: translateY(-105%); }
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.drawer__head .brand img { height: 34px; }
.drawer__title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); font-weight: 750; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px; }
.drawer__foot { display: grid; gap: 10px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.drawer__row { display: flex; align-items: center; gap: 8px; }
.drawer__row .btn { flex: 1; }
.drawer__phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--fg-muted); font-size: var(--fs-sm); font-weight: 650; }
.drawer-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(20, 21, 25, .34); opacity: 0; transition: opacity var(--dur-3) var(--ease); }
.drawer-scrim.is-open { opacity: 1; }
.has-drawer { overflow: hidden; }

/* منوی موبایل: سه در تصویری، خطوط با آکاردئون یک‌سطحی، پیوندها */
.drawer-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.drawer-door { display: grid; gap: 6px; color: var(--fg); font-size: var(--fs-sm); font-weight: 650; text-align: center; }
.drawer-door img { width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; background: var(--tint); object-fit: cover; }
.drawer-lines > li { border-bottom: 1px solid var(--line); }
.drawer-lines summary, .drawer-lines > li > a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; font-weight: 650; cursor: pointer; list-style: none; }
.drawer-lines summary::-webkit-details-marker { display: none; }
.drawer-lines__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--tint); color: var(--tone); }
.drawer-lines__name { flex: 1; }
.drawer-lines__chev { color: var(--fg-subtle); transition: transform var(--dur-2) var(--ease); }
.drawer-lines details[open] .drawer-lines__chev { transform: rotate(180deg); }
.drawer-lines details ul { display: grid; gap: 2px; margin: 0; padding: 0 50px 12px 0; list-style: none; }
[dir="ltr"] .drawer-lines details ul { padding: 0 0 12px 50px; }
.drawer-lines details a { display: block; padding: 6px 0; color: var(--fg-muted); font-size: var(--fs-sm); }
.drawer-lines details a:hover { color: var(--tone); }
.drawer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin-top: 14px; }
.drawer-links a { display: block; padding: 7px 2px; color: var(--fg-muted); font-size: var(--fs-sm); font-weight: 600; }
.drawer-links a.is-sale { color: var(--accent); }

/* برگه‌ی جستجو (کشوی بالا) */
.search-sheet { display: grid; gap: 14px; padding-block: 18px 22px; }
.search-sheet__form { display: flex; align-items: center; gap: 8px; }
.search-sheet__hint { display: grid; gap: 8px; }
.chip[data-line] .icon { color: var(--tone); }
.chip--sale, .chip--sale .icon { color: var(--accent); }

/* سبد کشویی (فاز ۷ کامل می‌شود) */
.minicart { display: flex; flex-direction: column; }
.minicart__loading { display: grid; gap: 12px; }
.minicart__empty { display: grid; justify-items: center; gap: 10px; padding: 40px 10px; text-align: center; }
.minicart__empty-icon { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 6px; border-radius: 50%; background: var(--bg-soft); color: var(--brand); }
.minicart__empty-icon .icon { width: 34px; height: 34px; stroke-width: 1.3; }
.minicart__lines { display: grid; gap: 12px; }
.minicart__line { display: grid; grid-template-columns: 64px 1fr auto; align-items: start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); transition: opacity var(--dur-2); }
.minicart__line.is-busy { opacity: .45; pointer-events: none; }
.minicart__pack { display: flex; align-items: center; gap: 6px; color: var(--fg-muted); font-size: var(--fs-xs); }
.minicart__pack .icon { color: var(--tone, var(--primary)); }
.minicart__thumb { display: grid; place-items: center; width: 64px; height: 80px; overflow: hidden; border-radius: var(--r-sm); background: var(--grad-media); }
.minicart__thumb img { width: 100%; height: 100%; object-fit: cover; }
.minicart__info { display: grid; gap: 2px; min-width: 0; }
.minicart__title { font-size: var(--fs-sm); font-weight: 650; line-height: 1.6; }
.minicart__title:hover { color: var(--brand); }
.minicart__variant, .minicart__price { color: var(--fg-muted); font-size: var(--fs-xs); }
.minicart__foot { display: grid; gap: 12px; margin-top: auto; padding-top: 18px; }
.minicart__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 650; }
.minicart__total strong { font-size: var(--fs-xl); font-weight: 800; }
.minicart__actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.minicart__actions [aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ============================ نوار پایین موبایل ============================ */
.tabbar { display: none; }
@media (max-width: 1023px) {
  :root { --tabbar-space: 64px; }
  body:has(.tabbar) { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 100;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: transform var(--dur-2) var(--ease);
  }
  .tabbar.is-hidden { transform: translateY(110%); }
}
.tabbar__item { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 0 2px; border: 0; background: none; color: var(--fg-muted); font-size: .6875rem; font-weight: 600; line-height: 1.5; }
.tabbar__item .icon { width: 23px; height: 23px; }
.tabbar__item[aria-current="page"], .tabbar__item[aria-expanded="true"] { color: var(--fg); }
.tabbar__item[aria-current="page"]::before { content: ""; position: absolute; top: -6px; width: 18px; height: 6px; background: var(--accent); -webkit-mask: var(--zz-mask); mask: var(--zz-mask); -webkit-mask-size: 9px 6px; mask-size: 9px 6px; }
.tabbar__icon .count { top: -6px; inset-inline-end: -10px; }

/* ============================ پیام‌ها و سربرگ صفحه ============================ */
.page-alerts { display: grid; gap: 10px; padding-top: 20px; }
.alert__body { display: grid; flex: 1; }
.alert__close { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .7; }
.alert__close:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.page-head { padding-block: clamp(24px, 4vw, 44px) clamp(16px, 3vw, 28px); }
.page-head__inner { display: grid; gap: 10px; }
.page-head h1 { font-size: var(--fs-3xl); }
.page-head p { color: var(--fg-muted); max-width: 70ch; }

/* ============================ فوتر روشن ============================ */
.site-footer { margin-top: var(--section-y); background: var(--bg-soft); color: var(--fg-muted); font-size: var(--fs-sm); }
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 720px; }
.footer-news { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-block: 40px 30px; }
.footer-news__copy { display: grid; gap: 2px; }
.footer-news h2 { font-size: var(--fs-xl); }
.footer-news__form { display: flex; flex: 1 1 320px; gap: 8px; max-width: 460px; }
.footer-news__form .input { min-height: 48px; border-radius: var(--r-pill); }
.footer-stitch { height: 8px; }
.footer-main { display: grid; gap: 32px 24px; padding-block: 34px 40px; }
@media (min-width: 680px) { .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer-main { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }
.footer-brand { display: grid; align-content: start; gap: 14px; }
.footer-brand__logo img { width: auto; height: 40px; }
.footer-brand__text { max-width: 46ch; line-height: 2; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.8; }
.footer-contact .icon { margin-top: 3px; width: 18px; height: 18px; color: var(--brand); }
.footer-contact small { display: block; color: var(--fg-subtle); font-size: var(--fs-2xs); }
.footer-contact a { color: var(--fg); }
.footer-col h2 { margin-bottom: 12px; color: var(--fg); font-size: var(--fs-sm); font-weight: 750; }
.footer-col ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.footer-col a { display: inline-block; padding-block: 3px; color: var(--fg-muted); transition: color var(--dur-2), transform var(--dur-2) var(--ease); }
.footer-col a:hover { color: var(--fg); transform: translateX(-3px); }
[dir="ltr"] .footer-col a:hover { transform: translateX(3px); }
.footer-col a.is-sale { color: var(--accent); }
.footer-badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.footer-badges img { max-height: 96px; width: auto; border-radius: var(--r-sm); background: #fff; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.footer-copy { color: var(--fg-subtle); font-size: var(--fs-xs); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--fg-muted); transition: color var(--dur-2), border-color var(--dur-2), transform var(--dur-2) var(--ease); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-social:hover { border-color: var(--fg); color: var(--fg); transform: translateY(-2px); }

/* بازگشت به بالا (فقط دسکتاپ؛ موبایل نوار پایین دارد) */
.to-top { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 20px; z-index: 95; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--fg); box-shadow: var(--sh-1); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--dur-2), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { transform: translateY(-2px); }
@media (max-width: 1023px) { .to-top { display: none; } }

/* ============================ چیدمان متمرکز (ورود) ============================ */
.focus-layout { min-height: 100vh; display: grid; background: var(--bg); }
@media (min-width: 960px) { .focus-layout { grid-template-columns: minmax(360px, .85fr) 1.15fr; } }
.focus-aside { display: none; position: relative; overflow: hidden; padding: clamp(40px, 5vw, 64px); background: var(--bg-soft); }
@media (min-width: 960px) { .focus-aside { display: grid; align-content: space-between; gap: 40px; } }
.focus-aside__copy { display: grid; justify-items: start; gap: 10px; max-width: 420px; }
.focus-aside__mark { width: 64px; height: auto; margin-bottom: 8px; }
.focus-aside h2 { font-size: var(--fs-3xl); }
.focus-aside__list { display: grid; gap: 12px; margin-top: 12px; color: var(--fg-muted); }
.focus-aside__list li { display: flex; align-items: center; gap: 10px; }
.focus-aside__list .icon { color: var(--brand); }
.focus-aside__art { justify-self: center; width: min(100%, 360px); color: var(--line-strong); }
.focus-aside__tag { fill: var(--surface); }
.focus-aside__zz { stroke: var(--accent); }
.focus-main { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 28px; padding: 24px var(--gutter) 48px; }
@media (min-width: 960px) { .focus-main { align-content: center; } }
.focus-main__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; width: min(440px, 100%); }
.focus-main__top .brand img { height: 36px; }
.focus-main__actions { display: flex; align-items: center; gap: 4px; }
.focus-card { display: grid; gap: 20px; width: min(440px, 100%); padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-2); }
.focus-card__head { display: grid; gap: 6px; }
.focus-card__head h1 { font-size: var(--fs-2xl); }
.focus-card__head h1::after { content: ""; display: block; width: 40px; height: 8px; margin-top: 10px; background: var(--brand); -webkit-mask: var(--zz-mask); mask: var(--zz-mask); }
.focus-card__head p { color: var(--fg-muted); font-size: var(--fs-sm); }
.focus-card form { display: grid; gap: 16px; }
.focus-note { color: var(--fg-subtle); font-size: var(--fs-xs); text-align: center; }
.focus-note a { color: var(--brand); font-weight: 650; }
.focus-main .page-alerts { width: min(440px, 100%); padding: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-pill); background: var(--bg-soft); }
.auth-tabs label { display: grid; place-items: center; min-height: 40px; border-radius: var(--r-pill); color: var(--fg-muted); font-size: var(--fs-sm); font-weight: 650; cursor: pointer; transition: background-color var(--dur-2), color var(--dur-2), box-shadow var(--dur-2); }
#auth-tab-otp:checked ~ .auth-tabs label[for="auth-tab-otp"],
#auth-tab-staff:checked ~ .auth-tabs label[for="auth-tab-staff"] { background: var(--surface); color: var(--fg); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
#auth-tab-otp:focus-visible ~ .auth-tabs label[for="auth-tab-otp"],
#auth-tab-staff:focus-visible ~ .auth-tabs label[for="auth-tab-staff"] { outline: 2px solid var(--focus); outline-offset: 2px; }
.auth-pane { display: none; }
#auth-tab-otp:checked ~ .auth-pane--otp, #auth-tab-staff:checked ~ .auth-pane--staff { display: grid; gap: 16px; animation: rz-tab-in var(--dur-3) var(--ease); }
.otp-input { height: 60px; font-family: var(--font-code); font-size: 1.6rem; font-weight: 700; letter-spacing: .6em; text-align: center; direction: ltr; }
.otp-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); }
.otp-meta a, .otp-meta button { color: var(--brand); font-weight: 650; }
.otp-meta button { border: 0; background: none; padding: 0; cursor: pointer; }
.otp-meta button:disabled { color: var(--fg-subtle); cursor: default; }

/* ============================ حالت خالی و صفحه‌ی خطا ============================ */
.empty-state { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; padding-block: clamp(40px, 8vw, 96px); text-align: center; }
.empty-state__art { position: relative; width: min(240px, 70vw); color: var(--line-strong); animation: rz-float 1.2s var(--ease) .3s 1 both; }
.empty-state__art svg { width: 100%; height: auto; }
.empty-state__tag { position: absolute; top: 77%; left: 70%; translate: -50% 0; transform-origin: 50% 0; padding: 4px 14px; padding-inline-start: 24px; font-size: var(--fs-md); font-weight: 800; }
.empty-state h1 { font-size: var(--fs-2xl); }
.empty-state p { max-width: 52ch; color: var(--fg-muted); }
.empty-state .search-pill { width: min(520px, 100%); }
.empty-state__chips, .empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ============================ پیشنهاد جستجو ============================ */
.has-suggest { position: relative; }
.suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 95; display: grid; gap: 2px; max-height: min(70vh, 480px); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-3); animation: rz-tab-in var(--dur-2) var(--ease); }
.drawer--top .suggest { position: static; margin-top: 8px; box-shadow: none; }
.suggest__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.suggest__cats .chip { min-height: 32px; padding: 4px 12px; font-size: var(--fs-xs); }
.suggest__cats .chip.is-active { border-color: var(--fg); }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); transition: background-color var(--dur-1); }
.suggest__item:hover, .suggest__item.is-active { background: var(--bg-soft); }
.suggest__item img { flex: none; width: 44px; height: 55px; object-fit: cover; border-radius: var(--r-xs); background: var(--grad-media); }
.suggest__body { display: grid; flex: 1; min-width: 0; line-height: 1.5; }
.suggest__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); font-weight: 650; }
.suggest__model { color: var(--fg-subtle); font-size: var(--fs-2xs); text-align: start; }
.suggest__price { flex: none; color: var(--fg); font-size: var(--fs-xs); font-weight: 750; }
.suggest__all { display: block; margin-top: 4px; padding: 10px; border-radius: var(--r-sm); background: var(--bg-soft); color: var(--fg); font-size: var(--fs-sm); font-weight: 700; text-align: center; }
.suggest__all.is-active, .suggest__all:hover { background: var(--primary); color: var(--on-primary); }
.suggest__empty { padding: 14px; color: var(--fg-muted); font-size: var(--fs-sm); text-align: center; }

/* ============================ دکمه‌ی گفت‌وگو ============================ */
.chat-fab { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 20px; z-index: 96; }
@media (max-width: 1023px) { .chat-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px; } }
.chat-fab__toggle { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--fg); font-size: var(--fs-sm); font-weight: 650; box-shadow: var(--sh-2); transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2); }
[dir="rtl"] .chat-fab__toggle { padding: 0 14px 0 18px; }
.chat-fab__toggle .icon { width: 22px; height: 22px; color: var(--brand); }
.chat-fab__toggle:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
@media (max-width: 1023px) { .chat-fab__toggle { width: 48px; padding: 0 !important; justify-content: center; } .chat-fab__label { display: none; } }
.chat-fab__panel { position: absolute; bottom: calc(100% + 10px); inset-inline-end: 0; width: min(320px, calc(100vw - 28px)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transform: translateY(8px); transform-origin: bottom; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2); }
.chat-fab.is-open .chat-fab__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.chat-fab__head { display: grid; gap: 2px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.chat-fab__head h2 { font-size: var(--fs-md); }
.chat-fab__head p { color: var(--fg-muted); font-size: var(--fs-xs); }
.chat-fab__hours { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.chat-fab__body { display: grid; gap: 2px; max-height: min(52vh, 420px); overflow-y: auto; padding: 8px 8px 10px; }
.chat-fab__group { margin: 6px 8px 2px; color: var(--fg-subtle); font-size: var(--fs-2xs); font-weight: 700; }
.chat-fab__list { display: grid; gap: 1px; }
.chat-fab__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); transition: background-color var(--dur-2); }
.chat-fab__item:hover, .chat-fab__item:focus-visible { background: var(--bg-soft); }
.chat-fab__name { flex: 1; min-width: 0; overflow: hidden; font-size: var(--fs-xs); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.chat-fab__num { flex: none; color: var(--fg-muted); font-size: var(--fs-xs); font-weight: 650; }
.chat-fab__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--bg-soft); color: var(--brand); }
.chat-fab__icon .icon { width: 16px; height: 16px; }
.chat-fab__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 2px 4px 0; }
.chat-fab__chip { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color var(--dur-2), background-color var(--dur-2); }
.chat-fab__chip:hover, .chat-fab__chip:focus-visible { border-color: var(--line-strong); background: var(--bg-soft); }
.chat-fab__chip .chat-fab__icon { width: 26px; height: 26px; border-radius: 8px; }
.chat-fab__chip-text { min-width: 0; overflow: hidden; font-size: var(--fs-2xs); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
