/*
 * قالب اعتماد — استایل پایه.
 *
 * فقط توکن‌ها، تایپوگرافی، هدر، فوتر، نوار پایین، دکمه و فرم اینجاست.
 * استایل هر صفحه در پارشال خودش بار می‌شود تا این فایل رشد نکند.
 *
 * فهرست:
 *   ۱. فونت و توکن‌ها
 *   ۲. پایه و دسترس‌پذیری
 *   ۳. چیدمان
 *   ۴. تایپوگرافی
 *   ۵. دکمه، چیپ و فرم
 *   ۶. هدر
 *   ۷. کشوها و منو
 *   ۸. نوار ناوبری پایین
 *   ۹. فوتر
 *  ۱۰. برگه و ۴۰۴
 */

/* ---------------------------------------------------------- ۱. فونت و توکن‌ها */

@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* رنگ — نسبت‌های کنتراست تأییدشده در سند طراحی. */
	--e-brand: #F26536;
	--e-brand-dark: #D9481B;
	--e-brand-text: #C4471B;
	--e-brand-tint: #FFF2EC;
	--e-brand-tint-2: #F8CDB7;

	--e-ink: #1C1714;          /* متن اصلی */
	--e-ink-2: #6B5F58;        /* توضیح و برچسب — ۴٫۹:۱ روی سفید */
	--e-ink-3: #7A6E65;        /* پلیس‌هولدر و آیکن غیرفعال — ۴٫۵:۱ */

	--e-success: #1F7A4D;
	--e-success-tint: #E8F5EE;
	--e-danger: #B32318;
	--e-danger-tint: #FDECEA;

	--e-white: #FFFFFF;
	--e-bg: #FBF8F4;
	--e-bg-2: #F5F1EB;
	--e-bg-3: #F3EBE0;
	--e-line: #EDE6DD;
	--e-line-strong: #E2D9CD;

	/* گوشه‌ها */
	--e-r-card: 15px;
	--e-r-btn: 11px;
	--e-r-chip: 8px;
	--e-r-pill: 999px;

	/* فاصله */
	--e-gap-1: 4px;
	--e-gap-2: 8px;
	--e-gap-3: 12px;
	--e-gap-4: 16px;
	--e-gap-5: 24px;
	--e-gap-6: 32px;
	--e-gap-7: 48px;

	/* اندازه */
	--e-container: 1184px;
	--e-touch: 44px;          /* حداقل هدف لمسی */
	--e-header-h: 60px;
	--e-bottomnav-h: 58px;
	--e-safe-bottom: env(safe-area-inset-bottom, 0px);

	--e-shadow-1: 0 1px 2px rgba(28, 23, 20, .06);
	--e-shadow-2: 0 4px 16px rgba(28, 23, 20, .08);
	--e-shadow-3: 0 12px 32px rgba(28, 23, 20, .14);

	--e-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------- ۲. پایه و دسترس‌پذیری */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	/*
	 * جلوگیری از اسکرول افقی در موبایل.
	 *
	 * clip به‌جای hidden: با overflow:hidden روی body، عنصرهای
	 * position:sticky (هدر و نوار ابزار) می‌شکنند.
	 */
	overflow-x: clip;
	background: var(--e-white);
	color: var(--e-ink);
	font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 13px;          /* حداقل متن اصلی در موبایل */
	font-weight: 400;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
	/* نوار پایین موبایل نباید روی انتهای محتوا بیفتد. */
	padding-bottom: calc(var(--e-bottomnav-h) + var(--e-safe-bottom));
}

/*
 * لایهٔ دوم دفاع در برابر فونت سراسری المنتور.
 *
 * المنتور روی <body> کلاس `elementor-kit-…` می‌گذارد و با آن قانونی مثل
 * `.elementor-kit-1234 a { font-family: "iransansi" }` را به **همهٔ**
 * لینک‌های سایت تحمیل می‌کند — نه فقط محتوای خودش. آن فونت روی این سایت
 * بارگذاری نمی‌شود، پس مرورگر به sans-serif سیستم سقوط می‌کند و دکمه‌ها
 * با فونتی غیر از بقیهٔ صفحه دیده می‌شوند.
 *
 * ریشهٔ مشکل جای دیگری حل شده: `inc/performance.php` دارایی‌های المنتور
 * را از صفحه‌ای که قالب خودش رندرش می‌کند برمی‌دارد و کلاس‌های
 * `elementor-*` را هم از body پاک می‌کند. این قانون برای صفحه‌هایی است
 * که المنتور **واقعاً** در آن‌ها محتوا دارد و درست هم هست که بارگذاری
 * شود — ولی دکمهٔ قالب در همان صفحه نباید فونتش عوض شود.
 *
 * دامنه‌اش عمداً به بلوک‌های خود قالب محدود است تا محتوای المنتوری ادمین
 * دست‌نخورده بماند. وزن انتخابگر (html body …) از قانون المنتور بالاتر
 * است، پس `!important` لازم نیست.
 */
html body [class*="etemad-"] a,
html body a[class*="etemad-"],
html body [class*="etemad-"] button {
	font-family: inherit;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--e-brand-dark);
	text-decoration: none;
}

