/*!
 * NESTORLAND v2.0 — Main Stylesheet
 * یک فایل، بدون override، بدون !important اضافه
 * RTL | Dark | Vazirmatn
 */

/* ══════════════════════════════════════════
   1. CSS Variables
══════════════════════════════════════════ */
:root {
	/* رنگ‌ها */
	--c-primary:      #50b548;
	--c-primary-d:    #439e3d;
	--c-primary-l:    #6cc964;
	--c-secondary:    #eab308;
	--c-danger:       #ef4444;
	--c-bg:           #111111;
	--c-surface:      #1a1a1a;
	--c-surface-2:    #1e1e1e;
	--c-border:       rgba(255,255,255,0.07);
	--c-text:         #e0e0e0;
	--c-text-muted:   #888888;
	--c-white:        #ffffff;

	/* Typography */
	--font:           'Vazirmatn', system-ui, -apple-system, sans-serif;

	/* Spacing / Radius */
	--r-sm:  10px;
	--r-md:  16px;
	--r-lg:  24px;
	--r-xl:  32px;

	/* Layout */
	--container: 1300px;

	/* Transition */
	--ease: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

	/* توکن‌های نقش‌محور (برای حالت روز/شب) */
	--c-footer-bg:    #0d0d0d;
	--c-input-bg:     #1e1e1e;
	--c-shadow:       rgba(0,0,0,0.3);
	--c-overlay:      rgba(0,0,0,0.5);
	--c-scroll-thumb: #2a2a2a;
	color-scheme: dark;

	/* ── Alias کامل برای سازگاری (کلاس‌هایی که --nestor-* استفاده می‌کنند) ── */
	--nestor-primary:      var(--c-primary);
	--nestor-primary-dark: var(--c-primary-d);
	--nestor-dark:         var(--c-bg);
	--nestor-dark-2:       var(--c-surface);
	--nestor-dark-3:       var(--c-surface-2);
	--nestor-white:        var(--c-white);
	--nestor-gray-200:     var(--c-text);
	--nestor-gray-300:     var(--c-text);
	--nestor-gray-400:     var(--c-text-muted);
	--nestor-gray-500:     var(--c-text-muted);
	--nestor-gray-600:     var(--c-text-muted);
	--nestor-error:        var(--c-danger);
	--nestor-font-primary: var(--font);
}

/* ══════════════════════════════════════════
   حالت روز (Light) — گرم، حرفه‌ای، با کنتراست بالا
══════════════════════════════════════════ */
html[data-theme="light"] {
	--c-primary:      #3d9636;
	--c-primary-d:    #2f7a2a;
	--c-primary-l:    #50b548;
	--c-secondary:    #d97706;
	--c-danger:       #dc2626;
	--c-bg:           #eef2f6;   /* پس‌زمینه با ته‌رنگ آبی-خاکستری ملایم (نه سفید تخت) */
	--c-surface:      #ffffff;
	--c-surface-2:    #f1f5f9;
	--c-border:       rgba(15,23,41,0.09);
	--c-text:         #334155;
	--c-text-muted:   #64748b;
	--c-white:        #0f172a;   /* عناوین تیره برای خوانایی */
	--c-footer-bg:    #ffffff;   /* فوتر هم روشن می‌شود */
	--c-input-bg:     #ffffff;
	--c-shadow:       rgba(15,23,41,0.10);
	--c-overlay:      rgba(15,23,41,0.45);
	--c-scroll-thumb: #cbd5e1;
	color-scheme: light;
}
/* پس‌زمینه با گرادیان ملایم و عمق در حالت روز */
html[data-theme="light"] body {
	background:
		radial-gradient(1200px 500px at 100% -10%, rgba(80,181,72,0.06), transparent 60%),
		radial-gradient(900px 500px at 0% 0%, rgba(59,130,246,0.05), transparent 55%),
		var(--c-bg);
	background-attachment: fixed;
}

/* گذار نرم هنگام تعویض تم */
html[data-theme] body,
html[data-theme] .nestor-card,
html[data-theme] .nestor-product-card { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }

/* ══════════════════════════════════════════
   2. Reset
══════════════════════════════════════════ */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	min-width: 0;  /* جلوگیری از flex overflow */
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	overflow-x: clip; /* clip: اسکرول افقی نمی‌سازد و sticky را خراب نمی‌کند */
	background: var(--c-bg);
}

body {
	font-family:  var(--font);
	font-size:    16px;
	line-height:  1.7;
	color:        var(--c-text);
	background:   var(--c-bg);
	direction:    rtl;
	overflow-x:   clip;
	width:        100%;
	max-width:    100%;
	min-height:   100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ── Media ── */
img, video, svg, canvas { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
	font-family:  var(--font);
	font-weight:  900;
	line-height:  1.3;
	color:        var(--c-white);
}
h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem,  4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem,  3vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { color: var(--c-text-muted); line-height: 1.8; }

a {
	color:           var(--c-primary);
	text-decoration: none;
	transition:      color 0.2s;
}
a:hover { color: var(--c-primary-l); }

a:focus-visible {
	outline:        2px solid var(--c-primary);
	outline-offset: 3px;
	border-radius:  4px;
}

ul, ol { list-style: none; }
button, input, select, textarea { font-family: var(--font); }

::selection { background: var(--c-primary); color: var(--c-white); }

/* ── Scrollbar ── */
::-webkit-scrollbar               { width: 5px; height: 5px; }
::-webkit-scrollbar-track         { background: var(--c-bg); }
::-webkit-scrollbar-thumb         { background: #2a2a2a; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover   { background: var(--c-primary); }
*                                  { scrollbar-width: thin; scrollbar-color: #2a2a2a var(--c-bg); }

/* ══════════════════════════════════════════
   3. Layout Utilities
══════════════════════════════════════════ */
.nestor-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 16px;
}
@media (min-width: 640px)  { .nestor-container { padding-inline: 24px; } }
@media (min-width: 1024px) { .nestor-container { padding-inline: 32px; } }

.nestor-grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.nestor-grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.nestor-grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }

@media (min-width: 640px) {
	.nestor-grid-2 { grid-template-columns: repeat(2, 1fr); }
	.nestor-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.nestor-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.nestor-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ══════════════════════════════════════════
   6. Splash Screen
══════════════════════════════════════════ */
.nestor-splash {
	position: fixed;
	inset: 0;
	background: var(--c-bg);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	transition: opacity 0.6s ease, visibility 0.6s;
}
.nestor-splash.loaded { opacity: 0; visibility: hidden; }
.nestor-splash-logo {
	font-size: 2.5rem;
	font-weight: 900;
	color: var(--c-white);
}
.nestor-splash-img { display: block; height: 96px; width: auto; }
.nestor-splash-dots { display: flex; gap: 8px; }
.nestor-splash-dots span {
	width: 8px; height: 8px;
	background: var(--c-primary);
	border-radius: 50%;
	animation: splash-dot 1.2s ease-in-out infinite;
}
.nestor-splash-dots span:nth-child(2) { animation-delay: .2s; }
.nestor-splash-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes splash-dot { 0%,80%,100%{transform:scale(.6);opacity:.4} 40%{transform:scale(1);opacity:1} }

/* ══════════════════════════════════════════
   7. Buttons
══════════════════════════════════════════ */
.nestor-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: none;
	border-radius: var(--r-sm);
	font-family: var(--font);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: var(--ease);
	text-decoration: none;
	white-space: nowrap;
}
.nestor-btn-primary   { background: var(--c-primary); color: #fff; }
.nestor-btn-primary:hover  { background: var(--c-primary-d); transform: translateY(-1px); color: #fff; }
.nestor-btn-secondary { background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border); }
.nestor-btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary); }
@media (max-width: 639px) { .nestor-btn { width: 100%; } }

/* ══════════════════════════════════════════
   8. Cards
══════════════════════════════════════════ */
.nestor-card {
	background:    var(--c-surface);
	border:        1px solid var(--c-border);
	border-radius: var(--r-md);
	overflow:      hidden;
	transition:    var(--ease);
}
.nestor-card:hover { border-color: rgba(80,181,72,0.25); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   9. Forms
══════════════════════════════════════════ */
.nestor-input,
.nestor-select,
.nestor-textarea {
	width: 100%;
	padding: 12px 16px;
	background: var(--c-surface-2);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: var(--r-sm);
	color: var(--c-white);
	font-size: 14px;
	font-family: var(--font);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.nestor-input:focus,
.nestor-select:focus,
.nestor-textarea:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(80,181,72,0.12);
}

/* ══════════════════════════════════════════
   10. WooCommerce
══════════════════════════════════════════ */
.woocommerce,
.woocommerce-page { color: var(--c-text); background: transparent; }

/* فقط لیست محصولات (ul) گرید شود؛ نه <section class="related products"> که
   باعث می‌شد لیست محصولات مرتبط در یک ستون باریک گیر کند */
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
	width: 100%;
}
@media (min-width: 640px)  { .woocommerce ul.products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (min-width: 1024px) { .woocommerce .products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }

.woocommerce-MyAccount-navigation { background: var(--c-surface); border-radius: var(--r-md); padding: 16px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; color: var(--c-text-muted); border-radius: var(--r-sm); transition: var(--ease); }
.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a { background: var(--c-primary); color: #fff; }
.woocommerce-MyAccount-content { background: var(--c-surface); border-radius: var(--r-md); padding: 24px; }

/* ══════════════════════════════════════════
   11. Footer
══════════════════════════════════════════ */
/* ── فوتر مدرن ── */
.nestor-footer {
	position: relative;
	margin-top: 56px;
	background:
		radial-gradient(900px 320px at 85% -10%, color-mix(in srgb, var(--c-primary) 12%, transparent), transparent 70%),
		var(--c-footer-bg, #0d0d0d);
	border-top: 1px solid var(--c-border);
	padding: 52px 0 0;
}
.nestor-footer::before {
	content: "";
	position: absolute;
	inset-block-start: -1px;
	inset-inline: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
	opacity: .6;
}
.nestor-footer-grid {
	display: grid;
	grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
	gap: 48px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--c-border);
}
@media (max-width: 1023px) { .nestor-footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 36px 28px; } .nestor-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 639px)  {
	.nestor-footer-grid { grid-template-columns: 1fr; gap: 8px; text-align: center; }
	.nestor-footer-brand { text-align: center; }
}

.nestor-footer-logo { display: inline-block; font-size: 20px; font-weight: 900; color: var(--c-white); margin-bottom: 14px; }
.nestor-footer-img { display: block; height: 52px; width: auto; }

/* لوگوی اصلی عمدتاً تیره است (حدود ۸۴٪ پیکسل‌ها تقریباً مشکی)؛ در تم تیره روی پس‌زمینه‌ی تیره
   محو می‌شد. طرح لوگو دست‌نخورده می‌ماند و فقط در تم تیره یک زمینه‌ی روشن پشتش قرار می‌گیرد. */
html:not([data-theme="light"]) .xg-brand-img,
html:not([data-theme="light"]) .nestor-footer-img,
html:not([data-theme="light"]) .nestor-splash-img,
html:not([data-theme="light"]) .nestor-auth-logo {
	box-sizing: content-box;
	padding: 4px 8px;
	border-radius: 14px;
	background: #fff;
}
html:not([data-theme="light"]) .nestor-auth-logo { padding: 6px; border-radius: 18px; }
.nestor-footer-logo:hover { color: var(--c-primary); }
.nestor-footer-desc { font-size: 13px; line-height: 2; color: var(--c-text-muted); max-width: 300px; }
@media (max-width: 639px) { .nestor-footer-desc { max-width: 100%; margin-inline: auto; } }

/* شبکه‌های اجتماعی — پیل‌های گرد مدرن */
.nestor-footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 639px) { .nestor-footer-social { justify-content: center; } }
.nestor-footer-social a {
	width: 42px; height: 42px;
	background: var(--c-surface-2);
	border: 1px solid var(--c-border);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: var(--c-text-muted);
	transition: transform .18s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.nestor-footer-social a:hover {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--c-primary) 70%, transparent);
}

.nestor-footer-col h4 {
	position: relative;
	font-size: 14px; font-weight: 800; color: var(--c-white);
	margin-bottom: 18px; padding-bottom: 12px;
}
.nestor-footer-col h4::after {
	content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0;
	width: 34px; height: 2px; border-radius: 2px; background: var(--c-primary);
}
@media (max-width: 639px) { .nestor-footer-col h4::after { inset-inline: 0; margin-inline: auto; } }
.nestor-footer-col ul { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 639px) { .nestor-footer-col ul { align-items: center; } }
.nestor-footer-col a {
	font-size: 13.5px; color: var(--c-text-muted);
	display: inline-flex; align-items: center; gap: 7px;
	transition: color 0.2s, transform 0.15s;
}
.nestor-footer-col a::before { content: '›'; color: var(--c-primary); font-size: 16px; font-weight: 900; }
.nestor-footer-col a:hover { color: var(--c-primary); transform: translateX(-3px); }

.nestor-footer-contact-list { gap: 14px; }
@media (max-width: 639px) { .nestor-footer-contact-list { align-items: center; } }
.nestor-footer-contact-list li {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 12px; border: 1px solid var(--c-border); border-radius: 12px;
	background: var(--c-surface-2); transition: border-color .2s;
}
.nestor-footer-contact-list li:hover { border-color: rgba(80,181,72,0.35); }
.nestor-footer-contact-list li a,
.nestor-footer-contact-list li span { font-size: 13px; color: var(--c-text-muted); }
.nestor-footer-contact-list li .fc-icon {
	display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0;
	border-radius: 9px; background: color-mix(in srgb, var(--c-primary) 12%, transparent);
	color: var(--c-primary); font-size: 15px;
}
.nestor-footer-contact-list li a::before,
.nestor-footer-contact-list li span::before { display: none; }
.nestor-footer-contact-list li a:hover { color: var(--c-primary); }

.nestor-fc-icon {
	width: 28px; height: 28px;
	background: rgba(80,181,72,0.08);
	border-radius: 7px;
	display: flex; align-items: center; justify-content: center;
	color: var(--c-primary);
	flex-shrink: 0;
}
.nestor-fc-icon svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }

.nestor-footer-bottom {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 14px;
	padding: 20px 0 24px;
	font-size: 12.5px; color: var(--c-text-muted);
}
@media (max-width: 639px) { .nestor-footer-bottom { flex-direction: column; text-align: center; } }
.nestor-footer-bottom a { color: var(--c-text-muted); transition: color 0.2s; }
.nestor-footer-bottom a:hover { color: var(--c-primary); }
.nestor-footer-bottom-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.nestor-footer-bottom-links a { position: relative; font-weight: 600; }
.nestor-footer-bottom-links a:not(:last-child)::after {
	content: ""; position: absolute; inset-inline-start: -9px; inset-block: 3px;
	width: 1px; background: var(--c-border);
}
.nestor-footer-bottom-links { display: flex; gap: 16px; }

/* اینماد و نمادهای اعتماد */
.nestor-footer-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px 0;
	margin-top: 8px;
	border-top: 1px solid var(--c-border);
	flex-wrap: wrap;
}
.nestor-trust-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 90px;
	min-height: 90px;
	padding: 10px;
	border: 1px solid var(--c-border);
	border-radius: 16px;
	background: var(--c-surface-2);
	transition: border-color .2s, transform .2s, box-shadow .2s;
}
.nestor-trust-badge:hover { border-color: rgba(80,181,72,0.4); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }
.nestor-trust-badge img,
.nestor-trust-badge a img { display: block; width: auto; max-width: 100%; height: auto; max-height: 90px; border-radius: 8px; }
.nestor-trust-badge span { font-size: 11px; color: var(--c-text-muted); }

/* ══════════════════════════════════════════
   13. Blog
══════════════════════════════════════════ */
.nestor-post-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	overflow: hidden;
	transition: var(--ease);
}
.nestor-post-card:hover { border-color: rgba(80,181,72,0.25); transform: translateY(-2px); }
.nestor-post-thumbnail img { width: 100%; height: 200px; object-fit: cover; }
.nestor-post-body { padding: 20px; }
.nestor-post-meta { display: flex; gap: 12px; font-size: 12px; color: var(--c-text-muted); margin-bottom: 10px; }
.nestor-post-meta a { color: var(--c-primary); font-weight: 600; }
.nestor-post-body h2 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.nestor-post-body h2 a { color: var(--c-white); }
.nestor-post-body h2 a:hover { color: var(--c-primary); }
.nestor-post-excerpt { font-size: 13px; line-height: 1.7; color: var(--c-text-muted); margin-bottom: 16px; }
.nestor-read-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-primary);
}
.nestor-read-more::after { content: '←'; }
.nestor-read-more:hover { color: var(--c-primary-l); }

/* پیجینیشن */
.nestor-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.nestor-pagination a,
.nestor-pagination span {
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 8px;
	font-weight: 600;
	color: var(--c-text-muted);
	transition: var(--ease);
}
.nestor-pagination .current,
.nestor-pagination a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* Single Post */
.nestor-single-post { padding-top: 32px; }
.nestor-single-post .nestor-breadcrumbs {
	max-width: 920px;
	margin: 0 auto 22px;
	color: var(--c-text-muted);
	font-size: 13px;
}
.nestor-single-post .nestor-breadcrumbs a { color: var(--c-text-muted); }
.nestor-post-header {
	max-width: 920px;
	margin: 0 auto 28px;
	padding: 28px 32px;
	text-align: center;
	background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 28px;
	box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}
.nestor-post-header__top {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 18px;
}
.nestor-post-backlink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.08);
	color: var(--c-text);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.nestor-post-backlink:hover {
	color: #fff;
	border-color: rgba(80,181,72,0.4);
	background: rgba(80,181,72,0.12);
}
.nestor-post-categories {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 16px;
}
.nestor-post-categories a {
	display: inline-flex;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(80,181,72,0.12);
	border: 1px solid rgba(80,181,72,0.24);
	color: var(--c-primary);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}
.nestor-post-header .entry-title {
	margin: 0 0 18px;
	font-size: clamp(2rem, 5vw, 3.4rem);
	line-height: 1.15;
	letter-spacing: -.03em;
}
.nestor-post-meta-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--c-text-muted);
	font-size: 14px;
}
.nestor-post-meta-header > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 999px;
}
.nestor-post-featured-image {
	max-width: 920px;
	border-radius: 28px;
	overflow: hidden;
	margin: 0 auto 40px;
	border: 1px solid rgba(255,255,255,0.08);
	box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.nestor-post-featured-image img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 8;
	object-fit: cover;
}
.nestor-post-content {
	max-width: 820px;
	margin: 0 auto 34px;
	padding: 30px 34px;
	font-size: 1.05rem;
	line-height: 2;
	color: var(--c-text);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 28px;
	box-shadow: 0 18px 48px rgba(0,0,0,0.16);
}
.nestor-post-content h2,
.nestor-post-content h3 {
	margin-top: 2em;
	margin-bottom: .65em;
	line-height: 1.35;
}
.nestor-post-content p,
.nestor-post-content ul,
.nestor-post-content ol { margin-bottom: 1.5em; }
.nestor-post-content a { color: var(--c-primary); }
.nestor-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
}
.nestor-post-content blockquote {
	border-right: 4px solid var(--c-primary);
	padding: 16px 20px;
	background: var(--c-surface);
	border-radius: 0 var(--r-sm) var(--r-sm) 0;
	margin: 2em 0;
}
.nestor-post-content pre,
.nestor-post-content code {
	background: var(--c-surface);
	border-radius: 6px;
	font-family: monospace;
}
.nestor-post-content pre { padding: 20px; overflow-x: auto; }
.nestor-post-content code { padding: 2px 6px; font-size: .9em; }
.nestor-post-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding-top: 20px;
	margin-top: 24px;
	border-top: 1px solid var(--c-border);
}
.nestor-tags-label {
	color: var(--c-text-muted);
	font-size: 13px;
	font-weight: 700;
}
.nestor-post-tags__items {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.nestor-post-tags__items a {
	display: inline-flex;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	color: var(--c-text);
	text-decoration: none;
}
.nestor-author-box,
.nestor-post-navigation,
.comments-area {
	max-width: 820px;
	margin: 0 auto 28px;
	padding: 26px 30px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 24px;
	box-shadow: 0 18px 48px rgba(0,0,0,0.14);
}
.nestor-author-box {
	display: flex;
	align-items: center;
	gap: 18px;
}
.nestor-author-avatar img {
	display: block;
	border-radius: 50%;
}
.nestor-author-label {
	display: inline-flex;
	margin-bottom: 8px;
	color: var(--c-primary);
	font-size: 12px;
	font-weight: 800;
}
.nestor-author-info h4 {
	margin: 0 0 8px;
	font-size: 1.2rem;
}
.nestor-author-info p {
	margin: 0;
	color: var(--c-text-muted);
	line-height: 1.9;
}
.nestor-post-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.nestor-post-navigation a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 18px;
	color: var(--c-text);
	text-decoration: none;
	min-height: 100%;
}
.nestor-nav-next { text-align: left; }
.nestor-post-navigation__label {
	color: var(--c-text-muted);
	font-size: 12px;
	font-weight: 700;
}
.nestor-post-navigation strong {
	font-size: 15px;
	line-height: 1.7;
}
.comments-area__header {
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--c-border);
}
.title-comments,
.comment-reply-title {
	margin: 0 0 8px;
	font-size: clamp(1.45rem, 3vw, 2rem);
}
.comments-area__subtitle,
.comment-notes,
.logged-in-as {
	margin: 0 0 12px;
	color: var(--c-text-muted);
	font-size: 14px;
	line-height: 1.9;
}
.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.comment-list .children {
	list-style: none;
	margin: 16px 0 0;
	padding: 0 20px 0 0;
}
.nestor-comment {
	padding: 0;
	margin: 0;
}
.nestor-comment-inner {
	display: flex;
	gap: 14px;
	padding: 18px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 20px;
}
.nestor-comment-avatar img {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 50%;
}
.nestor-comment-content {
	flex: 1;
	min-width: 0;
}
.nestor-comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.nestor-comment-author {
	font-size: 15px;
}
.nestor-comment-date {
	color: var(--c-text-muted);
	font-size: 12px;
}
.nestor-comment-text {
	color: var(--c-text);
	line-height: 1.9;
}
.nestor-comment-actions {
	margin-top: 10px;
}
.nestor-comment-actions a {
	color: var(--c-primary);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.comment-respond {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--c-border);
}
.nestor-comment-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.comment-form-comment,
.comment-form-cookies-consent,
.form-submit,
.logged-in-as { grid-column: 1 / -1; }
.nestor-comment-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-text);
}
.nestor-comment-form input,
.nestor-comment-form textarea {
	width: 100%;
	padding: 14px 16px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 16px;
	color: var(--c-text);
	font: inherit;
}
.nestor-comment-form textarea {
	min-height: 180px;
	resize: vertical;
}
.nestor-comment-form input:focus,
.nestor-comment-form textarea:focus {
	outline: none;
	border-color: rgba(80,181,72,0.55);
	box-shadow: 0 0 0 4px rgba(80,181,72,0.12);
}
.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--c-text-muted);
	font-size: 13px;
}
.comment-form-cookies-consent input {
	width: auto;
	margin: 0;
}
.form-submit { margin: 0; }
.comments-area .navigation {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 18px 0;
}
.comments-area .navigation a {
	color: var(--c-primary);
	text-decoration: none;
	font-weight: 700;
}

