/*
|--------------------------------------------------------------------------
| RESPONSIVE SITE NAVIGATION
|--------------------------------------------------------------------------
*/

.site-mobile-navigation {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 28px;
	min-width: 0;
}

.site-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	margin-left: auto;
	padding: 10px;
	border: 1px solid var(--color-border);
	border-radius: 11px;
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.site-menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	margin: 3px 0;
	border-radius: 2px;
	background: var(--color-text);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
	.site-header__inner {
		min-height: 68px;
		padding: 0 !important;
		flex-wrap: nowrap !important;
	}

	.site-menu-toggle {
		display: flex !important;
	}

	.site-mobile-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none !important;
		max-height: calc(100vh - 68px);
		padding: 12px 20px 22px;
		overflow-y: auto;
		background: #ffffff;
		border-top: 1px solid var(--color-border);
		border-bottom: 1px solid var(--color-border);
		box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
	}

	.site-header--menu-open .site-mobile-navigation {
		display: block !important;
	}

	.site-header--menu-open .site-menu-toggle span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	.site-header--menu-open .site-menu-toggle span:nth-child(2) {
		opacity: 0;
	}

	.site-header--menu-open .site-menu-toggle span:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	.site-nav {
		display: grid !important;
		width: 100%;
		order: initial !important;
		gap: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
	}

	.site-nav a {
		padding: 14px 4px !important;
		font-size: 16px !important;
		white-space: normal !important;
		border-bottom: 1px solid #edf2f7;
	}

	.site-nav a::after {
		display: none;
	}

	.site-header__account {
		display: grid !important;
		width: 100%;
		gap: 10px;
		margin: 16px 0 0 !important;
	}

	.header-login,
	.header-register,
	.account-menu__button {
		display: flex;
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.account-menu {
		width: 100%;
	}

	.account-menu__dropdown {
		position: static;
		width: 100%;
		margin-top: 8px;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
	}

	body.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 480px) {
	.site-header .container {
		width: calc(100% - 28px);
	}

	.site-logo {
		font-size: 21px;
	}
}


/*
|--------------------------------------------------------------------------
| WORDPRESS MENU LIST RESET
|--------------------------------------------------------------------------
*/

.site-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav > .menu-item {
	margin: 0;
	padding: 0;
}

/*
|--------------------------------------------------------------------------
| COMPACT MOBILE NAVIGATION
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
	.site-mobile-navigation {
		padding: 10px 14px 18px;
	}

	.site-mobile-navigation > nav {
		width: 100%;
	}

	.site-nav {
		gap: 4px !important;
	}

	.site-nav a {
		display: flex !important;
		align-items: center;
		width: 100%;
		min-height: 46px;
		padding: 10px 12px !important;
		border: 0;
		border-radius: 10px;
		font-size: 16px !important;
		font-weight: 650;
		line-height: 1.25;
	}

	.site-nav a:hover,
	.site-nav .current-menu-item > a {
		background: #eff6ff;
		color: var(--color-primary);
	}

	.site-header__account {
		gap: 0;
		margin-top: 10px !important;
		padding-top: 10px;
		border-top: 1px solid #e2e8f0;
	}

	.account-menu__button {
		justify-content: space-between;
		min-height: 46px;
		padding: 10px 12px;
		border: 1px solid #bfdbfe;
		border-radius: 10px;
		background: #eff6ff;
		color: var(--color-primary);
	}

	.account-menu__button::after {
		margin-left: auto;
		font-size: 18px;
	}

	.account-menu__dropdown {
		display: grid;
		gap: 2px;
		margin-top: 4px;
		padding: 4px 0 0;
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.account-menu__dropdown a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 9px 12px 9px 18px;
		border-radius: 9px;
		font-size: 15px;
		font-weight: 600;
	}

	.account-menu__dropdown a:hover {
		background: #f1f5f9;
	}

	body.site-mobile-menu-open {
		overflow: hidden;
	}
}