a:hover {
	color: var(--e-brand-text);
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* حلقهٔ فوکوس در همهٔ کنترل‌ها دیده می‌شود؛ ناوبری کامل با کیبورد یک معیار پذیرش است. */
:focus-visible {
	outline: 2px solid var(--e-brand-dark);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.etemad-skip-link {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	z-index: 100000;
	padding: 12px 20px;
	background: var(--e-ink);
	color: var(--e-white);
	border-radius: 0 0 var(--e-r-btn) 0;
}

.etemad-skip-link:focus {
	inset-inline-start: 0;
	color: var(--e-white);
}

.etemad-icon {
	width: 22px;
	height: 22px;
	flex: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* ------------------------------------------------------------- ۳. چیدمان */

.etemad-container {
	width: 100%;
	max-width: var(--e-container);
	margin-inline: auto;
	padding-inline: var(--e-gap-4);
}

.etemad-main {
	min-height: 50vh;
}

.etemad-page {
	padding-block: var(--e-gap-5) var(--e-gap-7);
}

/* --------------------------------------------------------- ۴. تایپوگرافی */

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--e-gap-3);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: -.2px;
	color: var(--e-ink);
}

h1 {
	font-size: 22px;
}

h2 {
	font-size: 18px;
}

h3 {
	font-size: 15px;
	font-weight: 700;
}

p {
	margin: 0 0 var(--e-gap-3);
}

small,
.etemad-muted {
	color: var(--e-ink-2);
	font-size: 12px;          /* حداقل اندازهٔ متن در موبایل */
}

.etemad-prose {
	font-size: 14px;
	line-height: 2;
	color: #3A322C;
}

.etemad-prose h2 {
	margin-top: var(--e-gap-6);
}

.etemad-prose img {
	border-radius: var(--e-r-card);
	margin-block: var(--e-gap-4);
}

.etemad-page__head {
	margin-bottom: var(--e-gap-5);
}

.etemad-page__title {
	font-size: 24px;
}

.etemad-page__meta {
	color: var(--e-ink-2);
	font-size: 12px;
}

/* ------------------------------------------------- ۵. دکمه، چیپ و فرم */

.etemad-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--e-gap-2);
	min-height: var(--e-touch);
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: var(--e-r-btn);
	background: var(--e-brand-text);
	color: var(--e-white);
	font-size: 14px;
	font-weight: 700;
	transition: background .18s var(--e-ease), transform .12s var(--e-ease);
}

.etemad-btn:hover {
	background: var(--e-brand-dark);
	color: var(--e-white);
}

.etemad-btn:active {
	transform: translateY(1px);
}

.etemad-btn[disabled],
.etemad-btn.is-disabled {
	background: var(--e-bg-3);
	color: var(--e-ink-3);
	cursor: not-allowed;
}

.etemad-btn--ghost {
	background: var(--e-white);
	border-color: var(--e-line-strong);
	color: var(--e-ink);
}

.etemad-btn--ghost:hover {
	background: var(--e-bg-2);
	border-color: var(--e-ink-3);
	color: var(--e-ink);
}

.etemad-btn--dark {
	background: var(--e-ink);
}

.etemad-btn--dark:hover {
	background: #2E2620;
}

.etemad-btn--block {
	width: 100%;
}

.etemad-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--e-touch);
	height: var(--e-touch);
	flex: none;
	padding: 0;
	border: 0;
	border-radius: var(--e-r-btn);
	background: transparent;
	color: var(--e-ink);
	transition: background .18s var(--e-ease);
}

.etemad-iconbtn:hover {
	background: var(--e-bg-2);
}

.etemad-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--e-gap-2);
}

.etemad-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 6px 12px;
	border: 1px solid var(--e-line-strong);
	border-radius: var(--e-r-chip);
	background: var(--e-white);
	color: var(--e-ink);
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	transition: border-color .18s var(--e-ease), background .18s var(--e-ease);
}

.etemad-chip:hover {
	border-color: var(--e-brand);
	color: var(--e-ink);
}

.etemad-chip.is-active,
.etemad-chip[aria-pressed="true"] {
	background: var(--e-brand-tint);
	border-color: var(--e-brand);
	color: var(--e-brand-text);
}

.etemad-chip__count {
	color: var(--e-ink-2);
	font-weight: 400;
	font-size: 11.5px;
}

/*
 * شمارندهٔ تعداد — مشترک بین صفحهٔ محصول، جدول وزن و سبد.
 *
 * اینجاست نه در product.css، چون سبد هم از همین کلاس استفاده می‌کند و با
 * نبودنش دکمه‌های ± عمودی روی هم می‌افتادند.
 */
.etemad-qty__label {
	display: block;
	margin-bottom: 6px;
	font-size: 11.5px;
	color: var(--e-ink-2);
}

.etemad-qty__control {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--e-line-strong);
	border-radius: var(--e-r-btn);
	background: var(--e-white);
	overflow: hidden;
}

.etemad-qty__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--e-touch);
	height: var(--e-touch);
	flex: none;
	border: 0;
	background: transparent;
	color: var(--e-ink);
}

.etemad-qty__btn:hover {
	background: var(--e-bg-2);
}

.etemad-qty__btn .etemad-icon {
	width: 17px;
	height: 17px;
}

.etemad-qty__input {
	width: 48px;
	min-height: var(--e-touch);
	padding: 0;
	border: 0;
	border-radius: 0;
	text-align: center;
	font-weight: 700;
	font-size: 14px;
	-moz-appearance: textfield;
}

.etemad-qty__input::-webkit-outer-spin-button,
.etemad-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.etemad-qty__input:focus {
	box-shadow: none;
}

.etemad-qty__control--sm {
	border-radius: var(--e-r-chip);
}

.etemad-qty__control--sm .etemad-qty__btn {
	width: 36px;
	height: 36px;
}

.etemad-qty__control--sm .etemad-qty__input {
	width: 38px;
	min-height: 36px;
	font-size: 13px;
}


.etemad-badge-count {
	position: absolute;
	top: -2px;
	inset-inline-start: -4px;
	min-width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-inline: 4px;
	border-radius: var(--e-r-pill);
	background: var(--e-brand);
	color: var(--e-white);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
}

input[type="text"],
input[type="search"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="url"],
textarea,
select {
	width: 100%;
	min-height: var(--e-touch);
	padding: 10px 14px;
	border: 1px solid var(--e-line-strong);
	border-radius: var(--e-r-btn);
	background: var(--e-white);
	color: var(--e-ink);
	font: inherit;
	font-size: 13.5px;
}

input::placeholder,
textarea::placeholder {
	color: var(--e-ink-3);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--e-brand);
	outline: none;
	box-shadow: 0 0 0 3px rgba(242, 101, 54, .14);
}

/* ------------------------------------ کارت محصول و نشان‌ها
 *
 * اینجاست نه در catalog.css: کارت محصول در فهرست، در «محصولات مشابه» صفحهٔ
 * محصول و در صفحهٔ اصلی استفاده می‌شود. با ماندنش در catalog.css، کارت‌های
 * محصولات مشابه کاملاً بی‌استایل رندر می‌شدند چون صفحهٔ محصول آن فایل را
 * بار نمی‌کند.
 */

.etemad-tag {
	padding: 4px 10px;
	border-radius: var(--e-r-chip);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
}