/* ══════════════════════════════════════════
   14. Dashboard کاربری
══════════════════════════════════════════ */
.nestor-dashboard-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media (min-width: 1024px) { .nestor-dashboard-layout { grid-template-columns: 300px 1fr; } }
.nestor-dashboard-sidebar { display: flex; flex-direction: column; gap: 20px; }
.nestor-dashboard-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	padding: 24px;
}
.nestor-dashboard-card .card-header {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; margin-bottom: 20px; padding-bottom: 16px;
	border-bottom: 1px solid var(--c-border);
}
.nestor-dashboard-card .card-header h3 { color: var(--c-primary); font-size: 15px; margin: 0; }

.nestor-profile-card { text-align: center; position: relative; overflow: hidden; }
.nestor-profile-card .profile-bg {
	position: absolute; top: 0; left: 0; right: 0; height: 80px;
	background: linear-gradient(to bottom, rgba(80,181,72,0.15), transparent);
}
.nestor-profile-card .profile-avatar {
	width: 76px; height: 76px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f97316, #eab308);
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-weight: 900; font-size: 2rem;
	margin: 0 auto 14px;
	border: 3px solid var(--c-surface);
	position: relative; z-index: 2;
}

/* ══════════════════════════════════════════
   15. Responsive — مبایل اول
══════════════════════════════════════════ */
@media (max-width: 639px) {
	html, body { overflow-x: clip; max-width: 100vw; }
	.nestor-container { padding-inline: 14px; }
	.nestor-post-content { font-size: 1rem; }
	.nestor-post-header,
	.nestor-post-content,
	.nestor-author-box,
	.nestor-post-navigation,
	.comments-area {
		padding: 20px 18px;
		border-radius: 20px;
	}
	.nestor-post-header__top {
		justify-content: center;
	}
	.nestor-author-box,
	.nestor-post-navigation,
	.nestor-comment-inner,
	.nestor-comment-form {
		grid-template-columns: 1fr;
		flex-direction: column;
	}
	.nestor-nav-next {
		text-align: right;
	}
	.comment-list .children {
		padding-right: 12px;
	}
	.nestor-footer-bottom { flex-direction: column; align-items: flex-start; }
	table { display: block; overflow-x: auto; }
}

/* ══════════════════════════════════════════
   16. Accessibility — skip link
   نکته: از left:-9999px استفاده نمی‌کنیم چون در RTL صفحه را
   ~۱۰۰۰۰px عریض می‌کند (overflow افقی). الگوی clip استاندارد
   وردپرس عنصر را بدون ایجاد اسکرول افقی مخفی می‌کند.
══════════════════════════════════════════ */
.skip-link,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal;
}
.skip-link:focus,
.screen-reader-text:focus {
	top: 16px;
	right: 16px;
	z-index: 9999;
	width: auto;
	height: auto;
	margin: 0;
	padding: 8px 16px;
	overflow: visible;
	clip: auto;
	clip-path: none;
	border-radius: 6px;
	background: var(--c-primary);
	color: #fff;
	white-space: normal;
}


/* ══════════════════════════════════════════
   17. Widgets — Product & Homepage
══════════════════════════════════════════ */

/* ── اسکرول افقی پایه ── */
.nestor-scroll-x {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
	/* پنهان کردن scrollbar ولی scroll‌پذیر */
	scrollbar-width: none;
}
.nestor-scroll-x::-webkit-scrollbar { display: none; }
.nestor-scroll-x > * { flex-shrink: 0; scroll-snap-align: start; }

/* ── کارت محصول (Product Card) ── */
.nestor-product-card {
	width: 168px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	overflow: hidden;
	cursor: pointer;
	transition: var(--ease);
	position: relative;
}
@media (min-width: 640px)  { .nestor-product-card { width: 200px; } }
@media (min-width: 1024px) { .nestor-product-card { width: 220px; } }

.nestor-product-card:hover {
	border-color: rgba(80,181,72,0.3);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* تگ تخفیف */
.nestor-product-card .product-tag {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
	z-index: 2;
	line-height: 1.4;
}
.nestor-product-card .product-tag.tag-new { background: var(--c-primary); }
.nestor-product-card .product-tag.tag-hot { background: #f97316; }

/* تصویر محصول */
.nestor-product-card .product-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--c-surface-2);
	display: flex;
	align-items: center;
	justify-content: center;
}
.nestor-product-card .product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.nestor-product-card:hover .product-image img { transform: scale(1.05); }

/* اطلاعات محصول */
.nestor-product-card .product-info {
	padding: 12px;
}
.nestor-product-card .product-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--c-white);
	margin: 0 0 8px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nestor-product-card .product-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}
.nestor-product-card .product-price {
	font-weight: 900;
	color: var(--c-primary);
	font-size: 14px;
	line-height: 1.3;
}
/* WooCommerce price HTML */
.nestor-product-card .product-price del {
	color: #555;
	font-size: 11px;
	font-weight: 400;
	display: block;
}
.nestor-product-card .product-price ins {
	text-decoration: none;
	color: var(--c-primary);
}
.nestor-product-card .product-rating {
	font-size: 11px;
	color: #f59e0b;
	font-weight: 600;
	white-space: nowrap;
}

/* ── دسته‌بندی (Category Card) ── */
.nestor-cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	flex-shrink: 0;
	width: 90px;
}
.cat-icon-wrap {
	width: 72px;
	height: 72px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--ease);
	font-size: 28px;
}
.cat-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.nestor-cat-card:hover .cat-icon-wrap {
	border-color: var(--c-primary);
	box-shadow: 0 0 16px rgba(80,181,72,0.2);
}
.cat-name {
	font-size: 12px;
	font-weight: 700;
	color: var(--c-white);
	text-align: center;
	line-height: 1.3;
}
.cat-count {
	font-size: 11px;
	color: var(--c-text-muted);
	text-align: center;
}

/* ── Section Title ── */
.nestor-section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}
.nestor-section-title h2 {
	font-size: 1.2rem;
	font-weight: 900;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}
.nestor-section-title a {
	font-size: 13px;
	font-weight: 700;
	color: var(--c-primary);
	white-space: nowrap;
}
.nestor-section-title a:hover { color: var(--c-primary-l); }

/* ── شمارش معکوس (Countdown) ── */
.nestor-countdown-banner {
	background: linear-gradient(135deg, #0d1117 0%, #1a1a1a 100%);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	padding: 32px 24px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.countdown-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.5);
	border-radius: inherit;
}
.countdown-content {
	position: relative;
	z-index: 1;
}
.countdown-content h3 {
	font-size: 1.5rem;
	font-weight: 900;
	margin-bottom: 24px;
}
.nestor-countdown-timer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}
.cd-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: rgba(255,255,255,0.06);
	border: 1px solid var(--c-border);
	border-radius: 10px;
	padding: 12px 16px;
	min-width: 64px;
}
.cd-val {
	font-size: 1.75rem;
	font-weight: 900;
	color: var(--c-primary);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.cd-lbl {
	font-size: 11px;
	color: var(--c-text-muted);
	margin-top: 4px;
	font-weight: 600;
}

/* ── مزایا (Trust Badges) ── */
.nestor-trust-badges {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
@media (min-width: 640px)  { .nestor-trust-badges { grid-template-columns: repeat(4, 1fr); } }

.trust-badge-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	padding: 16px;
	transition: var(--ease);
}
.trust-badge-item:hover { border-color: rgba(80,181,72,0.25); }
.trust-icon {
	width: 40px;
	height: 40px;
	background: rgba(80,181,72,0.08);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}
.trust-info h4 {
	font-size: 13px;
	font-weight: 700;
	color: var(--c-white);
	margin: 0 0 3px;
}
.trust-info p {
	font-size: 11px;
	color: var(--c-text-muted);
	margin: 0;
	line-height: 1.5;
}

/* ── CTA Banner ── */
.nestor-cta-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-radius: var(--r-lg);
	padding: 28px 32px;
	flex-wrap: wrap;
}
.nestor-cta-banner .cta-content { flex: 1; }
.nestor-cta-banner h3 {
	font-size: 1.3rem;
	font-weight: 900;
	color: #fff;
	margin-bottom: 6px;
}
.nestor-cta-banner p {
	font-size: 14px;
	color: rgba(255,255,255,0.75);
	margin: 0;
}

/* ── Hero Slider ── */
.nestor-hero-slider { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.hero-slider-track { position: relative; }
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.nestor-hero-banner { display: block; position: relative; }
.nestor-hero-banner img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
@media (max-width: 639px) { .nestor-hero-banner img { aspect-ratio: 4/3; } }
.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}
.hero-info-box {
	position: absolute;
	bottom: 20px;
	right: 20px;
	left: 20px;
	background: rgba(17,17,17,0.85);
	backdrop-filter: blur(12px);
	border-radius: var(--r-md);
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--c-border);
}
.hero-icon {
	width: 40px;
	height: 40px;
	background: rgba(80,181,72,0.15);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}
.hero-slider-dots {
	position: absolute;
	bottom: 80px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 5;
}
.hero-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255,255,255,0.35);
	border: none;
	cursor: pointer;
	transition: var(--ease);
	padding: 0;
}
.hero-dot.active {
	width: 24px;
	border-radius: 4px;
	background: var(--c-primary);
}

/* ── Widget محصولات پرفروش (sidebar) ── */
.nestor-widget-products { display: flex; flex-direction: column; gap: 12px; }
.nestor-widget-product-item {
	display: flex;
	gap: 12px;
	align-items: center;
	text-decoration: none;
	padding: 10px;
	background: var(--c-surface);
	border-radius: 10px;
	border: 1px solid var(--c-border);
	transition: var(--ease);
}
.nestor-widget-product-item:hover { border-color: rgba(80,181,72,0.25); }
.wp-item-img {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--c-surface-2);
	position: relative;
}
.wp-item-img img { width: 100%; height: 100%; object-fit: cover; }
.wp-item-badge {
	position: absolute;
	top: 2px;
	right: 2px;
	background: #ef4444;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	padding: 1px 4px;
	border-radius: 4px;
}
.wp-item-info { flex: 1; min-width: 0; }
.wp-item-title {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-white);
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wp-item-price { font-size: 12px; font-weight: 900; color: var(--c-primary); }

/* ── Grid محصولات در آرشیو ── */
.nestor-products-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
@media (min-width: 640px)  { .nestor-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .nestor-products-grid { grid-template-columns: repeat(4, 1fr); } }

/* در grid محصول کارت full width داره */
.nestor-products-grid .nestor-product-card { width: 100%; }

/* ── Quick link داشبورد ── */
.nestor-quick-link {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	padding: 18px 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	transition: var(--ease);
}
.nestor-quick-link:hover {
	border-color: rgba(80,181,72,0.3);
	background: rgba(80,181,72,0.04);
}
.nestor-quick-link span:first-child { font-size: 28px; }
.nestor-quick-link span:last-child  { font-size: 11px; color: var(--c-text-muted); font-weight: 700; }

/* ── Order stats (داشبورد) ── */
.nestor-order-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	padding: 16px;
	text-align: center;
}
.order-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

/* ── Free Shipping Bar ── */
.nestor-shipping-bar {
	background: rgba(80,181,72,0.06);
	border: 1px solid rgba(80,181,72,0.2);
	border-radius: var(--r-sm);
	padding: 12px 16px;
	margin-bottom: 20px;
	text-align: center;
}
.nestor-shipping-bar p {
	font-size: 13px;
	font-weight: 600;
	color: var(--c-text);
	margin: 0 0 8px;
}
.nestor-shipping-bar p strong { color: var(--c-primary); }
.nestor-shipping-bar p span   { color: var(--c-primary); }
.shipping-bar-track {
	background: rgba(255,255,255,0.08);
	border-radius: 99px;
	height: 6px;
	overflow: hidden;
}
.shipping-bar-progress {
	height: 100%;
	background: var(--c-primary);
	border-radius: 99px;
	transition: width 0.4s ease;
}

/* ── Sale Badge روی محصولات ── */
.nestor-sale-badge {
	display: inline-block;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 6px;
}


/* ══════════════════════════════════════════
   18. Homepage — template-home.php
══════════════════════════════════════════ */

/* ── Section پایه ── */
.nestor-section {
	padding: 48px 0;
}
.nestor-section + .nestor-section {
	padding-top: 0;
}

/* ── Section Head ── */
.nestor-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.nestor-section-head h2 { margin: 0; }
.nestor-kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: var(--c-primary);
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 6px;
}

/* ── Hero صفحه اصلی ── */
.nestor-home-hero { padding: 32px 0 48px; }

.nestor-home-hero-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	padding: 40px;
	background: var(--c-surface);
	border-radius: var(--r-xl);
	border: 1px solid var(--c-border);
}
@media (max-width: 767px) {
	.nestor-home-hero-content {
		grid-template-columns: 1fr;
		padding: 24px;
		gap: 28px;
	}
	.nestor-home-hero-visual { display: none; }
}

.nestor-home-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: var(--c-primary);
	background: rgba(80,181,72,0.08);
	border: 1px solid rgba(80,181,72,0.2);
	border-radius: 99px;
	padding: 4px 12px;
	letter-spacing: .06em;
	margin-bottom: 16px;
}

.nestor-home-hero-copy h1 {
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	font-weight: 900;
	margin-bottom: 16px;
}
.nestor-home-hero-copy p {
	font-size: 14px;
	line-height: 2;
	color: var(--c-text-muted);
	margin-bottom: 24px;
}

.nestor-home-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.nestor-home-metrics {
	display: flex;
	gap: 24px;
	margin-top: 28px;
	flex-wrap: wrap;
}
.nestor-home-metrics > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.nestor-home-metrics strong {
	font-size: 18px;
	font-weight: 900;
	color: var(--c-white);
}
.nestor-home-metrics span {
	font-size: 11px;
	color: var(--c-text-muted);
}

/* Visual / stack side */
.nestor-home-hero-visual { position: relative; }
.nestor-home-hero-glow {
	position: absolute;
	inset: -60px;
	background: radial-gradient(circle at center, rgba(80,181,72,0.08) 0%, transparent 70%);
	pointer-events: none;
}
.nestor-home-service-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
	z-index: 1;
}
.nestor-home-stack-card {
	background: var(--c-surface-2);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	padding: 16px 20px;
	transition: var(--ease);
}
.nestor-home-stack-card:hover {
	border-color: rgba(80,181,72,0.3);
	transform: translateX(-4px);
}
.stack-badge {
	font-size: 10px;
	font-weight: 700;
	color: var(--c-primary);
	background: rgba(80,181,72,0.08);
	border-radius: 99px;
	padding: 2px 8px;
	margin-bottom: 6px;
	display: inline-block;
}
.nestor-home-stack-card h3 {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--c-white);
}
.nestor-home-stack-card p {
	font-size: 12px;
	color: var(--c-text-muted);
	margin: 0;
	line-height: 1.5;
}

/* ── کارت سرویس ── */
.nestor-service-grid { gap: 20px; }
.nestor-service-card {
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.nestor-service-card-head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.service-chip {
	font-size: 10px;
	font-weight: 700;
	color: var(--c-primary);
	background: rgba(80,181,72,0.1);
	border: 1px solid rgba(80,181,72,0.2);
	border-radius: 99px;
	padding: 3px 10px;
}
.nestor-service-card-head strong {
	font-size: 13px;
	font-weight: 700;
	color: var(--c-text-muted);
	letter-spacing: .05em;
}
.nestor-service-card h3 {
	font-size: 18px;
	font-weight: 900;
	margin: 0;
}
.nestor-service-card p {
	font-size: 13px;
	line-height: 1.8;
	color: var(--c-text-muted);
	margin: 0;
}
.nestor-service-features {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
}
.nestor-service-features li {
	font-size: 13px;
	color: var(--c-text);
	padding-right: 16px;
	position: relative;
}
.nestor-service-features li::before {
	content: '';
	position: absolute;
	right: 0;
	top: 8px;
	width: 6px;
	height: 6px;
	background: var(--c-primary);
	border-radius: 50%;
}
.nestor-inline-link {
	font-size: 13px;
	font-weight: 700;
	color: var(--c-primary);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
}
.nestor-inline-link::after { content: ' ←'; }
.nestor-inline-link:hover { color: var(--c-primary-l); }

/* ── DNS Showcase ── */
.nestor-dns-showcase {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	padding: 40px;
}
@media (max-width: 767px) {
	.nestor-dns-showcase {
		grid-template-columns: 1fr;
		padding: 24px;
		gap: 24px;
	}
}
.nestor-dns-copy h2 { font-size: 1.75rem; margin-bottom: 12px; }
.nestor-dns-copy p { font-size: 14px; line-height: 1.9; color: var(--c-text-muted); margin-bottom: 24px; }
.nestor-dns-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
.nestor-dns-card {
	background: var(--c-surface-2);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	padding: 20px;
	text-align: center;
	transition: var(--ease);
}
.nestor-dns-card.popular {
	border-color: rgba(80,181,72,0.4);
	background: rgba(80,181,72,0.06);
}
.nestor-dns-card span {
	font-size: 11px;
	font-weight: 700;
	color: var(--c-text-muted);
	text-transform: uppercase;
	letter-spacing: .1em;
	display: block;
	margin-bottom: 6px;
}
.nestor-dns-card h3 {
	font-size: 18px;
	font-weight: 900;
	color: var(--c-white);
	margin: 0 0 6px;
}
a.nestor-dns-card { text-decoration: none; }
a.nestor-dns-card:hover { border-color: var(--c-primary); transform: translateY(-2px); }

/* حالت فشرده‌ی ویجت DNS (نوار یک‌ردیفه) */
.nestor-dns-widget.is-compact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); }
.nestor-dns-compact__head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 900; color: var(--c-white); }
.nestor-dns-compact__badge { padding: 4px 12px; border-radius: 999px; background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 900; }
.nestor-dns-compact__plans { display: flex; flex: 1; flex-wrap: wrap; gap: 10px; }
.nestor-dns-compact__plans .nestor-dns-card { flex: 1; min-width: 110px; padding: 10px 14px; }
.nestor-dns-compact__cta { flex-shrink: 0; }
@media (max-width: 600px) { .nestor-dns-widget.is-compact { flex-direction: column; align-items: stretch; } .nestor-dns-compact__cta { width: 100%; } }

.nestor-dns-card p {
	font-size: 13px;
	color: var(--c-primary);
	font-weight: 700;
	margin: 0;
}

/* ── CTA Banner Dark ── */
.nestor-cta-banner-dark {
	background: linear-gradient(135deg, #0d1117 0%, #1a1a1a 100%);
	border: 1px solid rgba(80,181,72,0.15);
	border-radius: var(--r-xl);
	padding: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.nestor-cta-banner-dark .cta-content { flex: 1; min-width: 240px; }
.nestor-cta-banner-dark h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
.nestor-cta-banner-dark p { font-size: 14px; color: var(--c-text-muted); margin: 0; }

/* ── Editor Content ── */
.nestor-editor-content {
	padding: 32px;
	font-size: 15px;
	line-height: 2;
}
.nestor-editor-content h2,
.nestor-editor-content h3 { margin-top: 1.5em; margin-bottom: .5em; }
.nestor-editor-content p  { color: var(--c-text); margin-bottom: 1.2em; }
.nestor-editor-content a  { color: var(--c-primary); }
.nestor-editor-content ul,
.nestor-editor-content ol { padding-right: 1.5em; margin-bottom: 1.2em; }
.nestor-editor-content li { margin-bottom: .5em; color: var(--c-text); }

/* ── Empty State ── */
.nestor-empty-state {
	padding: 48px 32px;
	text-align: center;
	grid-column: 1 / -1;
}
.nestor-empty-state h3 { margin-bottom: 12px; }
.nestor-empty-state p  { color: var(--c-text-muted); max-width: 500px; margin: 0 auto; }

/* Product placeholder */
.nestor-product-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--c-surface-2);
	font-size: 32px;
	aspect-ratio: 1/1;
}

/* ── Store Main & Categories Strip ── */
.nestor-store-main {
	padding-top: 16px;
	overflow-x: hidden;
}
/* دسته‌بندی‌های صفحه اصلی: شبکه‌ی وسط‌چین و حرفه‌ای (به‌جای نوار اسکرول چپ‌چین). */
.nestor-categories-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
	gap: 14px;
	justify-content: center;
	overflow: visible;
}
.nestor-categories-strip .nestor-cat-card {
	width: auto;
	gap: 10px;
	padding: 18px 10px;
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	background: var(--c-surface);
	transition: var(--ease);
}
.nestor-categories-strip .nestor-cat-card:hover {
	border-color: var(--c-primary);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(80,181,72,0.12);
}
html[data-theme="light"] .nestor-categories-strip .nestor-cat-card {
	box-shadow: 0 2px 10px rgba(15,23,41,.06);
}
.nestor-categories-strip .cat-icon-wrap { width: 58px; height: 58px; font-size: 24px; }
@media (max-width: 480px) { .nestor-categories-strip { grid-template-columns: repeat(3, 1fr); } }

