/* ==========================================================================
   SiteSaziran — کتابخانه سکشن‌های مشترک قالب‌های موتور ۲
   فقط توکن‌های --tpl-* (ThemeTokenResolver). هر قالب پس از این فایل CSS خودش را بار می‌کند
   و سکشن‌های امضادارش را بازطراحی می‌کند؛ بقیه با همین قواعد و هویت توکنی قالب نمایش داده می‌شوند.
   ========================================================================== */

/* ---------- پل Bootstrap ← توکن‌ها ---------- */
:root {
  --bs-body-font-family: var(--tpl-font-body);
  --bs-body-bg: var(--tpl-color-bg);
  --bs-body-color: var(--tpl-color-text);
  --bs-secondary-color: var(--tpl-color-text-muted);
  --bs-border-color: var(--tpl-color-border);
  --bs-link-color: var(--tpl-color-primary-text);
  --bs-link-hover-color: var(--tpl-color-primary-text);
  --bs-border-radius: var(--tpl-radius-md);
  --bs-border-radius-lg: var(--tpl-radius-lg);
  --bs-border-radius-sm: var(--tpl-radius-sm);
  --bs-heading-color: var(--tpl-color-text);
  --bs-emphasis-color: var(--tpl-color-text);
  --bs-tertiary-bg: var(--tpl-color-surface);
  --bs-secondary-bg: var(--tpl-color-surface);
}
.btn-primary {
  --bs-btn-bg: var(--tpl-color-primary); --bs-btn-border-color: var(--tpl-color-primary); --bs-btn-color: var(--tpl-color-on-primary);
  --bs-btn-hover-bg: var(--tpl-color-primary-hover); --bs-btn-hover-border-color: var(--tpl-color-primary-hover); --bs-btn-hover-color: var(--tpl-color-on-primary);
  --bs-btn-active-bg: var(--tpl-color-primary-hover); --bs-btn-active-color: var(--tpl-color-on-primary);
}
.card { --bs-card-bg: var(--tpl-color-surface); --bs-card-border-color: var(--tpl-color-border); }
.text-muted { color: var(--tpl-color-text-muted) !important; }

/* ---------- پایه ---------- */
body {
  margin: 0;
  background: var(--tpl-color-bg);
  color: var(--tpl-color-text);
  font-family: var(--tpl-font-body);
  font-size: var(--tpl-text-base);
  line-height: var(--tpl-leading-body);
  -webkit-font-smoothing: antialiased;
}
:where(h1, h2, h3, h4, h5) { font-family: var(--tpl-font-heading); line-height: var(--tpl-leading-heading); color: inherit; margin: 0; }
:where(p) { margin: 0; }
:where(a) { color: var(--tpl-color-primary-text); text-underline-offset: 0.25em; }
:where(img) { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--tpl-focus-ring); outline-offset: 3px; border-radius: var(--tpl-radius-sm); }
[hidden] { display: none !important; }
#main:focus { outline: none; }

.tpl-skip {
  position: absolute; inset-inline-start: var(--tpl-space-4); inset-block-start: -100px; z-index: 100;
  padding: var(--tpl-space-3) var(--tpl-space-5); border-radius: var(--tpl-radius-md);
  background: var(--tpl-color-primary); color: var(--tpl-color-on-primary) !important;
}
.tpl-skip:focus { inset-block-start: var(--tpl-space-3); }

.tpl-container { width: 100%; max-width: var(--tpl-container-max); margin-inline: auto; padding-inline: var(--tpl-container-pad); }
.tpl-narrow { max-width: 820px; }
.tpl-center { text-align: center; }
.tpl-center.tpl-section__head { margin-inline: auto; }
.tpl-justify { text-align: justify; }
.tpl-mb { margin-block-end: var(--tpl-space-6) !important; }
.tpl-preline { white-space: pre-line; }

.tpl-h1 { font-size: var(--tpl-text-2xl); font-weight: var(--tpl-heading-weight); letter-spacing: var(--tpl-heading-tracking); }
.tpl-h2 { font-size: var(--tpl-text-2xl); font-weight: var(--tpl-heading-weight); letter-spacing: var(--tpl-heading-tracking); text-wrap: balance; }
.tpl-h3 { font-size: var(--tpl-text-xl); font-weight: 700; }
.tpl-h4 { font-size: var(--tpl-text-lg); font-weight: 700; }
.tpl-lead { color: var(--tpl-color-text-muted); font-size: var(--tpl-text-lg); max-inline-size: 60ch; }
.tpl-center .tpl-lead, .tpl-center.tpl-lead { margin-inline: auto; }
.tpl-meta { color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); }
.tpl-note { margin-block-start: var(--tpl-space-6); color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); }

/* ---------- سکشن ---------- */
.tpl-section { padding-block: var(--tpl-section-y); }
.tpl-section--tight { padding-block: calc(var(--tpl-section-y) * 0.55); }
.tpl-section--surface { background: var(--tpl-color-surface); }
.tpl-section__head { display: grid; gap: var(--tpl-space-3); margin-block-end: var(--tpl-space-10); max-inline-size: 62ch; }
.tpl-section__head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--tpl-space-4); max-inline-size: none; }
.tpl-link-more { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 700; white-space: nowrap; text-decoration-thickness: 2px; text-underline-offset: 6px; color: var(--tpl-color-primary-text); }

/* ---------- دکمه ---------- */
.tpl-actions { display: flex; flex-wrap: wrap; gap: var(--tpl-space-3); margin-block-start: var(--tpl-space-8); }
.tpl-actions--block { margin-block: var(--tpl-space-6); }
.tpl-justify-start { justify-content: flex-start; }
.tpl-justify-center { justify-content: center; }
.tpl-justify-end { justify-content: flex-end; }
.tpl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--tpl-space-2);
  min-block-size: 48px; padding: var(--tpl-space-3) var(--tpl-space-6);
  border: var(--tpl-border-width) solid transparent; border-radius: var(--tpl-btn-radius);
  font: inherit; font-weight: 700; font-size: var(--tpl-text-sm); line-height: 1.4;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--tpl-duration-fast) var(--tpl-ease), color var(--tpl-duration-fast) var(--tpl-ease), border-color var(--tpl-duration-fast) var(--tpl-ease);
}
.tpl-btn--sm { min-block-size: 44px; padding-inline: var(--tpl-space-4); }
.tpl-btn--lg { min-block-size: 56px; padding-inline: var(--tpl-space-8); font-size: var(--tpl-text-base); }
.tpl-btn--block { inline-size: 100%; }
.tpl-btn--primary { background: var(--tpl-color-primary); color: var(--tpl-color-on-primary); }
.tpl-btn--primary:hover { background: var(--tpl-color-primary-hover); color: var(--tpl-color-on-primary); }
.tpl-btn--accent { background: var(--tpl-color-accent); color: var(--tpl-color-on-accent); }
.tpl-btn--accent:hover { filter: brightness(0.95); color: var(--tpl-color-on-accent); }
.tpl-btn--ghost { border-color: var(--tpl-color-border-strong); color: var(--tpl-color-text); background: transparent; }
.tpl-btn--ghost:hover { border-color: var(--tpl-color-text); color: var(--tpl-color-text); }
.tpl-btn--on-primary { background: var(--tpl-color-on-primary); color: var(--tpl-color-primary); }
.tpl-btn--on-primary:hover { background: var(--tpl-color-primary-soft); color: var(--tpl-color-primary); }
.tpl-btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* ---------- Hero پایه ---------- */
.tpl-hero { padding-block: var(--tpl-section-y); background: var(--tpl-color-surface); }
.tpl-hero__grid { display: grid; gap: var(--tpl-space-10); align-items: center; }
.tpl-product__short { margin: 0; font-size: var(--tpl-text-sm); color: var(--tpl-color-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* لوگوی مشتریان (_logos): شبکه یا نوار روان */
.tpl-logos__title { margin: 0 0 var(--tpl-space-6); text-align: center; font-size: var(--tpl-text-sm); font-weight: 600; color: var(--tpl-color-text-muted); }
.tpl-logos__viewport { display: flex; overflow: hidden; }
.tpl-logos__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--tpl-space-6) var(--tpl-space-10); margin: 0; padding: 0; list-style: none; inline-size: 100%; }
.tpl-logos__item { display: flex; align-items: center; justify-content: center; min-block-size: 2.75rem; color: var(--tpl-color-text-muted); font-family: var(--tpl-font-heading); font-weight: 700; font-size: var(--tpl-text-lg); white-space: nowrap; }
.tpl-logos__item img { max-block-size: 2.75rem; max-inline-size: 9rem; inline-size: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.tpl-logos__link { color: inherit; text-decoration: none; display: inline-flex; }
.tpl-logos__link:hover img, .tpl-logos__link:focus-visible img { filter: none; opacity: 1; }
.tpl-logos--marquee .tpl-logos__viewport { mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); }
.tpl-logos--marquee .tpl-logos__list { flex-wrap: nowrap; justify-content: flex-start; inline-size: max-content; flex-shrink: 0; padding-inline-end: var(--tpl-space-10); animation: tpl-logos-run 32s linear infinite; }
.tpl-logos--marquee .tpl-logos__viewport:hover .tpl-logos__list { animation-play-state: paused; }
@keyframes tpl-logos-run { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .tpl-logos--marquee .tpl-logos__list { animation: none; flex-wrap: wrap; justify-content: center; inline-size: 100%; padding: 0; }
  .tpl-logos--marquee .tpl-logos__list[aria-hidden] { display: none; }
  .tpl-logos--marquee .tpl-logos__viewport { mask-image: none; }
}

/* ویدئوی پس‌زمینه Hero (Tpl/_HeroVideo): پس از شروع پخش ظاهر می‌شود */
.tpl-hero-video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.tpl-hero-video.is-playing, .tpl-hero-video.is-static[poster] { opacity: 1; }
/* بدون اسکریپت (پیش‌نمایش پنل) Chromium کنترل‌های پخش را روی ویدئوی پس‌زمینه نشان می‌دهد. */
.tpl-hero-video::-webkit-media-controls, .tpl-hero-video::-webkit-media-controls-enclosure { display: none !important; }
.tpl-hero--video { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--tpl-color-text); min-block-size: min(88vh, 52rem); display: grid; align-items: center; }
.tpl-hero--video .tpl-hero__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgb(0 0 0 / .35), rgb(0 0 0 / .55)); }
.tpl-hero--video .tpl-container { position: relative; z-index: 2; }
.tpl-hero--video .tpl-hero__title, .tpl-hero--video .tpl-hero__lead { color: #fff; }
@media (prefers-reduced-motion: reduce) { .tpl-hero-video { transition: none; } }
.tpl-hero--center .tpl-hero__copy { text-align: center; margin-inline: auto; max-inline-size: 48rem; }
.tpl-hero--center .tpl-actions { justify-content: center; }
.tpl-hero--center .tpl-hero__lead { margin-inline: auto; }
@media (min-width: 992px) { .tpl-hero--split .tpl-hero__grid { grid-template-columns: 1.1fr 1fr; } }
.tpl-hero__title { font-size: var(--tpl-text-display); font-weight: var(--tpl-heading-weight); letter-spacing: var(--tpl-heading-tracking); line-height: 1.2; text-wrap: balance; }
.tpl-hero__lead { margin-block-start: var(--tpl-space-5); font-size: var(--tpl-text-lg); color: var(--tpl-color-text-muted); max-inline-size: 52ch; }
.tpl-hero__media { margin: 0; }
.tpl-hero__media img { inline-size: 100%; aspect-ratio: 8 / 7; object-fit: cover; border-radius: var(--tpl-radius-lg); }

/* ---------- متن غنی و تصویر ---------- */
.tpl-heading { padding-block: var(--tpl-space-8) var(--tpl-space-2); }
.tpl-prose { max-inline-size: var(--tpl-measure); font-size: var(--tpl-text-base); }
.tpl-center.tpl-prose, .tpl-center .tpl-prose { margin-inline: auto; }
.tpl-prose > * + * { margin-block-start: var(--tpl-space-4); }
.tpl-prose :is(h2, h3, h4) { margin-block-start: var(--tpl-space-8); font-weight: 700; }
.tpl-prose h2 { font-size: var(--tpl-text-xl); }
.tpl-prose h3 { font-size: var(--tpl-text-lg); }
.tpl-prose :is(ul, ol) { padding-inline-start: var(--tpl-space-6); }
.tpl-prose li + li { margin-block-start: var(--tpl-space-2); }
.tpl-prose blockquote { margin-inline: 0; padding-inline-start: var(--tpl-space-5); border-inline-start: 3px solid var(--tpl-color-accent-text); color: var(--tpl-color-text-muted); }
.tpl-prose img { border-radius: var(--tpl-radius-md); }
.tpl-prose table { inline-size: 100%; border-collapse: collapse; }
.tpl-prose :is(th, td) { padding: var(--tpl-space-2) var(--tpl-space-3); border-block-end: 1px solid var(--tpl-color-border); text-align: start; }
.tpl-prose code { padding: 0 var(--tpl-space-1); border-radius: var(--tpl-radius-sm); background: var(--tpl-color-surface); }
.tpl-figure { margin-block: 0; }
.tpl-figure img { inline-size: 100%; border-radius: var(--tpl-radius-lg); }
.tpl-figure--narrow { max-inline-size: 760px; }
.tpl-figure figcaption { margin-block-start: var(--tpl-space-3); color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); text-align: center; }
.tpl-divider { margin: var(--tpl-space-6) 0; border: 0; border-block-start: 1px solid var(--tpl-color-border); opacity: 1; }
.tpl-spacer--sm { block-size: var(--tpl-space-6); }
.tpl-spacer--md { block-size: var(--tpl-space-12); }
.tpl-spacer--lg { block-size: calc(var(--tpl-space-12) * 2); }

