/* ==========================================================================
   فونت میزبانی‌شدهٔ محلی — بدون هیچ CDN و بدون Google Fonts
   IRANSansX (نسخهٔ D4 = ارقام فارسی) — ۹ وزن، فقط woff2؛ مرورگر فقط وزن‌های استفاده‌شده را می‌گیرد.
   ExtraBlack و Heavy عمداً بسته‌بندی نشدند (هر دو usWeightClass=900 دارند و جایی استفاده نمی‌شوند).
   ⛔ Peyda از ۲.۱۴ حذف شد.
   size-adjust ۹۵٪: ایران‌سنس در همان font-size حدود ۵٪ پهن‌تر و بلندتر از Peyda است؛ با این مقدار ردپای
   متن دقیقاً همان می‌ماند و هیچ برچسب nowrap یا چیدمانی که برای Peyda تنظیم شده بود نمی‌شکند.
   ========================================================================== */
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/iransansx/IRANSansX-ThinD4.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  size-adjust: 95%;
}
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/iransansx/IRANSansX-UltraLightD4.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  size-adjust: 95%;
}
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/iransansx/IRANSansX-LightD4.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  size-adjust: 95%;
}
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/iransansx/IRANSansX-RegularD4.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 95%;
}
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/iransansx/IRANSansX-MediumD4.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  size-adjust: 95%;
}
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/iransansx/IRANSansX-DemiBoldD4.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  size-adjust: 95%;
}
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/iransansx/IRANSansX-BoldD4.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  size-adjust: 95%;
}
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/iransansx/IRANSansX-ExtraBoldD4.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  size-adjust: 95%;
}
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/iransansx/IRANSansX-BlackD4.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  size-adjust: 95%;
}

/* ==========================================================================
   دیاکوگرافیک — Design Layer v5
   مینیمالِ گرافیکی: گرید ظریف، شیشه در جای درست، فرم‌های مایع، حرکت نرم
   ========================================================================== */

/* ══════════ 1. TOKENS ══════════ */
:root {
  color-scheme: light;

  --bg:        251 250 249;
  --bg-2:      246 244 242;
  --surface:   255 255 255;
  --surface-2: 249 248 246;

  --ink:        20  19  26;
  --ink-2:      74  72  84;
  --dim:       112 109 121;

  --line:      231 228 224;
  --line-2:    241 239 236;

  --brand:     229  35  47;
  --brand-2:   190  24  34;
  --brand-on:  255 255 255;
  --brand-text:196  23  34;      /* قرمزِ متنی — کنتراست ≥ ۴٫۵:۱ */

  --glass:      255 255 255;
  --glass-a:    .7;
  --glass-line: 255 255 255;
  --glass-line-a: .85;
  --shadow:      24  22  34;

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px;

  /* رنگ‌های معنایی — همان قرارداد پنل طراحان (vendor.css) */
  --ok:    11 115  85;
  --err:  200  38  48;
  --info:  37  99 235;
  --gold: 245 165  36;

  --ease: cubic-bezier(.22,.8,.28,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

.dark {
  color-scheme: dark;

  --bg:         11  11  16;
  --bg-2:       15  15  21;
  --surface:    20  20  27;
  --surface-2:  27  27  36;

  --ink:       240 239 244;
  --ink-2:     184 181 194;
  --dim:       141 138 151;

  --line:       40  40  50;
  --line-2:     30  30  38;

  --brand:     255  77  90;
  --brand-2:   255 110 120;
  --brand-on:   11  11  16;
  --brand-text:255 138 146;

  --ok:    52 211 153;
  --err:  248 113 113;
  --info:  96 165 250;
  --gold: 250 190  80;

  --glass:      22  22  30;
  --glass-a:    .68;
  --glass-line: 255 255 255;
  --glass-line-a: .1;
  --shadow:      0   0   0;
}

/* ══════════ 2. BASE ══════════ */
*, *::before, *::after { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: rgb(var(--bg));
  color: rgb(var(--ink));
  font-family: var(--font-sans, "IRANSansX"), ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

::selection { background: rgb(var(--brand)); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgb(var(--ink) / .16); border-radius: 999px; border: 3px solid rgb(var(--bg)); }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--brand) / .55); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid rgb(var(--brand)); outline-offset: 2px; border-radius: var(--r-sm);
}

/* ══════════ 3. TYPE ══════════ */
h1, h2, h3, h4 { letter-spacing: -.02em; }

.t-display { font-size: clamp(2.15rem, 1.15rem + 4.1vw, 3.9rem); font-weight: 700; line-height: 1.24; }
.t-h1      { font-size: clamp(1.65rem, 1.15rem + 1.9vw, 2.4rem);  font-weight: 700; line-height: 1.32; }
.t-h2      { font-size: clamp(1.3rem, 1.05rem + 1.05vw, 1.75rem); font-weight: 700; line-height: 1.4; }
.t-h3      { font-size: 1.0625rem; font-weight: 600; line-height: 1.6; }
.t-body    { font-size: .9375rem; font-weight: 400; line-height: 1.95; color: rgb(var(--ink-2)); }
.t-sm      { font-size: .8rem; font-weight: 400; line-height: 1.85; color: rgb(var(--dim)); }
.t-micro   { font-size: .7rem; font-weight: 500; color: rgb(var(--dim)); }

.text-brand, .eyebrow { color: rgb(var(--brand-text)) !important; }
.hover\:text-brand:hover, .group:hover .group-hover\:text-brand { color: rgb(var(--brand-text)) !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 20px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, currentColor, transparent);
}



.squiggle { position: relative; display: inline-block; white-space: nowrap; }
.squiggle svg {
  position: absolute; inset-inline: -2%; bottom: -.42em; width: 104%; height: .38em;
  color: rgb(var(--brand)); overflow: visible;
}
.squiggle path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.1s .45s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ══════════ 4. ICONS ══════════ */
.ic {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }

/* ══════════ 5. GRAPHIC BACKGROUNDS ══════════ */

/* گرید مهندسی — نازک، با خط پررنگ‌تر هر ۵ خانه */
.grid-bg {
  background-image:
    linear-gradient(rgb(var(--ink) / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--ink) / .05) 1px, transparent 1px),
    linear-gradient(rgb(var(--ink) / .085) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--ink) / .085) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  background-position: center;
}
.dark .grid-bg {
  background-image:
    linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / .075) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .075) 1px, transparent 1px);
}

.dots { background-image: radial-gradient(rgb(var(--ink) / .15) 1px, transparent 1.2px); background-size: 22px 22px; }
.dark .dots { background-image: radial-gradient(rgb(255 255 255 / .13) 1px, transparent 1.2px); }

/* شطرنجی شفافیت — فقط برای قاب فایل گرافیکی */
.checker {
  background-image:
    linear-gradient(45deg, rgb(var(--ink) / .04) 25%, transparent 25% 75%, rgb(var(--ink) / .04) 75%),
    linear-gradient(45deg, rgb(var(--ink) / .04) 25%, transparent 25% 75%, rgb(var(--ink) / .04) 75%);
  background-size: 14px 14px; background-position: 0 0, 7px 7px;
}

.mask-fade { -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 45%, #000 30%, transparent 100%);
                     mask-image: radial-gradient(ellipse 62% 58% at 50% 45%, #000 30%, transparent 100%); }
.mask-b    { -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
                     mask-image: linear-gradient(to bottom, #000 30%, transparent 92%); }
.mask-t    { -webkit-mask-image: linear-gradient(to top, #000 25%, transparent 90%);
                     mask-image: linear-gradient(to top, #000 25%, transparent 90%); }

/* فرم مایع */
.blob {
  position: absolute; pointer-events: none; z-index: 0;
  filter: blur(60px); opacity: .38;
  border-radius: 62% 38% 54% 46% / 52% 58% 42% 48%;
  animation: morph 24s ease-in-out infinite;
}
.dark .blob { opacity: .28; filter: blur(74px); }
.blob-2 { animation-duration: 30s; animation-direction: reverse; }
@keyframes morph {
  0%,100% { border-radius: 62% 38% 54% 46% / 52% 58% 42% 48%; transform: translate3d(0,0,0) scale(1); }
  33%     { border-radius: 42% 58% 46% 54% / 62% 42% 58% 38%; transform: translate3d(3%,-4%,0) scale(1.08); }
  66%     { border-radius: 55% 45% 62% 38% / 44% 56% 44% 56%; transform: translate3d(-4%,3%,0) scale(.95); }
}

.cropmark { width: 18px; height: 18px; position: relative; color: rgb(var(--ink) / .22); }
.cropmark::before, .cropmark::after { content: ""; position: absolute; background: currentColor; }
.cropmark::before { inset-inline-start: 50%; top: 0; bottom: 0; width: 1px; }
.cropmark::after  { top: 50%; inset-inline: 0; height: 1px; }

/* ══════════ 6. TOOL MARKS (Ps / Ai / Figma …) ══════════ */
.tool-mark {
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: var(--r-sm);
  border: 1px solid rgb(var(--line));
  color: rgb(var(--dim));
  transition: color .28s var(--ease), border-color .28s var(--ease),
              background-color .28s var(--ease), transform .28s var(--ease);
}
.tool-mark:hover {
  color: rgb(var(--brand-text)); border-color: rgb(var(--brand) / .45);
  background: rgb(var(--brand) / .06); transform: translateY(-3px);
}
.tool-mark .ic { width: 1.15rem; height: 1.15rem; }

/* واترمارک ابزارها در پس‌زمینه */
.tool-wm {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  display: flex; align-items: center; justify-content: space-around;
  gap: 4vw; padding-inline: 4vw; color: rgb(var(--ink));
  opacity: .045;
}
.dark .tool-wm { opacity: .07; }
.tool-wm .ic { width: clamp(3.5rem, 8vw, 7rem); height: clamp(3.5rem, 8vw, 7rem); stroke-width: .9; }

/* ══════════ 7. GLASS ══════════ */
.glass {
  background: rgb(var(--glass) / var(--glass-a));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
          backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgb(var(--glass-line) / var(--glass-line-a));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 10px 34px -16px rgb(var(--shadow) / .3);
}
.dark .glass { box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 10px 34px -16px rgb(0 0 0 / .85); }

/* شیشهٔ روی تصویر تیره */
.glass-dark {
  background: rgb(10 10 16 / .42);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
          backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgb(255 255 255 / .2);
  color: #fff;
}

/* ══════════ 8. BUTTONS ══════════ */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: var(--r-sm); font-weight: 600; font-size: .8rem;
  padding: .625rem 1.05rem; cursor: pointer; white-space: nowrap;
  transition: color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .3s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(-2px); }

/* موج رنگی که از پایین بالا می‌آید
   ⛔ ۲.۹.۰: همهٔ دکمه‌ها رنگ تخت دارند — بازخورد: «دکمه‌ها را گرادینت نزن، فلت بزن».
   نه پس‌زمینه، نه موج هاور، نه سایهٔ رنگی/برق داخلی گرادیانی برنگردد. */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); transition: transform .44s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }

.btn-red {
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
}
.btn-red::before { background: rgb(var(--brand-2)); }

.btn-ink { background: rgb(var(--ink)); color: rgb(var(--bg)); }
.btn-ink::before { background: rgb(var(--brand)); }
.btn-ink:hover { color: rgb(var(--brand-on)); }

.btn-line { border: 1px solid rgb(var(--line)); color: rgb(var(--ink-2)); background: rgb(var(--surface)); }
.btn-line::before { background: rgb(var(--ink)); }
.btn-line:hover { color: rgb(var(--bg)); border-color: rgb(var(--ink)); }

.btn-quiet { color: rgb(var(--ink-2)); }
.btn-quiet::before { background: rgb(var(--ink) / .07); }
.btn-quiet:hover { color: rgb(var(--ink)); }

.btn-icon { padding: 0; width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); }
.btn-icon:hover .ic { transform: none; }

@media (pointer: coarse) { .btn, button:not(.thumb):not(.acc-toggle) { min-height: 44px; } }

/* ══════════ 9. CHIPS ══════════ */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  border-radius: var(--r-sm); padding: .25rem .55rem;
  font-size: .7rem; font-weight: 600; line-height: 1.6;
  transition: color .22s, background-color .22s, border-color .22s;
}
.chip-glass { background: rgb(var(--glass) / .8); backdrop-filter: blur(10px); border: 1px solid rgb(var(--glass-line) / .5); color: rgb(var(--ink)); }
.chip-dark  { background: rgb(8 8 14 / .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; border: 1px solid rgb(255 255 255 / .2); }
.chip-red   { background: rgb(var(--brand) / .1); color: rgb(var(--brand-text)); }
.chip-line  { border: 1px solid rgb(var(--line)); color: rgb(var(--dim)); }
a.chip-line:hover { border-color: rgb(var(--brand) / .5); color: rgb(var(--brand-text)); background: rgb(var(--brand) / .05); }

/* ══════════ 9b. نشان طراح تأییدشده — مُهر قرمز ══════════
   یک المان یکسان همه‌جا: مُهر شعاعی قرمز با تیک سفید داخلش،
   دقیقاً مثل تیک تأیید شبکه‌های اجتماعی ولی با رنگ برند. */
.dg-verified {
  --v-size: 1.15rem;
  display: inline-grid;
  place-items: center;
  width: var(--v-size);
  height: var(--v-size);
  flex: 0 0 auto;
  color: rgb(var(--brand));
  vertical-align: -.18em;
}
.dg-verified .ic {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 3px rgb(var(--brand) / .45));
}
.dg-verified-lg { --v-size: 1.55rem; }
.dg-verified-xl { --v-size: 2rem; }

/* حالت نشان‌دار روی آواتار — مُهر شناور با حلقهٔ سفید */
.dg-verified-badge {
  position: absolute;
  inset-inline-end: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: rgb(var(--surface));
  box-shadow: 0 2px 8px -2px rgb(var(--shadow) / .5);
}
.dg-verified-badge .ic { width: 100%; height: 100%; color: rgb(var(--brand)); }

/* پیل کامل: مُهر + متن */
.dg-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .7rem .28rem .5rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--brand) / .28);
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand-text));
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.dg-verified-pill .ic { width: 1rem; height: 1rem; color: rgb(var(--brand)); flex: 0 0 auto; }
/* روی زمینهٔ تیره (هیروها) */
.dg-verified-pill.on-dark {
  border-color: rgb(255 255 255 / .16);
  background: rgb(255 255 255 / .08);
  color: #fff;
}

/* ══════════ 10. PREVIEW ARTWORK ══════════ */
.pv {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, var(--c1, #4f46e5), var(--c2, #1e1b4b));
  color: #fff; display: block;
}
.pv::after {
  content: ""; position: absolute; inset: 0; z-index: 4; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pv-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(34px);
  background: rgb(255 255 255 / .32); top: -22%; inset-inline-start: -14%; z-index: 1; }
.pv-frame { position: absolute; inset: 9%; border: 1px solid rgb(255 255 255 / .28); z-index: 3; pointer-events: none; }
.pv-in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 8%; gap: .35rem; }

.pv-kicker { font-size: .5rem; letter-spacing: .28em; opacity: .8; font-weight: 600; }
.pv-title  { font-size: clamp(1.1rem, 3.6cqw + .5rem, 2rem); font-weight: 700; line-height: 1.3; text-shadow: 0 2px 14px rgb(0 0 0 / .3); }
.pv-sub    { font-size: .6rem; opacity: .82; font-weight: 500; }
.pv-rule   { width: 34%; height: 1.5px; background: rgb(255 255 255 / .6); border-radius: 2px; }

.pv-poster .pv-in { justify-content: flex-end; align-items: flex-start; text-align: start; }
.pv-poster .pv-title { font-size: clamp(1rem, 8%, 1.8rem); }

.pv-box { perspective: 620px; }
.pv-box .box {
  position: absolute; z-index: 2; width: 33%; aspect-ratio: .66;
  inset-inline-start: 50%; top: 50%; translate: -50% -54%;
  transform-style: preserve-3d; transform: rotateX(-6deg) rotateY(-26deg);
  transition: transform .85s var(--ease-out);
}
.group:hover .pv-box .box { transform: rotateX(-8deg) rotateY(-15deg); }
.pv-box .face { position: absolute; inset: 0; display: grid; place-content: center; gap: .25rem; }
.pv-box .front { background: linear-gradient(160deg, #fff, #e7e7ea); color: var(--c2); box-shadow: 0 18px 34px -16px rgb(0 0 0 / .6); }
.pv-box .front b  { font-size: .78rem; font-weight: 700; letter-spacing: -.02em; }
.pv-box .front em { font-size: .42rem; font-style: normal; letter-spacing: .22em; opacity: .6; text-align: center; }
.pv-box .side { width: 26%; background: linear-gradient(160deg, #c9c9cf, #9d9da6);
  transform-origin: left center; transform: rotateY(90deg) translateX(-1px); inset-inline-start: auto; inset-inline-end: 0; }
.pv-box .top { height: 22%; top: 0; background: linear-gradient(160deg, #f2f2f4, #d5d5db);
  transform-origin: top center; transform: rotateX(90deg) translateY(-1px); }
.pv-box .pv-floor { position: absolute; inset-inline: 8%; bottom: 14%; height: 8%; z-index: 1;
  background: radial-gradient(ellipse at center, rgb(0 0 0 / .45), transparent 70%); filter: blur(5px); }

.pv-font { background: linear-gradient(150deg, var(--c1, #f4f2ef), var(--c2, #ddd8d1)); color: #221f2b; }
.pv-font .fs-big { position: absolute; z-index: 2; inset-inline-start: 8%; top: 4%; font-size: 4.6rem; font-weight: 700; line-height: 1; opacity: .92;
  transition: transform .7s var(--ease-out); }
.group:hover .pv-font .fs-big { transform: translateY(-4px); }
.pv-font .fs-lines { position: absolute; z-index: 3; inset-inline: 8%; bottom: 9%; display: grid; gap: .3rem; text-align: start; }
.pv-font .fs-lines span:nth-child(1) { font-size: .82rem; font-weight: 700; }
.pv-font .fs-lines span:nth-child(2) { font-size: .68rem; font-weight: 500; opacity: .78; }
.pv-font .fs-lines span:nth-child(3) { font-size: .58rem; font-weight: 400; opacity: .55; letter-spacing: .04em; }

.pv-banner .pv-band { position: absolute; z-index: 1; inset-block: -20%; width: 26%;
  background: rgb(255 255 255 / .13); transform: skewX(-16deg); inset-inline-start: 8%; }
.pv-banner .pv-band.b2 { inset-inline-start: 42%; background: rgb(255 255 255 / .08); width: 16%; }
.pv-banner .pv-badge { background: #fff; color: var(--c2); border-radius: 999px; padding: .2rem .7rem; font-size: .72rem; font-weight: 700; }

.pv-icons { background: linear-gradient(150deg, var(--c1, #eef2f7), var(--c2, #cfd8e3)); }
.pv-icons .grid9 { position: absolute; z-index: 2; inset: 16%; display: grid;
  grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 8%; }
.pv-icons .grid9 i { border: 1.6px solid rgb(30 30 45 / .5); border-radius: 4px; position: relative; }
.pv-icons .grid9 i:nth-child(1), .pv-icons .grid9 i:nth-child(9) { border-radius: 50%; }
.pv-icons .grid9 i:nth-child(3) { border-radius: 50% 4px 50% 4px; }
.pv-icons .grid9 i:nth-child(5) { border-radius: 50%; border-style: dashed; }
.pv-icons .grid9 i:nth-child(7) { border-radius: 4px 50% 4px 50%; }
.pv-icons .grid9 i::after { content: ""; position: absolute; inset: 30%; border-radius: inherit; background: rgb(30 30 45 / .34); }
.pv-icons .grid9 i:nth-child(even)::after { background: rgb(30 30 45 / .16); }

.pv-card .cc { position: absolute; z-index: 2; width: 46%; aspect-ratio: 1.72; border-radius: var(--r-sm);
  box-shadow: 0 14px 26px -12px rgb(0 0 0 / .55); display: grid; align-content: center; justify-items: start; gap: .22rem; padding: 8%;
  transition: transform .6s var(--ease-out), rotate .6s var(--ease-out); }
.pv-card .cc-1 { background: #fff; color: #201d29; inset-inline-start: 12%; top: 20%; rotate: -7deg; }
.pv-card .cc-2 { background: var(--c2); color: #fff; inset-inline-end: 12%; bottom: 18%; rotate: 5deg; }
.group:hover .pv-card .cc-1 { rotate: -3deg; }
.group:hover .pv-card .cc-2 { rotate: 2deg; }
.pv-card .cc b  { font-size: .58rem; font-weight: 700; }
.pv-card .cc s  { text-decoration: none; display: block; width: 44%; height: 1.5px; background: currentColor; opacity: .35; }
.pv-card .cc em { font-size: .42rem; font-style: normal; opacity: .6; }

.pv-texture::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image:
    repeating-linear-gradient(45deg, rgb(255 255 255 / .16) 0 6px, transparent 6px 14px),
    radial-gradient(circle at 30% 30%, rgb(255 255 255 / .22) 0 2px, transparent 3px);
  background-size: auto, 26px 26px;
}

.pv-logo .mark { position: absolute; z-index: 2; inset-inline-start: 50%; top: 34%; translate: -50% -50%;
  width: 21%; aspect-ratio: 1; border: 2.5px solid #fff; border-radius: 50%; }
.pv-logo .mark::after { content: ""; position: absolute; inset: 26%; background: #fff; border-radius: 50% 50% 50% 0; }

.pv-video .play { position: absolute; z-index: 3; inset-inline-start: 50%; top: 46%; translate: -50% -50%;
  width: 17%; aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / .92);
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgb(0 0 0 / .5);
  transition: scale .5s var(--ease-out); }
.group:hover .pv-video .play { scale: 1.12; }
.pv-video .play::after { content: ""; border-inline-start: 9px solid var(--c2); border-block: 6px solid transparent; margin-inline-end: -3px; }
.pv-video .timeline { position: absolute; z-index: 3; inset-inline: 9%; bottom: 11%; display: flex; gap: 3px; height: 7%; }
.pv-video .timeline i { flex: 1; background: rgb(255 255 255 / .34); border-radius: 2px; }
.pv-video .timeline i:nth-child(2) { flex: 2.4; background: rgb(255 255 255 / .68); }
.pv-video .timeline i:nth-child(4) { flex: 1.7; background: rgb(255 255 255 / .5); }

/* قاب پیش‌نمایش + نور عبوری */
.pv-wrap { position: relative; overflow: hidden; border-radius: var(--r); background: rgb(var(--surface-2)); isolation: isolate; }
.pv-wrap .pv { transition: transform .7s var(--ease-out); container-type: inline-size; }
.group:hover .pv-wrap .pv { transform: scale(1.05); }
.pv-wrap::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .28) 50%, transparent 62%);
  transform: translateX(130%); transition: transform .95s var(--ease-out);
}
.group:hover .pv-wrap::after { transform: translateX(-130%); }

/* ══════════ 11. CARDS ══════════ */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-lg);
  transition: border-color .32s var(--ease), box-shadow .32s var(--ease), transform .32s var(--ease);
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--brand) / .42);
  box-shadow: 0 0 0 3px rgb(var(--brand) / .07);
}
.dark .card-hover:hover {
  box-shadow: 0 0 0 3px rgb(var(--brand) / .12);
}

/* ── کارت محصول — نسخهٔ «داک» (۲.۵) ─────────────────────────
   ⛔ `.pcard` (کارت سفید قاب‌دار + چیپ‌های گوشه + ردیف قیمت/دکمهٔ قرصی)
   کاملاً حذف شد. ساختار تازه:
   ۱. `.dgc-art` بدون قاب؛ روی هاور با clip-path به داخل کراپ می‌شود (نه جابه‌جایی کارت).
   ۲. `.dgc-sale` برچسب قیمتِ کوچک برای تخفیف (زبانهٔ فرمت در ۲.۱۳ حذف شد).
   ۴. `.dgc-foot` ردیف طراح با مونوگرام مربعی.
   ۵. `.dgc-dock` نوار تورفتهٔ ته کارت: قیمت درشت در آغاز، دکمهٔ «افزودن» در انتها.
      ⚠️ نسخهٔ اول داک روی مرز تصویر شناور بود و دکمه فقط آیکون — بازخورد «جای قیمت اصلا خوب نیست».
   ⚠️ ارتفاع همهٔ کارت‌ها یکی است: ستون فلکس + عنوان دوخطی رزرو + margin-top:auto. */
.dgc {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
  box-shadow: 0 0 0 1px rgb(var(--line) / .9);
  transition: box-shadow .45s var(--ease);
}
.dgc:hover {
  box-shadow: 0 0 0 1px rgb(var(--line)), 0 28px 50px -30px rgb(var(--ink) / .38);
}

.dgc-head { position: relative; margin: 8px 8px 0; }

.dgc-art {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: rgb(var(--surface-2));
  clip-path: inset(0 round 20px);
  transition: clip-path .55s var(--ease);
}
.dgc-art img,
.dgc-art .pv {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  transition: transform .9s var(--ease);
}
.dgc:hover .dgc-art { clip-path: inset(6px round 15px); }
.dgc:hover .dgc-art img { transform: none; }
.dgc:hover .dgc-art .pv { transform: scale(1.04); }

/* برچسب تخفیف — شکل «تگ قیمت» کوچک (۲.۱۳).
   ⛔ دایرهٔ ۳.۱rem قبلی «خیلی بزرگ» بود. نوک تگ رو به لبهٔ کارت، سوراخ کنار نوک؛
   روی هاور از همان سوراخ کمی تاب می‌خورد. */
.dgc-sale {
  position: absolute;
  z-index: 3;
  inset-block-start: .75rem;
  inset-inline-end: .75rem;
  display: inline-flex;
  align-items: center;
  height: 1.45rem;
  padding-inline: .5rem .95rem;
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  line-height: 1;
  border-radius: 3px 5px 5px 3px;
  clip-path: polygon(0 0, calc(100% - .5rem) 0, 100% 50%, calc(100% - .5rem) 100%, 0 100%);
  transform-origin: calc(100% - .55rem) 50%;
  transition: transform .5s var(--ease);
}
[dir="rtl"] .dgc-sale,
.rtl .dgc-sale {
  padding-inline: .5rem .95rem;
  border-radius: 5px 3px 3px 5px;
  clip-path: polygon(.5rem 0, 100% 0, 100% 100%, .5rem 100%, 0 50%);
  transform-origin: .55rem 50%;
}
.dgc-sale::before {
  content: "";
  position: absolute;
  inset-inline-end: .42rem;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: rgb(var(--surface));
}
.dgc-sale b { font-size: .72rem; font-weight: 700; letter-spacing: 0; }
.dgc:hover .dgc-sale { transform: rotate(-7deg); }

/* علاقه‌مندی — پایینِ آغاز تصویر */
.dgc-wish {
  position: absolute;
  z-index: 3;
  inset-block-end: .7rem;
  inset-inline-start: .7rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: var(--r);
  background: rgb(255 255 255 / .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgb(var(--ink-2));
  cursor: pointer;
  opacity: 0;
  scale: .8;
  transition: opacity .3s var(--ease), scale .3s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.dgc:hover .dgc-wish,
.dgc-wish:focus-visible,
.dgc-wish[aria-pressed="true"] { opacity: 1; scale: 1; }
@media (pointer: coarse) { .dgc-wish { opacity: 1; scale: 1; } }
.dgc-wish:hover { color: rgb(var(--brand)); background: #fff; }
.dgc-wish[aria-pressed="true"] { background: rgb(var(--brand)); color: #fff; }
.dark .dgc-wish { background: rgb(20 20 28 / .82); color: rgb(var(--ink)); }
.dgc-wish .ic { width: 15px; height: 15px; }

/* نوار قیمت و خرید — ته کارت، تورفته با همان فاصلهٔ ۸px تصویر */
.dgc-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  min-height: 3.35rem;
  margin: .85rem -.6rem 0;
  padding: .4rem;
  padding-inline-start: .95rem;
  border-radius: var(--r-lg);
  background: rgb(var(--surface-2));
}
.dgc-cost { display: grid; gap: .1rem; min-width: 0; line-height: 1.15; white-space: nowrap; }
.dgc-cost s {
  font-size: .68rem;
  color: rgb(var(--dim));
  text-decoration-color: rgb(var(--brand) / .6);
}
.dgc-cost b {
  display: flex;
  align-items: baseline;
  gap: .25rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: rgb(var(--ink));
}
.dgc-cost b i { font-style: normal; font-size: .62rem; font-weight: 600; color: rgb(var(--dim)); }
.dgc-free { color: rgb(11 115 85) !important; }
.dark .dgc-free { color: rgb(52 211 153) !important; }

.dgc-add {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex: 0 0 auto;
  height: 2.55rem;
  padding-inline: .95rem;
  border-radius: var(--r);
  background: rgb(var(--ink));
  color: rgb(var(--surface));
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.dgc-add .ic { width: 16px; height: 16px; flex: 0 0 auto; transition: translate .35s var(--ease); }
.dgc:hover .dgc-add,
.dgc-add:focus-visible {
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  box-shadow: 0 10px 20px -10px rgb(var(--brand) / .9);
}
.dgc:hover .dgc-add .ic { translate: 2px -1px; }
.dgc-add:active { scale: .96; }

/* حالت‌های موتور سبد: اسپینر → تیک */
.dgc-add.is-busy { pointer-events: none; }
.dgc-add.is-busy .ic,
.dgc-add.is-busy span,
.dgc-add.added .ic,
.dgc-add.added span { opacity: 0; }
.dgc-add.is-busy::after,
.dgc-add.added::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 15px;
  height: 15px;
}
.dgc-add.is-busy::after {
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: dg-spin .6s linear infinite;
}
.dgc-add.added { background: rgb(var(--ok)) !important; color: #fff !important; box-shadow: none; }
.dgc-add.added::after {
  width: 16px;
  height: 16px;
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 5 5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 5 5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: #fff;
  animation: dg-pop .3s var(--ease);
}

/* ── بدنه ── */
.dgc-sheet {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem .5rem;
}
.dgc-line {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 1.1rem;
  font-size: .68rem;
  font-weight: 700;
  color: rgb(var(--dim));
}
.dgc-cat { color: rgb(var(--brand-text)); transition: color .2s var(--ease); }
.dgc-cat:hover { color: rgb(var(--brand)); }

.dgc-title {
  margin-top: .4rem;
  min-height: 3rem;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dgc-title a { color: rgb(var(--ink)); }
.dgc-title a:hover { color: rgb(var(--brand-text)); }

.dgc-foot {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  padding-top: .75rem;
  font-size: .74rem;
  font-weight: 600;
  color: rgb(var(--dim));
}
/* مونوگرام مربعیِ گوشه‌گرد — رنگ قطعی از نام (`dg_vendor_mono`) */
.dgc-mono {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 7px;
  background: rgb(var(--mono) / .14);
  color: rgb(var(--mono));
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
}
.dgc-mono.c-brand  { --mono: var(--brand); }
.dgc-mono.c-indigo { --mono: 79 70 229; }
.dgc-mono.c-teal   { --mono: 13 148 136; }
.dgc-mono.c-amber  { --mono: 180 100 6; }
.dgc-mono.c-violet { --mono: 147 51 234; }
.dgc-mono.c-blue   { --mono: 37 99 235; }
.dark .dgc-mono { background: rgb(var(--mono) / .22); color: #fff; }
.dgc-by { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--ink-2)); }
.dgc-foot .dg-verified { --v-size: .8rem; }


/* ══════════ 12. SLIDER — «ریل» (۲.۵) ══════════
   ⛔ دکمه‌های دایره‌ای بالای سکشن حذف شدند. کنترل‌ها زیر ردیف در `.rail`:
   شمارندهٔ درشت · نوار پیشرفت قابل کشیدن/کلیک · جفت فلش.
   لبه‌ها با mask محو می‌شوند (`--fs`/`--fe` از JS) و کارت‌های نیمه‌بیرون
   `.is-peek` می‌گیرند و کم‌رنگ می‌شوند.
   ⚠️ جهت گرادیان mask «to left» است چون سایت RTL است (آغاز = راست). */
.slider {
  --fs: 0px;
  --fe: 0px;
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-block: 8px 30px;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 var(--fs), #000 calc(100% - var(--fe)), transparent);
          mask-image: linear-gradient(to left, transparent, #000 var(--fs), #000 calc(100% - var(--fe)), transparent);
}
.slider::-webkit-scrollbar { display: none; }
.slider > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 262px;
  transition: opacity .5s var(--ease), scale .5s var(--ease), filter .5s var(--ease);
}
@media (min-width: 640px) { .slider > * { width: 286px; } }
@media (min-width: 1280px) { .slider > * { width: 300px; } }
.slider > .is-peek { opacity: .5; scale: .96; filter: saturate(.6); }

/* کشیدن با ماوس — initSlider در app.js کلاس‌ها را می‌گذارد.
   ⚠️ موقع درگ scroll-snap و scroll-behavior خاموش شوند، وگرنه حرکت جهشی می‌شود. */
@media (hover: hover) and (pointer: fine) {
  .slider { cursor: grab; }
  .slider.is-grabbing { cursor: grabbing; }
}
.slider.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.slider.is-dragging * { pointer-events: none; }

.rail {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: .4rem;
}
.rail-count {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  flex: 0 0 auto;
  color: rgb(var(--dim));
  font-size: .8rem;
  font-weight: 700;
}
.rail-count b { min-width: 1.6em; font-size: 1.5rem; font-weight: 900; color: rgb(var(--ink)); line-height: 1; }
.rail-count i { font-style: normal; opacity: .5; }
.rail-track {
  position: relative;
  flex: 1;
  height: 24px;
  cursor: pointer;
  touch-action: none;
}
.rail-track::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 2px;
  translate: 0 -50%;
  border-radius: 2px;
  background: rgb(var(--line));
}
.rail-track i {
  position: absolute;
  top: 50%;
  inset-inline-start: var(--tx, 0%);
  width: var(--tw, 30%);
  height: 4px;
  translate: 0 -50%;
  border-radius: 4px;
  background: rgb(var(--ink));
  transition: height .2s var(--ease), background-color .2s var(--ease);
}
.rail-track:hover i,
.rail-track.is-scrub i { height: 7px; background: rgb(var(--brand)); }
.rail-track.is-scrub { cursor: grabbing; }
.rail.is-static .rail-track,
.rail.is-static .rail-arrows { visibility: hidden; }

.rail-arrows { display: flex; flex: 0 0 auto; padding: 3px; border-radius: 999px; background: rgb(var(--surface-2)); }
.rail-arrows button {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgb(var(--ink));
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.rail-arrows button:last-child { background: rgb(var(--ink)); color: rgb(var(--surface)); }
.rail-arrows button:hover:not(:disabled) { background: rgb(var(--brand)); color: rgb(var(--brand-on)); }
.rail-arrows button:disabled { opacity: .3; cursor: default; }
.rail-arrows .ic { width: 17px; height: 17px; }
@media (max-width: 639px) {
  .rail { gap: .9rem; }
  .rail-count b { font-size: 1.2rem; }
  .rail-arrows button { width: 2.3rem; height: 2.3rem; }
}

/* ⚠️ اینجا قبلاً `.on-alt .on-alt` بدون بلوک رها شده بود؛ CSS آن را به
   سلکتور قاعدهٔ بعدی می‌چسباند و کل استایل `.site-header` بی‌اثر می‌شد. */

/* ══════════ 13. HEADER ══════════ */
.site-header { position: relative; transition: box-shadow .35s var(--ease); }
/* هدر چسبان — قاعدهٔ بالا کلاس sticky تیلویند را خنثی می‌کرد */
.site-header.sticky { position: sticky; top: 0; }
.admin-bar .site-header.sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header.sticky { top: 0; } }
.site-header::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--brand) / .5), rgb(var(--line)) 42%, rgb(var(--line)) 58%, rgb(var(--brand) / .5), transparent);
}
.site-header.stuck { box-shadow: 0 12px 34px -26px rgb(var(--shadow) / .55); }

.nav-link { position: relative; color: rgb(var(--ink-2)); transition: color .24s var(--ease); }
.nav-link::before {
  content: ""; position: absolute; inset: .4rem .3rem; border-radius: var(--r-sm); z-index: -1;
  background: rgb(var(--ink) / .05); opacity: 0; transform: scale(.92);
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.nav-link:hover::before, .nav-item.open > .nav-link::before { opacity: 1; transform: none; }
.nav-link:hover, .nav-item.open > .nav-link { color: rgb(var(--ink)); }
.nav-link::after {
  content: ""; position: absolute; inset-inline: .75rem; bottom: 0; height: 2px; border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, rgb(var(--brand)), rgb(var(--brand-2)));
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-item.open > .nav-link::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* مگا منو — پس‌زمینهٔ کاملاً مات تا متن پشتش دیده نشود */
.mega {
  position: absolute; inset-inline: 0; top: 100%;
  background: rgb(var(--bg));
  border-bottom: 1px solid rgb(var(--line));
  box-shadow: 0 30px 60px -34px rgb(var(--shadow) / .55);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .24s var(--ease), transform .3s var(--ease), visibility .24s;
  z-index: 45;
}
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgb(var(--brand) / .75), transparent);
}
.mega__grid-removed {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-image:
    linear-gradient(rgb(var(--ink) / .04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--ink) / .04) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
          mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.dark .mega__grid-removed {
  background-image:
    linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px);
}
.mega > * { position: relative; z-index: 1; }

.mega-link {
  display: flex; align-items: center; gap: .55rem; padding: .4rem .55rem;
  margin-inline-start: -.55rem; border-radius: var(--r-sm);
  color: rgb(var(--ink-2)); font-size: .8rem;
  transition: background-color .2s, color .2s, padding-inline-start .28s var(--ease);
}
.mega-link:hover { background: rgb(var(--brand) / .07); color: rgb(var(--ink)); padding-inline-start: 1rem; }
.mega-link .ic { color: rgb(var(--dim)); transition: color .2s, transform .3s var(--ease); }
.mega-link:hover .ic { color: rgb(var(--brand-text)); transform: scale(1.14); }

/* آکاردئون موبایل */
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc.open .acc-panel { grid-template-rows: 1fr; }
.acc.open .acc-chev { transform: rotate(180deg); }
.acc-chev { transition: transform .3s var(--ease); }

/* ══════════ 14. FORMS ══════════ */
.field {
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: var(--r);
  transition: border-color .24s, box-shadow .24s;
}
.field:focus-within { border-color: rgb(var(--brand) / .55); box-shadow: 0 0 0 4px rgb(var(--brand) / .1); }
.field input, .field select { background: transparent; border: 0; outline: 0; width: 100%; color: inherit; }
.field input::placeholder { color: rgb(var(--dim)); }

/* ══════════ 15. PRELOADER ══════════ */
#preloader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgb(var(--bg)); transition: opacity .5s, visibility .5s; }
#preloader.done { opacity: 0; visibility: hidden; }
.pl-mark { position: relative; width: 46px; height: 46px; margin-inline: auto; }
.pl-mark i { position: absolute; inset: 0; border-radius: var(--r); border: 2px solid rgb(var(--brand)); opacity: 0;
  animation: plRing 1.8s cubic-bezier(.4,0,.2,1) infinite; }
.pl-mark i:nth-child(2) { animation-delay: .6s; }
.pl-mark i:nth-child(3) { animation-delay: 1.2s; }
@keyframes plRing { 0% { transform: scale(.4); opacity: 0; } 35% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.pl-mark b { position: absolute; inset: 32%; border-radius: 5px; background: rgb(var(--brand)); }
.pl-track { width: 116px; height: 2px; margin: 1.6rem auto 0; background: rgb(var(--line)); border-radius: 999px; overflow: hidden; }
.pl-fill { height: 100%; width: 0; background: linear-gradient(90deg, rgb(var(--brand)), rgb(var(--brand-2))); border-radius: 999px; transition: width .3s ease; }

/* ══════════ 16. LOADERS ══════════ */
.sk { position: relative; overflow: hidden; background: rgb(var(--ink) / .06); border-radius: var(--r-sm); }
.sk::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgb(var(--ink) / .06), transparent);
  transform: translateX(-100%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

#route-bar { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 120; pointer-events: none; }
#route-bar span { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, rgb(var(--brand)), rgb(var(--brand-2)));
  box-shadow: 0 0 10px rgb(var(--brand) / .7); transition: width .35s ease, opacity .35s ease .2s; }

/* ══════════ 17. MOTION ══════════ */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .07s; }
[data-reveal][data-delay="2"] { transition-delay: .14s; }
[data-reveal][data-delay="3"] { transition-delay: .21s; }
[data-reveal][data-delay="4"] { transition-delay: .28s; }

.route-in { animation: routeIn .24s var(--ease) both; }
@keyframes routeIn { from { opacity: 0; transform: translateY(6px); } }

.float { animation: float 8s ease-in-out infinite; }
.float-r { animation: float 10s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-13px) } }

/* ══════════ 18. OVERLAYS ══════════ */
.scrim { background: rgb(var(--ink) / .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dark .scrim { background: rgb(0 0 0 / .62); }
.panel { background: rgb(var(--bg)); }

.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: rgb(var(--bg) / .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 1.5rem; animation: routeIn .3s ease both; }
.lightbox[hidden] { display: none; }

#toast { position: fixed; z-index: 160; inset-block-end: 1.25rem; inset-inline-start: 1.25rem;
  display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.toast { display: flex; align-items: center; gap: .55rem;
  background: rgb(var(--ink)); color: rgb(var(--bg));
  padding: .6rem 1rem; border-radius: var(--r-sm); font-size: .8rem; font-weight: 500;
  box-shadow: 0 12px 32px -14px rgb(var(--shadow) / .6);
  animation: toastIn .34s var(--ease) both; }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toastOut { to   { opacity: 0; transform: translateY(8px); } }

/* ══════════ 19. PRODUCT ══════════ */
.thumb { border-radius: var(--r-sm); overflow: hidden; border: 1px solid rgb(var(--line));
  opacity: .5; transition: opacity .24s, border-color .24s, transform .28s var(--ease); }
.thumb:hover { opacity: .85; transform: translateY(-2px); }
.thumb[aria-current="true"] { opacity: 1; border-color: rgb(var(--brand)); }

/* مشخصات — فهرست تخت و آرام (مینیمال‌تر از کاشی) */
.spec { display: flex; align-items: center; gap: .7rem; padding: .8rem .2rem;
  border-bottom: 1px solid rgb(var(--line-2)); }
.spec .ic { color: rgb(var(--dim)); }
.spec dt { font-size: .7rem; color: rgb(var(--dim)); }
.spec dd { font-size: .8rem; font-weight: 600; margin-top: .12rem; }

.tab { position: relative; padding: .6rem .1rem; margin-inline-end: 1.6rem; font-size: .8rem; font-weight: 600;
  color: rgb(var(--dim)); border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .24s, border-color .24s; }
.tab:hover { color: rgb(var(--ink-2)); }
.tab[aria-selected="true"] { color: rgb(var(--ink)); border-color: rgb(var(--brand)); }

/* ══════════ 20. FOOTER ══════════ */
.footer-wm {
  position: absolute; inset-inline: 0; bottom: -.16em; z-index: 0; pointer-events: none;
  text-align: center; font-size: clamp(4rem, 16vw, 14rem); font-weight: 800; line-height: .8;
  letter-spacing: -.045em; color: transparent;
  -webkit-text-stroke: 1px rgb(var(--ink) / .08);
  -webkit-mask-image: linear-gradient(to top, transparent 6%, #000 80%);
          mask-image: linear-gradient(to top, transparent 6%, #000 80%);
}
.dark .footer-wm { -webkit-text-stroke-color: rgb(255 255 255 / .08); }

.f-link { position: relative; display: inline-block; transition: color .24s var(--ease); }
.f-link::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; height: 1px; width: 100%;
  background: rgb(var(--brand)); transform: scaleX(0); transform-origin: right;
  transition: transform .32s var(--ease); }
.f-link:hover { color: rgb(var(--brand-text)); }
.f-link:hover::after { transform: scaleX(1); }

/* ══════════ 21. UTIL ══════════ */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dot-sep::before { content: "·"; margin-inline: .4rem; opacity: .55; }

[data-cart-count] { color: #fff; }
.dark [data-cart-count] { color: rgb(11 11 16); }

#to-top { transition: opacity .28s var(--ease), transform .28s var(--ease); }
#to-top.hidden-top { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }


/* ==========================================================================
   v6 — بوم یکدست، هدر گرافیکی، هیروی کلاژی، کارت شیک‌تر، فوتر تمیز
   ========================================================================== */

/* ── اعداد: بدون فاصلهٔ اضافه ─────────────────────────────── */
/* ⚠️ منشأ «فاصلهٔ بین ارقام» tabular-nums بود، نه letter-spacing.
   این قاعده فقط نحوهٔ رندر ارقام را درست می‌کند و عمداً اندازه یا وزن
   نمی‌دهد — .num داخل متن‌های ریز (متا، تاریخ، تلفن) می‌نشیند و باید
   از والدش ارث ببرد. tnum دوباره اضافه نشود. */
.num, .price, .num *, .price * {
  font-variant-numeric: normal !important;
  font-feature-settings: normal !important;
  letter-spacing: 0 !important;
  word-spacing: 0;
  font-kerning: none;
}

/* ── بوم یکدست: فضای محتوا کاملاً تمیز ───────────────────── */
/* هیچ الگویی پشت متن‌ها نیست؛ فقط چند لکهٔ رنگ پخش‌شونده در گوشه‌ها */
main > section { background: transparent; }

/* وصلهٔ گرید — فقط به‌عنوان لهجه در گوشه‌ها، هرگز پشت متن */
.corner-grid {
  position: absolute; z-index: 0; pointer-events: none;
  width: var(--w, 15rem); height: var(--h, 15rem); opacity: .5;
  background-image:
    linear-gradient(rgb(var(--ink) / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--ink) / .07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at var(--mx, 100%) var(--my, 0%), #000, transparent 72%);
          mask-image: radial-gradient(circle at var(--mx, 100%) var(--my, 0%), #000, transparent 72%);
}
.dark .corner-grid {
  background-image:
    linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px);
}

/* ── هاله‌های رنگی (به‌جای بلاک‌های پس‌زمینه) ─────────────── */
.aura {
  position: absolute; z-index: 0; pointer-events: none;
  width: var(--w, 34rem); aspect-ratio: 1; border-radius: 50%;
  inset-inline-start: var(--x, 50%); top: var(--y, 50%); translate: -50% -50%;
  background: radial-gradient(circle, rgb(var(--a) / .16), rgb(var(--a) / .05) 45%, transparent 78%);
  filter: blur(52px);
}
.dark .aura { background: radial-gradient(circle, rgb(var(--a) / .2), transparent 70%); }

/* جداکنندهٔ سکشن با نشان لوزی */
.sep { position: relative; height: 1px; background: rgb(var(--line)); }
.sep::after {
  content: ""; position: absolute; inset-inline-start: 50%; top: 50%; translate: -50% -50%;
  width: 7px; height: 7px; rotate: 45deg;
  background: rgb(var(--bg)); border: 1px solid rgb(var(--line));
}

/* ── هدر گرافیکی ─────────────────────────────────────────── */
.site-header::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg,
    transparent, rgb(var(--brand) / .9) 18%, rgb(124 58 237 / .7) 42%,
    rgb(13 148 136 / .65) 62%, rgb(217 119 6 / .6) 80%, transparent);
  opacity: .85;
}
.site-header .topbar { background: linear-gradient(180deg, rgb(var(--brand) / .05), transparent); }

.logo-mark {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  overflow: visible;
}
.logo-mark-image {
  display: block;
  width: 1.38rem;
  height: 1.38rem;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.logo-mark::after {
  content: ""; position: absolute; inset: -3px; border-radius: var(--r); z-index: -1;
  background: conic-gradient(from 0deg, rgb(var(--brand)), transparent 35%, rgb(var(--brand)));
  opacity: 0; transition: opacity .35s var(--ease); animation: spinRing 4.5s linear infinite;
}
.group:hover .logo-mark::after { opacity: .85; }
@keyframes spinRing { to { rotate: 360deg; } }

.search-pill { border-radius: 999px !important; }
.search-pill .btn { border-radius: 999px; }

/* ── هیرو: کلاژ کارت‌ها ──────────────────────────────────── */
.deck { position: relative; }
.deck-card {
  position: absolute; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 26px 55px -26px rgb(var(--shadow) / .5);
  transition: transform .8s var(--ease-out), rotate .8s var(--ease-out);
  border: 1px solid rgb(255 255 255 / .35);
}
.dark .deck-card { border-color: rgb(255 255 255 / .1); box-shadow: 0 26px 55px -24px rgb(0 0 0 / .85); }
.deck-1 { inset-inline-end: 4%;  top: 2%;    width: 55%; rotate: -3deg; z-index: 3; }
.deck-2 { inset-inline-start: 0; top: 27%;   width: 44%; rotate: 5deg;  z-index: 2; }
.deck-3 { inset-inline-end: 13%; bottom: 4%; width: 48%; rotate: -7deg; z-index: 1; }
.deck:hover .deck-1 { rotate: -1deg; transform: translateY(-8px); }
.deck:hover .deck-2 { rotate: 2deg;  transform: translateY(6px); }
.deck:hover .deck-3 { rotate: -4deg; transform: translateY(-4px); }

/* پالت رنگ شناور */
.palette { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .65rem; border-radius: var(--r); }
.palette i {
  width: 17px; height: 17px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1);
  transition: transform .3s var(--ease);
}
.palette:hover i:nth-child(odd) { transform: translateY(-3px); }
.palette:hover i:nth-child(even) { transform: translateY(3px); }

/* خط اندازه‌گیری */
.measure {
  position: relative; height: 1px; background: rgb(var(--ink) / .22);
}
.measure::before, .measure::after {
  content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: rgb(var(--ink) / .3);
}
.measure::before { inset-inline-start: 0; }
.measure::after  { inset-inline-end: 0; }

/* ── کارت محصول: خط لهجهٔ بالا + جزئیات ─────────────────── */
.card-hover::before {
  content: ""; position: absolute; inset-inline: 26%; top: -1px; height: 2px; border-radius: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgb(var(--brand)), transparent);
  opacity: 0; transition: opacity .35s var(--ease), inset-inline .5s var(--ease);
}
.card-hover:hover::before { opacity: 1; inset-inline: 6%; }

/* ── فوتر تمیز (بدون واترمارک غول‌پیکر) ─────────────────── */
.footer-wm, .tool-wm { display: none !important; }

.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent, rgb(var(--brand) / .75) 20%, rgb(124 58 237 / .55) 45%,
    rgb(13 148 136 / .5) 68%, transparent);
  opacity: .7;
}

.tool-mark { width: 2.15rem; height: 2.2rem; border-radius: var(--r-sm); }
.tool-mark .ic { width: 1.05rem; height: 1.05rem; }

/* ── ریز‌جزئیات ──────────────────────────────────────────── */
.on-alt .on-alt 
.stat-line { position: relative; padding-inline-start: .9rem; }
.stat-line::before {
  content: ""; position: absolute; inset-block: .15rem; inset-inline-start: 0; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, rgb(var(--brand)), transparent);
}


