.nf-site-header {
	--nf-accent: var(--global-color-8, #0284c7);
	--nf-accent-hover: color-mix(in srgb, var(--nf-accent) 85%, #000000);
	--nf-header-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--nf-header-cursive: 'Kaushan Script', cursive;
	position: relative;
	z-index: 600;
	width: calc(100% - 2rem);
	max-width: 1160px;
	margin: 1rem auto 0.75rem auto;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1.5px solid rgba(148, 163, 184, 0.28);
	border-radius: 9999px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	font-family: var(--nf-header-font);
	box-sizing: border-box;
	transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.nf-site-header *,
.nf-site-header *::before,
.nf-site-header *::after {
	box-sizing: border-box;
}

.nf-header-container {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.15rem;
	padding: 0.62rem 1.5rem;
	max-width: 100%;
}

.nf-header-left {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
}

.nf-header-center {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.nf-header-nav-menu {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nf-header-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	min-width: 0;
}

.nf-brand-logo {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	text-decoration: none !important;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.1;
	flex-shrink: 0;
	white-space: nowrap;
	margin-right: 0.75rem;
}

.nf-logo-bold {
	color: #0f172a;
	font-weight: 900;
	letter-spacing: -0.5px;
}

.nf-logo-cursive-wrap {
	position: relative;
	display: inline-flex;
	align-items: baseline;
}

.nf-logo-cursive {
	font-family: var(--nf-header-cursive);
	color: var(--nf-accent);
	font-weight: 400;
	margin-left: 1px;
	filter: drop-shadow(0 0 8px color-mix(in srgb, var(--nf-accent) 30%, transparent));
}

.nf-logo-tld-tag {
	position: absolute;
	top: -8px;
	right: -15px;
	font-family: var(--nf-header-font);
	font-size: 0.56rem;
	font-weight: 800;
	text-transform: lowercase;
	letter-spacing: 0.35px;
	padding: 1px 5px;
	border-radius: 5px;
	background: var(--nf-accent);
	color: #ffffff;
	line-height: 1.15;
	box-shadow: 0 2px 6px color-mix(in srgb, var(--nf-accent) 35%, transparent);
	pointer-events: none;
	transform: rotate(-3deg);
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.nf-brand-logo:hover .nf-logo-tld-tag {
	transform: rotate(0deg) scale(1.1);
	box-shadow: 0 4px 10px color-mix(in srgb, var(--nf-accent) 45%, transparent);
}

.nf-header-nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	height: 38px;
	padding: 0 0.5rem;
	border-radius: 8px;
	background: transparent;
	border: none;
	color: #334155;
	text-decoration: none !important;
	font-family: var(--nf-header-font);
	font-size: 0.93rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	vertical-align: middle;
	cursor: pointer;
	transition: all 0.18s ease;
}

.nf-header-nav-link:hover,
.nf-header-nav-link.is-active,
.nf-header-nav-dropdown-wrap.open .nf-header-nav-link {
	background: color-mix(in srgb, var(--nf-accent) 10%, transparent);
	color: var(--nf-accent);
	transform: translateY(-1px);
}

.nf-header-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--nf-accent);
	line-height: 1;
	flex-shrink: 0;
}

.nf-header-nav-icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

.nf-header-nav-label {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.nf-header-nav-dropdown-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.nf-dropdown-chevron-icon {
	display: inline-flex;
	align-items: center;
	transition: transform 0.22s ease;
	margin-left: 1px;
	color: #64748b;
}

.nf-header-nav-dropdown-wrap:hover .nf-dropdown-chevron-icon,
.nf-header-nav-dropdown-wrap.open .nf-dropdown-chevron-icon {
	transform: rotate(180deg);
	color: var(--nf-accent);
}

.nf-header-nav-dropdown-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 210px;
	background: #ffffff;
	border: 1.5px solid rgba(148, 163, 184, 0.32);
	border-radius: 14px;
	padding: 0.4rem;
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14), 0 4px 10px rgba(15, 23, 42, 0.06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1005;
}

.nf-header-nav-dropdown-wrap:hover .nf-header-nav-dropdown-menu,
.nf-header-nav-dropdown-wrap:focus-within .nf-header-nav-dropdown-menu,
.nf-header-nav-dropdown-wrap.open .nf-header-nav-dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nf-header-dropdown-menu-item {
	display: block;
	padding: 0.55rem 0.85rem;
	border-radius: 8px;
	text-decoration: none !important;
	font-family: var(--nf-header-font);
	font-size: 0.88rem;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	transition: all 0.15s ease;
}

.nf-header-dropdown-menu-item:hover,
.nf-header-dropdown-menu-item.is-active {
	background: color-mix(in srgb, var(--nf-accent) 10%, #f8fafc);
	color: var(--nf-accent);
}

.nf-header-round-fav-btn {
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid rgba(148, 163, 184, 0.32);
	box-shadow: 0 2px 6px rgba(148, 163, 184, 0.2), inset 0 1px 2px #ffffff, inset 0 -1px 2px rgba(163, 177, 198, 0.2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ed1b24;
	text-decoration: none !important;
	flex-shrink: 0;
	transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	cursor: pointer;
}

.nf-header-round-fav-btn:hover {
	border-color: #ef4444;
	color: #ef4444;
	box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
	transform: translateY(-1px);
}

.nf-header-round-fav-btn .nf-fav-heart-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ed1b24;
	line-height: 1;
}

.nf-header-round-fav-btn .nf-fav-heart-icon svg {
	width: 18px;
	height: 18px;
}

.nf-fav-count-badge {
	background: var(--nf-accent);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 800;
	padding: 0.12rem 0.55rem;
	border-radius: 9999px;
	line-height: 1.2;
}

.nf-header-round-fav-btn .nf-fav-count-badge {
	position: absolute;
	top: -3px;
	right: -3px;
	width: 18px;
	height: 18px;
	min-width: 18px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 800;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: var(--nf-accent);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 18px;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
	pointer-events: none;
}

.nf-header-round-fav-btn .nf-fav-count-badge.badge-wide {
	width: auto;
	min-width: 22px;
	padding: 0 5px;
	border-radius: 999px;
}

.nf-header-round-fav-btn .nf-fav-count-badge.is-empty,
.nf-mobile-fav-count.is-empty {
	display: none;
}

.nf-mobile-burger-wrap {
	display: none;
	position: relative;
}

.nf-mobile-burger-btn {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #ffffff;
	border: 1px solid rgba(148, 163, 184, 0.32);
	color: #0f172a;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(148, 163, 184, 0.2), inset 0 1px 2px #ffffff, inset 0 -1px 2px rgba(163, 177, 198, 0.2);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
	flex-shrink: 0;
	transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nf-mobile-burger-btn:hover {
	border-color: var(--nf-accent);
	transform: translateY(-1px);
}

.nf-mobile-burger-btn .nf-burger-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: #0f172a;
	border-radius: 2px;
	transition: all 0.22s ease;
}

.nf-mobile-burger-btn:hover .nf-burger-bar {
	background: var(--nf-accent);
}

.nf-mobile-burger-btn.active {
	border-color: var(--nf-accent);
	background: color-mix(in srgb, var(--nf-accent) 12%, #ffffff);
}

.nf-mobile-burger-btn.active .nf-burger-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nf-mobile-burger-btn.active .nf-burger-bar:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.nf-mobile-burger-btn.active .nf-burger-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.nf-mobile-nav-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 290px;
	max-width: calc(100vw - 2rem);
	max-height: min(480px, calc(100vh - 85px));
	background: #ffffff;
	border: 1.5px solid rgba(148, 163, 184, 0.32);
	border-radius: 18px;
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16), 0 4px 10px rgba(15, 23, 42, 0.06);
	padding: 0.65rem 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	opacity: 0;
	transform: translateY(-8px) scale(0.96);
	pointer-events: none;
	transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 1005;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--nf-accent) 45%, transparent) transparent;
}