/* ---------- شبکه و کارت ---------- */
.tpl-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tpl-space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .tpl-grid--2, .tpl-grid--3, .tpl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) {
  .tpl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tpl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tpl-grid--products { gap: var(--tpl-space-6) var(--tpl-space-5); }
@media (max-width: 639.98px) { .tpl-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tpl-space-4); } }
.tpl-card {
  position: relative; display: grid; gap: var(--tpl-space-3); align-content: start; block-size: 100%;
  padding: var(--tpl-space-6); background: var(--tpl-color-bg);
  border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg);
}
.tpl-section--surface .tpl-card { background: var(--tpl-color-bg); }
.tpl-card__title { font-size: var(--tpl-text-lg); font-weight: 700; }
.tpl-card__text { color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); }
.tpl-icon {
  display: grid; place-items: center; inline-size: 48px; block-size: 48px;
  border-radius: var(--tpl-radius-md); background: var(--tpl-color-primary-soft); color: var(--tpl-color-primary-text); font-size: 1.3rem;
}
.tpl-stretched::after { content: ""; position: absolute; inset: 0; }
.tpl-stretched { text-decoration: none; color: inherit; }
.tpl-stretched:focus-visible { outline: none; }
.tpl-stretched:focus-visible::after { outline: 3px solid var(--tpl-focus-ring); outline-offset: 2px; border-radius: var(--tpl-radius-lg); }

/* ---------- گالری ---------- */
.tpl-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tpl-space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .tpl-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tpl-gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tpl-gallery--masonry { display: block; columns: 2; column-gap: var(--tpl-space-3); }
@media (min-width: 768px) { .tpl-gallery--masonry.tpl-gallery--3 { columns: 3; } .tpl-gallery--masonry.tpl-gallery--4 { columns: 4; } }
.tpl-gallery--masonry li { break-inside: avoid; margin-block-end: var(--tpl-space-3); }
.tpl-gallery__item { margin: 0; }
.tpl-gallery__item img { inline-size: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--tpl-radius-md); transition: opacity var(--tpl-duration-fast) var(--tpl-ease); }
.tpl-gallery--masonry .tpl-gallery__item img { aspect-ratio: auto; }
.tpl-gallery__item a:hover img { opacity: 0.88; }
.tpl-gallery__item figcaption { margin-block-start: var(--tpl-space-2); font-size: var(--tpl-text-sm); color: var(--tpl-color-text-muted); }

/* ---------- نظرات ---------- */
.tpl-quote { margin: 0; gap: var(--tpl-space-5); align-content: space-between; }
.tpl-quote blockquote { margin: 0; font-size: var(--tpl-text-base); line-height: 1.9; }
.tpl-quote__by { display: flex; align-items: center; gap: var(--tpl-space-3); }
.tpl-quote__by img, .tpl-avatar { inline-size: 44px; block-size: 44px; border-radius: var(--tpl-radius-full); object-fit: cover; flex: none; }
.tpl-avatar { display: grid; place-items: center; background: var(--tpl-color-accent-soft); color: var(--tpl-color-accent-text); font-weight: 700; }
.tpl-quote__by span { display: grid; }
.tpl-quote__by small { color: var(--tpl-color-text-muted); }

/* ---------- قیمت‌گذاری ---------- */
.tpl-pricing { align-items: stretch; }
.tpl-plan { gap: var(--tpl-space-4); }
.tpl-plan.is-featured { border: 2px solid var(--tpl-color-primary); box-shadow: var(--tpl-shadow-2); }
.tpl-plan__price strong { font-size: var(--tpl-text-2xl); font-family: var(--tpl-font-heading); }
.tpl-plan__price span { color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); }
.tpl-plan .tpl-btn { margin-block-start: auto; }
.tpl-badge { justify-self: start; padding: var(--tpl-space-1) var(--tpl-space-3); border-radius: var(--tpl-radius-full); background: var(--tpl-color-primary); color: var(--tpl-color-on-primary); font-size: var(--tpl-text-xs); font-weight: 700; }
.tpl-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tpl-space-2); font-size: var(--tpl-text-sm); }
.tpl-checklist li { display: flex; gap: var(--tpl-space-2); }
.tpl-checklist .bi { color: var(--tpl-color-success); }

/* ---------- FAQ ---------- */
.tpl-faq { display: grid; }
.tpl-faq__item { border-block-end: 1px solid var(--tpl-color-border); }
.tpl-faq__item:first-child { border-block-start: 1px solid var(--tpl-color-border); }
.tpl-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--tpl-space-4);
  min-block-size: 56px; padding-block: var(--tpl-space-4); font-weight: 700; cursor: pointer; list-style: none;
}
.tpl-faq__item summary::-webkit-details-marker { display: none; }
.tpl-faq__item summary::after {
  content: ""; flex: none; inline-size: 12px; block-size: 12px;
  border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--tpl-duration-base) var(--tpl-ease);
}
.tpl-faq__item[open] summary::after { transform: rotate(-135deg); }
.tpl-faq__a { padding-block-end: var(--tpl-space-5); color: var(--tpl-color-text-muted); }

/* ---------- CTA ---------- */
.tpl-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--tpl-space-6);
  padding: clamp(2rem, 1rem + 4vw, 4rem); border-radius: var(--tpl-radius-lg);
  background: var(--tpl-color-primary); color: var(--tpl-color-on-primary);
}
.tpl-cta__title { font-size: var(--tpl-text-2xl); font-weight: var(--tpl-heading-weight); max-inline-size: 28ch; }
.tpl-cta__text { margin-block-start: var(--tpl-space-2); opacity: 0.9; max-inline-size: 52ch; }

/* ---------- شمارش معکوس و آمار ---------- */
.tpl-countdown { display: grid; justify-items: center; gap: var(--tpl-space-5); padding: var(--tpl-space-8); border-radius: var(--tpl-radius-lg); background: var(--tpl-color-surface); text-align: center; }
.tpl-countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tpl-space-4); margin: 0; }
.tpl-countdown__grid div { display: flex; flex-direction: column-reverse; align-items: center; gap: var(--tpl-space-1); min-inline-size: 64px; }
.tpl-countdown__grid dd { margin: 0; font-size: var(--tpl-text-2xl); font-weight: var(--tpl-heading-weight); font-family: var(--tpl-font-heading); font-variant-numeric: tabular-nums; }
.tpl-countdown__grid dt { font-weight: 400; color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); }
.tpl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: var(--tpl-space-4); margin: 0; }
.tpl-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--tpl-space-1); padding: var(--tpl-space-6); border-radius: var(--tpl-radius-lg); background: var(--tpl-color-surface); }
.tpl-stat dd { margin: 0; font-family: var(--tpl-font-heading); font-size: var(--tpl-text-2xl); font-weight: var(--tpl-heading-weight); line-height: 1.15; }
.tpl-stat dt { display: flex; align-items: center; gap: var(--tpl-space-2); font-weight: 400; color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); }
.tpl-stat dt .bi { color: var(--tpl-color-accent-text); }

/* ---------- تیم ---------- */
.tpl-person { display: grid; gap: var(--tpl-space-2); align-content: start; }
.tpl-person__photo { aspect-ratio: 4 / 5; margin-block-end: var(--tpl-space-2); border-radius: var(--tpl-radius-lg); overflow: hidden; background: var(--tpl-color-surface); }
.tpl-person__photo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.tpl-person__photo span { display: grid; place-items: center; block-size: 100%; font-family: var(--tpl-font-heading); font-size: var(--tpl-text-display); color: var(--tpl-color-text-muted); }
.tpl-person__role { color: var(--tpl-color-accent-text); font-size: var(--tpl-text-sm); font-weight: 600; }

/* ---------- تب‌ها ---------- */
.tpl-tabs__list { display: flex; flex-wrap: wrap; gap: var(--tpl-space-1); margin-block-end: var(--tpl-space-6); border-block-end: 1px solid var(--tpl-color-border); }
.tpl-tabs__list button {
  min-block-size: 44px; padding: var(--tpl-space-2) var(--tpl-space-4); border: 0; background: none;
  font: inherit; font-weight: 600; color: var(--tpl-color-text-muted); border-block-end: 2px solid transparent; margin-block-end: -1px; cursor: pointer;
}
.tpl-tabs__list button[aria-selected="true"] { color: var(--tpl-color-primary-text); border-block-end-color: var(--tpl-color-primary-text); }
.tpl-tabs.is-ready .tpl-tabs__fallback { display: none; }
.tpl-tabs:not(.is-ready) .tpl-tabs__panel + .tpl-tabs__panel { margin-block-start: var(--tpl-space-8); }

/* ---------- وبلاگ (سکشن) ---------- */
.tpl-post { padding: 0; overflow: hidden; gap: 0; }
.tpl-post__img { inline-size: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tpl-post__body { display: grid; gap: var(--tpl-space-3); padding: var(--tpl-space-5); }
.tpl-post .tpl-chip { position: relative; z-index: 1; justify-self: start; }
.tpl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--tpl-space-2); }
.tpl-chip {
  display: inline-flex; align-items: center; gap: var(--tpl-space-2); margin: 0;
  padding: var(--tpl-space-1) var(--tpl-space-3); border-radius: var(--tpl-radius-full);
  background: var(--tpl-color-primary-soft); color: var(--tpl-color-primary-text);
  font-size: var(--tpl-text-xs); font-weight: 700; text-decoration: none; line-height: 1.8;
}
.tpl-chip--lg { min-block-size: 44px; padding-inline: var(--tpl-space-5); font-size: var(--tpl-text-sm); }
.tpl-chip--sm { padding: 0 var(--tpl-space-2); }
.tpl-chip__count { padding: 0 var(--tpl-space-2); border-radius: var(--tpl-radius-full); background: var(--tpl-color-bg); }

