/* SA Header — هدر جدید مینیمال (سفید / زرد #FFDA00 / مشکی #1D1D1B، RTL)
   نشانه‌گذاری از includes/header.php (شورت‌کد [sa_header]) می‌آید. */

/* ---------- پوستهٔ قالب المنتور: چسبان و بدون فاصلهٔ اضافه ---------- */

.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 200;
}

body.admin-bar .elementor-location-header {
	top: 32px;
}

.elementor-location-header .e-con,
.elementor-location-header .e-con-inner {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
}

.elementor-location-header .elementor-widget-shortcode {
	width: 100%;
}

/* ---------- نوار اصلی ---------- */

.sa-hd {
	direction: rtl;
	background: var(--sa-bg, #ffffff);
	border-bottom: 1px solid rgba(var(--sa-border-rgb, 0, 0, 0), 0.08);
	font-family: var(--sa-font, "Vazirmatn", Tahoma, sans-serif);
	transition: box-shadow 0.25s ease;
}

.sa-hd.is-scrolled {
	box-shadow: 0 8px 28px rgba(29, 29, 27, 0.08);
}

.sa-hd-row {
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
	height: var(--sahd-h, 74px);
}

/* ---------- لوگو ---------- */

.sa-hd-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	line-height: 0;
	text-decoration: none;
}

/* دو کلاسه تا از قاعدهٔ img المنتور (height:auto) قوی‌تر باشد. */
.sa-hd-logo .sa-hd-logo-img {
	height: var(--sahd-logo, 46px);
	width: auto;
	max-width: none;
	/* logo-light برای زمینهٔ تیره است؛ روی سفید مشکی می‌شود. */
	filter: brightness(0);
}

