/* ==========================================================================
   JRG Power — base.css  (همه‌ی صفحات)
   توکن‌ها، فونت، پایه، دکمه، فرم، هدر، مگامنو، کشوی موبایل، فوتر، نوار پایین موبایل
   رنگ‌های اصلی از «تنظیمات قالب ← عمومی» به‌صورت inline روی :root بازنویسی می‌شوند.
   ========================================================================== */

@font-face {
	font-family: "IRANYekanX";
	src: url("../fonts/IRANYekanX-Regular.woff2") format("woff2"), url("../fonts/IRANYekanX-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IRANYekanX";
	src: url("../fonts/IRANYekanX-Bold.woff2") format("woff2"), url("../fonts/IRANYekanX-Bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--c-primary: #0b4a8b;
	--c-accent: #f5a300;
	--c-dark: #0a1a2f;
	--c-primary-d: color-mix(in srgb, var(--c-primary) 78%, #000);
	--c-primary-l: color-mix(in srgb, var(--c-primary) 9%, #fff);
	--c-accent-d: color-mix(in srgb, var(--c-accent) 85%, #000);
	--c-accent-l: color-mix(in srgb, var(--c-accent) 14%, #fff);
	--c-text: #172234;
	--c-muted: #5d687a;
	--c-line: #e2e7ee;
	--c-soft: #f3f6fa;
	--c-white: #fff;
	--c-success: #138a4b;
	--c-danger: #c7372f;

	--font: "IRANYekanX", Tahoma, "Segoe UI", sans-serif;
	--radius: 14px;
	--radius-sm: 10px;
	--radius-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(10, 26, 47, .06), 0 2px 8px rgba(10, 26, 47, .05);
	--shadow: 0 6px 24px rgba(10, 26, 47, .08);
	--shadow-lg: 0 18px 50px rgba(10, 26, 47, .16);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--container: 1320px;
	--gutter: 16px;
	--hdr-h: 76px;
	--h1: 25px; /* اندازه‌ی همه‌ی تیترهای H1 */
	--h2: 20px; /* اندازه‌ی همه‌ی تیترهای H2 */
}

/* تیترها در موبایل کوچک‌تر */
@media (max-width: 767.98px) {
	:root { --h1: 21px; --h2: 18px; }
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.85;
	color: var(--c-text);
	background: var(--c-white);
	/* ارقام: متن کاربر همان‌طور که تایپ شده؛ اعداد تولیدی قالب با jrg_fa() و قیمت‌ها با فیلتر ووکامرس فارسی می‌شوند */
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip; /* برخلاف hidden، هدر sticky را خراب نمی‌کند */
	-moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
svg.ico { flex: none; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-d); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.45; font-weight: 700; color: var(--c-dark); }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class], nav ul, nav ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-accent) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--c-accent); color: var(--c-dark); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--c-dark); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute !important; inset-inline-start: -9999px; opacity: 0; pointer-events: none; }

.section { padding-block: clamp(36px, 5.5vw, 76px); }
.section--tight { padding-block: clamp(24px, 3.5vw, 44px); }

/* ---------- سربرگ بخش ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.sec-head--center { justify-content: center; text-align: center; }
.sec-title { position: relative; display: block; font-size: var(--h2); font-weight: 700; line-height: 1.45; color: var(--c-dark); margin: 0; padding-bottom: 12px; }
.sec-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 40%, transparent)); }
.sec-head--center .sec-title::after { inset-inline-start: 50%; transform: translateX(50%); }
.sec-sub { margin: 10px 0 0; color: var(--c-muted); }
.sec-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.sec-more .ico { transition: transform .25s var(--ease); }
.sec-more:hover .ico { transform: translateX(-4px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--c-primary); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-l); }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); }

/* ---------- دکمه ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 22px;
	border: 2px solid transparent; border-radius: 999px;
	font-weight: 700; font-size: 15px; line-height: 1.3; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-d); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--c-primary) 30%, transparent); }
.btn--accent { background: var(--c-accent); color: var(--c-dark); }
.btn--accent:hover { background: var(--c-accent-d); color: var(--c-dark); box-shadow: 0 8px 20px color-mix(in srgb, var(--c-accent) 35%, transparent); }
.btn--outline { border-color: var(--c-line); color: var(--c-text); background: #fff; }
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--c-dark); border-color: #fff; }
.btn--sm { min-height: 40px; padding: 7px 18px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 12px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--c-dark); transition: background-color .2s; }
.icon-btn:hover { background: var(--c-soft); }

/* ---------- فرم ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--c-muted); }
.field input, .field select, .field textarea,
.ftr-news__form input {
	width: 100%; min-height: 48px; padding: 10px 14px;
	background: #fff; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm);
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-l); }
.field.is-invalid input { border-color: var(--c-danger); }
.form__row { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.form-msg { margin: 10px 0 0; font-size: 14px; min-height: 1em; }
.form-msg.is-ok { color: var(--c-success); }
.form-msg.is-err { color: var(--c-danger); }

/* ==========================================================================
   هدر
   ========================================================================== */
.topbar { background: var(--c-dark); color: rgba(255, 255, 255, .8); font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__text { margin: 0; }
.topbar__info { display: flex; gap: 22px; }
.topbar__info li, .topbar__info a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.topbar__info a:hover { color: var(--c-accent); }

.hdr { position: sticky; top: 0; z-index: 90; background: #fff; box-shadow: 0 1px 0 var(--c-line); transition: box-shadow .25s; }
.hdr.is-stuck { box-shadow: var(--shadow); }
.hdr__main { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 32px); min-height: var(--hdr-h); }
.hdr__burger { display: none; }

.logo { display: inline-flex; align-items: center; flex: none; color: var(--c-dark); }
.logo__img { width: auto; max-height: 52px; max-width: 190px; object-fit: contain; }
.logo__text { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.logo__text .ico { color: var(--c-accent); fill: var(--c-accent); }
.logo:hover { color: var(--c-dark); }
.logo--light, .logo--light:hover { color: #fff; }

/* جستجو */
.hsearch { position: relative; flex: 1; max-width: 620px; }
.hsearch__input {
	width: 100%; height: 50px; padding: 0 20px 0 56px;
	background: var(--c-soft); border: 1.5px solid transparent; border-radius: 999px;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.hsearch__input::-webkit-search-cancel-button { display: none; }
.hsearch__input:focus { outline: 0; background: #fff; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-l); }
.hsearch__btn { position: absolute; inset-inline-end: 5px; top: 5px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-primary); color: #fff; }
.hsearch__btn:hover { background: var(--c-primary-d); }
.hsearch__results {
	position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 30;
	max-height: min(70vh, 480px); overflow: auto; padding: 8px;
	background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.sres { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); color: var(--c-text); }
.sres:hover, .sres.is-active { background: var(--c-soft); color: var(--c-text); }
.sres img, .sres__ph { width: 52px; height: 52px; flex: none; object-fit: contain; border-radius: 8px; background: var(--c-soft); }
.sres__t { display: block; font-weight: 700; font-size: 14px; line-height: 1.6; }
.sres__m { display: block; font-size: 12px; color: var(--c-muted); }
.sres__all { display: block; padding: 10px; text-align: center; font-weight: 700; font-size: 14px; border-top: 1px solid var(--c-line); margin-top: 6px; }
.sres__empty { padding: 14px; text-align: center; color: var(--c-muted); margin: 0; }

/* اکشن‌ها */
.hdr-act { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.hdr-act__search { display: none; }
.hdr-act__item { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 12px; border-radius: 12px; color: var(--c-dark); font-size: 14px; font-weight: 700; }
.hdr-act__item:hover { background: var(--c-soft); color: var(--c-dark); }
.hdr-act__cart { background: var(--c-primary-l); color: var(--c-primary); }
.hdr-act__cart:hover { background: var(--c-primary); color: #fff; }
.hdr-act__ico { position: relative; display: inline-flex; }
.hdr-act__badge {
	position: absolute; top: -8px; inset-inline-start: -10px;
	min-width: 20px; height: 20px; padding: 0 5px;
	display: grid; place-items: center; border-radius: 999px;
	background: var(--c-accent); color: var(--c-dark); font-size: 11px; font-weight: 700; line-height: 1;
	border: 2px solid #fff;
}
.hdr-act__badge.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* نوار منو */
.nav { border-top: 1px solid var(--c-line); background: #fff; }
.nav__head { display: none; }
.nav__in { display: flex; align-items: center; gap: 8px; min-height: 54px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__list > li { position: relative; }
.nav__list > li > a { display: flex; align-items: center; gap: 4px; padding: 14px 14px; color: var(--c-text); font-weight: 700; font-size: 14.5px; }
.nav__list > li > a:hover, .nav__list > .current-menu-item > a, .nav__list > .current-menu-ancestor > a { color: var(--c-primary); }
.nav__list .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0; z-index: 20; min-width: 220px; padding: 8px;
	list-style: none; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.nav__list > li:hover > .sub-menu, .nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--c-text); font-size: 14px; }
.nav__list .sub-menu a:hover { background: var(--c-soft); color: var(--c-primary); }
.nav__list .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-inline-start: 4px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); opacity: .6; }
.nav__cta { margin-inline-start: auto; }
.nav__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--c-dark); }
.nav__phone .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--c-accent-l); color: var(--c-accent-d); }
.nav__phone small { display: block; font-size: 11px; color: var(--c-muted); line-height: 1.4; }
.nav__phone b { display: block; font-size: 15px; line-height: 1.4; }

/* هنگام اسکرول به پایین، نوار منو زیر ردیف لوگو جمع می‌شود.
   نکته‌ی ضدلرزش: هر مقداری که نوار منو بالا می‌رود (margin-top منفی)، همان مقدار به margin-bottom هدر
   اضافه می‌شود؛ پس جای هدر در صفحه ثابت می‌ماند، محتوا جابه‌جا نمی‌شود و اسکرول دوباره تحریک نمی‌شود. */
@media (min-width: 992px) {
	:root { --nav-h: 55px; } /* ارتفاع نوار منو + خط بالا */
	.hdr { transition: box-shadow .25s, margin-bottom .3s var(--ease); }
	.hdr__main { position: relative; z-index: 2; }
	.hdr__main::before { /* زمینه‌ی سفید تمام‌عرض تا نوار منو زیرش پنهان شود */
		content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
		inset-inline: calc(50% - 50vw); background: #fff;
	}
	.nav { position: relative; z-index: 1; transition: margin-top .3s var(--ease); }
	.hdr.is-compact:not(:has(.mega.is-open)) { margin-bottom: var(--nav-h); }
	.hdr.is-compact:not(:has(.mega.is-open)) .nav { margin-top: calc(-1 * var(--nav-h)); }
}

/* ---------- مگامنو ---------- */
.mega { position: relative; }
.mega__toggle {
	display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px;
	border-radius: 12px; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 14.5px;
	transition: background-color .2s;
}
.mega__toggle:hover, .mega.is-open .mega__toggle { background: var(--c-primary-d); }
.mega__caret { transition: transform .25s; }
.mega.is-open .mega__caret { transform: rotate(180deg); }
.mega__expand { display: none; }

@media (min-width: 992px) {
	.mega__panel {
		position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 40;
		width: min(920px, calc(100vw - 32px)); min-height: 380px;
		background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
		opacity: 0; visibility: hidden; transform: translateY(8px);
		transition: opacity .2s, transform .25s var(--ease), visibility .2s;
	}
	.mega.is-open .mega__panel { opacity: 1; visibility: visible; transform: none; }
	.mega__list { width: 270px; padding: 12px; border-inline-end: 1px solid var(--c-line); }
	.mega__link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--c-text); font-weight: 700; font-size: 14px; }
	.mega__arrow { margin-inline-start: auto; opacity: .45; }
	.mega__item.is-active > .mega__link { background: var(--c-primary-l); color: var(--c-primary); }
	.mega__sub {
		position: absolute; top: 0; bottom: 0; inset-inline-start: 270px; inset-inline-end: 0;
		padding: 24px 28px; overflow: auto; display: none;
	}
	.mega__item.is-active > .mega__sub { display: block; }
	.mega__sub-title { margin-bottom: 14px; font-weight: 700; }
	.mega__sub-title a { display: inline-flex; align-items: center; gap: 6px; }
	.mega__sub-list { columns: 2; column-gap: 28px; }
	.mega__sub-list li { break-inside: avoid; }
	.mega__sub-list a { display: block; padding: 6px 0; color: var(--c-muted); font-size: 14px; }
	.mega__sub-list a:hover { color: var(--c-primary); }
}
.mega__ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--c-soft); color: var(--c-primary); }
.mega__ico img { width: 22px; height: 22px; object-fit: contain; }