.nestor-categories-strip-legacy {
	padding-bottom: 12px;
}


/* ══════════════════════════════════════════
   19. Blog — رفع آیتم‌های چسبیده
══════════════════════════════════════════ */

/* Hero بلاگ */
.nestor-blog-hero {
	background: linear-gradient(to bottom, rgba(80,181,72,0.06), transparent);
	border-bottom: 1px solid var(--c-border);
	padding: 40px 0 32px;
	margin-bottom: 0;
}
.nestor-blog-hero h1 {
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	margin: 8px 0 0;
}

/* Grid بلاگ — با gap مشخص */
.nestor-blog-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;          /* فاصله بین کارت‌ها */
	margin-bottom: 40px;
}
@media (min-width: 640px) {
	.nestor-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.nestor-blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* کارت پست — ارتفاع یکسان */
.nestor-blog-grid .nestor-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	overflow: hidden;
	transition: var(--ease);
}
.nestor-blog-grid .nestor-post-card:hover {
	border-color: rgba(80,181,72,0.25);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.nestor-blog-grid .nestor-post-thumbnail {
	overflow: hidden;
	aspect-ratio: 16/9;
}
.nestor-blog-grid .nestor-post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.nestor-blog-grid .nestor-post-card:hover .nestor-post-thumbnail img {
	transform: scale(1.04);
}
.nestor-blog-grid .nestor-post-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
}
.nestor-blog-grid .nestor-post-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: var(--c-text-muted);
	flex-wrap: wrap;
}
.nestor-post-cat {
	background: rgba(80,181,72,0.1);
	color: var(--c-primary);
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 99px;
	text-decoration: none;
}
.nestor-blog-grid h2 {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	line-height: 1.5;
}
.nestor-blog-grid h2 a {
	color: var(--c-white);
	text-decoration: none;
}
.nestor-blog-grid h2 a:hover { color: var(--c-primary); }
.nestor-blog-grid .nestor-post-excerpt {
	font-size: 13px;
	color: var(--c-text-muted);
	line-height: 1.7;
	margin: 0;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nestor-blog-grid .nestor-read-more {
	font-size: 13px;
	font-weight: 700;
	color: var(--c-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
}
.nestor-blog-grid .nestor-read-more::after { content: ' ←'; }
.nestor-blog-grid .nestor-read-more:hover { color: var(--c-primary-l); }

/* nestor-grid-3 برای template-archive و template-blog قدیمی */
.nestor-grid.nestor-grid-3 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media (min-width: 640px)  { .nestor-grid.nestor-grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .nestor-grid.nestor-grid-3 { grid-template-columns: repeat(3,1fr); } }

/* ── Search Overlay (Modal) ── */
.nestor-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 80px 16px 16px;
}
.nestor-search-overlay.open {
	display: flex;
}
.search-overlay-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.7);
	backdrop-filter: blur(4px);
}
.search-overlay-content {
	position: relative;
	width: 100%;
	max-width: 620px;
	background: #111;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 24px 60px rgba(0,0,0,0.5);
	animation: nestorSearchPop .2s ease-out;
}
@keyframes nestorSearchPop {
	from { opacity: 0; transform: translateY(-12px); }
	to   { opacity: 1; transform: translateY(0); }
}
.search-overlay-close {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 32px;
	height: 32px;
	border: none;
	background: rgba(255,255,255,0.08);
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}
.search-overlay-close:hover { background: rgba(255,255,255,0.18); }
.search-overlay-input-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 12px;
	padding: 12px 14px;
}
.search-overlay-input-wrap:focus-within { border-color: rgba(80,181,72,0.5); }
.search-overlay-input-wrap input {
	flex: 1;
	background: none;
	border: none;
	outline: none;
	color: #fff;
	font-size: 16px;
}
.search-overlay-input-wrap input::placeholder { color: rgba(255,255,255,0.4); }
.search-overlay-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,0.2);
	border-top-color: #50b548;
	border-radius: 50%;
	animation: nestorSpin .7s linear infinite;
}
@keyframes nestorSpin { to { transform: rotate(360deg); } }
.search-keywords { margin-top: 18px; }
.keywords-label { font-size: 13px; color: rgba(255,255,255,0.6); display: block; margin-bottom: 10px; }
.keywords-list { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-tag {
	border: 1px solid rgba(255,255,255,0.15);
	background: rgba(255,255,255,0.04);
	color: rgba(255,255,255,0.85);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	cursor: pointer;
}
.keyword-tag:hover { border-color: rgba(80,181,72,0.6); color: #fff; }
.search-results { margin-top: 14px; max-height: 50vh; overflow-y: auto; }
.sr-section { margin-bottom: 16px; }
.sr-section h4 { font-size: 13px; color: rgba(255,255,255,0.5); margin: 0 0 8px; }
.sr-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: 10px;
	text-decoration: none;
	color: #fff;
}
.sr-item:hover { background: rgba(255,255,255,0.06); }
.sr-img { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,0.06); }
.sr-img img { width: 100%; height: 100%; object-fit: cover; }
.sr-info { display: flex; flex-direction: column; gap: 2px; }
.sr-title { font-size: 14px; }
.sr-price, .sr-date { font-size: 12px; color: #50b548; }
.sr-empty { text-align: center; padding: 30px 0; color: rgba(255,255,255,0.6); }
.sr-view-all {
	display: block;
	text-align: center;
	margin-top: 8px;
	padding: 12px;
	border-radius: 10px;
	background: rgba(80,181,72,0.15);
	color: #50b548;
	text-decoration: none;
	font-weight: 700;
}
.sr-view-all:hover { background: rgba(80,181,72,0.25); }

/* ── Language Switcher (Header) ── */
.nestor-lang-switcher {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 999px;
	padding: 2px;
}
.nestor-lang-switcher:empty { display: none; }
.nestor-lang-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 30px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	transition: all .15s ease;
}
.nestor-lang-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nestor-lang-item.lang-current { background: #50b548; color: #111; }
/* وقتی پرچم توسط Polylang تزریق می‌شود */
.nestor-lang-switcher img { width: 18px; height: auto; border-radius: 2px; }
.nestor-lang-switcher ul { display: inline-flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nestor-lang-switcher li { margin: 0; }

/* ── LTR support ── */
/* (بخش LTR قدیمی حذف شد — حالت انگلیسی راست‌چین می‌ماند) */

/* ══════════════════════════════════════════
   استوری نستورلند (حلقه‌های اینستاگرامی + نمایشگر تمام‌صفحه)
══════════════════════════════════════════ */
.nestor-stories-wrapper { width: 100%; margin: 8px 0 24px; }
.nestor-stories-scroll {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding: 6px 2px 12px;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
}
.nestor-stories-scroll::-webkit-scrollbar { display: none; }
.nestor-story-item {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 84px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	scroll-snap-align: start;
}
.story-ring {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	padding: 3px;
	background: conic-gradient(from 210deg, var(--c-primary), #eab308, #ec4899, var(--c-primary));
	display: grid;
	place-items: center;
	transition: transform .2s;
}
.nestor-story-item:hover .story-ring { transform: scale(1.06); }
.story-ring.has-video { background: conic-gradient(from 210deg, #ec4899, #8b5cf6, #3b82f6, #ec4899); }
.story-ring img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--c-bg);
	background: var(--c-surface);
}
.story-label {
	max-width: 80px;
	font-size: 11px;
	font-weight: 700;
	color: var(--c-text);
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* نمایشگر تمام‌صفحه */
.nestor-story-viewer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
}
.nestor-story-viewer.is-open { display: flex; }
.story-viewer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.92); backdrop-filter: blur(4px); }
.story-viewer-content {
	position: relative;
	z-index: 1;
	width: min(440px, 100%);
	height: min(92vh, 860px);
	border-radius: 18px;
	overflow: hidden;
	background: #000;
	display: flex;
	flex-direction: column;
}
.story-progress-container { position: absolute; top: 10px; right: 12px; left: 12px; z-index: 3; display: flex; gap: 4px; }
.story-progress-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.story-progress-fill { width: 0; height: 100%; background: #fff; }
.story-viewer-header { position: absolute; top: 22px; right: 12px; left: 12px; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
.story-viewer-user { display: flex; align-items: center; gap: 10px; }
.story-viewer-avatar { width: 34px; height: 34px; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,.5); }
.story-viewer-name { color: #fff; font-size: 13px; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.story-viewer-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 18px; cursor: pointer; }
.story-viewer-media { flex: 1; display: grid; place-items: center; overflow: hidden; }
.story-viewer-media img, .story-viewer-media video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.story-viewer-link { position: absolute; bottom: 22px; right: 0; left: 0; z-index: 3; text-align: center; }
.story-viewer-link a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 999px; background: #fff; color: #111; font-size: 13px; font-weight: 900; text-decoration: none; }
.story-nav { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 2; cursor: pointer; }
.story-nav-prev { right: 0; }
.story-nav-next { left: 0; }
@media (prefers-reduced-motion: reduce) { .story-progress-fill { transition: none !important; } }

/* ── Elementor widgets ── */
.nestor-widget-shell { margin: 24px 0; }

/* مقالات (ویجت «مقالات نستور» + وبلاگ/آرشیو) */
.na-list { --na-accent: var(--c-primary); display: grid; gap: 22px; margin-bottom: 32px; }
.na-list--grid { grid-template-columns: repeat(var(--na-cols, 3), minmax(0, 1fr)); }
.na-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.na-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--na-accent) 40%, transparent); box-shadow: 0 14px 34px var(--c-shadow); }
.na-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--c-surface-2); }
.na-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.na-card:hover .na-card__media img { transform: scale(1.05); }
.na-card__media--ph { display: grid; place-items: center; text-decoration: none; background: radial-gradient(circle at 25% 20%, hsl(var(--na-h, 120) 60% 45% / .55), transparent 60%), radial-gradient(circle at 80% 85%, color-mix(in srgb, var(--na-accent) 45%, transparent), transparent 55%), var(--c-surface-2); }
.na-card__media--ph span { padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 800; color: #fff; background: rgba(0,0,0,.28); backdrop-filter: blur(6px); }
.na-card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 18px 20px 20px; }
.na-card__cat { align-self: flex-start; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--na-accent); background: color-mix(in srgb, var(--na-accent) 12%, transparent); text-decoration: none; }
.na-card__title { margin: 0; font-size: 15.5px; font-weight: 800; line-height: 1.65; }
.na-card__title a { color: var(--c-white); text-decoration: none; }
.na-card__title a::after { content: ""; position: absolute; inset: 0; } /* کل کارت قابل کلیک */
.na-card__cat, .na-card__media { position: relative; z-index: 1; }
.na-card__title a:hover { color: var(--na-accent); }
.na-card__excerpt { margin: 0; font-size: 13px; line-height: 1.85; color: var(--c-text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.na-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--c-border); font-size: 12px; color: var(--c-text-muted); }
.na-card__meta > * + *::before { content: "•"; margin-left: 14px; color: var(--na-accent); }
/* کارت اول بزرگ (وبلاگ) */
.na-list--grid .na-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.na-list--grid .na-card--lead .na-card__media { aspect-ratio: auto; min-height: 300px; }
.na-card--lead .na-card__body { justify-content: center; padding: 28px 32px; gap: 14px; }
.na-card--lead .na-card__title { font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.55; }
.na-card--lead .na-card__excerpt { font-size: 14px; -webkit-line-clamp: 4; }
/* شاخص + لیست */
.na-list--featured { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-auto-rows: auto; }
.na-list--featured .na-card--lead { grid-row: span 4; }
.na-list--featured .na-card--lead .na-card__media { aspect-ratio: 16/11; }
.na-list--featured .na-card:not(.na-card--lead),
.na-list--list .na-card { flex-direction: row; align-items: stretch; }
.na-list--featured .na-card:not(.na-card--lead) .na-card__media,
.na-list--list .na-card__media { flex: 0 0 34%; max-width: 170px; aspect-ratio: auto; min-height: 104px; }
.na-list--featured .na-card:not(.na-card--lead) .na-card__body { padding: 12px 16px; gap: 6px; }
.na-list--featured .na-card:not(.na-card--lead) .na-card__title { font-size: 14px; }
.na-list--featured .na-card:not(.na-card--lead) .na-card__excerpt { display: none; }
.na-list--featured .na-card:not(.na-card--lead) .na-card__meta { padding-top: 6px; border: 0; }
.na-list--list { grid-template-columns: 1fr; gap: 14px; }
.na-list--list .na-card__body { padding: 14px 18px; }
/* اسکرول افقی */
.na-list--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.na-list--scroll .na-card { flex: 0 0 min(300px, 82%); scroll-snap-align: start; }
/* مینیمال (شماره‌دار) */
.na-list--minimal { counter-reset: na; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.na-list--minimal .na-card { counter-increment: na; flex-direction: row; align-items: center; }
.na-list--minimal .na-card__media { display: none; }
.na-list--minimal .na-card::before { content: counter(na); flex: 0 0 auto; margin-right: 16px; font-size: 26px; font-weight: 900; line-height: 1; color: var(--na-accent); opacity: .8; }
.na-list--minimal .na-card__body { padding: 14px 16px; gap: 6px; }
.na-list--minimal .na-card__title { font-size: 14px; }
.na-list--minimal .na-card__meta { padding-top: 0; border: 0; }
.na-empty { padding: 24px; text-align: center; color: var(--c-text-muted); }
@media (max-width: 1024px) { .na-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
	.na-list--featured { grid-template-columns: 1fr; }
	.na-list--featured .na-card--lead { grid-row: auto; }
	.na-list--grid .na-card--lead { display: flex; }
	.na-list--grid .na-card--lead .na-card__media { aspect-ratio: 16/10; min-height: 0; }
	.na-card--lead .na-card__body { padding: 18px 20px 20px; }
}
@media (max-width: 600px) { .na-list--grid { grid-template-columns: 1fr; } }
html[data-theme="light"] .na-card { border-color: rgba(15,23,42,.09); box-shadow: 0 2px 10px rgba(15,23,42,.05); }
html[data-theme="light"] .na-card:hover { box-shadow: 0 14px 30px rgba(15,23,42,.10); }
html[data-theme="light"] .na-card__title a { color: #0f172a; }

/* ویجت محصول ویژه (کارت افقی) */
.nestor-fp { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px; border: 1px solid var(--c-border); border-radius: var(--r-xl); background: var(--c-surface); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.nestor-fp__media { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--r-lg); background: var(--c-surface-2); }
.nestor-fp__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nestor-fp:hover .nestor-fp__media img { transform: scale(1.05); }
.nestor-fp__off { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 900; }
.nestor-fp__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.nestor-fp__kicker { padding: 5px 14px; border-radius: 999px; background: rgba(80,181,72,.12); color: var(--c-primary); font-size: 12px; font-weight: 900; }
.nestor-fp__title { margin: 0; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.4; }
.nestor-fp__title a { color: inherit; text-decoration: none; }
.nestor-fp__desc { margin: 0; color: var(--c-text-muted); font-size: 14px; line-height: 1.9; }
.nestor-fp__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.nestor-fp__price { color: var(--c-primary); font-size: 1.3rem; font-weight: 900; }
.nestor-fp__price del { color: var(--c-text-muted); font-size: .8em; font-weight: 500; margin-inline-end: 6px; }
.nestor-fp__price ins { text-decoration: none; }
.nestor-fp__empty { padding: 20px; color: #94a3b8; text-align: center; }
@media (max-width: 720px) { .nestor-fp { grid-template-columns: 1fr; } .nestor-fp__media { aspect-ratio: 16/11; } .nestor-fp__btn { width: 100%; } }
.nestor-widget-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: clamp(1.15rem, 2vw, 1.5rem);
}
.nestor-widget-section__title span { color: var(--c-primary); }
.nestor-widget-hero { margin-bottom: 24px; }
.nestor-widget-hero__content {
	flex: 1;
	padding-right: 20px;
	text-align: right;
}
.nestor-widget-hero__content h3 {
	margin: 0 0 6px;
	font-size: 1.1rem;
	font-weight: 900;
}
.nestor-widget-hero__content p {
	margin: 0;
	color: var(--c-primary);
	font-size: 12px;
	font-weight: 700;
}
.nestor-widget-dns__icon {
	display: inline-flex;
	margin-bottom: 8px;
	font-size: 28px;
}
.nestor-dns-card h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}
.nestor-dns-card p {
	margin: 4px 0 0;
	font-size: 12px;
	opacity: .82;
	color: inherit;
}
.nestor-widget-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 28px;
	border-radius: 24px;
	box-shadow: 0 20px 45px rgba(0,0,0,0.22);
}
.nestor-widget-cta__button {
	background: #111;
	color: #fff;
	box-shadow: 0 14px 30px rgba(0,0,0,0.24);
}
.nestor-widget-cta__button:hover { color: #fff; }
.nestor-widget-social-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}
/* کارت شبکه اجتماعی: کارت رنگی با گرادیان برند هر شبکه (قبلاً فقط لینک ساده بود). */
.nestor-social-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 26px 18px;
	border-radius: var(--r-lg);
	color: #fff;
	text-decoration: none;
	text-align: center;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: var(--ease);
	box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.nestor-social-card::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(135deg, #434343, #1a1a1a);
}
.nestor-social-card.instagram::after { background: linear-gradient(135deg, #feda75, #d62976 45%, #962fbf 80%, #4f5bd5); }
.nestor-social-card.telegram::after  { background: linear-gradient(135deg, #37bbfe, #007dbb); }
.nestor-social-card.youtube::after   { background: linear-gradient(135deg, #ff4e45, #c4302b); }
.nestor-social-card:hover { transform: translateY(-4px); color: #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.28); }
.nestor-widget-social__icon {
	font-size: 44px;
	line-height: 1;
	margin-bottom: 10px;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
.nestor-social-card h3 {
	margin: 0 0 4px;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 900;
}
.nestor-widget-social__handle {
	display: inline-flex;
	margin-top: 12px;
	padding: 6px 16px;
	border-radius: 20px;
	background: rgba(255,255,255,0.92);
	color: #202020;
	font-size: 11px;
	font-weight: 900;
}
.nestor-widget-telegram {
	position: relative;
	padding: 24px;
	border: 1px solid rgba(42,171,238,0.3);
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(21,28,35,0.96), rgba(17,17,17,0.96));
}
.nestor-widget-telegram__badge {
	position: absolute;
	top: 24px;
	right: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: #2AABEE;
	color: #fff;
	font-size: 24px;
}
.nestor-widget-telegram__text {
	margin: 0 0 24px;
	padding-right: 80px;
	color: #84a9c0;
	font-size: 13px;
	font-weight: 700;
	line-height: 2.2;
	text-align: justify;
}
.nestor-widget-telegram__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
}
.nestor-widget-telegram__support {
	display: inline-flex;
	padding: 12px 24px;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 12px;
	background: #1a1a1a;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}
.nestor-widget-telegram__button {
	display: inline-flex;
	padding: 12px 32px;
	border-radius: 12px;
	background: #fff;
	color: #2AABEE;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
}
.nestor-widget-contact {
	padding: 24px;
	border-radius: 24px;
}
.nestor-widget-contact h3 {
	margin: 0 0 20px;
	color: var(--c-primary);
	font-weight: 900;
}
.nestor-widget-contact__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}
.nestor-widget-contact__item:last-child { margin-bottom: 0; }
.nestor-widget-contact__icon {
	font-size: 20px;
	line-height: 1;
}
.nestor-widget-contact__item strong {
	color: #fff;
	font-size: 13px;
}
.nestor-widget-contact__item span {
	color: #9a9a9a;
	font-size: 13px;
}
.nestor-widget-contact__accent { color: var(--c-primary) !important; }
.nestor-widget-announcement {
	padding: 12px 16px;
	border-radius: 14px;
	color: #111;
	font-size: 13px;
	font-weight: 800;
	text-align: center;
	box-shadow: 0 14px 34px rgba(0,0,0,0.16);
}
@media (max-width: 767px) {
	.nestor-widget-cta {
		flex-direction: column;
		align-items: stretch;
	}
	.nestor-widget-hero__content,
	.nestor-widget-telegram__text {
		padding-right: 0;
	}
	.nestor-widget-telegram__badge {
		position: static;
		margin-bottom: 16px;
	}
	.nestor-widget-telegram__actions {
		justify-content: flex-start;
	}
}



/* ══════════════════════════════════════════
   20. Single Post — حرفه‌ای
══════════════════════════════════════════ */

/* صفحه */
.nsp-page {
	padding-top: 32px;
	padding-bottom: 80px;
}

/* کارت پایه */
.nsp-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 20px;
}

.nsp-hero-title { font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 800; line-height: 1.4; margin: 0 0 14px; }
.nsp-content-card { padding: 28px 32px; }
@media (max-width: 600px) { .nsp-content-card { padding: 20px 18px; } }

/* Article body */
.nsp-article-body { font-size: 15px; line-height: 2; color: var(--c-text); }
.nsp-article-body > * + * { margin-top: 1.3em; }
.nsp-article-body h2 { font-size: 1.35rem; font-weight: 800; color: var(--c-white); margin: 1.8em 0 .5em; letter-spacing: -.02em; }
.nsp-article-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--c-white); margin: 1.5em 0 .4em; }
.nsp-article-body p  { color: var(--c-text-muted); line-height: 2.05; margin: 0; }
.nsp-article-body a  { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.nsp-article-body ul, .nsp-article-body ol { padding-right: 1.4em; }
.nsp-article-body li { color: var(--c-text-muted); margin-bottom: .5em; line-height: 1.9; }
.nsp-article-body blockquote {
	border-right: 3px solid var(--c-primary);
	padding: 14px 18px;
	background: rgba(80,181,72,0.06);
	border-radius: 0 12px 12px 0;
	margin: 1.4em 0;
}
.nsp-article-body blockquote p { color: var(--c-text); }
.nsp-article-body pre { background: rgba(255,255,255,0.04); border: 1px solid var(--c-border); border-radius: 10px; padding: 18px; overflow-x: auto; font-family: monospace; font-size: .88em; }
.nsp-article-body code { background: rgba(255,255,255,0.04); border: 1px solid var(--c-border); border-radius: 6px; padding: 2px 6px; font-size: .88em; font-family: monospace; }
.nsp-article-body img { border-radius: 12px; }

/* Tags */
.nsp-post-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nsp-tags-label { font-size: 13px; color: var(--c-text-muted); font-weight: 600; }
.nsp-tag {
	display: inline-block;
	background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
	border-radius: 99px; padding: 3px 11px;
	font-size: 12px; color: var(--c-text-muted); text-decoration: none;
}

/* ────────────────────────────
   دیدگاه‌ها + فرم
──────────────────────────── */
.nsp-comments-section { margin-top: 4px; }
.nsp-comments-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.nsp-comments-header h2 { font-size: 1.35rem; font-weight: 700; margin: 0; }

.nsp-comment-card {
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 18px; padding: 18px;
	margin-bottom: 12px;
	transition: transform .2s, border-color .2s;
}
.nsp-comment-card:hover { transform: translateY(-2px); border-color: rgba(80,181,72,0.15); }
.nsp-comment-inner { display: flex; gap: 12px; }
.nsp-avatar-img { border-radius: 12px; width: 48px; height: 48px; object-fit: cover; display: block; }
.nsp-comment-body { flex: 1; min-width: 0; }
.nsp-comment-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.nsp-comment-name { font-size: 14px; font-weight: 700; color: var(--c-white); }
.nsp-comment-time { font-size: 12px; color: var(--c-text-muted); }
.nsp-comment-text { font-size: 13px; line-height: 1.85; color: var(--c-text-muted); }
.nsp-comment-text p { margin: 0; }
.nsp-comment-reply { margin-top: 8px; }
.nsp-comment-reply a {
	font-size: 12px; padding: 4px 12px;
	border-radius: 99px; border: 1px solid rgba(255,255,255,0.1);
	color: var(--c-text-muted); text-decoration: none; transition: all .15s;
}
.nsp-comment-reply a:hover { border-color: rgba(80,181,72,0.3); color: var(--c-primary); }

/* Comment Form */
.nsp-comment-form-title { font-size: 1.35rem; font-weight: 700; margin: 28px 0 6px; }
.nsp-comment-notes { font-size: 12px; color: var(--c-text-muted); margin: 0 0 16px; }
.nsp-comment-form {
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 20px; padding: 22px;
}
.nsp-comment-form p { margin: 0 0 12px; }
.nsp-comment-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 0; }
@media (max-width: 600px) { .nsp-comment-fields-grid { grid-template-columns: 1fr; } }
.nsp-field-wrap { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.nsp-field-wrap span { font-size: 13px; font-weight: 600; color: var(--c-white); }
.nsp-field {
	background: rgba(255,255,255,0.03);
	color: var(--c-white); border: 1px solid rgba(255,255,255,0.1);
	border-radius: 12px; padding: 11px 14px;
	font-family: var(--font); font-size: 14px;
	outline: none; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.nsp-field:focus { border-color: rgba(80,181,72,0.4); box-shadow: 0 0 0 3px rgba(80,181,72,0.1); }
.nsp-field::placeholder { color: var(--c-text-muted); }
.nsp-textarea { min-height: 130px; resize: vertical; }
.nsp-field-cookie { font-size: 12px; color: var(--c-text-muted); display: flex; align-items: center; gap: 8px; margin: 10px 0 18px; cursor: pointer; }
.nsp-submit-btn {
	background: var(--c-primary); color: #fff;
	border: none; border-radius: 99px;
	padding: 11px 28px; font-family: var(--font); font-size: 14px; font-weight: 700;
	cursor: pointer; transition: background .15s, transform .15s; display: inline-flex; align-items: center; gap: 6px;
}
.nsp-submit-btn:hover { background: var(--c-primary-d); transform: translateY(-1px); }
#respond { margin-top: 0; }
#respond p { margin: 0 0 10px; }

/* برگه ساده (page / صفحات ووکامرس مثل سبد خرید، تسویه‌حساب) */
.nsp-plain-page { margin-top: 24px; }
.nsp-plain-page > .nsp-hero-title { margin-top: 0; }


/* ══════════════════════════════════════════
   21. My Account / Dashboard کاربری
══════════════════════════════════════════ */

.nda-page {
	padding-top: 32px;
	padding-bottom: 80px;
}

/* ── Header داشبورد ── */
.nda-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 20px;
	padding: 24px 28px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.nda-header-left { display: flex; align-items: center; gap: 16px; }

.nda-avatar {
	width: 64px; height: 64px;
	border-radius: 20px;
	background: linear-gradient(135deg, #f97316, #eab308);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.6rem; font-weight: 900; color: #fff;
	flex-shrink: 0;
	box-shadow: 0 0 20px rgba(249,115,22,0.3);
}
.nda-welcome { font-size: 12px; color: var(--c-text-muted); margin: 0 0 3px; }
.nda-username { font-size: 1.3rem; font-weight: 800; color: var(--c-white); margin: 0 0 4px; }
.nda-email { font-size: 13px; color: var(--c-text-muted); margin: 0; direction: ltr; text-align: right; }

.nda-logout-btn {
	display: inline-flex; align-items: center; gap: 7px;
	background: rgba(239,68,68,0.08);
	border: 1px solid rgba(239,68,68,0.2);
	color: #ef4444;
	font-size: 13px; font-weight: 700;
	padding: 10px 18px; border-radius: 99px;
	text-decoration: none; transition: all .2s;
}
.nda-logout-btn:hover { background: rgba(239,68,68,0.15); color: #ef4444; }

/* ── WooCommerce wrap ── */
.nda-woo-wrap { width: 100%; }

/* ── WooCommerce My Account layout ── */
.woocommerce-MyAccount-navigation {
	background: var(--c-surface) !important;
	border: 1px solid var(--c-border) !important;
	border-radius: 16px !important;
	padding: 12px !important;
	margin-bottom: 0 !important;
}
.woocommerce-MyAccount-navigation ul {
	list-style: none !important;
	margin: 0 !important; padding: 0 !important;
	display: flex; flex-direction: column; gap: 4px;
}
.woocommerce-MyAccount-navigation li a {
	display: flex !important;
	align-items: center !important;
	padding: 11px 14px !important;
	border-radius: 10px !important;
	color: var(--c-text-muted) !important;
	font-size: 14px !important; font-weight: 600 !important;
	text-decoration: none !important;
	transition: all .15s !important;
	border: 1px solid transparent !important;
}
.woocommerce-MyAccount-navigation li a:hover {
	color: var(--c-white) !important;
	background: rgba(80,181,72,0.07) !important;
	border-color: rgba(80,181,72,0.15) !important;
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--active a {
	background: rgba(80,181,72,0.1) !important;
	color: var(--c-primary) !important;
	border-color: rgba(80,181,72,0.2) !important;
}

/* دو ستون: nav + content — فقط وقتی منوی حساب کاربری وجود دارد (کاربر لاگین کرده).
   در صفحه لاگین/ثبت‌نام این گرید نباید اعمال شود، وگرنه فرم در ستون باریک می‌افتد. */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
	display: grid !important;
	grid-template-columns: 220px 1fr !important;
	gap: 20px !important;
	align-items: start !important;
	width: 100% !important;
}
/* صفحه لاگین — چیدمان تک‌ستونه و عرض کامل */
.woocommerce-account .woocommerce:not(:has(.woocommerce-MyAccount-navigation)) {
	display: block;
	width: 100%;
}
/* fallback مستقل از :has — کارت لاگین داشبورد همیشه تک‌ستونه */
.nda-login-card .woocommerce {
	display: block !important;
	grid-template-columns: none !important;
	width: 100% !important;
}
.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation {
	grid-column: 1 !important;
}
.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
	grid-column: 2 !important;
	background: var(--c-surface) !important;
	border: 1px solid var(--c-border) !important;
	border-radius: 16px !important;
	padding: 28px 32px !important;
	color: var(--c-text) !important;
	min-height: 400px;
}
@media (max-width: 767px) {
	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
		grid-template-columns: 1fr !important;
	}
	.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation {
		grid-column: 1 !important;
	}
	.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
		grid-column: 1 !important;
		padding: 20px 18px !important;
	}
}

/* محتوای داخل my account */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
	color: var(--c-white) !important;
	font-size: 1.1rem !important; font-weight: 700 !important;
	margin: 0 0 16px !important;
}
.woocommerce-MyAccount-content p {
	color: var(--c-text-muted) !important;
	font-size: 14px !important; line-height: 1.8 !important;
}
.woocommerce-MyAccount-content a {
	color: var(--c-primary) !important;
}
.woocommerce-MyAccount-content a:hover {
	color: var(--c-primary-l) !important;
}

/* جدول سفارشات */
.woocommerce-MyAccount-content table.woocommerce-orders-table {
	width: 100% !important;
	border-collapse: collapse !important;
	font-size: 13px !important;
}
.woocommerce-MyAccount-content table thead th {
	padding: 10px 14px !important;
	text-align: right !important;
	font-weight: 700 !important;
	color: var(--c-text-muted) !important;
	border-bottom: 1px solid var(--c-border) !important;
	background: rgba(255,255,255,0.02) !important;
	font-size: 11px !important;
	text-transform: uppercase !important;
	letter-spacing: .05em !important;
}
.woocommerce-MyAccount-content table tbody td {
	padding: 12px 14px !important;
	border-bottom: 1px solid rgba(255,255,255,0.04) !important;
	color: var(--c-text) !important;
	vertical-align: middle !important;
}
.woocommerce-MyAccount-content table tbody tr:last-child td {
	border-bottom: none !important;
}

/* فرم‌های WooCommerce */
.woocommerce-MyAccount-content .woocommerce-form input,
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"] {
	background: rgba(255,255,255,0.04) !important;
	border: 1px solid rgba(255,255,255,0.1) !important;
	border-radius: 10px !important;
	color: var(--c-white) !important;
	padding: 11px 14px !important;
	font-family: var(--font) !important;
	font-size: 14px !important;
	width: 100% !important;
	transition: border-color .2s !important;
}
.woocommerce-MyAccount-content input:focus {
	border-color: rgba(80,181,72,0.4) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(80,181,72,0.1) !important;
}
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"] {
	background: var(--c-primary) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 99px !important;
	padding: 11px 24px !important;
	font-family: var(--font) !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	cursor: pointer !important;
	transition: background .2s !important;
}
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover {
	background: var(--c-primary-d) !important;
}

/* لیبل‌ها */
.woocommerce-MyAccount-content label {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--c-white) !important;
	display: block !important;
	margin-bottom: 6px !important;
}