/* ==========================================================================
   v7 - هدر گرافیکی + المان‌های چرخانِ رنگ‌عوض‌کن (کم و هدفمند)
   ========================================================================== */

/* اُرب: آرام می‌چرخد و رنگ عوض می‌کند. حداکثر ۳ عدد در کل صفحه */
.orb {
  position: absolute; z-index: 0; pointer-events: none;
  width: var(--w, 20rem); aspect-ratio: 1;
  inset-inline-start: var(--x, 50%); top: var(--y, 50%); translate: -50% -50%;
  background: conic-gradient(from 0deg,
    rgb(var(--brand) / .22), rgb(79 70 229 / .2), rgb(13 148 136 / .18),
    rgb(217 119 6 / .2), rgb(124 58 237 / .18), rgb(var(--brand) / .22));
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(48px);
  opacity: .5;
  animation: orbSpin 52s linear infinite, orbMorph 24s ease-in-out infinite alternate;
}
.dark .orb { opacity: .38; filter: blur(58px); }
@keyframes orbSpin  { to { rotate: 360deg; } }
@keyframes orbMorph { to { border-radius: 58% 42% 44% 56% / 46% 58% 42% 54%; scale: 1.14; } }

/* هدر: خط بالای متحرک */
.site-header::before {
  background: linear-gradient(90deg,
    transparent, rgb(var(--brand) / .95) 14%, rgb(124 58 237 / .8) 34%,
    rgb(13 148 136 / .75) 52%, rgb(217 119 6 / .8) 70%, rgb(var(--brand) / .95) 88%, transparent);
  background-size: 220% 100%;
  animation: hdrLine 16s linear infinite;
  opacity: .9;
}
@keyframes hdrLine { to { background-position: -220% 0; } }

/* هالهٔ رنگی داخل هدر */
.hdr-glow { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hdr-glow i {
  position: absolute; top: -85%; width: 20rem; aspect-ratio: 1; border-radius: 50%;
  filter: blur(58px); opacity: .085;
}
.dark .hdr-glow i { opacity: .16; }
.hdr-glow i:nth-child(1) { inset-inline-end: 2%;   background: rgb(var(--brand)); }
.hdr-glow i:nth-child(2) { inset-inline-end: 34%;  background: #7c3aed; }
.hdr-glow i:nth-child(3) { inset-inline-start: 4%; background: #0d9488; }
.site-header > *:not(.hdr-glow) { position: relative; z-index: 1; }
/* ⚠️ ردیف اصلی باید بالاتر از نوار مگامنو باشد؛ وگرنه باکس نتیجهٔ جستجو (z-index درون همان
   stacking context) زیر آیتم‌های منو می‌رفت و با آن‌ها هم‌پوشانی داشت (۲.۱۳). */
.site-header > .hdr-main { z-index: 3; }

/* لوگو: حلقهٔ همیشه‌زنده */
.logo-mark::after { opacity: .4; animation-duration: 7s; }
.group:hover .logo-mark::after { opacity: .95; animation-duration: 2.6s; }

/* نو: هر دسته لهجهٔ رنگی خودش را دارد */
.nav-link .ic { transition: color .25s var(--ease), transform .3s var(--ease); }
.nav-link:hover .ic { transform: translateY(-1px) scale(1.12); }
.nav-item:nth-child(1) .nav-link:hover .ic:first-of-type { color: #e5232f; }
.nav-item:nth-child(2) .nav-link:hover .ic:first-of-type { color: #4f46e5; }
.nav-item:nth-child(3) .nav-link:hover .ic:first-of-type { color: #0d9488; }
.nav-item:nth-child(4) .nav-link:hover .ic:first-of-type { color: #d97706; }
.nav-item:nth-child(5) .nav-link:hover .ic:first-of-type { color: #7c3aed; }
.nav-item:nth-child(6) .nav-link:hover .ic:first-of-type { color: #0891b2; }
.nav-item:nth-child(7) .nav-link:hover .ic:first-of-type { color: #db2777; }
.nav-link::before { background: rgb(var(--ink) / .055); }

/* جستجو: هالهٔ فوکوس گرم‌تر */
.search-pill:focus-within {
  border-color: rgb(var(--brand) / .5);
  box-shadow: 0 0 0 4px rgb(var(--brand) / .1), 0 10px 30px -16px rgb(var(--brand) / .7);
}
.kbd {
  display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding-inline: .3rem;
  border-radius: var(--r-sm); border: 1px solid rgb(var(--line)); background: rgb(var(--surface-2));
  font-size: .625rem; font-weight: 700; color: rgb(var(--dim));
}

/* دکمهٔ اشتراک: گرادیان در حال حرکت */
.btn-sub {
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
}
.btn-sub::before { background: rgb(var(--brand-2)); }
@keyframes subShift { to { background-position: -240% 0; } }

/* نشان زندهٔ نوار بالا */
.live-dot { position: relative; display: inline-flex; width: 6px; height: 6px; }
.live-dot::before, .live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgb(var(--brand));
}
.live-dot::before { animation: livePing 1.9s cubic-bezier(0,0,.2,1) infinite; }
@keyframes livePing { 75%,100% { transform: scale(2.4); opacity: 0; } }


/* ==========================================================================
   v8 — هدر ساده و آرام · اسکلتون سکشن‌ها · فوتر گرم
   ========================================================================== */

/* ── دکمه‌های هدر: هالهٔ نرم به‌جای موج رنگی ───────────────── */
.hbtn {
  position: relative; display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--r);
  color: rgb(var(--ink-2)); cursor: pointer;
  transition: color .26s var(--ease), transform .26s var(--ease);
}
.hbtn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgb(var(--brand) / .09);
  opacity: 0; transform: scale(.55);
  transition: opacity .26s var(--ease), transform .38s var(--ease-out);
}
.hbtn:hover { color: rgb(var(--brand-text)); transform: translateY(-2px); }
.hbtn:hover::before { opacity: 1; transform: none; }
.hbtn > * { position: relative; z-index: 1; }

.hlink {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  height: 2.5rem; padding-inline: .85rem; border-radius: var(--r);
  font-size: .8rem; font-weight: 600; color: rgb(var(--ink-2));
  transition: color .26s var(--ease), background-color .26s var(--ease);
}
.hlink:hover { color: rgb(var(--ink)); background: rgb(var(--ink) / .05); }

/* ── دکمهٔ سبد خرید (جایگزین اشتراک ویژه) ────────────────── */
.cart-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 2.5rem; padding-inline: 1rem; border-radius: var(--r);
  background: rgb(var(--ink)); color: rgb(var(--bg));
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              transform .22s var(--ease), box-shadow .32s var(--ease);
}
.cart-btn:hover {
  background: rgb(var(--brand)); color: #fff;
  transform: translateY(-2px);
}
.dark .cart-btn:hover { color: rgb(11 11 16); }
.cart-btn .count {
  display: grid; place-items: center; min-width: 1.3rem; height: 1.3rem;
  padding-inline: .32rem; border-radius: 999px;
  background: rgb(var(--bg) / .22); font-size: .7rem; font-weight: 700;
}
.dark .cart-btn .count { background: rgb(0 0 0 / .22); }
/* نمایش پاسخ‌گرا — display خودِ .hbtn/.cart-btn کلاس‌های hidden تیلویند را خنثی می‌کرد */
@media (max-width: 639.98px) { .site-header .hidden:is(.sm\:inline-grid, .sm\:inline-flex) { display: none; } }
@media (min-width: 1024px) { .site-header .hbtn.lg\:hidden, .site-header .btn.lg\:hidden { display: none; } }

/* هدر موبایل: اکشن‌های کاربردی به‌جای فضای خالی. */
@media (max-width: 639.98px) {
  .site-header .hdr-main {
    height: 4.25rem;
    gap: .45rem;
    padding-inline: 1rem;
  }
  .site-header .hdr-main > .group { gap: .55rem; min-width: 0; }
  .site-header .hdr-main > .group .leading-none { white-space: nowrap; }
  .site-header .hdr-main > .mr-auto { gap: .15rem; }
  .site-header .hdr-cart-btn {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0;
    padding: 0;
    justify-content: center;
    border-radius: var(--r);
  }
  .site-header .hdr-cart-btn .count {
    position: absolute;
    inset-block-start: -.28rem;
    inset-inline-end: -.28rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding-inline: .2rem;
    border: 2px solid rgb(var(--surface));
    background: rgb(var(--brand));
    color: #fff;
    font-size: .6rem;
  }
}
.cart-btn .count.hidden { display: none; }
@media (max-width: 379.98px) {
  .site-header .hdr-main { padding-inline: .75rem; }
  .site-header .hdr-theme-action { display: none; }
  .site-header .hdr-main > .group .mt-1 { display: none; }
}

/* ── اسکلتون سکشن‌ها ─────────────────────────────────────── */
[data-lazy] .card > * { transition: opacity .55s var(--ease); }
[data-lazy]:not(.loaded) .card > * { opacity: 0; }
[data-lazy]:not(.loaded) .card {
  position: relative; overflow: hidden;
  border-color: rgb(var(--line-2));
}
[data-lazy]:not(.loaded) .card::after {
  content: ""; position: absolute; inset: 0; z-index: 9; border-radius: inherit;
  background:
    linear-gradient(rgb(var(--ink) / .07) 0 0) 10px 10px  / calc(100% - 20px) 56% no-repeat,
    linear-gradient(rgb(var(--ink) / .07) 0 0) 16px 68%   / 45% 11px no-repeat,
    linear-gradient(rgb(var(--ink) / .07) 0 0) 16px 78%   / 72% 11px no-repeat,
    linear-gradient(rgb(var(--ink) / .07) 0 0) 16px 91%   / 34% 13px no-repeat,
    rgb(var(--surface));
}
[data-lazy]:not(.loaded) .card::before {
  content: ""; position: absolute; inset: 0; z-index: 10; border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgb(var(--ink) / .05), transparent);
  transform: translateX(-100%); animation: shimmer 1.5s infinite;
  opacity: 1;
}

/* ── فوتر گرم و گرد ──────────────────────────────────────── */
.site-footer {
  background: rgb(var(--surface-2));
  border-top: 0 !important;
  border-radius: 34px 34px 0 0;
  margin-top: 4.5rem;
}
.dark .site-footer { background: rgb(var(--bg-2)); }
.site-footer::before { border-radius: 34px 34px 0 0; }

.f-hours {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1rem; border-radius: var(--r);
  background: rgb(var(--brand) / .07); color: rgb(var(--brand-text));
  font-size: .8rem; font-weight: 700;
}

.f-badge {
  display: grid; place-items: center; width: 4.25rem; height: 4.25rem;
  border-radius: var(--r); border: 1px solid rgb(var(--line));
  background: rgb(var(--surface));
  font-size: .5625rem; font-weight: 600; line-height: 1.4; text-align: center;
  color: rgb(var(--dim));
  transition: border-color .26s var(--ease), transform .26s var(--ease);
}
.f-badge:hover { border-color: rgb(var(--brand) / .5); transform: translateY(-3px); }

/* ── چیدمان بنتوی هیرو ───────────────────────────────────── */
.bento {
  display: grid; gap: .85rem;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 13rem);
}
.bento .pv { height: 100%; }
.bento > * { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.bento .b-tall { grid-row: span 2; }
.bento-shot {
  box-shadow: 0 22px 46px -28px rgb(var(--shadow) / .45);
  border: 1px solid rgb(var(--line));
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.bento-shot:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgb(var(--shadow) / .55); }
.dark .bento-shot { border-color: rgb(255 255 255 / .08); box-shadow: 0 22px 50px -26px rgb(0 0 0 / .9); }

/* المان‌های ریز تزئینی */
.deco { position: absolute; z-index: 0; pointer-events: none; color: rgb(var(--ink) / .16); }
.deco svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }

/* v8c — تناسب اجزای داخل کاشی‌های بنتو */
.bento .pv-box .box { width: 33%; translate: -50% -50%; }
.bento .pv-font .fs-big { font-size: 3.4rem; top: 6%; }
.bento .pv-font .fs-lines span:nth-child(1) { font-size: .72rem; }
.bento .pv-font .fs-lines span:nth-child(2),
.bento .pv-font .fs-lines span:nth-child(3) { font-size: .58rem; }
.bento .pv-poster .pv-title { font-size: 1.15rem; }



/* ==========================================================================
   v9 — یک لایهٔ نور پیوسته برای کل صفحه، بدون درز بین سکشن‌ها
   ========================================================================== */

/* لایهٔ واحد پشت تمام صفحه: هاله‌ها آزادانه از سکشنی به سکشن بعد سرریز می‌شوند */
/* body باید position:relative باشد وگرنه لایهٔ نور فقط به اندازهٔ یک صفحه کشیده می‌شود */
body { position: relative; }
#page-glow {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
/* واشِ پایه: تضمین می‌کند هیچ‌جای صفحه ناگهان سفیدِ خالی نشود */
#page-glow::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgb(var(--brand) / .05) 0%,
      rgb(var(--brand) / .02) 9%,
      transparent 18%,
      rgb(13 148 136 / .022) 34%,
      rgb(79 70 229 / .022) 52%,
      rgb(217 119 6 / .02) 70%,
      rgb(var(--brand) / .035) 88%,
      rgb(var(--brand) / .05) 100%);
}
.dark #page-glow::before { opacity: .75; }
#page-glow > * { position: absolute; }

/* سکشن‌ها هیچ لبه یا پس‌زمینهٔ مستقلی ندارند */
main > section { background: transparent; border: 0; }

/* جداکنندهٔ نرم به‌جای خط تیز (فقط جایی که واقعاً لازم است) */
.soft-rule {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, rgb(var(--line)) 18%, rgb(var(--line)) 82%, transparent);
}

/* کارت آمار */
.stat-card {
  display: flex; flex-direction: column; gap: .1rem;
  padding: 1rem 1.1rem; border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-ico {
  display: grid; place-items: center; width: 2.15rem; height: 2.2rem;
  border-radius: var(--r-sm); margin-bottom: .55rem;
}

/* ==========================================================================
   v9b — حالِ ابزار طراحی در هیرو: دستگیره‌های انتخاب، خط‌کش، المان‌های شناور
   ========================================================================== */

/* واژهٔ گرادیانی متحرک */
.grad-word {
  background: linear-gradient(100deg, rgb(var(--brand)), #7c3aed 28%, #0d9488 52%, rgb(var(--brand)) 78%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradWord 11s linear infinite;
}
@keyframes gradWord { to { background-position: -300% 0; } }

/* قاب انتخاب — مثل Transform در فتوشاپ */
.sel-frame { position: absolute; inset: -15px; z-index: 6; pointer-events: none; }
.sel-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-xl);
  border: 1px dashed rgb(var(--brand) / .38);
}
.sel-frame i {
  position: absolute; width: 9px; height: 9px; border-radius: 2px;
  background: rgb(var(--bg)); border: 1.5px solid rgb(var(--brand));
}
.sel-frame i:nth-child(1) { inset-inline-start: -4px; top: -4px; }
.sel-frame i:nth-child(2) { inset-inline-end: -4px;   top: -4px; }
.sel-frame i:nth-child(3) { inset-inline-start: -4px; bottom: -4px; }
.sel-frame i:nth-child(4) { inset-inline-end: -4px;   bottom: -4px; }
.sel-frame i:nth-child(5) { inset-inline-start: 50%; top: -4px; translate: -50% 0; }
.sel-frame i:nth-child(6) { inset-inline-start: 50%; bottom: -4px; translate: -50% 0; }
.sel-frame i:nth-child(7) { inset-inline-start: -4px; top: 50%; translate: 0 -50%; }
.sel-frame i:nth-child(8) { inset-inline-end: -4px;   top: 50%; translate: 0 -50%; }

/* خط‌کش */
.ruler {
  height: 13px; opacity: .75;
  background:
    repeating-linear-gradient(90deg, rgb(var(--ink) / .22) 0 1px, transparent 1px 11px) bottom / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, rgb(var(--ink) / .32) 0 1px, transparent 1px 55px) bottom / 100% 10px no-repeat,
    linear-gradient(rgb(var(--ink) / .18) 0 0) bottom / 100% 1px no-repeat;
}
.dark .ruler {
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .2) 0 1px, transparent 1px 11px) bottom / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, rgb(255 255 255 / .3) 0 1px, transparent 1px 55px) bottom / 100% 10px no-repeat,
    linear-gradient(rgb(255 255 255 / .16) 0 0) bottom / 100% 1px no-repeat;
}

/* المان‌های خطیِ شناور */
.glyph {
  position: absolute; z-index: 0; pointer-events: none;
  color: rgb(var(--ink) / .18);
  animation: float 9s ease-in-out infinite;
}
.dark .glyph { color: rgb(255 255 255 / .16); }
.glyph svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; }
.glyph.g2 { animation-duration: 12s; animation-direction: reverse; }
.glyph.g3 { animation-duration: 14s; animation-delay: -3s; }

/* چیپ «جدید» با درخشش */
.badge-shine { position: relative; overflow: hidden; }
.badge-shine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgb(255 255 255 / .55) 50%, transparent 60%);
  transform: translateX(-120%); animation: badgeShine 4.5s ease-in-out infinite;
}
@keyframes badgeShine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ==========================================================================
   v10 — فوتر رنگی و گرافیکی: بلوک تیره با شکوفه‌های رنگ
   ========================================================================== */

/* توکن‌ها داخل فوتر بازتعریف می‌شوند تا همهٔ کامپوننت‌ها تیره رندر شوند */
.site-footer {
  --ink:        242 241 247;
  --ink-2:      196 193 208;
  --dim:        156 153 170;
  --line:        52  50  70;
  --line-2:      40  38  56;
  --surface:     28  26  42;
  --surface-2:   34  32  50;
  --bg:          17  16  26;
  --brand-text: 255 146 154;
  --glass:      255 255 255;
  --glass-a:    .055;
  --glass-line: 255 255 255;
  --glass-line-a: .11;

  position: relative; isolation: isolate; overflow: hidden;
  background: #11101a;
  color: rgb(var(--ink));
  border-radius: 38px 38px 0 0;
  margin-top: 5rem;
  border: 0 !important;
}
.site-footer::before { display: none; }

/* شکوفه‌های رنگ داخل فوتر */
.f-bloom { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(70px); }
.f-bloom.b1 { width: 36rem; height: 36rem; background: rgb(229 35 47 / .2);   top: -16rem; inset-inline-end: -10rem; }
.f-bloom.b2 { width: 30rem; height: 30rem; background: rgb(99 91 200 / .14); bottom: -14rem; inset-inline-start: -8rem; }
.f-bloom.b3 { display: none; }

/* گرید ظریف روی فوتر */
.f-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 55%);
          mask-image: linear-gradient(to bottom, #000, transparent 55%);
}

.site-footer > .f-inner { position: relative; z-index: 2; }

/* کارت CTA با گرادیان مش */
.f-cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background:
    radial-gradient(120% 180% at 96% 0%, rgb(229 35 47 / .3), transparent 62%),
    #191828;
  border: 1px solid rgb(255 255 255 / .09);
  color: #fff;
}
.f-cta::after {
  content: ""; position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.f-cta > * { position: relative; z-index: 1; }

/* سرستون‌های رنگی */
.f-head { display: flex; align-items: center; gap: .5rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--ink-2)) !important; }
.f-head::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: rgb(var(--brand)); }

/* شبکه‌های اجتماعی با رنگ اختصاصی */
.f-social {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: var(--r);
  border: 1px solid rgb(255 255 255 / .12); color: rgb(var(--ink-2));
  transition: color .26s var(--ease), border-color .26s var(--ease),
              background-color .26s var(--ease), transform .26s var(--ease);
}
.f-social:hover { transform: translateY(-3px); color: #fff; }
.f-social:hover { background: rgb(var(--brand) / .18); border-color: rgb(var(--brand) / .55); }

/* نماد ابزارها داخل فوتر */
.site-footer .tool-mark { border-color: rgb(255 255 255 / .12); color: rgb(var(--dim)); }
.site-footer .tool-mark:hover { color: #fff; border-color: rgb(var(--brand) / .6); background: rgb(var(--brand) / .16); }

.f-badge { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .1); color: rgb(var(--dim)); }
.f-hours { background: rgb(255 255 255 / .07); color: rgb(var(--brand-text)); }

/* المان‌های خطی شناور در فوتر */
.f-glyph { position: absolute; z-index: 1; pointer-events: none; color: rgb(255 255 255 / .1); animation: float 11s ease-in-out infinite; }
.f-glyph svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }

/* ══════════ وردپرس — افزوده‌های نسخهٔ ۱.۱ ══════════ */
.site-header.no-hdr-line::before { display: none; }

.dg-crumbs ol { list-style: none; margin: 0; padding: 0; }
.dg-crumbs a { text-decoration: none; }

/* لینک پرش به محتوا */
.skip-link:focus { outline: 2px solid rgb(var(--brand)); }


/* ══════════════════════════════════════════════════════════════════
   افزوده‌های نسخهٔ ۱.۳ — هیروی تازه و اصلاح آبشار
   ══════════════════════════════════════════════════════════════════ */

/* ⚠️ main.css بعد از tailwind.css بارگذاری می‌شود، پس قواعد کامپوننتی
   (مثل .btn{display:inline-flex}) یوتیلیتی‌های نمایشی تیلویند را می‌بازند
   و مثلاً «lg:hidden» روی دکمهٔ همبرگری کار نمی‌کرد.
   این بلوک همان یوتیلیتی‌های پرکاربرد را در انتها دوباره اعلام می‌کند
   تا با ترتیب منبع برنده شوند. اگر یوتیلیتی تازه‌ای لازم شد، این‌جا اضافه کن. */
.dg-u,
.hidden { display: none; }

@media (min-width: 640px) {
  .sm\:block        { display: block; }
  .sm\:flex         { display: flex; }
  .sm\:inline       { display: inline; }
  .sm\:inline-flex  { display: inline-flex; }
  .sm\:inline-grid  { display: inline-grid; }
  .sm\:hidden       { display: none; }
}
@media (min-width: 768px) {
  .md\:block  { display: block; }
  .md\:flex   { display: flex; }
  .md\:grid   { display: grid; }
  .md\:hidden { display: none; }
}
@media (min-width: 1024px) {
  .lg\:block        { display: block; }
  .lg\:flex         { display: flex; }
  .lg\:grid         { display: grid; }
  .lg\:inline-flex  { display: inline-flex; }
  .lg\:hidden       { display: none; }
}

/* ══════════ هیرو ══════════ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .3rem .9rem .3rem .3rem;
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  background: rgb(var(--surface));
  font-size: .8rem;
  color: rgb(var(--ink-2));
}
.hero-badge b {
  padding: .18rem .6rem;
  border-radius: 999px;
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  font-size: .72rem;
  font-weight: 700;
}

.hero-title {
  margin-top: 1.6rem;
  font-size: clamp(1.75rem, 1.2rem + 1.3vw, 2rem);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -.015em;
  text-wrap: balance;
  color: rgb(var(--ink));
}
.hero-title .text-brandtext { color: rgb(var(--brand-text)); }

@media (min-width: 1024px) {
  .hero-title { white-space: nowrap; text-wrap: nowrap; }
}

.hero-lead {
  margin-top: 1.15rem;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 2.05;
  color: rgb(var(--ink-2));
}

.hero-search {
  display: flex;
  align-items: center;
  gap: .75rem;
  height: 3.5rem;
  max-width: 34rem;
  margin-top: 2rem;
  padding: 0 1.35rem 0 .45rem;
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  background: rgb(var(--surface));
  box-shadow: 0 1px 2px rgb(var(--shadow) / .05), 0 12px 30px -18px rgb(var(--shadow) / .3);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.hero-search:focus-within {
  border-color: rgb(var(--brand) / .55);
  box-shadow: 0 0 0 4px rgb(var(--brand) / .1), 0 12px 30px -18px rgb(var(--shadow) / .3);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .88rem;
  color: rgb(var(--ink));
  outline: none;
}
.hero-search input::placeholder { color: rgb(var(--dim)); }
.hero-search .btn {
  align-self: stretch;
  height: auto;
  margin-block: .27rem;
  padding-inline: 1.45rem;
  flex-shrink: 0;
  border-radius: 999px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
}

/* ── کارت‌های آمار ── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 2.5rem;
  max-width: 36rem;
}
.hero-stats .stat {
  --stat-accent: var(--brand);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 5.75rem;
  padding: 1rem;
  border: 1px solid rgb(var(--stat-accent) / .16);
  border-radius: 1.15rem;
  background:
    linear-gradient(145deg, rgb(var(--stat-accent) / .075), transparent 52%),
    rgb(var(--surface) / .92);
  box-shadow: 0 18px 34px -30px rgb(var(--stat-accent) / .75), inset 0 1px rgb(255 255 255 / .5);
  transition: border-color .25s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease);
}
.hero-stats .stat:nth-child(2) { --stat-accent: 79 70 229; }
.hero-stats .stat:nth-child(3) { --stat-accent: 13 148 136; }
.hero-stats .stat::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -2rem;
  inset-block-start: -2.6rem;
  width: 6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(var(--stat-accent) / .12);
  filter: blur(5px);
}
.hero-stats .stat::after {
  content: "";
  position: absolute;
  inset-inline: 1rem;
  inset-block-end: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, rgb(var(--stat-accent) / .8), transparent);
  opacity: .65;
}
.hero-stats .stat:hover {
  border-color: rgb(var(--stat-accent) / .38);
  transform: translateY(-4px);
  box-shadow: 0 24px 42px -30px rgb(var(--stat-accent) / .85), inset 0 1px rgb(255 255 255 / .62);
}

.hero-stats .stat-ic {
  display: grid;
  place-items: center;
  width: 2.65rem; height: 2.65rem;
  flex-shrink: 0;
  border: 1px solid rgb(var(--stat-accent) / .16);
  border-radius: .82rem;
  background: rgb(var(--stat-accent) / .11);
  color: rgb(var(--stat-accent));
  box-shadow: inset 0 1px rgb(255 255 255 / .55);
}
.hero-stats .stat-ic .ic { width: 1.15rem; height: 1.15rem; stroke-width: 1.8; }
.hero-stats .stat-t { display: flex; flex-direction: column; gap: .14rem; min-width: 0; line-height: 1.35; }
.hero-stats .stat-t b { font-size: 1.22rem; font-weight: 800; color: rgb(var(--ink)); }
.hero-stats .stat-t i {
  font-style: normal;
  font-size: .74rem;
  color: rgb(var(--dim));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── تصویر هیرو ── */
/* تصویر هیرو: قاب نرم + هالهٔ رنگی پشتش تا از پس‌زمینه جدا شود
   و بخش راست هیرو دیگر «تصویرِ لخت» به نظر نرسد. */
