/**
 * Header & Navigation Styles
 * Includes: header, logo, navigation menu, burger, mobile menu, currency dropdown
 */

/* ==========================================================================
   Header Base
   ========================================================================== */

.header {
	background: transparent;
	position: relative;
	z-index: 1;
	box-shadow: 0px 1px 3px 0px #00000040;
}

.header-top {
	background: #BCA469;
}

.header-top-inner {
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
	color: #fff;
	padding: 8px 0;
}

.header-top-phone {
	color: #000000;
	border: 1px solid #929292;
	border-radius: 7px;
	background: #FED513;
	position: relative;
	padding: 11px 11px 11px 36px;
	font-size: 14px;
	line-height: 1;
	margin-left: 69px;
	display: inline-block;
}

.header-top-phone::before {
	content: "";
	position: absolute;
	height: 20px;
	width: 20px;
	background: url("../../img/icons/whatsapp.svg") no-repeat;
	background-size: contain;
	top: 50%;
	left: 11px;
	transform: translateY(-50%);
}

.header-body {
	padding: 10px 0;
}

.header-search {
	margin-left: 24px;
}

.header-search-btn {
	display: block;
	height: 16px;
	width: 16px;
	background: url("../../img/icons/search.svg") no-repeat;
	background-size: contain;
	opacity: .75;
}

/* ==========================================================================
   Logo
   ========================================================================== */

header .logo_container {
	width: auto;
	height: 100%;
	margin-right: 86px;
}

.logo {
	width: 31px;
}

.logo-link {
	display: flex;
	align-items: center;
}

.logo-img {
	max-width: 31px;
}

.logo-info {
	display: flex;
	flex-direction: column;
}

.logo span {
	color: #fff;
}

.logo-title {
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
	text-align: left;
	color: #FFFFFF;
}

.logo-subtitle {
	font-size: 12px;
	font-weight: 400;
	line-height: 10px;
	text-align: left;
	color: #FFFFFF;
	text-transform: initial;
}

/* ==========================================================================
   Navigation Menu
   ========================================================================== */

header nav.site {
	width: auto;
}

nav.site ul {
	flex-wrap: wrap;
}

nav.site ul li {
	padding: 0;
}

nav.site ul li:not(:last-child) {
	margin-right: 23px;
}

.menu-item a {
	color: #000;
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
}

/* Dropdown menu styles */
nav.site .menu-item {
	position: relative;
}

nav.site .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 5px;
	margin-left: 6px;
	background: url("../../img/icons/drop.svg") no-repeat center;
	background-size: contain;
	vertical-align: middle;
	transition: transform 0.2s ease;
}

nav.site .menu-item-has-children:hover > a::after {
	transform: rotate(180deg);
}

nav.site .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 180px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	padding: 8px 0;
	z-index: 1000;
	list-style: none;
	margin: 0;
}

nav.site .menu-item-has-children:hover > .sub-menu {
	display: block;
}

nav.site .sub-menu li {
	padding: 0;
	margin: 0;
}

nav.site .sub-menu li:not(:last-child) {
	margin-right: 0;
}

nav.site .sub-menu a {
	display: block;
	padding: 10px 16px;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

nav.site .sub-menu a:hover {
	background-color: #f5f5f5;
}

/* Nested Submenu - Flyout Right */
nav.site .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	margin-left: 0;
}

/* Arrow indicator for nested parent items */
nav.site .sub-menu .menu-item-has-children > a {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

nav.site .sub-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 12px;
	background: url("../../img/icons/drop.svg") no-repeat center;
	background-size: contain;
	transform: rotate(-90deg);
}

nav.site.active {
	display: block;
}

/* ==========================================================================
   Currency Dropdown
   ========================================================================== */

.currency {
	display: flex;
	align-items: center;
	padding: 9px 12px 9px 0;
	position: relative;
}

.currency::before {
	content: "";
	position: absolute;
	width: 10px;
	height: 6px;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	background: url("../../img/icons/drop.svg") no-repeat;
	background-size: contain;
}

.currency-title {
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
}

.currency-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: #fff;
	width: max-content;
	box-shadow: 4px 4px 10px 0px #00000040;
	border-radius: 7px;
	padding: 12px 28px;
	opacity: 0;
	visibility: hidden;
}

.currency-list-link {
	display: flex;
	align-items: center;
}

.currency-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 19px;
	color: var(--accent);
	margin-right: 14px;
	width: 30px;
}

.currency-desc {
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	width: calc(100% - 44px);
}