/* ---------- منو و ساعات کاری ---------- */
.tpl-menu { display: grid; gap: var(--tpl-space-10) var(--tpl-space-12); }
@media (min-width: 768px) { .tpl-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tpl-menu__group .tpl-h3 { margin-block-end: var(--tpl-space-5); color: var(--tpl-color-primary-text); }
.tpl-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tpl-space-4); }
.tpl-menu__row { display: flex; align-items: baseline; gap: var(--tpl-space-2); }
.tpl-menu__name { font-weight: 700; }
.tpl-menu__dots { flex: 1; min-inline-size: 20px; border-block-end: 2px dotted var(--tpl-color-border-strong); transform: translateY(-0.3em); }
.tpl-menu__price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tpl-menu__desc { margin-block-start: var(--tpl-space-1); color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); }
.tpl-hours { margin: 0; }
.tpl-hours div { display: flex; justify-content: space-between; gap: var(--tpl-space-4); padding-block: var(--tpl-space-3); border-block-end: 1px solid var(--tpl-color-border); }
.tpl-hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- ویدئو و نقشه ---------- */
.tpl-video { position: relative; overflow: hidden; border-radius: var(--tpl-radius-lg); background: var(--tpl-color-surface); }
.tpl-ratio--16-9 { aspect-ratio: 16 / 9; } .tpl-ratio--4-3 { aspect-ratio: 4 / 3; } .tpl-ratio--1-1 { aspect-ratio: 1; } .tpl-ratio--21-9 { aspect-ratio: 21 / 9; }
.tpl-video :is(iframe, video) { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.tpl-map { overflow: hidden; border-radius: var(--tpl-radius-lg); border: 1px solid var(--tpl-color-border); }
.tpl-map iframe { display: block; inline-size: 100%; block-size: clamp(280px, 40vw, 440px); border: 0; }
.tpl-map--deferred { block-size: clamp(220px, 30vw, 340px); background:
    repeating-linear-gradient(0deg, transparent 0 38px, var(--tpl-color-border) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, var(--tpl-color-border) 38px 39px), var(--tpl-color-surface); }
.tpl-map__cover { block-size: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--tpl-space-3); padding: var(--tpl-space-6); text-align: center; }
.tpl-map__cover > .bi { font-size: 2.25rem; color: var(--tpl-color-primary-text); }
.tpl-map__cover small { color: var(--tpl-color-text-muted); font-size: var(--tpl-text-xs); max-inline-size: 26rem; }
.tpl-map__address { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tpl-space-2); margin-block-start: var(--tpl-space-4); color: var(--tpl-color-text-muted); }
.tpl-map__address a { font-weight: 700; margin-inline-start: auto; }

/* ---------- فرم تماس ---------- */
.tpl-contact { display: grid; gap: var(--tpl-space-10); }
@media (min-width: 992px) { .tpl-contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.tpl-contact__info { display: grid; gap: var(--tpl-space-3); align-content: start; }
.tpl-contact__list { list-style: none; margin: var(--tpl-space-4) 0 0; padding: 0; display: grid; gap: var(--tpl-space-2); }
.tpl-contact__list li { display: flex; align-items: center; gap: var(--tpl-space-3); }
.tpl-contact__list .bi { color: var(--tpl-color-accent-text); }
.tpl-contact__list a { display: inline-flex; align-items: center; min-block-size: 40px; color: var(--tpl-color-text); font-weight: 700; text-decoration: none; }
.tpl-form { display: grid; gap: var(--tpl-space-5); padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem); background: var(--tpl-color-surface); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg); }
.tpl-form__row { display: grid; gap: var(--tpl-space-5); align-items: start; }
@media (min-width: 576px) { .tpl-form__row { grid-template-columns: 1fr 1fr; } }
.tpl-field { display: grid; gap: var(--tpl-space-2); }
.tpl-label { font-weight: 700; font-size: var(--tpl-text-sm); }
.tpl-label span { color: var(--tpl-color-danger); }
.tpl-input {
  inline-size: 100%; min-block-size: 48px; padding: var(--tpl-space-3) var(--tpl-space-4);
  font: inherit; font-size: 16px; color: var(--tpl-color-text); background: var(--tpl-color-bg);
  border: var(--tpl-border-width) solid var(--tpl-color-border-strong); border-radius: var(--tpl-radius-sm);
}
.tpl-input:focus-visible { outline-offset: 0; border-color: var(--tpl-color-primary-text); }
.tpl-input[aria-invalid="true"] { border-color: var(--tpl-color-danger); }
.tpl-input--area { min-block-size: 140px; resize: vertical; }
.tpl-hint { font-size: var(--tpl-text-xs); color: var(--tpl-color-text-muted); }
.tpl-error { font-size: var(--tpl-text-sm); color: var(--tpl-color-danger); }
.tpl-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tpl-space-4); }
.tpl-form__status { font-size: var(--tpl-text-sm); }
.tpl-form__status.is-ok { color: var(--tpl-color-success); }
.tpl-form__status.is-error { color: var(--tpl-color-danger); }

/* ---------- فروشگاه ---------- */
.tpl-product { position: relative; display: grid; gap: var(--tpl-space-3); block-size: 100%; }
.tpl-product__media { position: relative; aspect-ratio: 1; border-radius: var(--tpl-radius-lg); overflow: hidden; background: var(--tpl-color-surface); }
.tpl-product__media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform var(--tpl-duration-slow) var(--tpl-ease); }
.tpl-product:hover .tpl-product__media img { transform: scale(1.03); }
.tpl-product__placeholder { display: grid; place-items: center; block-size: 100%; color: var(--tpl-color-text-muted); font-size: 2rem; }
.tpl-product__flag { position: absolute; inset-block-start: var(--tpl-space-3); inset-inline-start: var(--tpl-space-3); padding: var(--tpl-space-1) var(--tpl-space-3); border-radius: var(--tpl-radius-full); background: var(--tpl-color-bg); font-size: var(--tpl-text-xs); font-weight: 700; }
.tpl-product.is-out .tpl-product__media img { opacity: 0.55; }
.tpl-product__body { display: grid; gap: var(--tpl-space-1); }
.tpl-product__name { font-size: var(--tpl-text-base); font-weight: 700; font-family: var(--tpl-font-body); }
.tpl-product__price { font-weight: 700; color: var(--tpl-color-primary-text); }
.tpl-preview-note { margin-block: var(--tpl-space-4); padding: var(--tpl-space-4); border: 1px dashed var(--tpl-color-border-strong); border-radius: var(--tpl-radius-md); color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); }

.tpl-breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--tpl-space-2); list-style: none; margin: 0 0 var(--tpl-space-6); padding: 0; font-size: var(--tpl-text-sm); color: var(--tpl-color-text-muted); }
.tpl-breadcrumb li + li::before { content: "/"; margin-inline-end: var(--tpl-space-2); opacity: 0.6; }
.tpl-breadcrumb a { display: inline-flex; align-items: center; min-block-size: 32px; color: inherit; }
.tpl-empty { display: grid; justify-items: center; gap: var(--tpl-space-3); padding-block: var(--tpl-space-12); text-align: center; color: var(--tpl-color-text-muted); }
.tpl-empty .bi { font-size: 2.5rem; }
.tpl-empty__title { color: var(--tpl-color-text); font-size: var(--tpl-text-lg); font-weight: 700; }
.tpl-pagination { display: flex; align-items: center; justify-content: center; gap: var(--tpl-space-5); margin-block-start: var(--tpl-space-10); }
.tpl-pagination a { display: inline-flex; align-items: center; gap: var(--tpl-space-1); min-block-size: 44px; padding-inline: var(--tpl-space-4); border: 1px solid var(--tpl-color-border-strong); border-radius: var(--tpl-btn-radius); text-decoration: none; color: var(--tpl-color-text); font-weight: 600; }

/* صفحه‌های فروشگاه با breadcrumb/عنوان شروع می‌شوند؛ فاصله بالای کامل سکشن لازم نیست. */
.tpl-product-page, .tpl-shop { padding-block-start: clamp(var(--tpl-space-6), 3vw, var(--tpl-space-10)); }
.tpl-pdp { display: grid; gap: var(--tpl-space-10); }
@media (min-width: 992px) { .tpl-pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.tpl-pdp__main { margin: 0; aspect-ratio: 1; border-radius: var(--tpl-radius-lg); overflow: hidden; background: var(--tpl-color-surface); }
.tpl-pdp__main img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.tpl-pdp__thumbs { list-style: none; margin: var(--tpl-space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--tpl-space-3); }
.tpl-pdp__thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: var(--tpl-radius-md); }
.tpl-pdp__info { display: grid; gap: var(--tpl-space-4); align-content: start; }
@media (min-width: 992px) { .tpl-pdp__info { position: sticky; inset-block-start: var(--tpl-space-8); } }
.tpl-pdp__info .tpl-chip { justify-self: start; }
.tpl-pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--tpl-space-3); }
.tpl-pdp__price strong { font-size: var(--tpl-text-xl); color: var(--tpl-color-primary-text); }
.tpl-pdp__price del { color: var(--tpl-color-text-muted); }
.tpl-stock { display: flex; align-items: center; gap: var(--tpl-space-2); font-weight: 700; font-size: var(--tpl-text-sm); }
.tpl-stock.is-in { color: var(--tpl-color-success); }
.tpl-stock.is-out { color: var(--tpl-color-text-muted); }
.tpl-variants { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tpl-space-2); }
.tpl-variants li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--tpl-space-4); align-items: center; padding: var(--tpl-space-3) var(--tpl-space-4); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-md); }
.tpl-variants li.is-out { color: var(--tpl-color-text-muted); }
.tpl-variants small { color: var(--tpl-color-text-muted); }
.tpl-pdp__desc { margin-block-start: var(--tpl-space-12); padding-block-start: var(--tpl-space-8); border-block-start: 1px solid var(--tpl-color-border); display: grid; gap: var(--tpl-space-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- فیلتر دسته فروشگاه ---------- */
.tpl-shop__filter { margin-block-end: var(--tpl-space-8); }
.tpl-chip.is-active { background: var(--tpl-color-primary); color: var(--tpl-color-on-primary); }

/* ---------- خط زمان ---------- */
.tpl-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tpl-space-8); border-inline-start: 2px solid var(--tpl-color-border); }
.tpl-timeline__item { position: relative; display: grid; gap: var(--tpl-space-2); padding-inline-start: var(--tpl-space-8); }
.tpl-timeline__item::before {
  content: ""; position: absolute; inset-inline-start: -7px; inset-block-start: 0.45em;
  inline-size: 12px; block-size: 12px; border-radius: var(--tpl-radius-full);
  background: var(--tpl-color-bg); border: 2px solid var(--tpl-color-accent-text);
}
@media (min-width: 768px) { .tpl-timeline__item { grid-template-columns: 11rem 1fr; gap: var(--tpl-space-6); } }
.tpl-timeline__period { color: var(--tpl-color-accent-text); font-weight: 700; font-size: var(--tpl-text-sm); font-variant-numeric: tabular-nums; }
.tpl-timeline__body { display: grid; gap: var(--tpl-space-1); }
.tpl-timeline__title { font-size: var(--tpl-text-lg); font-weight: 700; }
.tpl-timeline__place { color: var(--tpl-color-text-muted); font-weight: 600; font-size: var(--tpl-text-sm); }
.tpl-timeline__text { margin-block-start: var(--tpl-space-2); color: var(--tpl-color-text-muted); max-inline-size: 62ch; }

/* ---------- وبلاگ (فهرست، مطلب، نظرها) — مشترک همه قالب‌ها؛ قالب با کلاس‌های خودش ظاهر را تغییر می‌دهد ---------- */
.tpl-kicker { margin: 0 0 var(--tpl-space-2); font-size: var(--tpl-text-sm); font-weight: 700; color: var(--tpl-color-accent-text); }
.tpl-blog { padding-block-start: clamp(var(--tpl-space-6), 3vw, var(--tpl-space-10)); }
.tpl-blog__head { display: grid; gap: var(--tpl-space-3); margin-block-end: var(--tpl-space-8); }
.tpl-blog__title { font-size: clamp(var(--tpl-text-2xl), 1.4rem + 2vw, var(--tpl-text-display)); font-weight: var(--tpl-heading-weight); letter-spacing: var(--tpl-heading-tracking); }
.tpl-blog__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--tpl-space-4); margin-block-end: var(--tpl-space-8); padding-block-end: var(--tpl-space-6); border-block-end: 1px solid var(--tpl-color-border); }
.tpl-blog__search { display: flex; gap: var(--tpl-space-2); inline-size: min(100%, 22rem); }
.tpl-blog__search .tpl-btn { flex: none; inline-size: 48px; padding: 0; justify-content: center; }
.tpl-blog__grid { row-gap: var(--tpl-space-8); }
@media (min-width: 768px) { .tpl-blog__lead { grid-column: 1 / -1; } }
.tpl-post__title { font-size: var(--tpl-text-lg); line-height: 1.5; }
.tpl-post__meta { display: flex; flex-wrap: wrap; gap: var(--tpl-space-2); margin: 0; }
.tpl-post--noimg .tpl-post__body { padding-block-start: var(--tpl-space-6); }
@media (min-width: 768px) {
  .tpl-post--lead:not(.tpl-post--noimg) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
  .tpl-post--lead .tpl-post__img { block-size: 100%; aspect-ratio: 16 / 10; }
  .tpl-post--lead .tpl-post__body { padding: var(--tpl-space-8); gap: var(--tpl-space-4); }
  .tpl-post--lead .tpl-post__title { font-size: var(--tpl-text-2xl); }
}
.tpl-pagination--pages ol { display: flex; flex-wrap: wrap; gap: var(--tpl-space-1); list-style: none; margin: 0; padding: 0; }
.tpl-pagination--pages ol a, .tpl-pagination--pages ol span { display: inline-grid; place-items: center; min-inline-size: 44px; min-block-size: 44px; padding-inline: var(--tpl-space-2); border-radius: var(--tpl-btn-radius); }
.tpl-pagination--pages ol a { border: 0; }
.tpl-pagination--pages [aria-current="page"] { background: var(--tpl-color-primary); color: var(--tpl-color-on-primary); font-weight: 700; }