/* order status badges */
.woocommerce-order-status {
	display: inline-flex !important;
	align-items: center !important;
	padding: 3px 10px !important;
	border-radius: 99px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
}
.woocommerce-order-status.status-completed { background: rgba(80,181,72,0.1) !important; color: var(--c-primary) !important; }
.woocommerce-order-status.status-processing { background: rgba(59,130,246,0.1) !important; color: #60a5fa !important; }
.woocommerce-order-status.status-pending { background: rgba(234,179,8,0.1) !important; color: #eab308 !important; }
.woocommerce-order-status.status-cancelled { background: rgba(239,68,68,0.1) !important; color: #ef4444 !important; }

/* ── صفحه لاگین ── */
.nda-login-wrap {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 40px 0;
}
.nda-login-card {
	position: relative;
	overflow: hidden;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: 2rem;
	padding: 32px 28px;
	width: 100%;
	max-width: 480px;
	text-align: center;
}
/* هاله سبز گوشه (مطابق ماکت) */
.nda-login-card::before {
	content: '';
	position: absolute;
	top: -80px;
	inset-inline-end: -80px;
	width: 180px;
	height: 180px;
	background: rgba(80,181,72,0.12);
	filter: blur(50px);
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}
.nda-login-card > * { position: relative; z-index: 1; }

.nda-login-icon {
	width: 72px; height: 72px;
	background: rgba(80,181,72,0.1);
	border: 1px solid rgba(80,181,72,0.25);
	border-radius: 24px;
	display: flex; align-items: center; justify-content: center;
	color: var(--c-primary);
	margin: 0 auto 20px;
	box-shadow: 0 10px 30px rgba(80,181,72,0.12);
}
.nda-login-card h1 { font-size: 1.4rem; font-weight: 800; margin: 0 0 10px; }
.nda-login-card > p { font-size: 14px; color: var(--c-text-muted); margin: 0 0 24px; line-height: 1.8; }

/* فرم WooCommerce Login */
.nda-login-card .woocommerce,
.nda-login-card .woocommerce-notices-wrapper { width: 100%; max-width: 100%; float: none; text-align: right; }
/* ستون‌ها را از float خارج کن (چیدمان با گرید انجام می‌شود) */
.nda-login-card .u-columns,
.nda-login-card .col2-set { width: 100%; max-width: 100%; float: none; text-align: right; }

/* ── ورود + ثبت‌نام کنار هم (وقتی ثبت‌نام فعال است) ── */
/* کارت در حالت دو فرمی عریض‌تر می‌شود (کلاس از PHP + fallback با :has) */
.nda-login-card.has-register,
.nda-login-card:has(#customer_login .col-2) { max-width: 920px; }
/* گرید mobile-first: زیر ۷۶۸px دقیقاً یک track؛ محدود به Account_Auth_View */
.nda-login-card #customer_login,
.nda-login-card .woocommerce #customer_login {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 24px;
	/* کارت‌ها از بالا هم‌تراز می‌شوند (مطابق design: ALIGN_ITEMS start) */
	align-items: start !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	/* جلوگیری از overflow افقی ناشی از ستون‌ها */
	min-width: 0;
	box-sizing: border-box;
}
/* clearfix قدیمی WooCommerce نباید به‌عنوان آیتم گرید شرکت کند */
.nda-login-card #customer_login::before,
.nda-login-card #customer_login::after,
.nda-login-card .woocommerce #customer_login::before,
.nda-login-card .woocommerce #customer_login::after {
	content: none !important;
	display: none !important;
}
@media (min-width: 768px) {
	/* از ۷۶۸px به بالا دقیقاً دو track برابر؛ minmax(0,1fr) تا محتوا overflow نسازد */
	.nda-login-card.has-register #customer_login,
	.nda-login-card.has-register .woocommerce #customer_login,
	.nda-login-card:has(#customer_login .col-2) #customer_login {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 28px;
	}
	/* ── ترتیب منطقی ستون‌های auth (Requirements 2.3, 2.4) ──
	   ترتیب را صریح و قطعی می‌کنیم تا مستقل از ترتیب DOM افزونه و در هر دو زبان درست بماند.
	   Login_Column (.u-column1) در سمت آغاز منطقی (inline-start) و
	   Registration_Column (.u-column2) در سمت پایان منطقی (inline-end).
	   جریان منطقی گرید جهت را از direction سند می‌گیرد (در RTL آغاز = راست، در LTR آغاز = چپ)؛
	   هیچ direction سراسری اینجا ست یا تغییر نمی‌شود و از property فیزیکی left/right استفاده نمی‌کنیم. */
	.nda-login-card.has-register #customer_login > .u-column1,
	.nda-login-card.has-register .woocommerce #customer_login > .u-column1,
	.nda-login-card:has(#customer_login .col-2) #customer_login > .u-column1 {
		order: 1 !important;
	}
	.nda-login-card.has-register #customer_login > .u-column2,
	.nda-login-card.has-register .woocommerce #customer_login > .u-column2,
	.nda-login-card:has(#customer_login .col-2) #customer_login > .u-column2 {
		order: 2 !important;
	}
	/* ترازبندی متن داخل ستون‌ها با خاصیت منطقی (نه physical left/right) */
	.nda-login-card.has-register #customer_login > .u-column1,
	.nda-login-card.has-register #customer_login > .u-column2 {
		text-align: start;
	}
}
/* هر ستون یک کارت مستقل — float/width ووکامرس باید کامل غیرفعال شود تا گرید کار کند */
.nda-login-card #customer_login > .u-column1,
.nda-login-card #customer_login > .u-column2,
.nda-login-card #customer_login > div {
	float: none !important;
	width: auto !important;
	max-width: 100% !important;
	margin: 0 !important;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: 1.5rem;
	padding: 24px 22px;
	/* min-width:0 مانع از overflow محتوای داخل ستون گرید می‌شود */
	min-width: 0;
	box-sizing: border-box;
	overflow-wrap: break-word;
}
/* حالت روز: ستون‌های فرم روشن بمانند */
html[data-theme="light"] .nda-login-card #customer_login > .u-column1,
html[data-theme="light"] .nda-login-card #customer_login > .u-column2,
html[data-theme="light"] .nda-login-card #customer_login > div {
	background: var(--c-surface-2);
}
/* کنترل‌ها و متن‌ها را داخل عرض ستون نگه دار (جلوگیری از horizontal overflow) */
.nda-login-card #customer_login > .u-column1 *,
.nda-login-card #customer_login > .u-column2 *,
.nda-login-card #customer_login > div * {
	max-width: 100%;
	box-sizing: border-box;
}
/* فرم ثبت‌نام — هم‌سطح با فرم ورود */
.nda-login-card .woocommerce form.register {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	width: 100%;
	text-align: right;
}
.nda-login-card .woocommerce form.register .form-row,
.nda-login-card .woocommerce form.register .woocommerce-form-row { margin-bottom: 14px; width: 100%; padding: 0; }
.nda-login-card .woocommerce form.register label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--c-white);
	margin-bottom: 6px;
}
/* فیلدهای کارت ورود/ثبت‌نام — گرد و جادار (مطابق ماکت) */
.nda-login-card .woocommerce input[type="text"],
.nda-login-card .woocommerce input[type="email"],
.nda-login-card .woocommerce input[type="password"],
.nda-login-card .woocommerce input[type="tel"] {
	width: 100%;
	min-height: 50px;
	background: var(--c-input-bg);
	border: 1px solid var(--c-border);
	border-radius: 16px;
	color: var(--c-white);
	padding: 14px 16px;
	font-family: var(--font);
	font-size: 14px;
}
.nda-login-card .woocommerce input:focus {
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(80,181,72,0.12);
	outline: none;
}
/* دکمه‌های کارت ورود/ثبت‌نام — گوشه ۱۶px و سایه سبز (مطابق ماکت) */
.nda-login-card .woocommerce .button,
.nda-login-card .woocommerce button[type="submit"],
.nda-login-card .woocommerce form.register .woocommerce-button,
.nda-login-card .woocommerce form.register button[type="submit"] {
	background: var(--c-primary) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 16px !important;
	min-height: 52px !important;
	padding: 14px 28px !important;
	font-family: var(--font) !important;
	font-size: 15px !important;
	font-weight: 900 !important;
	width: 100% !important;
	cursor: pointer !important;
	margin-top: 4px !important;
	box-shadow: 0 10px 24px rgba(80,181,72,0.22) !important;
	transition: transform .2s, background .2s !important;
}
.nda-login-card .woocommerce .button:hover,
.nda-login-card .woocommerce button[type="submit"]:hover,
.nda-login-card .woocommerce form.register .woocommerce-button:hover { background: var(--c-primary-d) !important; transform: translateY(-1px); }
/* متن‌های توضیحی و سیاست حریم خصوصی */
.nda-login-card .woocommerce-privacy-policy-text,
.nda-login-card .woocommerce form.register em,
.nda-login-card .woocommerce-form__label-for-checkbox span {
	font-size: 12px;
	color: var(--c-text-muted);
	line-height: 1.9;
}
.nda-login-card .woocommerce-privacy-policy-text a { color: var(--c-primary); }
.nda-login-card .woocommerce > h2,
.nda-login-card .woocommerce-account h2 {
	font-size: 1.15rem;
	font-weight: 900;
	color: var(--c-white);
	margin: 0 0 20px;
	text-align: center;
}
/* حذف کادر/پدینگ پیش‌فرض ووکامرس داخل کارت لاگین — وزن بالاتر از .woocommerce form.login */
.nda-login-card .woocommerce form.login,
.nda-login-card .woocommerce form.woocommerce-form-login {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	text-align: right;
}
.nda-login-card .woocommerce-form-row,
.nda-login-card .woocommerce-form-login .form-row { margin-bottom: 14px; width: 100%; padding: 0; }
.nda-login-card .required { color: var(--c-danger); border: 0; text-decoration: none; }
.nda-login-card .woocommerce-form-login label { font-size: 13px; font-weight: 600; color: var(--c-white); display: block; margin-bottom: 6px; }
.nda-login-card .woocommerce-form-login input[type="text"],
.nda-login-card .woocommerce-form-login input[type="email"],
.nda-login-card .woocommerce-form-login input[type="password"] {
	width: 100%; background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 12px; color: var(--c-white);
	padding: 12px 14px; font-family: var(--font); font-size: 14px;
	transition: border-color .2s;
}
.nda-login-card .woocommerce-form-login input:focus { border-color: rgba(80,181,72,0.4); outline: none; }
.nda-login-card .woocommerce-form-login .woocommerce-button {
	background: var(--c-primary) !important; color: #fff !important;
	border: none !important; border-radius: 99px !important;
	padding: 12px 28px !important; font-family: var(--font) !important;
	font-size: 14px !important; font-weight: 700 !important;
	width: 100% !important; cursor: pointer !important;
	transition: background .2s !important;
}
.nda-login-card .woocommerce-form-login .woocommerce-button:hover { background: var(--c-primary-d) !important; }
/* مرا به خاطر بسپار — چک‌باکس و متن در یک ردیف */
.nda-login-card .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--c-text-muted);
	font-weight: 600;
	cursor: pointer;
	margin: 4px 0 16px;
}
.nda-login-card .woocommerce-form-login__rememberme input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--c-primary);
	cursor: pointer;
}
.nda-login-card .woocommerce-form-login__rememberme span { line-height: 1; }
.nda-login-card .lost_password { text-align: center; margin: 14px 0 0; }
.nda-login-card .lost_password a { font-size: 13px; color: var(--c-text-muted); }
.nda-login-card .lost_password a:hover { color: var(--c-primary); }