.nf-mobile-nav-dropdown::-webkit-scrollbar {
	width: 5px;
}

.nf-mobile-nav-dropdown::-webkit-scrollbar-track {
	background: transparent;
	margin: 6px 0;
}

.nf-mobile-nav-dropdown::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--nf-accent) 45%, transparent);
	border-radius: 999px;
}

.nf-mobile-nav-dropdown::-webkit-scrollbar-thumb:hover {
	background: var(--nf-accent);
}

.nf-mobile-nav-dropdown.active {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.nf-mobile-dropdown-divider {
	height: 1px;
	background: rgba(148, 163, 184, 0.22);
	margin: 0.2rem 0.5rem;
}

.nf-mobile-accordion-wrap {
	width: 100%;
}

.nf-mobile-dropdown-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.68rem 0.9rem;
	border-radius: 10px;
	color: #0f172a;
	text-decoration: none !important;
	font-family: var(--nf-header-font);
	font-size: 0.88rem;
	font-weight: 700;
	background: transparent;
	border: none;
	width: 100%;
	text-align: left;
	cursor: pointer;
	transition: all 0.15s ease;
}

.nf-mobile-dropdown-item:hover,
.nf-mobile-dropdown-item.is-active {
	background: color-mix(in srgb, var(--nf-accent) 10%, #f8fafc);
	color: var(--nf-accent);
	transform: translateX(3px);
}

.nf-dropdown-item-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	flex-shrink: 0;
	color: var(--nf-accent);
}