.tpl-article { padding-block-start: clamp(var(--tpl-space-6), 3vw, var(--tpl-space-10)); }
.tpl-article__narrow { max-width: calc(var(--tpl-measure) + 2 * var(--tpl-container-pad)); }
.tpl-article__head { display: grid; gap: var(--tpl-space-4); justify-items: start; }
.tpl-article__title { font-size: var(--tpl-text-display); font-weight: var(--tpl-heading-weight); letter-spacing: var(--tpl-heading-tracking); line-height: 1.25; text-wrap: balance; }
.tpl-article__lead { margin: 0; font-size: var(--tpl-text-lg); color: var(--tpl-color-text-muted); }
.tpl-article__meta { display: flex; flex-wrap: wrap; gap: var(--tpl-space-2); margin: 0; }
.tpl-article__author { color: var(--tpl-color-text); font-weight: 700; }
.tpl-article__figure { margin-block: var(--tpl-space-10); }
.tpl-article__figure img { inline-size: 100%; block-size: auto; max-block-size: 70vh; object-fit: cover; border-radius: var(--tpl-radius-lg); }
.tpl-article__head + * { margin-block-start: var(--tpl-space-10); }
.tpl-article__body { font-size: 1.0625rem; line-height: 2; }
.tpl-article__tags { margin-block-start: var(--tpl-space-10); }

.tpl-comments__count { color: var(--tpl-color-text-muted); font-weight: 400; }
.tpl-comments__list { list-style: none; margin: var(--tpl-space-6) 0; padding: 0; display: grid; gap: var(--tpl-space-5); }
.tpl-comments__list--replies { margin: var(--tpl-space-4) 0 0; padding-inline-start: var(--tpl-space-6); border-inline-start: 2px solid var(--tpl-color-border); }
.tpl-comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tpl-space-2) var(--tpl-space-3); }
.tpl-comment__avatar { display: inline-grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: 50%; background: var(--tpl-color-primary-soft, var(--tpl-color-surface)); color: var(--tpl-color-primary-text); font-weight: 700; }
.tpl-comment__text { margin: var(--tpl-space-2) 0 0; padding-inline-start: calc(36px + var(--tpl-space-3)); white-space: pre-line; }
.tpl-comment__reply { display: inline-flex; align-items: center; gap: var(--tpl-space-1); min-block-size: 40px; margin-inline-start: calc(36px + var(--tpl-space-3) - var(--tpl-space-2)); padding-inline: var(--tpl-space-2); border: 0; background: none; color: var(--tpl-color-primary-text); font: inherit; font-size: var(--tpl-text-sm); font-weight: 700; cursor: pointer; }
.tpl-comment-form { margin-block-start: var(--tpl-space-8); }
.tpl-comment-form__title { font-size: var(--tpl-text-lg); font-weight: 700; }
.tpl-comment-form__replying { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--tpl-space-2); margin: 0; padding: var(--tpl-space-2) var(--tpl-space-4); border-radius: var(--tpl-radius-md); background: var(--tpl-color-bg); font-size: var(--tpl-text-sm); }
.tpl-comment-form__replying .tpl-comment__reply { margin: 0; }
.tpl-hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* جداکننده متا: خط عمودی (نقطه وسط با صفر فارسی «۰» اشتباه خوانده می‌شود) */
.tpl-sep { display: inline-block; inline-size: 1px; block-size: 0.9em; margin-inline: var(--tpl-space-1); vertical-align: -0.1em; background: currentColor; opacity: 0.4; }

/* ---------- خرید: انتخاب تنوع، تعداد، سبد خرید ---------- */
.tpl-buy { display: grid; gap: var(--tpl-space-5); margin-block-start: var(--tpl-space-2); }
.tpl-options { display: grid; gap: var(--tpl-space-2); margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.tpl-options legend { margin-block-end: var(--tpl-space-3); padding: 0; }
.tpl-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--tpl-space-1) var(--tpl-space-3); min-block-size: 56px; padding: var(--tpl-space-3) var(--tpl-space-4); border: var(--tpl-border-width) solid var(--tpl-color-border-strong); border-radius: var(--tpl-radius-md); cursor: pointer; transition: border-color var(--tpl-duration-fast) var(--tpl-ease), background-color var(--tpl-duration-fast) var(--tpl-ease); }
.tpl-option input { inline-size: 20px; block-size: 20px; margin: 0; accent-color: var(--tpl-color-primary); }
.tpl-option__name { font-weight: 700; }
.tpl-option__price { font-weight: 700; color: var(--tpl-color-primary-text); }
.tpl-option__stock { grid-column: 2 / -1; font-size: var(--tpl-text-xs); color: var(--tpl-color-text-muted); }
.tpl-option:has(input:checked) { border-color: var(--tpl-color-primary); background: color-mix(in srgb, var(--tpl-color-primary) 7%, transparent); box-shadow: inset 0 0 0 1px var(--tpl-color-primary); }
.tpl-option:has(input:focus-visible) { outline: 2px solid var(--tpl-color-primary-text); outline-offset: 2px; }
.tpl-option.is-out { opacity: 0.55; cursor: not-allowed; }
.tpl-buy__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--tpl-space-4); }
.tpl-buy__submit { flex: 1 1 14rem; }
.tpl-buy__submit .bi { margin-inline-end: var(--tpl-space-2); }
.tpl-buy__soldout { margin: 0; padding: var(--tpl-space-4); border-radius: var(--tpl-radius-md); background: var(--tpl-color-surface); color: var(--tpl-color-text-muted); font-weight: 700; text-align: center; }
.tpl-buy__phone { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tpl-space-2); }
.tpl-buy__phone a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--tpl-color-text); font-weight: 700; }
.tpl-qty { display: grid; gap: var(--tpl-space-2); }
.tpl-qty__control { display: inline-flex; align-items: stretch; border: var(--tpl-border-width) solid var(--tpl-color-border-strong); border-radius: var(--tpl-radius-sm); overflow: hidden; background: var(--tpl-color-bg); inline-size: max-content; }
.tpl-qty__input { inline-size: 4.5rem; min-block-size: 48px; border: 0; border-radius: 0; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.tpl-qty__input::-webkit-outer-spin-button, .tpl-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tpl-qty__btn { inline-size: 44px; border: 0; background: var(--tpl-color-surface); color: var(--tpl-color-text); font-size: 1.1rem; cursor: pointer; }
.tpl-qty__btn:hover { background: color-mix(in srgb, var(--tpl-color-primary) 12%, var(--tpl-color-surface)); }
.tpl-js .tpl-qty[data-tpl-autosubmit] .tpl-qty__apply { display: none; }
form.tpl-qty { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tpl-space-2); }

.tpl-notice { display: flex; align-items: center; gap: var(--tpl-space-2); margin: 0 0 var(--tpl-space-6); padding: var(--tpl-space-3) var(--tpl-space-4); border-radius: var(--tpl-radius-md); font-weight: 600; }
.tpl-notice--ok { background: color-mix(in srgb, var(--tpl-color-success) 12%, var(--tpl-color-bg)); color: var(--tpl-color-text); box-shadow: inset -3px 0 0 var(--tpl-color-success); }
.tpl-notice--error { background: color-mix(in srgb, var(--tpl-color-danger) 10%, var(--tpl-color-bg)); color: var(--tpl-color-text); box-shadow: inset -3px 0 0 var(--tpl-color-danger); }

.tpl-cart { padding-block-start: clamp(var(--tpl-space-6), 3vw, var(--tpl-space-10)); }
.tpl-cart__count { font-size: var(--tpl-text-lg); font-weight: 400; color: var(--tpl-color-text-muted); }
.tpl-cart .tpl-blog__title { margin-block-end: var(--tpl-space-6); }
.tpl-cart__layout { display: grid; gap: var(--tpl-space-8); align-items: start; }
@media (min-width: 992px) { .tpl-cart__layout { grid-template-columns: minmax(0, 1fr) 22rem; } .tpl-cart__summary { position: sticky; inset-block-start: 100px; } }
.tpl-cart__lines { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--tpl-color-border); }
.tpl-cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--tpl-space-4); padding-block: var(--tpl-space-5); border-block-end: 1px solid var(--tpl-color-border); }
@media (min-width: 640px) { .tpl-cart-line { grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; } }
.tpl-cart-line__media { display: block; aspect-ratio: 1; border-radius: var(--tpl-radius-md); overflow: hidden; background: var(--tpl-color-surface); }
.tpl-cart-line__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.tpl-cart-line__media .tpl-product__placeholder { font-size: 1.5rem; }
.tpl-cart-line__info { display: grid; gap: var(--tpl-space-1); align-content: start; }
.tpl-cart-line__name { margin: 0; font-size: var(--tpl-text-base); font-weight: 700; font-family: var(--tpl-font-body); }
.tpl-cart-line__name a { color: var(--tpl-color-text); text-decoration: none; }
.tpl-cart-line__name a:hover { text-decoration: underline; }
.tpl-cart-line__unit { margin: 0; color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); }
.tpl-cart-line__unit del { margin-inline-start: var(--tpl-space-2); opacity: 0.7; }
.tpl-cart-line .tpl-error, .tpl-cart-line .tpl-meta { margin: 0; }
.tpl-cart-line__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--tpl-space-3); }
@media (min-width: 640px) { .tpl-cart-line__actions { grid-column: auto; flex-direction: column; align-items: flex-end; } }
.tpl-cart-line__remove { display: inline-flex; align-items: center; gap: var(--tpl-space-1); min-block-size: 40px; padding-inline: var(--tpl-space-2); border: 0; background: none; color: var(--tpl-color-text-muted); font: inherit; font-size: var(--tpl-text-sm); cursor: pointer; }
.tpl-cart-line__remove:hover { color: var(--tpl-color-danger); }
.tpl-cart-line__total { margin: 0; font-weight: 800; }
.tpl-cart-line.has-issue .tpl-cart-line__media, .tpl-cart-line.has-issue .tpl-cart-line__name { opacity: 0.7; }
.tpl-cart__summary { display: grid; gap: var(--tpl-space-4); padding: var(--tpl-space-6); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg); background: var(--tpl-color-surface); }
.tpl-cart__totals { display: grid; gap: var(--tpl-space-3); margin: 0; }
.tpl-cart__totals div { display: flex; justify-content: space-between; gap: var(--tpl-space-3); }
.tpl-cart__totals dt { font-weight: 400; color: var(--tpl-color-text-muted); }
.tpl-cart__totals dd { margin: 0; font-weight: 700; white-space: nowrap; text-align: end; }
.tpl-cart__grand { padding-block-start: var(--tpl-space-3); border-block-start: 1px solid var(--tpl-color-border); }
.tpl-cart__grand dt { color: var(--tpl-color-text); font-weight: 700; }
.tpl-cart__grand dd { font-size: var(--tpl-text-lg); color: var(--tpl-color-primary-text); }
.tpl-cart__summary .tpl-link-more { justify-self: center; }

/* نشان تعداد سبد روی آیکون سربرگ قالب‌ها */
.tpl-cart-link { position: relative; }
.tpl-cart-badge { position: absolute; inset-block-start: 2px; inset-inline-end: 2px; display: inline-grid; place-items: center; min-inline-size: 20px; block-size: 20px; padding-inline: 5px; border-radius: 999px; background: var(--tpl-color-accent); color: var(--tpl-color-on-accent); font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px var(--tpl-color-bg); }
.tpl-cart-icon { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: var(--tpl-radius-full); color: var(--tpl-color-text); text-decoration: none; font-size: 1.25rem; }
.tpl-cart-icon:hover { background: var(--tpl-color-surface); color: var(--tpl-color-text); }
.tpl-btn:disabled, .tpl-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; filter: saturate(0.6); }