/* ══════════════════════════════════════════
   18. Back to Top + فرم + جستجو (منتقل‌شده از JS)
══════════════════════════════════════════ */
.nestor-back-to-top {
	position: fixed;
	bottom: 100px;
	inset-inline-end: 20px;
	width: 48px;
	height: 48px;
	background: var(--c-primary, #50b548);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s ease;
	z-index: 999;
	box-shadow: 0 4px 12px rgba(80, 181, 72, 0.3);
}
.nestor-back-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nestor-back-to-top:hover {
	background: var(--c-primary-dark, var(--c-primary-l, #3d9636));
	transform: translateY(-2px);
}

.nestor-cart-count.bounce {
	animation: nestorBounceScale 0.6s ease;
}
@keyframes nestorBounceScale {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.3); }
}

.nestor-form .error {
	border-color: var(--c-error, #ef4444) !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.nestor-search-form {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nestor-search-form.active {
	opacity: 1;
	visibility: visible;
}

@media (max-width: 767px) {
	.nestor-back-to-top {
		bottom: 80px;
		inset-inline-end: 16px;
		width: 40px;
		height: 40px;
		font-size: 16px;
	}
}

/* ══════════════════════════════════════════
   19. Popup / Modal سایت
══════════════════════════════════════════ */
.nestor-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.nestor-popup-overlay.is-visible { opacity: 1; }
.nestor-popup-box {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: var(--c-surface, #1a1a1a);
	border: 1px solid var(--c-border, rgba(255,255,255,0.1));
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	transform: translateY(24px) scale(0.96);
	transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.nestor-popup-overlay.is-visible .nestor-popup-box { transform: translateY(0) scale(1); }
.nestor-popup-close {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s;
}
.nestor-popup-close:hover { background: rgba(0, 0, 0, 0.7); }
.nestor-popup-image img { width: 100%; height: auto; display: block; }
.nestor-popup-body { padding: 24px; text-align: center; }
.nestor-popup-title { font-size: 1.25rem; font-weight: 900; color: var(--c-white, #fff); margin: 0 0 12px; }
.nestor-popup-text { color: var(--c-text-muted, #aaa); font-size: 14px; line-height: 1.9; margin-bottom: 18px; }
.nestor-popup-btn { display: inline-block; width: 100%; }

@media (max-width: 480px) {
	.nestor-popup-box { max-width: 100%; border-radius: 16px; }
	.nestor-popup-body { padding: 18px; }
}

/* ══════════════════════════════════════════
   20. مکان‌های تبلیغاتی
══════════════════════════════════════════ */
.nestor-ad {
	margin: 20px 0;
	text-align: center;
	max-width: 100%;
	overflow: hidden;
}
.nestor-ad img { max-width: 100%; height: auto; border-radius: 12px; }
.nestor-ad--header { margin: 0 0 16px; }
.nestor-ad--footer { margin: 24px 0 0; }

/* ══════════════════════════════════════════
   21. دکمه ورود با گوگل + divider
══════════════════════════════════════════ */
.nestor-auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0;
	color: var(--nestor-gray-600, #666);
	font-size: 13px;
}
.nestor-auth-divider::before,
.nestor-auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, 0.1);
}
.nestor-google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 15px;
	background: #fff;
	color: #1f2937;
	border-radius: 1.5rem;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nestor-google-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }

/* ══════════════════════════════════════════
   22. نستور کلاب — امتیاز
══════════════════════════════════════════ */
.nestor-club-summary {
	background: linear-gradient(135deg, #1a6b3c 0%, var(--c-primary, #50b548) 100%);
	border-radius: var(--r-md, 16px);
	padding: 20px 24px;
	margin-bottom: 20px;
	color: #fff;
}
.nestor-club-badge { display: flex; align-items: center; gap: 14px; }
.nestor-club-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}
.nestor-club-badge strong { display: block; font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.nestor-club-badge small { font-size: 12px; opacity: 0.85; }
.nestor-club-value { margin: 12px 0 0; font-size: 13px; opacity: 0.9; }

/* ══════════════════════════════════════════
   23. ویجت محصولات المنتور (حالت‌های مختلف)
══════════════════════════════════════════ */
.nestor-w-products { margin: 32px 0; }
.nestor-w-products__title { font-size: 1.25rem; font-weight: 900; margin: 0; }

/* لینک داخل کارت محصول */
.nestor-product-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.nestor-product-card .nw-cat {
	font-size: 10px;
	color: var(--c-text-muted, #777);
	display: block;
	margin-bottom: 6px;
}
.nestor-product-card__cart {
	display: block;
	text-align: center;
	background: var(--c-primary, #50b548);
	color: #fff;
	padding: 8px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 900;
	margin: 0 12px 12px;
	text-decoration: none;
}
.nestor-product-card__cart:hover { background: var(--c-primary-l, #6cc964); }

/* حالت لیستی */
.nestor-w-products__list { display: flex; flex-direction: column; gap: 12px; }
.nestor-w-products__list-item {
	display: flex;
	gap: 16px;
	align-items: center;
	background: var(--c-surface, #1a1a1a);
	border: 1px solid var(--c-border, rgba(255,255,255,0.05));
	border-radius: var(--r-md, 16px);
	padding: 12px;
	text-decoration: none;
	transition: border-color .2s, transform .2s;
}
.nestor-w-products__list-item:hover { border-color: rgba(80,181,72,0.35); transform: translateY(-2px); }
.nestor-w-products__list-item img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.nestor-w-products__list-item .nw-li-info { flex: 1; min-width: 0; }
.nestor-w-products__list-item h3 { color: var(--c-white, #fff); font-size: 14px; font-weight: 700; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nestor-w-products__list-item .nw-li-info span { font-size: 11px; color: var(--c-text-muted, #777); }
.nestor-w-products__list-item .product-price { color: var(--c-primary, #50b548); font-weight: 900; font-size: 14px; white-space: nowrap; }

/* حالت کارت بزرگ */
.nestor-w-products__bigcards { display: flex; flex-direction: column; gap: 20px; }
.nestor-w-products__bigcard {
	display: flex;
	gap: 24px;
	align-items: center;
	background: var(--c-surface, #1a1a1a);
	border: 1px solid var(--c-border, rgba(255,255,255,0.05));
	border-radius: var(--r-lg, 20px);
	padding: 20px;
	text-decoration: none;
	transition: transform .2s;
}
.nestor-w-products__bigcard:hover { transform: translateY(-4px); }
.nestor-w-products__bigcard img { width: 120px; height: 150px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.nestor-w-products__bigcard h3 { color: var(--c-white, #fff); font-size: 1.1rem; font-weight: 900; margin: 0 0 8px; }
.nestor-w-products__bigcard .nw-bc-cat { font-size: 12px; color: var(--c-text-muted, #777); display: block; margin-bottom: 8px; }
.nestor-w-products__bigcard p { color: #bbb; font-size: 13px; margin: 0 0 12px; line-height: 1.8; }
.nestor-w-products__bigcard .product-price { color: var(--c-primary, #50b548); font-weight: 900; font-size: 1.1rem; }

@media (max-width: 600px) {
	.nestor-w-products__bigcard { flex-direction: column; align-items: stretch; }
	.nestor-w-products__bigcard img { width: 100%; height: 180px; }
}

/* ══════════════════════════════════════════
   24. حالت انگلیسی — فقط فونت (بدون چپ‌چین، RTL ثابت)
══════════════════════════════════════════ */
/* حالت انگلیسی: جهت کامل LTR (استاندارد سایت انگلیسی). چیدمان بر پایه‌ی CSS
   Logical Properties است، پس با ltr به‌درستی چپ‌به‌راست می‌شود. */
body.nestor-ltr { direction: ltr; }
html[dir="ltr"] body.nestor-ltr { direction: ltr; }

/* فونت انگلیسی */
body.nestor-ltr,
body.nestor-ltr h1, body.nestor-ltr h2, body.nestor-ltr h3,
body.nestor-ltr h4, body.nestor-ltr h5, body.nestor-ltr p,
body.nestor-ltr a, body.nestor-ltr span, body.nestor-ltr button,
body.nestor-ltr input, body.nestor-ltr textarea {
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* چپ‌چین کاملاً غیرفعال است — در حالت انگلیسی همه چیز راست‌چین (RTL) می‌ماند،
   فقط فونت و ترجمه عوض می‌شود. */

/* نقل‌قول: خط تزئینی با border منطقی (خودکار جابجا می‌شود) */
.nestor-post-content blockquote {
	border-inline-start: 4px solid var(--c-primary);
	border-inline-end: none;
	padding-inline-start: 20px;
	padding-inline-end: 0;
}

/* (استایل سوییچ زبان به بخش ۳۳ منتقل شد) */

/* ══════════════════════════════════════════
   25. اصلاحات حالت روز (Light) برای نواحی تیره‌ی ثابت
══════════════════════════════════════════ */
/* فوتر در حالت روز روشن می‌شود (پیروی کامل از تم) */
html[data-theme="light"] .nestor-footer {
	border-top: 1px solid var(--c-border);
	box-shadow: 0 -8px 30px rgba(15,23,41,0.04);
}

/* (هدر حالت روز در بخش ۳۴ استایل نهایی دارد) */

/* اسپلش در حالت روز */
html[data-theme="light"] .nestor-splash { background: var(--c-bg); }

/* آیکون خورشید/ماه: پیش‌فرض ماه نمایش، در حالت روز خورشید
   (استایل ابعاد کلید در بخش ۳۳) */

/* ══════════════════════════════════════════
   26. صفحه ۴۰۴
══════════════════════════════════════════ */
.nestor-404-page {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	max-width: var(--container, 1300px);
	margin-inline: auto;
}
.nestor-404-content {
	width: 100%;
	max-width: 640px;
	text-align: center;
}
.nestor-404-number {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: clamp(4rem, 18vw, 9rem);
	font-weight: 900;
	color: var(--c-white);
	line-height: 1;
	margin-bottom: 8px;
}
.nestor-404-icon {
	font-size: clamp(3rem, 14vw, 7rem);
	line-height: 1;
}
.nestor-float { animation: nestorFloat 3s ease-in-out infinite; }
@keyframes nestorFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.nestor-404-content h2 { font-size: 1.6rem; margin-bottom: 12px; }
.nestor-404-content > p { font-size: 15px; margin-bottom: 28px; max-width: 440px; margin-inline: auto; }

.nestor-404-search { margin-bottom: 24px; }
.nestor-404-search form {
	display: flex;
	gap: 8px;
	max-width: 460px;
	margin-inline: auto;
}
.nestor-404-search input {
	flex: 1;
	padding: 12px 16px;
	background: var(--c-surface-2);
	border: 1px solid var(--c-border);
	border-radius: var(--r-sm);
	color: var(--c-white);
	font-family: var(--font);
	font-size: 14px;
}
.nestor-404-search input:focus { outline: none; border-color: var(--c-primary); }
.nestor-404-search .nestor-btn { white-space: nowrap; }

.nestor-404-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 48px;
}

.nestor-404-products { text-align: start; margin-top: 40px; }
.nestor-404-products h3 { font-size: 1.1rem; margin-bottom: 16px; text-align: center; }
.nestor-404-product-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 130px;
	flex-shrink: 0;
	text-decoration: none;
}
.nestor-404-product-card .product-img {
	width: 130px;
	height: 130px;
	border-radius: var(--r-sm);
	overflow: hidden;
	background: var(--c-surface-2);
	border: 1px solid var(--c-border);
}
.nestor-404-product-card .product-img img { width: 100%; height: 100%; object-fit: cover; }
.nestor-404-product-card .product-name {
	font-size: 12px;
	color: var(--c-text);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-align: center;
}
.nestor-404-product-card:hover .product-name { color: var(--c-primary); }

@media (max-width: 480px) {
	.nestor-404-search form { flex-direction: column; }
	.nestor-404-search .nestor-btn { width: 100%; }
}

/* ══════════════════════════════════════════
   27. صفحه ورود / ثبت‌نام (OTP Auth)
══════════════════════════════════════════ */
.nestor-auth-page {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	overflow: hidden;
}
.auth-bg-letter {
	position: absolute;
	inset-inline-start: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 40vw;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.02);
	line-height: 1;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}
.nestor-auth-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.nestor-auth-robot {
	position: relative;
	width: 160px;
	height: 160px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.auth-robot-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle, rgba(80, 181, 72, 0.3), transparent 70%);
	filter: blur(20px);
	border-radius: 50%;
}

/* OTP inputs */
.nestor-otp-inputs {
	display: flex;
	gap: 10px;
	justify-content: center;
	direction: ltr;
	margin-bottom: 24px;
}
.otp-input {
	width: 52px;
	height: 60px;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--c-white);
	background: var(--c-surface-2);
	border: 1px solid var(--c-border);
	border-radius: var(--r-sm);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.otp-input:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(80, 181, 72, 0.15);
}

/* فرم ورود ووکامرس در صفحه احراز هویت مستقل (نه داخل کارت لاگین داشبورد) */
.nestor-auth-page .woocommerce form.login {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	padding: 24px;
	margin: 0;
}
/* داخل کارت لاگین داشبورد — بدون کادر تو کادر، عرض کامل */
.nda-login-card .woocommerce form.login {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	width: 100%;
}

@media (max-width: 480px) {
	.otp-input { width: 44px; height: 52px; font-size: 1.25rem; }
	.nestor-auth-robot { width: 120px; height: 120px; }
	.nestor-auth-robot img { width: 120px; height: 120px; }
}

/* ══════════════════════════════════════════
   28. فرم‌های ووکامرس (لاگین/ثبت‌نام/حساب) — هماهنگ با تم
══════════════════════════════════════════ */
.woocommerce form .form-row label,
.woocommerce-account .woocommerce label,
.woocommerce form.login label,
.woocommerce form.register label {
	color: var(--c-text);
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	display: block;
}
.woocommerce form .input-text,
.woocommerce input.input-text,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"],
.woocommerce-account input[type="tel"],
.woocommerce form.login input,
.woocommerce form.register input {
	width: 100%;
	padding: 11px 14px;
	background: var(--c-input-bg, #1e1e1e);
	border: 1px solid var(--c-border);
	border-radius: var(--r-sm);
	color: var(--c-white);
	font-family: var(--font);
	font-size: 14px;
}
.woocommerce form .input-text:focus,
.woocommerce input.input-text:focus,
.woocommerce-account input:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(80, 181, 72, 0.12);
}
.woocommerce form.login,
.woocommerce form.register {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	padding: 24px;
}
.woocommerce form.login .button,
.woocommerce form.register .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button {
	background: var(--c-primary);
	color: #fff;
	border: none;
	border-radius: var(--r-sm);
	padding: 11px 22px;
	font-family: var(--font);
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}
.woocommerce form.login .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--c-primary-d); color: #fff; }

.woocommerce .woocommerce-form-login__rememberme,
.woocommerce-form-login__rememberme span { color: var(--c-text-muted); }
.woocommerce-LostPassword a { color: var(--c-primary); }

/* ══════════════════════════════════════════
   29. داشبورد کاربری — طرح جدید (مطابق UI)
══════════════════════════════════════════ */
.nda-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
	padding: 8px 0 24px;
}
@media (min-width: 1024px) {
	.nda-grid { grid-template-columns: 360px 1fr; gap: 28px; }
	.nda-side { position: sticky; top: calc(var(--nestor-header-h, 100px) + 16px); }
}
.nda-side { display: flex; flex-direction: column; gap: 20px; }
.nda-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* کارت پروفایل */
.nda-profile-card {
	position: relative;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	padding: 28px 24px;
	text-align: center;
	overflow: hidden;
	box-shadow: 0 10px 30px var(--c-shadow, rgba(0,0,0,.3));
}
.nda-profile-top {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 90px;
	background: linear-gradient(180deg, rgba(80,181,72,0.18), transparent);
	pointer-events: none;
}
.nda-avatar-lg {
	position: relative;
	z-index: 1;
	width: 88px;
	height: 88px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f97316, #eab308);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 900;
	font-size: 2rem;
	border: 4px solid var(--c-surface);
	box-shadow: 0 0 20px rgba(249,115,22,0.35);
}
.nda-profile-card .nda-welcome { font-size: 12px; color: var(--c-text-muted); font-weight: 700; margin: 0 0 4px; }
.nda-profile-card .nda-username { font-size: 1.25rem; font-weight: 900; color: var(--c-white); margin: 0 0 6px; }
.nda-profile-card .nda-phone { font-size: 12px; color: var(--c-text-muted); margin: 0; }

.nda-logout-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--c-border);
	border-radius: var(--r-sm);
	color: var(--c-text-muted);
	font-weight: 700;
	font-size: 13px;
	background: var(--c-bg);
	transition: var(--ease);
}
.nda-logout-btn:hover { color: #ef4444; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.08); }
.nda-logout-full { width: 100%; justify-content: center; margin-top: 20px; padding: 13px; border-radius: var(--r-md); }

/* کارت کیف پول */
.nda-wallet-card {
	position: relative;
	background: var(--c-surface);
	border: 1px solid rgba(80,181,72,0.2);
	border-radius: var(--r-lg);
	padding: 22px;
	overflow: hidden;
}
.nda-wallet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.nda-wallet-ico { display: flex; padding: 10px; background: rgba(80,181,72,0.1); border-radius: 12px; color: var(--c-primary); }
.nda-wallet-ico svg { stroke: currentColor; }
.nda-wallet-head h3 { font-size: 14px; font-weight: 700; color: var(--c-white); margin: 0; }
.nda-wallet-balance { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 8px; }
.nda-wallet-amount { font-size: 1.9rem; font-weight: 900; color: var(--c-primary); line-height: 1; }
.nda-wallet-unit { font-size: 13px; color: var(--c-text-muted); margin-bottom: 3px; }
.nda-club-line { font-size: 12px; color: var(--c-secondary); font-weight: 700; margin: 0 0 16px; }
.nda-wallet-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px;
	background: var(--c-primary);
	color: #fff;
	border-radius: var(--r-sm);
	font-weight: 900;
	font-size: 14px;
	transition: background .2s;
}
.nda-wallet-btn:hover { background: var(--c-primary-d); color: #fff; }
.nda-wallet-btn svg { stroke: currentColor; fill: none; }

/* کارت‌های محتوا */
.nda-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	padding: 24px;
	box-shadow: 0 10px 30px var(--c-shadow, rgba(0,0,0,.25));
}
.nda-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--c-border);
}
.nda-card-head h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 900; color: var(--c-white); margin: 0; }
.nda-card-head h3 svg { stroke: var(--c-primary); }
.nda-viewall { font-size: 12px; font-weight: 700; color: var(--c-text-muted); }
.nda-viewall:hover { color: var(--c-primary); }

/* وضعیت سفارشات */
.nda-orders-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nda-order-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 20px 8px;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	text-align: center;
	transition: var(--ease);
}
.nda-order-stat:hover { transform: translateY(-2px); border-color: rgba(80,181,72,0.25); }
.nda-order-ico {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
}
.nda-order-stat.is-processing .nda-order-ico { background: rgba(234,179,8,0.1); color: #eab308; }
.nda-order-stat.is-completed .nda-order-ico { background: rgba(80,181,72,0.1); color: var(--c-primary); }
.nda-order-stat.is-cancelled .nda-order-ico { background: rgba(239,68,68,0.1); color: #ef4444; }
.nda-order-ico svg { stroke: currentColor; }
.nda-order-ico b {
	position: absolute;
	top: -2px;
	inset-inline-end: -2px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: 99px;
	font-size: 10px;
	font-weight: 800;
	color: var(--c-white);
	display: flex;
	align-items: center;
	justify-content: center;
}
.nda-order-lbl { font-size: 12px; font-weight: 700; color: var(--c-text); }

/* دسترسی سریع */
.nda-quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 480px) { .nda-quick-grid { grid-template-columns: repeat(4, 1fr); } }
.nda-quick-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 18px 8px;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	text-align: center;
	transition: var(--ease);
}
.nda-quick-item:hover { background: var(--c-surface-2); }
.nda-quick-ico { position: relative; color: var(--c-text-muted); transition: color .2s; }
.nda-quick-item:hover .nda-quick-ico { color: var(--c-primary); }
.nda-quick-ico svg { stroke: currentColor; }
.nda-quick-dot { position: absolute; top: -2px; inset-inline-end: -4px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; }
.nda-quick-lbl { font-size: 11px; font-weight: 700; color: var(--c-text); line-height: 1.4; }

/* شبکه‌های اجتماعی */
.nda-social-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 14px; }
@media (min-width: 560px) { .nda-social-grid { grid-template-columns: repeat(3, 1fr); } }
.nda-social {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px;
	border-radius: var(--r-md);
	color: #fff;
	transition: transform .2s;
}
.nda-social:hover { transform: translateY(-3px); color: #fff; }
.nda-social svg { fill: currentColor; }
.nda-social b { font-size: 14px; font-weight: 900; }
.nda-social--ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.nda-social--tg { background: linear-gradient(135deg, #2AABEE, #229ED9); }
.nda-social--yt { background: linear-gradient(135deg, #FF0000, #CC0000); }

/* محتوای ووکامرس داخل داشبورد (اندپوینت‌ها) */
.nda-woo-wrap {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-lg);
	padding: 24px;
	margin-top: 8px;
}

/* ══════════════════════════════════════════
   30. یکدست‌سازی نهایی فرم‌ها در کل قالب
══════════════════════════════════════════ */
/* ناوبری حساب ووکامرس داخل wrap داشبورد */
.nda-woo-wrap .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; }
.nda-woo-wrap .woocommerce-MyAccount-navigation li a {
	padding: 9px 16px;
	border-radius: var(--r-sm);
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	font-size: 13px;
	font-weight: 700;
}
.nda-woo-wrap .woocommerce-MyAccount-content { margin-top: 20px; }

/* select و textarea ووکامرس */
.woocommerce select,
.woocommerce .select2-container--default .select2-selection--single,
.woocommerce textarea {
	background: var(--c-input-bg, #1e1e1e) !important;
	border: 1px solid var(--c-border) !important;
	border-radius: var(--r-sm) !important;
	color: var(--c-white) !important;
	min-height: 44px;
	padding: 10px 14px;
	font-family: var(--font);
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--c-white) !important; line-height: 24px; }

/* چک‌باکس و رادیو */
.woocommerce input[type="checkbox"],
.woocommerce input[type="radio"] { accent-color: var(--c-primary); width: 16px; height: 16px; }

/* پیام‌ها و notices ووکامرس */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error li {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	background: var(--c-surface-2);
	border: 1px solid var(--c-border);
	border-inline-start: 4px solid var(--c-primary);
	color: var(--c-text);
	border-radius: 14px;
	padding: 13px 16px;
	font-size: 13px;
	line-height: 1.8;
	box-shadow: 0 8px 20px -10px rgba(0,0,0,.3);
}
.woocommerce-message .button,
.woocommerce-info .button {
	margin-inline-start: auto;
	padding: 7px 14px;
	border-radius: 10px;
	background: var(--c-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}
.woocommerce-error { margin: 0; padding: 0; list-style: none; }
.woocommerce-error li { border-inline-start-color: var(--c-danger); margin-bottom: 10px; }
@media (max-width: 600px) {
	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-error li { padding: 12px 14px; font-size: 12.5px; border-radius: 12px; }
	.woocommerce-message .button,
	.woocommerce-info .button { flex: 1 0 100%; margin-inline-start: 0; text-align: center; }
}

/* جدول‌های حساب/سفارش */
.woocommerce table.shop_table,
.woocommerce-account table {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--r-md);
	color: var(--c-text);
	overflow: hidden;
}
.woocommerce table.shop_table th { color: var(--c-white); }
.woocommerce table.shop_table td,
.woocommerce table.shop_table th { border-color: var(--c-border); }

/* فرم نظرات وردپرس عمومی (اگر nsp استفاده نشد) */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--c-input-bg, #1e1e1e);
	border: 1px solid var(--c-border);
	border-radius: var(--r-sm);
	color: var(--c-white);
	padding: 11px 14px;
	font-family: var(--font);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--c-primary); }
.comment-form label { color: var(--c-text); font-size: 13px; font-weight: 600; }

/* ══════════════════════════════════════════
   31. اصلاح سراسری بخش‌های داخلی در حالت روز
   (برگه‌هایی که border/bg شفاف سفید inline دارند)
══════════════════════════════════════════ */
html[data-theme="light"] .nestor-dashboard-card {
	background: var(--c-surface);
	border-color: var(--c-border);
	box-shadow: 0 4px 16px var(--c-shadow, rgba(15,23,41,.06));
}
/* عناوین و متن‌های داخلی که با --nestor-white/gray در حالت روز باید تیره شوند
   (چون این متغیرها به توکن وصل شده‌اند، خودکار درست است — این فقط تضمین کنتراست است) */
html[data-theme="light"] .nestor-timeline .timeline-line { background: rgba(15,23,41,.1); }

/* تایم‌لاین درباره‌ما */
.nestor-timeline { position: relative; display: flex; justify-content: space-between; align-items: flex-start; max-width: 600px; margin: 0 auto; padding: 0 8px; }
.nestor-timeline .timeline-line { position: absolute; inset-inline: 24px; top: 10px; height: 6px; background: rgba(128,128,128,.25); border-radius: 99px; z-index: 0; }
.nestor-timeline .timeline-progress { position: absolute; inset-inline-start: 24px; width: 55%; top: 10px; height: 6px; background: var(--c-primary); border-radius: 99px; z-index: 0; box-shadow: 0 0 10px rgba(80,181,72,.5); }
.nestor-timeline .timeline-nodes { position: relative; z-index: 1; display: flex; justify-content: space-between; width: 100%; }
.nestor-timeline .timeline-node { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nestor-timeline .timeline-node .node-dot { width: 22px; height: 22px; border-radius: 50%; border: 6px solid var(--c-surface); background: #6b7280; }
.nestor-timeline .timeline-node.active .node-dot { background: var(--c-primary); box-shadow: 0 0 14px rgba(80,181,72,.5); }
.nestor-timeline .timeline-node span { font-size: 11px; font-weight: 700; color: var(--c-text-muted); white-space: nowrap; }
.nestor-timeline .timeline-node.active span { color: var(--c-primary); }

/* ══════════════════════════════════════════
   32. تراز منطقی متن‌ها (سازگار با RTL و LTR)
══════════════════════════════════════════ */
/* کارت‌های اعتماد، سرویس، مقاله و محصول: تراز شروع (start) تا در هر دو جهت درست باشد */
.trust-badge-item,
.trust-badge-item .trust-info,
.nestor-service-card,
.nestor-post-body,
.nestor-footer-col,
.nestor-home-hero-copy,
.nestor-product-card .product-info {
	text-align: start;
}

/* پیام خالی ویجت محصولات */
.nestor-w-products__empty {
	color: var(--c-text-muted);
	text-align: center;
	padding: 20px;
	font-size: 14px;
}

/* در LTR دیگر نیازی به override نیست چون از text-align:start استفاده شده */
body.nestor-ltr .trust-badge-item,
body.nestor-ltr .nestor-service-card,
body.nestor-ltr .nestor-post-body,
body.nestor-ltr .nestor-footer-col,
body.nestor-ltr .nestor-home-hero-copy,
body.nestor-ltr .nestor-product-card .product-info { text-align: start; }

/* ══════════════════════════════════════════
   34. تقویت جذابیت حالت روز (Light)
══════════════════════════════════════════ */
/* کارت‌ها در حالت روز: سایه نرم رنگی به‌جای border تخت */
html[data-theme="light"] .nestor-card,
html[data-theme="light"] .nestor-product-card,
html[data-theme="light"] .nda-card,
html[data-theme="light"] .nda-profile-card,
html[data-theme="light"] .nda-wallet-card,
html[data-theme="light"] .nestor-post-card,
html[data-theme="light"] .nestor-service-card,
html[data-theme="light"] .nestor-dashboard-card,
html[data-theme="light"] .trust-badge-item {
	box-shadow: 0 2px 4px rgba(15,23,41,0.04), 0 8px 24px rgba(15,23,41,0.06);
}
html[data-theme="light"] .nestor-card:hover,
html[data-theme="light"] .nestor-product-card:hover,
html[data-theme="light"] .nda-card:hover {
	box-shadow: 0 8px 16px rgba(15,23,41,0.06), 0 16px 40px rgba(15,23,41,0.10);
}

/* تم روشن: کارت‌ها روی پس‌زمینه‌ی روشن محو می‌شدند (حاشیه‌ی بسیار کمرنگ، بدون سایه).
   حاشیه‌ی کمی پررنگ‌تر + سایه‌ی نرم تا هر باکس لبه‌ی مشخص داشته باشد. */
html[data-theme="light"] {
	--c-border: rgba(15,23,41,0.12);
}
html[data-theme="light"] .nestor-card,
html[data-theme="light"] .nestor-post-card,
html[data-theme="light"] .nestor-service-card,
html[data-theme="light"] .nestor-dns-showcase,
html[data-theme="light"] .nestor-dashboard-card,
html[data-theme="light"] .trust-badge-item,
html[data-theme="light"] .nestor-quick-link,
html[data-theme="light"] .nestor-home-stack-card,
html[data-theme="light"] .nestor-dns-card,
html[data-theme="light"] .ns-card,
html[data-theme="light"] .nestor-widget-product-item {
	box-shadow: 0 2px 10px rgba(15,23,41,.06), 0 0 0 1px rgba(15,23,41,.04);
}
html[data-theme="light"] .nestor-card:hover,
html[data-theme="light"] .nestor-post-card:hover,
html[data-theme="light"] .nestor-service-card:hover,
html[data-theme="light"] .ns-card:hover {
	box-shadow: 0 12px 30px rgba(15,23,41,.12);
}

/* کارت اعتماد و آیکون‌ها در روز کمی زنده‌تر */
html[data-theme="light"] .trust-badge-item { background: #fff; border-color: var(--c-border); }
html[data-theme="light"] .cat-icon-wrap,
html[data-theme="light"] .nestor-order-ico,
html[data-theme="light"] .nda-quick-item { background: #fff; }

/* اسپلش در حالت روز */
html[data-theme="light"] .nestor-splash { background: var(--c-bg); }
html[data-theme="light"] .nestor-splash-logo { color: var(--c-primary); }

/* ورودی‌ها در حالت روز */
html[data-theme="light"] .nestor-textarea,
html[data-theme="light"] .otp-input {
	background: #fff;
}

/* دکمه ثانویه در حالت روز */
html[data-theme="light"] .nestor-btn-secondary {
	background: #fff;
	border-color: var(--c-border);
}

/* بَج‌ها/چیپ‌های سبز روی پس‌زمینه کمرنگ: در حالت روز متن تیره‌تر برای کنتراست کافی */
html[data-theme="light"] .nestor-home-badge,
html[data-theme="light"] .stack-badge,
html[data-theme="light"] .service-chip {
	color: #1f5e1a;
	background: rgba(80,181,72,0.16);
	border-color: rgba(80,181,72,0.35);
}

/* ══════════════════════════════════════════
   35. حالت خالی جذاب در حساب کاربری
══════════════════════════════════════════ */
.nestor-empty-account {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 48px 24px;
	gap: 8px;
}
.nestor-empty-account__icon {
	width: 84px;
	height: 84px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(80,181,72,0.14), rgba(80,181,72,0.04));
	color: var(--c-primary);
	margin-bottom: 12px;
}
.nestor-empty-account__icon svg { width: 40px; height: 40px; }
.nestor-empty-account__title { font-size: 1.15rem; font-weight: 900; color: var(--c-white); margin: 0; }
.nestor-empty-account__desc { font-size: 13px; color: var(--c-text-muted); line-height: 1.9; max-width: 340px; margin: 0 0 10px; }

/* ══════════════════════════════════════════
   Stories viewer — ایمنی: در حالت بسته کاملاً پنهان
   (ماژول استوری استایل کامل ندارد؛ این قانون از نشت نوار/دکمه‌ی بستن
   زیر هدر جلوگیری می‌کند تا وقتی استایل کامل اضافه شود.)
══════════════════════════════════════════ */
.nestor-story-viewer[aria-hidden="true"] { display: none !important; }


/* ══════════════════════════════════════════
   مودال ورود/ثبت‌نام (OTP) — الهام از MobiX
   موبایل: تمام‌صفحه با واترمارک لوگو | دسکتاپ: کارت وسط
══════════════════════════════════════════ */
.nestor-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
}
.nestor-auth-modal[hidden] { display: none; }

.nestor-auth-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.85);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .25s ease;
}
.nestor-auth-modal.is-open .nestor-auth-overlay { opacity: 1; }

/* ── موبایل: تمام‌صفحه ── */
.nestor-auth-box {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;        /* با کیبورد موبایل تطبیق می‌یابد */
	background: var(--c-surface);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform: translateY(100%);
	transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.nestor-auth-modal.is-open .nestor-auth-box { transform: translateY(0); }

.nestor-auth-close {
	position: absolute;
	top: 18px;
	inset-inline-start: 18px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.06);
	color: var(--c-white);
	cursor: pointer;
	transition: background .2s;
}
.nestor-auth-close:hover { background: rgba(255,255,255,0.12); }

/* واترمارک لوگو/حرف بزرگ بالای صفحه */
.nestor-auth-watermark {
	position: absolute;
	top: 0;
	inset-inline: 0;
	display: flex;
	justify-content: center;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
	height: 340px;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.nestor-auth-watermark img { width: 300px; height: 300px; object-fit: contain; opacity: .10; margin-top: -40px; }
.nestor-auth-watermark span { font-size: 320px; font-weight: 900; line-height: 1; color: var(--c-primary); opacity: .06; margin-top: -60px; }

/* محتوای اصلی — وسط-بالا تا با باز شدن کیبورد زیر آن نرود */
.nestor-auth-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	padding: 150px 28px 40px;
}

.nestor-auth-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; }
.nestor-auth-logo { width: 72px; height: 72px; object-fit: contain; }
.nestor-auth-wordmark { font-size: 1.6rem; font-weight: 900; color: var(--c-primary); }

.nestor-auth-step h2 { font-size: 1.3rem; font-weight: 900; color: var(--c-white); text-align: center; margin: 0 0 14px; }
.nestor-auth-desc { font-size: 13px; line-height: 2.1; color: var(--c-text-muted); text-align: center; margin: 0 0 26px; }
.nestor-auth-desc a { color: var(--c-primary); text-decoration: none; font-weight: 700; }
.nestor-auth-desc a:hover { text-decoration: underline; }
.nestor-auth-phone-display { color: var(--c-primary); font-weight: 700; }

/* فیلد شماره با آیکون تلفن داخل */
.nestor-auth-field { position: relative; margin-bottom: 14px; }
.nestor-auth-field-icon {
	position: absolute;
	inset-inline-end: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--c-text-muted);
	pointer-events: none;
}
.nestor-auth-field input {
	width: 100%;
	min-height: 58px;
	padding: 16px 50px 16px 18px;
	border: 1px solid var(--c-border);
	border-radius: 16px;
	background: var(--c-input-bg);
	color: var(--c-white);
	font-family: var(--font);
	font-size: 1.05rem;
	letter-spacing: 2px;
	text-align: center;
	transition: border-color .2s, box-shadow .2s;
}
.nestor-auth-field input:focus {
	outline: 0;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(80,181,72,0.12);
}

.nestor-auth-error { color: var(--c-danger); font-size: 12px; font-weight: 700; text-align: center; margin-bottom: 12px; }

.nestor-auth-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	border: 0;
	border-radius: 16px;
	background: var(--c-primary);
	color: #fff;
	font-family: var(--font);
	font-weight: 900;
	font-size: 15px;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(80,181,72,0.25);
	transition: background .2s, transform .2s;
}
.nestor-auth-submit:hover { background: var(--c-primary-d); transform: translateY(-1px); }

/* فیلدهای کد تایید */
.nestor-auth-otp { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.nestor-auth-otp-input {
	width: 50px; height: 60px;
	border: 2px solid var(--c-border);
	border-radius: 14px;
	background: var(--c-input-bg);
	color: var(--c-white);
	font-family: var(--font);
	font-size: 1.5rem;
	font-weight: 900;
	text-align: center;
	transition: border-color .2s, box-shadow .2s;
}
.nestor-auth-otp-input:focus {
	outline: 0;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(80,181,72,0.12);
}

.nestor-auth-resend { text-align: center; margin-bottom: 18px; font-size: 13px; color: var(--c-text-muted); font-weight: 700; }
.nestor-auth-resend b { color: var(--c-primary); }
.nestor-auth-resend-btn { border: 0; background: none; color: var(--c-primary); font-family: var(--font); font-weight: 800; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

.nestor-auth-edit {
	display: block;
	width: 100%;
	margin-top: 16px;
	border: 0;
	background: none;
	color: var(--c-text-muted);
	font-family: var(--font);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.nestor-auth-edit:hover { color: var(--c-white); }

/* ── حالت درون‌صفحه (my-account): کارت ثابت داخل محتوا، نه لایه‌ی شناور ── */
.nestor-auth-modal.is-inline { position: relative; inset: auto; z-index: auto; justify-content: center; padding: 32px 0 48px; }
.nestor-auth-modal.is-inline .nestor-auth-box {
	min-height: 0;
	max-width: 460px;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: 2rem;
	box-shadow: 0 20px 60px var(--c-shadow);
	transform: none;
	opacity: 1;
}
.nestor-auth-modal.is-inline .nestor-auth-watermark { height: 220px; }
.nestor-auth-modal.is-inline .nestor-auth-watermark img { width: 200px; height: 200px; }
.nestor-auth-modal.is-inline .nestor-auth-watermark span { font-size: 200px; }
.nestor-auth-modal.is-inline .nestor-auth-inner { padding: 80px 24px 32px; }

/* ── دسکتاپ: کارت وسط به‌جای تمام‌صفحه ── */
@media (min-width: 640px) {
	.nestor-auth-modal { align-items: center; justify-content: center; padding: 24px; }
	.nestor-auth-box {
		min-height: 0;
		max-width: 460px;
		max-height: 92vh;
		border: 1px solid var(--c-border);
		border-radius: 2rem;
		box-shadow: 0 30px 80px rgba(0,0,0,0.5);
		transform: scale(.95);
		opacity: 0;
		transition: transform .25s, opacity .25s;
	}
	.nestor-auth-modal.is-open .nestor-auth-box { transform: scale(1); opacity: 1; }
	.nestor-auth-watermark { height: 220px; }
	.nestor-auth-watermark img { width: 200px; height: 200px; }
	.nestor-auth-watermark span { font-size: 200px; }
	.nestor-auth-inner { padding: 90px 32px 36px; }
}

/* ══════════════════════════════════════════
   XG — هدر دسکتاپ (کپسول منو + جستجو)، سربرگ شیشه‌ای موبایل، منوی پایین، بنرهای صفحه اصلی
   رنگ‌های برند از پنل (--c-primary) و حالت شب/روز با توکن‌های --xg-* کنترل می‌شود.
══════════════════════════════════════════ */
.xg {
	--xg-surface: #0c131a; --xg-page: var(--c-bg); --xg-text: #f7f7f7; --xg-muted: #a0a5ad;
	--xg-blue: #2f7a2a; --xg-red: #ff0042; --xg-line: rgba(255,255,255,.23); --xg-glass: rgba(18,28,35,.48);
	--xg-btn: #272f37; --xg-gift: #e8c348; --xg-pink: #e84870;
	--xg-olive-l: #434431; --xg-olive-r: #929272; --xg-olive-btn: #393b2c;
	--xg-red-btn: #b60009; --xg-red-glass: rgba(49,0,0,.73);
	direction: rtl; color: var(--xg-text); letter-spacing: 0;
}
html[data-theme="light"] .xg {
	--xg-surface: #ffffff; --xg-text: #0f172a; --xg-muted: #64748b; --xg-line: rgba(15,23,41,.16);
	--xg-glass: rgba(255,255,255,.72); --xg-btn: #eef2f6; --xg-blue: #2f7a2a;
	--xg-gift: #b7791f; --xg-pink: #d63a63;
}
.xg a { color: inherit; text-decoration: none; }
.xg button { font: inherit; cursor: pointer; }
.xg-icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.xg a:focus-visible, .xg button:focus-visible, .xg input:focus-visible { outline: 2px solid var(--xg-blue); outline-offset: 4px; }
.xg-brand-icon { color: var(--xg-blue); width: 48px; height: 42px; }
.xg-brand-img { display: block; height: 48px; width: auto; max-width: 170px; object-fit: contain; }
.xg-brand-name { font-size: 20px; font-weight: 900; }
.xg-badge { position: absolute; top: -9px; inset-inline-end: -8px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--xg-red); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.xg-badge[data-empty] { opacity: .85; }

/* ── دسکتاپ: هدر چسبان (کپسول منو + جستجو) — جمع‌وجور ── */
.xg-desktop { position: sticky; top: 0; z-index: 200; display: flex; justify-content: center; padding: 12px 24px 8px; background: transparent; }
body.admin-bar .xg-desktop { top: 32px; }
/* کپسول منو: پهن و وسط‌چین، شیشه‌ای (بلور) — آیتم‌ها بین دو لبه پخش می‌شوند */
.xg-desktop-nav { min-height: 66px; width: 100%; max-width: 1180px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 9px 20px 9px 28px; border: 1px solid color-mix(in srgb, var(--xg-text) 9%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--xg-surface) 72%, transparent); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 12px 34px rgba(0,0,0,.2); }
html[data-theme="light"] .xg-desktop-nav { box-shadow: 0 6px 20px rgba(15,23,41,.08); border-color: var(--xg-line); background: color-mix(in srgb, #fff 82%, transparent); }
.xg-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.xg-menu { display: flex; flex: 1; align-items: center; justify-content: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.xg-menu__item { position: relative; }
.xg-menu__item > a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; white-space: nowrap; font-size: 16px; font-weight: 700; transition: color .2s; }
/* دکمه‌ی «دسته‌بندی‌ها» */
.xg-cats__btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 999px; background: var(--xg-btn); color: var(--xg-text); font-size: 15px; font-weight: 800; transition: color .2s, background .2s; }
.xg-cats__btn:hover { color: var(--xg-blue); }
.xg-cats__btn .xg-icon { width: 20px; height: 20px; }
.xg-cats__btn .xg-chevron { width: 15px; height: 15px; transition: transform .2s; }
.xg-menu__item.is-open .xg-chevron { transform: rotate(180deg); }
.xg-menu__item.is-open > .xg-sub { opacity: 1; visibility: visible; transform: none; }
.xg-menu__item.is-current > a, .xg-menu__item > a:hover { color: var(--xg-blue); }
.xg-menu .xg-chevron { width: 17px; height: 17px; transition: transform .2s; }
.xg-menu__item:hover .xg-chevron, .xg-menu__item:focus-within .xg-chevron { transform: rotate(180deg); }
.xg-cat { display: inline-grid; place-items: center; }
.xg-cat .xg-icon { width: 28px; height: 28px; }
.xg-cat.is-blue { color: var(--xg-blue); }
.xg-cat.is-gold { color: var(--xg-gift); }
.xg-cat.is-pink { color: var(--xg-pink); }
.xg-sub { position: absolute; inset-inline-start: 0; top: calc(100% + 14px); z-index: 5; min-width: 220px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--xg-line); border-radius: 20px; background: var(--xg-surface); box-shadow: 0 20px 45px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.xg-menu__item.has-sub:hover > .xg-sub, .xg-menu__item.has-sub:focus-within > .xg-sub { opacity: 1; visibility: visible; transform: none; }
.xg-sub::before { position: absolute; inset-inline: 0; top: -16px; height: 16px; content: ''; }
.xg-sub a { display: block; padding: 11px 14px; border-radius: 14px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.xg-sub a:hover { background: var(--xg-btn); color: var(--xg-blue); }

/* مگا‌منوی پیشرفته‌ی دسته‌بندی‌ها (دو ستونه: گرید دسته‌ها + پنل محصول ویژه) */
.xg-cats__mega { position: absolute; inset-inline-start: 0; top: calc(100% + 14px); z-index: 5; width: 680px; max-width: 94vw; padding: 14px; border: 1px solid var(--xg-line); border-radius: 24px; background: color-mix(in srgb, var(--xg-surface) 90%, transparent); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 28px 60px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.985); transform-origin: top; transition: opacity .22s, transform .22s, visibility .22s; }
.xg-menu__item.xg-cats:hover > .xg-cats__mega, .xg-menu__item.xg-cats.is-open > .xg-cats__mega, .xg-menu__item.xg-cats:focus-within > .xg-cats__mega { opacity: 1; visibility: visible; transform: none; }
.xg-cats__mega::before { position: absolute; inset-inline: 0; top: -16px; height: 16px; content: ''; }
.xg-cats__mega-in { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 14px; }
.xg-cats__main { min-width: 0; }
/* سربرگ همه محصولات */
.xg-cats__all { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(100deg, color-mix(in srgb, var(--xg-blue) 16%, transparent), color-mix(in srgb, var(--xg-blue) 5%, transparent)); color: var(--xg-text); }
.xg-cats__all-ic { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--xg-blue); color: #fff; }
.xg-cats__all-ic .xg-icon { width: 22px; height: 22px; }
.xg-cats__all-txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.xg-cats__all-txt b { font-size: 15px; font-weight: 900; }
.xg-cats__all-txt small { color: var(--xg-muted); font-size: 11.5px; font-weight: 600; }
.xg-cats__all .xg-cats__arrow { width: 18px; height: 18px; margin-inline-start: auto; color: var(--xg-blue); transition: transform .2s; }
.xg-cats__all:hover .xg-cats__arrow { transform: translateX(-5px); }
/* گرید دسته‌ها */
.xg-cats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 0; list-style: none; }
.xg-cats__grid > li > a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid transparent; border-radius: 14px; font-weight: 700; white-space: normal; transition: background .18s, border-color .18s, transform .15s; }
.xg-cats__grid > li > a:hover { background: color-mix(in srgb, var(--xg-blue) 7%, var(--xg-btn)); border-color: color-mix(in srgb, var(--xg-blue) 22%, transparent); transform: translateY(-2px); }
.xg-cats__ic { display: grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--xg-blue) 12%, transparent); color: var(--xg-blue); transition: background .2s, color .2s, transform .2s; }
.xg-cats__ic .xg-icon { width: 22px; height: 22px; }
.xg-cats__grid > li > a:hover .xg-cats__ic { background: var(--xg-blue); color: #fff; transform: scale(1.06); }
.xg-cats__meta { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; line-height: 1.35; }
.xg-cats__name { overflow: hidden; color: var(--xg-text); font-size: 13.5px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.xg-cats__desc { color: var(--xg-muted); font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xg-cats__count { flex-shrink: 0; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--xg-btn); color: var(--xg-muted); font-size: 11px; font-weight: 800; text-align: center; }
.xg-cats__grid > li > a:hover .xg-cats__count { background: var(--xg-blue); color: #fff; }
/* پنل محصول ویژه (کارت حرفه‌ای) */
.xg-cats__promo { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--xg-line); border-radius: 18px; background: var(--xg-btn); transition: border-color .2s, transform .2s, box-shadow .2s; }
.xg-cats__promo:hover { border-color: color-mix(in srgb, var(--xg-blue) 45%, transparent); transform: translateY(-3px); box-shadow: 0 18px 36px -16px color-mix(in srgb, var(--xg-blue) 75%, transparent); }
.xg-cats__promo-media { position: relative; display: block; width: 100%; aspect-ratio: 1/1; overflow: hidden; background: color-mix(in srgb, var(--xg-text) 6%, transparent); }
.xg-cats__promo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.xg-cats__promo:hover .xg-cats__promo-media img { transform: scale(1.06); }
.xg-cats__promo-tag { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--xg-blue); color: #fff; font-size: 10.5px; font-weight: 900; box-shadow: 0 6px 14px -4px rgba(0,0,0,.4); }
.xg-cats__promo-tag .xg-icon { width: 13px; height: 13px; }
.xg-cats__promo.is-sale .xg-cats__promo-tag { background: var(--xg-red); }
.xg-cats__promo-off { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; display: grid; place-items: center; min-width: 40px; padding: 4px 8px; border-radius: 10px; background: var(--xg-red); color: #fff; font-size: 12px; font-weight: 900; }
.xg-cats__promo-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.xg-cats__promo-name { color: var(--xg-text); font-size: 13px; font-weight: 800; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xg-cats__promo-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.xg-cats__promo-price ins { color: var(--xg-blue); font-size: 14px; font-weight: 900; text-decoration: none; }
.xg-cats__promo-price del { color: var(--xg-muted); font-size: 11.5px; font-weight: 600; }
.xg-cats__promo-call { color: var(--xg-blue); font-size: 13px; font-weight: 800; }
.xg-cats__promo-cta { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 14px 14px; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--xg-blue) 12%, transparent); color: var(--xg-blue); font-size: 12.5px; font-weight: 800; transition: background .2s, color .2s; }
.xg-cats__promo:hover .xg-cats__promo-cta { background: var(--xg-blue); color: #fff; }
.xg-cats__promo-cta .xg-icon { width: 15px; height: 15px; transition: transform .2s; }
.xg-cats__promo:hover .xg-cats__promo-cta .xg-icon { transform: translateX(-4px); }
@media (max-width: 1180px) { .xg-cats__mega { width: 620px; } .xg-cats__mega-in { grid-template-columns: minmax(0,1fr) 200px; } }
@media (max-width: 1000px) {
	.xg-cats__mega { width: 470px; } .xg-cats__mega-in { grid-template-columns: 1fr; }
	.xg-cats__promo { flex-direction: row; align-items: stretch; }
	.xg-cats__promo-media { width: 110px; aspect-ratio: 1/1; flex-shrink: 0; }
	.xg-cats__promo-body { flex: 1; justify-content: center; }
	.xg-cats__promo-cta { flex-direction: column; justify-content: center; margin: 12px 12px 12px 0; flex-shrink: 0; writing-mode: vertical-rl; display: none; }
}
.xg-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.xg-action { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: var(--xg-text); transition: color .2s, transform .15s; }
.xg-action .xg-icon { width: 26px; height: 26px; }
.xg-action:hover { color: var(--xg-blue); }
.xg-action:active { transform: scale(.92); }
.xg-action .icon-sun { display: none; }
html[data-theme="light"] .xg-action .icon-sun { display: block; }
html[data-theme="light"] .xg-action .icon-moon { display: none; }
.xg-actions .nestor-lang-switcher { margin: 0; }
.xg-search { display: flex; align-items: center; gap: 15px; width: min(596px, 100%); height: 67px; margin: 23px auto 0; padding: 8px; border: 1px solid var(--xg-surface); border-radius: 40px; background: var(--xg-surface); }
html[data-theme="light"] .xg-search { border-color: var(--xg-line); box-shadow: 0 8px 24px rgba(15,23,41,.08); }
.xg-search button[type="submit"], .xg-search button { display: grid; flex-shrink: 0; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--xg-btn); color: var(--xg-text); }
.xg-search input[type="search"] { width: 100%; min-width: 0; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--xg-text); font: inherit; font-size: 17px; }
.xg-search input::placeholder { color: var(--xg-muted); }
.xg-search input[type="search"]::-webkit-search-cancel-button { display: none; }

/* ── موبایل: سربرگ شیشه‌ای ── */
.xg-mobile-top { display: none; }
.xg-toggle { display: grid; place-items: center; width: 47px; height: 47px; padding: 0; border: 0; border-radius: 13px; background: rgba(255,255,255,.13); color: var(--xg-text); }
html[data-theme="light"] .xg-toggle { background: rgba(15,23,41,.07); }
.xg-support { display: grid; place-items: center; width: 47px; height: 47px; border: 0; border-radius: 15px; color: var(--xg-text); }
.xg-mobile-logo { display: flex; flex-direction: column; align-items: center; }
.xg-mobile-logo .xg-brand-icon { width: 42px; height: 30px; }
.xg-mobile-logo strong { font-family: Arial, sans-serif; font-size: 19px; line-height: 1; }

/* ── منوی کشویی موبایل (طراحی مدرن) ── */
.xg-drawer { position: fixed; z-index: 1300; inset: 0; display: flex; justify-content: flex-end; }
.xg-drawer[hidden] { display: none; }
.xg-drawer__overlay { position: absolute; inset: 0; background: rgba(5,8,16,.55); backdrop-filter: blur(8px) saturate(1.2); -webkit-backdrop-filter: blur(8px) saturate(1.2); animation: xgFade .25s ease; }
.xg-drawer__panel { position: relative; z-index: 1; display: flex; width: min(348px, 90vw); height: 100%; flex-direction: column; padding: 0 0 calc(14px + env(safe-area-inset-bottom,0px)); overflow-y: auto; overscroll-behavior: contain; background: color-mix(in srgb, var(--xg-surface) 96%, transparent); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); border-inline-start: 1px solid var(--xg-line); box-shadow: -24px 0 60px rgba(0,0,0,.4); animation: xgSlide .3s cubic-bezier(.33,1,.68,1); }
/* با نوار مدیریت وردپرس، کل کشو زیر نوار شروع شود تا سربرگ چسبان روی آیتم اول نیفتد */
body.admin-bar .xg-drawer { top: 46px; }
@media (min-width: 783px) { body.admin-bar .xg-drawer { top: 32px; } }
html[dir="rtl"] .xg-drawer { justify-content: flex-end; }
/* سربرگ چسبان (top:0 نسبت به خودِ کشو؛ آفست نوار مدیریت روی کل کشو اعمال شده) */
.xg-drawer__head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--xg-blue) 10%, var(--xg-surface)), color-mix(in srgb, var(--xg-surface) 94%, transparent)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--xg-line); }
.xg-drawer__head strong { font-size: 16px; font-weight: 900; letter-spacing: -.01em; }
.xg-drawer__head .xg-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--xg-btn); color: var(--xg-text); cursor: pointer; transition: background .18s, color .18s, transform .15s; }
.xg-drawer__head .xg-toggle:hover { background: color-mix(in srgb, var(--xg-blue) 16%, var(--xg-btn)); color: var(--xg-blue); }
.xg-drawer__head .xg-toggle:active { transform: scale(.9); }
.xg-drawer__panel ul { margin: 0; padding: 0; list-style: none; }
/* ناوبری اصلی */
.xg-drawer__panel > ul:first-of-type { display: flex; flex-direction: column; gap: 5px; padding: 14px 14px 0; }
.xg-drawer__panel > ul > li > a { position: relative; display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 15px; border: 1px solid transparent; font-size: 15px; font-weight: 800; color: var(--xg-text); transition: background .18s, border-color .18s, transform .12s; }
.xg-drawer__panel > ul > li > a .xg-cat { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--xg-blue) 12%, transparent); color: var(--xg-blue); transition: background .2s, color .2s, transform .2s; }
.xg-drawer__panel > ul > li > a .xg-cat svg { width: 20px; height: 20px; }
.xg-drawer__panel > ul > li > a:active { transform: scale(.98); }
.xg-drawer__panel > ul > li > a:hover { background: color-mix(in srgb, var(--xg-blue) 7%, var(--xg-btn)); border-color: color-mix(in srgb, var(--xg-blue) 20%, transparent); }
.xg-drawer__panel > ul > li > a:hover .xg-cat { background: var(--xg-blue); color: #fff; transform: scale(1.05); }
.xg-drawer__panel > ul > li > ul { margin: 2px 0 6px; padding-inline-start: 49px; display: flex; flex-direction: column; gap: 1px; }
.xg-drawer__panel > ul > li > ul > li > a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--xg-muted); font-size: 13.5px; font-weight: 600; }
.xg-drawer__panel > ul > li > ul > li > a:hover { background: var(--xg-btn); color: var(--xg-text); }
/* برچسب بخش دسته‌بندی‌ها */
.xg-drawer__cats-label { display: block; margin: 16px 16px 8px; padding-top: 14px; border-top: 1px solid var(--xg-line); color: var(--xg-muted); font-size: 12px; font-weight: 800; }
/* دسته‌بندی‌ها: کارت‌های آیکونی ۲ ستونی مرتب و جذاب */
.xg-drawer__panel > ul:has(> li.is-cat) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.xg-drawer__panel li.is-cat { display: block; }
.xg-drawer__panel li.is-cat > a {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	min-height: 92px; padding: 14px 10px; overflow: hidden;
	border: 1px solid var(--xg-line); border-radius: 18px;
	background: linear-gradient(160deg, color-mix(in srgb, var(--xg-blue) 7%, var(--xg-btn)), var(--xg-btn));
	color: var(--xg-text); font-size: 13px; font-weight: 800; text-align: center; line-height: 1.4;
	transition: border-color .2s, color .2s, transform .18s, box-shadow .2s;
}
.xg-drawer__panel li.is-cat > a::before {
	content: ""; position: absolute; inset-block-start: -30%; inset-inline-end: -30%; width: 70px; height: 70px; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--xg-blue) 30%, transparent), transparent 70%);
	opacity: 0; transition: opacity .25s;
}
.xg-drawer__cat-ic {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
	background: color-mix(in srgb, var(--xg-blue) 14%, transparent); color: var(--xg-blue);
	transition: transform .2s, background .2s;
}
.xg-drawer__cat-ic .xg-icon { width: 24px; height: 24px; }
.xg-drawer__cat-name { display: block; }
.xg-drawer__panel li.is-cat > a:hover {
	border-color: color-mix(in srgb, var(--xg-blue) 45%, transparent);
	transform: translateY(-3px);
	box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--xg-blue) 70%, transparent);
}
.xg-drawer__panel li.is-cat > a:hover::before { opacity: 1; }
.xg-drawer__panel li.is-cat > a:hover .xg-drawer__cat-ic { transform: scale(1.08); background: var(--xg-blue); color: #fff; }
.xg-drawer__panel li.is-cat > a:active { transform: scale(.97); }
.xg-drawer__foot { display: flex; flex-direction: column; gap: 10px; margin: 18px 14px 0; padding-top: 18px; border-top: 1px solid var(--xg-line); }
.xg-drawer__theme, .xg-drawer__support { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--xg-line); border-radius: 15px; background: var(--xg-btn); color: var(--xg-text); font-size: 14px; font-weight: 800; cursor: pointer; transition: border-color .18s, background .18s, color .18s, transform .15s; }
.xg-drawer__support { text-decoration: none; }
.xg-drawer__theme:hover, .xg-drawer__support:hover { border-color: color-mix(in srgb, var(--xg-blue) 40%, transparent); background: color-mix(in srgb, var(--xg-blue) 10%, var(--xg-btn)); color: var(--xg-blue); transform: translateY(-2px); }
.xg-drawer__theme svg, .xg-drawer__support svg { width: 20px; height: 20px; color: var(--xg-blue); }
/* سوییچ زبان در پایین منو */
.xg-drawer__foot .nestor-lang-switcher, .xg-drawer__foot .xg-lang { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 4px; }
.xg-drawer__theme .icon-sun { display: none; }
html[data-theme="light"] .xg-drawer__theme .icon-sun { display: block; }
html[data-theme="light"] .xg-drawer__theme .icon-moon { display: none; }
@keyframes xgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes xgSlide { from { transform: translateX(100%); } to { transform: none; } }
html:not([dir="rtl"]) .xg-drawer__panel { animation-name: xgSlideL; }
@keyframes xgSlideL { from { transform: translateX(-100%); } to { transform: none; } }