.hero-art { position: relative; }
/* ⛔ نه قاب، نه پس‌زمینه، نه هالهٔ رنگی پشت تصویر — بازخورد: «تصویرم را گذاشتم
   همین‌قدر زشت شد؛ بک‌گراند نباید داشته باشد». تصویر خودش می‌نشیند. */
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}
.hero-art-empty {
  display: grid;
  place-items: center;
  gap: .75rem;
  aspect-ratio: 4 / 3;
  border: 1px dashed rgb(var(--line));
  border-radius: var(--r-xl);
  background: rgb(var(--surface-2));
  color: rgb(var(--dim));
  text-align: center;
  padding: 1.5rem;
}
.hero-art-empty b { font-size: .85rem; font-weight: 600; }

@media (max-width: 1023px) {
  .hero-copy { order: 1; min-width: 0; }
  .hero-art { order: 2; min-width: 0; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .hero-stats .stat { flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: .85rem .55rem; text-align: center; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(15rem, .92fr);
    gap: 2.25rem;
    padding-block: 3.5rem;
  }
  .hero-art img { max-height: 24rem; object-fit: contain; }
  .hero-title { font-size: clamp(1.8rem, 3vw, 2rem); }
}
@media (max-width: 420px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats .stat:last-child { grid-column: span 2; flex-direction: row; align-items: center; text-align: start; }
}


/* ══════════════════════════════════════════════════════════════════
   کارت نوشته (`.pc`) — ۲.۹.۰ از صفر
   برگهٔ سفید + تصویر تورفته + «زبانهٔ بریده» دسته در گوشهٔ تصویر.
   ⛔ `.post-card` (چیپ/زمان شناور روی اسکریم تیره) حذف شد.
   ══════════════════════════════════════════════════════════════════ */
.pc {
  --pc-r: var(--r-xl);
  position: relative;
  display: flex; flex-direction: column;
  height: 100%; min-width: 0;
  padding: .45rem;
  border: 1px solid rgb(var(--line) / .8);
  border-radius: var(--pc-r);
  background: rgb(var(--surface));
  transition: border-color .3s var(--ease), transform .35s var(--ease);
}
.pc:hover { border-color: rgb(var(--ink) / .18); transform: translateY(-3px); }

.pc-media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--pc-r) - .3rem);
  background: rgb(var(--surface-2));
  isolation: isolate;
}
.pc-media img, .pc-media .pv {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.pc:hover .pc-media img, .pc:hover .pc-media .pv { transform: scale(1.06); }

/* زبانهٔ بریده — هم‌رنگ برگه، با دو گوشهٔ کاو (RTL: پایین-راست) */
.pc-tab {
  --cut: .85rem;
  position: absolute; z-index: 5;
  bottom: 0; inset-inline-start: 0;
  display: inline-flex; align-items: center; gap: .4rem;
  max-width: 75%;
  padding: .55rem .9rem .15rem .95rem;
  border-start-end-radius: var(--cut);
  background: rgb(var(--surface));
  font-size: .72rem; font-weight: 700; line-height: 1.6;
  color: rgb(var(--ink));
  white-space: nowrap; overflow: visible; text-overflow: ellipsis;
}
.pc-tab::before, .pc-tab::after {
  content: ""; position: absolute;
  width: var(--cut); height: var(--cut);
  background: radial-gradient(circle at 0 0, transparent calc(var(--cut) - .5px), rgb(var(--surface)) var(--cut));
}
.pc-tab::before { bottom: 100%; inset-inline-start: 0; }
.pc-tab::after { bottom: 0; inset-inline-start: 100%; }
.pc-tab i { width: .42rem; height: .42rem; flex: 0 0 auto; border-radius: 50%; background: rgb(var(--brand)); }

.pc-media .pv-poster .pv-in { justify-content: flex-start; }
.pc-arrow {
  position: absolute; z-index: 5; top: .7rem; inset-inline-end: .7rem;
  display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: rgb(255 255 255 / .9); color: #111;
  opacity: 0; transform: translate(6px, 6px) scale(.7) rotate(45deg);
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.pc:hover .pc-arrow { opacity: 1; transform: rotate(45deg); }

.pc-b { display: flex; flex: 1; flex-direction: column; padding: .95rem .7rem .55rem; }
.pc-meta { display: flex; align-items: center; gap: .5rem; font-size: .7rem; color: rgb(var(--dim)); }
.pc-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.pc-title { margin-top: .45rem; font-size: 1.02rem; font-weight: 800; line-height: 1.75; }
.pc-title a {
  color: rgb(var(--ink));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  background: linear-gradient(currentColor, currentColor) no-repeat right 92% / 0 1.5px;
  transition: background-size .45s var(--ease);
}
.pc:hover .pc-title a { background-size: 100% 1.5px; }
.pc-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--pc-r); }
.pc-ex {
  margin-top: .35rem; font-size: .8rem; line-height: 1.95; color: rgb(var(--dim));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: auto; padding-top: 1rem;
}
.pc-by { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; font-size: .74rem; font-weight: 700; color: rgb(var(--ink-2)); }
.pc-by img { width: 1.6rem; height: 1.6rem; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.pc-by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-read { display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 700; color: rgb(var(--ink)); }
.pc-read i { width: .9rem; height: 1.5px; background: rgb(var(--brand)); transition: width .4s var(--ease); }
.pc:hover .pc-read i { width: 1.9rem; }
.dark .pc-arrow { background: rgb(var(--bg) / .9); color: rgb(var(--ink)); }


/* ══════════════════════════════════════════════════════════════════
   نوار ناوبری پایین موبایل (کل سایت) — `.mnav`
   زیر ۱۰۲۴px می‌آید؛ ارتفاعش با `--mnav-h` به بقیهٔ عناصر شناور
   (نوار خرید تک‌محصول و دکمهٔ بازگشت به بالا) اعلام می‌شود.
   ══════════════════════════════════════════════════════════════════ */
:root { --mnav-h: 0px; }

.mnav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 55;
  pointer-events: none;
}
.mnav-in {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  gap: .2rem;
  padding: .45rem .7rem calc(.45rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(var(--line));
  border-radius: 24px 24px 0 0;
  background: rgb(var(--surface) / .88);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
          backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 -16px 40px -26px rgb(var(--shadow) / .55);
}
.mnav-i {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .18rem;
  padding: .45rem 0 .35rem;
  border-radius: var(--r);
  font-size: .63rem;
  font-weight: 600;
  color: rgb(var(--dim));
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.mnav-i .ic { width: 21px; height: 21px; }
.mnav-i:active { background: rgb(var(--surface-2)); }
.mnav-i[aria-current="page"] { color: rgb(var(--brand-text)); }
.mnav-i[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -.45rem;
  width: 1.5rem;
  height: 3px;
  border-radius: 0 0 99px 99px;
  background: rgb(var(--brand));
}

/* دکمهٔ برجستهٔ سبد خرید */
.mnav-cart {
  position: relative;
  flex-shrink: 0;
  width: 3.4rem;
  height: 3.4rem;
  margin: -1.4rem .35rem 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--brand));
  color: #fff;
  border: 4px solid rgb(var(--bg));
  transition: background-color .2s var(--ease), transform .12s var(--ease);
}
.mnav-cart:hover { background: rgb(var(--brand-2)); }
.mnav-cart:active { transform: translateY(1px); }
.mnav-cart .ic { width: 22px; height: 22px; }
.mnav-count {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding-inline: .25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(var(--ink));
  color: rgb(var(--bg));
  font-size: .62rem;
  font-weight: 700;
  border: 2px solid rgb(var(--bg));
}

@media (max-width: 1023px) {
  :root { --mnav-h: 4.5rem; }
  body { padding-bottom: var(--mnav-h); }
  #to-top { bottom: calc(var(--mnav-h) + .8rem); }
}


/* ══════════════════════════════════════════════════════════════════
   تک‌محصول «آرت‌بورد» — نسخهٔ ۲.۰ (بازطراحی کامل، پیشوند .ab-)
   ایده: محصول مثل یک فایلِ بازِ نرم‌افزار طراحی نشان داده می‌شود —
   نوار عنوان برنامه، بومِ تیره، دستگیره‌های انتخاب، خط‌کش ابعاد،
   پنل لایه‌ها، تب‌های ویرایشگر، ستون ابزارک و نوار خرید شناور.
   ══════════════════════════════════════════════════════════════════ */

.ab { padding-top: 1.4rem; padding-bottom: 3.5rem; }
.ab .dg-crumbs { margin-bottom: 1.1rem; }

/* ── بوم تیره ─────────────────────────────────────────────── */
.ab-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(158deg, #1b1a25 0%, #121120 46%, #191627 100%);
  border: 1px solid rgb(255 255 255 / .07);
  color: #fff;
  box-shadow: 0 46px 90px -56px rgb(var(--shadow) / .8);
}
.ab-stage::before,
.ab-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
}
.ab-stage::before { inset-inline-end: -10rem; top: -14rem; background: radial-gradient(circle, rgb(var(--brand) / .55), transparent 65%); }
.ab-stage::after  { inset-inline-start: -12rem; bottom: -18rem; background: radial-gradient(circle, rgb(94 92 214 / .45), transparent 66%); }

/* نوار عنوانِ «برنامه» */
.ab-bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 0 1.15rem;
  height: 3.1rem;
  border-bottom: 1px solid rgb(255 255 255 / .08);
  background: rgb(255 255 255 / .03);
}
.ab-dots { display: flex; gap: .35rem; flex-shrink: 0; }
.ab-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / .16); }
.ab-dots i:first-child { background: rgb(var(--brand) / .85); }
.ab-file {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  font-size: .75rem;
  color: rgb(255 255 255 / .55);
}
.ab-file b { font-weight: 600; color: rgb(255 255 255 / .9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }
.ab-ext {
  flex-shrink: 0;
  padding: .12rem .5rem;
  border-radius: var(--r-sm);
  background: rgb(var(--brand) / .18);
  border: 1px solid rgb(var(--brand) / .35);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.ab-bar-end { margin-inline-start: auto; display: flex; align-items: center; gap: .45rem; }
.ab-tool {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .26rem .6rem;
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / .06);
  font-size: .68rem;
  color: rgb(255 255 255 / .68);
}
.ab-tool .ic { width: 14px; height: 14px; color: rgb(255 255 255 / .5); }
@media (max-width: 767px) { .ab-bar-end { display: none; } }

/* بدنهٔ دوستونه */
.ab-body { display: grid; }
@media (min-width: 1024px) {
  .ab-body { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); }
  .ab-canvas { border-inline-end: 1px solid rgb(255 255 255 / .07); }
}

/* ── سمت تصویر ── */
.ab-canvas { padding: 2.4rem 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ab-mount { position: relative; width: 100%; max-width: 27rem; }
.ab-art {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgb(255 255 255 / .04);
  transition: transform .5s var(--ease);
}
.ab-mount:hover .ab-art { transform: translateY(-3px); }
.ab-art img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.ab-art .pv { aspect-ratio: 1 / 1; border-radius: 0; }

/* ⚠️ قاب انتخاب، دستگیره‌های Transform، خط‌کش ابعاد و برچسب «۱۰۰٪»
   حذف شدند — بازخورد کاربر: «المان‌های فتوشاپ را نیاور». فقط تخفیف و
   دکمهٔ بزرگ‌نمایی می‌ماند. */
.ab-off {
  position: absolute;
  top: .8rem;
  inset-inline-start: .8rem;
  z-index: 2;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgb(var(--brand));
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  box-shadow: 0 8px 20px -8px rgb(var(--brand) / .9);
}
.ab-zoom {
  position: absolute;
  top: .8rem;
  inset-inline-end: .8rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(10 10 16 / .5);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / .22);
  color: #fff;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .2s var(--ease);
}
.ab-mount:hover .ab-zoom,
.ab-zoom:focus-visible { opacity: 1; transform: none; }
.ab-zoom:hover { background: rgb(var(--brand)); border-color: transparent; }

/* نوار تامبنیل */
.ab-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.6rem; }
.ab-thumb {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .14);
  background: rgb(255 255 255 / .05);
  opacity: .6;
  transition: opacity .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ab-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-thumb:hover { opacity: 1; }
.ab-thumb[aria-current="true"] { opacity: 1; border-color: rgb(var(--brand)); box-shadow: 0 0 0 3px rgb(var(--brand) / .22); }

/* ── سمت اطلاعات ── */
.ab-info { padding: 2.4rem 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
.ab-cat {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .75rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .07);
  border: 1px solid rgb(255 255 255 / .1);
  color: rgb(255 255 255 / .82);
  font-size: .72rem;
  font-weight: 600;
  transition: background-color .2s var(--ease);
}
.ab-cat .ic { color: rgb(var(--brand)); width: 15px; height: 15px; }
.ab-cat:hover { background: rgb(255 255 255 / .13); }

.ab-title {
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: #fff;
}
.ab-lead { font-size: .85rem; line-height: 2.05; color: rgb(255 255 255 / .6); }

.ab-vendor {
  display: flex;
  align-items: center;
  gap: .6rem;
  align-self: flex-start;
  padding: .45rem .95rem .45rem .45rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .09);
  transition: background-color .2s var(--ease);
}
.ab-vendor:hover { background: rgb(255 255 255 / .1); }
.ab-vendor img { width: 2rem; height: 2rem; border-radius: 50%; box-shadow: 0 0 0 2px rgb(var(--brand) / .6); }
.ab-vendor b { font-size: .8rem; font-weight: 700; color: #fff; }
.ab-vendor .ic { width: 15px; height: 15px; color: rgb(var(--brand)); }
.ab-vendor small { font-size: .7rem; color: rgb(255 255 255 / .5); display: inline-flex; align-items: center; gap: .25rem; }
.ab-vendor small .ic { color: rgb(var(--gold)); }

/* داکِ خرید */
.ab-dock {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.05rem 1.15rem;
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / .07);
  border: 1px solid rgb(255 255 255 / .13);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.ab-price { display: flex; flex-direction: column; gap: .1rem; }
.ab-price s { font-size: .74rem; color: rgb(255 255 255 / .38); }
.ab-price b { font-size: 1.7rem; font-weight: 800; line-height: 1.25; color: #fff; }
.ab-price b span { font-size: .72rem; font-weight: 500; color: rgb(255 255 255 / .5); }

.pd-actions { display: flex; align-items: center; gap: .55rem; margin-inline-start: auto; }
.ab-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 3rem;
  padding-inline: 1.5rem;
  border-radius: 999px;
  background: rgb(var(--brand));
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .2s var(--ease), transform .12s var(--ease);
}
.ab-cta:hover { background: rgb(var(--brand-2)); }
.ab-cta:active { transform: translateY(1px); }
.ab-wish {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / .08);
  border: 1px solid rgb(255 255 255 / .18);
  color: #fff;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.ab-wish:hover,
.ab-wish[aria-pressed="true"] { background: rgb(var(--brand)); border-color: transparent; }

.ab-trust { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.ab-trust li { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; color: rgb(255 255 255 / .58); }
.ab-trust .ic { width: 16px; height: 16px; color: rgb(var(--brand)); }

@media (max-width: 1023px) {
  .ab-stage { border-radius: var(--r-xl); }
  .ab-canvas { padding: 2.2rem 1.2rem 1.6rem; }
  .ab-info { padding: 1.6rem 1.3rem 1.8rem; }
  .ab-dock .pd-actions { width: 100%; }
  .ab-dock .ab-cta { flex: 1; }
}

/* ── پنل لایه‌ها + کارت طراح ──────────────────────────────── */
.ab-panels { display: grid; gap: 1.3rem; margin-top: 1.4rem; }
@media (min-width: 1024px) { .ab-panels { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }

@media (max-width: 1023px) { .ab-art { max-width: 17rem; } }
.ab-card {
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
  overflow: hidden;
}
.ab-card-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.2rem;
  border-bottom: 1px solid rgb(var(--line-2));
  font-size: .82rem;
  font-weight: 700;
  color: rgb(var(--ink));
}
.ab-card-head .ic { color: rgb(var(--brand)); }
.ab-card-head small { margin-inline-start: auto; font-size: .68rem; font-weight: 500; color: rgb(var(--dim)); }

.ab-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: .55rem;
  padding: .85rem;
  list-style: none;
  margin: 0;
}
.ab-spec {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  padding: .6rem .7rem;
  border: 1px solid rgb(var(--line-2));
  border-radius: var(--r);
  background: rgb(var(--surface-2));
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.ab-spec:hover { border-color: rgb(var(--brand) / .35); background: rgb(var(--surface)); }
.ab-spec-ic {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand-text));
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.ab-spec:hover .ab-spec-ic { background: rgb(var(--brand)); color: #fff; }
.ab-spec-ic .ic { width: 16px; height: 16px; }
.ab-spec-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.ab-spec-t small { font-size: .67rem; color: rgb(var(--dim)); }
.ab-spec-t b { font-size: .82rem; font-weight: 700; color: rgb(var(--ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ab-vcard { padding: 1.4rem 1.2rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.ab-vcard-av { position: relative; display: inline-block; }
.ab-vcard-av img { width: 4.2rem; height: 4.2rem; border-radius: 50%; box-shadow: 0 0 0 3px rgb(var(--surface)), 0 0 0 5px rgb(var(--brand) / .35); }
.ab-vcard h3 { display: inline-flex; align-items: center; gap: .35rem; font-size: .95rem; font-weight: 700; }
.ab-vcard p { font-size: .74rem; color: rgb(var(--dim)); }
.ab-vstats { display: flex; width: 100%; margin: .3rem 0 .2rem; }
.ab-vstats div { flex: 1; padding: .5rem 0; }
.ab-vstats div + div { border-inline-start: 1px solid rgb(var(--line-2)); }
.ab-vstats b { display: block; font-size: .95rem; font-weight: 800; color: rgb(var(--ink)); }
.ab-vstats small { font-size: .68rem; color: rgb(var(--dim)); }

/* ── تب‌ها + ستون ابزارک ──────────────────────────────────── */
.ab-work { display: grid; gap: 1.5rem; margin-top: 2rem; align-items: start; }
@media (min-width: 1024px) { .ab-work { grid-template-columns: minmax(0, 1fr) 19.5rem; } }

.ab-tabs {
  display: inline-flex;
  gap: .25rem;
  margin-bottom: 1rem;
  padding: .3rem;
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  background: rgb(var(--bg-2));
}
.ab-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  height: 2.4rem;
  padding-inline: 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(var(--dim));
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ab-tab:hover { color: rgb(var(--ink)); }
.ab-tab .ic { width: 16px; height: 16px; }
.ab-tab i {
  font-style: normal;
  font-size: .68rem;
  font-weight: 700;
  padding: .06rem .4rem;
  border-radius: 999px;
  background: rgb(var(--line-2));
  color: rgb(var(--dim));
}
.ab-tab[aria-selected="true"] {
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  box-shadow: 0 10px 22px -12px rgb(var(--brand) / .75);
}
.ab-tab[aria-selected="true"] .ic { color: currentColor; }
.ab-tab[aria-selected="true"] i { background: rgb(255 255 255 / .25); color: #fff; }

.ab-panel {
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
  padding: 1.7rem;
}
@media (max-width: 640px) { .ab-panel { padding: 1.2rem; } }

/* خلاصهٔ امتیاز در تب نظرات */
.ab-rate {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgb(var(--line-2));
  border-radius: var(--r-lg);
  background: rgb(var(--surface-2));
}
.ab-rate-score { text-align: center; }
.ab-rate-score b { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; color: rgb(var(--ink)); }
.ab-rate-score small { font-size: .68rem; color: rgb(var(--dim)); }
.ab-stars { display: flex; gap: .1rem; justify-content: center; margin: .35rem 0 .25rem; }
.ab-stars .ic { width: 15px; height: 15px; color: rgb(var(--line)); }
.ab-stars .on { color: rgb(var(--gold)); }
.ab-bars { flex: 1; min-width: 13rem; display: flex; flex-direction: column; gap: .3rem; }
.ab-barrow { display: flex; align-items: center; gap: .55rem; font-size: .7rem; color: rgb(var(--dim)); }
.ab-barrow u { flex: 1; height: 6px; border-radius: 999px; background: rgb(var(--line)); overflow: hidden; text-decoration: none; }
.ab-barrow u b { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgb(var(--brand)), rgb(var(--brand-2))); }

/* ستون تبلیغات (ابزارک) */
.ab-side { display: flex; flex-direction: column; gap: 1.1rem; }
@media (min-width: 1024px) { .ab-side { position: sticky; top: calc(var(--sticky-top, 72px) + 1.25rem); } }
.ab-side .dg-widget {
  padding: 1.2rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
  font-size: .82rem;
  line-height: 1.95;
  color: rgb(var(--ink-2));
}
.ab-side .dg-widget-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 700;
  color: rgb(var(--ink));
  margin-bottom: .9rem;
}
.ab-side .dg-widget-title::before { content: ""; width: 3px; height: 1rem; border-radius: 999px; background: rgb(var(--brand)); }
.ab-side .dg-widget img { max-width: 100%; height: auto; border-radius: var(--r); display: block; }
.ab-side .dg-widget ul { list-style: none; margin: 0; padding: 0; }
.ab-side .dg-widget li + li { margin-top: .55rem; padding-top: .55rem; border-top: 1px dashed rgb(var(--line-2)); }

/* ابزارک‌های ستون کناری محصول */
.ab-side .dgw-plain, .ab-side .widget_dg_shop_button, .ab-side .widget_dg_social_buttons { padding: 0; border: 0; background: none; }
.dgw-shop {
  display: flex;
  align-items: center;
  gap: .6rem;
  height: 3rem;
  padding-inline: 1.1rem;
  border-radius: var(--r-lg);
  background: rgb(var(--brand));
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .2s var(--ease);
}
.dgw-shop span { flex: 1; }
.dgw-shop:hover { background: rgb(var(--brand-2)); }
.dgw-sug { display: flex; flex-direction: column; }
.dgw-sug a { display: flex; align-items: center; gap: .7rem; }
.dgw-sug-art {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--r);
  overflow: hidden;
  background: rgb(var(--surface-2));
  display: grid;
  place-items: center;
  color: rgb(var(--dim));
}
.ab-side .dgw-sug-art img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.dgw-sug-t { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.dgw-sug-t b { font-size: .78rem; font-weight: 700; color: rgb(var(--ink)); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dgw-sug-t i { font-style: normal; font-size: .74rem; color: rgb(var(--brand-text)); }
.dgw-sug a:hover .dgw-sug-t b { color: rgb(var(--brand-text)); }
.dgw-soc { display: flex; flex-direction: column; gap: .6rem; }
.dgw-soc a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  border-radius: var(--r-lg);
  color: #fff;
  transition: filter .2s var(--ease), transform .2s var(--ease);
}
.dgw-soc a:hover { filter: brightness(1.08); transform: translateY(-1px); }
.dgw-soc a > .ic:first-child { width: 1.6rem; height: 1.6rem; flex: none; }
.dgw-soc a span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; white-space: nowrap; }
.dgw-soc a b { font-size: .82rem; font-weight: 700; }
.dgw-soc a small { font-size: .68rem; opacity: .85; }
.dgw-soc-ig { background: #d62976; }
.dgw-soc-tg { background: #229ed9; }

.ab-promo {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.3rem;
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, #1b1926, #100f18);
  color: #fff;
  text-align: center;
}
.ab-promo::before {
  content: "";
  position: absolute;
  inset-inline-end: -6rem;
  top: -8rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--brand) / .5), transparent 65%);
  filter: blur(30px);
}
.ab-promo .ic { width: 30px; height: 30px; color: rgb(var(--brand)); margin-inline: auto; }
.ab-promo h3 { font-size: .95rem; font-weight: 700; margin: .6rem 0 .4rem; }
.ab-promo p { font-size: .76rem; line-height: 1.95; color: rgb(255 255 255 / .6); margin-bottom: 1rem; }
.ab-promo a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 2.5rem;
  padding-inline: 1.1rem;
  border-radius: 999px;
  background: rgb(var(--brand));
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  transition: background-color .2s var(--ease);
}
.ab-promo a:hover { background: rgb(var(--brand-2)); }

.ab-hint {
  padding: 2rem 1.1rem;
  border: 1px dashed rgb(var(--line));
  border-radius: var(--r-xl);
  text-align: center;
  font-size: .76rem;
  line-height: 1.95;
  color: rgb(var(--dim));
}
.ab-hint .ic { color: rgb(var(--brand)); margin-inline: auto; margin-bottom: .5rem; }

/* ── نوار خرید شناور ──────────────────────────────────────── */
.ab-fly {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  transform: translateY(calc(100% + var(--mnav-h, 0px) + 1.5rem));
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
  border-top: 1px solid rgb(var(--line));
  background: rgb(var(--surface) / .92);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
          backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 -14px 40px -24px rgb(var(--shadow) / .5);
  padding-bottom: env(safe-area-inset-bottom);
}
.ab-fly.show { transform: none; visibility: visible; transition: transform .35s var(--ease); }
@media (max-width: 1023px) {
  .ab-fly { bottom: var(--mnav-h, 0px); }
}
.ab-fly-in { display: flex; align-items: center; gap: .9rem; padding: .65rem 1.1rem; }
.ab-fly-art { width: 2.8rem; height: 2.8rem; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; border: 1px solid rgb(var(--line)); }
.ab-fly-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-fly-t { min-width: 0; display: flex; flex-direction: column; gap: .18rem; }
.ab-fly-t > b { font-size: .82rem; font-weight: 700; color: rgb(var(--ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* قیمت — پیش و پس از تخفیف، کنار عنوان در سمت راست نوار */
.ab-fly-price { display: flex; align-items: baseline; gap: .5rem; }
.ab-fly-price b { font-size: 1.15rem; font-weight: 800; line-height: 1.2; color: rgb(var(--ink)); }
.ab-fly-price b span { font-size: .68rem; font-weight: 500; color: rgb(var(--dim)); }
.ab-fly-price s { font-size: .74rem; color: rgb(var(--dim)); }
.ab-fly-off {
  font-style: normal;
  font-size: .67rem;
  font-weight: 700;
  padding: .16rem .45rem;
  border-radius: 7px;
  background: rgb(var(--brand) / .12);
  color: rgb(var(--brand-text));
}

/* اکشن‌ها — مینیمال، پشت یک جداکنندهٔ نازک */
.ab-fly .pd-actions {
  margin-inline-start: auto;
  padding-inline-start: 1rem;
  border-inline-start: 1px solid rgb(var(--line-2));
  gap: .45rem;
}
.ab-fly .ab-cta {
  flex: none;
  height: 2.5rem;
  padding-inline: 1.05rem;
  border-radius: var(--r);
  font-size: .8rem;
  font-weight: 600;
  box-shadow: none;
}
.ab-fly .ab-wish {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r);
  background: rgb(var(--surface-2));
  border-color: rgb(var(--line));
  color: rgb(var(--ink-2));
}
@media (max-width: 767px) {
  .ab-fly-in { gap: .6rem; padding: .6rem .9rem; }
  .ab-fly-art { display: none; }
  .ab-fly-t small { display: none; }
  .ab-fly { border-radius: 18px 18px 0 0; border: 1px solid rgb(var(--line)); border-bottom: 0; }
  .ab-fly .pd-actions { padding-inline-start: .6rem; }
  .ab-fly .ab-wish { display: none; }
  .ab-fly .ab-cta { padding-inline: .9rem; }
}

/* ── لایت‌باکس تصویر ──────────────────────────────────────── */
.ab-lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgb(8 8 12 / .82);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.ab-lb[hidden] { display: none; }
.ab-lb-box { max-width: min(62rem, 92vw); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px #000; }
.ab-lb-box img { display: block; max-width: 100%; max-height: 86vh; object-fit: contain; }
.ab-lb-x {
  position: absolute;
  top: 1.2rem;
  inset-inline-end: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / .12);
  border: 1px solid rgb(255 255 255 / .25);
  color: #fff;
  transition: background-color .2s var(--ease);
}
.ab-lb-x:hover { background: rgb(var(--brand)); border-color: transparent; }

/* ── دیدگاه‌ها (تب نظرات + پایین نوشته‌ها) ── */
.cm-count {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-bottom: 1.3rem;
  font-size: .95rem; font-weight: 800;
  color: rgb(var(--ink));
}
.cm-count::before {
  content: "";
  width: 4px; height: 1.1rem;
  border-radius: 999px;
  background: rgb(var(--brand));
}
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cm-item {
  padding: 1.1rem 1.15rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface));
}
.cm-item .children { list-style: none; margin: .8rem 0 0; padding-inline-start: 1.4rem; display: grid; gap: .8rem; border-inline-start: 2px solid rgb(var(--line-2)); }
.cm-item .children .cm-item { background: rgb(var(--surface-2)); }

.cm-head { display: flex; align-items: center; gap: .7rem; }
.cm-avatar { border-radius: 50%; box-shadow: 0 0 0 2px rgb(var(--brand) / .18); }
.cm-meta { display: flex; flex-direction: column; line-height: 1.4; }
.cm-meta b { font-size: .85rem; font-weight: 700; color: rgb(var(--ink)); }
.cm-meta time { font-size: .68rem; color: rgb(var(--dim)); }

.cm-body { margin-top: .7rem; font-size: .84rem; line-height: 1.95; color: rgb(var(--ink-2)); }
.cm-body p + p { margin-top: .7rem; }
.cm-pending { font-size: .72rem; color: rgb(var(--vp-warn, 217 119 6)); font-style: italic; margin-bottom: .4rem; }
.cm-reply { margin-top: .6rem; }
.cm-reply a {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgb(var(--brand) / .1);
  font-size: .72rem; font-weight: 700;
  color: rgb(var(--brand-text));
}
.cm-reply a:hover { background: rgb(var(--brand) / .18); }
.cm-empty {
  display: grid;
  justify-items: center;
  gap: .3rem;
  padding: 2rem 1.2rem;
  border: 1px dashed rgb(var(--line));
  border-radius: var(--r-lg);
  text-align: center;
}
.cm-empty .ic { color: rgb(var(--line)); width: 2.2rem; height: 2.2rem; margin-bottom: .3rem; }
.cm-empty b { font-size: .9rem; font-weight: 800; color: rgb(var(--ink-2)); }
.cm-empty p { margin: 0; font-size: .8rem; color: rgb(var(--dim)); }

.comment-respond {
  margin-top: 1.6rem;
  padding: 1.3rem 1.25rem 1.4rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface-2));
}
.cm-list + .comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; display: block; color: rgb(var(--ink)); }

/* ⛔ نسخهٔ قبل `inline-block` با `width: calc(50% - .35rem)` بود؛ گرهٔ
   فاصلهٔ بین دو `<p>` (whitespace) چند پیکسل اضافه می‌کرد و ردیف
   همیشه می‌شکست — نام و ایمیل زیر هم می‌افتادند. حالا خودِ فرم
   فلکس است و مسئلهٔ whitespace اصلاً وجود ندارد. */
.comment-respond form { display: flex; flex-wrap: wrap; column-gap: .7rem; }
/* ⚠️ قاعدهٔ عمومی `> *` وزن ۰٫۱٫۱ دارد و از یک کلاس تنها قوی‌تر است؛
   پس استثناها هم باید با `.comment-respond` پیشوند بگیرند وگرنه
   دوباره ۱۰۰٪ می‌شوند (همان تلهٔ کارت بانکی). */
.comment-respond form > * { width: 100%; }
.comment-respond .comment-form-author,
.comment-respond .comment-form-email { width: calc(50% - .35rem); margin-inline-end: 0; }
@media (max-width: 480px) {
  .comment-respond .comment-form-author,
  .comment-respond .comment-form-email { width: 100%; }
}
.cm-field {
  width: 100%;
  height: 3rem;
  padding: 0 .95rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-sm);
  background: rgb(var(--surface));
  font: inherit;
  font-size: .85rem;
  color: rgb(var(--ink));
  margin-bottom: .9rem;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
textarea.cm-field { height: auto; min-height: 7rem; padding-block: .8rem; line-height: 1.8; resize: vertical; }
.cm-field:focus { outline: none; background: rgb(var(--surface)); border-color: rgb(var(--brand)); box-shadow: 0 0 0 3px rgb(var(--brand) / .12); }
.comment-form .form-submit { margin-top: .2rem; }


/* محتوای ویرایشگر */
.dg-content { font-size: .9rem; line-height: 2.1; color: rgb(var(--ink-2)); }
.dg-content > * + * { margin-top: 1.1rem; }
.dg-content h2, .dg-content h3, .dg-content h4 { color: rgb(var(--ink)); font-weight: 700; margin-top: 2rem; }
.dg-content ul, .dg-content ol { padding-inline-start: 1.4rem; }
.dg-content ul { list-style: disc; }
.dg-content ol { list-style: decimal; }
.dg-content img { border-radius: var(--r); max-width: 100%; height: auto; }
.dg-content a { color: rgb(var(--brand-text)); text-decoration: underline; text-underline-offset: 3px; }


/* ══════════════════════════════════════════════════════════════════
   فروشگاه · سبد · تسویه · حساب · وبلاگ · جستجو   (نسخهٔ ۱.۴)
   ══════════════════════════════════════════════════════════════════ */

/* ── وضعیت خالی و صفحه‌بندی (مشترک) ── */
.dg-blank {
  display: grid;
  place-items: center;
  gap: 1rem;
  padding: 4.5rem 1.5rem;
  border: 1px dashed rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface));
  text-align: center;
}
.dg-blank > span {
  display: grid;
  place-items: center;
  width: 3.6rem; height: 3.6rem;
  border-radius: 1rem;
  background: rgb(var(--surface-2));
  color: rgb(var(--dim));
}
.dg-blank p { font-size: .9rem; color: rgb(var(--dim)); max-width: 26rem; }

.dg-pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.dg-pagination .nav-links,
.dg-pagination > ul.page-numbers {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem;
  width: auto; height: auto; margin: 0; padding: .45rem;
  border: 1px solid rgb(var(--line)); border-radius: 1rem;
  background: rgb(var(--surface)); box-shadow: 0 12px 32px rgb(15 23 42 / .05);
  list-style: none;
}
.dg-pagination > ul.page-numbers > li { display: block; margin: 0; }
.dg-pagination .nav-links > .page-numbers,
.dg-pagination > ul.page-numbers > li > .page-numbers {
  display: grid;
  place-items: center;
  min-width: 2.5rem; height: 2.5rem;
  padding-inline: .6rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-sm);
  background: rgb(var(--surface));
  font-size: .85rem;
  font-weight: 600;
  color: rgb(var(--ink-2));
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.dg-pagination .nav-links > .page-numbers:hover,
.dg-pagination > ul.page-numbers > li > .page-numbers:hover { border-color: rgb(var(--brand) / .5); color: rgb(var(--brand-text)); transform: translateY(-1px); }
.dg-pagination .nav-links > .page-numbers.current,
.dg-pagination > ul.page-numbers > li > .page-numbers.current {
  background: rgb(var(--brand));
  border-color: rgb(var(--brand));
  color: rgb(var(--brand-on));
}
.dg-pagination .dots { border-color: transparent !important; background: transparent !important; }

.vd-directory-head { align-items: center; }
.vd-page-status {
  margin-inline-start: auto; padding: .4rem .7rem; border: 1px solid rgb(var(--line));
  border-radius: 999px; background: rgb(var(--surface)); color: rgb(var(--dim));
  font-size: .72rem; font-weight: 700;
}

/* ── آرشیو فروشگاه (`.sx-` — نسخهٔ ۲.۶) ──
   بازخورد: «۴ ستون کن، امکانات بیشتر، هدر مرتب‌تر، جستجو، صفحه‌بندی و
   مرتب‌سازی جذاب». سردر تیرهٔ قبلی (`.shop-hero`) و select مرتب‌سازی حذف شدند. */

/* سردر */
.sx-head {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.6rem;
  margin-top: 1.2rem;
  padding: 1.6rem 1.5rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 140% at 100% 0%, rgb(var(--brand) / .09), transparent 62%),
    rgb(var(--surface));
}
@media (min-width: 900px) {
  .sx-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 2.5rem; padding: 2rem 1.9rem; }
}
.sx-kicker {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700;
  color: rgb(var(--dim));
}
.sx-kicker .ic { color: rgb(var(--brand)); }
.sx-head-t h1 {
  margin: .5rem 0 0;
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
  color: rgb(var(--ink));
}
.sx-head-t p { margin: .5rem 0 0; font-size: .85rem; line-height: 2; color: rgb(var(--dim)); max-width: 34rem; }
.sx-head-a { display: grid; gap: .9rem; }

