/* ===== قاب اصلی هدر - شناور، سبک، بدون افکت شیشه‌ای مستقیم روی خودش ===== */

.pk-header {
	position: sticky !important;
	top: 16px !important;
	z-index: 999 !important;
	max-width: 1160px !important;
	margin: 0 auto !important;
	border-radius: 24px !important;
	transition: box-shadow 0.3s ease, top 0.3s ease !important;
	box-shadow: 0 10px 40px rgba(23, 70, 162, 0.14), 0 4px 14px rgba(255, 115, 29, 0.08) !important;
}

.pk-header.is-scrolled {
	top: 10px !important;
	box-shadow: 0 16px 48px rgba(16, 45, 99, 0.2), 0 6px 18px rgba(255, 115, 29, 0.12) !important;
}

/* لایه‌ی شیشه‌ای، جدا از پدر اصلی تا پنل موبایل داخلش گیر نکنه */

.pk-header__glass {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.68);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	pointer-events: none;
}

.pk-header__glass::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(23, 70, 162, 0.06) 1px, transparent 1px);
	background-size: 20px 20px;
}

.pk-header__glass::after {
	content: "";
	position: absolute;
	top: -80px;
	right: 8%;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 115, 29, 0.28), transparent 70%);
	filter: blur(20px);
	animation: pk-header-float 9s ease-in-out infinite;
}

.pk-header.is-scrolled .pk-header__glass {
	background: rgba(255, 255, 255, 0.85);
}

@keyframes pk-header-float {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(16px) scale(1.08); }
}

.pk-header__inner {
	position: relative !important;
	z-index: 1 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 28px !important;
	height: 76px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 24px !important;
	transition: height 0.3s ease !important;
}

.pk-header.is-scrolled .pk-header__inner {
	height: 64px !important;
}

/* ===== لوگو ===== */

.pk-header__logo {
	position: relative;
	display: flex;
	align-items: center;
}

.pk-header__logo::after {
	content: "";
	position: absolute;
	bottom: -6px;
	right: 0;
	width: 10px;
	height: 10px;
	background: var(--pk-color-secondary);
	border-radius: 3px;
	transform: rotate(45deg);
}

.pk-header__logo img {
	max-height: 40px;
	width: auto;
	display: block;
}

/* ===== منو ===== */

.pk-header__nav-brand,
.pk-header__nav-deco {
	display: none;
}

.pk-header__menu {
	display: flex !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	align-items: center !important;
	gap: 32px !important;
}

.pk-header__menu li {
	position: relative;
}

.pk-header__menu a {
	display: inline-block;
	position: relative;
	color: var(--pk-color-primary-dark) !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	font-family: var(--pk-font) !important;
	padding: 8px 2px;
	transition: color 0.3s ease;
}

.pk-header__menu a::before {
	content: "";
	position: absolute;
	bottom: 2px;
	left: 50%;
	width: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--pk-color-secondary);
	transition: width 0.3s ease, left 0.3s ease;
}

.pk-header__menu a:hover {
	color: var(--pk-color-secondary) !important;
}

.pk-header__menu a:hover::before {
	width: 70%;
	left: 15%;
}

.pk-header__menu .current-menu-item > a {
	color: var(--pk-color-primary) !important;
}

.pk-header__menu .current-menu-item > a::after {
	content: "";
	position: absolute;
	bottom: -6px;
	left: 50%;
	width: 5px;
	height: 5px;
	background: var(--pk-color-secondary);
	border-radius: 2px;
	transform: translateX(-50%) rotate(45deg);
}

.pk-header__menu .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	min-width: 200px;
	background: var(--pk-color-white);
	border-radius: var(--pk-radius-sm);
	box-shadow: 0 16px 30px rgba(16, 45, 99, 0.15);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
	z-index: 50;
}

.pk-header__menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pk-header__menu .sub-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 6px;
}

.pk-header__menu .sub-menu a::before,
.pk-header__menu .sub-menu a::after {
	display: none;
}

.pk-header__menu .sub-menu a:hover {
	background: var(--pk-color-neutral);
}

/* ===== آیکون‌های سمت کاربر ===== */