.etemad-tag--harvest {
	background: var(--e-white);
	color: var(--e-ink);
	box-shadow: var(--e-shadow-1);
}

.etemad-tag--sale {
	background: var(--e-brand);
	color: var(--e-white);
}


/* ------------------------------------------- کارت شبکه‌ای */

.etemad-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--e-line);
	border-radius: var(--e-r-card);
	background: var(--e-white);
	overflow: hidden;
}

.etemad-card__media {
	position: relative;
	display: block;
	background: var(--e-bg-2);
}

.etemad-card__img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.etemad-card__badges {
	position: absolute;
	top: var(--e-gap-2);
	inset-inline-start: var(--e-gap-2);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.etemad-card__veil {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(251, 248, 244, .78);
	color: var(--e-ink-2);
	font-size: 12.5px;
	font-weight: 700;
}

.etemad-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--e-gap-2);
	padding: var(--e-gap-3);
}

/* ارتفاع نام قفل است (دو خط) تا ردیف‌ها کج نشوند. */
.etemad-card__title {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.7;
	min-height: calc(2 * 1.7em);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.etemad-card__title a {
	color: var(--e-ink);
}

.etemad-card__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	color: var(--e-ink-2);
}

.etemad-card__rating .etemad-icon {
	width: 13px;
	height: 13px;
}

.etemad-card__reviews {
	color: var(--e-ink-3);
}

/* چیپ وزن روی کارت: خرید بدون ورود به صفحهٔ محصول */
.etemad-card__weights {
	display: flex;
	gap: 4px;
}

.etemad-card__weight-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.etemad-card__weight {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 26px;
	padding: 2px 7px;
	border: 1px solid var(--e-line-strong);
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	color: var(--e-ink-2);
	cursor: pointer;
}

.etemad-card__weight-input:checked + .etemad-card__weight {
	border-color: var(--e-brand);
	background: var(--e-brand-tint);
	color: var(--e-brand-text);
}

.etemad-card__weight-input:focus-visible + .etemad-card__weight {
	outline: 2px solid var(--e-brand-dark);
	outline-offset: 1px;
}

.etemad-card__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--e-gap-2);
	margin-top: auto;
}

.etemad-card__price {
	font-size: 13.5px;
	font-weight: 800;
	line-height: 1.5;
}

.etemad-card__price .woocommerce-Price-currencySymbol {
	font-size: 10.5px;
	font-weight: 400;
	color: var(--e-ink-2);
}

.etemad-card__addbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: none;
	border: 0;
	border-radius: var(--e-r-chip);
	background: var(--e-brand);
	color: var(--e-white);
}

.etemad-card__addbtn:hover {
	background: var(--e-brand-dark);
	color: var(--e-white);
}

.etemad-card__oos {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 100%;
}

.etemad-card__next {
	color: var(--e-ink-2);
	font-size: 11px;
}

.etemad-card__notify {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 4px 12px;
	border: 1px solid var(--e-line-strong);
	border-radius: var(--e-r-chip);
	font-size: 12px;
	font-weight: 700;
	color: var(--e-brand-text);
}


/* --------------------------------------------------------------- ۶. هدر */

.etemad-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--e-white);
	border-bottom: 1px solid var(--e-line);
}

.etemad-notice-bar {
	background: var(--e-ink);
	color: var(--e-white);
	font-size: 12px;
}

.etemad-notice-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--e-gap-4);
	min-height: 34px;
}

.etemad-notice-bar__links {
	display: none;
	align-items: center;
	gap: var(--e-gap-4);
	color: #CFC6BE;
}

.etemad-notice-bar__links a {
	color: var(--e-white);
}

.etemad-header__row {
	display: flex;
	align-items: center;
	gap: var(--e-gap-2);
	min-height: var(--e-header-h);
}

.etemad-logo {
	display: inline-flex;
	align-items: center;
	gap: var(--e-gap-2);
	color: var(--e-ink);
	flex: none;
}

.etemad-logo:hover {
	color: var(--e-ink);
}

.etemad-logo__mark,
.etemad-logo__img {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	flex: none;
}

.etemad-logo__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--e-brand);
	color: var(--e-white);
	font-size: 19px;
	font-weight: 800;
}

.etemad-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.etemad-logo__name {
	font-size: 14px;
	font-weight: 800;
}

.etemad-logo__tagline {
	font-size: 10.5px;
	color: var(--e-ink-2);
}

/* جستجو بزرگ‌ترین عنصر هدر است، نه یک آیکن گوشه. */
.etemad-search {
	position: relative;
	display: none;
	flex: 1;
	align-items: center;
	background: var(--e-bg-2);
	border: 1px solid transparent;
	border-radius: var(--e-r-btn);
	transition: border-color .18s var(--e-ease), background .18s var(--e-ease);
}

.etemad-search:focus-within {
	background: var(--e-white);
	border-color: var(--e-brand);
}

.etemad-search__icon {
	position: absolute;
	inset-inline-start: 12px;
	width: 18px;
	height: 18px;
	color: var(--e-ink-3);
	pointer-events: none;
}

/*
 * فاصلهٔ ابتدای فیلد از عرض آیکن و دو طرفش حساب می‌شود.
 *
 * با مقدار ثابت ۴۲px، آیکن روی متن پلیس‌هولدر می‌افتاد و ابتدای آن خوانده
 * نمی‌شد — چون padding منطقی در راست‌به‌راست از سمت راست شروع می‌شود و
 * اندازهٔ آیکن هم از توکن پایه بزرگ‌تر بود.
 */
.etemad-search__field {
	min-height: var(--e-touch);
	padding-inline-start: 40px;
	padding-inline-end: 50px;
	border: 0;
	background: transparent;
	font-size: 13.5px;
	text-overflow: ellipsis;
}

.etemad-search__field:focus {
	box-shadow: none;
}

.etemad-search__submit {
	position: absolute;
	inset-inline-end: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: var(--e-r-chip);
	background: var(--e-brand);
	color: var(--e-white);
}

.etemad-search__submit .etemad-icon {
	width: 18px;
	height: 18px;
}

.etemad-header__actions {
	display: none;
	align-items: center;
	gap: var(--e-gap-2);
	margin-inline-start: auto;
}