/* ==========================================================================
   موبایل و تبلت: کشوی کناری
   ========================================================================== */
@media (max-width: 991.98px) {
	:root { --hdr-h: 64px; }
	body { padding-bottom: 64px; }
	.topbar { display: none; }
	.hdr__main { gap: 6px; }
	.hdr__burger { display: inline-grid; }
	.logo__img { max-height: 40px; max-width: 140px; }
	.logo__text { font-size: 18px; }

	.hsearch { position: absolute; inset-inline: 0; top: 100%; max-width: none; padding: 10px var(--gutter); background: #fff; box-shadow: var(--shadow); display: none; }
	.hdr.is-search-open .hsearch { display: block; }
	.hsearch__btn { inset-inline-end: calc(var(--gutter) + 5px); top: 15px; }
	.hdr-act__search { display: inline-grid; }
	.hdr-act__label { display: none; }
	.hdr-act__item { padding: 6px 10px; }
	.hdr-act__account { display: none; }

	.nav {
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 120;
		width: min(88vw, 380px); overflow-y: auto; overscroll-behavior: contain;
		border: 0; box-shadow: var(--shadow-lg);
		transform: translateX(105%); visibility: hidden;
		transition: transform .32s var(--ease), visibility .32s;
	}
	.nav.is-open { transform: none; visibility: visible; }
	.nav__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--c-line); position: sticky; top: 0; background: #fff; z-index: 2; }
	.nav__in { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 24px; }
	.nav-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(10, 26, 47, .5); backdrop-filter: blur(2px); }

	.mega { order: 2; margin-top: 12px; padding-top: 12px;}
	.mega__toggle { width: 100%; justify-content: flex-start; pointer-events: none; background: none; color: var(--c-muted); height: auto; padding: 4px 0 8px; font-size: 13px; }
	.mega__toggle .mega__caret { display: none; }
	.mega__toggle .ico { display: none; }
	.mega__item { position: relative; }
	.mega__link { display: flex; align-items: center; gap: 10px; padding: 8px 0; padding-inline-end: 44px; color: var(--c-text); font-weight: 700; font-size: 14.5px; }
	.mega__arrow { display: none; }
	.mega__expand { position: absolute; top: 4px; inset-inline-end: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--c-muted); }
	.mega__expand[aria-expanded="true"] { transform: rotate(180deg); color: var(--c-primary); }
	.mega__sub { display: none; padding: 0 42px 8px 0; }
	.mega__item.is-open > .mega__sub { display: block; }
	.mega__sub-title { margin: 0 0 4px; font-size: 13px; }
	.mega__sub-list a { display: block; padding: 6px 0; color: var(--c-muted); font-size: 14px; }

	.nav__list { order: 1; flex-direction: column; align-items: stretch; }
	.nav__list > li > a { padding: 12px 0; border-bottom: 1px solid var(--c-soft); font-size: 15px; }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 16px 8px 0; }
	.nav__list .menu-item-has-children > a::after { display: none; }
	.nav__cta { order: 3; margin: 20px 0 0; }
	.nav__cta .btn { width: 100%; }
	body.is-drawer-open { overflow: hidden; }
}

