/* ===== هدر واقعی سایت پندارگاه — بازسازی‌شده از نمونهٔ HTML، همان توکن‌های رنگی --pg-* که در
   footer.css این پروژه هم استفاده می‌شوند؛ فقط دو متغیر سایه اینجا اضافه شده‌اند چون فوتر به آن‌ها
   نیاز نداشت. */
:root {
	--pg-shadow: 0 18px 48px rgba(0, 80, 86, .12);
	--pg-shadow-sm: 0 8px 24px rgba(0, 80, 86, .075);
	--pg-ease: cubic-bezier(.2, .8, .2, 1);
}

.pandargah-header,
.pandargah-mobile-drawer {
	font-family: "Vazirmatn", Tahoma, sans-serif;
}

.pandargah-header * {
	box-sizing: border-box;
}

.pandargah-header svg {
	display: block;
}

.pandargah-header a {
	color: inherit;
	text-decoration: none;
}

.pandargah-header button,
.pandargah-header input {
	font: inherit;
}

.pandargah-header button,
.pandargah-header a {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.pandargah-header-container {
	width: min(calc(100% - 40px), 1240px);
	margin-inline: auto;
}

.pandargah-skip {
	position: fixed;
	z-index: 300;
	top: 10px;
	inset-inline-start: 15px;
	padding: 8px 14px;
	border-radius: 10px;
	color: #fff;
	background: var(--pg-teal-900);
	transform: translateY(-160%);
}
.pandargah-skip:focus {
	transform: none;
}

/* ===== هدر ===== */
.pandargah-header {
	position: sticky;
	z-index: 100;
	top: 0;
}

.pandargah-trustbar {
	color: #dffafa;
	background: var(--pg-teal-900);
}

.pandargah-trust-inner {
	min-height: 33px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.pandargah-trust-items {
	display: flex;
	align-items: center;
	gap: 18px;
}

.pandargah-trust-item,
.pandargah-guide-link {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: .72rem;
}

.pandargah-trust-item svg,
.pandargah-guide-link svg {
	color: #83efec;
	flex: 0 0 auto;
}

.pandargah-guide-link {
	color: #fff;
	font-weight: 700;
}
.pandargah-guide-link:hover {
	text-decoration: underline;
}

.pandargah-mainbar {
	border-bottom: 1px solid rgba(217, 232, 235, .86);
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(16px);
	box-shadow: 0 5px 18px rgba(0, 65, 70, .045);
}

.pandargah-main-inner {
	position: relative;
	min-height: 78px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.pandargah-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.pandargah-brand-logo {
	width: 58px;
	height: 52px;
	object-fit: contain;
}

.pandargah-brand-copy strong {
	display: block;
	color: var(--pg-teal-900);
	font-size: 1rem;
	line-height: 1.3;
}
.pandargah-brand-copy span {
	display: block;
	color: var(--pg-muted);
	font-size: .68rem;
}

.pandargah-desktop-nav {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 3px;
}

.pandargah-nav-link,
.pandargah-products-trigger {
	min-height: 45px;
	padding: 9px 12px;
	display: flex;
	align-items: center;
	gap: 5px;
	border: 0;
	border-radius: 11px;
	color: #3f5c61;
	background: transparent;
	white-space: nowrap;
	font-size: .82rem;
	font-weight: 700;
	cursor: pointer;
	transition: .17s;
}
/* .pandargah-products-trigger یک <button> واقعی است؛ روی focus (تب کیبورد) قانون reset.css
   قالب پدر (button:focus{background:#c36}) با !important خنثی می‌شود، وگرنه صورتی می‌شد. */
.pandargah-nav-link:hover,
.pandargah-nav-link:focus,
.pandargah-products-trigger:hover,
.pandargah-products-trigger:focus,
.pandargah-products-trigger[aria-expanded="true"] {
	color: var(--pg-teal-700) !important;
	background: #edf9f9 !important;
}
.pandargah-nav-link[aria-current="page"] {
	color: var(--pg-teal-700);
	background: #e8f8f8;
}
.pandargah-products-trigger svg {
	transition: .17s;
}
.pandargah-products-trigger[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.pandargah-mega {
	position: absolute;
	z-index: 10;
	top: 65px;
	/* 190px کم بود و پنل روی بلوک لوگو/برند (که حدود 227-230px از لبهٔ راست کانتینر جا می‌گیرد)
	   می‌افتاد؛ به 240px افزایش یافت تا همیشه از زیر لوگو رد شود. */
	right: 240px;
	width: min(720px, calc(100vw - 40px));
	padding: 16px;
	display: none;
	grid-template-columns: 1fr 1fr 200px;
	gap: 12px;
	border: 1px solid #c9dfe2;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 22px 58px rgba(0, 62, 68, .16);
}
.pandargah-mega.pandargah-open {
	display: grid;
	animation: pandargah-mega-in .18s var(--pg-ease) both;
}
.pandargah-mega-card {
	min-height: 178px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	border: 1px solid #cfe2e4;
	border-radius: 16px;
	background: linear-gradient(145deg, #f1ffff, #fff 72%);
	transition: transform .18s var(--pg-ease), border-color .18s, box-shadow .18s;
}
.pandargah-mega-card:hover,
.pandargah-mega-card:focus-visible {
	border-color: #75bfc2;
	box-shadow: 0 10px 25px rgba(0, 98, 103, .09);
	transform: translateY(-2px);
}
.pandargah-mega-icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	color: var(--pg-teal-900);
	background: #d9fafa;
}
.pandargah-mega-card strong {
	margin-top: 11px;
	color: #063f42;
	font-size: .95rem;
	line-height: 1.55;
}
.pandargah-mega-card > span {
	margin-top: 4px;
	color: #405f64;
	font-size: .78rem;
	line-height: 1.75;
}
.pandargah-mega-card b {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 11px;
	color: #006b6b;
	font-size: .75rem;
}
.pandargah-quick-links {
	padding: 9px 12px 9px 4px;
	border-inline-start: 1px solid var(--pg-line);
}
.pandargah-quick-links > span {
	display: block;
	margin-bottom: 8px;
	color: #526d71;
	font-size: .72rem;
	font-weight: 700;
}
.pandargah-quick-links a {
	min-height: 42px;
	padding: 7px 9px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	border-radius: 10px;
	color: #36585d;
	font-size: .73rem;
	font-weight: 600;
	line-height: 1.55;
	transition: color .17s, background .17s;
}
.pandargah-quick-links a:hover,
.pandargah-quick-links a:focus-visible {
	color: #005e5e;
	background: #eaf8f8;
}
@keyframes pandargah-mega-in {
	from { opacity: 0; transform: translateY(-7px); }
	to { opacity: 1; transform: none; }
}

.pandargah-actions {
	margin-inline-start: auto;
	display: flex;
	align-items: center;
	gap: 7px;
}
.pandargah-icon-btn {
	position: relative;
	width: 43px;
	height: 43px;
	display: grid;
	place-items: center;
	border: 1px solid var(--pg-line);
	border-radius: 12px;
	/* !important — همان تداخل reset.css روی حالت focus/hover دکمه‌ها (button:focus/:hover
	   رنگ #c36 صورتی می‌دهد و specificity بالاتری از کلاس ساده دارد). */
	color: var(--pg-teal-700) !important;
	background: #fff !important;
	cursor: pointer;
	transition: .17s;
}
.pandargah-icon-btn:hover,
.pandargah-icon-btn:focus {
	border-color: #a8d2d4;
	background: #effafa !important;
	color: var(--pg-teal-700) !important;
}
.pandargah-account-link {
	min-height: 43px;
	padding: 7px 12px;
	display: flex;
	align-items: center;
	gap: 7px;
	border: 1px solid #b9d6d8;
	border-radius: 12px;
	/* !important — همان تداخل specificity با .pandargah-header a { color: inherit } */
	color: var(--pg-teal-700) !important;
	background: #fff;
	font-size: .76rem;
	font-weight: 800;
	white-space: nowrap;
	transition: .17s;
}
.pandargah-account-link:hover {
	border-color: var(--pg-teal);
	background: #effafa;
}
.pandargah-cart-count {
	position: absolute;
	top: -5px;
	left: -5px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	display: grid;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 99px;
	color: #fff;
	background: var(--pg-teal);
	font-size: .58rem;
	font-weight: 800;
}
.pandargah-purchase {
	min-height: 45px;
	padding: 8px 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border-radius: 12px;
	white-space: nowrap;
	/*
	 * !important روی رنگ — چون قانون .pandargah-header a { color: inherit } (که برای خنثی‌کردن
	 * رنگ پیش‌فرض لینک‌های ناوبری نوشته شده) specificity بالاتری دارد و بدون !important این متن را
	 * به‌جای سفید، به رنگ تیره‌ی محیط (inherit شده از متن اصلی صفحه) تبدیل می‌کرد.
	 */
	color: #fff !important;
	background: var(--pg-teal);
	box-shadow: 0 9px 20px rgba(0, 128, 128, .21);
	font-size: .75rem;
	font-weight: 800;
	transition: .18s;
}
.pandargah-purchase:hover {
	color: #fff !important;
	background: var(--pg-teal-700);
	transform: translateY(-1px);
}
.pandargah-menu-btn {
	display: none;
}

.pandargah-search-panel {
	display: none;
	border-bottom: 1px solid var(--pg-line);
	background: #fff;
}
.pandargah-search-panel.pandargah-open {
	display: block;
}
.pandargah-search-inner {
	padding: 13px 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}
.pandargah-search-field {
	position: relative;
}
.pandargah-search-field svg {
	position: absolute;
	top: 50%;
	right: 14px;
	color: var(--pg-teal);
	transform: translateY(-50%);
}
.pandargah-search-field input {
	width: 100%;
	height: 47px;
	padding: 8px 44px 8px 13px;
	border: 1px solid #bcd7d9;
	border-radius: 12px;
	color: var(--pg-teal-900);
	background: #fbfefe;
	outline: 0;
}
.pandargah-search-field input:focus {
	border-color: var(--pg-teal);
	box-shadow: 0 0 0 3px rgba(0, 128, 128, .1);
}
.pandargah-search-submit {
	min-height: 47px;
	padding: 8px 17px;
	border: 0;
	border-radius: 12px;
	color: #fff !important;
	background: var(--pg-teal) !important;
	font-size: .68rem;
	font-weight: 800;
	cursor: pointer;
}
.pandargah-search-submit:hover,
.pandargah-search-submit:focus {
	background: var(--pg-teal-700) !important;
	color: #fff !important;
}

/* ===== منوی موبایل ===== */
.pandargah-mobile-drawer {
	position: fixed;
	z-index: 160;
	top: 0;
	right: 0;
	width: min(88vw, 360px);
	height: 100dvh;
	padding: 18px;
	overflow: auto;
	background: #fff;
	box-shadow: -20px 0 55px rgba(0, 55, 60, .2);
	transform: translateX(110%);
	transition: .25s var(--pg-ease);
}
.pandargah-mobile-drawer.pandargah-open {
	transform: none;
}
.pandargah-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--pg-line);
}
.pandargah-drawer-close {
	width: 43px;
	height: 43px;
	display: grid;
	place-items: center;
	border: 1px solid var(--pg-line);
	border-radius: 12px;
	/* !important — این دکمه هنگام باز شدن کشو خودکار فوکوس می‌گیرد؛ بدون !important قانون
	   reset.css قالب پدر با ترکیب button:focus{background:#c36} (که specificity بالاتری از
	   یک کلاس ساده دارد) رنگ را به صورتی تبدیل می‌کرد. */
	color: var(--pg-teal-900) !important;
	background: #fff !important;
	cursor: pointer;
}
.pandargah-drawer-close:hover,
.pandargah-drawer-close:focus {
	background: #effafa !important;
	color: var(--pg-teal-900) !important;
}
.pandargah-drawer-search {
	position: relative;
	margin-top: 13px;
}
.pandargah-drawer-search input {
	width: 100%;
	height: 44px;
	padding: 8px 40px 8px 44px;
	border: 1px solid #c4dadd;
	border-radius: 11px;
	color: var(--pg-teal-900);
	background: #f9fcfc;
	outline: 0;
	font-size: .72rem;
}
.pandargah-drawer-search input:focus {
	border-color: var(--pg-teal);
	box-shadow: 0 0 0 3px rgba(0, 128, 128, .09);
}
.pandargah-drawer-search > svg {
	position: absolute;
	right: 13px;
	top: 50%;
	color: var(--pg-teal);
	transform: translateY(-50%);
}
.pandargah-drawer-search button {
	position: absolute;
	left: 5px;
	top: 5px;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 9px;
	color: #fff !important;
	background: var(--pg-teal) !important;
	cursor: pointer;
}
.pandargah-drawer-search button:hover,
.pandargah-drawer-search button:focus {
	background: var(--pg-teal-700) !important;
	color: #fff !important;
}
.pandargah-drawer-nav {
	display: grid;
	gap: 4px;
	padding: 8px 0 13px;
}
.pandargah-drawer-nav a,
.pandargah-drawer-products summary {
	min-height: 46px;
	padding: 9px 11px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-radius: 11px;
	color: #496368;
	font-size: .76rem;
	font-weight: 700;
}
.pandargah-drawer-nav a:hover,
.pandargah-drawer-products summary:hover {
	color: var(--pg-teal-700);
	background: #edf9f9;
}
.pandargah-drawer-products summary {
	cursor: pointer;
	list-style: none;
}
.pandargah-drawer-products summary::-webkit-details-marker {
	display: none;
}
.pandargah-drawer-sub {
	display: grid;
	gap: 4px;
	margin: 1px 10px 8px;
	padding: 7px;
	border-inline-start: 2px solid #bfe5e5;
}
.pandargah-drawer-sub a {
	min-height: 39px;
	font-size: .7rem;
}
.pandargah-drawer-cta {
	display: grid;
	gap: 8px;
	margin-top: 12px;
	padding-top: 15px;
	border-top: 1px solid var(--pg-line);
}
.pandargah-drawer-account {
	min-height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 1px solid #bcd8da;
	border-radius: 12px;
	color: var(--pg-teal-700);
	font-size: .74rem;
	font-weight: 800;
}
.pandargah-backdrop {
	position: fixed;
	z-index: 150;
	inset: 0;
	display: none;
	background: rgba(2, 35, 38, .42);
	backdrop-filter: blur(3px);
}
.pandargah-backdrop.pandargah-show {
	display: block;
}

@media (max-width: 1380px) {
	/* آستانهٔ سوییچ به منوی موبایل عمداً از 1180 به 1380 بالا آمد: با اضافه‌شدن لینک «تماس با ما»
	   به ناوبری دسکتاپ، در بازهٔ 1180 تا ~1330px آیتم‌های ناوبری/دکمه «خرید محصولات» جا کم می‌آوردند
	   و متنشان به‌جای یک خط، دو خط می‌شد (دکمه‌ها «دو ردیفه»). حالا این بازهٔ تنگ کلاً به حالت منوی
	   موبایل می‌رود که فضای کافی برای هر آیتم دارد. */
	.pandargah-desktop-nav { display: none; }
	.pandargah-main-inner { min-height: 68px; justify-content: space-between; }
	.pandargah-menu-btn { display: grid; }
	/* سه دکمهٔ هدر موبایل، راست‌چین و کنار هم: منو (راست‌ترین) - ورود - سبد خرید (چپ‌ترین از
	   بین این سه)؛ لوگو با فاصله در سمت چپ می‌ماند. «خرید محصولات» کلاً روی موبایل حذف می‌شود
	   چون تکراری با آیکون سبد خرید بود. */
	.pandargah-actions {
		order: -1;
		margin-inline-start: 0;
	}
	.pandargah-actions .pandargah-search-toggle,
	.pandargah-actions .pandargah-purchase { display: none; }
	.pandargah-actions .pandargah-account { display: flex; }
	.pandargah-actions .pandargah-menu-btn { order: 1; }
	.pandargah-actions .pandargah-account { order: 2; }
	.pandargah-actions .pandargah-cart { order: 3; }
	.pandargah-mega { display: none !important; }
	.pandargah-trust-items .pandargah-trust-item:nth-child(2) { display: none; }
}

@media (max-width: 680px) {
	.pandargah-header-container { width: min(calc(100% - 24px), 1240px); }
	.pandargah-trust-inner { min-height: 30px; }
	.pandargah-trust-items { gap: 0; }
	.pandargah-trust-items .pandargah-trust-item:not(:first-child) { display: none; }
	.pandargah-guide-link { font-size: .62rem; }
	.pandargah-main-inner { gap: 8px; }
	.pandargah-brand-logo { width: 48px; height: 43px; }
	.pandargah-brand-copy span { display: none; }
	.pandargah-actions { gap: 6px; }
	.pandargah-actions .pandargah-account-link.pandargah-account {
		width: 43px;
		padding: 0;
		justify-content: center;
	}
	.pandargah-actions .pandargah-account-link.pandargah-account span { display: none; }
	.pandargah-drawer-cta .pandargah-purchase { width: 100%; padding: 8px 15px; }
	.pandargah-drawer-cta .pandargah-purchase span { display: inline; }
	.pandargah-actions .pandargah-cart { display: grid; }
	.pandargah-search-inner { grid-template-columns: 1fr; }
	.pandargah-search-submit { width: 100%; }
}

@media (max-width: 370px) {
	.pandargah-brand-copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.pandargah-header *,
	.pandargah-mobile-drawer * {
		transition-duration: .01ms !important;
	}
}