.sa-hd-logo-text {
	font-size: 20px;
	font-weight: 800;
	color: var(--sa-text, #212121);
}

/* ---------- ناوبری دسکتاپ ---------- */

.sa-hd-nav {
	position: relative;
	align-self: stretch;
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
	min-width: 0;
}

ul.sa-hd-menu {
	display: flex;
	align-items: stretch;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sa-hd-menu > li {
	position: relative;
	display: flex;
	align-items: stretch;
}

.sa-hd-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 14px;
	font-size: 15px;
	font-weight: 500;
	color: var(--sa-text, #212121);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.18s ease;
}

.sa-hd-menu > li > a:hover,
.sa-hd-menu > li:focus-within > a {
	color: #000000;
}

.sa-hd-menu > li.current-menu-item > a,
.sa-hd-menu > li.current-menu-ancestor > a {
	font-weight: 700;
}

/* فلش کوچک آیتم‌های دارای زیرمنو */
.sa-hd-menu > li.menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-left: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	opacity: 0.55;
	transition: transform 0.18s ease;
}

.sa-hd-menu > li.menu-item-has-children:hover > a::after,
.sa-hd-menu > li.menu-item-has-children:focus-within > a::after {
	transform: rotate(135deg);
	margin-top: 3px;
}

/* خط استاندارد: نشانگر زرد لغزنده زیر منو (js جابه‌جایش می‌کند) */
.sa-hd-underline {
	position: absolute;
	bottom: -1px;
	right: 0;
	width: 0;
	height: 2px;
	background: var(--sa-gold, #ffda00);
	transform: translateX(0);
	transition: transform 0.28s cubic-bezier(0.25, 1, 0.3, 1), width 0.28s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.18s ease;
	opacity: 0;
	pointer-events: none;
}

.sa-hd-underline.is-on {
	opacity: 1;
}

/* بدون js: خط زیر آیتم فعال ثابت باشد */
.sa-hd:not(.has-js) .sa-hd-menu > li.current-menu-item > a,
.sa-hd:not(.has-js) .sa-hd-menu > li.current-menu-ancestor > a {
	box-shadow: inset 0 -2px 0 var(--sa-gold, #ffda00);
}

/* ---------- زیرمنوی دسکتاپ ---------- */

.sa-hd-menu .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 30;
	min-width: 250px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--sa-bg, #ffffff);
	border: 1px solid rgba(var(--sa-border-rgb, 0, 0, 0), 0.08);
	border-radius: 14px;
	box-shadow: 0 20px 44px rgba(29, 29, 27, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.sa-hd-menu > li:hover > .sub-menu,
.sa-hd-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sa-hd-menu .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 9px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--sa-text, #212121);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.sa-hd-menu .sub-menu a:hover,
.sa-hd-menu .sub-menu a:focus-visible {
	background: var(--sa-surface-1, #f7f6ee);
}

/* زیرمنوی بلند (دسته‌های دوره) دو ستونه می‌شود */
.sa-hd-menu .sub-menu.sa-hd-cols {
	min-width: 460px;
	column-count: 2;
	column-gap: 4px;
}

.sa-hd-menu .sub-menu.sa-hd-cols > li {
	break-inside: avoid;
}

/* ---------- ناحیهٔ اکشن‌ها ---------- */

.sa-hd-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
	margin-inline-start: auto;
}

.sa-hd-sep {
	width: 1px;
	height: 22px;
	background: rgba(var(--sa-border-rgb, 0, 0, 0), 0.14);
}

/* بازتعریف دکمهٔ جستجوی sa-search: بی‌قاب، هم‌وزن آیتم‌های منو */
.sa-hd .sa-search-toggle,
.sa-hd-search-slot .sa-search-toggle {
	min-width: 0;
	height: 40px !important;
	padding: 0 10px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: transparent !important;
	color: var(--sa-text, #212121) !important;
	cursor: pointer;
	gap: 7px;
}

.sa-hd .sa-search-toggle:hover {
	background: var(--sa-surface-1, #f7f6ee) !important;
	color: #000000 !important;
}

.sa-hd .sa-search-toggle:focus-visible {
	background: var(--sa-surface-1, #f7f6ee) !important;
	border: 0 !important;
	box-shadow: 0 0 0 3px rgba(var(--sa-gold-rgb, 255, 218, 0), 0.45);
}

.sa-hd .sa-search-toggle-ico {
	color: currentColor;
}

.sa-hd .sa-search-toggle-ico svg {
	width: 18px;
	height: 18px;
	stroke-width: 2;
}

.sa-hd .sa-search-toggle-label {
	flex: 0 0 auto;
	font-size: 14.5px;
	font-weight: 500;
}

/* ورود / ثبت‌نام */
.sa-hd-auth {
	display: flex;
	align-items: center;
	gap: 14px;
}

.sa-hd-login {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--sa-text, #212121);
	text-decoration: none;
	transition: color 0.18s ease;
}

.sa-hd-login:hover,
.sa-hd-login:focus-visible {
	color: #8a7400;
}

.sa-hd-signup {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--sa-gold, #ffda00);
	color: #1d1d1b;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-hd-signup:hover,
.sa-hd-signup:focus-visible {
	background: #1d1d1b;
	color: var(--sa-gold, #ffda00);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(146, 118, 0, 0.22);
}

.sa-hd-account {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 20px;
	border: 1.5px solid rgba(29, 29, 27, 0.85);
	border-radius: 999px;
	color: var(--sa-text, #212121);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.sa-hd-account:hover,
.sa-hd-account:focus-visible {
	background: #1d1d1b;
	color: #ffffff;
}

/* ---------- همبرگر ---------- */

.sa-hd-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: transparent !important;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.sa-hd-burger span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--sa-text, #212121);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.sa-hd-burger:hover {
	background: var(--sa-surface-1, #f7f6ee) !important;
}

.sa-hd-burger.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.sa-hd-burger.is-open span:nth-child(2) {
	opacity: 0;
}

.sa-hd-burger.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- کشوی موبایل ---------- */

.sa-hd-scrim[hidden],
.sa-hd-drawer[hidden] {
	display: none;
}

.sa-hd-scrim {
	position: fixed;
	inset: 0;
	z-index: 240;
	background: rgba(6, 6, 8, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sa-hd-scrim.is-open {
	opacity: 1;
	visibility: visible;
}

.sa-hd-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 250;
	display: flex;
	flex-direction: column;
	width: min(360px, 88vw);
	background: var(--sa-bg, #ffffff);
	box-shadow: -24px 0 60px rgba(29, 29, 27, 0.18);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.32s cubic-bezier(0.25, 1, 0.3, 1), visibility 0.32s;
	overflow-y: auto;
	overscroll-behavior: contain;
	direction: rtl;
	font-family: var(--sa-font, "Vazirmatn", Tahoma, sans-serif);
}

.sa-hd-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
}

.sa-hd-drawer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(var(--sa-border-rgb, 0, 0, 0), 0.08);
}

.sa-hd-logo-sm .sa-hd-logo-img {
	height: 36px;
}

.sa-hd-drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: transparent !important;
	color: var(--sa-text, #212121) !important;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.sa-hd-drawer-close:hover {
	background: var(--sa-surface-1, #f7f6ee) !important;
}

/* جستجوی داخل کشو (sa-search حالت اینلاین این‌جا تزریق می‌شود) */
.sa-hd-drawer-search {
	padding: 14px 20px 4px;
}

.sa-hd-drawer-search:empty {
	display: none;
}

.sa-hd-drawer .sa-search-inline {
	display: block !important;
	position: relative;
	margin-top: 0;
}

.sa-hd-drawer .sa-search-inline .sa-search-form {
	padding: 2px 12px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.05);
}

.sa-hd-drawer .sa-search-inline .sa-search-input {
	font-size: 16px;
	padding: 10px 6px !important;
	border: 0;
	background: transparent;
	width: 100%;
}

.sa-hd-drawer .sa-search-inline .sa-search-results {
	display: none;
	position: static;
	margin-top: 8px;
	padding: 4px;
	border: 1px solid rgba(var(--sa-border-rgb, 0, 0, 0), 0.08);
	border-radius: 12px;
	max-height: 300px;
	overflow-y: auto;
}

.sa-hd-drawer .sa-search-inline .sa-search-results.has-items {
	display: block;
}

/* منوی کشو: آکاردئون */
.sa-hd-drawer-nav {
	flex: 1 1 auto;
	padding: 8px 12px 16px;
}

ul.sa-hd-m-menu,
.sa-hd-m-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sa-hd-m-menu > li {
	border-bottom: 1px solid rgba(var(--sa-border-rgb, 0, 0, 0), 0.06);
}

.sa-hd-m-menu > li:last-child {
	border-bottom: 0;
}

.sa-hd-m-menu > li > a,
.sa-hd-m-menu > li > .sa-hd-m-item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1 1 auto;
	padding: 14px 10px;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--sa-text, #212121);
	text-decoration: none;
}

/* RTL: نوار زرد لبهٔ آغازین (راست) آیتم فعال */
.sa-hd-m-menu > li.current-menu-item > a {
	box-shadow: inset -4px 0 0 var(--sa-gold, #ffda00);
	padding-inline-start: 14px;
}

.sa-hd-m-item {
	display: flex;
	align-items: center;
}

/* دکمهٔ بازکردن زیرمنو که js کنار آیتم والد می‌گذارد.
   !important در برابر استایل سراسری دکمه‌های قالب/کیت لازم است. */
.sa-hd-drawer .sa-hd-m-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: var(--sa-text, #212121) !important;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.sa-hd-m-toggle::after {
	content: "";
	width: 8px;
	height: 8px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	margin-top: -3px;
	transition: transform 0.2s ease;
	opacity: 0.6;
}

.sa-hd-m-menu li.is-open > .sa-hd-m-item .sa-hd-m-toggle::after {
	transform: rotate(135deg);
	margin-top: 3px;
}

.sa-hd-m-menu .sub-menu {
	display: none;
	padding: 0 10px 10px 0;
}

.sa-hd-m-menu li.is-open > .sub-menu {
	display: block;
}

.sa-hd-m-menu .sub-menu a {
	display: block;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 500;
	color: #4a4a46;
	text-decoration: none;
	border-inline-start: 1px solid rgba(var(--sa-border-rgb, 0, 0, 0), 0.12);
	transition: color 0.15s ease, border-color 0.15s ease;
}

.sa-hd-m-menu .sub-menu a:hover {
	color: #000000;
	border-inline-start-color: var(--sa-gold, #ffda00);
}

/* پایین کشو: دکمه‌های ورود/ثبت‌نام */
.sa-hd-drawer-foot {
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid rgba(var(--sa-border-rgb, 0, 0, 0), 0.08);
}

.sa-hd-drawer-foot .sa-hd-auth {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

.sa-hd-drawer-foot .sa-hd-signup {
	justify-content: center;
	height: 46px;
}

.sa-hd-drawer-foot .sa-hd-login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	border: 1.5px solid rgba(29, 29, 27, 0.8);
	border-radius: 999px;
}

.sa-hd-drawer-foot .sa-hd-account {
	width: 100%;
	justify-content: center;
}

/* ---------- واکنش‌گرایی ---------- */

@media (max-width: 1100px) {
	.sa-hd-row {
		height: var(--sahd-h-m, 62px);
		gap: 14px;
		padding: 0 16px;
	}

	.sa-hd-nav,
	.sa-hd-actions {
		display: none;
	}

	.sa-hd-burger {
		display: flex;
		margin-inline-start: auto;
	}

	.sa-hd-logo .sa-hd-logo-img {
		height: calc(var(--sahd-logo, 46px) - 8px);
	}
}

@media (min-width: 1101px) {
	.sa-hd-scrim,
	.sa-hd-drawer {
		display: none;
	}
}

/* ---------- منوی بازشوی کاربر (پروفایل کاربری / سبد آموزش) ---------- */

.sa-hd-user {
	position: relative;
	display: inline-flex;
}

/* دکمهٔ قرصی حالا button است؛ ریست در برابر استایل دکمه‌های قالب/کیت */
.sa-hd .sa-hd-user-btn {
	position: relative;
	gap: 8px;
	font-family: inherit;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.sa-hd button.sa-hd-signup {
	border: 0 !important;
	background: var(--sa-gold, #ffda00);
}

.sa-hd .sa-hd-user-caret {
	flex: 0 0 auto;
	opacity: 0.65;
	transition: transform 0.2s ease;
}

.sa-hd-user.is-open .sa-hd-user-caret,
.sa-hd-user:hover .sa-hd-user-caret {
	transform: rotate(180deg);
}

.sa-hd-user-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 30;
	min-width: 210px;
	padding: 8px;
	background: var(--sa-bg, #ffffff);
	border: 1px solid rgba(var(--sa-border-rgb, 0, 0, 0), 0.08);
	border-radius: 14px;
	box-shadow: 0 20px 44px rgba(29, 29, 27, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.sa-hd-user.is-open .sa-hd-user-menu,
.sa-hd-user:hover .sa-hd-user-menu,
.sa-hd-user:focus-within .sa-hd-user-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sa-hd-user-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 500;
	color: var(--sa-text, #212121);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.sa-hd-user-menu a:hover,
.sa-hd-user-menu a:focus-visible {
	background: var(--sa-surface-1, #f7f6ee);
}

/* ---------- نشان شمارندهٔ سبد ---------- */

.sa-hd-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: #1d1d1b;
	color: var(--sa-gold, #ffda00);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.sa-hd-cart-count[data-count="0"] {
	display: none !important;
}

/* روی دکمهٔ قرصی و آیکن سبد موبایل: گوشهٔ بالا */
.sa-hd-user-btn .sa-hd-cart-count,
.sa-hd-cart-m .sa-hd-cart-count {
	position: absolute;
	top: -6px;
	left: -6px;
	border: 2px solid var(--sa-bg, #ffffff);
	box-sizing: content-box;
}

.sa-hd button.sa-hd-signup .sa-hd-cart-count {
	border-color: var(--sa-bg, #ffffff);
}

/* داخل آیتم «سبد آموزش» منوی بازشو: تراشهٔ زرد */
.sa-hd-user-menu .sa-hd-cart-count,
.sa-hd-drawer-user .sa-hd-cart-count {
	background: var(--sa-gold, #ffda00);
	color: #1d1d1b;
}

/* ---------- آیکن سبد موبایل (کنار همبرگر) ---------- */

.sa-hd-cart-m {
	position: relative;
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	color: var(--sa-text, #212121);
	text-decoration: none;
}

.sa-hd-cart-m:hover {
	background: var(--sa-surface-1, #f7f6ee);
}

/* ---------- پیوندهای کاربر داخل کشوی موبایل ---------- */

.sa-hd-drawer-user {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sa-hd-drawer-user-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	border: 1.5px solid rgba(29, 29, 27, 0.8);
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--sa-text, #212121);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.sa-hd-drawer-user-link:hover {
	background: #1d1d1b;
	color: #ffffff;
}

.sa-hd-drawer-user-link.sa-hd-user-cart {
	border-color: transparent;
	background: var(--sa-gold, #ffda00);
	color: #1d1d1b;
	font-weight: 700;
}

.sa-hd-drawer-user-link.sa-hd-user-cart:hover {
	background: #1d1d1b;
	color: var(--sa-gold, #ffda00);
}

.sa-hd-drawer-user-link.sa-hd-user-cart .sa-hd-cart-count {
	background: #1d1d1b;
	color: var(--sa-gold, #ffda00);
}

/* ---------- تپش نشان پس از افزودن به سبد ---------- */

@keyframes sa-hd-cart-pop {
	0% { transform: scale(1); }
	35% { transform: scale(1.45); }
	100% { transform: scale(1); }
}

.sa-hd-cart-pulse .sa-hd-cart-count {
	animation: sa-hd-cart-pop 0.5s cubic-bezier(0.25, 1, 0.3, 1);
}

/* ---------- توست «به سبد آموزش اضافه شد» ---------- */

.sa-hd-toast {
	position: fixed;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	left: 50%;
	z-index: 320;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: min(92vw, 420px);
	padding: 12px 18px;
	border-radius: 999px;
	background: #1d1d1b;
	color: #ffffff;
	font-family: var(--sa-font, "Vazirmatn", Tahoma, sans-serif);
	font-size: 13.5px;
	direction: rtl;
	box-shadow: 0 16px 40px rgba(29, 29, 27, 0.3);
	transform: translate(-50%, 16px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.sa-hd-toast.is-on {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.sa-hd-toast svg {
	flex: 0 0 auto;
	color: var(--sa-gold, #ffda00);
}

.sa-hd-toast-msg {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sa-hd-toast-link {
	flex: 0 0 auto;
	color: var(--sa-gold, #ffda00);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.sa-hd-toast-link:hover {
	text-decoration: underline;
}

@media (max-width: 1100px) {
	.sa-hd-cart-m {
		display: inline-flex;
		margin-inline-start: auto;
	}

	/* آیکن سبد خودش کنارهٔ چپ را می‌گیرد؛ همبرگر دیگر لازم نیست */
	.sa-hd-burger {
		margin-inline-start: 0;
	}
}

/* ---------- کاهش حرکت ---------- */

@media (prefers-reduced-motion: reduce) {
	.sa-hd,
	.sa-hd-underline,
	.sa-hd-menu .sub-menu,
	.sa-hd-menu > li.menu-item-has-children > a::after,
	.sa-hd-signup,
	.sa-hd-burger span,
	.sa-hd-scrim,
	.sa-hd-drawer,
	.sa-hd-m-toggle::after,
	.sa-hd-user-menu,
	.sa-hd-user-caret,
	.sa-hd-toast {
		transition: none !important;
	}

	.sa-hd-signup:hover,
	.sa-hd-signup:focus-visible {
		transform: none;
	}

	.sa-hd-cart-pulse .sa-hd-cart-count {
		animation: none;
	}
}