/* ── نوار ثابت پایین موبایل ── */
.xg-mobile-bottom { position: fixed; z-index: 100; bottom: 0; left: 50%; display: none; align-items: center; justify-content: space-around; gap: 4px; width: min(540px, 100%); min-height: 82px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 30px 30px 0 0; background: color-mix(in srgb, var(--xg-surface) 94%, transparent); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); transform: translateX(-50%); box-shadow: 0 -12px 34px rgba(0,0,0,.3); }
html[data-theme="light"] .xg-mobile-bottom { box-shadow: 0 -10px 30px rgba(15,23,41,.1); border-top: 1px solid var(--xg-line); }
.xg-mobile-bottom a, .xg-mobile-bottom > button { position: relative; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 14px; background: transparent; color: var(--xg-muted); transition: color .2s, background .2s, transform .15s; }
.xg-mobile-bottom a:active, .xg-mobile-bottom > button:active { transform: scale(.9); }
.xg-mobile-bottom .xg-icon { width: 26px; height: 26px; stroke-width: 1.8; }
.xg-mobile-bottom a.is-active { color: var(--xg-blue); background: color-mix(in srgb, var(--xg-blue) 12%, transparent); }
.xg-mobile-bottom .xg-mobile-search { width: 62px; height: 62px; margin-top: -22px; border: 4px solid var(--xg-surface); border-radius: 50%; background: var(--xg-blue); color: #fff; box-shadow: 0 10px 24px -4px color-mix(in srgb, var(--xg-blue) 55%, transparent); }
.xg-mobile-bottom .xg-mobile-search .xg-icon { width: 28px; height: 28px; stroke-width: 2; }
.xg-mobile-bottom .xg-mobile-search:active { transform: scale(.92); }
.xg-mobile-bottom .xg-badge { top: 0; inset-inline-end: 4px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 10px; }

/* ── جستجوی موبایل (پوشش کامل) ── */
.xg-msearch { position: fixed; z-index: 1100; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px; }
.xg-msearch[hidden] { display: none; }
.xg-msearch__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); animation: xgFade .2s ease; }
.xg-msearch__form { position: relative; z-index: 1; margin-top: 0; animation: xgFade .2s ease; }