.etemad-header__action {
	display: flex;
	align-items: center;
	gap: var(--e-gap-2);
	min-height: var(--e-touch);
	padding-inline: var(--e-gap-3);
	border-radius: var(--e-r-btn);
	color: var(--e-ink);
}

.etemad-header__action:hover {
	background: var(--e-bg-2);
	color: var(--e-ink);
}

.etemad-header__cart-icon {
	position: relative;
	display: inline-flex;
}

.etemad-header__action-text {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	text-align: start;
}

.etemad-header__action-label {
	font-size: 11px;
	color: var(--e-ink-2);
}

.etemad-header__action-value {
	font-size: 12.5px;
	font-weight: 700;
}

.etemad-header__menu,
.etemad-header__search-toggle {
	display: inline-flex;
}

.etemad-header__search-toggle {
	margin-inline-start: auto;
}

/* نوار دسته‌های پرمخاطب */
.etemad-catbar {
	display: none;
	border-top: 1px solid var(--e-line);
	background: var(--e-white);
}

.etemad-catbar__inner {
	display: flex;
	align-items: center;
	gap: var(--e-gap-4);
	min-height: 46px;
}

.etemad-catbar__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 4px 14px;
	border: 0;
	border-radius: var(--e-r-chip);
	background: var(--e-brand);
	color: var(--e-white);
	font-size: 12.5px;
	font-weight: 700;
	flex: none;
}

.etemad-catbar__all:hover {
	background: var(--e-brand-dark);
}

.etemad-catbar__all .etemad-icon {
	width: 16px;
	height: 16px;
}

.etemad-catbar__list {
	display: flex;
	align-items: center;
	gap: var(--e-gap-1);
	overflow-x: auto;
	scrollbar-width: none;
}

.etemad-catbar__list::-webkit-scrollbar {
	display: none;
}

.etemad-catbar__link {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding-inline: var(--e-gap-3);
	border-radius: var(--e-r-chip);
	color: var(--e-ink);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.etemad-catbar__link:hover {
	background: var(--e-bg-2);
	color: var(--e-ink);
}

.etemad-catbar__link.is-current {
	color: var(--e-brand-text);
	background: var(--e-brand-tint);
}

.etemad-catbar__services {
	display: flex;
	gap: var(--e-gap-3);
	margin-inline-start: auto;
	padding-inline-start: var(--e-gap-4);
	border-inline-start: 1px solid var(--e-line);
	flex: none;
}

.etemad-catbar__services a {
	color: var(--e-ink-2);
	font-size: 12.5px;
	white-space: nowrap;
}

.etemad-catbar__services a:hover {
	color: var(--e-brand-text);
}

/* با اسکرول فقط لوگو، جستجو و سبد می‌مانند. */
.etemad-header.is-compact .etemad-notice-bar,
.etemad-header.is-compact .etemad-catbar {
	display: none;
}

/* ------------------------------------------------------ ۷. کشوها و منو */

.etemad-drawer {
	position: fixed;
	inset: 0;
	z-index: 400;
}

.etemad-drawer[hidden] {
	display: none;
}

.etemad-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 23, 20, .5);
	animation: etemad-fade .2s var(--e-ease);
}

.etemad-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	display: flex;
	flex-direction: column;
	width: min(88vw, 420px);
	background: var(--e-white);
	box-shadow: var(--e-shadow-3);
	animation: etemad-slide-in .24s var(--e-ease);
}

.etemad-drawer__panel--top {
	inset: 0 0 auto 0;
	width: 100%;
	max-height: 100dvh;
	animation: etemad-slide-down .24s var(--e-ease);
}

@keyframes etemad-fade {
	from { opacity: 0; }
}

@keyframes etemad-slide-in {
	from { transform: translateX(-16px); opacity: 0; }
}

@keyframes etemad-slide-down {
	from { transform: translateY(-12px); opacity: 0; }
}

.etemad-drawer__head {
	display: flex;
	align-items: center;
	gap: var(--e-gap-2);
	padding: var(--e-gap-2) var(--e-gap-3);
	border-bottom: 1px solid var(--e-line);
	flex: none;
}

.etemad-drawer__head .etemad-search {
	display: flex;
}

.etemad-drawer__title {
	margin: 0;
	flex: 1;
	font-size: 15px;
}

/* دو ستون همزمان: راست دسته‌های اصلی، چپ زیردسته‌های دستهٔ فعال. */
.etemad-menu {
	display: grid;
	grid-template-columns: 40% 60%;
	flex: 1;
	min-height: 0;
}

.etemad-menu__roots {
	overflow-y: auto;
	background: var(--e-bg-2);
	border-inline-end: 1px solid var(--e-line);
	overscroll-behavior: contain;
}

.etemad-menu__root {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 100%;
	min-height: var(--e-touch);
	padding: 11px var(--e-gap-3);
	border: 0;
	border-inline-start: 3px solid transparent;
	background: transparent;
	text-align: start;
}

.etemad-menu__root-name {
	font-size: 13.5px;
	font-weight: 700;
}

.etemad-menu__root-count {
	font-size: 11px;
	color: var(--e-ink-2);
}

.etemad-menu__root.is-active {
	background: var(--e-white);
	border-inline-start-color: var(--e-brand);
}

.etemad-menu__root.is-active .etemad-menu__root-name {
	color: var(--e-brand-text);
}

.etemad-menu__panels {
	overflow-y: auto;
	overscroll-behavior: contain;
}

.etemad-menu__panel {
	padding: var(--e-gap-3);
}

.etemad-menu__panel[hidden] {
	display: none;
}

.etemad-menu__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--e-gap-2);
	padding-bottom: var(--e-gap-2);
	margin-bottom: var(--e-gap-2);
	border-bottom: 1px solid var(--e-line);
}

.etemad-menu__panel-title {
	font-size: 13.5px;
	font-weight: 800;
}

.etemad-menu__all {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 12px;
	font-weight: 700;
	color: var(--e-brand-text);
}

.etemad-menu__all .etemad-icon {
	width: 15px;
	height: 15px;
}

.etemad-menu__children a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--e-gap-2);
	min-height: var(--e-touch);
	padding-inline: 2px;
	color: var(--e-ink);
	font-size: 13px;
}

.etemad-menu__children a:hover {
	color: var(--e-brand-text);
}