/* ---------- تسویه حساب و پیگیری سفارش ---------- */
.tpl-checkout__main { display: grid; gap: var(--tpl-space-5); min-inline-size: 0; }
.tpl-checkout__group { margin: 0; min-inline-size: 0; }
.tpl-checkout__group legend { float: inline-start; inline-size: 100%; margin: 0 0 var(--tpl-space-2); padding: 0; }
.tpl-checkout__group legend + * { clear: both; }
.tpl-checkout__items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tpl-space-3); font-size: var(--tpl-text-sm); }
.tpl-checkout__items li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--tpl-space-3); padding-block-end: var(--tpl-space-3); border-block-end: 1px dashed var(--tpl-color-border); }
.tpl-checkout__items li > span:last-child { flex: none; font-weight: 700; }
.tpl-notice[tabindex="-1"]:focus { outline: 2px solid var(--tpl-color-danger); outline-offset: 2px; }
select.tpl-input { appearance: auto; }

.tpl-order__done { display: grid; justify-items: center; gap: var(--tpl-space-3); margin-block-end: var(--tpl-space-6); text-align: center; }
.tpl-order__done > .bi { font-size: 3.5rem; color: var(--tpl-color-success); line-height: 1; }
.tpl-order__done .tpl-notice { margin: var(--tpl-space-2) 0 0; }
.tpl-order__grid { display: grid; gap: var(--tpl-space-5); margin-block: var(--tpl-space-6) var(--tpl-space-8); }
@media (min-width: 768px) { .tpl-order__grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.tpl-order__grid p { margin: 0; line-height: 1.9; }
.tpl-steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: var(--tpl-space-6) 0 0; padding: 0; counter-reset: step; }
.tpl-steps li { position: relative; display: grid; justify-items: center; gap: var(--tpl-space-2); font-size: var(--tpl-text-xs); color: var(--tpl-color-text-muted); text-align: center; }
.tpl-steps li > span { position: relative; z-index: 1; display: grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: 50%; border: 2px solid var(--tpl-color-border-strong); background: var(--tpl-color-bg); font-weight: 800; }
.tpl-steps li::before { content: ""; position: absolute; inset-block-start: 15px; inset-inline-start: -50%; inline-size: 100%; block-size: 2px; background: var(--tpl-color-border); }
.tpl-steps li:first-child::before { display: none; }
.tpl-steps li.is-done { color: var(--tpl-color-text); font-weight: 700; }
.tpl-steps li.is-done > span { border-color: var(--tpl-color-primary); background: var(--tpl-color-primary); color: var(--tpl-color-on-primary); }
.tpl-steps li.is-done::before { background: var(--tpl-color-primary); }

/* ---------- فروشگاه: جستجو، فیلتر و مرتب‌سازی ---------- */
.tpl-shop__toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--tpl-space-3); margin-block-end: var(--tpl-space-5); }
.tpl-shop__search { flex: 1 1 18rem; inline-size: auto; max-inline-size: 28rem; }
.tpl-shop__sort { display: flex; align-items: center; gap: var(--tpl-space-2); margin-inline-start: auto; }
.tpl-shop__sort .tpl-label { white-space: nowrap; }
.tpl-shop__sort select { min-inline-size: 9rem; }
.tpl-js .tpl-shop__sort-apply { display: none; }
.tpl-shop__filters-toggle { display: none; }
.tpl-cart-badge--inline { position: static; box-shadow: none; margin-inline-start: var(--tpl-space-1); }
.tpl-shop__active { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tpl-space-3); margin-block-end: var(--tpl-space-6); }
.tpl-chip--remove { gap: var(--tpl-space-1); }
.tpl-chip--remove .bi { font-size: 1.1em; }
.tpl-shop__layout { display: grid; gap: var(--tpl-space-8); align-items: start; }
@media (min-width: 992px) {
  .tpl-shop__layout { grid-template-columns: 15.5rem minmax(0, 1fr); }
  .tpl-shop__filters[hidden] { display: block !important; }
  .tpl-shop__filters { position: sticky; inset-block-start: 100px; max-block-size: calc(100vh - 120px); overflow-y: auto; }
}
@media (max-width: 991.98px) {
  .tpl-shop__filters-toggle { display: inline-flex; gap: var(--tpl-space-2); }
  .tpl-shop__sort { margin-inline-start: 0; }
  .tpl-shop__filters { padding: var(--tpl-space-5); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg); background: var(--tpl-color-surface); }
}
.tpl-shop__filters form { display: grid; gap: var(--tpl-space-5); }
.tpl-facet { margin: 0; padding: 0 0 var(--tpl-space-5); border: 0; border-block-end: 1px solid var(--tpl-color-border); min-inline-size: 0; }
.tpl-facet__title { margin-block-end: var(--tpl-space-3); padding: 0; font-size: var(--tpl-text-sm); font-weight: 800; }
.tpl-facet__range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--tpl-space-2); font-size: var(--tpl-text-sm); color: var(--tpl-color-text-muted); }
.tpl-facet__range .tpl-input { min-block-size: 44px; padding-inline: var(--tpl-space-3); }
.tpl-facet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tpl-space-1); max-block-size: 16rem; overflow-y: auto; }
.tpl-facet__check { display: flex; align-items: center; gap: var(--tpl-space-3); min-block-size: 40px; cursor: pointer; font-size: var(--tpl-text-sm); }
.tpl-facet__check input { inline-size: 18px; block-size: 18px; margin: 0; accent-color: var(--tpl-color-primary); flex: none; }
.tpl-facet__check.is-empty { opacity: 0.5; }
.tpl-facet__count { margin-inline-start: auto; padding: 0 var(--tpl-space-2); border-radius: var(--tpl-radius-full); background: var(--tpl-color-surface); color: var(--tpl-color-text-muted); font-size: var(--tpl-text-xs); }
.tpl-facet__check--switch { font-weight: 700; padding-block-end: var(--tpl-space-3); border-block-end: 1px solid var(--tpl-color-border); }

/* ---------- حساب مشتری و ورود با کد ---------- */
.tpl-auth__card { max-inline-size: 26rem; margin-inline: auto; text-align: center; }
.tpl-auth__card .tpl-field { text-align: start; }
.tpl-auth__icon { font-size: 2.75rem; color: var(--tpl-color-primary-text); line-height: 1; }
.tpl-auth__card .tpl-blog__title { margin: 0; }
.tpl-auth__code { font-size: 1.5rem; letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; }
.tpl-auth__resend { display: flex; justify-content: center; margin-block-start: var(--tpl-space-4); }
.tpl-notice--dev { background: color-mix(in srgb, var(--tpl-color-warning) 18%, var(--tpl-color-bg)); color: var(--tpl-color-text); box-shadow: inset -3px 0 0 var(--tpl-color-warning); }
.tpl-account__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--tpl-space-4); margin-block-end: var(--tpl-space-6); }
.tpl-account__head .tpl-blog__title { margin: 0; }
.tpl-account__head p { margin: 0; }
.tpl-account__nav { margin-block-end: var(--tpl-space-8); border-block-end: 1px solid var(--tpl-color-border); overflow-x: auto; scrollbar-width: none; }
.tpl-account__nav ul { display: flex; gap: var(--tpl-space-1); list-style: none; margin: 0; padding: 0; }
.tpl-account__nav a { display: inline-flex; align-items: center; gap: var(--tpl-space-2); min-block-size: 48px; padding-inline: var(--tpl-space-4); color: var(--tpl-color-text-muted); text-decoration: none; font-weight: 600; white-space: nowrap; border-block-end: 3px solid transparent; }
.tpl-account__nav a:hover { color: var(--tpl-color-text); }
.tpl-account__nav a.is-active { color: var(--tpl-color-primary-text); border-color: var(--tpl-color-primary); }
.tpl-account__orders, .tpl-account__addresses { list-style: none; margin: var(--tpl-space-4) 0 0; padding: 0; display: grid; gap: var(--tpl-space-3); }
.tpl-account__order { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--tpl-space-2) var(--tpl-space-4); padding: var(--tpl-space-4) var(--tpl-space-5); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg); background: var(--tpl-color-bg); transition: border-color var(--tpl-duration-fast) var(--tpl-ease); }
.tpl-account__order:hover { border-color: var(--tpl-color-primary); }
.tpl-account__order p { margin: 0; }
.tpl-account__order-no { font-weight: 800; }
.tpl-account__total { grid-column: 2; grid-row: 2; justify-self: end; }
.tpl-account__status { justify-self: end; padding: var(--tpl-space-1) var(--tpl-space-3); border-radius: var(--tpl-radius-full); background: var(--tpl-color-surface); font-size: var(--tpl-text-xs); font-weight: 700; }
.tpl-account__status--awaitingpayment { background: color-mix(in srgb, var(--tpl-color-warning) 20%, var(--tpl-color-bg)); }
.tpl-account__status--delivered { background: color-mix(in srgb, var(--tpl-color-success) 18%, var(--tpl-color-bg)); }
.tpl-account__status--cancelled { color: var(--tpl-color-text-muted); }
.tpl-account__address { padding: var(--tpl-space-4) var(--tpl-space-5); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg); }
.tpl-account__address.is-default { border-color: var(--tpl-color-primary); }
.tpl-account__address p { margin: 0 0 var(--tpl-space-1); }
.tpl-account__address-actions { display: flex; gap: var(--tpl-space-2); margin-block-start: var(--tpl-space-2); }
.tpl-account__address-actions .tpl-comment__reply { margin: 0; text-decoration: none; }
.tpl-account__profile { max-inline-size: 32rem; }
.tpl-checkout__login { margin: 0; }
.tpl-checkout__login a { color: var(--tpl-color-primary-text); font-weight: 700; }