.nf-dropdown-item-icon--fav {
	color: #ed1b24;
}

.nf-mobile-accordion-chevron {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	transition: transform 0.25s ease;
}

.nf-mobile-accordion-trigger.expanded .nf-mobile-accordion-chevron {
	transform: rotate(180deg);
	color: var(--nf-accent);
}

.nf-mobile-accordion-content {
	display: none;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.3rem 0 0.4rem 1.4rem;
	border-left: 2px solid color-mix(in srgb, var(--nf-accent) 30%, transparent);
	margin-left: 1.2rem;
	margin-top: 0.15rem;
	margin-bottom: 0.35rem;
}

.nf-mobile-accordion-content.is-open {
	display: flex;
}

.nf-mobile-sub-item {
	display: block;
	padding: 0.45rem 0.75rem;
	border-radius: 8px;
	color: #475569;
	text-decoration: none !important;
	font-size: 0.85rem;
	font-weight: 500;
	transition: all 0.15s ease;
}

.nf-mobile-sub-item:hover,
.nf-mobile-sub-item.is-active {
	color: var(--nf-accent);
	background: color-mix(in srgb, var(--nf-accent) 10%, transparent);
	transform: translateX(3px);
}

.nf-mobile-fav-count {
	margin-left: auto;
}

@media (max-width: 1180px) {
	.nf-header-nav-menu {
		gap: 3px;
	}

	.nf-header-nav-link {
		font-size: 0.88rem;
		padding: 0 0.38rem;
		gap: 0.28rem;
	}
}

@media (max-width: 1080px) {
	.nf-site-header {
		width: calc(100% - 1.25rem);
		margin: 0.65rem auto 0.5rem auto;
		border-radius: 18px;
	}

	.nf-header-container {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0.55rem 0.85rem;
		gap: 0.75rem;
	}

	.nf-header-center {
		display: none;
	}

	.nf-mobile-burger-wrap {
		display: block;
	}

	.nf-brand-logo {
		font-size: 1.35rem;
		margin-right: 0.65rem;
	}

	.nf-logo-tld-tag {
		font-size: 0.52rem;
		top: -6px;
		right: -13px;
		padding: 0.5px 4px;
	}

	.nf-header-round-fav-btn,
	.nf-mobile-burger-btn {
		width: 38px;
		height: 38px;
	}
}

@media (max-width: 640px) {
	.nf-site-header {
		width: calc(100% - 1rem);
		margin: 0.5rem auto;
		border-radius: 16px;
	}

	.nf-header-container {
		padding: 0.5rem 0.75rem;
	}

	.nf-brand-logo {
		font-size: 1.2rem;
	}

	.nf-header-round-fav-btn,
	.nf-mobile-burger-btn {
		width: 36px;
		height: 36px;
	}
}