.etemad-menu__child-count {
	color: var(--e-ink-3);
	font-size: 11.5px;
}

.etemad-menu__tags {
	margin-top: var(--e-gap-4);
	padding-top: var(--e-gap-3);
	border-top: 1px solid var(--e-line);
}

.etemad-menu__tags-title {
	display: block;
	margin-bottom: var(--e-gap-2);
	font-size: 11.5px;
	color: var(--e-ink-2);
}

.etemad-menu__services {
	border-top: 1px solid var(--e-line);
	background: var(--e-bg);
	flex: none;
}

.etemad-menu__services-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--e-touch);
	padding: 0 var(--e-gap-4);
	color: var(--e-ink);
	font-size: 13px;
	font-weight: 700;
}

.etemad-menu__services-list .etemad-icon {
	width: 16px;
	height: 16px;
	color: var(--e-ink-3);
}

.etemad-searchpanel {
	padding: var(--e-gap-4);
	overflow-y: auto;
}

.etemad-searchpanel__note {
	color: var(--e-ink-2);
	font-size: 12px;
	margin: 0;
}

/* --------------------------------------------- ۸. نوار ناوبری پایین */

.etemad-bottomnav {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 300;
	background: var(--e-white);
	border-top: 1px solid var(--e-line);
	padding-bottom: var(--e-safe-bottom);
	box-shadow: 0 -2px 12px rgba(28, 23, 20, .05);
}

.etemad-bottomnav__list {
	display: flex;
	align-items: stretch;
}

.etemad-bottomnav__item {
	flex: 1;
}

.etemad-bottomnav__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 100%;
	min-height: var(--e-bottomnav-h);
	padding: 6px 2px;
	border: 0;
	background: transparent;
	color: var(--e-ink-2);
	font-size: 10.5px;
	font-weight: 700;
}

.etemad-bottomnav__link.is-current,
.etemad-bottomnav__link[aria-expanded="true"] {
	color: var(--e-brand-text);
}

.etemad-bottomnav__icon {
	position: relative;
	display: inline-flex;
}

.etemad-bottomnav__icon .etemad-icon {
	width: 23px;
	height: 23px;
}

/* دکمهٔ میانی میکس‌ساز در طرح ۱c */
.etemad-bottomnav__item.is-center .etemad-bottomnav__link {
	color: var(--e-white);
}

.etemad-bottomnav__item.is-center .etemad-bottomnav__icon {
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	margin-top: -18px;
	border-radius: var(--e-r-pill);
	background: var(--e-brand);
	box-shadow: var(--e-shadow-2);
}

.etemad-bottomnav__item.is-center .etemad-bottomnav__label {
	color: var(--e-brand-text);
}

/* ------------------------------------------------------------- ۹. فوتر */

.etemad-footer {
	margin-top: var(--e-gap-7);
	background: var(--e-bg);
	border-top: 1px solid var(--e-line);
}

.etemad-footer__grid {
	display: grid;
	gap: var(--e-gap-2);
	padding-block: var(--e-gap-5);
}

.etemad-footer__brand {
	padding-bottom: var(--e-gap-4);
}

.etemad-footer__about {
	margin-top: var(--e-gap-3);
	color: var(--e-ink-2);
	font-size: 12.5px;
	line-height: 1.9;
}

.etemad-footer__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--e-gap-3);
	margin-top: var(--e-gap-4);
}

.etemad-footer__badges img {
	height: 56px;
	width: auto;
	border-radius: var(--e-r-chip);
	background: var(--e-white);
	padding: 4px;
	border: 1px solid var(--e-line);
}

.etemad-footer__col {
	border-top: 1px solid var(--e-line);
}

.etemad-footer__title {
	margin: 0;
	font-size: 13px;
}

/* روی موبایل ستون‌ها آکاردئون‌اند. */
.etemad-footer__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: var(--e-touch);
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	color: var(--e-ink);
}

.etemad-footer__chevron {
	width: 18px;
	height: 18px;
	color: var(--e-ink-3);
	transition: transform .2s var(--e-ease);
}

.etemad-footer__toggle[aria-expanded="true"] .etemad-footer__chevron {
	transform: rotate(180deg);
}

.etemad-footer__list {
	display: none;
	padding-bottom: var(--e-gap-3);
}

.etemad-footer__col.is-open .etemad-footer__list {
	display: block;
}

.etemad-footer__list li {
	line-height: 2.2;
}

.etemad-footer__list a {
	color: var(--e-ink-2);
	font-size: 12.5px;
}

.etemad-footer__list a:hover {
	color: var(--e-brand-text);
}

.etemad-footer__list--contact li {
	color: var(--e-ink-2);
	font-size: 12.5px;
}

.etemad-footer__social {
	display: none;
	gap: var(--e-gap-2);
	padding-bottom: var(--e-gap-3);
}

.etemad-footer__col.is-open .etemad-footer__social {
	display: flex;
}

.etemad-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--e-line-strong);
	border-radius: var(--e-r-chip);
	background: var(--e-white);
	color: var(--e-ink-2);
	font-size: 13px;
	font-weight: 700;
}

.etemad-footer__social-link:hover {
	border-color: var(--e-brand);
	color: var(--e-brand-text);
}

.etemad-footer__bottom {
	border-top: 1px solid var(--e-line);
	background: var(--e-bg-2);
}

.etemad-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--e-gap-3);
	padding-block: var(--e-gap-3);
	color: var(--e-ink-2);
	font-size: 11.5px;
}

.etemad-footer__legal {
	display: flex;
	gap: var(--e-gap-3);
}

.etemad-footer__legal a {
	color: var(--e-ink-2);
}

/* --------------------------------------------------------- ۱۰. برگه و ۴۰۴ */

.etemad-postlist {
	display: grid;
	gap: var(--e-gap-4);
}

.etemad-postcard {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: var(--e-gap-3);
	padding: var(--e-gap-3);
	border: 1px solid var(--e-line);
	border-radius: var(--e-r-card);
	background: var(--e-white);
}

.etemad-postcard__media img {
	border-radius: var(--e-r-chip);
	aspect-ratio: 1;
	object-fit: cover;
}

.etemad-postcard__title {
	margin: 0 0 4px;
	font-size: 14px;
}