/* ==========================================================================
   فوتر
   ========================================================================== */
.ftr { margin-top: clamp(24px, 4vw, 48px); padding-top: 36px; background: var(--c-dark); color: rgba(255, 255, 255, .72); font-size: 14px; }
.ftr a { color: rgba(255, 255, 255, .78); }
.ftr a:hover { color: var(--c-accent); }

.error404 .ftr { 
	margin-top: 0;
} 



.ftr-news {
	display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
	margin-bottom: 44px; padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 44px);
	border-radius: var(--radius-lg);
	background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c-accent) 30%, transparent), transparent 55%), linear-gradient(120deg, var(--c-primary), var(--c-primary-d));
	color: #fff;
}
.ftr-news__title { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: #fff; }
.ftr-news__txt p:last-child { margin: 0; opacity: .85; }
.ftr-news__form { position: relative; display: flex; flex-wrap: wrap; gap: 8px; flex: 1; max-width: 480px; }
.ftr-news__form input { flex: 1; min-width: 200px; border: 0; border-radius: 999px; color: var(--c-text); }
.ftr-news__form .form-msg { flex-basis: 100%; margin: 0; }
.ftr-news__form .form-msg.is-ok { color: #b8f5cf; }
.ftr-news__form .form-msg.is-err { color: #ffd1cc; }

.ftr__grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); padding-bottom: 36px; }
.ftr__about p { margin: 16px 0; line-height: 2; }
.ftr__about .logo__img { max-height: 56px; }
.ftr__title { margin: 0 0 16px; color: #fff; font-weight: 700; font-size: 16px; }
.ftr__links li { margin-bottom: 8px; }
.ftr__links a { display: inline-block; transition: transform .2s, color .2s; }
.ftr__links a:hover { transform: translateX(-4px); }
.ftr__info li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; line-height: 1.9; }
.ftr__info .ico { margin-top: 3px; color: var(--c-accent); }
.ftr__badges { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.ftr__badges img { max-height: 110px; width: auto; padding: 6px; border-radius: var(--radius-sm); background: #fff; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07); transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--c-accent); color: var(--c-dark); }
.ftr__bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding-block: 16px; font-size: 13px; text-align: center; }
.ftr__bottom p { margin: 0; }
.ftr__bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.ftr__credit { display: inline-flex; align-items: center; gap: 8px; color: inherit; opacity: .85; transition: opacity .2s; }
.ftr__credit:hover { opacity: 1; color: inherit; }
.ftr__credit img { display: block; width: 86px; height: auto; }
@media (max-width: 575.98px) { .ftr__bottom-in { justify-content: center; } }

@media (max-width: 991.98px) {
	.ftr__grid { grid-template-columns: 1fr 1fr; }
	.ftr__about { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
	.ftr__grid { grid-template-columns: 1fr; gap: 24px; }
	.form__row { grid-template-columns: 1fr; }
}

/* ---------- نوار پایین موبایل ---------- */
.mbar { display: none; }
@media (max-width: 991.98px) {
	.mbar {
		position: fixed; bottom: 0; inset-inline: 0; z-index: 80;
		display: grid; grid-template-columns: repeat(4, 1fr);
		height: 64px; padding-bottom: env(safe-area-inset-bottom);
		background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
		border-top: 1px solid var(--c-line); box-shadow: 0 -4px 20px rgba(10, 26, 47, .06);
	}
	.mbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--c-muted); font-size: 11px; font-weight: 700; }
	.mbar__item.is-current, .mbar__item:hover { color: var(--c-primary); }
}

/* ---------- سوالات متداول (خانه، دسته‌ها، محصول) ---------- */
.faq .sec-title { margin-bottom: 22px; }
.faq__item { border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: color-mix(in srgb, var(--c-primary) 35%, transparent); box-shadow: var(--shadow-sm); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 700; color: var(--c-dark); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ico { flex: none; width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--c-soft); color: var(--c-primary); transition: transform .3s var(--ease), background-color .2s; }
.faq__item[open] .faq__ico { transform: rotate(45deg); background: var(--c-accent); color: var(--c-dark); }
.faq__a { padding: 0 18px 16px; color: var(--c-muted); font-size: 14.5px; }
.faq__a p:last-child { margin: 0; }

/* ---------- متن جمع‌شونده («ادامه مطلب») ---------- */
.collapse { position: relative; }
.collapse.is-collapsed { max-height: 220px; overflow: hidden; }
.collapse.is-collapsed::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--collapse-bg, #fff)); pointer-events: none; }
.collapse__btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; color: var(--c-primary); }
.collapse__btn[aria-expanded="true"] .ico { transform: rotate(180deg); }