.sx-search {
  display: flex; align-items: center; gap: .55rem;
  height: 3.25rem;
  padding-inline: 1rem .4rem;
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  background: rgb(var(--bg));
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.sx-search:focus-within { border-color: rgb(var(--brand) / .55); box-shadow: 0 0 0 4px rgb(var(--brand) / .1); }
.sx-search > .ic { color: rgb(var(--dim)); flex: 0 0 auto; }
.sx-search-f { flex: 1; min-width: 0; display: block; }
.sx-search input[type="search"] {
  width: 100%;
  border: 0; background: none; outline: none;
  font: inherit; font-size: .85rem;
  color: rgb(var(--ink));
}
.sx-search input::placeholder { color: rgb(var(--dim)); }
.sx-search-b {
  flex: 0 0 auto;
  height: 2.5rem;
  padding-inline: 1.15rem;
  border: 0;
  border-radius: 999px;
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  font: inherit; font-size: .82rem; font-weight: 700;
  cursor: pointer;
  transition: background-color .18s var(--ease);
}
.sx-search-b:hover { background: rgb(var(--brand-2)); }

.sx-trust { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.sx-trust li { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; color: rgb(var(--dim)); }
.sx-trust .ic { color: rgb(var(--brand)); }

/* نوار دسته‌ها */
.sx-cats {
  display: flex;
  gap: .45rem;
  margin-top: 1rem;
  padding-bottom: .3rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, #000 92%, transparent);
          mask-image: linear-gradient(to left, #000 92%, transparent);
}
.sx-cats::-webkit-scrollbar { display: none; }
.sx-cat {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .4rem;
  height: 2.5rem;
  padding-inline: .9rem;
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  background: rgb(var(--surface));
  font-size: .8rem; font-weight: 600;
  color: rgb(var(--ink-2));
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.sx-cat .ic { width: 15px; height: 15px; color: rgb(var(--dim)); }
.sx-cat .num { padding: .05rem .38rem; border-radius: 999px; background: rgb(var(--surface-2)); font-size: .68rem; font-style: normal; color: rgb(var(--dim)); }
.sx-cat:hover { border-color: rgb(var(--ink) / .28); color: rgb(var(--ink)); }
.sx-cat.is-on { background: rgb(var(--ink)); border-color: rgb(var(--ink)); color: rgb(var(--bg)); }
.sx-cat.is-on .ic { color: rgb(var(--bg)); }
.sx-cat.is-on .num { background: rgb(var(--bg) / .18); color: rgb(var(--bg)); }

/* چیدمان */
.sx-layout { display: grid; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .sx-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 1.75rem; } }
.sx-main { min-width: 0; }
.sx-side { display: none; }
@media (min-width: 1024px) {
  .sx-side { display: grid; gap: .9rem; align-content: start; position: sticky; top: calc(var(--header-h, 72px) + 1.25rem); max-height: calc(100vh - var(--header-h, 72px) - 2.5rem); overflow-y: auto; scrollbar-width: none; }
}

/* جعبهٔ فیلتر */
.sx-box { padding: 1rem 1.05rem; border: 1px solid rgb(var(--line)); border-radius: var(--r-lg); background: rgb(var(--surface)); }
.sx-box-t { margin-bottom: .75rem; font-size: .72rem; font-weight: 700; color: rgb(var(--dim)); }

.sx-seg { display: flex; padding: .2rem; border-radius: 999px; background: rgb(var(--surface-2)); }
.sx-seg a {
  flex: 1;
  height: 2.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-size: .76rem; font-weight: 600;
  color: rgb(var(--dim));
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.sx-seg a:hover { color: rgb(var(--ink)); }
.sx-seg a.is-on { background: rgb(var(--surface)); color: rgb(var(--ink)); font-weight: 700; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }

.sx-range { display: flex; align-items: center; gap: .35rem; margin-top: .7rem; }
.sx-range label { flex: 1; min-width: 0; }
.sx-range input {
  width: 100%; height: 2.4rem;
  padding-inline: .6rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-sm);
  background: rgb(var(--bg));
  font: inherit; font-size: .78rem;
  color: rgb(var(--ink));
  -moz-appearance: textfield;
}
.sx-range input::-webkit-outer-spin-button,
.sx-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sx-range input:focus { outline: none; border-color: rgb(var(--brand) / .5); }
.sx-range > i { width: 8px; height: 1px; background: rgb(var(--line)); flex: 0 0 auto; }
.sx-range button {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 2.35rem; height: 2.4rem;
  border: 0; border-radius: var(--r-sm);
  background: rgb(var(--ink)); color: rgb(var(--bg));
  cursor: pointer;
  transition: opacity .18s var(--ease);
}
.sx-range button:hover { opacity: .85; }

.sx-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.sx-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  height: 1.95rem;
  padding-inline: .6rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-sm);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  color: rgb(var(--ink-2));
  transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.sx-chip .num { font-size: .68rem; font-style: normal; font-weight: 600; color: rgb(var(--dim)); }
.sx-chip:hover { border-color: rgb(var(--ink) / .3); }
.sx-chip.is-on { background: rgb(var(--brand) / .1); border-color: rgb(var(--brand) / .35); color: rgb(var(--brand-text)); }
.sx-chip.is-on .num { color: rgb(var(--brand-text)); }

.sx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.sx-list a {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .55rem;
  border-radius: var(--r-sm);
  font-size: .8rem; font-weight: 600;
  color: rgb(var(--ink-2));
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.sx-list a .ic { width: 15px; height: 15px; color: rgb(var(--dim)); flex: 0 0 auto; }
.sx-list a > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-list a > .num { flex: 0 0 auto; font-size: .68rem; font-style: normal; color: rgb(var(--dim)); }
.sx-list a:hover { background: rgb(var(--surface-2)); color: rgb(var(--ink)); }
.sx-list a.is-on { background: rgb(var(--brand) / .1); color: rgb(var(--brand-text)); font-weight: 700; }
.sx-list a.is-on .ic, .sx-list a.is-on > .num { color: rgb(var(--brand-text)); }

/* نوار ابزار نتایج
   ⛔ بازخورد: «ریسپانسیو صفحه آرشیو افتضاحه» — زیر ۱۰۲۴px که دکمهٔ «فیلترها» هم به بازی
   می‌آمد، فیلترها+شمارش+۶ قرصِ مرتب‌سازی همه در یک ردیفِ flex-wrap جا نمی‌شدند و به‌صورت
   چند ردیفِ نامنظم می‌شکستند، آن هم داخل یک پیل کاملاً گرد (border-radius:999px) که برای
   چند ردیفی شدن طراحی نشده بود. حالا زیر ۱۰۲۴px با گرید دو‌ردیفهٔ ثابت کار می‌کند:
   ردیف۱ = فیلترها + شمارش، ردیف۲ = مرتب‌سازی در یک نوار افقی تک‌خطِ قابل اسکرول. */
.sx-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  padding: .55rem .6rem;
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  background: rgb(var(--surface));
}
@media (max-width: 1023px) {
  .sx-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "fbtn count" "sorts sorts";
    align-items: center;
    row-gap: .5rem;
    border-radius: var(--r-lg);
  }
  .sx-fbtn { grid-area: fbtn; }
  .sx-count { grid-area: count; justify-self: end; }
  .sx-sorts { grid-area: sorts; margin-inline-start: 0; width: 100%; flex-wrap: nowrap; }
}
.sx-count { padding-inline: .5rem; font-size: .78rem; font-weight: 700; color: rgb(var(--ink-2)); }
.sx-fbtn {
  display: inline-flex; align-items: center; gap: .35rem;
  height: 2.3rem; padding-inline: .9rem;
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  background: rgb(var(--surface-2));
  font: inherit; font-size: .78rem; font-weight: 700;
  color: rgb(var(--ink));
  cursor: pointer;
}
.sx-fbtn .num { padding: 0 .35rem; border-radius: 999px; background: rgb(var(--brand)); font-size: .65rem; font-style: normal; color: rgb(var(--brand-on)); }
@media (min-width: 1024px) { .sx-fbtn { display: none; } }

.sx-sorts {
  display: flex; gap: .2rem;
  margin-inline-start: auto;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.sx-sorts::-webkit-scrollbar { display: none; }
.sx-sort {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .3rem;
  height: 2.3rem; padding-inline: .75rem;
  border-radius: 999px;
  font-size: .76rem; font-weight: 600;
  color: rgb(var(--dim));
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.sx-sort .ic { width: 14px; height: 14px; }
.sx-sort:hover { background: rgb(var(--surface-2)); color: rgb(var(--ink)); }
.sx-sort.is-on { background: rgb(var(--brand) / .12); color: rgb(var(--brand-text)); font-weight: 700; }

.sx-view { display: none; gap: .1rem; padding-inline-start: .4rem; border-inline-start: 1px solid rgb(var(--line)); }
@media (min-width: 1280px) { .sx-view { display: flex; } }
.sx-view button {
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem;
  border: 0; border-radius: var(--r-sm);
  background: none; color: rgb(var(--dim));
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.sx-view button:hover { color: rgb(var(--ink)); }
.sx-view button.is-on { background: rgb(var(--surface-2)); color: rgb(var(--ink)); }

/* چیپ فیلترهای فعال */
.sx-active { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .8rem; }
.sx-tagx {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgb(var(--brand) / .1);
  font-size: .74rem; font-weight: 700;
  color: rgb(var(--brand-text));
  transition: background-color .18s var(--ease);
}
.sx-tagx .ic { width: 13px; height: 13px; }
.sx-tagx:hover { background: rgb(var(--brand) / .2); }
.sx-clear { font-size: .74rem; font-weight: 600; color: rgb(var(--dim)); text-decoration: underline; text-underline-offset: 3px; }
.sx-clear:hover { color: rgb(var(--ink)); }

/* گرید — پیش‌فرض چهارستونه */
.sx-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
@media (min-width: 768px) { .sx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .sx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1280px) { .sx-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 479px) { .sx-grid { grid-template-columns: minmax(0, 1fr); } }

/* صفحه‌بندی */
.sx-page { display: flex; flex-direction: column; align-items: center; gap: .7rem; margin-top: 2.5rem; }
.sx-page-n { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem; }
.sx-page-n .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  min-width: 2.5rem; height: 2.5rem;
  padding-inline: .8rem;
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  background: rgb(var(--surface));
  font-size: .8rem; font-weight: 700;
  color: rgb(var(--ink-2));
  transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.sx-page-n .page-numbers:hover { border-color: rgb(var(--ink) / .3); color: rgb(var(--ink)); }
.sx-page-n .page-numbers.current { background: rgb(var(--ink)); border-color: rgb(var(--ink)); color: rgb(var(--bg)); }
.sx-page-n .page-numbers.dots { border-color: transparent; background: none; padding-inline: .3rem; min-width: auto; }
.sx-page-n .prev, .sx-page-n .next { font-weight: 600; }
.sx-page-n .prev .ic, .sx-page-n .next .ic { width: 15px; height: 15px; }
@media (max-width: 560px) { .sx-page-n .prev span, .sx-page-n .next span { display: none; } }
.sx-page-i { font-size: .74rem; color: rgb(var(--dim)); }

/* کشوی فیلتر موبایل */
.sx-drawer { background: rgb(var(--bg)); }
.sx-drawer-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgb(var(--line));
  font-size: .9rem; font-weight: 800;
  color: rgb(var(--ink));
}
.sx-drawer-h > span { display: inline-flex; align-items: center; gap: .45rem; }
.sx-drawer-h .ic { color: rgb(var(--brand)); }
.sx-drawer-b { flex: 1; overflow-y: auto; display: grid; gap: .8rem; align-content: start; padding: 1rem; }
.sx-drawer-f { display: flex; gap: .5rem; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); border-top: 1px solid rgb(var(--line)); }


/* ── سبد خرید — فشرده و مینیمال ── */
.cart-grid { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 1024px) { .cart-grid { grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.5rem; } }

.cart-main {
  padding: .45rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface));
}

.cart-row {
  display: grid;
  grid-template-columns: 3.6rem 4rem minmax(0, 1fr) minmax(6.5rem, auto);
  align-items: center;
  gap: .85rem;
  padding: .7rem;
  border-radius: var(--r);
  transition: background .2s var(--ease);
}
.cart-row:hover { background: rgb(var(--surface-2)); }
.cart-row + .cart-row { box-shadow: 0 -1px 0 rgb(var(--line-2)); }

.cart-media { display: block; width: 3.8rem; height: 3.8rem; flex: 0 0 3.8rem; border-radius: var(--r-sm); overflow: hidden; background: rgb(var(--surface-2)); }
.cart-media img,
.cart-media .pv { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; }

.cart-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cart-name {
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.6;
  color: rgb(var(--ink));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.cart-name:hover { color: rgb(var(--brand-text)); }

.cart-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.cart-tags i {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  padding: .12rem .45rem;
  border-radius: var(--r-sm);
  background: rgb(var(--surface-2));
  font-style: normal;
  font-size: .68rem;
  font-weight: 600;
  color: rgb(var(--dim));
}
.cart-row:hover .cart-tags i { background: rgb(var(--surface)); }
.cart-tags .ic { width: 12px; height: 12px; }

.cart-price { justify-self: end; font-size: .95rem; font-weight: 800; white-space: nowrap; color: rgb(var(--ink)); }

.cart-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  width: 3.6rem; height: 2rem;
  padding-inline: .55rem;
  border-radius: 999px;
  background: rgb(var(--brand) / .07);
  font-size: .68rem;
  font-weight: 700;
  color: rgb(var(--dim));
  transition: background .18s var(--ease), color .18s var(--ease);
}
.cart-del:hover { background: rgb(200 38 48 / .12); color: rgb(200 38 48); }
.cart-del .ic { width: 14px; height: 14px; }
@media (max-width: 639px) {
  .cart-row { grid-template-columns: 2.2rem 3.6rem minmax(0, 1fr); gap: .65rem; align-items: center; }
  .cart-media { width: 3.6rem; height: 3.6rem; }
  .cart-del { width: 2.2rem; min-width: 2.2rem; padding: 0; }
  .cart-del span { display: none; }
  .cart-price { grid-column: 3; justify-self: start; font-size: .85rem; }
}

/* ردیف پایین: فقط «ادامهٔ خرید» و «به‌روزرسانی» — کوپن رفت داخل خلاصه */
.cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .8rem .7rem .35rem;
  margin-top: .35rem;
  border-top: 1px dashed rgb(var(--line-2));
}
.cart-update {
  height: 2.3rem;
  margin-inline-start: auto;
  padding-inline: .9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: .76rem;
  font-weight: 600;
  color: rgb(var(--dim));
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.cart-update:hover { background: rgb(var(--surface-2)); color: rgb(var(--ink)); }

.cart-side {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface));
}
@media (min-width: 1024px) { .cart-side { position: sticky; top: 7rem; } }

/* کوپن داخل کارت خلاصه */
.sum-coupon { display: flex; gap: .4rem; margin: .2rem 0 .9rem; }
.sum-coupon input {
  flex: 1;
  min-width: 0;
  height: 2.5rem;
  padding-inline: .85rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-sm);
  background: rgb(var(--surface-2));
  font: inherit;
  font-size: .78rem;
  color: rgb(var(--ink));
}
.sum-coupon input:focus {
  outline: none;
  border-color: rgb(var(--brand) / .5);
  box-shadow: 0 0 0 3px rgb(var(--brand) / .12);
}
.sum-coupon button {
  flex: 0 0 auto;
  height: 2.5rem;
  padding-inline: .95rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-sm);
  background: rgb(var(--surface-2));
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  color: rgb(var(--ink-2));
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.sum-coupon button:hover { background: rgb(var(--brand)); border-color: rgb(var(--brand)); color: rgb(var(--brand-on)); }

/* جدول جمع سبد و تسویه — مارک‌آپ از ووکامرس می‌آید */
.dg-woo table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.dg-woo th, .dg-woo td { padding: .6rem 0; text-align: start; }
.dg-woo tr + tr th, .dg-woo tr + tr td { border-top: 1px dashed rgb(var(--line)); }
.dg-woo th { color: rgb(var(--dim)); font-weight: 500; }
.dg-woo td { text-align: end; font-weight: 600; }
.dg-woo .order-total td { font-size: 1.05rem; font-weight: 800; color: rgb(var(--brand-text)); }
.dg-woo h2 { font-size: 1rem; font-weight: 700; margin-bottom: .8rem; }
.dg-woo .checkout-button,
.dg-woo #place_order {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  margin-top: 1rem;
  border: 0;
  border-radius: var(--r-sm);
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.dg-woo .checkout-button:hover,
.dg-woo #place_order:hover { background: rgb(var(--brand-2)); }

.dg-woo input[type="text"],
.dg-woo input[type="email"],
.dg-woo input[type="tel"],
.dg-woo input[type="password"],
.dg-woo textarea,
.dg-woo select {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-sm);
  background: rgb(var(--surface));
  font: inherit;
  font-size: .85rem;
  color: rgb(var(--ink));
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.dg-woo input:focus,
.dg-woo textarea:focus,
.dg-woo select:focus {
  outline: none;
  border-color: rgb(var(--brand));
  box-shadow: 0 0 0 3px rgb(var(--brand) / .1);
}
.dg-woo label { display: block; margin-bottom: .3rem; font-size: .8rem; font-weight: 600; color: rgb(var(--ink-2)); }
.dg-woo .form-row { margin-bottom: .9rem; }

/* ── سرصفحهٔ برگه/آرشیو ── */
.pg-head { margin-bottom: 2rem; }
.pg-head-in {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: .9rem;
}
.pg-head-ic {
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  flex-shrink: 0;
  border-radius: .8rem;
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand));
}
.pg-head h1 {
  font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.012em;
  margin: 0;
}
.pg-head-sub {
  padding: .2rem .6rem;
  border-radius: 999px;
  background: rgb(var(--surface-2));
  border: 1px solid rgb(var(--line));
  font-size: .72rem;
  color: rgb(var(--dim));
}

/* ── حساب کاربری ── */
.woocommerce-account .dg-woo > .woocommerce { display: contents; }

@media (min-width: 900px) {
  .woocommerce-account .acx-body {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
  .acc-nav { position: sticky; top: 7rem; }
}

.acc-nav {
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface));
  overflow: hidden;
}

.acc-user {
  display: grid;
  justify-items: center;
  gap: .3rem;
  padding: 1.6rem 1rem 1.2rem;
  text-align: center;
  background:
    radial-gradient(80% 100% at 50% 0%, rgb(var(--brand) / .12), transparent 70%),
    rgb(var(--surface-2));
  border-bottom: 1px solid rgb(var(--line));
}
.acc-avatar {
  position: relative;
  display: block;
  width: 4.4rem; height: 4.4rem;
  margin-bottom: .5rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--brand-2)));
}
.acc-avatar img { width: 100%; height: 100%; border-radius: 50%; display: block; border: 2px solid rgb(var(--surface)); }
.acc-user b { font-size: .95rem; font-weight: 800; }
.acc-user i { font-style: normal; font-size: .72rem; color: rgb(var(--dim)); word-break: break-all; }

/* زبانهٔ مشتری / طراح */
.acc-switch {
  display: flex;
  gap: .25rem;
  margin: .6rem .6rem 0;
  padding: .28rem;
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  background: rgb(var(--bg-2));
}
.acc-switch-b {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem .4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(var(--dim));
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.acc-switch-b .ic { width: 15px; height: 15px; }
.acc-switch-b:hover { color: rgb(var(--ink)); }
.acc-switch-b.is-on {
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  box-shadow: 0 8px 18px -10px rgb(var(--brand) / .7);
}
@media (max-width: 400px) {
  .acc-switch-b span { display: none; }
  .acc-switch-b { padding: .55rem; }
}

.acc-list { list-style: none; margin: 0; padding: .5rem; display: grid; gap: .1rem; }
.acc-list.has-switch { padding-top: .4rem; }
.acc-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .75rem;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 600;
  color: rgb(var(--ink-2));
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.acc-list a > span { flex: 1; }
.acc-arrow { opacity: 0; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.acc-list a:hover { background: rgb(var(--surface-2)); color: rgb(var(--ink)); }
.acc-list a:hover .acc-arrow { opacity: .6; transform: translateX(-2px); }
.acc-list .is-active a { background: rgb(var(--brand) / .1); color: rgb(var(--brand-text)); }
.acc-list .is-active .ic { color: rgb(var(--brand)); }

/* پیشخوان حساب */
.acc-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #1b1a26, #2a1218);
  color: #fff;
  overflow: hidden;
}
.acc-hi { font-size: .78rem; opacity: .7; }
.acc-hero-t b { display: block; margin-top: .15rem; font-size: 1.35rem; font-weight: 800; }
.acc-hero-t p { margin-top: .5rem; font-size: .8rem; line-height: 1.9; opacity: .72; max-width: 30rem; }
.acc-hero-art {
  display: grid;
  place-items: center;
  width: 4.5rem; height: 4.5rem;
  flex-shrink: 0;
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / .1);
  color: rgb(var(--brand));
}
.acc-hero-art .ic { width: 28px; height: 28px; }

.acc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: .7rem;
  margin-top: 1rem;
}
.acc-stat {
  display: grid;
  gap: .2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface));
}
.acc-stat-ic {
  display: grid;
  place-items: center;
  width: 2.3rem; height: 2.3rem;
  margin-bottom: .4rem;
  border-radius: .7rem;
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand));
}
.acc-stat b { font-size: 1.35rem; font-weight: 800; }
.acc-stat i { font-style: normal; font-size: .74rem; color: rgb(var(--dim)); }

.acc-block { margin-top: 1.5rem; }
.acc-block-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}
.acc-block-h h2 { display: flex; align-items: center; gap: .4rem; font-size: .95rem; font-weight: 700; }
.acc-block-h h2 .ic { color: rgb(var(--brand)); }
.acc-block-h a { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 600; color: rgb(var(--brand-text)); }

.acc-files,
.acc-links { display: grid; gap: .5rem; }
.acc-links { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.acc-file,
.acc-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r);
  background: rgb(var(--surface));
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.acc-link:hover,
.acc-file:hover { border-color: rgb(var(--brand) / .4); transform: translateY(-2px); }

.acc-file-ic,
.acc-link-ic {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  flex-shrink: 0;
  border-radius: .7rem;
  background: rgb(var(--surface-2));
  color: rgb(var(--brand));
}
.acc-file-t,
.acc-link > span:not(.acc-link-ic) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acc-file-t b,
.acc-link b { font-size: .85rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-file-t i,
.acc-link i { font-style: normal; font-size: .72rem; color: rgb(var(--dim)); }

.acc-dl {
  display: grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  transition: background-color .2s var(--ease);
}
.acc-dl:hover { background: rgb(var(--brand-2)); }
.acc-link-go { color: rgb(var(--dim)); }

/* ── سبد خالی ── */
.cart-empty {
  display: grid;
  justify-items: center;
  gap: .9rem;
  padding: 3.5rem 1.5rem;
  border: 1px dashed rgb(var(--line));
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
  text-align: center;
}
.cart-empty-art {
  display: grid;
  place-items: center;
  width: 4.5rem; height: 4.5rem;
  border-radius: 1.4rem;
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand));
}
.cart-empty h2 { font-size: 1.25rem; font-weight: 800; }
.cart-empty p { max-width: 26rem; font-size: .85rem; line-height: 1.95; color: rgb(var(--dim)); }

/* ── خلاصهٔ سفارش (سبد و تسویه) ── */
.sum { display: grid; gap: .1rem; }
.sum-t {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding-bottom: .8rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid rgb(var(--line));
  font-size: .88rem;
  font-weight: 700;
}
.sum-t .ic { color: rgb(var(--brand)); }
.sum-count {
  margin-inline-start: auto;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: rgb(var(--brand) / .12);
  font-size: .7rem;
  font-weight: 700;
  color: rgb(var(--brand-text));
}

.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem 0;
  font-size: .82rem;
  color: rgb(var(--dim));
}
.sum-row b { font-weight: 700; color: rgb(var(--ink)); }
.sum-row.is-off,
.sum-row.is-off b { color: rgb(var(--ok)); }
.sum-row.is-off span { display: inline-flex; align-items: center; gap: .3rem; }

.sum-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .6rem;
  padding: .9rem 1rem;
  border-radius: var(--r);
  background:
    radial-gradient(90% 140% at 100% 0%, rgb(var(--brand) / .1), transparent 65%),
    rgb(var(--surface-2));
  font-size: .82rem;
  font-weight: 700;
  color: rgb(var(--ink-2));
}
.sum-total b { font-size: 1.3rem; font-weight: 800; color: rgb(var(--brand-text)); letter-spacing: -.01em; }
.sum .btn { margin-top: .8rem; }

/* یادداشت‌های اطمینان — کارت جمع‌وجور به‌جای فهرست لخت */
.sum-notes {
  list-style: none;
  margin: .9rem 0 0;
  padding: .75rem .8rem;
  border-radius: var(--r);
  background: rgb(var(--surface-2));
  display: grid;
  gap: .45rem;
}
.sum-notes li { display: flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 600; color: rgb(var(--dim)); }
.sum-notes .ic { width: 14px; height: 14px; color: rgb(var(--brand)); flex: 0 0 auto; }


.co-guest {
  display: grid;
  justify-items: center;
  gap: .9rem;
  padding: 3rem 1.5rem;
  border: 1px dashed rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface));
  text-align: center;
}
.co-guest .ic { color: rgb(var(--brand)); }
.co-guest p { font-size: .88rem; color: rgb(var(--dim)); }

.ck-auto-account {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-top: .85rem; padding: .7rem .8rem;
  border-radius: var(--r-sm); background: rgb(var(--ok) / .08);
  font-size: .74rem; line-height: 1.85; color: rgb(var(--dim));
}
.ck-auto-account .ic { flex: 0 0 auto; margin-top: .15rem; color: rgb(var(--ok)); }

/* جدول سفارش‌ها و دانلودها */
.woocommerce-orders-table,
.woocommerce-table--order-downloads,
.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.shop_table th {
  padding: .7rem .6rem;
  text-align: start;
  font-size: .75rem;
  font-weight: 700;
  color: rgb(var(--dim));
  border-bottom: 1px solid rgb(var(--line));
}
.shop_table td {
  padding: .8rem .6rem;
  border-bottom: 1px solid rgb(var(--line-2));
}
.shop_table .button {
  display: inline-flex;
  align-items: center;
  height: 2.1rem;
  padding-inline: .9rem;
  border-radius: var(--r-sm);
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  font-size: .78rem;
  font-weight: 600;
}
.shop_table .button:hover { background: rgb(var(--brand-2)); }

/* ── اعلان‌ها ────────────────────────────────────────────────
   ⚠️ مارک‌آپ اعلانِ صف ووکامرس کاملاً از قالب می‌آید
   (woocommerce/notices/*.php → dg_notice_list()).
   ⛔ اما کلاس‌های `woocommerce-message/-info/-error` را **نباید**
   با display:none خاموش کرد: خودِ قالب‌های هستهٔ ووکامرس این کلاس‌ها را
   مستقیم داخل محتوا چاپ می‌کنند (مثلاً «هنوز سفارشی نداری» در
   myaccount/orders.php). با خاموش‌کردنشان آن صفحه‌ها کاملاً خالی می‌شدند.
   پس به‌جای پنهان‌کردن، دقیقاً مثل `.dg-notice` بازطراحی می‌شوند. */
.woocommerce-notices-wrapper > ul:not([class]),
.wc-block-components-notice-banner { display: none !important; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0 0 1.3rem;
  padding: .85rem 1rem;
  padding-inline-start: 2.9rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.9;
  list-style: none;
}
/* ⚠️ رنگ هر نوع اعلان در یک توکن نگه داشته می‌شود (`--n`) نه
   currentColor: پس‌زمینهٔ مربعِ آیکون باید رنگی و متنش سفید باشد و
   `background: currentColor` روی عنصری که خودش `color:#fff` دارد
   همیشه سفیدِ نامرئی می‌دهد. */
.woocommerce-message { --n: 11 115 85; }
.woocommerce-error   { --n: 200 38 48; }
/* ⚠️ اطلاع‌رسانی صرف نباید رنگ برند (قرمز) بگیرد — هشدار خطا به نظر می‌رسد.
   آبی، همان قراردادِ «info» که در پنل طراحان (`--vp-info`) هست، خنثی و آرام است. */
.woocommerce-info,
.woocommerce-noreviews { --n: 37 99 235; }
.dark .woocommerce-message { --n: 52 211 153; }
.dark .woocommerce-error   { --n: 248 113 113; }
.dark .woocommerce-info,
.dark .woocommerce-noreviews { --n: 96 165 250; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
  background: rgb(var(--n) / .09);
  border-color: rgb(var(--n) / .24);
  color: rgb(var(--n));
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-noreviews::before {
  position: absolute;
  inset-inline-start: .8rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: -.775rem;
  border-radius: var(--r-sm);
  background: rgb(var(--n));
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
}
.woocommerce-message::before { content: "\2713"; }
.woocommerce-error::before   { content: "!"; }
.woocommerce-info::before,
.woocommerce-noreviews::before { content: "i"; }

.woocommerce-error li { margin: 0; list-style: none; }
.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button) { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  height: 2.2rem;
  padding-inline: .95rem;
  border-radius: 999px;
  background: rgb(var(--n));
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  flex: 0 0 auto;
  transition: filter .18s var(--ease);
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover { filter: brightness(1.12); }

.dg-notices { display: grid; gap: .55rem; margin-bottom: 1.3rem; }
.dg-notices:empty { display: none; }

/* اعلان — کارت آرام با نوار رنگی کناری، آیکون در دایرهٔ کم‌رنگ و دکمه در انتها */
.dg-notice {
  --nt: 37 99 235;
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: .85rem;
  padding: .8rem .9rem .8rem 1rem; padding-inline-start: 1.15rem;
  border: 1px solid rgb(var(--line)); border-radius: var(--r, .8rem);
  background: rgb(var(--surface));
  font-size: .82rem; font-weight: 500; line-height: 1.9; color: rgb(var(--ink-2));
  animation: dgNotice .35s var(--ease-out) both;
}
.dg-notice::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: rgb(var(--nt)); }
@keyframes dgNotice { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .dg-notice { animation: none; } }
.dg-notice.is-ok  { --nt: 5 150 105; }
.dg-notice.is-bad { --nt: 220 38 38; }
.dark .dg-notice.is-info { --nt: 96 165 250; }
.dark .dg-notice.is-ok   { --nt: 52 211 153; }
.dark .dg-notice.is-bad  { --nt: 248 113 113; }

.dg-notice-ic { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none; border-radius: 50%; background: rgb(var(--nt) / .12); color: rgb(var(--nt)); }
.dg-notice-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dg-notice-t { flex: 1; min-width: 0; }
.dg-notice-t a { font-weight: 700; color: rgb(var(--ink)); text-decoration: underline; text-decoration-color: rgb(var(--nt) / .5); text-underline-offset: 4px; }
.dg-notice.is-bad .dg-notice-t { color: rgb(var(--ink)); }
.dg-notice-t ul, .dg-notice-t li { margin: 0; padding: 0; list-style: none; }

.dg-notice-act { display: flex; flex-wrap: wrap; gap: .4rem; flex: none; }
.dg-notice-btn,
.dg-notice .showcoupon,
.dg-notice-a {
  display: inline-flex; align-items: center; justify-content: center; height: 2.2rem; padding-inline: .9rem;
  border: 1px solid rgb(var(--nt) / .35); border-radius: var(--r-sm, .6rem); background: rgb(var(--nt) / .08);
  font-size: .75rem; font-weight: 700; color: rgb(var(--nt)); text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.dg-notice-btn:hover, .dg-notice .showcoupon:hover, .dg-notice-a:hover { border-color: rgb(var(--nt)); background: rgb(var(--nt)); color: #fff; }
@media (max-width: 639px) {
  .dg-notice { flex-wrap: wrap; align-items: flex-start; }
  .dg-notice-t { flex-basis: calc(100% - 3.1rem); }
  .dg-notice-act { width: 100%; padding-inline-start: 3.05rem; }
}

/* فرم «کد تخفیف دارید؟» در تسویه — همان استایل کارت ورودی */
.checkout_coupon {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem;
  border: 1px dashed rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface-2));
}
.checkout_coupon p { display: contents; }
.checkout_coupon input[type="text"] {
  flex: 1;
  min-width: 10rem;
  height: 2.6rem;
  padding-inline: .9rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-sm);
  background: rgb(var(--surface));
  font: inherit;
  font-size: .82rem;
}
.checkout_coupon input[type="text"]:focus { outline: none; border-color: rgb(var(--brand)); }
.checkout_coupon .button {
  height: 2.6rem;
  padding-inline: 1.1rem;
  border: 0;
  border-radius: var(--r-sm);
  background: rgb(var(--brand));
  color: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.checkout_coupon .button:hover { background: rgb(var(--brand-2)); }

/* ── نوار پیش‌نمایش مدیر ── */
.dg-preview-bar {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .55rem 1rem;
  background: rgb(var(--ink));
  color: rgb(var(--bg));
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
}
.dg-preview-bar .ic { color: rgb(var(--brand)); }
.dg-preview-bar a {
  color: rgb(var(--bg));
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .8;
  transition: opacity .2s var(--ease);
}
.dg-preview-bar a:hover { opacity: 1; }


/* ── صفحهٔ ورود ── */
body.dg-auth { background: rgb(var(--bg)); }
.auth { display: grid; min-height: 100vh; }
@media (min-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  align-self: flex-start;
  font-size: .8rem;
  color: rgb(var(--dim));
  transition: color .2s var(--ease);
}
.auth-back:hover { color: rgb(var(--brand-text)); }

.auth-box { width: 100%; max-width: 24rem; margin: 0 auto; }
.auth-logo { display: inline-flex; align-items: center; gap: .6rem; }
.auth-mark {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--brand-2)));
  color: #fff;
}
.auth-mark svg { width: 1.15rem; height: 1.15rem; }
.auth-logo b { font-size: 1rem; font-weight: 800; }

.auth-title { margin-top: 1.8rem; font-size: 1.5rem; font-weight: 800; }
.auth-lead { margin-top: .4rem; font-size: .85rem; color: rgb(var(--dim)); }
.auth-form { margin-top: 1.6rem; }

.auth-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-size: .74rem;
  color: rgb(var(--dim));
}
.auth-note .ic { color: rgb(var(--ok)); }