.etemad-postcard__title a {
	color: var(--e-ink);
}

.etemad-postcard__meta {
	margin: 0 0 4px;
	color: var(--e-ink-2);
	font-size: 11.5px;
}

.etemad-postcard__excerpt {
	margin: 0;
	color: var(--e-ink-2);
	font-size: 12.5px;
}

.etemad-404 {
	text-align: center;
	padding-block: var(--e-gap-7);
}

.etemad-404__title {
	font-size: 26px;
}

.etemad-404__text {
	color: var(--e-ink-2);
	margin-bottom: var(--e-gap-5);
}

.etemad-404 .etemad-search {
	display: flex;
	max-width: 480px;
	margin-inline: auto;
}

.etemad-404__cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--e-gap-2);
	margin-top: var(--e-gap-5);
}

.etemad-empty {
	padding: var(--e-gap-6);
	text-align: center;
	color: var(--e-ink-2);
	background: var(--e-bg-2);
	border-radius: var(--e-r-card);
}

/* ------------------------------------------------------------ دسکتاپ */

@media (min-width: 768px) {
	body {
		font-size: 14px;
		padding-bottom: 0;              /* نوار پایین فقط موبایل است. */
	}

	.etemad-container {
		padding-inline: var(--e-gap-5);
	}

	h1 { font-size: 26px; }
	h2 { font-size: 20px; }

	.etemad-notice-bar__links {
		display: flex;
	}

	.etemad-header__row {
		min-height: 74px;
		gap: var(--e-gap-4);
	}

	.etemad-search {
		display: flex;
		max-width: 520px;
	}

	.etemad-header__actions {
		display: flex;
	}

	.etemad-header__menu,
	.etemad-header__search-toggle {
		display: none;
	}

	.etemad-catbar {
		display: block;
	}

	.etemad-bottomnav {
		display: none;
	}

	.etemad-drawer__panel {
		width: min(70vw, 560px);
	}

	.etemad-menu {
		grid-template-columns: 38% 62%;
	}

	.etemad-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
		gap: var(--e-gap-6);
		padding-block: var(--e-gap-6);
	}

	.etemad-footer__brand {
		padding-bottom: 0;
	}

	.etemad-footer__col {
		border-top: 0;
	}

	.etemad-footer__toggle {
		min-height: auto;
		margin-bottom: var(--e-gap-3);
		pointer-events: none;
	}

	.etemad-footer__chevron {
		display: none;
	}

	.etemad-footer__list,
	.etemad-footer__social {
		display: block;
	}

	.etemad-footer__social {
		display: flex;
		margin-top: var(--e-gap-4);
	}

	.etemad-postlist {
		grid-template-columns: repeat(2, 1fr);
	}

	.etemad-postcard {
		grid-template-columns: 1fr;
	}

	.etemad-postcard__media img {
		aspect-ratio: 16 / 10;
	}
}

@media (min-width: 1024px) {
	.etemad-search {
		max-width: 620px;
	}
}

/* ------------------------------------------------------- زبان‌ها */

/*
 * تا وقتی زبان دومی منتشر نشده باشد این بخش اصلاً رندر نمی‌شود،
 * پس روی سایت تک‌زبانه هیچ فضایی نمی‌گیرد.
 */
.etemad-langs {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px;
	border-radius: var(--e-r-chip);
	background: rgba(255, 255, 255, .12);
}

.etemad-langs__item {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 5px;
	color: #CFC6BE;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.8;
}

.etemad-langs__item.is-current {
	background: var(--e-brand);
	color: var(--e-white);
}

a.etemad-langs__item:hover {
	color: var(--e-white);
}

/* --------------------------------- مودال افزودن به سبد */

.etemad-added {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: none;
	align-items: center;
	justify-content: center;
	padding: var(--e-gap-4);
}

.etemad-added.is-open {
	display: flex;
}

.etemad-added__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 23, 20, .5);
	animation: etemad-fade .18s var(--e-ease);
}

.etemad-added__panel {
	position: relative;
	width: 100%;
	max-width: 360px;
	padding: var(--e-gap-5) var(--e-gap-4);
	border-radius: var(--e-r-card);
	background: var(--e-white);
	box-shadow: var(--e-shadow-3);
	text-align: center;
	animation: etemad-pop .2s var(--e-ease);
}

@keyframes etemad-pop {
	from { transform: scale(.94); opacity: 0; }
}

.etemad-added__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: var(--e-gap-3);
	border-radius: var(--e-r-pill);
	background: var(--e-success-tint);
	color: var(--e-success);
}

.etemad-added__icon svg {
	width: 26px;
	height: 26px;
}

.etemad-added__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 800;
}

.etemad-added__name {
	margin: 0 0 var(--e-gap-4);
	color: var(--e-ink-2);
	font-size: 12.5px;
	line-height: 1.8;
}

.etemad-added__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--e-gap-2);
}

.etemad-added__actions .etemad-btn {
	padding-inline: var(--e-gap-3);
	font-size: 13px;
}

/* دکمهٔ در حال ارسال */
.etemad-btn.is-loading,
.etemad-card__addbtn.is-loading {
	opacity: .6;
	pointer-events: none;
}

/* ------------------------------------ اعلان‌های ووکامرس */

/*
 * اعلان‌های ووکامرس (پیام، خطا، اطلاع) در سبد، تسویه و صفحهٔ محصول ظاهر
 * می‌شوند. بدون استایل، متن خام بالای صفحه می‌افتد و شبیه خرابی دیده می‌شود.
 */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--e-gap-2) var(--e-gap-3);
	margin: 0 0 var(--e-gap-3);
	padding: var(--e-gap-3) var(--e-gap-4);
	border: 1px solid var(--e-line-strong);
	border-radius: var(--e-r-card);
	background: var(--e-bg);
	color: var(--e-ink);
	font-size: 12.5px;
	line-height: 1.9;
	list-style: none;
}

.woocommerce-message {
	border-color: #BEE0CD;
	background: var(--e-success-tint);
	color: var(--e-success);
}

.woocommerce-error {
	border-color: #F3C4C0;
	background: var(--e-danger-tint);
	color: var(--e-danger);
}

.woocommerce-info {
	border-color: var(--e-brand-tint-2);
	background: var(--e-brand-tint);
	color: var(--e-brand-text);
}