/* ---------- کد تخفیف در تسویه ---------- */
.tpl-checkout__discount { display: grid; gap: var(--tpl-space-2); margin-block: var(--tpl-space-4); padding-block: var(--tpl-space-4); border-block: 1px dashed var(--tpl-color-border); }
.tpl-checkout__discount:focus { outline: none; }
.tpl-checkout__discount:focus-visible { outline: 2px solid var(--tpl-color-primary); outline-offset: 4px; }
.tpl-checkout__discount .tpl-label { margin: 0; }
.tpl-checkout__discount .tpl-notice, .tpl-checkout__discount .tpl-error { margin: 0; }
.tpl-checkout__discount-row { display: flex; gap: var(--tpl-space-2); }
.tpl-checkout__discount-row .tpl-input { flex: 1; min-inline-size: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.tpl-checkout__discount-row .tpl-btn { flex: none; }
.tpl-checkout__discount-applied { display: flex; align-items: center; gap: var(--tpl-space-2); margin: 0; padding: var(--tpl-space-2) var(--tpl-space-3); border-radius: var(--tpl-radius-md); background: color-mix(in srgb, var(--tpl-color-success) 12%, var(--tpl-color-bg)); }
.tpl-checkout__discount-applied > span { flex: 1; font-weight: 700; }
.tpl-checkout__discount-applied .tpl-comment__reply { margin: 0; }
.tpl-cart__discount dd { color: var(--tpl-color-success); }

/* ---------- نوبت‌دهی آنلاین ---------- */
.tpl-booking__head { margin-block-end: var(--tpl-space-6); }
.tpl-booking__head .tpl-blog__title { margin: 0; }
.tpl-booking__steps { display: flex; flex-wrap: wrap; gap: var(--tpl-space-2); list-style: none; margin: 0 0 var(--tpl-space-6); padding: 0; font-size: var(--tpl-text-sm); }
.tpl-booking__steps li { display: inline-flex; align-items: center; gap: var(--tpl-space-2); padding: var(--tpl-space-1) var(--tpl-space-3) var(--tpl-space-1) var(--tpl-space-1); border-radius: var(--tpl-radius-full); background: var(--tpl-color-surface); color: var(--tpl-color-text-muted); }
.tpl-booking__steps li span { display: inline-grid; place-items: center; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 50%; background: var(--tpl-color-bg); font-weight: 700; }
.tpl-booking__steps li.is-done { color: var(--tpl-color-text); }
.tpl-booking__steps li.is-current { background: var(--tpl-color-primary); color: var(--tpl-color-on-primary, #fff); font-weight: 700; }
.tpl-booking__steps li.is-current span { color: var(--tpl-color-primary-text); }
.tpl-booking__summary { display: flex; flex-wrap: wrap; gap: var(--tpl-space-2) var(--tpl-space-6); margin: 0 0 var(--tpl-space-6); padding: var(--tpl-space-4) var(--tpl-space-5); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg); }
.tpl-booking__summary div { display: flex; gap: var(--tpl-space-2); align-items: baseline; }
.tpl-booking__summary dt { color: var(--tpl-color-text-muted); font-weight: 400; }
.tpl-booking__summary dd { margin: 0; font-weight: 700; }
.tpl-booking__change { margin-inline-start: var(--tpl-space-2); font-size: var(--tpl-text-sm); font-weight: 400; color: var(--tpl-color-primary-text); }
.tpl-booking__services { list-style: none; margin: var(--tpl-space-4) 0 0; padding: 0; display: grid; gap: var(--tpl-space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.tpl-booking__service { display: grid; gap: var(--tpl-space-2); block-size: 100%; padding: var(--tpl-space-5); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg); background: var(--tpl-color-bg); color: var(--tpl-color-text); text-decoration: none; transition: border-color var(--tpl-duration-fast) var(--tpl-ease), transform var(--tpl-duration-fast) var(--tpl-ease); }
.tpl-booking__service:hover, .tpl-booking__service:focus-visible { border-color: var(--tpl-color-primary); transform: translateY(-2px); }
.tpl-booking__service-name { font-weight: 800; font-size: var(--tpl-text-lg); }
.tpl-booking__service-meta { display: flex; justify-content: space-between; gap: var(--tpl-space-3); margin-block-start: auto; padding-block-start: var(--tpl-space-2); border-block-start: 1px dashed var(--tpl-color-border); font-size: var(--tpl-text-sm); font-weight: 700; }
.tpl-booking__staff, .tpl-booking__days, .tpl-booking__times { list-style: none; margin: var(--tpl-space-4) 0 0; padding: 0; display: grid; gap: var(--tpl-space-3); }
.tpl-booking__staff { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.tpl-booking__days { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.tpl-booking__times { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
.tpl-booking__person, .tpl-booking__day, .tpl-booking__time { display: flex; align-items: center; justify-content: center; gap: var(--tpl-space-3); min-block-size: 48px; padding: var(--tpl-space-3) var(--tpl-space-4); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-md); background: var(--tpl-color-bg); color: var(--tpl-color-text); text-decoration: none; font-weight: 700; text-align: center; transition: border-color var(--tpl-duration-fast) var(--tpl-ease), background var(--tpl-duration-fast) var(--tpl-ease); }
.tpl-booking__person { justify-content: flex-start; text-align: start; }
.tpl-booking__person i { font-size: 1.75rem; color: var(--tpl-color-primary-text); }
.tpl-booking__person span { display: grid; }
.tpl-booking__day { flex-direction: column; gap: 0; }
.tpl-booking__day small { font-weight: 400; font-size: var(--tpl-text-xs); }
.tpl-booking__time { font-variant-numeric: tabular-nums; }
a.tpl-booking__person:hover, a.tpl-booking__day:hover, a.tpl-booking__time:hover,
a.tpl-booking__person:focus-visible, a.tpl-booking__day:focus-visible, a.tpl-booking__time:focus-visible { border-color: var(--tpl-color-primary); background: color-mix(in srgb, var(--tpl-color-primary) 8%, var(--tpl-color-bg)); }
.tpl-booking__day.is-disabled { color: var(--tpl-color-text-muted); background: var(--tpl-color-surface); border-style: dashed; cursor: not-allowed; }
.tpl-booking__confirm { max-inline-size: 36rem; display: grid; gap: var(--tpl-space-3); }
.tpl-booking__confirm p { margin: 0; }
.tpl-booking__when { font-size: var(--tpl-text-lg); font-weight: 800; color: var(--tpl-color-primary-text); }
/* ظرفیت گروهی، اقامت چندشبه و پیش‌پرداخت */
.tpl-booking__time { flex-direction: column; gap: 0; }
.tpl-booking__service-meta { flex-wrap: wrap; }
.tpl-booking__service-meta > span:last-child { white-space: nowrap; }
.tpl-booking__time small { white-space: nowrap; }
.tpl-booking__time small, .tpl-booking__night small { font-weight: 400; font-size: var(--tpl-text-xs); color: var(--tpl-color-text-muted); }
.tpl-booking__nights { list-style: none; margin: var(--tpl-space-4) 0 0; padding: 0; display: grid; gap: var(--tpl-space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.tpl-booking__night { display: grid; gap: var(--tpl-space-1); min-block-size: 48px; padding: var(--tpl-space-3) var(--tpl-space-4); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-md); background: var(--tpl-color-bg); color: var(--tpl-color-text); text-decoration: none; transition: border-color var(--tpl-duration-fast) var(--tpl-ease), background var(--tpl-duration-fast) var(--tpl-ease); }
.tpl-booking__night strong { font-size: var(--tpl-text-lg); }
a.tpl-booking__night:hover, a.tpl-booking__night:focus-visible { border-color: var(--tpl-color-primary); background: color-mix(in srgb, var(--tpl-color-primary) 8%, var(--tpl-color-bg)); }
.tpl-account__order .tpl-booking__actions { grid-column: 1 / -1; justify-self: stretch; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--tpl-space-2); }
.tpl-booking__pay { display: grid; gap: var(--tpl-space-2); margin: 0; padding: var(--tpl-space-4); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-md); background: var(--tpl-color-surface); }
.tpl-booking__pay div { display: flex; justify-content: space-between; gap: var(--tpl-space-3); }
.tpl-booking__pay dt { color: var(--tpl-color-text-muted); }
.tpl-booking__pay dd { margin: 0; font-weight: 700; }
.tpl-booking__pay .is-due dd { color: var(--tpl-color-primary-text); font-size: var(--tpl-text-lg); }
.tpl-booking-block__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--tpl-space-4); }
.tpl-booking-block__head .tpl-h2, .tpl-booking-block__head .tpl-lead { margin: 0; }

/* ===== فرم‌ساز (سکشن «form»): فقط توکن‌های قالب؛ همان ظاهر tpl-form در هر ۳۹ قالب ===== */
.tpl-formblock__head { display: grid; gap: var(--tpl-space-2); margin-block-end: var(--tpl-space-6); }
.tpl-formblock__head .tpl-h2, .tpl-formblock__head .tpl-lead { margin: 0; }
.tpl-formblock .tpl-form > .tpl-notice { margin: 0; }
.tpl-formblock__legend { margin: 0; }
.tpl-formblock__legend span, .tpl-choices legend span, .tpl-choice--single span span { color: var(--tpl-color-danger); }
.tpl-choices { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.tpl-choices legend { float: inline-start; inline-size: 100%; margin: 0 0 var(--tpl-space-1); padding: 0; }
.tpl-choices legend + * { clear: both; }
.tpl-choices__list { display: flex; flex-wrap: wrap; gap: var(--tpl-space-2); }
.tpl-choice { display: inline-flex; align-items: center; gap: var(--tpl-space-2); min-block-size: 44px; padding: var(--tpl-space-2) var(--tpl-space-4); border: var(--tpl-border-width, 1px) solid var(--tpl-color-border-strong); border-radius: var(--tpl-radius-md); background: var(--tpl-color-bg); color: var(--tpl-color-text); cursor: pointer; font-size: var(--tpl-text-sm); transition: border-color var(--tpl-duration-fast) var(--tpl-ease), background-color var(--tpl-duration-fast) var(--tpl-ease); }
.tpl-choice input { inline-size: 18px; block-size: 18px; margin: 0; flex: none; accent-color: var(--tpl-color-primary); }
.tpl-choice:has(input:checked) { border-color: var(--tpl-color-primary); background: color-mix(in srgb, var(--tpl-color-primary) 8%, var(--tpl-color-bg)); }
.tpl-choice:has(input:focus-visible) { outline: 2px solid var(--tpl-color-primary-text); outline-offset: 2px; }
.tpl-choices[aria-invalid="true"] .tpl-choice { border-color: var(--tpl-color-danger); }
.tpl-choice--single { display: flex; align-items: flex-start; padding: 0; border: 0; background: transparent; min-block-size: 0; font-size: var(--tpl-text-base, 1rem); }
.tpl-choice--single input { margin-block-start: 0.2em; }
.tpl-choice--single:has(input:checked) { background: transparent; }
.tpl-formblock__done { display: grid; justify-items: center; gap: var(--tpl-space-3); padding: clamp(1.5rem, 1rem + 3vw, 3rem); text-align: center; background: var(--tpl-color-surface); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg); }
.tpl-formblock__done .bi { font-size: 2.5rem; line-height: 1; color: var(--tpl-color-success); }
.tpl-formblock__done p { margin: 0; font-size: var(--tpl-text-lg); font-weight: 700; max-inline-size: 48ch; }
/* ===== اعلان سایت و دکمه گفت‌وگو (_BodyStart / _BodyEnd؛ هر ۳۷ قالب، فقط توکن) ===== */
.tpl-announce { position: relative; z-index: 2; background: var(--tpl-color-primary); color: var(--tpl-color-on-primary); font-size: var(--tpl-text-sm); line-height: 1.6; }
.tpl-announce__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--tpl-space-1) var(--tpl-space-4); min-block-size: 44px; padding-block: var(--tpl-space-2); padding-inline-end: calc(var(--tpl-container-pad, 1rem) + 2.25rem); position: relative; text-align: center; }
.tpl-announce__text { margin: 0; font-weight: 600; }
.tpl-announce__text .bi { margin-inline-end: var(--tpl-space-1); }
.tpl-announce a.tpl-announce__link { display: inline-flex; align-items: center; gap: 2px; min-block-size: 32px; color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.tpl-announce a.tpl-announce__link:hover { text-decoration-thickness: 2px; color: inherit; }
.tpl-announce__close, .tpl-announce-pop__close { display: inline-grid; place-items: center; inline-size: 36px; block-size: 36px; padding: 0; border: 0; border-radius: var(--tpl-radius-full); background: transparent; color: inherit; cursor: pointer; }
.tpl-announce__close { position: absolute; inset-inline-end: var(--tpl-container-pad, 1rem); inset-block-start: 50%; translate: 0 -50%; }
.tpl-announce__close:hover, .tpl-announce-pop__close:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.tpl-announce :focus-visible { outline-color: var(--tpl-color-on-primary); }
/* سربرگ‌های شناور روی Hero (fixed/absolute در بالای صفحه) نوار اعلان را نپوشانند. */
.jsh--over-hero .tpl-announce ~ .jsh-header, .flm--over .tpl-announce ~ .flm-header, .sfr--overlay .tpl-announce ~ .sfr-header { inset-block-start: auto; }
.jdh--overlay .tpl-announce ~ .jdh-header, .ghb--over-video .tpl-announce ~ .ghb-header { top: var(--tpl-announce-offset, auto); }

/* پنجره کوچک اعلان: غیرمسدودکننده، گوشه پایین، مقابل دکمه گفت‌وگو. فیزیکی (چپ/راست) چون گزینه پنل فیزیکی است. */
.tpl-announce-pop { position: fixed; z-index: 90; inset-block-end: max(var(--tpl-space-4), env(safe-area-inset-bottom)); inline-size: min(22rem, calc(100vw - 2rem)); display: grid; gap: var(--tpl-space-3); justify-items: start; padding: var(--tpl-space-5); padding-inline-end: calc(var(--tpl-space-5) + 1.5rem); background: var(--tpl-color-surface); color: var(--tpl-color-text); border: 1px solid var(--tpl-color-border); border-block-start: 4px solid var(--tpl-color-primary); border-radius: var(--tpl-radius-lg); box-shadow: var(--tpl-shadow-3); }
.tpl-announce-pop--right { right: var(--tpl-space-4); }
.tpl-announce-pop--left { left: var(--tpl-space-4); }
.tpl-announce-pop__text { margin: 0; font-weight: 700; line-height: 1.7; }
.tpl-announce-pop__text .bi { color: var(--tpl-color-primary-text); margin-inline-end: var(--tpl-space-1); }
.tpl-announce-pop a.tpl-announce-pop__btn { color: var(--tpl-color-on-primary); text-decoration: none; }
.tpl-announce-pop__close { position: absolute; inset-block-start: var(--tpl-space-2); inset-inline-end: var(--tpl-space-2); }
@media (max-width: 639.98px) {
  .tpl-announce-pop { left: var(--tpl-space-4); right: var(--tpl-space-4); inline-size: auto; }
  .tpl-announce-pop--above-chat { inset-block-end: calc(max(var(--tpl-space-4), env(safe-area-inset-bottom)) + 4.5rem); }
}

/* دکمه شناور گفت‌وگو (<details>: بدون JS هم باز و بسته می‌شود) */
.tpl-chat { position: fixed; z-index: 90; inset-block-end: max(var(--tpl-space-4), env(safe-area-inset-bottom)); font-size: var(--tpl-text-sm); }
.tpl-chat--left { left: var(--tpl-space-4); }
.tpl-chat--right { right: var(--tpl-space-4); }
.tpl-chat__toggle { list-style: none; display: grid; place-items: center; inline-size: 56px; block-size: 56px; border-radius: var(--tpl-radius-full); background: var(--tpl-color-primary); color: var(--tpl-color-on-primary); box-shadow: var(--tpl-shadow-3); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.tpl-chat__toggle::-webkit-details-marker { display: none; }
.tpl-chat__toggle::marker { content: ""; }
.tpl-chat__toggle:hover { background: var(--tpl-color-primary-hover); }
.tpl-chat__toggle:focus-visible { outline: 3px solid var(--tpl-focus-ring); outline-offset: 3px; }
.tpl-chat__toggle > .bi { grid-area: 1 / 1; }
.tpl-chat__close, .tpl-chat[open] .tpl-chat__open { display: none; }
.tpl-chat[open] .tpl-chat__close { display: inline-block; font-size: 1.25rem; }
.tpl-chat__panel { position: absolute; inset-block-end: calc(100% + var(--tpl-space-3)); inline-size: min(18rem, calc(100vw - 2rem)); padding: var(--tpl-space-4); background: var(--tpl-color-surface); color: var(--tpl-color-text); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg); box-shadow: var(--tpl-shadow-3); }
.tpl-chat--left .tpl-chat__panel { left: 0; }
.tpl-chat--right .tpl-chat__panel { right: 0; }
.tpl-chat__welcome { margin: 0 0 var(--tpl-space-3); line-height: 1.7; color: var(--tpl-color-text); }
.tpl-chat__list { display: grid; gap: var(--tpl-space-2); margin: 0; padding: 0; list-style: none; }
.tpl-chat a.tpl-chat__item { display: flex; align-items: center; gap: var(--tpl-space-3); min-block-size: 48px; padding: var(--tpl-space-2) var(--tpl-space-3); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-md); background: var(--tpl-color-bg); color: var(--tpl-color-text); font-weight: 700; text-decoration: none; }
.tpl-chat a.tpl-chat__item:hover { border-color: var(--tpl-color-primary); background: var(--tpl-color-primary-soft); color: var(--tpl-color-text); }
.tpl-chat__icon { display: grid; place-items: center; inline-size: 32px; block-size: 32px; flex: none; border-radius: var(--tpl-radius-full); background: var(--tpl-color-primary-soft); color: var(--tpl-color-primary-text); font-size: 1.05rem; }
.tpl-chat__meta { margin-inline-start: auto; font-weight: 400; color: var(--tpl-color-text-muted); font-size: var(--tpl-text-xs); }
/* منوی تمام‌صفحه موبایل باز است: دکمه و پنجره کنار بروند. */
.tpl-nav-open .tpl-chat, .tpl-nav-open .tpl-announce-pop { display: none; }
/* فضای خالی زیر پاورقی تا دکمه شناور آخرین سطر را نپوشاند. */
@media (max-width: 1279.98px) {
  body:has(> .tpl-chat) main ~ footer { padding-block-end: calc(var(--tpl-space-8) + 56px); }
}
@media (prefers-reduced-motion: no-preference) {
  .tpl-chat:not(.tpl-still) .tpl-chat__toggle { transition: transform var(--tpl-duration-fast) var(--tpl-ease), background-color var(--tpl-duration-fast) var(--tpl-ease); }
  .tpl-chat:not(.tpl-still) .tpl-chat__toggle:hover { transform: translateY(-2px); }
  .tpl-chat:not(.tpl-still)[open] .tpl-chat__panel { animation: tpl-pop-in var(--tpl-duration-base, 200ms) var(--tpl-ease) both; }
  .tpl-announce-pop:not(.tpl-still):not([hidden]) { animation: tpl-pop-in 320ms var(--tpl-ease) both; }
}
@keyframes tpl-pop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media print { .tpl-chat, .tpl-announce, .tpl-announce-pop { display: none !important; } }