.pk-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.header_cart,
.header_dashbord,
.header_likey {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(23, 70, 162, 0.15);
	box-shadow: 0 4px 10px rgba(16, 45, 99, 0.08);
	color: var(--pk-color-primary);
	position: relative;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.header_cart svg,
.header_dashbord svg,
.header_likey svg {
	width: 19px;
	height: 19px;
}

.header_cart:hover,
.header_dashbord:hover,
.header_likey:hover {
	background: var(--pk-color-secondary);
	border-color: var(--pk-color-secondary);
	color: var(--pk-color-white);
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(255, 115, 29, 0.3);
}

.pk-cart-icon__count {
	position: absolute;
	top: -4px;
	left: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--pk-color-secondary);
	color: var(--pk-color-white);
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	border: 2px solid var(--pk-color-white);
}

/* ===== دکمه‌ی همبرگری ===== */

.pk-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(23, 70, 162, 0.15);
	background: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transition: background 0.3s ease, border-color 0.3s ease;
}

.pk-header__toggle-line {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--pk-color-primary);
	transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.pk-header__toggle.is-active {
	background: var(--pk-color-secondary);
	border-color: var(--pk-color-secondary);
}

.pk-header__toggle.is-active .pk-header__toggle-line {
	background: var(--pk-color-white);
}

.pk-header__toggle.is-active .pk-header__toggle-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.pk-header__toggle.is-active .pk-header__toggle-line:nth-child(2) {
	opacity: 0;
}

.pk-header__toggle.is-active .pk-header__toggle-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

body.pk-nav-open {
	overflow: hidden;
}

/* ===== ریسپانسیو ===== */

@media (max-width: 900px) {
	.pk-header {
		top: 10px !important;
		max-width: calc(100% - 20px) !important;
		border-radius: 18px !important;
	}

	.pk-header__glass {
		border-radius: 18px;
	}

	.pk-header__inner,
	.pk-header.is-scrolled .pk-header__inner {
		height: 62px !important;
		padding: 0 16px !important;
	}

	.pk-header__logo {
		order: 2;
	}

	.pk-header__actions {
		order: 3;
	}

	.pk-header__toggle {
		display: flex;
		order: 1;
	}

	.pk-header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: min(320px, 85%);
		height: 100vh;
		background: linear-gradient(160deg, var(--pk-color-primary) 0%, var(--pk-color-primary-dark) 100%);
		box-shadow: -20px 0 40px rgba(0, 0, 0, 0.3);
		padding: 28px;
		overflow-y: auto;
		transition: right 0.4s ease;
		z-index: 998;
	}

	.pk-header__nav-deco {
		display: block;
		position: absolute;
		width: 130px;
		height: auto;
		bottom: -20px;
		left: -20px;
		color: var(--pk-color-secondary);
		opacity: 0.12;
		pointer-events: none;
	}

	.pk-header__nav-brand {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: relative;
		z-index: 1;
		margin-bottom: 32px;
		padding-bottom: 20px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	}

	.pk-header__nav-brand img {
		max-height: 34px;
		width: auto;
		filter: brightness(0) invert(1);
	}

	.pk-header__nav-close {
		width: 36px;
		height: 36px;
		border-radius: 50%;
		border: 1px solid rgba(255, 255, 255, 0.25);
		background: rgba(255, 255, 255, 0.08);
		color: var(--pk-color-white);
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		transition: background 0.3s ease;
	}

	.pk-header__nav-close:hover {
		background: var(--pk-color-secondary);
		border-color: var(--pk-color-secondary);
	}

	.pk-header__nav-close svg {
		width: 16px;
		height: 16px;
	}

	.pk-header__nav.is-open {
		right: 0;
	}

	.pk-header__menu {
		position: relative;
		z-index: 1;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 6px !important;
	}

	.pk-header__menu li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.pk-header__menu a {
		color: var(--pk-color-white) !important;
		padding: 14px 4px;
		font-size: 16px !important;
	}

	.pk-header__menu a::before {
		display: none;
	}

	.pk-header__menu a:hover {
		color: var(--pk-color-secondary) !important;
	}

	.pk-header__menu .current-menu-item > a {
		color: var(--pk-color-secondary) !important;
	}

	.pk-header__menu .current-menu-item > a::after {
		background: var(--pk-color-secondary);
		bottom: 10px;
		right: 0;
		left: auto;
		transform: rotate(45deg);
	}

	.pk-header__menu .sub-menu {
		position: static;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
		padding-inline-start: 16px;
		display: none;
	}

	.pk-header__menu .sub-menu a {
		color: rgba(255, 255, 255, 0.75) !important;
	}

	.pk-header__menu li.pk-submenu-open > .sub-menu {
		display: flex;
	}

	.header_cart,
	.header_dashbord,
	.header_likey,
	.pk-header__toggle {
		width: 38px;
		height: 38px;
	}
}