.auth-aside { position: relative; display: none; overflow: hidden; background: rgb(var(--surface-2)); }
@media (min-width: 900px) { .auth-aside { display: block; } }
.auth-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-aside-in {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 2.5rem;
  background: linear-gradient(to top, rgb(11 11 16 / .8), transparent);
}
.auth-quote { color: #fff; font-size: 1.2rem; font-weight: 700; line-height: 1.8; text-wrap: balance; }

/* فرم ورود ووکامرس داخل صفحهٔ اختصاصی */
.auth-form .woocommerce-form-row { margin-bottom: .9rem; }
.auth-form label { display: block; margin-bottom: .3rem; font-size: .8rem; font-weight: 600; color: rgb(var(--ink-2)); }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  height: 3rem;
  padding-inline: .9rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-sm);
  background: rgb(var(--surface));
  font: inherit;
  font-size: .88rem;
  color: rgb(var(--ink));
}
.auth-form input:focus { outline: none; border-color: rgb(var(--brand)); box-shadow: 0 0 0 3px rgb(var(--brand) / .1); }
.auth-form button[type="submit"] {
  width: 100%;
  height: 3rem;
  margin-top: .4rem;
  border: 0;
  border-radius: var(--r-sm);
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.auth-form button[type="submit"]:hover { background: rgb(var(--brand-2)); }

/* ══════════════════════════════════════════════════════════════════
   تک‌نوشته (`.ps-`) — ۲.۸.۰ از صفر
   ⛔ `.pa-` حذف شد (سربرگ وسط‌چینِ بی‌تصویر، ابزارک‌های خام، بی‌سکشن).
   ⚠️ صفحهٔ نوشته پس‌زمینهٔ رنگی ندارد؛ `#page-glow` خاموش است.
   ══════════════════════════════════════════════════════════════════ */
body.single-post #page-glow,
body.blog #page-glow,
body.archive.category #page-glow { display: none; }

.ps-progress {
  position: fixed; inset-inline: 0; top: 0; z-index: 80;
  height: 3px;
  transform-origin: right center; transform: scaleX(0);
  background: linear-gradient(270deg, rgb(var(--brand)), rgb(var(--brand-2)));
  pointer-events: none;
}
.ps-kick {
  display: flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; color: rgb(var(--brand-text));
}
.ps-kick::before { content: ""; width: 1.1rem; height: 2px; border-radius: 2px; background: currentColor; }

/* ── ۱. سربرگ ── */
.ps-hero {
  display: grid;
  gap: 1.5rem;
  padding: 1rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
}
@media (min-width: 640px) { .ps-hero { padding: 1.25rem; } }
@media (min-width: 1024px) {
  .ps-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 1.25rem 3rem;
    padding-inline-start: 3rem;
  }
}
.ps-hero-t { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: .25rem .25rem 0; min-width: 0; }
@media (min-width: 1024px) { .ps-hero-t { padding: 2rem 0; } }
.ps-hero .dg-crumbs { margin-bottom: 1.4rem; }
.ps-cat {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 1.9rem; padding-inline: .8rem;
  border-radius: 999px;
  background: rgb(var(--brand) / .09);
  font-size: .74rem; font-weight: 700; color: rgb(var(--brand-text));
  transition: background-color .18s var(--ease);
}
.ps-cat i { width: .45rem; height: .45rem; border-radius: 50%; background: rgb(var(--brand)); box-shadow: 0 0 0 3px rgb(var(--brand) / .2); }
.ps-cat:hover { background: rgb(var(--brand) / .16); }
.ps-title {
  margin-top: 1rem;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.9rem);
  font-weight: 800; line-height: 1.45;
  text-wrap: balance;
  color: rgb(var(--ink));
}
.ps-lead {
  margin-top: 1rem; max-width: 36rem;
  font-size: clamp(.92rem, .88rem + .25vw, 1.05rem); line-height: 2.05;
  color: rgb(var(--dim)); text-wrap: pretty;
}
.ps-hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.8rem; }
.ps-hero-share {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 2.75rem; padding-inline: 1rem;
  border: 1px solid rgb(var(--line)); border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: rgb(var(--ink-2));
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.ps-hero-share:hover { border-color: rgb(var(--ink) / .4); color: rgb(var(--ink)); }
.ps-hero-love { font-size: .74rem; color: rgb(var(--ok)); font-weight: 600; }

.ps-cover { position: relative; margin: 0; min-width: 0; order: -1; align-self: center; aspect-ratio: 1 / 1; overflow: hidden; border-radius: calc(var(--r-xl) - .35rem); }
@media (min-width: 1024px) { .ps-cover { order: 0; } }
.ps-cover img,
.ps-cover .ps-cover-pv {
  display: block; width: 100%; height: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--r-xl) - .35rem);
  container-type: inline-size;
}
.ps-cover img { background: rgb(var(--surface-2)); }
.ps-cover .pv-title { font-size: clamp(1.4rem, 7cqw, 3.2rem) !important; }
.ps-cover-chip {
  position: absolute; inset-inline-start: 1rem; top: 1rem; z-index: 5;
  display: inline-flex; align-items: center; gap: .35rem;
  height: 2.1rem; padding-inline: .8rem;
  border-radius: 999px;
  font-size: .74rem; font-weight: 700; color: rgb(var(--ink));
}
.ps-cover figcaption { position: absolute; inset-inline-end: 1rem; bottom: 1rem; z-index: 5; max-width: 60%; padding: .3rem .65rem; border-radius: var(--r-sm); background: rgb(0 0 0 / .55); font-size: .68rem; color: #fff; }

/* کارت‌های واقعیت — چهار ساختار متفاوت */
.ps-facts {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
@media (min-width: 900px) { .ps-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ps-fact {
  display: flex; align-items: center; gap: .75rem;
  min-width: 0; padding: .8rem .9rem;
  border-radius: var(--r-lg);
  background: rgb(var(--surface-2));
  transition: background-color .18s var(--ease);
}
a.ps-fact:hover { background: rgb(var(--line) / .7); }
.ps-fact > span:not([class]) { display: grid; gap: .1rem; min-width: 0; }
.ps-fact small { font-size: .68rem; color: rgb(var(--dim)); }
.ps-fact b, .ps-fact time { display: flex; align-items: center; gap: .3rem; font-size: .86rem; font-weight: 800; color: rgb(var(--ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-fact b em { font-style: normal; font-weight: 500; font-size: .72rem; color: rgb(var(--dim)); }
.ps-fact .dg-verified { --v-size: .9rem; }
.ps-fact-av img { display: block; width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgb(var(--surface-2)), 0 0 0 3.5px rgb(var(--brand) / .5); }
.ps-cal {
  display: grid; flex: 0 0 auto;
  width: 2.6rem; overflow: hidden;
  border-radius: var(--r-sm);
  background: rgb(var(--surface)); text-align: center;
  box-shadow: 0 1px 0 rgb(var(--line));
}
.ps-cal i { display: block; padding-block: .05rem; background: rgb(var(--brand)); color: #fff; font-size: .52rem; font-style: normal; font-weight: 700; line-height: 1.5; white-space: nowrap; overflow: hidden; }
.ps-cal b { justify-content: center; font-size: 1rem; line-height: 1.75; }
.ps-fact-read { justify-content: space-between; }
.ps-bars { display: flex; gap: 2px; align-items: flex-end; height: 1.4rem; flex: 0 0 auto; }
.ps-bars i { width: 3px; height: 40%; border-radius: 2px; background: rgb(var(--line)); }
.ps-bars i:nth-child(3n+2) { height: 70%; }
.ps-bars i:nth-child(4n) { height: 100%; }
.ps-bars i.on { background: rgb(var(--brand)); }
@media (max-width: 1180px) { .ps-bars { display: none; } }

.ps-faces { display: flex; flex: 0 0 auto; }
.ps-faces img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgb(var(--surface-2)); }
.ps-faces img + img { margin-inline-start: -.6rem; }
.ps-faces .ic { width: 2.4rem; height: 2.4rem; padding: .55rem; border-radius: 50%; background: rgb(var(--surface)); color: rgb(var(--brand-text)); }

@media (max-width: 639px) {
  .ps-fact { gap: .55rem; padding: .7rem; }
  .ps-fact b, .ps-fact time { font-size: .8rem; }
  .ps-fact b em { display: none; }
  .ps-fact-av img, .ps-cal { width: 2.2rem; }
  .ps-fact-av img { height: 2.2rem; }
  .ps-faces img { width: 1.7rem; height: 1.7rem; }
  .ps-faces img:nth-child(n+2) { display: none; }
  .ps-faces .ic { width: 2rem; height: 2rem; padding: .45rem; }
}

/* ── ۲. بدنه ── */
.ps-layout {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 3rem; margin-top: 3rem; align-items: start;
}
@media (min-width: 1024px) { .ps-layout { grid-template-columns: minmax(0, 1fr) 18.5rem; gap: 3.5rem; } }
@media (min-width: 1280px) { .ps-layout { grid-template-columns: 12.5rem minmax(0, 1fr) 18.5rem; gap: 3rem; } }
.ps-main { min-width: 0; width: 100%; max-width: 46rem; margin-inline: auto; }

/* ستون راهنما */
.ps-rail { display: none; }
@media (min-width: 1280px) {
  .ps-rail {
    display: grid; gap: 1.3rem; align-content: start;
    position: sticky; top: calc(var(--sticky-top, 72px) + 1.5rem);
    max-height: calc(100vh - var(--sticky-top, 72px) - 3rem);
    overflow-y: auto; scrollbar-width: none;
  }
  .ps-toc-m { display: none; }
}
.ps-rail > .ps-kick { margin-bottom: -.7rem; }
.ps-meter { display: flex; align-items: center; gap: .7rem; }
.ps-meter svg { width: 2.8rem; height: 2.8rem; transform: rotate(-90deg); flex: 0 0 auto; }
.ps-meter circle { fill: none; stroke: rgb(var(--line)); stroke-width: 3.5; }
.ps-meter .ps-meter-on { stroke: rgb(var(--brand)); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--off, 100); transition: stroke-dashoffset .15s linear; }
.ps-meter > span { display: grid; line-height: 1.5; }
.ps-meter b { font-size: .95rem; font-weight: 800; color: rgb(var(--ink)); }
.ps-meter small { font-size: .68rem; color: rgb(var(--dim)); }

.ps-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.ps-toc-list a {
  display: flex; gap: .55rem; align-items: baseline;
  padding: .4rem .55rem;
  border-radius: var(--r-sm);
  font-size: .78rem; line-height: 1.75; color: rgb(var(--dim));
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.ps-toc-list a i { flex: 0 0 auto; font-style: normal; font-size: .66rem; font-weight: 700; color: rgb(var(--dim) / .6); transition: color .18s var(--ease); }
.ps-toc-list .is-h3 a { padding-inline-start: 1.9rem; font-size: .74rem; }
.ps-toc-list a:hover { color: rgb(var(--ink)); }
.ps-toc-list a.is-on { background: rgb(var(--surface-2)); color: rgb(var(--ink)); font-weight: 700; }
.ps-toc-list a.is-on i { color: rgb(var(--brand)); }
.ps-rail-sh { display: flex; gap: .35rem; padding-top: 1.1rem; border-top: 1px dashed rgb(var(--line)); }
.ps-dot {
  position: relative; display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%; border: 0;
  background: rgb(var(--surface-2)); color: rgb(var(--ink-2));
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.ps-dot:hover { transform: translateY(-2px); color: #fff; background: rgb(var(--ink)); }
.ps-dot.is-telegram:hover { background: #229ED9; }
.ps-dot.is-whatsapp:hover { background: #1DA851; }
.ps-done { position: absolute; inset: 0; margin: auto; opacity: 0; transform: scale(.5); color: rgb(var(--ok)); transition: opacity .18s, transform .18s; }
.ps-dot.is-done > .ic:first-child { opacity: 0; }
.ps-dot.is-done .ps-done { opacity: 1; transform: none; }

/* فهرست موبایل */
.ps-toc-m { margin-bottom: 2rem; border-radius: var(--r-lg); background: rgb(var(--surface-2)); }
.ps-toc-m summary { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; font-size: .85rem; font-weight: 700; color: rgb(var(--ink)); list-style: none; cursor: pointer; }
.ps-toc-m summary::-webkit-details-marker { display: none; }
.ps-toc-m-n { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgb(var(--ink)); color: rgb(var(--bg)); font-size: .7rem; }
.ps-toc-chev { margin-inline-start: auto; color: rgb(var(--dim)); transition: transform .2s var(--ease); }
.ps-toc-m[open] .ps-toc-chev { transform: rotate(180deg); }
.ps-toc-m .ps-toc-list { padding: 0 .6rem .8rem; }

/* متن */
.ps-body { font-size: 1.02rem; line-height: 2.15; color: rgb(var(--ink-2)); }
.ps-body > * + * { margin-top: 1.35rem; }
.ps-body > :first-child { margin-top: 0; }
.ps-body > p:first-child { font-size: 1.1rem; color: rgb(var(--ink)); }
.ps-body h2, .ps-body h3 { scroll-margin-top: calc(var(--sticky-top, 72px) + 1.5rem); line-height: 1.6; color: rgb(var(--ink)); }
.ps-body h2 { position: relative; margin-top: 3rem; padding-top: 1.1rem; font-size: 1.45rem; font-weight: 800; }
.ps-body h2::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 2.2rem; height: 3px; border-radius: 3px; background: rgb(var(--brand)); }
.ps-body h3 { margin-top: 2.2rem; font-size: 1.15rem; font-weight: 700; }
.ps-body h2 + *, .ps-body h3 + * { margin-top: .8rem; }
.ps-body strong { color: rgb(var(--ink)); }
.ps-body p a:not([class]), .ps-body li a:not([class]) { color: rgb(var(--brand-text)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ps-body ul, .ps-body ol { padding-inline-start: 1.3rem; }
.ps-body li + li { margin-top: .4rem; }
.ps-body li::marker { color: rgb(var(--brand)); }
.ps-body figure { margin-block: 2rem; }
.ps-body figure img, .ps-body > p img { display: block; max-width: 100%; height: auto; border-radius: var(--r-lg); }
.ps-body figcaption { margin-top: .5rem; font-size: .75rem; color: rgb(var(--dim)); text-align: center; }
.ps-body blockquote {
  position: relative; margin-block: 2.2rem;
  padding: 1.4rem 1.5rem; padding-inline-start: 3.4rem;
  border-radius: var(--r-lg); background: rgb(var(--surface-2));
  font-size: 1.08rem; font-weight: 600; line-height: 2; color: rgb(var(--ink));
}
.ps-body blockquote::before { content: "«"; position: absolute; inset-inline-start: 1rem; top: .7rem; font-size: 2.6rem; line-height: 1; color: rgb(var(--brand)); }
.ps-body blockquote p:last-child { margin-bottom: 0; }
.ps-body blockquote cite { display: block; margin-top: .5rem; font-size: .78rem; font-style: normal; font-weight: 400; color: rgb(var(--dim)); }
.ps-body hr { margin-block: 2.5rem; border: 0; text-align: center; }
.ps-body hr::after { content: "• • •"; letter-spacing: .6rem; color: rgb(var(--dim)); }
.ps-body code { padding: .1rem .35rem; border-radius: var(--r-sm); background: rgb(var(--surface-2)); font-size: .88em; direction: ltr; unicode-bidi: isolate; }
.ps-body pre { padding: 1rem 1.2rem; border-radius: var(--r); background: rgb(var(--surface-2)); overflow-x: auto; direction: ltr; text-align: left; font-size: .85rem; line-height: 1.8; }
.ps-body pre code { padding: 0; background: none; }
.ps-body table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ps-body th, .ps-body td { padding: .6rem .75rem; border-bottom: 1px solid rgb(var(--line)); text-align: start; }
.ps-body th { font-weight: 700; color: rgb(var(--ink)); background: rgb(var(--surface-2)); }
.ps-pages { display: flex; gap: .4rem; margin-top: 2rem; font-size: .85rem; }

/* کارت محصول درون‌متن */
.ps-body .ps-inprod {
  margin-block: 2.2rem;
  padding: .6rem;
  border: 1px dashed rgb(var(--brand) / .45);
  border-radius: var(--r-lg);
}
.ps-body .ps-inprod a, .ps-body .ps-inprod a * { text-decoration: none; color: inherit; }
.ps-inprod-k { display: block; padding: .1rem .5rem .5rem; font-size: .7rem; font-weight: 700; line-height: 1.8; color: rgb(var(--brand-text)); }
.ps-inprod-a { display: flex; align-items: center; gap: 1rem; padding: .5rem; border-radius: var(--r); background: rgb(var(--surface-2)); }
.ps-inprod-a .ps-prow-img { width: 4.5rem; height: 4.5rem; }
.ps-inprod-a .ps-prow-t b { font-size: .92rem; }
.ps-inprod-a::after { content: "مشاهده"; margin-inline-start: auto; flex: 0 0 auto; padding: .35rem 1rem; border-radius: 999px; background: rgb(var(--brand)); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.8; }
@media (max-width: 480px) { .ps-inprod-a::after { display: none; } }

.ps-prow { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .45rem; border-radius: var(--r); transition: background-color .18s var(--ease); }
.ps-prow:hover { background: rgb(var(--surface-2)); }
.ps-prow-img { flex: 0 0 auto; width: 3.6rem; height: 3.6rem; overflow: hidden; border-radius: var(--r-sm); }
.ps-prow-img img, .ps-prow-img .pv { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-prow-img .pv-in, .ps-prow-img .box, .ps-prow-img .fs-lines { display: none; }
.ps-prow-t { display: grid; gap: .15rem; min-width: 0; }
.ps-prow-t b { font-size: .8rem; font-weight: 700; line-height: 1.7; color: rgb(var(--ink)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ps-prow-price { font-size: .8rem; font-weight: 800; color: rgb(var(--ink)); }

/* برچسب‌ها */
.ps-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; }
.ps-tags a { display: inline-flex; align-items: center; gap: .15rem; height: 2rem; padding-inline: .8rem; border: 1px solid rgb(var(--line)); border-radius: 999px; font-size: .76rem; color: rgb(var(--ink-2)); transition: border-color .18s, color .18s; }
.ps-tags a i { font-style: normal; color: rgb(var(--brand)); font-weight: 700; }
.ps-tags a:hover { border-color: rgb(var(--brand) / .5); color: rgb(var(--brand-text)); }

/* مفید بود + هم‌رسانی */
.ps-react {
  display: grid; margin-top: 2.5rem;
  border-radius: var(--r-xl); overflow: hidden;
  background: #111114; color: #fff;
  scroll-margin-top: calc(var(--sticky-top, 72px) + 1.5rem);
}
@media (min-width: 720px) { .ps-react { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.ps-vote, .ps-share { padding: 1.5rem; }
.ps-share { background: rgb(255 255 255 / .05); }
.ps-react-t { margin-bottom: 1rem; font-size: 1rem; font-weight: 800; }
.ps-vote-b { display: flex; flex-wrap: wrap; gap: .5rem; }
.ps-vote-b button {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 2.6rem; padding-inline: 1rem;
  border: 1px solid rgb(255 255 255 / .2); border-radius: 999px;
  background: transparent; color: inherit;
  font: inherit; font-size: .8rem; font-weight: 700;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), opacity .2s;
}
.ps-vote-b button:hover { border-color: rgb(255 255 255 / .5); }
.ps-vote-b button:active { transform: scale(.96); }
.ps-vote-b em { padding: 0 .45rem; border-radius: 999px; background: rgb(255 255 255 / .12); font-size: .7rem; font-style: normal; }
.ps-vote-b .is-yes.is-on { background: rgb(22 163 74); border-color: transparent; }
.ps-vote-b .is-no.is-on { background: rgb(255 255 255 / .2); border-color: transparent; }
.ps-vote-ok { display: none; margin-top: .8rem; font-size: .76rem; color: rgb(255 255 255 / .7); }
.ps-vote.is-voted .ps-vote-ok { display: block; }
.ps-vote.is-voted button:not(.is-on) { opacity: .45; }
.ps-share-b { display: flex; flex-wrap: wrap; gap: .45rem; }
.ps-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 2.6rem; padding-inline: .95rem;
  border: 0; border-radius: 999px;
  font: inherit; font-size: .78rem; font-weight: 700; color: #fff;
  cursor: pointer;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.ps-pill[hidden] { display: none; }
.ps-pill:hover { transform: translateY(-2px); filter: brightness(1.1); }
.ps-pill.is-telegram { background: #229ED9; }
.ps-pill.is-whatsapp { background: #1DA851; }
.ps-pill.is-x { background: #000; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
.ps-pill.is-native { background: rgb(255 255 255 / .14); }
.ps-link {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .8rem; padding: .3rem; padding-inline-start: .85rem;
  border-radius: 999px; background: rgb(255 255 255 / .08);
}
.ps-link > .ic { flex: 0 0 auto; opacity: .6; }
.ps-link input { flex: 1; min-width: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .74rem; direction: ltr; text-align: left; opacity: .8; outline: none; }
.ps-link button { flex: 0 0 auto; height: 2.1rem; padding-inline: 1rem; border: 0; border-radius: 999px; background: #fff; color: #111; font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; transition: background-color .2s; }
.ps-link-b { display: none; }
.ps-link button.is-done { background: rgb(22 163 74); color: #fff; }
.ps-link button.is-done .ps-link-a { display: none; }
.ps-link button.is-done .ps-link-b { display: inline; }

/* نویسنده */
.ps-author {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem;
  margin-top: 1rem; padding: 1.25rem;
  border: 1px solid rgb(var(--line)); border-radius: var(--r-xl);
}
@media (min-width: 640px) { .ps-author { padding: 1.5rem; } }
.ps-author-av img { display: block; width: 4.5rem; height: 4.5rem; border-radius: var(--r-lg); object-fit: cover; }
@media (min-width: 640px) { .ps-author-av img { width: 6rem; height: 6rem; } }
.ps-author-name { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; font-size: 1.1rem; font-weight: 800; color: rgb(var(--ink)); }
.ps-author-name .dg-verified { --v-size: 1rem; }
.ps-author-bio { margin-top: .35rem; font-size: .82rem; line-height: 1.95; color: rgb(var(--dim)); }
.ps-author-f { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; margin-top: .9rem; font-size: .76rem; color: rgb(var(--dim)); }
.ps-author-f b { font-size: .95rem; color: rgb(var(--ink)); }
.ps-author-go { display: inline-flex; align-items: center; gap: .3rem; margin-inline-start: auto; font-weight: 700; color: rgb(var(--brand-text)); }
.ps-author-go .ic { transition: transform .2s var(--ease); }
.ps-author-go:hover .ic { transform: translateX(-3px); }

/* قبلی / بعدی */
.ps-pn { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 640px) { .ps-pn { grid-template-columns: 1fr 1fr; } }
.ps-pn > span:empty { display: none; }
@media (min-width: 640px) { .ps-pn > span:empty { display: block; } }
.ps-pn-a { display: flex; align-items: center; gap: .85rem; padding: .6rem; border-radius: var(--r-lg); background: rgb(var(--surface-2)); transition: background-color .2s var(--ease); }
.ps-pn-a.is-next { flex-direction: row-reverse; text-align: end; }
.ps-pn-a:hover { background: rgb(var(--line) / .7); }
.ps-pn-img { flex: 0 0 auto; width: 4.2rem; height: 4.2rem; overflow: hidden; border-radius: var(--r); }
.ps-pn-img img, .ps-pn-img .pv { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-pn-img .pv-in, .ps-pn-img .box, .ps-pn-img .fs-lines { display: none; }
.ps-pn-t { display: grid; gap: .2rem; min-width: 0; }
.ps-pn-t small { display: flex; align-items: center; gap: .25rem; font-size: .68rem; color: rgb(var(--dim)); }
.ps-pn-a.is-next small { justify-content: flex-end; }
.ps-pn-t b { font-size: .84rem; font-weight: 700; line-height: 1.75; color: rgb(var(--ink)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ستون کناری — ماژول‌های منتخب */
.ps-aside { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
@media (min-width: 1024px) { .ps-aside { align-self: stretch; } }
.ps-box { padding: 1rem; border: 1px solid rgb(var(--line)); border-radius: var(--r-xl); }
.ps-box-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .15rem .35rem .7rem; }
.ps-box-h h2 { font-size: .9rem; font-weight: 800; color: rgb(var(--ink)); }
.ps-box-h a { font-size: .72rem; font-weight: 700; color: rgb(var(--brand-text)); }
.ps-prows { display: grid; gap: .15rem; }
.ps-rank { list-style: none; margin: 0; padding: 0; }
.ps-rank li + li { border-top: 1px dashed rgb(var(--line)); }
.ps-rank a { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .35rem; }
.ps-rank i {
  flex: 0 0 auto; width: 1.6rem;
  font-style: normal; font-size: 1.6rem; font-weight: 900; line-height: 1.15;
  color: rgb(var(--line));
  transition: color .2s var(--ease);
}
.ps-rank span { display: grid; gap: .15rem; min-width: 0; }
.ps-rank b { font-size: .8rem; font-weight: 700; line-height: 1.8; color: rgb(var(--ink)); transition: color .2s var(--ease); }
.ps-rank small { font-size: .68rem; color: rgb(var(--dim)); }
.ps-rank a:hover i { color: rgb(var(--brand)); }
.ps-rank a:hover b { color: rgb(var(--brand-text)); }
.ps-stick { display: grid; gap: .75rem; }
@media (min-width: 1024px) { .ps-stick { position: sticky; top: calc(var(--sticky-top, 72px) + 1.5rem); } }

.ps-promo {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: .35rem;
  padding: 1.4rem 1.3rem 1.3rem;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #1b1b22, #0d0d10);
  color: #fff;
}
.ps-promo::before { content: ""; position: absolute; z-index: -1; width: 14rem; height: 14rem; inset-inline-end: -5rem; top: -6rem; border-radius: 50%; background: radial-gradient(circle, rgb(229 35 47 / .55), transparent 65%); }
.ps-promo-stack { position: relative; height: 4.8rem; margin-bottom: .5rem; }
.ps-promo-stack i { position: absolute; top: .2rem; width: 3.4rem; height: 4.4rem; border-radius: var(--r-sm); box-shadow: 0 10px 22px -8px rgb(0 0 0 / .7); transition: transform .45s var(--ease); }
.ps-promo-stack i:nth-child(1) { inset-inline-start: 0; background: linear-gradient(150deg, #6366f1, #312e81); transform: rotate(8deg); }
.ps-promo-stack i:nth-child(2) { inset-inline-start: 2.1rem; background: linear-gradient(150deg, #f59e0b, #7c2d12); transform: rotate(-4deg); }
.ps-promo-stack i:nth-child(3) { inset-inline-start: 4.2rem; background: linear-gradient(150deg, #E5232F, #7f1d1d); transform: rotate(6deg); }
.ps-promo:hover .ps-promo-stack i:nth-child(1) { transform: rotate(14deg) translateY(-3px); }
.ps-promo:hover .ps-promo-stack i:nth-child(3) { transform: rotate(0deg) translateY(-5px); }
.ps-promo-n { justify-self: start; padding: .1rem .6rem; border-radius: 999px; background: rgb(255 255 255 / .12); font-size: .7rem; font-weight: 700; }
.ps-promo b { font-size: 1.1rem; font-weight: 800; line-height: 1.7; }
.ps-promo small { font-size: .76rem; line-height: 1.9; color: rgb(255 255 255 / .65); }
.ps-promo-go { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; height: 2.7rem; margin-top: .7rem; border-radius: 999px; background: #E5232F; font-size: .8rem; font-weight: 800; transition: filter .2s var(--ease); }
.ps-promo:hover .ps-promo-go { filter: brightness(1.1); }
.ps-tg { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border-radius: var(--r-lg); background: rgb(34 158 217 / .1); color: rgb(var(--ink)); }
.ps-tg > span:not([class]) { display: grid; flex: 1; min-width: 0; }
.ps-tg b { font-size: .8rem; font-weight: 800; }
.ps-tg small { font-size: .68rem; color: rgb(var(--dim)); }
.ps-tg-ic { display: grid; place-items: center; flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #229ED9; color: #fff; }
.ps-tg > .ic { color: #229ED9; transition: transform .2s var(--ease); }
.ps-tg:hover > .ic { transform: translateX(-3px); }

/* ── ۳ تا ۵. سکشن‌های تمام‌عرض ── */
.ps-sec { margin-top: 5rem; scroll-margin-top: calc(var(--sticky-top, 72px) + 1rem); }
.ps-sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.ps-sec-h h2 { margin-top: .4rem; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 800; color: rgb(var(--ink)); }
.ps-shop { padding: 1.25rem; border-radius: var(--r-xl); background: rgb(var(--surface-2)); }
@media (min-width: 768px) { .ps-shop { padding: 2.25rem; } }
.ps-shop-g { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .ps-shop-g { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
@media (max-width: 420px) { .ps-shop-g { grid-template-columns: minmax(0, 1fr); } }
.ps-rel-g { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .ps-rel-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ps-rel-g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* گفتگو: فهرست در یک ستون، فرم چسبان در ستون دیگر */
.ps-talk .cm-count { display: none; }
@media (min-width: 1024px) {
  .ps-talk .cm-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: 0 2.5rem; align-items: start; }
  .ps-talk .cm-wrap > * { grid-column: 1; }
  .ps-talk .cm-wrap > .comment-respond { grid-column: 2; grid-row: 1 / span 20; margin-top: 0; position: sticky; top: calc(var(--sticky-top, 72px) + 1.5rem); }
}
.ps-talk .cm-item { border: 0; border-radius: var(--r-lg); border-start-start-radius: .35rem; background: rgb(var(--surface-2)); }
.ps-talk .cm-item .children .cm-item { border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); }
.ps-talk .comment-respond { border-radius: var(--r-xl); background: rgb(var(--surface)); }
.ps-talk .comment-reply-title { font-size: 1.05rem; }
.ps-talk .cm-empty { padding: 3rem 1.2rem; border-radius: var(--r-xl); }

/* ── نتایج جستجو ── */
.sr-block { margin-top: 2.5rem; }
.sr-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .9rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgb(var(--line));
}
.sr-head h2 { display: flex; align-items: center; gap: .45rem; font-size: 1rem; font-weight: 700; }
.sr-head h2 .ic { color: rgb(var(--brand)); }
.sr-head > .num {
  padding: .15rem .55rem;
  border-radius: 999px;
  background: rgb(var(--surface-2));
  font-size: .72rem;
  color: rgb(var(--dim));
}

/* ── جستجوی زنده ── */
.live-search {
  position: absolute;
  inset-block-start: calc(100% + .5rem);
  inset-inline: 0;
  z-index: 60;
  max-height: 26rem;
  overflow-y: auto;
  padding: .5rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface));
  box-shadow: 0 4px 12px -4px rgb(var(--shadow) / .12), 0 24px 48px -20px rgb(var(--shadow) / .35);
}
.hero-search,
.search-pill,
form[data-search] { position: relative; }

.ls-head {
  padding: .5rem .6rem .35rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 700;
  color: rgb(var(--dim));
}
.ls-head .ic { color: rgb(var(--brand)); }

.ls-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .6rem;
  border-radius: var(--r-sm);
  transition: background .16s var(--ease);
}
.ls-row:hover { background: rgb(var(--surface-2)); }

.ls-media { width: 2.6rem; height: 2.6rem; flex-shrink: 0; border-radius: .5rem; overflow: hidden; }
.ls-media img,
.ls-media .pv { width: 100%; height: 100%; object-fit: cover; }

.ls-t { display: flex; flex-direction: column; min-width: 0; }
.ls-t b { font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-t i { font-style: normal; font-size: .72rem; color: rgb(var(--dim)); }

.ls-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: .4rem;
  padding: .6rem;
  border-top: 1px solid rgb(var(--line-2));
  font-size: .78rem;
  font-weight: 600;
  color: rgb(var(--brand-text));
}
.ls-empty,
.ls-loading { padding: 1.5rem; text-align: center; font-size: .82rem; color: rgb(var(--dim)); }


/* ══════════════════════════════════════════════════════════════════
   ۱.۶ — موتور واقعی سبد: وضعیت دکمه، توست، کشوی سبد، آرت‌ورک کوچک
   ══════════════════════════════════════════════════════════════════ */

/* ── وضعیت دکمهٔ افزودن: حالت‌های `.dgc-add` کنار خود کارت (بخش ۱۱) تعریف شده‌اند ── */
.pd-actions [type="submit"].is-busy { pointer-events: none; }

@keyframes dg-pop { from { scale: .4; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes dg-spin { to { transform: rotate(360deg); } }

/* دکمهٔ فشردهٔ تک‌محصول (.pd-cta) هم همین رفتار اسپینر/تیک را می‌گیرد */
.pd-actions [type="submit"] { position: relative; transition: background-color .2s var(--ease); }
.pd-actions [type="submit"].is-busy .ic,
.pd-actions [type="submit"].is-busy span,
.pd-actions [type="submit"].added .ic,
.pd-actions [type="submit"].added span { opacity: 0; }
.pd-actions [type="submit"].is-busy::after,
.pd-actions [type="submit"].added::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px; height: 20px;
}
.pd-actions [type="submit"].is-busy::after {
  border: 2.5px solid rgb(255 255 255 / .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dg-spin .6s linear infinite;
}
.pd-actions [type="submit"].added {
  background: rgb(var(--ok));
}
.pd-actions [type="submit"].added::after {
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 5 5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 5 5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: #fff;
  animation: dg-pop .3s var(--ease);
}

/* ── توست سبد — گوشهٔ پایین‌راست (فیزیکی)، ثابت با هر جهتی ── */
#dg-cart-toast {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  width: 21rem;
  max-width: calc(100vw - 32px);
  padding: 1.1rem 1.2rem 1rem;
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
  box-shadow: 0 4px 14px rgb(var(--shadow) / .1), 0 26px 54px -22px rgb(var(--shadow) / .45);
  overflow: hidden;
  opacity: 0;
  translate: 0 16px;
  pointer-events: none;
  transition: opacity .3s var(--ease), translate .3s var(--ease);
}
#dg-cart-toast.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }

.ct-close {
  position: absolute;
  top: .6rem; left: .6rem;
  display: grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  color: rgb(var(--dim));
  transition: background-color .18s var(--ease);
}
.ct-close:hover { background: rgb(var(--surface-2)); }

.ct-ic {
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  margin-bottom: .7rem;
  border-radius: 50%;
  background: #16a34a1a;
  color: rgb(var(--ok));
}
.ct-t { font-size: .88rem; font-weight: 700; margin: 0 0 .9rem; padding-inline-end: 1.4rem; }
.ct-actions { display: flex; gap: .5rem; }

.ct-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: rgb(var(--brand));
  transform-origin: right center;
  animation: dg-ct-shrink 4s linear forwards;
}
#dg-cart-toast.is-on .ct-bar { animation-play-state: running; }
@keyframes dg-ct-shrink { from { scale: 1 1; } to { scale: 0 1; } }

@media (max-width: 480px) {
  #dg-cart-toast { right: 12px; bottom: 12px; left: 12px; width: auto; }
}

/* ── آرت‌ورک کوچک تخت (سبد، مرور سفارش، دانلودها) ── */
.pv-mini {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: rgb(255 255 255 / .92);
}

/* ── کشوی سبد (mini-cart) ── */
.mc-panel { max-width: 26rem; overflow: hidden; }
.mc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.2rem;
  flex-shrink: 0;
  padding-inline: 1.25rem;
  border-bottom: 1px solid rgb(var(--line));
}
.mc-head > span { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 700; }
.mc-head .ic { color: rgb(var(--brand)); }

.mc-body {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: 1rem 1.25rem;
  padding-inline-start: 1.25rem;
  padding-inline-end: max(1.5rem, calc(env(safe-area-inset-left) + .75rem));
}
#dg-mini-cart { width: 100%; min-width: 0; }

.mc-empty {
  display: grid;
  justify-items: center;
  gap: .6rem;
  padding: 3.5rem 1rem;
  text-align: center;
}
.mc-empty-ic {
  display: grid;
  place-items: center;
  width: 4rem; height: 4rem;
  border-radius: var(--r-lg);
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand));
}
.mc-empty p { font-size: .88rem; font-weight: 700; }
.mc-empty-sub { max-width: 15rem; font-size: .78rem; font-weight: 400; line-height: 1.9; color: rgb(var(--dim)); }

.mc-list { display: grid; width: 100%; min-width: 0; gap: .2rem; }
.mc-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) 3.4rem;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-width: 0;
  padding: .7rem 0;
  transition: opacity .2s var(--ease);
}
.mc-row + .mc-row { border-top: 1px dashed rgb(var(--line-2)); }
.mc-row.is-removing { opacity: .35; pointer-events: none; }

.mc-media { display: block; width: 3.2rem; height: 3.2rem; flex-shrink: 0; border-radius: .7rem; overflow: hidden; }
.mc-media img { display: block; width: 100%; height: 100%; object-fit: contain; background: rgb(var(--surface-2)); }

.mc-info { display: flex; flex-direction: column; gap: .3rem; min-width: 0; flex: 1; }
.mc-info b { font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-price { font-size: .8rem; font-weight: 700; color: rgb(var(--brand-text)); }

.mc-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .22rem;
  width: 3.4rem; min-width: 0; height: 2rem;
  justify-self: end;
  padding-inline: .5rem;
  border-radius: 999px;
  background: rgb(var(--brand) / .07);
  font-size: .67rem;
  font-weight: 700;
  color: rgb(var(--dim));
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.mc-del:hover { background: rgb(var(--brand) / .12); color: rgb(var(--brand-text)); }
.mc-del .ic { width: 13px; height: 13px; }

.mc-foot { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgb(var(--line)); }
.mc-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; font-size: .85rem; color: rgb(var(--dim)); }
.mc-total b { font-size: 1.15rem; font-weight: 800; color: rgb(var(--brand-text)); }
.mc-acts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: .5rem; }
.mc-acts .btn { width: 100%; min-width: 0; padding-inline: .55rem; white-space: nowrap; font-size: .72rem; }
@media (max-width: 370px) { .mc-acts { grid-template-columns: 1fr; } }


/* ══════════ صفحهٔ دانلودهای حساب کاربری ══════════ */
.acc-empty {
  display: grid;
  justify-items: center;
  gap: .9rem;
  padding: 3.5rem 1.5rem;
  border: 1px dashed rgb(var(--line));
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
  text-align: center;
}
.acc-empty-ic {
  display: grid;
  place-items: center;
  width: 4rem; height: 4rem;
  border-radius: var(--r-lg);
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand));
}
.acc-empty p { font-size: .85rem; color: rgb(var(--dim)); max-width: 24rem; }

.acc-dl-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }

.acc-dl-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface));
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.acc-dl-card:hover { border-color: rgb(var(--brand) / .35); transform: translateY(-2px); }

.acc-dl-ic { display: block; width: 3rem; height: 3rem; flex-shrink: 0; border-radius: .8rem; overflow: hidden; }
.acc-dl-ic img { display: block; width: 100%; height: 100%; object-fit: cover; }

.acc-dl-t { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.acc-dl-t b { font-size: .82rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-dl-t i { font-style: normal; font-size: .7rem; color: rgb(var(--dim)); }

.acc-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
  height: 2.1rem;
  padding-inline: .8rem;
  border-radius: 999px;
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  font-size: .74rem;
  font-weight: 600;
  transition: background-color .2s var(--ease);
}
.acc-dl-btn:hover { background: rgb(var(--brand-2)); }
.acc-dl-expired { flex-shrink: 0; font-size: .7rem; color: rgb(var(--dim)); }

/* ══════════ سکشن طراحان (صفحهٔ اصلی) ══════════ */
/* ⚠️ auto-fill قبلی هر تعداد عجیبی می‌ساخت؛ حالا هم‌راستا با «۸ طراح، دو ردیف چهارتایی»
   (سکشن صفحهٔ اصلی) ستون‌ها ثابت‌اند. صفحهٔ آرشیوِ طراحان هم از همین گرید استفاده می‌کند. */
.vteam {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) { .vteam { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .vteam { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.vteam-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease);
}
.vteam-card:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--brand) / .4);
  box-shadow: 0 0 0 3px rgb(var(--brand) / .06);
}

/* نوار کاور رنگی بالای کارت — آواتار روی آن می‌نشیند */
.vteam-cover {
  height: 4.6rem;
  background:
    radial-gradient(80% 160% at 20% 0%, rgb(var(--brand) / .55), transparent 62%),
    linear-gradient(115deg, #232231, #15141c);
  position: relative;
}
.vteam-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 120% at 85% 0%, #000, transparent 75%);
          mask-image: radial-gradient(70% 120% at 85% 0%, #000, transparent 75%);
}

/* نشان رتبه — طراح شمارهٔ ۱ */
.vteam-rank {
  position: absolute;
  z-index: 3;
  top: .75rem;
  inset-inline-end: .8rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .16);
  border: 1px solid rgb(255 255 255 / .2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
}
.vteam-rank .ic { width: 12px; height: 12px; color: rgb(var(--gold)); }

/* ⚠️ آواتار absolute است و متن با padding کنارش می‌رود.
   نسخهٔ اول کلِ ردیف را با margin-top منفی روی کاور می‌کشید و نام طراح
   (که رنگ --ink دارد) روی کاورِ تیره کاملاً نامرئی می‌شد. */
.vteam-head {
  display: flex;
  align-items: center;
  min-height: 3rem;
  min-width: 0;
  padding: .7rem 1.1rem 0;
  padding-inline-start: 5.5rem;
}

.vteam-ava {
  position: absolute;
  z-index: 2;
  top: 2.55rem;
  inset-inline-start: 1.1rem;
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
}
.vteam-ava img {
  width: 100%; height: 100%;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%);
  object-fit: cover;
  display: block;
  border: 3px solid rgb(var(--surface));
  background: rgb(var(--surface));
}
.vteam-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgb(var(--brand)), #6366f1, #14b8a6, rgb(var(--brand)));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.vteam-card:hover .vteam-ring { opacity: 1; }

.vteam-id { min-width: 0; padding-bottom: .2rem; }
.vteam-id b {
  display: flex; align-items: center; gap: .28rem;
  font-size: .9rem; font-weight: 800;
  color: rgb(var(--ink));
  overflow: hidden;
}
.vteam-id b > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vteam-v { color: rgb(var(--brand)); flex: 0 0 auto; }
.vteam-id i {
  display: block;
  margin-top: .1rem;
  font-style: normal;
  font-size: .73rem;
  color: rgb(var(--dim));
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.vteam-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .3rem;
  margin: .9rem 1.1rem .9rem;
}
.vteam-work {
  position: relative;
  display: block;
  isolation: isolate;
  aspect-ratio: 1 / 1;
  background: rgb(var(--surface-2));
  /* ⚠️ border-radius + overflow:hidden به‌تنهایی روی کروم گاهی یک پیکسل گوشهٔ تیز/کلیپ‌نشده
     باقی می‌گذارد وقتی فرزندش hover:scale می‌شود (بازخورد: «گوشه تیزه») — دقیقاً همان ترفند
     .dgc-art (کارت محصول) با clip-path به‌جای overflow:hidden ساده. */
  clip-path: inset(0 round var(--r-sm));
}
.vteam-work img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.vteam-work:hover img { transform: scale(1.08); }
.vteam-ph {
  display: block;
  width: 100%; height: 100%;
  background: linear-gradient(140deg, var(--c1, #E5232F), var(--c2, #1B1A22));
}

.vteam-foot {
  display: flex; align-items: center; gap: 1rem;
  margin-top: auto;
  padding: .75rem 1.1rem .95rem;
  border-top: 1px dashed rgb(var(--line-2));
  font-size: .72rem;
  color: rgb(var(--dim));
}
.vteam-foot > span { display: flex; align-items: baseline; gap: .28rem; }
.vteam-foot b { font-size: .88rem; font-weight: 800; color: rgb(var(--ink)); }
.vteam-go {
  display: inline-flex; align-items: center; gap: .25rem;
  margin-inline-start: auto;
  font-size: .74rem; font-weight: 700;
  color: rgb(var(--brand-text));
}
.vteam-go:hover { color: rgb(var(--brand)); }
.vteam-go .ic { transition: transform .25s var(--ease); }
.vteam-card:hover .vteam-go .ic { transform: translateX(-3px); }

/* ══════════ 30. سکشن خدمات — کارت‌های گرافیکی ══════════
   بازخورد کاربر: «اینا چیه ساده گذاشتی» — نسخهٔ قبل یک ردیف
   آیکون+متن+فلش بود. حالا هر خدمت لهجهٔ رنگی خودش، هالهٔ گوشه،
   شمارهٔ بزرگ محو، کاشیِ آیکونِ گرادیانی و خط پایینِ کشویی دارد. */
.svc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.svc {
  --svc: var(--brand);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 13.5rem;
  padding: 1.5rem 1.4rem 1.35rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.svc:hover { transform: translateY(-4px); border-color: rgb(var(--svc) / .45); }

/* هالهٔ رنگی گوشه — روی هاور باز می‌شود */
.svc::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -5rem;
  top: -6rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgb(var(--svc));
  opacity: .07;
  filter: blur(18px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.svc:hover::before { opacity: .16; transform: scale(1.18); }

/* خط رنگی پایین که از راست باز می‌شود */
.svc::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, rgb(var(--svc)), rgb(var(--svc) / .25));
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .45s var(--ease);
}
.svc:hover::after { transform: scaleX(1); }

/* شمارهٔ بزرگ محو */
.svc-n {
  position: absolute;
  inset-inline-end: 1.1rem;
  top: .5rem;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgb(var(--svc) / .1);
  pointer-events: none;
  transition: color .35s var(--ease);
}
.svc:hover .svc-n { color: rgb(var(--svc) / .18); }

/* کاشی آیکون */
.svc-ic {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 1.1rem;
  border-radius: var(--r);
  color: #fff;
  background: linear-gradient(140deg, rgb(var(--svc)), rgb(var(--svc) / .6));
  box-shadow: 0 10px 22px -12px rgb(var(--svc) / .9);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.svc:hover .svc-ic { transform: translateY(-2px) rotate(-6deg); box-shadow: 0 14px 28px -12px rgb(var(--svc)); }
.svc-ic .ic { width: 22px; height: 22px; }

.svc-t { font-size: 1rem; font-weight: 800; color: rgb(var(--ink)); line-height: 1.55; }
.svc-d { margin-top: .4rem; font-size: .79rem; line-height: 1.9; color: rgb(var(--dim)); }

.svc-go {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: .78rem;
  font-weight: 700;
  color: rgb(var(--svc));
}
.svc-go .ic { transition: transform .3s var(--ease); }
.svc:hover .svc-go .ic { transform: translateX(-4px); }

.svc.c-brand  { --svc: var(--brand); }
.svc.c-indigo { --svc: 79 70 229; }
.svc.c-teal   { --svc: 13 148 136; }
.svc.c-amber  { --svc: 217 119 6; }
.svc.c-violet { --svc: 147 51 234; }
.svc.c-blue   { --svc: 37 99 235; }

/* ══════════ 31. سکشن دسته‌بندی — گرید یک‌دست ══════════
   ⛔ نسخهٔ قبل («بنتو») کاشیِ اول را ۲×۲ بزرگ می‌کرد — دقیقاً برای ۶ آیتم طراحی شده بود؛
   با هر عدد دیگری (مثلاً وقتی فقط ۴ دستهٔ سطح‌بالا واقعی وجود داشت) یک حفرهٔ خالی بزرگ
   ته گرید می‌ماند. حالا سکشن همیشه ۸ دستهٔ پرفایل‌ترین را می‌گیرد (`categories.php`) و
   گرید یک‌دست است — بدون کاشی ویژه، بدون حفره، در ۲/۴ ستون همیشه دقیقاً پر می‌شود. */
.cat-bento {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .cat-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
}

.cat-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1 / 1.08;
  padding: 1.1rem;
  border-radius: var(--r-lg);
  background: rgb(var(--surface-2));
  transition: transform .35s var(--ease);
}
.cat-tile:hover { transform: translateY(-3px); }

/* تصویر/آرت‌ورک پس‌زمینه */
.cat-tile-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cat-tile-bg img,
.cat-tile-bg .pv {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.cat-tile:hover .cat-tile-bg img,
.cat-tile:hover .cat-tile-bg .pv { transform: scale(1.06); }

/* پردهٔ تیره برای خوانایی متن */
.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(6 6 12 / .82) 8%, rgb(6 6 12 / .34) 48%, rgb(6 6 12 / .1) 100%);
  transition: background .35s var(--ease);
}
.cat-tile:hover::after {
  background: linear-gradient(to top, rgb(6 6 12 / .86) 8%, rgb(var(--brand) / .3) 70%, rgb(6 6 12 / .12) 100%);
}

/* نشان آیکون شناور بالا */
.cat-ic {
  position: absolute;
  top: .9rem;
  inset-inline-start: .9rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / .16);
  border: 1px solid rgb(255 255 255 / .22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: background-color .3s var(--ease);
}
.cat-tile:hover .cat-ic { background: rgb(var(--brand)); border-color: transparent; }

/* شمارنده گوشهٔ مقابل */
.cat-count {
  position: absolute;
  top: 1.1rem;
  inset-inline-end: .9rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
}

.cat-name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 1px 10px rgb(0 0 0 / .45);
}
.cat-go {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .35rem;
  font-size: .74rem;
  font-weight: 700;
  color: rgb(255 255 255 / .8);
}
.cat-go .ic { transition: transform .3s var(--ease); }
.cat-tile:hover .cat-go { color: #fff; }
.cat-tile:hover .cat-go .ic { transform: translateX(-4px); }

/* ══════════ 32. آرشیو وبلاگ ══════════
   بازخورد کاربر: «صفحه وبلاگ افتضاحه». نسخهٔ قبل فقط یک گرید خشک
   از کارت‌ها بود. حالا: نوشتهٔ شاخصِ بزرگ، نوار فیلتر دسته‌ها، و گرید. */

/* ── نوشتهٔ شاخص ── */
.blog-hero {
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  margin-bottom: 1.6rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
  transition: border-color .3s var(--ease);
}
.blog-hero:hover { border-color: rgb(var(--brand) / .4); }
@media (min-width: 880px) {
  .blog-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
}

.blog-hero-media { position: relative; overflow: hidden; min-height: 15rem; }
.blog-hero-media img,
.blog-hero-media .pv {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
}
.blog-hero:hover .blog-hero-media img,
.blog-hero:hover .blog-hero-media .pv { transform: scale(1.04); }

.blog-hero-b {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  padding: 2rem 1.8rem;
}
@media (max-width: 640px) { .blog-hero-b { padding: 1.4rem 1.2rem; } }

.blog-hero-k {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .35rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  font-size: .68rem;
  font-weight: 700;
}
.blog-hero-t {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.5;
  color: rgb(var(--ink));
}
.blog-hero:hover .blog-hero-t { color: rgb(var(--brand-text)); }
.blog-hero-d {
  font-size: .85rem;
  line-height: 2;
  color: rgb(var(--dim));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-hero-m {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: .5rem;
  padding-top: .9rem;
  border-top: 1px dashed rgb(var(--line-2));
  font-size: .74rem;
  color: rgb(var(--dim));
}
.blog-hero-m > span { display: inline-flex; align-items: center; gap: .3rem; }
.blog-hero-m img { width: 1.5rem; height: 1.5rem; border-radius: 50%; }
.blog-hero-m .ic { color: rgb(var(--brand)); }
.blog-hero-go {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-inline-start: auto;
  font-weight: 700;
  color: rgb(var(--brand-text));
}
.blog-hero-go .ic { transition: transform .25s var(--ease); }
.blog-hero:hover .blog-hero-go .ic { transform: translateX(-4px); }

/* ── نوار فیلتر دسته‌ها ── */
.blog-bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(var(--line));
}
.blog-chips {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.blog-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .42rem .85rem;
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  color: rgb(var(--ink-2));
  background: rgb(var(--surface));
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.blog-chip:hover { border-color: rgb(var(--brand) / .45); color: rgb(var(--brand-text)); }
.blog-chip i {
  font-style: normal;
  font-size: .68rem;
  font-weight: 700;
  padding: .04rem .34rem;
  border-radius: 999px;
  background: rgb(var(--line-2));
  color: rgb(var(--dim));
}
.blog-chip.is-on { background: rgb(var(--brand)); border-color: rgb(var(--brand)); color: rgb(var(--brand-on)); }
.blog-chip.is-on i { background: rgb(255 255 255 / .25); color: #fff; }

.blog-count {
  font-size: .76rem;
  font-weight: 700;
  color: rgb(var(--dim));
  white-space: nowrap;
}

/* گرید نوشته‌ها */
.blog-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  align-items: stretch;
}

/* ══════════ 33. سربرگ مشترک سکشن‌ها ══════════
   تا همهٔ سکشن‌های صفحهٔ اصلی یک ریتم و یک لحن داشته باشند. */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.sec-head-t { max-width: 42rem; min-width: 0; }

.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .8rem .3rem .55rem;
  border-radius: 999px;
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand-text));
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.sec-kicker .ic { width: 14px; height: 14px; color: rgb(var(--brand)); }

.sec-title {
  margin-top: .85rem;
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: rgb(var(--ink));
  text-wrap: balance;
}
.sec-title em { font-style: normal; color: rgb(var(--brand-text)); }
.sec-desc { margin-top: .7rem; font-size: .88rem; line-height: 2; color: rgb(var(--dim)); }

.sec-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }



/* ══════════════════════════════════════════════════════════════════
   ۲.۳.۰ — سطح‌هایی که تا امروز هیچ استایلی نداشتند
   ⚠️ تمام CSS ووکامرس در inc/woo/class-dg-woo.php غیرفعال است
   (woocommerce-general / -layout / -smallscreen). پس هر مارک‌آپی که
   خودِ ووکامرس چاپ می‌کند و اینجا استایل نگیرد، **خام** رندر می‌شود.
   ══════════════════════════════════════════════════════════════════ */

/* ── امتیاز نظر محصول ───────────────────────────────────────── */
.cm-score { margin-inline-start: auto; display: inline-flex; gap: .1rem; flex: 0 0 auto; }
.cm-score .ic { width: 14px; height: 14px; color: rgb(var(--line)); }
.cm-score .on { color: rgb(var(--gold)); }

.cm-owner {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin-inline-start: .4rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: rgb(11 115 85 / .12);
  color: rgb(11 115 85);
  font-size: .62rem;
  font-weight: 700;
  font-style: normal;
  vertical-align: middle;
}
.cm-owner .ic { width: 11px; height: 11px; }
.dark .cm-owner { background: rgb(52 211 153 / .14); color: rgb(52 211 153); }

/* انتخابگر ستاره — رادیوی خالص CSS.
   ⚠️ رادیوها معکوس (۵→۱) در DOM هستند تا `:checked ~ label` بتواند
   ستاره‌های کوچک‌ترِ بعدی را هم پر کند؛ `row-reverse` ترتیب دیداری را
   به «۱ در ابتدای خط» برمی‌گرداند و در RTL هم درست می‌ماند.
   ⚠️ از p.stars ووکامرس استفاده نشد چون هم CSS و هم JS خودِ افزونه را
   لازم دارد و CSS افزونه اینجا غیرفعال است. */
.cm-rate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1rem;
  padding: .7rem .9rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-sm);
  background: rgb(var(--surface));
}
.cm-rate-l { font-size: .8rem; font-weight: 700; color: rgb(var(--ink-2)); }
.cm-stars {
  --star: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.95-4.7 4.58 1.1 6.47L12 17.44 6.2 20.5l1.1-6.47L2.6 9.45l6.5-.95z'/%3E%3C/svg%3E");
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: .15rem;
}
.cm-stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.cm-stars label {
  width: 1.6rem;
  height: 1.6rem;
  cursor: pointer;
  background: currentColor;
  color: rgb(var(--line));
  transition: color .15s var(--ease), transform .15s var(--ease);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
}
.cm-stars label:hover,
.cm-stars label:hover ~ label,
.cm-stars input:checked ~ label { color: rgb(var(--gold)); }
.cm-stars label:hover { transform: scale(1.12); }
.cm-stars input:focus-visible + label { outline: 2px solid rgb(var(--brand)); outline-offset: 2px; }

.cm-formt { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; color: rgb(var(--ink)); }

/* ستارهٔ خودِ ووکامرس (ابزارک‌ها و افزونه‌ها) — بدون CSS افزونه متن خام بود */
.star-rating {
  position: relative;
  display: inline-block;
  width: 5.4em;
  height: 1em;
  overflow: hidden;
  vertical-align: middle;
  line-height: 1;
  font-size: .85rem;
  direction: ltr;
  color: rgb(var(--gold));
}
.star-rating::before,
.star-rating span::before {
  content: "\2605\2605\2605\2605\2605";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  letter-spacing: .08em;
}
.star-rating::before { color: rgb(var(--line)); }
.star-rating span { position: absolute; top: 0; inset-inline-start: 0; overflow: hidden; padding-top: 1.5em; }
.woocommerce-product-rating { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: rgb(var(--dim)); }
.woocommerce-review-link { color: inherit; }

/* ── جدول‌های ووکامرس روی موبایل ────────────────────────────
   ⚠️ woocommerce-smallscreen.css غیرفعال است، پس جدول‌ها روی گوشی
   اصلاً جمع نمی‌شدند و صفحه افقی اسکرول می‌خورد. */
/* ⚠️ جدول‌های چندستونه (سفارش‌ها، جزئیات سفارش) نباید قاعدهٔ عمومی
   `.dg-woo td { text-align:end }` را بگیرند — آن قاعده برای جدول‌های
   دوستونهٔ «برچسب/مقدار» جمع سبد نوشته شده و اینجا همهٔ ستون‌ها را
   به لبهٔ مخالف می‌چسباند. وزن این سلکتورها عمداً ۰٫۲٫۱ است. */
.woocommerce-orders-table.shop_table th,
.woocommerce-table.shop_table th {
  padding: .75rem .7rem;
  text-align: start;
  font-size: .72rem;
  font-weight: 700;
  color: rgb(var(--dim));
  white-space: nowrap;
}
.woocommerce-orders-table.shop_table td,
.woocommerce-table.shop_table td {
  padding: .85rem .7rem;
  text-align: start;
  font-weight: 500;
  color: rgb(var(--ink-2));
  vertical-align: middle;
}
.woocommerce-orders-table.shop_table tr:last-child td { border-bottom: 0; }
/* `.dg-woo tr + tr td` یک خط چین‌دار بالای هر ردیف می‌گذارد که با
   border-bottom خودِ .shop_table دو خط موازی می‌شد. */
.dg-woo .woocommerce-orders-table tr + tr th,
.dg-woo .woocommerce-orders-table tr + tr td,
.dg-woo .woocommerce-table--order-details tr + tr th,
.dg-woo .woocommerce-table--order-details tr + tr td { border-top: 0; }
.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a { font-weight: 800; color: rgb(var(--ink)); }
.woocommerce-orders-table.shop_table td.woocommerce-orders-table__cell-order-status { font-weight: 700; }
.woocommerce-orders-table.shop_table td.woocommerce-orders-table__cell-order-actions { text-align: end; }

.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-MyAccount-content .woocommerce-button {
  display: inline-flex;
  align-items: center;
  height: 2.1rem;
  padding-inline: .9rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--brand) / .28);
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand-text));
  font-size: .74rem;
  font-weight: 700;
  margin-inline-start: .3rem;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.woocommerce-orders-table__cell-order-actions .button:hover,
.woocommerce-MyAccount-content .woocommerce-button:hover {
  background: rgb(var(--brand));
  border-color: rgb(var(--brand));
  color: rgb(var(--brand-on));
}

@media (max-width: 720px) {
  .shop_table_responsive thead { display: none; }
  .shop_table_responsive tr { display: block; padding: .35rem 0; }
  .shop_table_responsive tr + tr { border-top: 1px solid rgb(var(--line)); }
  .shop_table_responsive td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    padding: .4rem 0;
    text-align: end;
  }
  .shop_table_responsive td::before {
    content: attr(data-title);
    font-size: .72rem;
    font-weight: 700;
    color: rgb(var(--dim));
    flex: 0 0 auto;
  }
  .shop_table_responsive td.woocommerce-orders-table__cell-order-actions { justify-content: flex-end; }
}

/* ── حساب کاربری: زیرصفحه‌ها ────────────────────────────────── */
.woocommerce-MyAccount-content > p:first-child { font-size: .88rem; line-height: 2; color: rgb(var(--ink-2)); }
.woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-MyAccount-content .woocommerce-order-details,
.woocommerce-MyAccount-content .woocommerce-customer-details,
.woocommerce-MyAccount-content form.woocommerce-EditAccountForm,
.woocommerce-MyAccount-content form.edit-account,
.woocommerce-MyAccount-content .woocommerce-orders-table-wrap {
  display: block;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface));
}
.woocommerce-MyAccount-content .addresses { display: grid; gap: 1rem; }
@media (min-width: 720px) { .woocommerce-MyAccount-content .addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgb(var(--line-2));
}
.woocommerce-MyAccount-content .woocommerce-Address-title h2,
.woocommerce-MyAccount-content .woocommerce-Address-title h3 { font-size: .95rem; font-weight: 800; margin: 0; }
.woocommerce-MyAccount-content .woocommerce-Address-title .edit { font-size: .74rem; font-weight: 700; color: rgb(var(--brand-text)); }
.woocommerce-MyAccount-content address { font-style: normal; font-size: .85rem; line-height: 2.1; color: rgb(var(--ink-2)); }

.woocommerce-MyAccount-content fieldset {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border: 0;
  border-top: 1px solid rgb(var(--line));
}
.woocommerce-MyAccount-content legend { font-size: .88rem; font-weight: 800; color: rgb(var(--ink)); padding-inline-end: .6rem; }
.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content button[type="submit"] {
  display: inline-flex;
  align-items: center;
  height: 2.7rem;
  padding-inline: 1.4rem;
  border: 0;
  border-radius: 999px;
  background: rgb(var(--brand));
  color: rgb(var(--brand-on));
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s var(--ease);
}
.woocommerce-MyAccount-content button[type="submit"]:hover { background: rgb(var(--brand-2)); }
.woocommerce-MyAccount-content em { font-size: .72rem; color: rgb(var(--dim)); font-style: normal; }

/* جزئیات سفارش (view-order و صفحهٔ تشکر) */
.woocommerce-order-details__title,
.woocommerce-column__title,
.woocommerce-customer-details h2 { font-size: 1rem; font-weight: 800; margin-bottom: .9rem; color: rgb(var(--ink)); }
.woocommerce-columns { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 720px) { .woocommerce-columns--2 { grid-template-columns: 1fr 1fr; } }
.woocommerce-order-details .order_item .product-name a { font-weight: 700; color: rgb(var(--ink)); }
.woocommerce-order-details tfoot th { text-align: start; font-weight: 600; color: rgb(var(--dim)); border: 0; padding-top: .55rem; }
.woocommerce-order-details tfoot td { text-align: end; font-weight: 700; border: 0; padding-top: .55rem; }
.woocommerce-order-details tfoot tr:last-child th,
.woocommerce-order-details tfoot tr:last-child td { font-size: 1rem; color: rgb(var(--brand-text)); font-weight: 800; }

/* ── صفحهٔ ۴۰۴ ──────────────────────────────────────────────── */
.e4 {
  position: relative;
  display: grid;
  gap: 1.15rem;
  justify-items: center;
  text-align: center;
  padding: 3.5rem 1.5rem 4.5rem;
  overflow: hidden;
}
/* ⛔ ترتیب مهم است: قاعدهٔ عمومی `> *` باید **قبل** از استثناها بیاید،
   وگرنه با وزن ۰٫۱٫۱ روی `position:absolute` هالهٔ پس‌زمینه می‌نشیند و
   هاله تبدیل به یک آیتمِ گریدِ ۵۱۲ پیکسلی می‌شود که وسط صفحه فضای
   خالی می‌سازد (همان تلهٔ کارت بانکی). */
.e4 > * { position: relative; }
.e4 > .e4-glow {
  position: absolute;
  /* ⚠️ `inset-inline-start:50% + translateX(-50%)` در RTL از مرکز خارج
     می‌شود (transform همیشه فیزیکی است). این ترکیب جهت‌آگاه است. */
  inset-inline: 0;
  margin-inline: auto;
  top: 0;
  width: min(32rem, 95%);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(var(--brand) / .15), transparent 62%);
  pointer-events: none;
}
.e4-num {
  font-size: clamp(5.5rem, 20vw, 11rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, rgb(var(--brand)), rgb(var(--brand-2)) 55%, rgb(var(--brand) / .2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.e4-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand-text));
  font-size: .72rem;
  font-weight: 700;
}
.e4-kicker .ic { width: 14px; height: 14px; }
.e4 h1 { font-size: clamp(1.3rem, 3.6vw, 1.85rem); font-weight: 800; text-wrap: balance; }
/* ⚠️ `.e4 > p` ننویس — روی `.e4-num` هم می‌افتاد و عدد غول‌پیکر ۴۰۴ را
   به اندازهٔ متن معمولی کوچک می‌کرد. */
.e4-lead { max-width: 30rem; font-size: .88rem; line-height: 2.05; color: rgb(var(--dim)); }
.e4-search { width: min(30rem, 100%); }
.e4-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .3rem; }
.e4-links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  height: 2.4rem;
  padding-inline: 1rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--line));
  background: rgb(var(--surface));
  font-size: .78rem;
  font-weight: 700;
  color: rgb(var(--ink-2));
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.e4-links a:hover { border-color: rgb(var(--brand) / .45); color: rgb(var(--brand-text)); transform: translateY(-2px); }
.e4-links a .ic { width: 15px; height: 15px; }

/* ══════════════════════════════════════════════════════════════════
   معرفی دیاکوگرافیک (`.ab-`) — ۲.۹.۲
   صحنهٔ تیرهٔ قاب‌دار + پس‌زمینهٔ گرافیکی متحرک (هاله‌های شناور قرمز/نارنجی/بنفش،
   شبکهٔ نقطه‌ای محو با ماسک، حلقه‌های خطی چرخان، پرتو نوری عبوری).
   ⛔ رد شده‌ها: ۲.۹.۰ (مُهر چرخان، قاب کج، نوار تیرهٔ آمار بیرون‌زده) و ۲.۹.۱ (روشن، تصویر خاکستری، «افتضاح»).
   ══════════════════════════════════════════════════════════════════ */
.abx-stage {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 2.25rem 1.25rem 1.25rem;
  border-radius: 2rem;
  background: #0c0b10;
  color: #fff;
}
@media (min-width: 768px) { .abx-stage { padding: 3.5rem 3rem 2rem; border-radius: 2.5rem; } }
@media (min-width: 1280px) { .abx-stage { padding: 4.5rem 4.5rem 2.5rem; } }

/* ── پس‌زمینهٔ متحرک ── */
.abx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.abx-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; will-change: transform; }
.abx-blob.b1 { width: 34rem; height: 34rem; top: -14rem; inset-inline-start: -8rem; background: radial-gradient(circle, #E5232F 0%, transparent 65%); animation: abFloat1 18s ease-in-out infinite alternate; }
.abx-blob.b2 { width: 30rem; height: 30rem; bottom: -16rem; inset-inline-end: -6rem; background: radial-gradient(circle, #7c3aed 0%, transparent 65%); opacity: .6; animation: abFloat2 22s ease-in-out infinite alternate; }
.abx-blob.b3 { width: 20rem; height: 20rem; top: 30%; inset-inline-end: 30%; background: radial-gradient(circle, #f97316 0%, transparent 65%); opacity: .35; animation: abFloat3 26s ease-in-out infinite alternate; }
@keyframes abFloat1 { to { transform: translate(-6rem, 5rem) scale(1.15); } }
@keyframes abFloat2 { to { transform: translate(7rem, -6rem) scale(.9); } }
@keyframes abFloat3 { 0% { transform: translate(0, 0); } 50% { transform: translate(-8rem, 4rem) scale(1.2); } 100% { transform: translate(5rem, -3rem); } }
.abx-dots {
  position: absolute; inset: -2rem;
  background-image: radial-gradient(rgb(255 255 255 / .16) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 25% 40%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 70% at 25% 40%, #000 10%, transparent 70%);
  animation: abDots 30s linear infinite;
}
@keyframes abDots { to { transform: translate(22px, 22px); } }
.abx-rings { position: absolute; width: 42rem; height: 42rem; top: 50%; left: 18%; transform: translate(-50%, -50%); animation: abSpin 60s linear infinite; }
.abx-rings circle { fill: none; stroke: rgb(255 255 255 / .07); stroke-width: 1; }
@keyframes abSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.abx-beam {
  position: absolute; top: -50%; bottom: -50%; width: 9rem; left: -20%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .06), transparent);
  transform: rotate(18deg);
  animation: abBeam 9s ease-in-out infinite;
}
@keyframes abBeam { 0%, 20% { left: -20%; } 70%, 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .abx-blob, .abx-dots, .abx-rings, .abx-beam { animation: none; } }

/* ── محتوا ── */
.abx-in { display: grid; gap: 2.5rem; align-items: center; }
.abx-in > * { min-width: 0; }
@media (min-width: 1024px) { .abx-in { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 4rem; } }

.abx-kick { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .9rem; border: 1px solid rgb(255 255 255 / .14); border-radius: 999px; background: rgb(255 255 255 / .05); font-size: .74rem; font-weight: 600; color: rgb(255 255 255 / .8); }
.abx-kick i { width: .45rem; height: .45rem; border-radius: 50%; background: #FF4D5A; box-shadow: 0 0 0 0 rgb(255 77 90 / .6); animation: abPulse 2s ease-out infinite; }
@keyframes abPulse { to { box-shadow: 0 0 0 8px rgb(255 77 90 / 0); } }
.abx-title { margin-top: 1.1rem; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); font-weight: 900; line-height: 1.45; color: #fff; text-wrap: balance; }
.abx-title em {
  font-style: normal;
  background: linear-gradient(90deg, #FF4D5A, #ff9a4d, #FF4D5A);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: abShine 6s linear infinite;
}
@keyframes abShine { to { background-position: -200% 0; } }
.abx-text { margin-top: 1.1rem; max-width: 46rem; font-size: .9rem; line-height: 2.25; color: rgb(255 255 255 / .68); text-align: justify; }
.abx-act { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; margin-top: 1.8rem; }
.abx-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 3rem; padding-inline: 1.4rem;
  border-radius: 999px;
  background: #E5232F; color: #fff;
  font-size: .85rem; font-weight: 800;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.abx-btn:hover { background: #c41722; transform: translateY(-2px); }
.abx-btn .ic { transition: transform .25s var(--ease); }
.abx-btn:hover .ic { transform: translateX(-4px); }
.abx-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; color: rgb(255 255 255 / .75); }
.abx-link:hover { color: #fff; }

.abx-art { position: relative; width: 100%; max-width: 24rem; justify-self: center; }
.abx-card {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1 / 1;
  border-radius: 1.75rem;
  padding: 2px;
  background: #1a1920;
}
.abx-card::before {
  content: ""; position: absolute; inset: -50%; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 65%, #FF4D5A 80%, #ff9a4d 88%, transparent 100%);
  animation: abBorder 5s linear infinite;
}
@keyframes abBorder { to { transform: rotate(360deg); } }
.abx-card > img, .abx-card-fb {
  display: block; width: 100%; height: 100%;
  border-radius: calc(1.75rem - 2px);
  object-fit: cover;
  background: radial-gradient(circle at 50% 30%, #2a2932, #121118 70%);
}
.abx-card-fb { display: grid; place-content: center; justify-items: center; direction: ltr; }
.abx-card-fb b { font-size: 3.4rem; font-weight: 900; letter-spacing: .06em; line-height: 1; color: #fff; }
.abx-card-fb small { margin-top: .5rem; font-size: .8rem; letter-spacing: .6em; color: rgb(255 255 255 / .5); }
.abx-art:hover .abx-card > img { transform: scale(1.03); }
.abx-card > img { transition: transform .8s var(--ease); }
.abx-since {
  position: absolute; bottom: 1rem; inset-inline-start: 1rem;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgb(12 11 16 / .6); border: 1px solid rgb(255 255 255 / .15);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .72rem; font-weight: 700; color: #fff;
}

.abx-stats {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem;
}
@media (min-width: 768px) { .abx-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin-top: 3.5rem; } }
.abx-stats li {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; gap: .15rem;
  padding: 1.1rem .6rem;
  border: 1px solid rgb(255 255 255 / .09);
  border-radius: 1.2rem;
  background: rgb(255 255 255 / .04);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  text-align: center;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.abx-stats li::after { content: ""; position: absolute; inset-inline: 30%; top: 0; height: 2px; border-radius: 2px; background: #FF4D5A; opacity: 0; transition: opacity .3s var(--ease), inset .3s var(--ease); }
.abx-stats li:hover { border-color: rgb(255 77 90 / .4); background: rgb(255 255 255 / .07); transform: translateY(-3px); }
.abx-stats li:hover::after { opacity: 1; inset-inline: 15%; }
@media (max-width: 767px) { .abx-stats li:last-child { grid-column: 1 / -1; } }
/* ⚠️ قبلاً `.abx-stats span` روی span داخل عدد هم می‌نشست و عدد را ۱۲px و خاکستری می‌کرد (علامت + از عدد بزرگ‌تر می‌شد). */
.abx-stats b { display: inline-flex; align-items: center; gap: .15rem; font-size: clamp(1.55rem, 1.2rem + 1vw, 2.1rem); font-weight: 800; line-height: 1.25; letter-spacing: 0; color: #fff; }
.abx-stats b > span { font: inherit; color: inherit; }
.abx-stats b i { font-style: normal; font-size: .62em; font-weight: 700; line-height: 1; color: #FF6B76; transform: translateY(-.35em); }
.abx-stats li > span { font-size: .8rem; font-weight: 500; color: rgb(255 255 255 / .72); }

/* ══════════════════════════════════════════════════════════════════
   نمونه‌کارها در صفحهٔ اصلی (`.wx-`) — «صحنه + فهرست»
   ══════════════════════════════════════════════════════════════════ */
.wx-head { display: grid; gap: 1.2rem 3rem; align-items: end; margin-bottom: 2.2rem; }
@media (min-width: 900px) { .wx-head { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); } }
.wx-kick { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; color: rgb(var(--dim)); }
.wx-kick .num { display: grid; place-items: center; min-width: 2rem; height: 2rem; padding-inline: .45rem; border-radius: 999px; background: rgb(var(--ink)); color: rgb(var(--bg)); font-size: .74rem; }
.wx-title { margin-top: .8rem; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem); font-weight: 900; line-height: 1.3; color: rgb(var(--ink)); }
.wx-head-e { display: grid; gap: .9rem; justify-items: start; }
.wx-desc { font-size: .88rem; line-height: 2; color: rgb(var(--dim)); }
.wx-all { display: inline-flex; align-items: center; gap: .4rem; padding-bottom: .2rem; border-bottom: 1.5px solid rgb(var(--brand)); font-size: .84rem; font-weight: 800; color: rgb(var(--ink)); }
.wx-all .ic { transition: transform .3s var(--ease); }
.wx-all:hover .ic { transform: translateX(-4px); }

.wx-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.wx-filter button {
  height: 2.3rem; padding-inline: 1rem;
  border: 1px solid rgb(var(--line)); border-radius: 999px;
  background: transparent; color: rgb(var(--ink-2));
  font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.wx-filter button:hover { border-color: rgb(var(--ink) / .4); }
.wx-filter button.is-on { background: rgb(var(--ink)); border-color: rgb(var(--ink)); color: rgb(var(--bg)); }

.wx-body { display: grid; gap: 2rem; align-items: stretch; }
@media (min-width: 1024px) { .wx-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; } }

.wx-stage { display: none; }
@media (min-width: 1024px) {
  .wx-stage {
    position: relative; display: block; overflow: hidden;
    min-height: 32rem;
    border-radius: 2rem;
    background: rgb(var(--surface-2));
  }
}
.wx-slide {
  position: absolute; inset: 0;
  display: block;
  background: var(--wc, #1c1c22);
  opacity: 0; visibility: hidden;
  transform: scale(1.04);
  transition: opacity .6s var(--ease), transform 1.1s var(--ease), visibility 0s .6s;
}
.wx-slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform 1.1s var(--ease), visibility 0s; }
.wx-slide > img { width: 100%; height: 100%; object-fit: cover; }
.wx-cap {
  position: absolute; z-index: 2; inset-inline: 1.1rem; bottom: 1.1rem;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem;
  padding: 1rem 1.2rem;
  border-radius: 1.2rem;
  background: rgb(12 12 16 / .55);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  color: #fff;
  transform: translateY(10px); opacity: 0;
  transition: transform .6s .15s var(--ease), opacity .6s .15s var(--ease);
}
.wx-slide.is-on .wx-cap { transform: none; opacity: 1; }
.wx-cap-t { display: grid; gap: .15rem; min-width: 0; }
.wx-cap-t small { font-size: .72rem; opacity: .7; }
.wx-cap-t b { font-size: 1.05rem; font-weight: 800; line-height: 1.6; }
.wx-cap-s { display: flex; flex-wrap: wrap; gap: .3rem; }
.wx-cap-s i { padding: .15rem .6rem; border-radius: 999px; background: rgb(255 255 255 / .14); font-size: .68rem; font-style: normal; }
.wx-bar { position: absolute; z-index: 3; top: 1.1rem; inset-inline: 1.3rem; height: 2px; border-radius: 2px; background: rgb(255 255 255 / .25); overflow: hidden; }
.wx-bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: right; transform: scaleX(0); }
.wx-stage.is-playing .wx-bar i { animation: wxBar var(--wx-t, 5s) linear forwards; }
.wx[data-autoplay="0"] .wx-bar { display: none; }
@keyframes wxBar { to { transform: scaleX(1); } }

/* تخت پیش‌نمایش وقتی تصویر شاخص نیست */
.wk-plate { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / .16), transparent 60%), var(--wc, #1c1c22); }
.wk-plate-logo { max-width: 46%; max-height: 46%; width: auto !important; height: auto !important; object-fit: contain; filter: drop-shadow(0 20px 30px rgb(0 0 0 / .25)); }
.wk-plate b { font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; color: rgb(255 255 255 / .9); line-height: 1; }

.wx-list { list-style: none; margin: 0; padding: 0; counter-reset: none; align-self: center; }
.wx-item { border-top: 1px solid rgb(var(--line)); }
.wx-item:last-child { border-bottom: 1px solid rgb(var(--line)); }
.wx-item[hidden] { display: none; }
.wx-row { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.05rem .35rem; }
.wx-row::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px;
  background: var(--wc); transform: scaleY(0); transition: transform .35s var(--ease);
}
.wx-n { flex: 0 0 auto; width: 1.8rem; font-size: .76rem; font-weight: 700; color: rgb(var(--dim)); transition: color .25s var(--ease); }
.wx-thumb { position: relative; flex: 0 0 auto; width: 3.6rem; height: 3.6rem; overflow: hidden; border-radius: .8rem; background: var(--wc); }
.wx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wx-thumb .wk-plate b { font-size: 1.3rem; }
@media (min-width: 1024px) { .wx-thumb { display: none; } }
.wx-t { display: grid; gap: .15rem; flex: 1; min-width: 0; }
.wx-t b { font-size: clamp(.98rem, .9rem + .45vw, 1.25rem); font-weight: 800; line-height: 1.6; color: rgb(var(--ink)); transition: transform .35s var(--ease); }
.wx-t small { display: flex; align-items: center; gap: .45rem; font-size: .74rem; color: rgb(var(--dim)); }
.wx-t small i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.wx-go {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid rgb(var(--line)); color: rgb(var(--ink));
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease);
}
.wx-item.is-on .wx-row::before, .wx-row:hover::before { transform: scaleY(1); }
.wx-item.is-on .wx-n { color: rgb(var(--brand-text)); }
@media (min-width: 1024px) {
  .wx-item.is-on .wx-t b { transform: translateX(-.5rem); }
  .wx-item.is-on .wx-go { background: rgb(var(--ink)); border-color: rgb(var(--ink)); color: rgb(var(--bg)); transform: rotate(45deg); }
}

.wx-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 3rem; padding: 1.3rem 1.3rem 1.3rem 1.3rem; padding-inline-start: 1.8rem;
  border: 1px dashed rgb(var(--line)); border-radius: 1.5rem;
}
.wx-cta p { display: grid; gap: .2rem; }
.wx-cta b { font-size: 1.05rem; font-weight: 800; color: rgb(var(--ink)); }
.wx-cta span { font-size: .8rem; color: rgb(var(--dim)); }

/* ══════════ کارت نمونه‌کار (`.wk`) + آرشیو ══════════ */
.wk-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wk[hidden] { display: none; }
.wk-media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 1.5rem;
  background: var(--wc, rgb(var(--surface-2)));
  isolation: isolate;
}
.wk-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.wk-media .wk-plate { transition: transform .8s var(--ease); }
.wk:hover .wk-media > img, .wk:hover .wk-plate { transform: scale(1.05); }
.wk-peek {
  position: absolute; z-index: 3; bottom: .9rem; inset-inline-start: .9rem;
  display: inline-flex; align-items: center; gap: .35rem;
  height: 2.3rem; padding-inline: .95rem;
  border-radius: 999px; background: #fff; color: #111;
  font-size: .74rem; font-weight: 700;
  opacity: 0; transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.wk:hover .wk-peek { opacity: 1; transform: none; }
.wk-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; align-items: baseline; padding: .9rem .3rem 0; }
.wk-title { font-size: 1.02rem; font-weight: 800; line-height: 1.7; }
.wk-title a { color: rgb(var(--ink)); }
.wk-title a:hover { color: rgb(var(--brand-text)); }
.wk-year { font-size: .74rem; font-weight: 700; color: rgb(var(--dim)); }
.wk-sub { grid-column: 1 / -1; display: flex; align-items: center; gap: .45rem; font-size: .76rem; color: rgb(var(--dim)); }
.wk-sub i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.wk-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.wk-fchip {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 2.3rem; padding-inline: 1rem;
  border: 1px solid rgb(var(--line)); border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: rgb(var(--ink-2));
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.wk-fchip i { font-style: normal; font-size: .68rem; opacity: .6; }
.wk-fchip:hover { border-color: rgb(var(--ink) / .4); }
.wk-fchip.is-on { background: rgb(var(--ink)); border-color: rgb(var(--ink)); color: rgb(var(--bg)); }

.wka-head { padding-block: 2rem 2.2rem; }
.wka-head h1 { margin-top: .8rem; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); font-weight: 900; color: rgb(var(--ink)); }
.wka-count { margin-top: .5rem; font-size: .76rem; font-weight: 700; color: rgb(var(--ink-2)); }
.wka-head p { margin-top: .6rem; max-width: 40rem; font-size: .9rem; line-height: 2; color: rgb(var(--dim)); }

/* ══════════ تک‌نمونه‌کار (`.wks-`) ══════════ */
.wks-head { display: grid; gap: 2rem 4rem; padding-block: 2rem 2.5rem; }
@media (min-width: 1024px) { .wks-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; } }
.wks-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.wks-title { margin-top: 1rem; font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); font-weight: 900; line-height: 1.3; color: rgb(var(--ink)); text-wrap: balance; }
.wks-lead { margin-top: .9rem; max-width: 36rem; font-size: 1rem; line-height: 2; color: rgb(var(--dim)); }
.wks-go { margin-top: 1.6rem; }
.wks-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin: 0; }
.wks-meta > div { padding: .8rem 0; border-top: 1px solid rgb(var(--line)); }
.wks-meta dt { font-size: .7rem; color: rgb(var(--dim)); }
.wks-meta dd { display: flex; flex-wrap: wrap; gap: .3rem; margin: .25rem 0 0; font-size: .9rem; font-weight: 800; color: rgb(var(--ink)); }
.wks-meta dd i { padding: .1rem .55rem; border-radius: 999px; background: rgb(var(--surface-2)); font-size: .72rem; font-style: normal; font-weight: 700; }
.wks-cover { position: relative; overflow: hidden; margin: 0; aspect-ratio: 16 / 8; border-radius: 2rem; background: var(--wc); }
.wks-cover > img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .wks-cover { aspect-ratio: 4 / 3; border-radius: 1.4rem; } }
.wks-main { display: grid; gap: 2.5rem; margin-top: 3.5rem; }
@media (min-width: 1024px) { .wks-main { grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: 5rem; align-items: start; } }
.wks-body { font-size: 1rem; line-height: 2.15; color: rgb(var(--ink-2)); }
.wks-body > * + * { margin-top: 1.2rem; }
.wks-body img { border-radius: 1.2rem; }
.wks-results { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
@media (min-width: 1024px) { .wks-results { position: sticky; top: calc(var(--header-h, 72px) + 1.5rem); } }
.wks-results li { padding: 1.1rem 1.3rem; border-radius: 1.2rem; background: var(--wc); color: #fff; font-size: 1.05rem; font-weight: 800; }
.wks-results li:nth-child(even) { background: rgb(var(--surface-2)); color: rgb(var(--ink)); }
.wks-gallery { display: grid; gap: 1rem; margin-top: 3.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wks-gallery figure { margin: 0; overflow: hidden; border-radius: 1.4rem; background: rgb(var(--surface-2)); }
.wks-gallery figure:nth-child(3n+1) { grid-column: 1 / -1; }
.wks-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wks-quote { position: relative; max-width: 50rem; margin: 4.5rem auto 0; padding-top: 3.2rem; text-align: center; }
.wks-quote::before { content: "”"; position: absolute; top: -1rem; inset-inline: 0; font-size: 6rem; line-height: 1; color: var(--wc); }
.wks-quote p { font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); font-weight: 800; line-height: 1.9; color: rgb(var(--ink)); }
.wks-quote cite { display: block; margin-top: 1rem; font-size: .82rem; font-style: normal; color: rgb(var(--dim)); }
.wks-more { margin-top: 5rem; }
.wks-more-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.wks-more-h h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 900; color: rgb(var(--ink)); }
.wks-cta { margin-top: 4rem; }

/* راهنمای مدیر روی جای خالی تصویر هیرو */
.hero-art-empty a {
  font-size: .74rem;
  font-weight: 600;
  color: rgb(var(--brand-text));
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ══════════════════════════════════════════════════════════════════
   توضیحات پایین صفحهٔ دسته‌ها — `.tb` (از ویرایشگر وردپرس)
   ══════════════════════════════════════════════════════════════════ */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tb {
  position: relative; margin-top: 3.5rem; padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid rgb(var(--line)); border-radius: var(--r-xl, 1.5rem);
  background: rgb(var(--surface));
}
@media (min-width: 768px) { .tb { padding: 2.5rem 3rem 2rem; } }
.tb-body { font-size: .95rem; line-height: 2.1; color: rgb(var(--ink-2)); overflow-wrap: anywhere; }
.tb.is-clamped .tb-body {
  max-height: 22rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
          mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.tb-body > * + * { margin-top: 1rem; }
.tb-body > :first-child { margin-top: 0; }
.tb-body h1, .tb-body h2, .tb-body h3, .tb-body h4 { color: rgb(var(--ink)); font-weight: 800; line-height: 1.6; }
.tb-body h1, .tb-body h2 { font-size: 1.3rem; margin-top: 2rem; }
.tb-body h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.tb-body h4 { font-size: 1rem; margin-top: 1.4rem; }
.tb-body strong, .tb-body b { color: rgb(var(--ink)); }
.tb-body a:not([class]) { color: rgb(var(--brand-text)); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.tb-body ul, .tb-body ol { padding-inline-start: 1.4rem; }
.tb-body ul { list-style: disc; } .tb-body ol { list-style: decimal; }
.tb-body li + li { margin-top: .35rem; }
.tb-body li::marker { color: rgb(var(--brand)); }
.tb-body img { max-width: 100%; height: auto; border-radius: var(--r-lg, 1rem); }
.tb-body figure, .tb-body .wp-caption { max-width: 100% !important; }
.tb-body figcaption, .tb-body .wp-caption-text { margin-top: .5rem; font-size: .8rem; color: rgb(var(--dim)); text-align: center; }
.tb-body .aligncenter { margin-inline: auto; display: block; }
@media (min-width: 640px) {
  .tb-body .alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 45%; }
  .tb-body .alignleft  { float: left;  margin: .3rem 1.5rem 1rem 0; max-width: 45%; }
}
.tb-body::after { content: ""; display: table; clear: both; }
.tb-body blockquote { padding: .8rem 1.2rem; border-inline-start: 3px solid rgb(var(--brand)); background: rgb(var(--surface-2)); border-radius: var(--r-sm); }
.tb-body table { width: 100%; border-collapse: collapse; font-size: .88rem; display: block; overflow-x: auto; }
.tb-body th, .tb-body td { padding: .55rem .8rem; border: 1px solid rgb(var(--line)); }
.tb-body iframe, .tb-body video { max-width: 100%; border-radius: var(--r-lg, 1rem); }
.tb-more {
  display: flex; align-items: center; gap: .4rem; margin: .75rem auto 0;
  height: 2.5rem; padding-inline: 1.2rem; border-radius: 999px;
  background: rgb(var(--surface-2)); color: rgb(var(--ink)); font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: background-color .25s var(--ease);
}
.tb-more:hover { background: rgb(var(--ink) / .1); }
.tb-more[hidden] { display: none; }
.tb.is-open .tb-more .ic { transform: rotate(180deg); }


/* ══════════ خرید فوری — دکمهٔ ثانویهٔ «افزودن به سبد» ══════════ */
.ab-add {
  width: 3rem; height: 3rem; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: rgb(255 255 255 / .1); color: #fff; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.ab-add:hover { background: rgb(255 255 255 / .2); }
.ab-fly .ab-add {
  width: 2.5rem; height: 2.5rem; border-radius: var(--r);
  background: rgb(var(--surface-2)); color: rgb(var(--ink-2));
}
.ab-fly .ab-add:hover { background: rgb(var(--ink) / .1); color: rgb(var(--ink)); }
.ab-add.added { background: rgb(var(--ok)); color: #fff; }

/* ورود پیامکی درون صفحهٔ تسویه */
.co-login { display: grid; place-items: center; padding-block: 1rem 2rem; }
.co-login .otp-card { margin-inline: auto; }

/* هیرو موبایل/تبلت — تصویر کل صفحهٔ اول را نگیرد تا تیتر و جستجو دیده شوند */
@media (max-width: 1023px) {
  .hero-art img { width: auto; max-width: min(100%, 24rem); max-height: 32vh; margin-inline: auto; object-fit: contain; }
  .hero-art-empty { max-height: 32vh; }
}
@media (max-width: 639px) {
  .home-hero-grid {
    gap: 1.5rem;
    padding-block: 1.5rem 2.5rem;
  }
  .hero-copy { text-align: center; }
  .hero-badge { margin-inline: auto; }
  .hero-title {
    margin-top: 1rem;
    margin-inline: auto;
    max-width: 27rem;
    font-size: clamp(1.75rem, 7vw, 2rem);
    line-height: 1.45;
  }
  .hero-lead {
    margin-top: .75rem;
    margin-inline: auto;
    max-width: 29rem;
    font-size: .9rem;
    line-height: 1.95;
  }
  .hero-search {
    width: 100%;
    height: 3.35rem;
    margin-top: 1.35rem;
    margin-inline: auto;
    gap: .55rem;
    padding: 0 .95rem 0 .28rem;
  }
  .hero-search .btn {
    min-width: 4.6rem;
    margin-block: .25rem;
    padding-inline: 1rem;
  }
  .hero-chips { justify-content: center; margin-top: .85rem; }
  .hero-stats { margin: 1.75rem auto 0; }
  .hero-art img {
    max-width: min(78vw, 18rem);
    max-height: 11rem;
  }
  .hero-art-empty {
    max-width: 18rem;
    max-height: 11rem;
    margin-inline: auto;
  }
}

/* برگه‌های عادی، بدون ستون خالی و در تمام عرض ظرف سایت. */
.dg-page-content { width: 100%; max-width: none; }



/* ── نوار ثابت پرداخت سبد (موبایل) ── */
.cart-fly { display: none; }
@media (max-width: 1023px) {
  .cart-fly {
    position: fixed; inset-inline: .75rem; bottom: calc(var(--mnav-h, 0px) + .6rem); z-index: 54;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .55rem .55rem .55rem 1rem; padding-inline-start: 1rem;
    border: 1px solid rgb(var(--line)); border-radius: var(--r-lg, 1rem);
    background: rgb(var(--surface) / .94);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 14px 40px -20px rgb(var(--shadow) / .6);
  }
  .cart-fly-t { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
  .cart-fly-t small { font-size: .7rem; color: rgb(var(--dim)); }
  .cart-fly-t b { font-size: 1.05rem; font-weight: 800; color: rgb(var(--ink)); white-space: nowrap; }
  .woocommerce-cart main { padding-bottom: 5rem; }
}


/* دسکتاپ: نوار خدمات بالای هدر با اسکرول می‌رود و فقط هدر اصلی + منو می‌چسبد (بدون پرش ارتفاع) */
@media (min-width: 1024px) {
  .site-header.sticky:has(> .topbar) { top: -37px; }
  .admin-bar .site-header.sticky:has(> .topbar) { top: -5px; }
}


/* ══════════════════════════════════════════════════════════════════
   مراحل خرید — `.stp` (سبد، تسویه)
   ══════════════════════════════════════════════════════════════════ */
.stp { display: flex; align-items: center; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.stp-i { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: rgb(var(--dim)); white-space: nowrap; }
.stp-in { display: flex; align-items: center; gap: .45rem; color: inherit; font: inherit; }
a.stp-in { cursor: pointer; transition: color .18s var(--ease); }
a.stp-in:hover { color: rgb(var(--brand-text)); }
a.stp-in:hover .stp-n { border-color: rgb(var(--brand) / .5); }
.stp-n {
  display: grid; place-items: center; width: 1.65rem; height: 1.65rem; flex: none; border-radius: 50%;
  border: 1.5px solid rgb(var(--line)); font-size: .72rem; font-weight: 700; line-height: 1; color: rgb(var(--dim));
}
.stp-n .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.stp-i.is-now { color: rgb(var(--ink)); font-weight: 700; }
.stp-i.is-now .stp-n { background: rgb(var(--brand)); border-color: rgb(var(--brand)); color: #fff; }
.stp-i.is-done { color: rgb(var(--ink-2)); }
.stp-i.is-done .stp-n { background: rgb(var(--ok) / .14); border-color: transparent; color: rgb(var(--ok)); }
.stp-line { width: 2.25rem; height: 2px; flex: none; border-radius: 2px; background: rgb(var(--line)); }
.stp-line.is-done { background: rgb(var(--ok) / .55); }
.woocommerce-cart .stp { margin-bottom: 1.4rem; }
@media (max-width: 479px) {
  .stp { gap: .4rem; }
  .stp-line { width: 1rem; }
  .stp-i:not(.is-now) .stp-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ══════════════════════════════════════════════════════════════════
   تسویه‌حساب — `.ck` (مینیمال، کل صورتحساب در یک نما)
   ══════════════════════════════════════════════════════════════════ */
.ck-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.25rem; }
.ck-title { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.4; color: rgb(var(--ink)); }

.ck { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 1024px) {
  .ck { grid-template-columns: minmax(0, 1fr) 24.5rem; gap: 1.25rem; }
  .ck-side { position: sticky; top: calc(var(--header-h, 72px) + 3.5rem); }
}
.ck > .woocommerce-NoticeGroup { grid-column: 1 / -1; }

.ck-card { padding: 1.25rem; border: 1px solid rgb(var(--line)); border-radius: var(--r-lg, 1rem); background: rgb(var(--surface)); }
@media (min-width: 768px) { .ck-card { padding: 1.5rem; } }
.ck-h { margin: 0 0 .9rem; font-size: .95rem; font-weight: 800; line-height: 1.5; color: rgb(var(--ink)); }
.ck-h-pay { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid rgb(var(--line)); }

/* فیلدها — یک شبکهٔ یکسان: موبایل ۱، تبلت ۲، دسکتاپ ۳ ستون */
.ck .ck-fields { display: grid; gap: .8rem; }
@media (min-width: 640px) { .ck .ck-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .ck .ck-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ck .ck-fields .form-row { float: none; width: auto; margin: 0; padding: 0; }
.ck .ck-fields label { display: flex; align-items: baseline; gap: .25rem; margin: 0 0 .35rem; font-size: .75rem; font-weight: 600; color: rgb(var(--ink-2)); }
.ck .ck-fields label .required { color: rgb(var(--brand)); text-decoration: none; border: 0; }
.ck .ck-fields label .optional { font-size: .68rem; font-weight: 400; color: rgb(var(--dim)); }
.ck .ck-fields .woocommerce-input-wrapper { display: block; }
.ck .ck-fields input.input-text,
.ck .ck-fields select {
  width: 100%; height: 2.85rem; margin: 0; padding: 0 .9rem;
  border: 1px solid transparent; border-radius: var(--r-sm, .6rem);
  background: rgb(var(--surface-2)); color: rgb(var(--ink));
  font: inherit; font-size: .85rem; font-weight: 500; box-shadow: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ck .ck-fields input.input-text:hover { border-color: rgb(var(--line)); }
.ck .ck-fields input.input-text:focus {
  outline: none; border-color: rgb(var(--brand)); background: rgb(var(--surface));
  box-shadow: 0 0 0 3px rgb(var(--brand) / .12);
}
.ck .ck-fields input[dir="ltr"] { text-align: left; }
.ck .ck-fields input[dir="ltr"]:placeholder-shown { text-align: right; }
.ck .ck-fields input::placeholder { color: rgb(var(--dim)); opacity: .8; }
.ck .ck-fields .woocommerce-invalid input.input-text { border-color: rgb(var(--err)); background: rgb(var(--err) / .05); }
.ck .woocommerce-account-fields { margin-top: .8rem; font-size: .8rem; }

/* درگاه‌ها — کاشی قابل انتخاب */
.ck-gates { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
@media (min-width: 640px) { .ck-gates { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); } }
.ck-gate { position: relative; margin: 0; }
.ck-gate > input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ck-gate > label {
  display: flex; align-items: center; gap: .75rem; min-height: 3.6rem; margin: 0; padding: .55rem .9rem .55rem .6rem;
  padding-inline: .6rem .9rem;
  border: 1.5px solid rgb(var(--line)); border-radius: var(--r, .8rem); background: rgb(var(--surface));
  cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.ck-gate:hover > label { border-color: rgb(var(--ink) / .25); }
.ck-gate-logo { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; flex: none; border-radius: .6rem; background: rgb(var(--surface-2)); color: rgb(var(--ink-2)); overflow: hidden; }
.ck-gate-logo img { max-width: 1.9rem; max-height: 1.9rem; width: auto; height: auto; margin: 0 !important; float: none !important; }
.ck-gate-logo .ic { width: 20px; height: 20px; }
.ck-gate-t { flex: 1; min-width: 0; font-size: .85rem; font-weight: 700; color: rgb(var(--ink)); }
.ck-gate-t img { display: none; }
.ck-gate-dot { width: 1.15rem; height: 1.15rem; flex: none; border-radius: 50%; border: 2px solid rgb(var(--line)); transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.ck-gate > input:checked + label { border-color: rgb(var(--brand)); background: rgb(var(--brand) / .05); }
.ck-gate > input:checked + label .ck-gate-dot { border-color: rgb(var(--brand)); background: rgb(var(--brand)); box-shadow: inset 0 0 0 3px rgb(var(--surface)); }
.ck-gate > input:focus-visible + label { box-shadow: 0 0 0 3px rgb(var(--brand) / .2); }
.ck-gate .payment_box { position: relative; z-index: 2; margin-top: .5rem; padding: .75rem .9rem; border-radius: var(--r-sm, .6rem); background: rgb(var(--surface-2)); font-size: .78rem; line-height: 1.9; color: rgb(var(--ink-2)); }
.ck-nogate { padding: .9rem 1rem; border: 1px dashed rgb(var(--line)); border-radius: var(--r, .8rem); font-size: .82rem; color: rgb(var(--dim)); }

/* خلاصهٔ سفارش */
.ck-sum-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.ck-sum-h .ck-h { margin: 0; }
.ck-count { padding: .2rem .65rem; border-radius: 999px; background: rgb(var(--surface-2)); font-size: .72rem; font-weight: 600; color: rgb(var(--ink-2)); }

.ck-items { list-style: none; margin: 0; padding: 0; max-height: 15rem; overflow-y: auto; scrollbar-width: thin; }
.ck-item { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .6rem 0; }
.ck-item + .ck-item { border-top: 1px dashed rgb(var(--line)); }
.ck-item-media { display: block; width: 3rem; height: 3rem; border-radius: .65rem; overflow: hidden; background: rgb(var(--surface-2)); }
.ck-item-media > *, .ck-item-media img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; border-radius: 0; }
.ck-item-t { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ck-item-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; font-weight: 700; line-height: 1.6; color: rgb(var(--ink)); }
.ck-item-t small { font-size: .68rem; font-weight: 600; color: rgb(var(--dim)); letter-spacing: .02em; }
.ck-item-p { font-size: .85rem; font-weight: 800; color: rgb(var(--ink)); white-space: nowrap; }
.ck-sum .price .woocommerce-Price-currencySymbol { margin-inline-start: .2rem; font-size: .68rem; font-weight: 500; color: rgb(var(--dim)); }

/* کد تخفیف */
.ck-coupon {
  display: flex; align-items: center; gap: .5rem; height: 2.75rem; margin-top: .75rem; padding-inline: .8rem .3rem;
  border: 1px dashed rgb(var(--line)); border-radius: var(--r-sm, .6rem);
  transition: border-color .2s var(--ease);
}
.ck-coupon:focus-within { border-style: solid; border-color: rgb(var(--brand)); }
.ck-coupon-ic { width: 19px; height: 19px; flex: none; fill: none; stroke: rgb(var(--dim)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ck-coupon input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; outline: 0; font: inherit; font-size: .82rem; font-weight: 600; color: rgb(var(--ink)); text-align: left; }
.ck-coupon input:placeholder-shown { text-align: right; }
.ck-coupon input::placeholder { color: rgb(var(--dim)); font-weight: 500; }
.ck-coupon button {
  height: 2.1rem; padding-inline: .95rem; border-radius: calc(var(--r-sm, .6rem) - 2px);
  background: rgb(var(--surface-2)); color: rgb(var(--ink)); font-size: .75rem; font-weight: 700; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.ck-coupon button:hover { background: rgb(var(--ink)); color: rgb(var(--bg)); }
.ck-coupon button.is-busy { opacity: .55; pointer-events: none; }
.ck-coupon-msg { margin: .4rem 0 0; font-size: .72rem; font-weight: 600; }
.ck-coupon-msg.is-err { color: rgb(var(--err)); }
.ck-coupon-msg.is-ok { color: rgb(var(--ok)); }

/* جمع */
.ck-totals { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid rgb(var(--line)); }
.ck-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: .8rem; }
.ck-row + .ck-row { margin-top: .45rem; }
.ck-row dt { color: rgb(var(--dim)); }
.ck-row dd { margin: 0; font-weight: 600; color: rgb(var(--ink)); }
.ck-row.is-off dd { color: rgb(var(--ok)); }
.ck-row .woocommerce-remove-coupon { margin-inline-start: .4rem; font-size: .7rem; font-weight: 600; color: rgb(var(--err)); }
.ck-total { margin-top: .7rem !important; }
.ck-total dt { font-size: .85rem; font-weight: 700; color: rgb(var(--ink)); }
.ck-total dd { font-size: 1.3rem; font-weight: 800; }
.ck-total .woocommerce-Price-currencySymbol { font-size: .72rem; }

/* پرداخت */
.ck-place { margin-top: 1rem; }
.ck-place .woocommerce-terms-and-conditions-wrapper { margin-bottom: .75rem; font-size: .72rem; line-height: 1.9; color: rgb(var(--dim)); }
.ck-place .woocommerce-terms-and-conditions-wrapper label { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .74rem; font-weight: 500; color: rgb(var(--ink-2)); }
.ck-place input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: rgb(var(--brand)); }
.ck-place .required { color: rgb(var(--brand)); text-decoration: none; }
.ck .ck-btn,
.dg-woo .ck #place_order {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 3.1rem; margin: 0;
  border: 0; border-radius: var(--r-sm, .6rem); background: rgb(var(--brand)); color: #fff;
  font: inherit; font-size: .92rem; font-weight: 800; cursor: pointer; transition: background-color .2s var(--ease);
}
.ck .ck-btn:hover, .dg-woo .ck #place_order:hover { background: rgb(var(--brand-2)); }
.ck-safe { display: flex; align-items: center; justify-content: center; gap: .35rem; margin: .65rem 0 0; font-size: .7rem; color: rgb(var(--dim)); }
.ck-safe .ic { width: 13px; height: 13px; }


/* ══════════════════════════════════════════════════════════════════
   ثبت سفارش — به‌جای لایهٔ طوسی blockUI، فقط دکمه حالت «در حال پردازش» می‌گیرد
   ══════════════════════════════════════════════════════════════════ */
.woocommerce-checkout .blockUI.blockOverlay { background: transparent !important; opacity: 1 !important; cursor: progress !important; }
.woocommerce-checkout .blockUI.blockOverlay::before, .woocommerce-checkout .blockUI.blockMsg { display: none !important; }
.ck.processing .ck-btn,
.ck .ck-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.ck.processing .ck-btn::after,
.ck .ck-btn.is-busy::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 1.3rem; height: 1.3rem;
  border: 2.5px solid rgb(255 255 255 / .35); border-top-color: #fff; border-radius: 50%;
  animation: dg-spin .7s linear infinite;
}
.ck.processing .ck-items, .ck.processing .ck-fields, .ck.processing .ck-gates { opacity: .7; transition: opacity .2s var(--ease); }
.ck > .woocommerce-NoticeGroup .woocommerce-error,
.ck > .woocommerce-NoticeGroup [role="alert"] { margin: 0; }

/* ══════════════════════════════════════════════════════════════════
   تشکر از خرید — `.tk`
   ══════════════════════════════════════════════════════════════════ */
.tk { max-width: 50rem; margin: 0 auto; display: grid; gap: 1rem; }

.tk-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 2.5rem 1.25rem 1.5rem; border: 1px solid rgb(var(--line)); border-radius: var(--r-xl, 1.5rem);
  background: rgb(var(--surface));
  --tone: var(--ok);
}
.tk-hero.is-wait { --tone: 217 119 6; }
.tk-hero.is-fail { --tone: var(--err); }
.tk-hero::before {
  content: ""; position: absolute; inset-inline: 0; top: -9rem; height: 16rem; margin-inline: auto; width: 26rem; max-width: 100%;
  background: radial-gradient(closest-side, rgb(var(--tone) / .16), transparent); pointer-events: none;
}
@media (min-width: 768px) { .tk-hero { padding: 3rem 2.5rem 1.75rem; } }

.tk-badge { position: relative; display: block; width: 4.5rem; height: 4.5rem; margin: 0 auto 1.1rem; }
.tk-mark { position: absolute; inset: 0; z-index: 1; display: block; width: 100% !important; height: 100% !important; margin: 0 !important; overflow: visible; }
.tk-hero > br, .tk-hero > p:empty, .tk-badge br, .tk-badge p { display: none !important; }
.tk-mark-c { fill: rgb(var(--tone)); stroke: none; transform-origin: 50% 50%; animation: tk-pop .6s cubic-bezier(.2, 1.5, .4, 1) both; }
.tk-mark-p {
  fill: none; stroke: #fff; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: tk-draw .45s cubic-bezier(.65, 0, .35, 1) .45s forwards;
}
.tk-badge::before {
  content: ""; position: absolute; inset: -.6rem; border-radius: 50%; background: rgb(var(--tone) / .14);
  animation: tk-halo 2.4s ease-in-out 1s infinite;
}
.tk-burst { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgb(var(--tone)); opacity: 0; animation: tk-ring .9s cubic-bezier(.2, .7, .3, 1) .35s; }
@keyframes tk-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes tk-draw { to { stroke-dashoffset: 0; } }
@keyframes tk-ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes tk-halo { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .55; } }
.tk-title { animation: tk-up .6s var(--ease) .55s both; }
.tk-lead { animation: tk-up .6s var(--ease) .68s both; }
.tk-receipt { animation: tk-up .6s var(--ease) .8s both; }
@keyframes tk-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tk-confetti { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.tk-note { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; border: 1px solid rgb(var(--line)); border-radius: var(--r, .8rem); background: rgb(var(--surface)); font-size: .8rem; line-height: 2; color: rgb(var(--ink-2)); }
.tk-note > .ic { width: 17px; height: 17px; flex: none; margin-top: .3rem; color: rgb(var(--brand)); }
.tk-note p { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .tk-mark-c, .tk-title, .tk-lead, .tk-receipt, .tk-badge::before, .tk-burst { animation: none; }
  .tk-mark-p { animation: none; stroke-dashoffset: 0; }
  .tk-confetti { display: none; }
}

.tk-title { position: relative; margin: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; line-height: 1.5; color: rgb(var(--ink)); }
.tk-lead { position: relative; max-width: 30rem; margin: .5rem auto 0; font-size: .88rem; line-height: 2; color: rgb(var(--ink-2)); }

.tk-receipt {
  position: relative; list-style: none; margin: 1.6rem 0 0; padding: .9rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 0;
  border-top: 1px dashed rgb(var(--line));
}
.tk-receipt li { display: flex; align-items: baseline; gap: .4rem; padding-inline: 1rem; font-size: .8rem; }
.tk-receipt li + li { border-inline-start: 1px solid rgb(var(--line)); }
.tk-receipt span { color: rgb(var(--dim)); }
.tk-receipt b { font-weight: 700; color: rgb(var(--ink)); }
.tk-receipt .woocommerce-Price-currencySymbol { margin-inline-start: .15rem; font-size: .7rem; font-weight: 500; color: rgb(var(--dim)); }
@media (max-width: 559px) { .tk-receipt li { padding-inline: .7rem; } .tk-receipt li:nth-child(3) { border-inline-start: 0; } }

/* کارت و جدول */
.tk-card { padding: 1.1rem 1.25rem; border: 1px solid rgb(var(--line)); border-radius: var(--r-lg, 1rem); background: rgb(var(--surface)); }
@media (min-width: 768px) { .tk-card { padding: 1.25rem 1.5rem; } }
.tk-card-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.tk-card-h h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .95rem; font-weight: 800; color: rgb(var(--ink)); }
.tk-chip { display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding-inline: .35rem; border-radius: 999px; background: rgb(var(--brand) / .12); color: rgb(var(--brand-text)); font-size: .72rem; font-weight: 700; }
.tk-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 600; color: rgb(var(--dim)); transition: color .2s var(--ease); }
.tk-link:hover { color: rgb(var(--brand-text)); }
.tk-link .ic { width: 14px; height: 14px; }

.tk-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.tk-table thead th { padding: .6rem .5rem; border-bottom: 1px solid rgb(var(--line)); font-size: .7rem; font-weight: 600; color: rgb(var(--dim)); text-align: start; white-space: nowrap; }
.tk-table tbody td { padding: .75rem .5rem; vertical-align: middle; color: rgb(var(--ink-2)); }
.tk-table tbody tr + tr td { border-top: 1px dashed rgb(var(--line)); }
.tk-table tbody tr { animation: tk-row .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + .2s); }
@keyframes tk-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tk-table th:first-child, .tk-table td:first-child { padding-inline-start: 0; }
.tk-table th:last-child, .tk-table td:last-child { padding-inline-end: 0; text-align: end; }

/* ⚠️ td را flex نکن — محتوا داخل div.tk-file چیده می‌شود */
.tk-file { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.tk-td { min-width: 12rem; }
.tk-thumb .pv-mini { display: grid; place-items: center; border-radius: 0; }
.tk-thumb { display: block; width: 2.9rem; height: 2.9rem; flex: none; border-radius: .65rem; overflow: hidden; background: rgb(var(--surface-2)); }
.tk-thumb > *, .tk-thumb img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.tk-file-t { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.tk-file-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; font-weight: 700; color: rgb(var(--ink)); }
.tk-file-t small { display: flex; align-items: center; gap: .4rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .7rem; color: rgb(var(--dim)); }
.tk-file-t small i { font-style: normal; padding: .05rem .4rem; border-radius: .35rem; background: rgb(var(--surface-2)); font-size: .64rem; font-weight: 700; color: rgb(var(--ink-2)); letter-spacing: .03em; }
.tk-price { font-weight: 700; color: rgb(var(--ink)); white-space: nowrap; }

.tk-dl {
  display: inline-flex; align-items: center; gap: .4rem; height: 2.35rem; padding-inline: .95rem;
  border-radius: var(--r-sm, .6rem); background: rgb(var(--brand)); color: #fff;
  font-size: .78rem; font-weight: 700; white-space: nowrap; transition: background-color .2s var(--ease);
}
.tk-dl:hover { background: rgb(var(--brand-2)); }
.tk-dl .ic { width: 16px; height: 16px; }

@media (max-width: 639px) {
  .tk-table thead { display: none; }
  .tk-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: .8rem 0; }
  .tk-table tbody tr + tr { border-top: 1px dashed rgb(var(--line)); }
  .tk-table tbody tr + tr td { border-top: 0; }
  .tk-table tbody td { padding: 0 !important; text-align: start !important; }
  .tk-table td.tk-td { grid-column: 1 / -1; }
  .tk-table td[data-label] { display: flex; gap: .35rem; font-size: .74rem; }
  .tk-table td[data-label]::before { content: attr(data-label) ":"; color: rgb(var(--dim)); }
  .tk-table td.tk-get { grid-column: 1 / -1; }
  .tk-table .tk-dl { width: 100%; justify-content: center; }
  .tk-table.is-items tbody tr { grid-template-columns: 1fr auto; align-items: center; }
  .tk-table.is-items td.tk-td { grid-column: auto; }
}

/* مزایا — یک ردیف ساده */
.tk-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; }
.tk-perks li { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: rgb(var(--dim)); }
.tk-perks .ic { width: 15px; height: 15px; color: rgb(var(--ink-2)); }

/* دکمه‌ها — هم‌ارتفاع و تخت */
.tk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .25rem; }
.tk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 2.85rem; padding-inline: 1.25rem;
  border: 1px solid rgb(var(--line)); border-radius: var(--r-sm, .6rem); background: rgb(var(--surface));
  font-size: .84rem; font-weight: 700; color: rgb(var(--ink)); white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.tk-btn:hover { border-color: rgb(var(--ink) / .3); }
.tk-btn .ic { width: 16px; height: 16px; }
.tk-btn.is-main { border-color: rgb(var(--ink)); background: rgb(var(--ink)); color: rgb(var(--bg)); }
.tk-btn.is-main:hover { border-color: rgb(var(--brand)); background: rgb(var(--brand)); color: #fff; }
@media (max-width: 479px) { .tk-actions { display: grid; } .tk-btn { width: 100%; } }

/* ══════════════════════════════════════════════════════════════════
   حساب کاربری — `.ac-` (سفارش‌ها، جزئیات سفارش، دانلودها، پروفایل)
   ══════════════════════════════════════════════════════════════════ */

/* منوی فعال — واضح در لایت و دارک */
.acc-list a { position: relative; }
.acc-list a .ic:first-child { width: 17px; height: 17px; flex: none; }
.acc-list .is-active > a,
.acc-list a[aria-current="page"] { background: rgb(var(--brand) / .1); color: rgb(var(--ink)); font-weight: 800; }
.dark .acc-list .is-active > a,
.dark .acc-list a[aria-current="page"] { background: rgb(var(--brand) / .17); }
.acc-list .is-active > a::after,
.acc-list a[aria-current="page"]::after {
  content: ""; position: absolute; inset-block: .55rem; inset-inline-start: -.5rem; width: 3px; border-radius: 3px;
  background: rgb(var(--brand));
}
.acc-list .is-active > a .ic:first-child,
.acc-list a[aria-current="page"] .ic:first-child { color: rgb(var(--brand)); }
.acc-list .is-active > a .acc-arrow { opacity: .7; }
.acc-list .acc-customer-logout a { color: rgb(var(--dim)); }
.acc-list .acc-customer-logout a:hover { background: rgb(var(--err) / .08); color: rgb(var(--err)); }

/* سربرگ هر بخش */
.ac-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.ac-title { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.5; color: rgb(var(--ink)); }
.ac-sub { margin: .15rem 0 0; font-size: .8rem; color: rgb(var(--dim)); }
.ac-back { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .35rem; font-size: .75rem; font-weight: 600; color: rgb(var(--dim)); transition: color .2s var(--ease); }
.ac-back:hover { color: rgb(var(--brand-text)); }
.ac-back .ic { width: 14px; height: 14px; }

.ac-card { display: block; padding: 1.1rem 1.25rem; border: 1px solid rgb(var(--line)); border-radius: var(--r-lg, 1rem); background: rgb(var(--surface)); }
.ac-card + .ac-card { margin-top: .9rem; }
@media (min-width: 768px) { .ac-card { padding: 1.25rem 1.5rem; } }
.ac-card-t { display: block; margin: 0 0 .5rem; font-size: .9rem; font-weight: 800; color: rgb(var(--ink)); }
.ac-muted { font-size: .74rem; color: rgb(var(--dim)); white-space: nowrap; }
.ac-link { font-weight: 700; color: rgb(var(--ink)); }
.ac-link:hover { color: rgb(var(--brand-text)); }

/* دکمه‌ها */
.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 2.6rem; padding-inline: 1.1rem;
  border: 1px solid rgb(var(--line)); border-radius: var(--r-sm, .6rem); background: rgb(var(--surface));
  font: inherit; font-size: .8rem; font-weight: 700; color: rgb(var(--ink)); white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.ac-btn:hover { border-color: rgb(var(--ink) / .3); }
.ac-btn .ic { width: 15px; height: 15px; }
.ac-btn.is-sm { height: 2.2rem; padding-inline: .8rem; font-size: .74rem; }
.ac-btn.is-main { border-color: rgb(var(--brand)); background: rgb(var(--brand)); color: #fff; }
.ac-btn.is-main:hover { border-color: rgb(var(--brand-2)); background: rgb(var(--brand-2)); }

/* وضعیت سفارش */
.ac-status {
  --st: var(--dim);
  display: inline-flex; align-items: center; gap: .35rem; width: max-content; height: 1.6rem; padding-inline: .6rem; border-radius: 999px;
  background: rgb(var(--st) / .13); color: rgb(var(--st)); font-size: .7rem; font-weight: 700; white-space: nowrap;
}
.ac-status::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.ac-status.is-completed { --st: var(--ok); }
.ac-status.is-processing { --st: 37 99 235; }
.dark .ac-status.is-processing { --st: 96 165 250; }
.ac-status.is-on-hold, .ac-status.is-pending { --st: 180 83 9; }
.dark .ac-status.is-on-hold, .dark .ac-status.is-pending { --st: 251 191 36; }
.ac-status.is-failed, .ac-status.is-cancelled { --st: var(--err); }

/* فهرست سفارش‌ها */
.ac-orders { padding-block: .4rem; }
.ac-orders-h, .ac-order { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 7.5rem 8rem 11rem; align-items: center; gap: 1rem; }
.ac-orders-h { padding: .55rem 0; border-bottom: 1px solid rgb(var(--line)); font-size: .7rem; font-weight: 600; color: rgb(var(--dim)); }
.ac-order { padding: .8rem 0; }
.ac-order + .ac-order { border-top: 1px dashed rgb(var(--line)); }
.ac-order-id { display: flex; flex-direction: column; gap: .1rem; }
.ac-order-id b { font-size: .9rem; font-weight: 800; color: rgb(var(--ink)); transition: color .2s var(--ease); }
.ac-order-id small { font-size: .7rem; color: rgb(var(--dim)); }
.ac-order-id:hover b { color: rgb(var(--brand-text)); }
.ac-stack { display: flex; align-items: center; min-width: 0; }
.ac-stack-i { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; flex: none; overflow: hidden; border: 2px solid rgb(var(--surface)); border-radius: .6rem; background: rgb(var(--surface-2)); }
.ac-stack-i + .ac-stack-i { margin-inline-start: -.7rem; }
.ac-stack-i > *, .ac-stack-i img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.ac-stack-more { font-size: .68rem; font-weight: 700; color: rgb(var(--ink-2)); }
.ac-stack small { margin-inline-start: .6rem; font-size: .72rem; color: rgb(var(--dim)); white-space: nowrap; }
.ac-order-total { font-size: .88rem; font-weight: 800; color: rgb(var(--ink)); white-space: nowrap; }
.ac-order .woocommerce-Price-currencySymbol,
.ac-facts .woocommerce-Price-currencySymbol,
.ac-sum .woocommerce-Price-currencySymbol,
.ac-line .woocommerce-Price-currencySymbol { margin-inline-start: .15rem; font-size: .68rem; font-weight: 500; color: rgb(var(--dim)); }
.ac-order-go { display: flex; justify-content: flex-end; gap: .4rem; }
@media (max-width: 1100px) and (min-width: 768px) {
  .ac-orders-h, .ac-order { grid-template-columns: 7rem minmax(0, 1fr) 7rem 7rem auto; gap: .75rem; }
  .ac-stack small { display: none; }
}
@media (max-width: 767px) {
  .ac-orders-h { display: none; }
  .ac-order { grid-template-columns: 1fr auto; gap: .6rem .75rem; }
  .ac-order .ac-stack { grid-column: 1 / -1; grid-row: 2; }
  .ac-order .ac-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .ac-order .ac-order-total { grid-row: 3; }
  .ac-order .ac-order-go { grid-row: 3; }
}
.ac-pager { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1rem; font-size: .78rem; color: rgb(var(--dim)); }

/* جزئیات سفارش */
.ac-facts { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 768px) { .ac-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ac-facts li { display: flex; flex-direction: column; gap: .2rem; min-width: 0; padding: .75rem .9rem; border: 1px solid rgb(var(--line)); border-radius: var(--r, .8rem); background: rgb(var(--surface)); }
.ac-facts span { font-size: .7rem; color: rgb(var(--dim)); }
.ac-facts b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; font-weight: 800; color: rgb(var(--ink)); }
.ac-lines { list-style: none; margin: 0; padding: 0; }
.ac-line { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .75rem 0; }
.ac-line + .ac-line { border-top: 1px dashed rgb(var(--line)); }
.ac-line .tk-file-t a:hover b { color: rgb(var(--brand-text)); }
.ac-line .tk-file-t small .price { font-weight: 700; color: rgb(var(--ink-2)); }
.ac-line-go { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
@media (max-width: 479px) { .ac-line .tk-dl span { display: none; } .ac-line .tk-dl { padding-inline: .7rem; } }
.ac-sum { margin: .5rem 0 0; padding-top: .75rem; border-top: 1px solid rgb(var(--line)); }
.ac-sum > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: .8rem; }
.ac-sum > div + div { margin-top: .4rem; }
.ac-sum dt { color: rgb(var(--dim)); }
.ac-sum dd { margin: 0; font-weight: 600; color: rgb(var(--ink)); }
.ac-sum .is-total dt { font-weight: 700; color: rgb(var(--ink)); }
.ac-sum .is-total dd { font-size: 1.15rem; font-weight: 800; }
.ac-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ac-notes li { padding: .7rem .9rem; border-radius: var(--r-sm, .6rem); background: rgb(var(--surface-2)); font-size: .8rem; line-height: 1.9; color: rgb(var(--ink-2)); }
.ac-notes small { display: block; margin-bottom: .2rem; font-size: .68rem; color: rgb(var(--dim)); }

/* پروفایل */
.woocommerce-MyAccount-content form.ac-form { padding: 0; border: 0; border-radius: 0; background: none; }
.ac-fields { display: grid; gap: .8rem; margin-top: .5rem; }
@media (min-width: 640px) { .ac-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ac-f { margin: 0; }
.ac-f label { display: block; margin: 0 0 .35rem; font-size: .75rem; font-weight: 600; color: rgb(var(--ink-2)); }
.ac-f .required { color: rgb(var(--brand)); }
.ac-form .ac-f input.input-text {
  width: 100%; height: 2.85rem; margin: 0; padding: 0 .9rem; border: 1px solid transparent; border-radius: var(--r-sm, .6rem);
  background: rgb(var(--surface-2)); color: rgb(var(--ink)); font: inherit; font-size: .85rem; box-shadow: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ac-form .ac-f input.input-text:hover { border-color: rgb(var(--line)); }
.ac-form .ac-f input.input-text:focus { outline: none; border-color: rgb(var(--brand)); background: rgb(var(--surface)); box-shadow: 0 0 0 3px rgb(var(--brand) / .12); }
.ac-form .ac-f input[dir="ltr"] { text-align: left; }
.ac-form .ac-f input:disabled { opacity: .6; cursor: not-allowed; }
.ac-pass summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; }
.ac-pass summary::-webkit-details-marker { display: none; }
.ac-pass summary .ac-card-t { margin: 0; }
.ac-pass summary small { font-size: .7rem; color: rgb(var(--dim)); }
.ac-pass summary .ic { width: 16px; height: 16px; margin-inline-start: auto; color: rgb(var(--dim)); transition: transform .25s var(--ease); }
.ac-pass[open] summary .ic { transform: rotate(180deg); }
.ac-pass[open] .ac-fields { margin-top: 1rem; }
@media (min-width: 900px) { .ac-pass .ac-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ac-form-f { display: flex; justify-content: flex-end; margin-top: 1rem; }
@media (max-width: 479px) { .ac-form-f .ac-btn { width: 100%; } }

/* خروجی شورت‌کدها گاهی با <br>/<p> خالی میان تگ‌ها آلوده می‌شود — در چیدمان‌های اختصاصی نادیده گرفته شود */
:is(.tk-hero, .tk-card, .tk-actions, .tk-perks, .tk-receipt, .ac-head, .ac-card, .ac-facts, .ck-card, .ck-head) br,
:is(.tk-hero, .tk-card, .tk-actions, .ac-card, .ac-head, .ck-card) p:empty { display: none !important; }
.tk-note br { display: initial !important; }


/* ══════════════════════════════════════════════════════════════════
   حساب کاربری — پوسته (`.acx-`) و پیشخوان (`.ad-`)
   ══════════════════════════════════════════════════════════════════ */
.acx { display: grid; gap: 1.25rem; }

/* سربرگ پروفایل */
.acx-hero { position: relative; overflow: hidden; border: 1px solid rgb(var(--line)); border-radius: var(--r-xl, 1.5rem); background: rgb(var(--surface)); }
.acx-cover { position: relative; height: 7.5rem; overflow: hidden; background: linear-gradient(120deg, rgb(var(--brand) / .16), rgb(79 70 229 / .14) 55%, rgb(13 148 136 / .12)); }
.acx-cover i { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .7; }
.acx-cover i:nth-child(1) { width: 16rem; height: 16rem; inset-inline-start: -3rem; top: -9rem; background: rgb(var(--brand) / .35); }
.acx-cover i:nth-child(2) { width: 14rem; height: 14rem; inset-inline-end: 12%; top: -8rem; background: rgb(124 58 237 / .3); }
.acx-cover i:nth-child(3) { width: 10rem; height: 10rem; inset-inline-end: -2rem; bottom: -6rem; background: rgb(245 158 11 / .25); }
.acx-cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgb(var(--ink) / .12) 1px, transparent 1.2px); background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

.acx-id { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.25rem; margin-top: -3rem; padding: 0 1.5rem 1.25rem; }
.acx-avatar { position: relative; flex: none; width: 6rem; height: 6rem; border-radius: 50%; padding: 4px; background: rgb(var(--surface)); }
.acx-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.acx-avatar .dg-verified-badge { position: absolute; bottom: .2rem; inset-inline-end: .2rem; }
.acx-who { flex: 1; min-width: 14rem; padding-bottom: .2rem; }
.acx-hi { margin: 0; font-size: .78rem; font-weight: 600; color: rgb(var(--dim)); }
.acx-name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .1rem 0 0; font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); font-weight: 800; line-height: 1.4; color: rgb(var(--ink)); }
.acx-tag { padding: .1rem .55rem; border-radius: 999px; background: rgb(var(--brand) / .12); color: rgb(var(--brand-text)); font-size: .7rem; font-weight: 700; }
.acx-meta { list-style: none; margin: .45rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.acx-meta li { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; color: rgb(var(--ink-2)); }
.acx-meta .ic { width: 15px; height: 15px; color: rgb(var(--dim)); }
.acx-act { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: .2rem; }

.acx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid rgb(var(--line)); }
@media (min-width: 768px) { .acx-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.acx-stats > * { display: flex; flex-direction: column; gap: .2rem; padding: .95rem 1.5rem; color: inherit; transition: background-color .2s var(--ease); }
.acx-stats > * + * { border-inline-start: 1px solid rgb(var(--line)); }
@media (max-width: 767px) { .acx-stats > :nth-child(3) { border-inline-start: 0; } .acx-stats > :nth-child(n+3) { border-top: 1px solid rgb(var(--line)); } }
.acx-stats > a:hover { background: rgb(var(--surface-2)); }
.acx-stats dt { font-size: .72rem; color: rgb(var(--dim)); }
.acx-stats dd { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.5; color: rgb(var(--ink)); }
.acx-stats dd .woocommerce-Price-currencySymbol { margin-inline-start: .2rem; font-size: .7rem; font-weight: 500; color: rgb(var(--dim)); }
.acx-stats dd.price i { font-style: normal; margin-inline-start: .2rem; font-size: .7rem; font-weight: 500; color: rgb(var(--dim)); }
.acx-meter { display: flex; align-items: center; gap: .6rem; }
.acx-meter i { position: relative; flex: 1; max-width: 7rem; height: 6px; border-radius: 6px; background: rgb(var(--surface-2)); overflow: hidden; }
.acx-meter i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p) * 1%); border-radius: inherit; background: rgb(var(--ok)); }
@media (max-width: 639px) {
  .acx-id { padding: 0 1rem 1rem; margin-top: -2.5rem; }
  .acx-avatar { width: 5rem; height: 5rem; }
  .acx-act { width: 100%; }
  .acx-act .ac-btn { flex: 1; }
  .acx-stats > * { padding: .8rem 1rem; }
}

/* منو */
.acx .acc-nav { padding: .5rem; }
.acx .acc-switch { margin: 0 0 .4rem; }
.acx .acc-list { padding: 0; gap: .15rem; }
.acx .acc-list a { padding: .7rem .8rem; border-radius: var(--r-sm, .6rem); }
.acc-count { min-width: 1.4rem; height: 1.4rem; padding-inline: .35rem; display: grid; place-items: center; border-radius: 999px; background: rgb(var(--surface-2)); font-size: .68rem; font-style: normal; font-weight: 700; color: rgb(var(--ink-2)); }
.acc-list .is-active .acc-count { background: rgb(var(--brand)); color: #fff; }
.acc-list a .acc-count + .acc-arrow { display: none; }
@media (max-width: 899px) {
  .acx .acc-nav { position: static; padding: .4rem; overflow-x: auto; scrollbar-width: none; }
  .acx .acc-list { display: flex; gap: .3rem; }
  .acx .acc-list li { flex: none; }
  .acx .acc-list a { padding: .55rem .8rem; white-space: nowrap; }
  .acx .acc-list .acc-arrow { display: none; }
  .acx .acc-list .is-active > a::after { display: none; }
  .woocommerce-account .acx-body { display: grid; gap: 1rem; }
}

/* پیشخوان */
.ad { display: grid; gap: 1rem; }
@media (min-width: 1100px) { .ad { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } .ad-profile, .ad-promo { grid-column: 1 / -1; } }
.ad .ac-card + .ac-card { margin-top: 0; }
.ad-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.ad-h h2 { margin: 0; font-size: .95rem; font-weight: 800; color: rgb(var(--ink)); }

.ad-list { list-style: none; margin: 0; padding: 0; }
.ad-list li + li { border-top: 1px dashed rgb(var(--line)); }
.ad-order { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: .15rem .8rem; padding: .7rem .4rem; margin-inline: -.4rem; border-radius: var(--r-sm, .6rem); color: inherit; transition: background-color .2s var(--ease); }
.ad-order:hover { background: rgb(var(--surface-2)); }
.ad-order .tk-thumb { grid-row: 1 / 3; }
.ad-order-t { display: flex; flex-direction: column; gap: .1rem; min-width: 0; grid-row: 1 / 3; }
.ad-order-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; font-weight: 700; color: rgb(var(--ink)); }
.ad-order-t b i { font-style: normal; font-size: .7rem; color: rgb(var(--dim)); }
.ad-order-t small { font-size: .7rem; color: rgb(var(--dim)); }
.ad-order .ac-status { justify-self: end; }
.ad-order-p { justify-self: end; font-size: .82rem; font-weight: 800; color: rgb(var(--ink)); white-space: nowrap; }
.ad-order-p .woocommerce-Price-currencySymbol { margin-inline-start: .15rem; font-size: .66rem; font-weight: 500; color: rgb(var(--dim)); }

.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.ad-file { display: grid; gap: .45rem; color: inherit; }
.ad-file-art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r, .8rem); background: rgb(var(--surface-2)); }
.ad-file-art > img, .ad-file-art > .pv-mini { display: block; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .5s var(--ease); }
.ad-file-art > .pv-mini { display: grid; place-items: center; border-radius: 0; }
.ad-file-go { position: absolute; inset-inline-end: .5rem; bottom: .5rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgb(var(--brand)); color: #fff; transform: translateY(.3rem); opacity: .92; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.ad-file-go .ic { width: 16px; height: 16px; }
.ad-file:hover .ad-file-art > img { transform: scale(1.05); }
.ad-file:hover .ad-file-go { transform: none; opacity: 1; }
.ad-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; font-weight: 700; color: rgb(var(--ink)); }

.ad-empty { display: grid; justify-items: start; gap: .7rem; padding: 1rem 0 .3rem; }
.ad-empty p { margin: 0; font-size: .8rem; color: rgb(var(--dim)); }

.ad-profile { display: flex; align-items: center; gap: 1rem; }
.ad-profile > div { flex: 1; min-width: 0; }
.ad-profile h2 { margin: 0; font-size: .9rem; font-weight: 800; color: rgb(var(--ink)); }
.ad-profile p { margin: .15rem 0 0; font-size: .76rem; color: rgb(var(--dim)); }
.ad-ring { position: relative; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; flex: none; border-radius: 50%; background: conic-gradient(rgb(var(--ok)) calc(var(--p) * 1%), rgb(var(--surface-2)) 0); }
.ad-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: rgb(var(--surface)); }
.ad-ring b { position: relative; font-size: .78rem; font-weight: 700; color: rgb(var(--ink)); }
@media (max-width: 479px) { .ad-profile { flex-wrap: wrap; } .ad-profile .ac-btn { width: 100%; } }

.ad-promo { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--r-lg, 1rem); background: rgb(var(--ink)); color: rgb(var(--bg)); }
.ad-promo::after { content: ""; position: absolute; width: 14rem; height: 14rem; inset-inline-end: -4rem; top: -7rem; border-radius: 50%; background: rgb(var(--brand) / .45); filter: blur(40px); pointer-events: none; }
.ad-promo > * { position: relative; z-index: 1; }
.ad-promo h2 { margin: 0; font-size: 1rem; font-weight: 800; color: inherit; }
.ad-promo p { margin: .2rem 0 0; font-size: .78rem; opacity: .7; }
.ad-promo-btn { display: inline-flex; align-items: center; gap: .4rem; height: 2.6rem; padding-inline: 1.1rem; border-radius: var(--r-sm, .6rem); background: rgb(var(--brand)); color: #fff; font-size: .8rem; font-weight: 700; transition: background-color .2s var(--ease); }
.ad-promo-btn:hover { background: rgb(var(--brand-2)); }
.ad-promo-btn .ic { width: 15px; height: 15px; }

/* سربرگ داخلی زیرصفحه‌ها کوچک‌تر — سربرگ پروفایل بالای صفحه هست */
.acx .ac-head { margin-bottom: .85rem; }
.acx .ac-title { font-size: 1.05rem; }
.acx .dg-notices { margin-bottom: 1rem; }

/* کاور پشت کل ناحیهٔ پروفایل (قبلاً فقط نیمهٔ بالا رنگ داشت) */
.acx-top { position: relative; isolation: isolate; }
.acx-top > .acx-cover { position: absolute; inset: 0; z-index: -1; height: auto; }
.acx-top > .acx-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(var(--surface) / .55), transparent 70%); z-index: 1; }
/* نقطه‌ها فقط سمت خالی کاور — نه پشت متن */
.acx-top > .acx-cover::after {
  -webkit-mask-image: linear-gradient(270deg, transparent 45%, #000 80%);
          mask-image: linear-gradient(270deg, transparent 45%, #000 80%);
}
.acx-top > .acx-id { margin-top: 0; padding: 2rem 1.5rem 1.5rem; align-items: center; }
.acx-top .acx-avatar { box-shadow: 0 10px 30px -14px rgb(var(--shadow) / .6); }
@media (max-width: 639px) { .acx-top > .acx-id { padding: 1.5rem 1rem 1.1rem; } }

/* سربرگ زیرصفحه‌های حساب (سفارش‌ها، دانلودها، پروفایل…) — نوار کارتی به‌جای تیتر شناور */
.acx .ac-head {
  position: relative; overflow: hidden; align-items: center;
  margin-bottom: .9rem; padding: .95rem 1.25rem; padding-inline-start: 1.4rem;
  border: 1px solid rgb(var(--line)); border-radius: var(--r-lg, 1rem);
  background: linear-gradient(270deg, rgb(var(--surface)) 50%, rgb(var(--brand) / .08)), rgb(var(--surface));
}
[dir="rtl"] .acx .ac-head { background: linear-gradient(90deg, rgb(var(--surface)) 50%, rgb(var(--brand) / .08)), rgb(var(--surface)); }
.acx .ac-head::before { content: ""; position: absolute; inset-block: 1rem; inset-inline-start: 0; width: 3px; border-radius: 3px; background: rgb(var(--brand)); }
.acx .ac-title { font-size: 1rem; line-height: 1.6; }
.acx .ac-sub { margin-top: .05rem; font-size: .76rem; }
.acx .ac-head > div { min-width: 0; }
.acx .ac-back { margin-bottom: .15rem; }


/* ══════════════════════════════════════════════════════════════════
   ۲.۱۳ — صفحهٔ عمومی طراح (`.sp-`)
   ⛔ `.vs-*` در vendor.css بود و با ورود از روتر SPA بارگذاری نمی‌شد؛ صفحه کاملاً خام دیده
   می‌شد. حالا همه‌چیز اینجاست. ساختار: کاور (بنر طراح یا صحنهٔ تیره) ← ردیف هویت
   که روی لبهٔ کاور می‌نشیند (آواتار، نام، حقایق، سه خانهٔ آمار) ← ستون معرفی + ویترین.
   ══════════════════════════════════════════════════════════════════ */
.sp-hero {
  position: relative;
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
  box-shadow: 0 0 0 1px rgb(var(--line) / .9);
}

.sp-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 13rem;
  margin: 8px 8px 0;
  border-radius: calc(var(--r-xl) - 6px);
  background:
    radial-gradient(60% 140% at 92% 0%, rgb(var(--brand) / .5), transparent 60%),
    radial-gradient(55% 130% at 6% 110%, rgb(99 102 241 / .42), transparent 62%),
    linear-gradient(200deg, #1f1d2b, #121119 60%, #0c0b11);
}
@media (max-width: 640px) { .sp-cover { height: 9.5rem; } }
.sp-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.sp-cover.has-img::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(0 0 0 / .45), transparent 55%);
}
.sp-glow {
  position: absolute; z-index: -1; width: 16rem; aspect-ratio: 1; border-radius: 50%;
  filter: blur(50px); opacity: .5;
}
.sp-glow-1 { top: -6rem; inset-inline-start: 22%; background: rgb(13 148 136 / .7); }
.sp-glow-2 { bottom: -9rem; inset-inline-end: 30%; background: rgb(217 119 6 / .55); }
/* نام طراح به‌صورت واترمارک توخالی، فقط روی کاور تیره */
.sp-wm {
  position: absolute; z-index: -1;
  inset-inline-start: 1.5rem; bottom: -1.6rem;
  max-width: 70%;
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 1.3;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / .14);
}