/* ===== سفارش آنلاین غذا (/order) و دکمه «سفارش آنلاین» سکشن منو ===== */
.tpl-food__head { margin-block-end: var(--tpl-space-5); }
.tpl-food__head .tpl-blog__title { margin: 0 0 var(--tpl-space-3); }
.tpl-food__facts { display: flex; flex-wrap: wrap; gap: var(--tpl-space-2) var(--tpl-space-4); margin: 0; padding: 0; list-style: none; font-size: var(--tpl-text-sm); color: var(--tpl-color-text-muted); }
.tpl-food__facts li { display: inline-flex; align-items: center; gap: var(--tpl-space-1); }
.tpl-food__facts .is-open { color: var(--tpl-color-text); font-weight: 700; }
.tpl-food__facts .is-open .bi { color: var(--tpl-color-success); font-size: 0.6rem; }
.tpl-food__facts .is-closed { color: var(--tpl-color-text); font-weight: 700; }
.tpl-food__tabs { margin-block-end: var(--tpl-space-5); padding-block: var(--tpl-space-2); border-block: 1px solid var(--tpl-color-border); }
.tpl-food__tabs .tpl-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-block-end: 2px; }
.tpl-food__tabs .tpl-chip { white-space: nowrap; text-decoration: none; color: var(--tpl-color-text); min-block-size: 40px; }
.tpl-food__tabs .tpl-chip:hover, .tpl-food__tabs .tpl-chip:focus-visible { border-color: var(--tpl-color-primary); color: var(--tpl-color-primary-text); }
.tpl-food__layout { display: grid; gap: var(--tpl-space-6); }
@media (min-width: 992px) {
  .tpl-food__layout { grid-template-columns: minmax(0, 1fr) 24rem; align-items: start; }
  .tpl-food__aside { position: sticky; inset-block-start: 100px; max-block-size: calc(100vh - 120px); overflow-y: auto; }
  .tpl-food__bar { display: none !important; }
}
.tpl-food__cat { margin-block-end: var(--tpl-space-8); scroll-margin-block-start: 110px; }
.tpl-food__cat > .tpl-h3 { margin: 0 0 var(--tpl-space-3); }
.tpl-food__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tpl-space-3); }
.tpl-food__dish { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--tpl-space-3) var(--tpl-space-4); padding: var(--tpl-space-3) var(--tpl-space-4); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg); background: var(--tpl-color-bg); scroll-margin-block-start: 120px; }
.tpl-food__dish:not(:has(.tpl-food__img)) { grid-template-columns: minmax(0, 1fr) auto; }
.tpl-food__dish.is-picked { border-color: var(--tpl-color-primary); box-shadow: inset 3px 0 0 var(--tpl-color-primary); }
.tpl-food__dish.is-out { opacity: 0.65; }
.tpl-food__dish:target { outline: 2px solid var(--tpl-color-primary-text); outline-offset: 2px; }
.tpl-food__img { inline-size: 80px; block-size: 80px; object-fit: cover; border-radius: var(--tpl-radius-md); background: var(--tpl-color-surface); }
.tpl-food__name { margin: 0; font-size: var(--tpl-text-base); font-weight: 800; color: var(--tpl-color-text); }
.tpl-food__desc { margin: var(--tpl-space-1) 0 0; font-size: var(--tpl-text-sm); color: var(--tpl-color-text-muted); line-height: 1.7; }
.tpl-food__price { margin: var(--tpl-space-1) 0 0; font-weight: 700; color: var(--tpl-color-primary-text); font-variant-numeric: tabular-nums; }
.tpl-food__ctl form { margin: 0; }
.tpl-food__ctl .tpl-btn--sm { white-space: nowrap; }
.tpl-food__qty { display: inline-flex; align-items: center; border: 1px solid var(--tpl-color-primary); border-radius: var(--tpl-radius-full); overflow: hidden; background: var(--tpl-color-bg); }
.tpl-food__step { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border: 0; background: transparent; color: var(--tpl-color-primary-text); font-size: 1.1rem; cursor: pointer; }
.tpl-food__step:hover { background: color-mix(in srgb, var(--tpl-color-primary) 12%, var(--tpl-color-bg)); }
.tpl-food__step:focus-visible { outline: 2px solid var(--tpl-color-primary-text); outline-offset: -2px; }
.tpl-food__count { min-inline-size: 2rem; text-align: center; font-weight: 800; color: var(--tpl-color-text); }
.tpl-food__aside { display: grid; gap: var(--tpl-space-4); scroll-margin-block-start: 100px; }
.tpl-food__aside .tpl-cart__summary { position: static; }
.tpl-food__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tpl-space-2); }
.tpl-food__lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--tpl-space-3); padding-block-end: var(--tpl-space-2); border-block-end: 1px dashed var(--tpl-color-border); }
.tpl-food__lines li.is-out .tpl-food__line-name { text-decoration: line-through; }
.tpl-food__line-name small { display: block; text-decoration: none; }
.tpl-food__line-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.tpl-food__line-remove { grid-column: 1 / -1; margin: 0; }
.tpl-food__form { display: grid; gap: var(--tpl-space-4); padding: var(--tpl-space-6); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg); background: var(--tpl-color-surface); scroll-margin-block-start: 100px; }
.tpl-food__form .tpl-h4, .tpl-food__form .tpl-notice { margin: 0; }
.tpl-food__form .tpl-form__row { grid-template-columns: 1fr; }
.tpl-food__form:has(input[name="Fulfillment"][value="pickup"]:checked) .tpl-food__address { display: none; }
.tpl-food__bar { position: sticky; inset-block-end: var(--tpl-space-3); z-index: 5; display: flex; align-items: center; justify-content: center; gap: var(--tpl-space-2); inline-size: fit-content; max-inline-size: calc(100% - 5rem); margin: var(--tpl-space-4) auto 0; padding: var(--tpl-space-3) var(--tpl-space-5); border-radius: var(--tpl-radius-full); background: var(--tpl-color-primary); color: var(--tpl-color-on-primary); font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgb(0 0 0 / 0.18); }
.tpl-food__bar:hover, .tpl-food__bar:focus-visible { background: var(--tpl-color-primary-hover); color: var(--tpl-color-on-primary); }
@media (max-width: 575.98px) {
  .tpl-food__dish { gap: var(--tpl-space-2) var(--tpl-space-3); padding: var(--tpl-space-3); }
  .tpl-food__img { inline-size: 56px; block-size: 56px; }
  .tpl-food__ctl .tpl-btn--sm { padding-inline: var(--tpl-space-3); }
  .tpl-food__step { inline-size: 40px; }
  .tpl-food__form { padding: var(--tpl-space-4); }
}
.tpl-order-cta { display: flex; justify-content: center; margin: var(--tpl-space-6) 0 0; }