/* ==========================================================================
   Burger Menu
   ========================================================================== */

.burger {
	display: none;
	position: relative;
	cursor: pointer;
	width: 26px;
	height: 26px;
}

.burger::after,
.burger::before {
	content: '';
}

.burger::before {
	top: 5px;
}

.burger::after {
	top: calc(100% - 5px);
	transform: translateY(-100%);
}

.burger span,
.burger::after,
.burger::before {
	position: absolute;
	width: 100%;
	height: 2px;
	left: 0;
	background-color: #000;
	border-radius: 2px;
}

.burger span {
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.burger.active {
	content: none;
}

.burger.active span {
	display: none;
}

.burger.active::before {
	transform: rotate(45deg) translateY(-50%);
	top: 50%;
	left: -1px;
}

.burger.active::after {
	transform: rotate(-45deg) translateY(-50%);
	top: 50%;
	left: 1px;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mbl-menu {
	display: none;
	position: absolute;
	right: -100%;
	top: 48px;
	z-index: 3;
	height: calc(100vh - 48px);
	width: 100%;
	border-top: 1px solid #d6d6d6;
}

.mbl-menu::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	background: rgba(36, 36, 36, 0.7);
}

.mbl-menu.active {
	display: block;
	right: 0;
}

.mbl-menu-wrapper {
	padding: 42px 24px 53px;
	background: #fff;
	width: 74%;
	z-index: 1;
	position: relative;
	height: 100%;
	margin-left: auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	overflow-y: auto;
}

.mbl-menu ul {
	list-style: none;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
	header .logo_container {
		width: auto;
	}

	nav.site ul li:not(:last-child) {
		margin-right: 20px;
	}
}

@media (max-width: 991px) {
	.footer-phone .header-top-phone {
		margin: 0;
		margin-bottom: 53px;
	}
}

@media (max-width: 900px) {
	.header-body {
		padding: 4px 0;
	}

	.header-top-phone {
		margin-left: 20px;
	}

	header .container {
		flex-direction: row;
	}

	header .logo_container {
		height: auto;
	}

	header nav.site {
		display: none;
	}

	nav.site ul {
		align-items: flex-end;
	}

	nav.site ul li:not(:last-child) {
		margin-right: 0;
		margin-bottom: 10px;
	}

	.burger {
		display: block;
		margin-left: 20px;
	}

	.mbl-menu .menu-item {
		text-align: right;
	}

	.mbl-menu .menu-item:not(:last-child) {
		margin-bottom: 12px;
	}

	.mbl-menu .currency {
		justify-content: flex-end;
	}

	.mbl-menu .currency-title {
		font-size: 16px;
		font-weight: 700;
		line-height: 22px;
		color: rgba(4, 23, 147, 1);
	}

	.currency-dropdown.active {
		opacity: 1;
		visibility: visible;
		box-shadow: none;
		padding: 12px 0;
	}

	.mbl-menu .currency-list-link {
		flex-direction: row-reverse;
	}

	.mbl-menu .currency-name {
		margin-right: 0;
		margin-left: 14px;
		text-align: right;
	}

	.mbl-menu .currency-desc {
		width: auto;
	}

	/* Mobile Accordion */
	.mbl-menu .sub-menu {
		display: none;
		padding-left: 16px;
		margin-top: 8px;
	}

	.mbl-menu .menu-item-has-children.is-expanded > .sub-menu {
		display: block;
	}

	.mbl-menu .menu-item-has-children > a::after {
		content: "";
		display: inline-block;
		width: 10px;
		height: 6px;
		margin-left: 8px;
		background: url("../../img/icons/drop.svg") no-repeat center;
		background-size: contain;
		transition: transform 0.3s ease;
	}

	.mbl-menu .menu-item-has-children.is-expanded > a::after {
		transform: rotate(180deg);
	}

	.mbl-menu .sub-menu .menu-item:not(:last-child) {
		margin-bottom: 8px;
	}

	.mbl-menu-wrapper {
		padding-bottom: 100px;
	}
}

@media (max-width: 400px) {
	.currency {
		display: none;
	}

	.header .header-top-phone {
		display: none;
	}
}

@media (max-width: 375px) {
	.header-search {
		margin-left: 20px;
	}
}

@media (hover: hover) {
	.menu-item a:hover {
		color: var(--accent);
	}

	.header-top-phone:hover {
		color: #000000;
	}

	.currency:hover .currency-dropdown {
		opacity: 1;
		visibility: visible;
	}

	.currency-list-link:hover {
		color: var(--accent);
	}
}