.sp-cover-acts {
  position: absolute;
  top: .9rem;
  inset-inline-start: .9rem;
  display: flex;
  gap: .4rem;
}
.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 2.1rem;
  padding-inline: .75rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s var(--ease);
}
.sp-chip:hover { background: rgb(255 255 255 / .24); }
.sp-chip.is-done { background: rgb(var(--ok)); }
.sp-chip .ic { width: 15px; height: 15px; }

/* ردیف هویت */
.sp-id {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.4rem;
  padding: 0 1.6rem 1.5rem;
}
.sp-ava {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  margin-top: -3.4rem;
  flex: 0 0 auto;
}
.sp-ava img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: rgb(var(--surface-2));
  box-shadow: 0 0 0 5px rgb(var(--surface)), 0 18px 36px -18px rgb(var(--shadow) / .6);
}
.sp-ava-badge { width: 1.9rem; height: 1.9rem; inset-inline-end: -6px; bottom: -6px; }

.sp-who { min-width: 0; padding-top: 1rem; }
.sp-kicker { font-size: .68rem; font-weight: 700; color: rgb(var(--brand-text)); }
.sp-name {
  margin-top: .15rem;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: rgb(var(--ink));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-tag { margin-top: .1rem; font-size: .86rem; font-weight: 500; color: rgb(var(--ink-2)); }
.sp-facts { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: .7rem; }
.sp-facts li {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 500; color: rgb(var(--dim)); white-space: nowrap;
}
.sp-facts .ic { width: 14px; height: 14px; }

/* آمار — دو عدد درشت با خط جداکننده + خانهٔ برجستهٔ امتیاز با ستاره‌های نیمه‌پر */
.sp-stats {
  display: flex;
  align-items: stretch;
  padding: .35rem;
  border-radius: var(--r-lg);
  background: rgb(var(--surface-2));
}
.sp-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 6.4rem;
  padding: .6rem 1rem;
}
.sp-stat + .sp-stat { border-inline-start: 1px solid rgb(var(--line)); }
.sp-stat dt { font-size: .68rem; font-weight: 600; color: rgb(var(--dim)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-stat dd { margin-top: .2rem; font-size: 1.45rem; font-weight: 900; line-height: 1.2; color: rgb(var(--ink)); white-space: nowrap; }
.sp-stat.is-rate {
  min-width: 8.5rem;
  margin-inline-start: .35rem;
  border-inline-start: 0;
  border-radius: calc(var(--r-lg) - 4px);
  background: rgb(var(--surface));
  box-shadow: 0 0 0 1px rgb(var(--line));
}
.sp-stat.is-rate dd { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .45rem; }
.sp-stat.is-rate b { font-size: 1.45rem; font-weight: 900; }
.sp-stat.is-rate small { flex-basis: 100%; font-size: .66rem; font-weight: 600; color: rgb(var(--dim)); }
.sp-stat.is-rate dd > small:only-child { font-size: .8rem; margin-top: .2rem; }
.sp-stars {
  --v: 0%;
  position: relative;
  display: inline-block;
  font-size: .82rem;
  line-height: 1;
  letter-spacing: .06em;
}
.sp-stars::before { content: "★★★★★"; color: rgb(var(--line)); }
.sp-stars::after {
  content: "★★★★★";
  position: absolute; inset-block: 0; inset-inline-start: 0;
  width: var(--v); overflow: hidden; white-space: nowrap;
  color: rgb(var(--gold));
}

@media (max-width: 1100px) {
  .sp-id { grid-template-columns: auto minmax(0, 1fr); }
  .sp-stats { grid-column: 1 / -1; }
  .sp-stat { flex: 1; min-width: 0; }
}
@media (max-width: 640px) {
  .sp-id { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 0 1rem 1.1rem; }
  .sp-ava { width: 6rem; height: 6rem; margin-top: -3rem; }
  .sp-ava img { border-radius: 22px; }
  .sp-who { padding-top: 0; }
  .sp-name { white-space: normal; }
  .sp-stat { padding: .55rem .6rem; }
  .sp-stat dt { font-size: .62rem; }
  .sp-stat.is-rate { min-width: 0; flex: 1.3; }
  .sp-stat dd, .sp-stat.is-rate b { font-size: 1.15rem; }
  .sp-cover-acts .sp-chip span { display: none; }
  .sp-cover-acts .sp-chip { width: 2.1rem; justify-content: center; padding: 0; }
}

/* بدنه: ستون معرفی چسبان + ویترین */
.sp-body {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 1024px) {
  .sp-body { grid-template-columns: 18rem minmax(0, 1fr); align-items: start; }
  .sp-body:has(.sp-side:empty) { grid-template-columns: minmax(0, 1fr); }
  .sp-side { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.sp-side { display: grid; gap: 1rem; }
/* روی موبایل اول ویترین، بعد معرفی */
@media (max-width: 1023px) { .sp-main { order: -1; } }
.sp-side:empty { display: none; }

.sp-card {
  padding: 1.15rem 1.2rem;
  border-radius: var(--r-lg);
  background: rgb(var(--surface));
  box-shadow: 0 0 0 1px rgb(var(--line) / .9);
}
.sp-h { font-size: .8rem; font-weight: 800; color: rgb(var(--ink)); }
.sp-h.mt { margin-top: 1.1rem; }
.sp-bio { margin-top: .6rem; font-size: .82rem; line-height: 2.05; color: rgb(var(--ink-2)); white-space: pre-line; }

/* دسته‌ها با نوار سهم پشت هر ردیف */
.sp-cats { display: grid; gap: .35rem; margin-top: .75rem; }
.sp-cats li {
  --w: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .45rem .7rem;
  border-radius: var(--r-sm);
  font-size: .78rem;
}
.sp-cats li::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; z-index: -1;
  width: var(--w); border-radius: inherit;
  background: rgb(var(--brand) / .08);
}
.sp-cats a { font-weight: 600; color: rgb(var(--ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-cats a:hover { color: rgb(var(--brand-text)); }
.sp-cats span { font-size: .72rem; font-weight: 700; color: rgb(var(--dim)); }

.sp-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.sp-tags span {
  padding: .28rem .65rem;
  border-radius: 999px;
  background: rgb(var(--surface-2));
  font-size: .72rem;
  font-weight: 600;
  color: rgb(var(--ink-2));
  white-space: nowrap;
}
.sp-tags.is-tools span { border-radius: var(--r-sm); background: transparent; box-shadow: inset 0 0 0 1px rgb(var(--line)); }

/* نوار ویترین */
.sp-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1.1rem;
}
.sp-bar-t { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 800; color: rgb(var(--ink)); }
.sp-bar-t span {
  display: grid; place-items: center;
  min-width: 1.7rem; height: 1.7rem; padding-inline: .4rem;
  border-radius: 999px;
  background: rgb(var(--ink));
  color: rgb(var(--bg));
  font-size: .72rem;
  font-weight: 700;
}
.sp-sort {
  display: flex;
  gap: .2rem;
  max-width: 100%;
  overflow-x: auto;
  padding: .25rem;
  border-radius: 999px;
  background: rgb(var(--surface));
  box-shadow: 0 0 0 1px rgb(var(--line));
  scrollbar-width: none;
}
.sp-sort a {
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: rgb(var(--dim));
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.sp-sort a:hover { color: rgb(var(--ink)); }
.sp-sort a.on { background: rgb(var(--ink)); color: rgb(var(--bg)); }

.sp-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); align-items: stretch; }
/* هم‌راستا با .sx-grid فروشگاه: زیر ۴۸۰px تک‌ستونه، وگرنه داک قیمت/دکمه روی هم می‌افتد */
@media (max-width: 479px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }

.sp-empty {
  display: grid;
  justify-items: center;
  gap: .6rem;
  padding: 3.5rem 1.5rem;
  border-radius: var(--r-xl);
  background: rgb(var(--surface));
  box-shadow: 0 0 0 1px rgb(var(--line) / .9);
  text-align: center;
}
.sp-empty-ic {
  display: grid; place-items: center;
  width: 3.8rem; height: 3.8rem;
  margin-bottom: .3rem;
  border-radius: 1.1rem;
  background: rgb(var(--brand) / .08);
  color: rgb(var(--brand));
  transform: rotate(-6deg);
}
.sp-empty h3 { font-size: 1rem; font-weight: 800; color: rgb(var(--ink)); }
.sp-empty p { max-width: 24rem; font-size: .82rem; line-height: 2; color: rgb(var(--dim)); }
.sp-empty .btn { margin-top: .5rem; }


/* ══════════════════════════════════════════════════════════════════
   ۲.۱۳ — مگامنوی «تنظیم منوی سایت» (`.mm-`)
   مارک‌آپ پایه همان `.nav-item / .mega / .mega-link` است؛ این‌ها فقط افزوده‌های سازنده‌اند:
   نشان کنار عنوان، توضیح زیر لینک، ستون CTA (کارت محصول/نوشته یا بنر تصویری).
   ⚠️ پیشوند `mb-` عمداً استفاده نشد؛ با کلاس‌های margin-bottom تیلویند قاطی می‌شود.
   ══════════════════════════════════════════════════════════════════ */
.mm-badge {
  display: inline-flex;
  align-items: center;
  height: 1.05rem;
  margin-inline-start: .35rem;
  padding-inline: .38rem;
  border-radius: 999px;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
  background: rgb(var(--brand) / .1);
  color: rgb(var(--brand-text));
}
.mm-badge.t-ok    { background: rgb(var(--ok) / .12);  color: rgb(var(--ok)); }
.mm-badge.t-info  { background: rgb(37 99 235 / .1);   color: rgb(37 99 235); }
.mm-badge.t-amber { background: rgb(217 119 6 / .12);  color: rgb(180 83 9); }
.mm-badge.t-dark  { background: rgb(var(--ink));        color: rgb(var(--bg)); }
.dark .mm-badge.t-info  { color: rgb(125 170 255); }
.dark .mm-badge.t-amber { color: rgb(251 191 36); }

.nav-link.is-hl { color: rgb(var(--brand-text)); font-weight: 700; }

/* لینک با توضیح دوخطی */
.mm-l { display: flex; flex-direction: column; min-width: 0; }
.mm-l-t { display: flex; align-items: center; white-space: nowrap; }
.mega-link.has-desc { align-items: flex-start; padding-block: .5rem; }
.mega-link.has-desc .ic { margin-top: .2rem; }
.mm-l small {
  margin-top: .1rem;
  font-size: .68rem;
  line-height: 1.7;
  color: rgb(var(--dim));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.mm-col-t { transition: opacity .2s var(--ease); }
a.mm-col-t:hover { opacity: .75; }

/* ستون CTA: کارت محصول/نوشته */
.mm-pick { display: block; }
.mm-pick .pv-wrap { display: block; }
.mm-pick .mm-pick-media {
  position: relative !important;
  display: block !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 13px;
  background: rgb(var(--surface-2));
}
.mm-pick .mm-pick-media > img,
.mm-pick .mm-pick-media > .pv {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: inherit;
}
.mm-pick-t {
  display: block;
  margin-top: .75rem;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.7;
  color: rgb(var(--ink));
  transition: color .2s var(--ease);
}
.mm-pick:hover .mm-pick-t { color: rgb(var(--brand-text)); }
.mm-pick-p { display: block; margin-top: .15rem; font-size: .9rem; font-weight: 800; color: rgb(var(--ink)); }
.mm-pick-p i { font-style: normal; font-size: .65rem; font-weight: 600; color: rgb(var(--dim)); }
.mm-pick-d { display: block; margin-top: .3rem; font-size: .72rem; line-height: 1.8; color: rgb(var(--dim)); }

/* ستون CTA: بنر تصویری با متن روی تصویر */
.mm-banner {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 15rem;
  height: 100%;
  border-radius: var(--r-lg);
  background: linear-gradient(200deg, #25232f, #121118);
  isolation: isolate;
}
.mm-cta-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
a.mm-banner:hover .mm-cta-img { transform: scale(1.05); }
.mm-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(0 0 0 / .72), rgb(0 0 0 / .05) 62%);
}
.mm-banner-in {
  position: absolute;
  inset-inline: 1.1rem;
  bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  color: #fff;
}
.mm-banner-in b { font-size: 1rem; font-weight: 800; line-height: 1.5; }
.mm-banner-in small { font-size: .74rem; line-height: 1.8; color: rgb(255 255 255 / .78); }
.mm-banner-in em {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  align-self: flex-start;
  margin-top: .55rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: #fff;
  color: #14131a;
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* سرستون در منوی موبایل */
.mm-dr-h {
  margin-top: .7rem;
  font-size: .68rem;
  font-weight: 700;
  color: rgb(var(--dim));
}

/* ══════════ 2.15.7 — اصلاحات نهایی سبد، دسته، پروفایل و فوتر ══════════ */

/* ══════════ 2.15.9 — سبد مستقل و بدون تداخل ══════════ */
.dg-woo .dgcart,
.dgcart {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  margin: 0;
}
.dgcart *, .dgcart *::before, .dgcart *::after { box-sizing: border-box; }
.dgcart-list {
  min-width: 0;
  padding: .35rem;
  border: 1px solid rgb(var(--line));
  border-radius: var(--r-lg);
  background: rgb(var(--surface));
  overflow: hidden;
}
.dgcart-item {
  position: relative !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: .7rem !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 4.8rem !important;
  height: auto !important;
  margin: 0 !important;
  padding: .48rem .55rem !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: var(--r) !important;
  background: transparent;
}
.dgcart-item + .dgcart-item { border-top: 1px dashed rgb(var(--line-2)) !important; border-radius: 0 !important; }
.dgcart-item:hover { background: rgb(var(--surface-2)); }
.dgcart-remove {
  position: static !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .25rem !important;
  width: auto !important;
  min-width: 3.2rem !important;
  height: 1.9rem !important;
  margin: 0 !important;
  padding: 0 .55rem !important;
  border-radius: 999px !important;
  background: rgb(var(--brand) / .07) !important;
  color: rgb(var(--dim)) !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
.dgcart-remove:hover { background: rgb(200 38 48 / .13) !important; color: rgb(200 38 48) !important; }
.dgcart-thumb {
  position: static !important;
  display: block !important;
  flex: 0 0 4.25rem !important;
  width: 4.25rem !important;
  height: 4.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgb(var(--line-2));
  border-radius: var(--r-sm);
  background: rgb(var(--surface-2));
}
.dgcart-thumb > img,
.dgcart-thumb > .pv { display: block !important; width: 100% !important; height: 100% !important; min-width: 100% !important; min-height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; object-fit: contain !important; object-position: center !important; border-radius: calc(var(--r-sm) - 4px); }
.dgcart-body {
  position: static !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-self: stretch !important;
  justify-content: center !important;
  gap: .18rem !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.dgcart-title { display: block; max-width: 100%; overflow: hidden; color: rgb(var(--ink)); font-size: .82rem; font-weight: 800; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.dgcart-title:hover { color: rgb(var(--brand-text)); }
.dgcart-vendor { display: inline-flex; align-items: center; gap: .25rem; width: max-content; max-width: 100%; overflow: hidden; color: rgb(var(--dim)); font-size: .68rem; line-height: 1.5; }
.dgcart-vendor .ic { flex: 0 0 auto; width: 12px; height: 12px; color: rgb(var(--brand-text)); }
.dgcart-vendor b { overflow: hidden; color: rgb(var(--ink-2)); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dgcart-foot { display: flex; align-items: center; justify-content: flex-start; gap: .6rem; min-width: 0; margin-top: .06rem; }
.dgcart-tags { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 0; }
.dgcart-tags i { display: inline-flex; align-items: center; gap: .2rem; padding: .12rem .42rem; border-radius: 999px; background: rgb(var(--surface-2)); color: rgb(var(--dim)); font-size: .65rem; font-style: normal; font-weight: 650; white-space: nowrap; }
.dgcart-tags .ic { width: 11px; height: 11px; }
.dgcart-price { display: block !important; flex: 0 0 auto !important; margin: 0 !important; color: rgb(var(--ink)); font-size: .82rem; font-weight: 850; line-height: 1.5; white-space: nowrap; }
.dgcart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 0; padding: .4rem .55rem .08rem; border-top: 1px dashed rgb(var(--line-2)); }
.dgcart-actions .btn { height: 2.15rem !important; min-height: 2.15rem !important; padding-inline: .75rem !important; font-size: .72rem; }
.dgcart-update { min-height: 2.1rem; margin-inline-start: auto; padding: 0 .75rem; border: 0; border-radius: 999px; background: transparent; color: rgb(var(--dim)); font: inherit; font-size: .7rem; font-weight: 700; cursor: pointer; }
.dgcart-update:hover { background: rgb(var(--surface-2)); color: rgb(var(--ink)); }
@media (min-width: 1024px) {
  .dg-woo .dgcart, .dgcart { grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.5rem; }
}
@media (max-width: 639px) {
  .dgcart-list { padding: .35rem; }
  .dgcart-item { gap: .55rem !important; min-height: 4.9rem !important; padding: .48rem .4rem !important; }
  .dgcart-remove { width: 2.15rem !important; min-width: 2.15rem !important; padding: 0 !important; }
  .dgcart-remove span { display: none; }
  .dgcart-thumb { flex-basis: 3.85rem !important; width: 3.85rem !important; height: 3.85rem !important; }
  .dgcart-title { font-size: .78rem; }
  .dgcart-vendor { font-size: .62rem; }
  .dgcart-foot { align-items: center; flex-direction: row; flex-wrap: wrap; gap: .3rem .5rem; }
  .dgcart-price { font-size: .8rem; }
  .dgcart-actions > * { flex: 1 1 auto; justify-content: center; }
  .dgcart-update { margin-inline-start: 0; }
}

/* سبد: specificity بالا تا CSS ووکامرس/افزونه‌ها نتواند ردیف را به جدول کشیده تبدیل کند. */
.dg-woo .cart-main .cart-row {
  display: grid !important;
  grid-template-columns: 3.6rem 5rem minmax(0, 1fr) minmax(7rem, auto) !important;
  grid-template-rows: auto !important;
  align-items: center !important;
	min-height: 0 !important;
	height: 6.5rem !important;
  gap: .9rem !important;
  padding: .75rem !important;
}
.dg-woo .cart-main .cart-row > * { position: static; float: none; margin: 0; min-width: 0; }
.dg-woo .cart-main .cart-row > .cart-del { grid-column: 1 !important; grid-row: 1 !important; justify-self: center; align-self: center; }
.dg-woo .cart-main .cart-row > .cart-media { grid-column: 2 !important; grid-row: 1 !important; justify-self: center; align-self: center; }
.dg-woo .cart-main .cart-row > .cart-info { grid-column: 3 !important; grid-row: 1 !important; display: flex !important; align-self: center; }
.dg-woo .cart-main .cart-row > .cart-price { grid-column: 4 !important; grid-row: 1 !important; justify-self: end; align-self: center; }
.dg-woo .cart-main .cart-media { display: block; width: 5rem; height: 5rem; padding: .25rem; border: 1px solid rgb(var(--line-2)); border-radius: var(--r-sm); overflow: hidden; background: rgb(var(--surface-2)); }
.dg-woo .cart-main .cart-media img,
.dg-woo .cart-main .cart-media .pv { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover !important; border-radius: calc(var(--r-sm) - 4px); }
.cart-vendor { display: inline-flex; align-items: center; gap: .25rem; width: max-content; max-width: 100%; font-size: .68rem; color: rgb(var(--dim)); }
.cart-vendor .ic { width: 12px; height: 12px; color: rgb(var(--brand-text)); }
.cart-vendor b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--ink-2)); font-weight: 700; }
@media (max-width: 639px) {
	.dg-woo .cart-main .cart-row { grid-template-columns: 2.2rem 4.25rem minmax(0, 1fr) !important; height: 7rem !important; gap: .65rem !important; }
	.dg-woo .cart-main .cart-row > .cart-price { grid-column: 3 !important; grid-row: 2 !important; justify-self: start; align-self: start; margin-top: -1rem; }
  .dg-woo .cart-main .cart-media { width: 4.25rem; height: 4.25rem; padding: .2rem; }
}

/* کاور دسته: تصویر با هر نسبت و ابعادی تمام قاب را می‌پوشاند. */
.cat-tile-bg { overflow: hidden; }
.cat-tile-bg img,
.cat-tile-bg .pv { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-width: 100%; min-height: 100%; max-width: none !important; object-fit: cover !important; object-position: center center; }

/* ویرایش تصویر پروفایل مشتری */
.ac-avatar-edit { display: flex; align-items: center; gap: 1rem; margin: .9rem 0 1.2rem; padding: 1rem; border-radius: var(--r); background: rgb(var(--surface-2)); }
.ac-avatar-preview { width: 5rem; height: 5rem; flex: none; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 4px rgb(var(--surface)), 0 8px 24px -14px rgb(var(--shadow) / .55); }
.ac-avatar-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-avatar-edit > div { min-width: 0; }
.ac-avatar-edit b { display: block; font-size: .86rem; color: rgb(var(--ink)); }
.ac-avatar-edit p { margin: .2rem 0 .65rem; font-size: .7rem; line-height: 1.8; color: rgb(var(--dim)); }
.ac-avatar-input { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); }
.ac-avatar-pick { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.25rem; padding-inline: .8rem; border: 1px solid rgb(var(--line)); border-radius: var(--r-sm); background: rgb(var(--surface)); color: rgb(var(--ink)); font-size: .74rem; font-weight: 700; cursor: pointer; }
.ac-avatar-pick:hover { border-color: rgb(var(--brand)); color: rgb(var(--brand-text)); }
.ac-avatar-remove { display: inline-flex; align-items: center; gap: .3rem; margin-inline-start: .65rem; font-size: .7rem; color: rgb(var(--dim)); }
@media (max-width: 479px) { .ac-avatar-edit { align-items: flex-start; } .ac-avatar-preview { width: 4rem; height: 4rem; } .ac-avatar-remove { display: flex; margin: .6rem 0 0; } }

/* فوتر موبایل: منوها روبه‌روی هم و بخش‌های اصلی تمام‌عرض. */
@media (max-width: 767px) {
  .f-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.35rem; row-gap: 2.25rem; }
  .f-brand-col, .f-support-col { grid-column: 1 / -1; }
  .f-menu-col { min-width: 0; }
  .f-menu-col .f-head { white-space: normal; }
  .f-menu-col .f-link { line-height: 1.8; }
}