/* ---------- سایت دوزبانه: سوئیچ زبان «فا / EN» و آینه شدن آیکون‌های جهت‌دار در LTR ---------- */
.tpl-lang { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: var(--tpl-radius-full); font-size: 0.8125rem; line-height: 1; white-space: nowrap; }
.tpl-lang__item { display: inline-grid; place-items: center; min-inline-size: 36px; block-size: 32px; padding-inline: var(--tpl-space-2); border-radius: var(--tpl-radius-full); color: inherit; text-decoration: none; font-weight: 600; font-family: var(--tpl-font-body); }
.tpl-lang__item[lang="en"] { letter-spacing: 0.04em; }
a.tpl-lang__item:hover { background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; }
a.tpl-lang__item:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.tpl-lang__item.is-current { background: color-mix(in srgb, currentColor 16%, transparent); font-weight: 800; }
.tpl-lang__sep { opacity: 0.45; font-size: 0.75rem; }
/* آیکون‌هایی که «جلو/عقب» را نشان می‌دهند در RTL به چپ اشاره می‌کنند؛ در LTR قرینه می‌شوند. */
[dir="ltr"] :is(.bi-arrow-left, .bi-arrow-right, .bi-arrow-left-short, .bi-arrow-right-short, .bi-chevron-left, .bi-chevron-right,
  .bi-chevron-double-left, .bi-chevron-double-right, .bi-caret-left-fill, .bi-caret-right-fill, .bi-arrow-left-circle, .bi-arrow-right-circle,
  .bi-arrow-up-left, .bi-arrow-up-right, .bi-arrow-down-left, .bi-arrow-down-right)::before { display: inline-block; transform: scaleX(-1); }
/* موبایل: فقط پیوند زبان دیگر (یک دکمه کوچک) تا سربرگ شلوغ نشود. */
@media (max-width: 575.98px) {
  .tpl-lang { padding: 0; border-color: transparent; }
  .tpl-lang__item.is-current, .tpl-lang__sep { display: none; }
  .tpl-lang__item { min-inline-size: 36px; block-size: 36px; padding-inline: 6px; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
}

/* نشان «ساخته‌شده با سایت‌ساز» (Tpl/_BodyEnd) — زیر فوتر، کوچک، رنگ متن کم‌رنگ قالب (AA)، جهت از سند */
.tpl-made-with { display: block; text-align: center; padding: var(--tpl-space-2, 8px) var(--tpl-space-4, 16px) var(--tpl-space-3, 12px); background: var(--tpl-color-bg); color: var(--tpl-color-text-muted); font-size: 0.75rem; line-height: 1.6; }
.tpl-made-with__link { color: inherit; text-decoration: none; border-block-end: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
a.tpl-made-with__link:hover { color: var(--tpl-color-text); }
a.tpl-made-with__link:focus-visible { outline: 3px solid var(--tpl-focus-ring); outline-offset: 2px; border-radius: 2px; }
/* ===== سکشن «پکیج‌ها و قیمت‌ها» سایت نمایندگی (reseller-packages) ===== */
.rpk { scroll-margin-block-start: 80px; }
.rpk-bundles { margin-block-end: var(--tpl-space-8); }
.rpk-bundle .tpl-checklist { margin-block-end: var(--tpl-space-4); }
.rpk-empty { color: var(--tpl-color-text-muted); }
.rpk-items { max-inline-size: 760px; margin-inline: auto; }
.rpk-items__title { font-size: var(--tpl-text-lg); margin: 0 0 var(--tpl-space-3); font-family: var(--tpl-font-heading); }
.rpk-list { list-style: none; margin: 0; padding: 0; border: var(--tpl-border-width, 1px) solid var(--tpl-color-border); border-radius: var(--tpl-radius-md); background: var(--tpl-color-surface); }
.rpk-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--tpl-space-2) var(--tpl-space-4); padding: var(--tpl-space-3) var(--tpl-space-4); }
.rpk-row + .rpk-row { border-block-start: 1px solid var(--tpl-color-border); }
.rpk-row__name { display: inline-flex; gap: var(--tpl-space-2); align-items: baseline; min-inline-size: 0; overflow-wrap: anywhere; }
.rpk-row__name .bi { color: var(--tpl-color-primary-text, var(--tpl-color-primary)); }
.rpk-row__price { white-space: nowrap; }
.rpk-row__price small { color: var(--tpl-color-text-muted); margin-inline-start: var(--tpl-space-1); }
.rpk-note { text-align: center; color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); margin-block: var(--tpl-space-6) 0; }
/* صفحه محصول: وزن و ردیف‌های «با این بخرید» و «محصولات مرتبط» (_ProductExtras) */
.tpl-pdp__weight { display: flex; align-items: center; gap: var(--tpl-space-2); margin-block-start: var(--tpl-space-6); }
.tpl-pdp__related { margin-block-start: var(--tpl-space-12); padding-block-start: var(--tpl-space-8); border-block-start: 1px solid var(--tpl-color-border); display: grid; gap: var(--tpl-space-5); }
.tpl-pdp__related-head { display: grid; gap: var(--tpl-space-1); }

/* نمونه قیمت عمده (صفحه درخواست نمایندگی لندینگ پلتفرم) */
.wp-card { max-inline-size: 640px; margin-inline: auto; padding: var(--tpl-space-6); display: grid; gap: var(--tpl-space-4); }
.wp-list { list-style: none; margin: 0; padding: 0; }
.wp-list li { display: flex; justify-content: space-between; gap: var(--tpl-space-4); padding-block: var(--tpl-space-3); border-block-end: 1px solid var(--tpl-color-border); }
.wp-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wp-meta { margin: 0; display: flex; flex-wrap: wrap; gap: var(--tpl-space-2) var(--tpl-space-4); color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); }
.wp-card .tpl-btn { justify-self: start; }

/* ===== رگال محصولات (product-rail): نمای سرور پیش از React، بدون JS و در پیش‌نمایش پنل ===== */
.tpl-rail { overflow: clip; }
.tpl-rail__static { display: grid; gap: var(--tpl-space-4); text-align: center; }
.tpl-rail__eyebrow { color: var(--tpl-color-text-muted); font-size: var(--tpl-text-sm); margin: 0; }
.tpl-rail__title { margin: 0; }
.tpl-rail__bar { block-size: 8px; border-radius: 99px; margin-block-start: var(--tpl-space-6); margin-inline: var(--tpl-space-2);
  background: linear-gradient(to bottom, color-mix(in oklab, var(--tpl-color-text-muted) 35%, white), var(--tpl-color-text-muted) 60%, color-mix(in oklab, var(--tpl-color-text-muted) 55%, black));
  box-shadow: 0 6px 10px -6px color-mix(in oklab, var(--tpl-color-text) 40%, transparent); }
.tpl-rail__list { list-style: none; margin: -4px 0 0; padding: 0 var(--tpl-space-2) var(--tpl-space-2); display: flex; gap: var(--tpl-space-3);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tpl-rail__item { flex: 0 0 clamp(128px, 30vw, 170px); scroll-snap-align: center; }
.tpl-rail__link { display: grid; justify-items: center; gap: var(--tpl-space-2); color: inherit; text-decoration: none; padding-block-end: var(--tpl-space-2); }
.tpl-rail__link:focus-visible { outline: 2px solid var(--tpl-color-primary); outline-offset: 4px; border-radius: var(--tpl-radius-md); }
.tpl-rail__hook { inline-size: 18px; block-size: 22px; border: 2px solid var(--tpl-color-text-muted); border-block-end: 0; border-radius: 12px 12px 0 0; }
.tpl-rail__art { display: block; inline-size: 100%; aspect-ratio: 200 / 250; color: var(--rail-color, var(--tpl-color-text-muted));
  filter: drop-shadow(0 10px 12px color-mix(in oklab, var(--tpl-color-text) 18%, transparent)); transition: transform var(--tpl-duration-base) var(--tpl-ease); transform-origin: 50% 0; }
.tpl-rail__art img, .tpl-rail__art svg { inline-size: 100%; block-size: 100%; object-fit: contain; object-position: top; display: block; }
.tpl-rail__link:hover .tpl-rail__art { transform: rotate(-2deg); }
.tpl-rail__name { font-size: var(--tpl-text-sm); font-weight: 600; line-height: 1.5; }
.tpl-rail__tag { font-size: var(--tpl-text-xs); color: var(--tpl-color-text-muted); border: 1px solid var(--tpl-color-border); border-radius: 4px; padding: 2px 8px; background: var(--tpl-color-surface); }
.tpl-rail__caption { color: var(--tpl-color-text-muted); margin: 0 auto; max-inline-size: 46ch; }
.tpl-rail__actions { margin: 0; }
.tpl-rail:has([data-rx-ready]) { padding-block: calc(var(--tpl-section-y) * 0.35); }
@media (prefers-reduced-motion: reduce) { .tpl-rail__art { transition: none; } }

/* ===== سرآغاز سه‌بعدی پیک (courier-globe): نمای سرور پیش از React/three، بدون JS/WebGL و در پیش‌نمایش پنل ===== */
.tpl-cg { --cg-ocean: #7fb2c4; display: grid; align-items: center; min-block-size: min(92svh, 860px); overflow: hidden;
  background: radial-gradient(ellipse at 94% 12%, #fffefa 0%, #fbfcff 38%, #eef5ff 100%); color: var(--tpl-color-text); }
.tpl-cg[data-theme="dark"] { --cg-ocean: #2c5672; background: radial-gradient(ellipse at 94% 12%, #172238 0%, #0d1526 50%, #0f1c35 100%); color: #f2f5ff; }
@media (min-width: 900px) { .tpl-cg { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.tpl-cg__copy { padding: clamp(28px, 6vh, 72px) clamp(20px, 6vw, 88px) 12px; }
.tpl-cg__eyebrow { color: var(--cg-accent); font-weight: 600; margin: 0 0 14px; }
.tpl-cg__title { display: grid; margin: 0 0 18px; font-weight: 800; line-height: 1.25; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.4rem); }
.tpl-cg__title .is-em { color: var(--cg-accent); }
.tpl-cg__subtitle { opacity: .8; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.9; margin: 0 0 26px; max-inline-size: 38ch; }
.tpl-cg__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.tpl-cg .tpl-cg__btn { background: var(--cg-accent); border-color: var(--cg-accent); border-radius: 999px; color: #fff; }
.tpl-cg__visual { position: relative; block-size: clamp(380px, 100vw, 620px); container-type: size; }
@media (min-width: 900px) { .tpl-cg__visual { block-size: min(92svh, 860px); } }
.tpl-cg__planet { position: absolute; inset-inline-start: 50%; inset-block-start: 50%; translate: -50% -50%; inline-size: min(75cqw, 64.3cqh); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, color-mix(in oklab, var(--cg-ocean) 60%, white), var(--cg-ocean) 55%, color-mix(in oklab, var(--cg-ocean) 70%, black)); }
[dir="rtl"] .tpl-cg__planet { translate: 50% -50%; }
.tpl-cg__planet i { position: absolute; border-radius: 50%; background: #9cc58b; }
.tpl-cg__planet i:nth-child(1) { inline-size: 34%; block-size: 22%; inset-block-start: 20%; inset-inline-start: 18%; }
.tpl-cg__planet i:nth-child(2) { inline-size: 28%; block-size: 30%; inset-block-start: 52%; inset-inline-start: 56%; background: #7aa96f; }
.tpl-cg__planet i:nth-child(3) { inline-size: 16%; block-size: 12%; inset-block-start: 70%; inset-inline-start: 22%; }
@media (max-width: 899px) { .tpl-cg { min-block-size: 0; } .tpl-cg__visual { margin-inline: -16%; } }

/* ===== میز کار و کیت ابزار (tool-kit): نمای سرور پیش از React، بدون JS و در پیش‌نمایش پنل ===== */
.tpl-kit { display: grid; gap: var(--tpl-space-8); padding-block: var(--tpl-section-y); }
@media (min-width: 992px) { .tpl-kit { grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); align-items: start; } }
.tpl-kit__eyebrow { color: var(--tpl-color-primary-text); font-weight: 700; margin: 0 0 10px; }
.tpl-kit__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.25; margin: 0 0 14px; }
.tpl-kit__actions { margin: var(--tpl-space-4) 0 0; }
.tpl-kit__projects { display: grid; gap: var(--tpl-space-4); }
.tpl-kit__project { background: var(--tpl-color-surface); border: 1px solid var(--tpl-color-border); border-radius: var(--tpl-radius-lg); padding: var(--tpl-space-4); }
.tpl-kit__project-title { font-size: var(--tpl-text-lg); margin: 0 0 10px; }
.tpl-kit__tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tpl-kit__tools a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; font-size: var(--tpl-text-sm); }
.tpl-kit__tools img { inline-size: 48px; block-size: 48px; object-fit: contain; border-radius: var(--tpl-radius-sm); background: var(--tpl-color-bg); }
.tpl-kit__tools span { color: var(--tpl-color-text-muted); font-weight: 400; margin-inline-start: auto; white-space: nowrap; }