/* ── بنرها (صفحه اصلی) ── */
.xg-banners { padding: 30px 3% 54px 5.5%; background: var(--xg-page); }
.xg-banners h2 { margin: 0 0 26px; color: var(--c-white); font-size: 30px; font-weight: 800; line-height: 1.6; }
.xg-banner-grid { --xg-h: 466px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
.xg-banner { position: relative; height: var(--xg-h); border-radius: 22px; isolation: isolate; color: #f7f7f7; }
/* بنر کوچک: عرض از روی ارتفاع با نسبت ثابت تصویر ۸۵۴×۹۳۲ (۴۲۷:۴۶۶) ← تصویر بدون برش و کامل دیده می‌شود */
.xg-banner-small { overflow: hidden; }
.xg-banner-main { background: linear-gradient(90deg, var(--xg-olive-l), var(--xg-olive-r)); }
.xg-banner .xg-character { position: absolute; z-index: -1; bottom: 0; left: 1%; width: 36%; height: 95%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
/* حالت کاور: تصویر تمام‌قاب + تیرگی + متن روی آن */
.xg-banner-main.is-cover { background: var(--xg-surface); overflow: hidden; }
.xg-banner-main.is-cover .xg-cover-img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.xg-banner-main.is-cover .xg-cover-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(to left, rgba(0,0,0,calc(var(--xg-ov, .45) + .15)) 0%, rgba(0,0,0,var(--xg-ov, .45)) 45%, rgba(0,0,0,calc(var(--xg-ov, .45) * .4)) 100%); }
.xg-banner-main.is-cover .xg-banner-copy { right: 5%; width: 56%; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
/* بدون متن قالب: کل بنر لینک، تصویر تمام‌قاب */
.xg-banner-main.is-bare .xg-banner-link { position: absolute; z-index: 3; inset: 0; }
.xg-banner-main.is-bare .xg-cover-img { z-index: 0; }
@media (max-width: 900px) { .xg-banner-main.is-cover .xg-banner-copy { right: 0; width: 100%; } .xg-banner-main.is-cover .xg-cover-shade { background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,var(--xg-ov, .45)) 60%); } }
.xg-banner-copy { position: absolute; top: 50%; right: 1%; width: 59%; text-align: var(--xg-al, center); transform: translateY(-50%); }
/* متن روی بنر همیشه روشن است (پس‌زمینه‌ی بنر زیتونی تیره است)؛ بدون این، در تم روشن h3/p سراسری تیره می‌شدند. */
.xg-banner-copy, .xg-banner-copy h3, .xg-banner-copy p { color: #f7f7f7; }
.xg-banner-copy p { margin: 0 0 12px; font-size: 29px; font-weight: 700; }
.xg-banner-copy h3 { margin: 0 0 14px; font-size: 40px; font-weight: 800; line-height: 1.4; }
.xg-banner-copy p.xg-banner-label { display: flex; align-items: center; justify-content: var(--xg-jc, center); gap: 12px; }
.xg-off { display: inline-grid; place-items: center; min-width: 52px; height: 32px; padding: 0 12px; border-radius: 999px; background: #f7f7f7; color: var(--xg-olive-btn); font-size: 16px; font-weight: 900; line-height: 1; }

/* ── تایمر فروش ویژه (هماهنگ با کپسول‌ها و دکمه‌ی خرید قالب) ── */
.xg-cd { display: flex; flex-direction: column; align-items: center; gap: 12px; width: max-content; max-width: 100%; margin: 0 auto 26px; margin-inline: var(--xg-mi, auto); padding: 14px 18px 16px; border: 1px solid rgba(247,247,247,.28); border-radius: 24px; background: rgba(12,14,8,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.xg-cd[hidden] { display: none; }
.xg-cd__title { display: inline-flex; align-items: center; gap: 8px; color: rgba(247,247,247,.92); font-size: 15px; font-weight: 700; line-height: 1; }
.xg-cd__clock { flex-shrink: 0; }
.xg-cd.is-urgent .xg-cd__title::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--xg-red); animation: xgPulse 1.4s ease-out infinite; }
.xg-cd__cells { display: flex; align-items: center; gap: 8px; }
.xg-cd__cell { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 78px; padding: 11px 8px 9px; border: 1px solid rgba(247,247,247,.3); border-radius: 16px; background: rgba(0,0,0,.18); }
.xg-cd__cell strong { color: #f7f7f7; font-size: 34px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.xg-cd__cell small { color: rgba(247,247,247,.78); font-size: 13px; font-weight: 700; line-height: 1; }
/* ثانیه: همان زبان دایره‌ی سفید فلش دکمه‌ی خرید */
.xg-cd__cell.is-sec { border-color: #f7f7f7; background: #f7f7f7; }
.xg-cd__cell.is-sec strong, .xg-cd__cell.is-sec small { color: var(--xg-olive-btn); }
.xg-cd__sep { display: flex; flex-direction: column; gap: 7px; }
.xg-cd__sep i { width: 4px; height: 4px; border-radius: 50%; background: rgba(247,247,247,.65); }
@keyframes xgPulse { 0% { box-shadow: 0 0 0 0 rgba(255,0,66,.65); } 70% { box-shadow: 0 0 0 8px rgba(255,0,66,0); } 100% { box-shadow: 0 0 0 0 rgba(255,0,66,0); } }
/* وقتی محصول هیچ تصویری ندارد: به‌جای تصویر خالی، پس‌زمینه‌ی تزئینی و متن تمام‌عرض */
.xg-banner-main.is-noimg .xg-banner-copy { right: 0; width: 100%; padding: 0 24px; }
.xg-banner-small.is-noimg { background: linear-gradient(160deg, #6a1a1f, #2b0709); }
.xg-buy { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 56px; padding: 8px 15px 8px 12px; border-radius: 40px; background: var(--xg-olive-btn); color: #f7f7f7; font-size: 18px; font-weight: 700; transition: transform .15s, filter .2s; }
.xg-buy:hover { filter: brightness(1.15); }
.xg-buy:active { transform: scale(.97); }
.xg-buy-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f7f7f7; color: var(--xg-olive-btn); }
.xg-buy-arrow .xg-icon { width: 20px; height: 20px; }
.xg-banner .xg-red-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; border-radius: inherit; object-fit: cover; }
.xg-banner-small .xg-red-bottom { z-index: 2; }
.xg-red-bottom { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 96px; padding: 18px 22px; border-top: 1px solid var(--xg-line); border-radius: 60px 60px 22px 22px; background: var(--xg-red-glass); backdrop-filter: blur(12px); }
.xg-red-title { min-width: 0; overflow: hidden; font-size: 17px; font-weight: 800; line-height: 1.5; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xg-red-bottom .xg-buy { min-height: 35px; gap: 5px; padding: 5px 12px; background: var(--xg-red-btn); font-size: 13px; white-space: nowrap; }
.xg-red-bottom .xg-buy-arrow { width: 20px; height: 20px; color: var(--xg-red-btn); }
.xg-red-bottom .xg-buy-arrow .xg-icon { width: 14px; height: 14px; }
/* ── اسلایدر بنرها: اسلایدها روی هم، جابه‌جایی با محو + حرکت کوتاه ── */
.xg-slider { position: relative; display: grid; min-width: 0; }
.xg-slider > .xg-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(-14px); transition: opacity .5s ease, transform .5s ease, visibility 0s .5s; }
.xg-slider > .xg-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease, visibility 0s; }
.xg-slider > .xg-slide.is-leaving { transform: translateX(14px); }
.xg-slider--small { width: auto; aspect-ratio: 427 / 466; height: var(--xg-h); }
.xg-slider--small > .xg-banner-small { width: 100%; height: 100%; }
.xg-dots { position: absolute; z-index: 3; bottom: -22px; left: 50%; display: flex; direction: ltr; align-items: center; justify-content: center; gap: 14px; height: 36px; padding: 0 22px; border-radius: 25px 25px 0 0; background: var(--xg-page); transform: translateX(-50%); }
.xg-slider--small .xg-dots { gap: 10px; padding: 0 16px; height: 30px; bottom: -18px; }
.xg-dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 99px; background: var(--xg-muted); cursor: pointer; transition: width .3s, background .3s; }
.xg-slider--small .xg-dot { width: 8px; height: 8px; }
.xg-dot:focus-visible { outline: 2px solid var(--xg-blue); outline-offset: 3px; }
.xg-dot.is-active { width: 26px; background: var(--xg-blue); }
.xg-slider--small .xg-dot.is-active { width: 18px; }
/* لوگوی بازی در کادر پایین بنر کوچک */
.xg-red-logo { display: block; height: 58px; width: auto; max-width: 52%; object-fit: contain; object-position: right center; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
@media (prefers-reduced-motion: reduce) { .xg-slider > .xg-slide { transition: none; transform: none; } }

@media (max-width: 1200px) {
	.xg-menu { gap: 18px; }
	.xg-menu__item > a { font-size: 15px; }
	.xg-desktop-nav { gap: 18px; padding-inline: 20px; }
	.xg-actions { gap: 14px; }
	.xg-banner-copy h3 { font-size: 30px; }
	.xg-banner-copy p { font-size: 24px; }
	.xg-cd__cell { min-width: 66px; }
	.xg-cd__cell strong { font-size: 28px; }
	.xg-red-bottom { padding-inline: 15px; }
	.xg-banner-grid { --xg-h: 400px; }
	.xg-red-title { font-size: 15px; }
}
@media (max-width: 900px) {
	.xg-desktop { display: none; }
	.xg-mobile-top { position: sticky; top: 6px; z-index: 200; display: flex; align-items: center; justify-content: space-between; width: calc(100% - 20px); max-width: 508px; height: 56px; margin: 6px auto 0; padding: 8px 14px; border-radius: 18px; background: color-mix(in srgb, var(--xg-surface) 72%, transparent); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
	html[data-theme="light"] .xg-mobile-top { border: 1px solid var(--xg-line); box-shadow: 0 6px 20px rgba(15,23,41,.1); }
	body.admin-bar .xg-mobile-top { top: 52px; }
	.xg-mobile-bottom { display: flex; }
	body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
	.xg-banners { padding: 25px 16px 42px; }
	.xg-banners h2 { font-size: 22px; line-height: 1.7; }
	.xg-banner-grid { grid-template-columns: 1fr; gap: 24px; }
	/* ── بنر شخصیت‌دار: چیدمان ستونی طبیعی (بدون روی‌هم‌افتادگی و بدون فاصله‌ی خالی) ──
	   متن/تایمر/دکمه بالا، سپس تصویر با ارتفاع ثابت دقیقاً زیر آن؛ همه در جریان عادی. */
	.xg-banner-main { display: flex; flex-direction: column; height: auto; min-height: 0; }
	.xg-banner-copy { order: 1; position: relative; top: auto; right: auto; width: 100%; padding: 22px 18px 18px; transform: none; }
	.xg-banner-copy h3 { font-size: 23px; margin-bottom: 10px; }
	.xg-banner-copy p { font-size: 18px; margin-bottom: 10px; }
	.xg-banner-copy p.xg-banner-label { font-size: 16px; }
	/* تصویر: بلوک با ارتفاع ثابت، درست زیر متن (نه absolute) تا نه تداخل باشد نه فاصله */
	.xg-banner .xg-character { order: 2; position: relative; z-index: 0; inset: auto; flex: 0 0 auto; transform: none; width: 100%; height: 200px; padding: 0 14px 12px; opacity: 1; object-fit: contain; object-position: center bottom; }
	/* بنر کاور (تصویر تمام‌قاب): ارتفاع متعادل، متن روی تصویر می‌ماند */
	.xg-banner-main.is-cover { display: block; height: 380px; min-height: 0; }
	.xg-banner-main.is-cover .xg-banner-copy { position: absolute; top: 24px; }
	/* بنر بدون تصویر: متن تمام‌عرض */
	.xg-banner-main.is-noimg { display: block; min-height: 0; }
	.xg-off { min-width: 44px; height: 28px; font-size: 14px; }
	.xg-cd { gap: 9px; margin-bottom: 18px; padding: 10px 12px 12px; border-radius: 20px; }
	.xg-cd__title { font-size: 12px; }
	.xg-cd__cells { gap: 5px; }
	.xg-cd__cell { min-width: 54px; gap: 5px; padding: 8px 4px 7px; border-radius: 12px; }
	.xg-cd__cell strong { font-size: 22px; }
	.xg-cd__cell small { font-size: 11px; }
	.xg-cd__sep { gap: 5px; }
	.xg-slider--small { width: min(427px, 100%); height: auto; margin-inline: auto; }
	.xg-red-logo { height: 48px; }
	.xg-dots { gap: 14px; padding-inline: 22px; }
}
/* جستجوی تمام‌صفحه در دسکتاپ هم از دکمه‌ی ذره‌بین هدر باز می‌شود (فقط وقتی hidden نباشد). */
@media (min-width: 901px) { .xg-mobile-top, .xg-mobile-bottom, .xg-drawer { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .xg *, .xg-drawer__panel, .xg-msearch__form { animation: none !important; transition: none !important; } }

/* قاب هدر: خود <header> فقط نگهدارنده است؛ ظاهر در .xg-desktop / .xg-mobile-top */
.xg-header { display: contents; }


/* ══════════════════════════════════════════
   ایزوله‌سازی جهت فیلدهای حساس (RTL/LTR)
   ایمیل، تلفن، لینک، کد رهگیری و هر داده‌ی لاتین باید همیشه LTR بماند
   تا در رابط راست‌چین جابجا/ناخوانا نشود. /*rtl:ignore*/ به ابزارهای
   RTLCSS می‌گوید این مقادیر را آینه‌ای نکنند.
   ══════════════════════════════════════════ */
.nl-ltr,
.nl-dir-ltr,
input[type="email"].nl-ltr,
input[type="tel"].nl-ltr,
input[type="url"].nl-ltr,
.nl-tracking-code,
.nl-phone-number,
.nl-order-number,
.nl-dns-ip,
.nestor-auth-phone-input,
.woocommerce-input-wrapper input[type="email"],
.woocommerce-input-wrapper input[type="tel"] {
	direction: ltr /*rtl:ignore*/;
	text-align: start;
	unicode-bidi: isolate /*rtl:ignore*/;
}

/* اعداد و کدها در هر جهت، به‌صورت ایزوله (شماره سفارش، IP، کد تخفیف) */
.nl-isolate {
	unicode-bidi: isolate /*rtl:ignore*/;
	direction: ltr /*rtl:ignore*/;
	display: inline-block;
}

/* لینک‌های خام (URL نمایش‌داده‌شده) همیشه LTR */
a.nl-raw-url,
.nl-raw-url {
	direction: ltr /*rtl:ignore*/;
	unicode-bidi: bidi-override /*rtl:ignore*/;
}

/* ══════════════════════════════════════════
   نرمال‌سازی محتوای برگه‌ها و نوشته‌های قدیمی (مهاجرت‌شده)
   برگه‌هایی که از سایت قبلی آمده‌اند اغلب استایل inline یا
   کلاس‌های پیج‌بیلدر قدیمی دارند که فونت را خیلی بزرگ و فاصله‌ها
   را نامرتب می‌کنند. این بخش آن‌ها را خوانا و هماهنگ با قالب می‌کند.
══════════════════════════════════════════ */
.nsp-article-body,
.nsa-body,
.nestor-editor-content,
.nsp-plain-page {
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.95;
	word-break: break-word;
	overflow-wrap: anywhere;
}

/* تیترها: اندازه‌ی معقول و یکدست (مهار فونت‌های غول‌پیکر قدیمی) */
.nsp-article-body h1,
.nsa-body h1,
.nestor-editor-content h1,
.nsp-plain-page h1 {
	font-size: clamp(1.5rem, 3.2vw, 2rem) !important;
	line-height: 1.4 !important;
	font-weight: 800;
	margin: 1.2em 0 .5em;
}
.nsp-article-body h2,
.nsa-body h2,
.nestor-editor-content h2,
.nsp-plain-page h2 {
	font-size: clamp(1.25rem, 2.6vw, 1.6rem) !important;
	line-height: 1.45 !important;
	font-weight: 800;
	margin: 1.4em 0 .5em;
}
.nsp-article-body h3,
.nsa-body h3,
.nestor-editor-content h3,
.nsp-plain-page h3 {
	font-size: clamp(1.1rem, 2vw, 1.3rem) !important;
	line-height: 1.5 !important;
	font-weight: 700;
	margin: 1.2em 0 .4em;
}
.nsp-article-body h4,
.nsa-body h4,
.nestor-editor-content h4,
.nsp-plain-page h4,
.nsp-article-body h5,
.nsa-body h5,
.nestor-editor-content h5,
.nsp-plain-page h5,
.nsp-article-body h6,
.nsa-body h6,
.nestor-editor-content h6,
.nsp-plain-page h6 {
	font-size: 1.05rem !important;
	line-height: 1.6 !important;
	font-weight: 700;
	margin: 1em 0 .35em;
}

/* پاراگراف و متن: اندازه و فاصله خوانا */
.nsp-article-body p,
.nsa-body p,
.nestor-editor-content p,
.nsp-plain-page p {
	font-size: 16px !important;
	line-height: 1.95 !important;
	margin: 0 0 1.1em;
}

/* مهار استایل‌های inline خام قدیمی روی span/font و اندازه‌های نقطه‌ای بزرگ */
.nsp-article-body [style*="font-size"],
.nsa-body [style*="font-size"],
.nestor-editor-content [style*="font-size"],
.nsp-plain-page [style*="font-size"] {
	font-size: inherit !important;
	line-height: inherit !important;
}
.nsp-article-body font[size],
.nsa-body font[size],
.nestor-editor-content font[size],
.nsp-plain-page font[size] {
	font-size: inherit !important;
}

/* فاصله‌های عمودی افراطی بین عناصر را نرمال کن */
.nsp-article-body br + br,
.nsa-body br + br,
.nestor-editor-content br + br,
.nsp-plain-page br + br {
	display: none;
}

/* تصاویر و جدول‌ها واکنش‌گرا */
.nsp-article-body img,
.nsa-body img,
.nestor-editor-content img,
.nsp-plain-page img {
	max-width: 100% !important;
	height: auto !important;
	border-radius: 12px;
}
.nsp-article-body table,
.nsa-body table,
.nestor-editor-content table,
.nsp-plain-page table {
	width: 100% !important;
	max-width: 100% !important;
	display: block;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 14px;
}

/* فهرست‌ها خوانا */
.nsp-article-body ul,
.nsp-article-body ol,
.nsa-body ul,
.nsa-body ol,
.nestor-editor-content ul,
.nestor-editor-content ol,
.nsp-plain-page ul,
.nsp-plain-page ol {
	font-size: 16px !important;
	line-height: 1.9 !important;
	padding-inline-start: 1.4em;
	margin: 0 0 1.1em;
}

/* عنوان اصلی برگه‌ی ساده: اندازه‌ی کنترل‌شده و خوانا */
.nsp-plain-page .nsp-hero-title,
.nsp-page .nsp-hero-title {
	font-size: clamp(1.4rem, 3vw, 1.9rem) !important;
	line-height: 1.45 !important;
	font-weight: 800;
}

/* روی موبایل کمی فشرده‌تر تا متن‌های طولانی خوانا بمانند */
@media (max-width: 600px) {
	.nsp-article-body,
	.nsa-body,
	.nestor-editor-content,
	.nsp-plain-page {
		font-size: 15px;
		line-height: 1.9;
	}
	.nsp-article-body p,
	.nsa-body p,
	.nestor-editor-content p,
	.nsp-plain-page p {
		font-size: 15px !important;
	}
}

/* ══════════════════════════════════════════
   ضد صفحه سفید: ویجت‌های دارای «انیمیشن ورود» المنتور با کلاس elementor-invisible
   (visibility:hidden) شروع می‌شوند و فقط JS المنتور آن‌ها را نمایان می‌کند. اگر JS
   دیر/هرگز اجرا شود (مثلاً «تأخیر در اجرای JS» در WP Rocket روی موبایل)، صفحه سفید
   می‌ماند. این انیمیشن پشتیبان پس از ۲ ثانیه محتوا را در هر حال نمایان می‌کند.
══════════════════════════════════════════ */
@keyframes nestorRevealFallback { to { visibility: visible; opacity: 1; } }
.elementor-invisible { animation: nestorRevealFallback 0s 2s forwards; }

/* ══════════════════════════════════════════
   حساب کاربری — طرح جدید (منوی کناری + محتوا)
   منو از wc_get_account_menu_items() ساخته می‌شود؛ بخش‌های افزونه‌ها هم نمایش داده می‌شوند.
══════════════════════════════════════════ */
.nda-shell { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; padding: 8px 0 24px; }
@media (min-width: 992px) {
	.nda-shell { grid-template-columns: 290px minmax(0, 1fr); gap: 28px; }
	.nda-nav { position: sticky; top: calc(var(--nestor-header-h, 100px) + 16px); }
}

/* منوی کناری */
.nda-nav { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 18px; box-shadow: 0 12px 32px var(--c-shadow); }
.nda-nav__user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; margin-bottom: 10px; border-bottom: 1px solid var(--c-border); }
.nda-nav__avatar { display: grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-d)); color: #fff; font-size: 1.35rem; font-weight: 900; box-shadow: 0 8px 20px color-mix(in srgb, var(--c-primary) 35%, transparent); }
.nda-nav__who { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.nda-nav__who strong { overflow: hidden; color: var(--c-white); font-size: 15px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.nda-nav__who span { color: var(--c-text-muted); font-size: 12px; text-align: start; }
.nda-nav__list { display: flex; flex-direction: column; gap: 4px; }
.nda-nav__link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; color: var(--c-text); font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
.nda-nav__link:hover { background: var(--c-surface-2); color: var(--c-white); }
.nda-nav__link.is-active { background: color-mix(in srgb, var(--c-primary) 14%, transparent); color: var(--c-primary); }
.nda-nav__ico { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--c-surface-2); color: var(--c-text-muted); transition: inherit; }
.nda-nav__link.is-active .nda-nav__ico { background: var(--c-primary); color: #fff; }
.nda-nav__link.is-logout { margin-top: 6px; color: var(--c-danger); }
.nda-nav__link.is-logout .nda-nav__ico { color: var(--c-danger); }
.nda-nav__link.is-logout:hover { background: color-mix(in srgb, var(--c-danger) 10%, transparent); color: var(--c-danger); }

/* موبایل: منو به نوار افقی اسکرول‌شونده تبدیل می‌شود */
@media (max-width: 991px) {
	.nda-nav { padding: 14px; }
	.nda-nav__list { flex-direction: row; gap: 8px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.nda-nav__list::-webkit-scrollbar { display: none; }
	.nda-nav__link { flex: 0 0 auto; padding: 8px 12px 8px 14px; border: 1px solid var(--c-border); white-space: nowrap; font-size: 13px; }
	.nda-nav__ico { flex-basis: 28px; width: 28px; height: 28px; border-radius: 9px; }
	.nda-nav__link.is-logout { margin-top: 0; }
}

/* محتوا */
.nda-body { display: flex; min-width: 0; flex-direction: column; gap: 20px; }
.nda-body__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nda-body__head h1 { margin: 0; color: var(--c-white); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 900; }
.nda-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); color: var(--c-text); font-size: 13px; font-weight: 700; }
.nda-back:hover { border-color: var(--c-primary); color: var(--c-primary); }
html:not([dir="rtl"]) .nda-back svg { transform: scaleX(-1); }

.nda-panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 12px 32px var(--c-shadow); }
.nda-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.nda-panel__title { margin: 0 0 14px; color: var(--c-white); font-size: 1.05rem; font-weight: 900; }
.nda-panel__head .nda-panel__title { margin: 0; }
.nda-link { color: var(--c-primary); font-size: 13px; font-weight: 700; }
.nda-link:hover { text-decoration: underline; }
.nda-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--c-text-muted); font-size: 14px; }

/* آمار */
.nda-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .nda-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nda-stat { position: relative; display: flex; flex-direction: column; gap: 6px; overflow: hidden; padding: 18px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); transition: transform .2s, border-color .2s; }
.nda-stat::before { position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--tone); content: ''; }
.nda-stat:hover { transform: translateY(-2px); border-color: var(--tone); }
.nda-stat b { color: var(--c-white); font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.nda-stat b small { color: var(--c-text-muted); font-size: 12px; font-weight: 700; }
.nda-stat span { color: var(--c-text-muted); font-size: 12px; font-weight: 700; }
.nda-stat.is-warn { --tone: #eab308; }
.nda-stat.is-ok { --tone: var(--c-primary); }
.nda-stat.is-bad { --tone: var(--c-danger); }
.nda-stat.is-wallet { --tone: #3b82f6; }
.nda-club { margin: -6px 0 0; color: var(--c-secondary); font-size: 13px; font-weight: 700; }

/* سرویس‌های من */
.nda-services { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .nda-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nda-service { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface-2); color: var(--c-text); font-weight: 700; transition: border-color .2s, transform .2s; }
.nda-service:hover { transform: translateY(-1px); border-color: var(--c-primary); color: var(--c-white); }
.nda-service__ico { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: color-mix(in srgb, var(--c-primary) 14%, transparent); color: var(--c-primary); }
.nda-service__lbl { flex: 1; min-width: 0; font-size: 14px; }
.nda-service > svg { color: var(--c-text-muted); }
html:not([dir="rtl"]) .nda-service > svg { transform: scaleX(-1); }

/* آخرین سفارش‌ها */
.nda-orders { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nda-orders a { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "no date total" "status status status"; align-items: center; gap: 6px 12px; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface-2); color: var(--c-text); font-size: 13px; }
@media (min-width: 640px) { .nda-orders a { grid-template-columns: auto 1fr auto auto; grid-template-areas: "no date status total"; } }
.nda-orders a:hover { border-color: var(--c-primary); }
.nda-orders__no { grid-area: no; color: var(--c-white); font-weight: 900; }
.nda-orders__date { grid-area: date; color: var(--c-text-muted); }
.nda-orders__total { grid-area: total; color: var(--c-white); font-weight: 800; }
.nda-orders__status { grid-area: status; justify-self: start; padding: 3px 10px; border-radius: 99px; background: var(--c-surface); color: var(--c-text-muted); font-size: 11px; font-weight: 800; }
.nda-orders__status.is-completed { background: color-mix(in srgb, var(--c-primary) 14%, transparent); color: var(--c-primary); }
.nda-orders__status.is-processing, .nda-orders__status.is-on-hold, .nda-orders__status.is-pending { background: rgba(234,179,8,.14); color: #ca8a04; }
.nda-orders__status.is-cancelled, .nda-orders__status.is-failed, .nda-orders__status.is-refunded { background: color-mix(in srgb, var(--c-danger) 12%, transparent); color: var(--c-danger); }

/* محتوای endpointها (هسته ووکامرس و افزونه‌ها) */
.nda-content { overflow-x: auto; }
.nda-content > :first-child { margin-top: 0; }
.nda-content table { width: 100%; border-collapse: collapse; }
.nda-content th, .nda-content td { padding: 12px 10px; border-bottom: 1px solid var(--c-border); text-align: start; }

/* ورود/بازیابی رمز مهمان */
.nda-guest-wrap { max-width: 520px; margin: 0 auto; padding: 24px; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); }