/* ---------- مسیر راهنما ---------- */
.bc ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--c-muted); }
.bc a { color: var(--c-muted); }
.bc a:hover { color: var(--c-primary); }
.bc__sep { opacity: .45; }
.bc li:last-child { color: var(--c-text); font-weight: 700; }

/* ---------- پنجره (dialog) ---------- */
.modal { width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--c-text); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(10, 26, 47, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__box { position: relative; padding: 26px 24px 22px; }
.modal__close { position: absolute; top: 12px; inset-inline-end: 12px; }
.modal__title { margin: 0 0 2px; padding-inline-end: 40px; font-size: 19px; font-weight: 700; color: var(--c-dark); }
.modal__sub { margin-bottom: 18px; font-size: 14px; color: var(--c-muted); }

/* ---------- اعلان‌های ووکامرس ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 16px; padding: 12px 16px;
	list-style: none; border-radius: var(--radius); font-size: 14.5px; border: 1px solid;
}
.woocommerce-message { background: #eaf7f0; border-color: #bfe6cf; color: #0f6b3a; }
.woocommerce-info { background: var(--c-primary-l); border-color: color-mix(in srgb, var(--c-primary) 20%, transparent); color: var(--c-primary-d); }
.woocommerce-error { display: block; background: #fdecea; border-color: #f5c2bd; color: #a0281f; }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-inline-start: auto; padding: 6px 16px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 13px; color: inherit; }

/* ---------- کارت مقاله و شبکه‌ی مقالات (خانه، وبلاگ، مرتبط‌ها) ---------- */
.blog__grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s, transform .3s var(--ease); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card__media { display: flex; align-items: center; justify-content: center; height: 190px; padding: 12px; background: var(--c-soft); color: #c0c9d6; overflow: hidden; }
.post-card__media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); } /* تصویر کامل، بدون برش */
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 16px 18px 20px; }
.post-card__body time { font-size: 12px; color: var(--c-muted); }
.post-card__title { display: block; margin: 4px 0 8px; font-size: 16px; font-weight: 700; line-height: 1.7; }
.post-card__title a { color: var(--c-dark); }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:hover { color: var(--c-primary); }
.post-card__body p { margin: 0; font-size: 14px; color: var(--c-muted); }
@media (max-width: 991.98px) { .blog__grid--3 { grid-template-columns: 1fr 1fr; } .blog__grid--3 li:nth-child(3) { display: none; } }
@media (max-width: 575.98px) { .blog__grid, .blog__grid--3 { grid-template-columns: 1fr; } .blog__grid--3 li:nth-child(3) { display: block; } }

/* ---------- صفحه‌بندی ---------- */
.post-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; font-size: 12px; color: var(--c-muted); }
.post-card__cat { padding: 1px 10px; border-radius: 999px; background: var(--c-primary-l); color: var(--c-primary); font-weight: 700; }
.post-card__body { display: flex; flex-direction: column; flex: 1; }
.post-card__body p { flex: 1; }
.post-card__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--c-muted); }

.pager { margin-top: 28px; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; font-weight: 700; color: var(--c-text); background: #fff; border: 1px solid var(--c-line); transition: border-color .2s, color .2s, background-color .2s; }
.pager a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pager .current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pager .dots { border: 0; background: none; min-width: 20px; }

/* ---------- محتوای عمومی (صفحات موقت) ---------- */
.content { max-width: 860px; }
.page-title { font-size: var(--h1); }
.entry img { border-radius: var(--radius); }
.entry a { text-decoration: underline; text-underline-offset: 3px; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--c-line); }

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