.woocommerce-message li,
.woocommerce-error li,
.woocommerce-info li {
	width: 100%;
	margin: 0;
}

/* دکمهٔ «مشاهده سبد» داخل اعلان */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	order: 2;
	margin-inline-start: auto;
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 4px 14px;
	border-radius: var(--e-r-chip);
	background: var(--e-white);
	color: inherit;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid currentColor;
}

.woocommerce-NoticeGroup {
	margin-bottom: var(--e-gap-3);
}

/* Interactive controls keep the brand hue with readable contrast. */
.etemad-btn:not(.etemad-btn--ghost):not(.etemad-btn--dark){background:#C4471B;color:#fff}.etemad-btn:hover{filter:brightness(.96)}.etemad-qty__btn,.etemad-cartitem__remove{min-width:44px;min-height:44px}.etemad-weight__notify{display:block;position:relative;padding:10px;text-align:center;text-decoration:underline;z-index:1}.etemad-weight.is-out{opacity:1}.etemad-weight.is-out .etemad-weight__card{opacity:.7}


.etemad-search{position:relative}
.etemad-live-search{position:absolute;inset-inline:0;top:calc(100% + 8px);z-index:110;background:#fff;border:1px solid var(--e-line);border-radius:16px;box-shadow:0 16px 40px #261a1726;max-height:65vh;overflow-y:auto;padding:16px;text-align:start;color:var(--e-ink)}
.etemad-live-search[hidden]{display:none}
.etemad-stock-alert{display:grid;gap:8px;margin-block:12px;max-width:100%}
.etemad-stock-alert button{cursor:pointer;font:inherit}
.etemad-stock-alert button:disabled{cursor:default;opacity:.7}
.etemad-stock-alert__message{font-size:13px;line-height:1.8;color:var(--e-ink-2);white-space:normal}

.etemad-stock-alert__button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:14px 24px;border:1px solid var(--e-brand-text);border-radius:14px;background:var(--e-brand-text);color:#fff;font-weight:750;box-shadow:0 5px 16px #b74b1920;transition:background .2s,box-shadow .2s;width:fit-content;max-width:100%}.etemad-stock-alert__button:hover{filter:brightness(.94);box-shadow:0 7px 20px #b74b1930}.etemad-stock-alert__button svg{flex-shrink:0}.etemad-stock-alert__button:focus-visible{outline:3px solid var(--e-ink);outline-offset:3px}

/* A separate, wrapping breadcrumb surface shared by catalog and product pages. */
body .etemad-breadcrumb,
body .woocommerce-breadcrumb{
 display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;
 width:100%;min-width:0;box-sizing:border-box;margin:0 0 24px;padding:10px 16px;
 border:1px solid var(--e-line);border-radius:13px;background:var(--e-bg);
 color:var(--e-ink-2);font-size:12px;line-height:1.9;overflow-wrap:anywhere;
}
body .etemad-breadcrumb a,body .woocommerce-breadcrumb a{
 display:inline-flex;align-items:center;min-height:30px;color:var(--e-ink-2);text-decoration:none;
}
body .etemad-breadcrumb a:hover,body .woocommerce-breadcrumb a:hover{color:var(--e-brand-text)}
body .etemad-breadcrumb a:focus-visible,body .woocommerce-breadcrumb a:focus-visible{outline:2px solid var(--e-brand-text);outline-offset:3px;border-radius:4px}
@media(max-width:599px){body .etemad-breadcrumb,body .woocommerce-breadcrumb{padding:8px 12px;margin-bottom:18px;border-radius:11px}}

/* Hidden controls must not be resurrected by component display rules. */
[hidden]{display:none!important}
.etemad-logo__img{width:64px;height:64px;object-fit:contain;border-radius:0}

.etemad-wholesale-extra{margin-top:32px;min-width:0}
.etemad-catbar__inner{flex-wrap:wrap;row-gap:8px}
.etemad-catbar__list,.etemad-catbar__services{flex-wrap:wrap;min-width:0}
.etemad-menu__panel-title{color:var(--e-ink);text-decoration:none}
.etemad-menu__panel-title:hover{color:var(--e-brand-text)}
.etemad-sr__product{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid var(--e-line);border-radius:14px;background:#fff}
.etemad-sr__list{display:grid;gap:10px}
.etemad-sr__img{width:72px;height:72px;flex:0 0 72px;object-fit:contain;background:#fff;border-radius:10px}
.etemad-sr__body{min-width:0;flex:1}
.etemad-sr__name{font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.etemad-sr__meta{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:6px}
.etemad-sr__price{font-weight:700;color:var(--e-ink)}
.etemad-sr__stock{font-size:11px;color:var(--e-success)}
.etemad-sr__product.is-out .etemad-sr__stock{color:var(--e-ink-3)}
@media(min-width:768px){.etemad-header .etemad-logo__img{width:80px;height:80px}.etemad-footer .etemad-logo__img{width:104px;height:104px}}
@media(max-width:359px){.etemad-logo__img{width:54px;height:54px}.etemad-logo__name{font-size:14px}}
.etemad-header .etemad-logo{min-width:0;flex-shrink:1}
.etemad-header .etemad-logo__text{min-width:0;overflow-wrap:anywhere}
/* Contain absolutely positioned accessible price text inside its product card. */
.etemad-card{position:relative}
.etemad-card .screen-reader-text{inset-inline-start:0;top:0;clip-path:inset(50%);width:1px!important;height:1px!important;overflow:hidden!important}
.etemad-enamad{display:grid;place-items:center;max-width:140px}
.etemad-enamad img{max-width:100%;height:auto;max-height:100px;object-fit:contain}

/* Separate the text field and submit button in normal flow; no RTL overlap. */
.etemad-search{min-width:0;gap:4px}
.etemad-search input.etemad-search__field[type=search]{flex:1 1 0;width:0;min-width:0;max-width:100%;padding:12px 14px;border:0;background:transparent;box-shadow:none}
.etemad-search .etemad-search__submit{position:static;inset:auto;flex:0 0 auto;width:auto;min-width:82px;height:44px;margin:4px;padding:0 12px;gap:6px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.etemad-search .etemad-search__submit .etemad-icon{flex:none;width:18px;height:18px}

/* ---------------------------------------- رسانهٔ مشترک (عکس/ویدیو) */

.etemad-media {
	margin: 0;
	min-width: 0;
}

.etemad-media img,
.etemad-media__video,
.etemad-media__frame {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--e-r-card, 16px);
}

.etemad-media__frame {
	aspect-ratio: 16 / 9;
	border: 0;
}

.etemad-media figcaption {
	margin-top: 8px;
	color: var(--e-ink-2);
	font-size: 12.5px;
	line-height: 1.9;
}

/*
 * روکش ویدیو: یک دکمهٔ واقعی، نه div کلیک‌پذیر — تا با صفحه‌کلید هم
 * بشود پخش را شروع کرد.
 */
.etemad-media__play {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--e-r-card, 16px);
	background: var(--e-bg);
	cursor: pointer;
	overflow: hidden;
}

/* بدون عکس روکش، دکمه ارتفاع خودش را از نسبت تصویر می‌گیرد. */
.etemad-media__play:not(:has(img)) {
	aspect-ratio: 16 / 9;
}

.etemad-media__play-icon {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	transform: translate(50%, -50%);
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: var(--e-shadow-2);
	transition: transform .18s ease, background .18s ease;
}

.etemad-media__play-icon::before {
	content: '';
	/* مثلث پخش، با مرز — بدون تصویر اضافه. */
	border-style: solid;
	border-width: 11px 0 11px 17px;
	border-color: transparent transparent transparent var(--e-brand);
	margin-inline-start: 4px;
}

.etemad-media__play:hover .etemad-media__play-icon,
.etemad-media__play:focus-visible .etemad-media__play-icon {
	transform: translate(50%, -50%) scale(1.07);
	background: var(--e-white);
}

/* ------------------------------------ رسانهٔ بالای «داستان ما» */

/* بین کارت‌های آمار و فصل‌های داستان می‌نشیند، پس هر دو طرف فاصله دارد. */
.etemad-about__top {
	padding: var(--e-gap-5) 0 0;
}

.etemad-about__top-media img,
.etemad-about__top-media .etemad-media__play,
.etemad-about__top-media .etemad-media__frame {
	max-height: 70vh;
	object-fit: cover;
	border-radius: var(--e-r-card, 16px);
}

.etemad-about__top-media figcaption {
	text-align: center;
}

/* ------------------------------------ کارت گالری و پنجرهٔ بزرگ */

.etemad-media__open {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--e-r-card, 16px);
	background: var(--e-bg);
	cursor: pointer;
	overflow: hidden;
}

.etemad-media__open img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.etemad-media__open:hover img,
.etemad-media__open:focus-visible img {
	transform: scale(1.04);
}

.etemad-media__blank {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--e-bg);
}

/* ذره‌بین گوشهٔ کارت عکس */
.etemad-media__zoom-icon {
	position: absolute;
	inset-block-end: 8px;
	inset-inline-end: 8px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: var(--e-shadow-2);
	opacity: 0;
	transition: opacity .18s ease;
}

.etemad-media__zoom-icon::before {
	content: '';
	width: 11px;
	height: 11px;
	border: 2px solid var(--e-brand);
	border-radius: 50%;
	box-shadow: 4px 4px 0 -1px var(--e-brand);
	margin: -2px 3px 3px -2px;
}

.etemad-media__open:hover .etemad-media__zoom-icon,
.etemad-media__open:focus-visible .etemad-media__zoom-icon {
	opacity: 1;
}

/* پنجرهٔ بزرگ */
.etemad-lightbox {
	position: fixed;
	inset: 0;
	z-index: 560;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 4vw, 40px);
}

.etemad-lightbox.is-open {
	display: flex;
}

.etemad-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 15, 12, .82);
	backdrop-filter: blur(3px);
}

.etemad-lightbox__panel {
	position: relative;
	display: grid;
	gap: 10px;
	width: min(1000px, 100%);
	max-height: 100%;
}

.etemad-lightbox__stage {
	display: grid;
	place-items: center;
	min-height: 0;
}

.etemad-lightbox__stage img,
.etemad-lightbox__stage video {
	max-width: 100%;
	max-height: min(76vh, 760px);
	border-radius: 12px;
	background: #000;
}

.etemad-lightbox__stage iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 76vh;
	border: 0;
	border-radius: 12px;
	background: #000;
}

.etemad-lightbox__caption {
	margin: 0;
	color: #fff;
	font-size: 13.5px;
	line-height: 1.9;
	text-align: center;
}

.etemad-lightbox__close,
.etemad-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--e-ink);
	cursor: pointer;
	font: inherit;
	line-height: 1;
	box-shadow: var(--e-shadow-2);
	transition: background .18s ease, transform .18s ease;
}

.etemad-lightbox__close {
	inset-block-start: -6px;
	inset-inline-end: -6px;
	width: 38px;
	height: 38px;
	font-size: 16px;
}

.etemad-lightbox__nav {
	inset-block-start: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	font-size: 26px;
}

/* در RTL «قبلی» سمت راست می‌نشیند. */
.etemad-lightbox__nav.is-prev {
	inset-inline-end: -4px;
}

.etemad-lightbox__nav.is-next {
	inset-inline-start: -4px;
}

.etemad-lightbox__close:hover,
.etemad-lightbox__nav:hover {
	background: #fff;
}

.etemad-lightbox__nav:hover {
	transform: translateY(-50%) scale(1.06);
}

@media (max-width: 560px) {
	.etemad-lightbox__nav {
		width: 38px;
		height: 38px;
	}

	.etemad-lightbox__nav.is-prev { inset-inline-end: 0; }
	.etemad-lightbox__nav.is-next { inset-inline-start: 0; }
}

/* کادر پایان فرم تماس */
.etemad-contact__done {
	padding: 18px 20px;
	border-radius: 16px;
	background: var(--e-success-tint);
	color: #1C4A33;
}

.etemad-contact__done strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
}

.etemad-contact__done p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.95;
}

.etemad-contact__error {
	margin: 0 0 4px;
	padding: 10px 14px;
	border-radius: 12px;
	background: #fdecea;
	color: #b32318;
	font-size: 13px;
}

.etemad-contact__optional {
	color: var(--e-ink-2);
	font-weight: 400;
}
