/*
 * BeerHabits header.css
 *
 * Владелец: шапка сайта, desktop-навигация, header controls,
 * языковой dropdown и безопасная визуальная стабилизация mobile header/drawer.
 * JS/PHP-логика меню, языка, поиска и корзины остаётся в своих владельцах.
 */

.bh-nav-icon img,
.bh-nav-icon svg,
.bh-header-action__icon img,
.bh-account-link__svg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 640px) {
	body.admin-bar.bh-home #masthead {
		top: 46px !important;
	}

	body.admin-bar.bh-home #inner-wrap {
		margin-top: 46px !important;
	}
}

/* Общая оболочка Kadence header. */
#masthead,
.site-header {
	position: sticky;
	top: 0;
	z-index: var(--bh-z-header);
	padding: 0;
	border-bottom: 1px solid rgba(95, 205, 255, 0.10);
	background:
		radial-gradient(circle at 18% 0%, rgba(95, 205, 255, 0.12), transparent 30%),
		radial-gradient(circle at 82% 4%, rgba(214, 166, 71, 0.10), transparent 28%),
		linear-gradient(180deg, rgba(2, 9, 16, 0.99), rgba(5, 22, 36, 0.97));
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

body.admin-bar #masthead {
	top: 32px;
}

#main-header {
	position: relative;
	isolation: isolate;
	overflow: visible;
	background: transparent;
}

#main-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(2, 9, 16, 0.18), transparent 52%, rgba(2, 9, 16, 0.16));
	opacity: 1;
}

#main-header::after {
	content: "";
	position: absolute;
	right: clamp(var(--bh-space-5), 4vw, var(--bh-space-14));
	bottom: 0;
	left: clamp(var(--bh-space-5), 4vw, var(--bh-space-14));
	z-index: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(95, 205, 255, 0.32), rgba(214, 166, 71, 0.26), transparent);
}

.bh-header--scrolled.site-header {
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

#main-header .site-header-row-container-inner,
#main-header .site-container,
#main-header .site-main-header-wrap {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

#main-header .site-main-header-inner-wrap.site-header-row-has-sides {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	width: 100%;
	max-width: none;
	min-height: 84px;
	padding-inline: clamp(24px, 4vw, 64px);
	gap: clamp(24px, 3vw, 48px);
	box-sizing: border-box;
}

#main-header .site-header-main-section-left {
	position: relative;
	z-index: 4;
	grid-column: 1;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: auto;
	min-width: 0;
}

#main-header .site-header-main-section-right {
	position: relative;
	z-index: 5;
	grid-column: 2;
	grid-row: 1;
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
}

#main-header .site-header-main-section-right .site-header-item-main-navigation,
#main-header .main-navigation,
#main-header .primary-menu-container,
#main-header .header-menu-container,
#main-header #primary-menu {
	width: 100%;
	min-width: 0;
}

#masthead .site-title,
#masthead .mobile-site-branding .site-title {
	display: none;
}

.site-branding .custom-logo-link,
.mobile-site-branding .custom-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

#main-header .site-branding .custom-logo,
.site-branding .custom-logo {
	display: block;
	height: clamp(88px, 6.5vw, 108px);
	width: clamp(88px, 6.5vw, 108px);
	max-width: none;
	max-height: none;
	object-fit: contain;
	filter:
		drop-shadow(0 16px 28px rgba(0, 0, 0, 0.34))
		drop-shadow(0 0 18px rgba(95, 205, 255, 0.13));
	transform: none;
	transition: filter 0.22s ease;
}

.site-branding .brand:hover .custom-logo,
.site-branding .custom-logo-link:hover .custom-logo {
	filter:
		drop-shadow(0 18px 30px rgba(0, 0, 0, 0.38))
		drop-shadow(0 0 22px rgba(214, 166, 71, 0.20));
	transform: none;
}

/* Desktop navigation. */
#main-header .main-navigation .menu {
	display: flex;
	align-items: center;
	width: 100%;
	gap: clamp(12px, 1.15vw, 20px);
	margin: 0;
	padding: 0;
	list-style: none;
}

#main-header #primary-menu {
	pointer-events: none;
}

#main-header #primary-menu > li {
	pointer-events: auto;
}

#main-header .main-navigation .menu > li {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

#main-header .main-navigation .menu > li > a,
#main-header .bh-menu-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: rgba(244, 239, 228, 0.82);
	font-family: var(--bh-font-body);
	font-size: clamp(0.76rem, 0.68vw, 0.86rem);
	font-weight: 850;
	letter-spacing: 0.035em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color 0.22s ease, text-shadow 0.22s ease, transform 0.22s ease;
}

#main-header .main-navigation .menu > li > a::before {
	display: none;
}

#main-header .main-navigation .menu > li > a::after,
#main-header .bh-menu-link::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 1px;
	left: 0;
	height: 2px;
	border-radius: 999px;
	background-color: var(--bh-accent-strong);
	background-image: linear-gradient(90deg, rgba(95, 205, 255, 0), var(--bh-accent-strong), rgba(95, 205, 255, 0));
	box-shadow: 0 0 16px rgba(95, 205, 255, 0.32);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

#main-header .main-navigation .menu > li > a:hover,
#main-header .main-navigation .menu > li > a:focus-visible,
#main-header .bh-menu-link:hover,
#main-header .bh-menu-link:focus-visible {
	color: var(--bh-accent-strong);
	text-shadow: 0 0 18px rgba(95, 205, 255, 0.24);
}

#main-header .main-navigation .menu > li > a:hover::after,
#main-header .main-navigation .menu > li > a:focus-visible::after,
#main-header .bh-menu-link:hover::after,
#main-header .bh-menu-link:focus-visible::after {
	transform: scaleX(1);
	background-color: var(--bh-accent-strong);
	background-image: linear-gradient(90deg, rgba(95, 205, 255, 0), var(--bh-accent-strong), rgba(95, 205, 255, 0));
	box-shadow: 0 0 18px rgba(95, 205, 255, 0.42);
}

#main-header .main-navigation .menu > li.current-menu-item > a,
#main-header .main-navigation .menu > li.current_page_item > a,
#main-header .main-navigation .menu > li.current-menu-ancestor > a,
#main-header .main-navigation .menu > li.current-menu-parent > a,
body.home #main-header .main-navigation .menu > li.menu-item-home > a {
	color: var(--bh-amber);
	text-shadow: 0 0 18px rgba(214, 166, 71, 0.28);
}

#main-header .main-navigation .menu > li.current-menu-item > a::after,
#main-header .main-navigation .menu > li.current_page_item > a::after,
#main-header .main-navigation .menu > li.current-menu-ancestor > a::after,
#main-header .main-navigation .menu > li.current-menu-parent > a::after,
body.home #main-header .main-navigation .menu > li.menu-item-home > a::after {
	transform: scaleX(1);
	background-color: var(--bh-amber);
	background-image: linear-gradient(90deg, rgba(244, 210, 122, 0), var(--bh-amber), rgba(244, 210, 122, 0));
	box-shadow: 0 0 18px rgba(244, 210, 122, 0.52);
}

#main-header .menu-item--cta > a {
	color: rgba(244, 210, 122, 0.92);
}

#main-header .menu-item--cta > a:hover,
#main-header .menu-item--cta > a:focus-visible {
	color: var(--bh-amber);
}

#main-header .bh-menu-search {
	margin-left: auto;
	transition: transform 0.18s ease;
}

#main-header .bh-menu-account,
#main-header .bh-menu-cart,
#main-header .menu-item-language {
	margin-left: 0;
}

#main-header .bh-nav-icon--menu {
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
	overflow: hidden;
	opacity: 0.88;
	filter: none;
}

#main-header .bh-nav-icon--menu img,
#main-header .bh-nav-icon--menu svg {
	display: block;
	width: 100%;
	height: 100%;
	transform: none;
}

/* Header controls. */
#main-header .bh-dropdown-toggle,
#main-header .bh-language-toggle,
#main-header .bh-account-link,
#main-header .bh-cart__trigger,
#main-header .bh-header-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: rgba(244, 239, 228, 0.84);
	text-decoration: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

#main-header .bh-dropdown-toggle:hover,
#main-header .bh-dropdown-toggle:focus-visible,
#main-header .bh-language-toggle:hover,
#main-header .bh-language-toggle:focus-visible,
#main-header .bh-language-toggle[aria-expanded="true"],
#main-header .bh-account-link:hover,
#main-header .bh-account-link:focus-visible,
#main-header .bh-cart__trigger:hover,
#main-header .bh-cart__trigger:focus-visible,
#main-header .bh-header-search:hover,
#main-header .bh-header-search:focus-within {
	color: var(--bh-accent-strong);
	background: transparent;
	box-shadow: none;
	text-shadow: 0 0 18px rgba(95, 205, 255, 0.32);
}

#main-header .bh-header-search,
#main-header .bh-account-link,
#main-header .bh-cart__trigger {
	width: 44px;
	max-width: 44px;
	overflow: hidden;
	padding: 0;
}

#main-header .bh-header-search {
	position: relative;
	gap: var(--bh-space-2);
	overflow: visible;
	isolation: isolate;
}

#main-header .bh-header-search:hover,
#main-header .bh-header-search:focus-within {
	width: 44px;
	max-width: 44px;
	justify-content: center;
}

.bh-header-action__icon,
#main-header .bh-cart__icon svg,
#main-header .bh-language-toggle__current svg {
	position: relative;
	z-index: 4;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	pointer-events: none;
}

#main-header .bh-header-action__icon,
#main-header .bh-cart__icon svg {
	width: 28px;
	height: 28px;
	flex-basis: 28px;
}

#main-header .bh-language-toggle__current svg {
	width: 24px;
	height: 24px;
	flex-basis: 24px;
}

#main-header .bh-header-search__input {
	position: absolute;
	top: 50%;
	right: 0;
	z-index: 2;
	width: 0;
	height: 46px;
	max-width: none;
	min-width: 0;
	padding: 0 52px 0 16px;
	border: 1px solid rgba(95, 205, 255, 0.18);
	border-radius: 999px;
	outline: 0;
	background: linear-gradient(180deg, rgba(4, 16, 27, 0.98), rgba(2, 9, 16, 0.98));
	box-shadow:
		0 18px 42px rgba(0, 0, 0, 0.34),
		0 0 24px rgba(95, 205, 255, 0.10);
	color: var(--bh-text-strong);
	font-size: var(--bh-text-sm);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%) scaleX(0.92);
	transform-origin: right center;
	transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#main-header .bh-header-search:hover .bh-header-search__input,
#main-header .bh-header-search:focus-within .bh-header-search__input {
	width: clamp(220px, 16vw, 250px);
	max-width: none;
	opacity: 1;
	pointer-events: auto;
	transform: translateY(-50%) scaleX(1);
}

#main-header .bh-header-search__input::placeholder {
	color: rgba(255, 255, 255, 0.46);
}

#main-header .bh-header-search__input::-webkit-search-decoration,
#main-header .bh-header-search__input::-webkit-search-cancel-button,
#main-header .bh-header-search__input::-webkit-search-results-button,
#main-header .bh-header-search__input::-webkit-search-results-decoration {
	-webkit-appearance: none;
}

#main-header .bh-header-search__submit {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	z-index: 3;
	width: 44px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: transparent;
	cursor: pointer;
}

#main-header .bh-header-search:focus-within .bh-header-search__submit,
#main-header .bh-header-search:hover .bh-header-search__submit {
	left: auto;
	width: 44px;
}

#main-header .bh-menu-account {
	position: relative;
}

#main-header .bh-account-link {
	gap: var(--bh-space-2);
	overflow: visible;
	white-space: nowrap;
}

#main-header .bh-account-link:hover,
#main-header .bh-account-link:focus-visible,
#main-header .bh-menu-account:hover .bh-account-link,
#main-header .bh-menu-account:focus-within .bh-account-link {
	width: 44px;
	max-width: 44px;
	justify-content: center;
}

.bh-account-link__icon {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: transparent;
	color: var(--bh-amber);
	flex: 0 0 22px;
	box-shadow: none;
}

.bh-account-link__text {
	display: none;
}

#main-header .bh-account-link__icon {
	width: 28px;
	height: 28px;
	flex-basis: 28px;
}

#main-header .bh-account-link__text {
	position: absolute;
	top: 50%;
	right: calc(100% + 8px);
	left: auto;
	z-index: var(--bh-z-dropdown);
	display: grid;
	gap: 2px;
	min-width: max-content;
	padding: 5px 8px;
	border: 1px solid rgba(95, 205, 255, 0.11);
	border-radius: 4px;
	background: rgba(3, 15, 27, 0.90);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(6px, -50%);
	transition: opacity 0.26s ease, visibility 0.26s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	text-align: left;
	text-transform: none;
}

#main-header .bh-account-link__text::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -5px;
	width: 8px;
	height: 8px;
	border-top: 1px solid rgba(95, 205, 255, 0.16);
	border-right: 1px solid rgba(95, 205, 255, 0.16);
	background: rgba(3, 15, 27, 0.96);
	transform: translateY(-50%) rotate(45deg);
}

#main-header .bh-menu-account:hover .bh-account-link__text,
#main-header .bh-menu-account:focus-within .bh-account-link__text {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%);
}

#main-header #primary-menu:has(.bh-menu-account:hover) .bh-menu-search,
#main-header #primary-menu:has(.bh-menu-account:focus-within) .bh-menu-search {
	transform: translateX(-102px);
}

.bh-account-link__label {
	color: var(--bh-text-strong);
	font-size: var(--bh-text-xs);
	font-weight: 900;
	line-height: 1.1;
	text-transform: none;
}

.bh-account-link__sub {
	color: rgba(244, 239, 228, 0.54);
	font-size: 0.66rem;
	font-weight: 750;
	line-height: 1.1;
	text-transform: none;
}

#main-header .bh-cart__trigger {
	position: relative;
	gap: var(--bh-space-2);
	overflow: visible;
	cursor: pointer;
}

#main-header .bh-cart__trigger:hover,
#main-header .bh-cart__trigger:focus-visible {
	width: 44px;
	max-width: 44px;
	justify-content: center;
}

.bh-cart__icon {
	display: inline-flex;
	color: var(--bh-accent-strong);
	flex: 0 0 auto;
}

.bh-cart__label{
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	color: var(--bh-text-strong);
	font-size: var(--bh-text-xs);
	font-weight: 900;
	white-space: nowrap;
	transition: max-width 0.18s ease, opacity 0.16s ease;
}

#main-header .bh-cart__trigger:hover .bh-cart__label,
#main-header .bh-cart__trigger:focus-visible .bh-cart__label{
	max-width: 0;
	opacity: 0;
}

.bh-cart__count {
	position: absolute;
	top: -8px;
	right: -7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding-inline: 5px;
	border: 2px solid rgba(4, 18, 31, 0.98);
	border-radius: var(--bh-radius-sm);
	background: var(--bh-amber);
	color: var(--bh-ink);
	font-size: 0.68rem;
	font-weight: 950;
	line-height: 1;
	box-shadow: 0 10px 20px rgba(214, 166, 71, 0.28);
}

#main-header .bh-cart__count {
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
}

.bh-cart__trigger.is-empty .bh-cart__count {
	display: none;
}

#main-header .bh-language-toggle {
	width: 44px;
	min-width: 44px;
	gap: 0;
	padding: 0;
	cursor: pointer;
}

.bh-language-toggle__current,
.bh-language-toggle__code,
.bh-language-toggle__caret {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.bh-flag {
	display: inline-flex;
	width: 22px;
	height: 14px;
	flex: 0 0 22px;
	border-radius: 3px;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.18),
		0 6px 14px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}

#main-header .bh-flag {
	width: 24px;
	height: 16px;
	flex-basis: 24px;
}

.bh-flag--et {
	background: linear-gradient(180deg, #0072ce 0 33.333%, #101820 33.333% 66.666%, #fff 66.666% 100%);
}

.bh-flag--ru {
	background: linear-gradient(180deg, #fff 0 33.333%, #0039a6 33.333% 66.666%, #d52b1e 66.666% 100%);
}

.bh-flag--en {
	background: #012169 url("../images/icons/ui/bh-flag-en.svg") center / cover no-repeat;
}

.bh-language-toggle__code {
	color: var(--bh-text-strong);
	font-size: var(--bh-text-xs);
	font-weight: 950;
	letter-spacing: 0.06em;
}

#main-header .bh-language-toggle__code,
#main-header .bh-language-toggle__caret {
	display: none;
}

.bh-language-toggle__caret {
	color: rgba(244, 239, 228, 0.58);
	font-size: 0.74rem;
	transition: transform 0.18s ease;
}

.menu-item-language.is-open .bh-language-toggle__caret,
.bh-language-toggle[aria-expanded="true"] .bh-language-toggle__caret {
	transform: rotate(180deg);
}

#main-header a:focus-visible,
#main-header button:focus-visible {
	outline: 2px solid rgba(244, 210, 122, 0.78);
	outline-offset: 4px;
	box-shadow: 0 0 0 4px rgba(95, 205, 255, 0.12);
}

/* Desktop dropdowns: existing JS toggles `.is-open`. */
@media (min-width: 1025px) {
	#main-header .bh-has-dropdown {
		position: relative;
	}

	#main-header .main-navigation .menu > li.bh-has-dropdown {
		display: inline-flex;
		gap: 0;
	}

	#main-header .bh-dropdown-toggle {
		width: 28px;
		min-width: 28px;
		min-height: 46px;
		margin-left: 6px;
		padding: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		cursor: pointer;
	}

	#main-header .menu-item-products > .bh-menu-link {
		padding-right: 2px;
	}

	#main-header .bh-dropdown-toggle:hover,
	#main-header .bh-dropdown-toggle:focus-visible {
		background: transparent;
		box-shadow: none;
		transform: none;
	}

	#main-header .bh-dropdown-toggle svg {
		width: 16px;
		height: 10px;
		transition: transform 0.18s ease;
	}

	#main-header .bh-has-dropdown.is-open .bh-dropdown-toggle svg {
		transform: rotate(180deg);
	}

	#main-header .bh-dropdown-menu,
	#main-header .menu-item-language .sub-menu {
		position: absolute;
		top: calc(100% + 4px);
		z-index: var(--bh-z-dropdown);
		display: grid;
		gap: 2px;
		min-width: 270px;
		margin: 0;
		padding: 8px;
		border: 1px solid rgba(95, 205, 255, 0.16);
		border-radius: 8px;
		background:
			linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
			rgba(3, 15, 27, 0.96);
		box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
		backdrop-filter: blur(22px) saturate(140%);
		-webkit-backdrop-filter: blur(22px) saturate(140%);
		list-style: none;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(8px);
		transition: opacity 0.26s ease, visibility 0.26s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	}

	#main-header .bh-dropdown-menu::before,
	#main-header .menu-item-language .sub-menu::before {
		content: "";
		position: absolute;
		top: -5px;
		right: auto;
		left: 76px;
		width: 28px;
		height: 6px;
		border: 1px solid rgba(95, 205, 255, 0.16);
		border-bottom: 0;
		border-radius: 6px 6px 0 0;
		background: linear-gradient(180deg, rgba(95, 205, 255, 0.10), rgba(3, 15, 27, 0.97) 78%);
		pointer-events: auto;
	}

	#main-header .bh-dropdown-menu::after,
	#main-header .menu-item-language .sub-menu::after {
		content: "";
		position: absolute;
		right: 0;
		bottom: 100%;
		left: 0;
		height: 5px;
		pointer-events: auto;
	}

	#main-header .menu-item-language .sub-menu::before {
		right: 13px;
		left: auto;
		width: 20px;
	}

	#main-header .bh-dropdown-menu {
		left: 0;
	}

	#main-header .bh-has-dropdown--mega .bh-dropdown-menu {
		left: 0;
		width: min(380px, calc(100vw - 64px));
		grid-template-columns: minmax(0, 1fr);
		padding: 8px;
		background:
			url("../images/decor/bh-menu-background.webp") right -92px bottom -104px / 280px auto no-repeat,
			linear-gradient(135deg, rgba(95, 205, 255, 0.10), transparent 42%),
			rgba(3, 15, 27, 0.97);
	}

	#main-header .bh-has-dropdown.is-open > .bh-dropdown-menu,
	#main-header .menu-item-language.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	#main-header:has(.menu-item-language.is-open) .bh-has-dropdown > .bh-dropdown-menu,
	#main-header:has(.bh-has-dropdown.is-open) .menu-item-language > .sub-menu {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(8px);
	}

	#main-header .menu-item-language {
		position: relative;
	}

	#main-header .menu-item-language .sub-menu {
		right: 0;
		left: auto;
		width: 184px;
		min-width: 184px;
		gap: 1px;
		padding: 5px;
	}

	#main-header .bh-dropdown-menu li,
	#main-header .menu-item-language .sub-menu li {
		min-width: 0;
	}

	#main-header .bh-dropdown-menu li a,
	#main-header .menu-item-language .sub-menu a {
		position: relative;
		display: flex;
		align-items: center;
		gap: 8px;
		min-height: 40px;
		padding: 6px 9px;
		border: 0;
		border-radius: 8px;
		color: rgba(244, 239, 228, 0.78);
		background: transparent;
		font-size: var(--bh-text-sm);
		font-weight: 760;
		text-decoration: none;
		transition: color 0.18s ease, background-color 0.18s ease;
	}

	#main-header .bh-dropdown-menu li a:hover,
	#main-header .bh-dropdown-menu li a:focus-visible,
	#main-header .menu-item-language .sub-menu a:hover,
	#main-header .menu-item-language .sub-menu a:focus-visible,
	#main-header .menu-item-language .is-current-language a {
		color: var(--bh-text-strong);
		background: rgba(95, 205, 255, 0.10);
		transform: none;
	}

	#main-header .bh-dropdown-menu > li:not(.bh-dropdown-menu__all) > a {
		min-height: 46px;
	}

	#main-header .bh-dropdown-menu > li:not(.bh-dropdown-menu__all) > a::after {
		content: "\203A";
		margin-left: auto;
		color: rgba(95, 205, 255, 0.62);
		font-size: 1.2rem;
		line-height: 1;
	}

	#main-header .menu-item-language .sub-menu a {
		min-height: 34px;
		padding: 4px 7px;
		border-radius: 5px;
	}

	#main-header .menu-item-language .is-current-language a {
		box-shadow: inset 2px 0 0 rgba(214, 166, 71, 0.78);
	}

	#main-header .menu-item-language .bh-lang-code {
		min-width: 20px;
		color: rgba(255, 244, 210, 0.92);
		font-size: 0.72rem;
		font-weight: 900;
		line-height: 1;
	}

	#main-header .menu-item-language .bh-lang-name {
		color: rgba(244, 239, 228, 0.72);
		font-size: 0.78rem;
		font-weight: 760;
		line-height: 1.1;
	}

	#main-header .bh-dropdown-menu__all a {
		border: 1px solid rgba(214, 166, 71, 0.16);
		background: rgba(214, 166, 71, 0.07);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
		color: rgba(255, 244, 210, 0.94);
	}

	#main-header .bh-dropdown-menu__all {
		margin-top: 2px;
		padding-top: 4px;
		border-top: 1px solid rgba(214, 166, 71, 0.16);
	}
}

/* Preserve the centered logo safe-zone while compacting the left nav. */
@media (max-width: 1460px) and (min-width: 1281px) {
	#main-header .site-main-header-inner-wrap.site-header-row-has-sides {
		padding-inline: clamp(32px, 3vw, 44px);
	}

	#main-header .main-navigation .menu > li > a,
	#main-header .bh-menu-link {
		gap: 4px;
		font-size: 0.75rem;
		letter-spacing: 0;
	}
}

/* Compact desktop header before the mobile breakpoint. */
@media (max-width: 1280px) and (min-width: 1025px) {
	#main-header .site-main-header-inner-wrap.site-header-row-has-sides {
		min-height: 82px;
		padding-inline: 24px;
		gap: 18px;
	}

	#main-header .site-branding .custom-logo,
	.site-branding .custom-logo {
		width: 96px;
		height: 96px;
	}

	#main-header .main-navigation .menu > li > a,
	#main-header .bh-menu-link {
		gap: 4px;
		font-size: 0.7rem;
		letter-spacing: 0;
	}

	#main-header .bh-has-dropdown--mega .bh-dropdown-menu {
		width: min(380px, calc(100vw - 44px));
	}
}

@media (max-width: 1120px) and (min-width: 1025px) {
	#main-header .site-main-header-inner-wrap.site-header-row-has-sides {
		gap: 22px;
	}

	#main-header .site-branding .custom-logo,
	.site-branding .custom-logo {
		width: 88px;
		height: 88px;
	}

	#main-header .main-navigation .menu > li > a,
	#main-header .bh-menu-link {
		gap: 6px;
		font-size: 0.72rem;
	}
}

/* Mobile breakpoint: desktop header is hidden; mobile shell owns mobile UI. */
@media (max-width: 1024.98px) {
	#main-header {
		display: none;
	}
}

/* AIC-4: mobile header and drawer owner. */
@media (max-width: 1024.98px) {
	#mobile-header {
		--bh-mobile-control: 44px;
		--bh-mobile-gap: 4px;
		--bh-mobile-logo: 56px;
		--bh-mobile-row: 64px;
		position: relative;
		z-index: 1000;
	}

	#mobile-header .site-header-inner-wrap,
	#mobile-header .site-header-upper-wrap,
	#mobile-header .site-header-upper-inner-wrap,
	#mobile-header .site-main-header-wrap,
	#mobile-header .site-header-row-container-inner,
	#mobile-header .site-container {
		overflow: visible !important;
		width: 100%;
		max-width: none;
		padding-inline: 0;
	}

	#mobile-header .site-main-header-inner-wrap.site-header-row-has-sides {
		position: relative;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		min-height: var(--bh-mobile-row) !important;
		padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right)) !important;
	}

	#mobile-header .site-header-main-section-left,
	#mobile-header .site-header-main-section-right {
		position: static !important;
		display: contents !important;
		width: auto !important;
		min-width: 0 !important;
	}

	#mobile-header [data-section="title_tagline"] {
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
		margin-inline: 0;
		z-index: 2;
	}

	#mobile-header .mobile-site-branding {
		position: static !important;
		transform: none;
	}

	#mobile-header .mobile-site-branding .custom-logo-link,
	#mobile-header .mobile-site-branding .brand {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 0 !important;
	}

	#mobile-header .mobile-site-branding .custom-logo {
		width: var(--bh-mobile-logo) !important;
		height: var(--bh-mobile-logo) !important;
		max-width: var(--bh-mobile-logo) !important;
		max-height: var(--bh-mobile-logo) !important;
		object-fit: contain;
		transform: none;
	}

	#mobile-header .mobile-toggle-open-container,
	#mobile-header .bh-mobile-account,
	#mobile-header .bh-mobile-language,
	#mobile-header .bh-cart {
		position: relative;
		display: flex;
		align-items: center;
	}

	#mobile-header .mobile-toggle-open-container {
		position: static !important;
		transform: none;
	}

	#mobile-header [data-section="kadence_customizer_mobile_trigger"] {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
		z-index: 3;
	}

	#mobile-header .bh-mobile-account {
		position: relative !important;
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
		margin-inline-start: calc(var(--bh-mobile-control) + var(--bh-mobile-gap));
		z-index: 3;
		transform: none;
	}

	#mobile-header .bh-mobile-actions {
		position: relative;
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		z-index: 3;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: var(--bh-mobile-gap);
		transform: none;
	}

	#mobile-header .bh-mobile-action,
	#mobile-header .menu-toggle-open,
	#mobile-header .bh-cart__trigger {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: var(--bh-mobile-control) !important;
		height: var(--bh-mobile-control) !important;
		min-width: var(--bh-mobile-control) !important;
		min-height: var(--bh-mobile-control) !important;
		padding: 0 !important;
		border: 1px solid rgba(255, 255, 255, 0.12) !important;
		border-radius: 50% !important;
		background: rgba(255, 255, 255, 0.06) !important;
		color: #fff !important;
		box-shadow: none !important;
		line-height: 1 !important;
		text-decoration: none !important;
	}

	#mobile-header .bh-mobile-action:hover,
	#mobile-header .bh-mobile-action:focus-visible,
	#mobile-header .menu-toggle-open:hover,
	#mobile-header .menu-toggle-open:focus-visible,
	#mobile-header .bh-cart__trigger:hover,
	#mobile-header .bh-cart__trigger:focus-visible,
	#mobile-header .bh-mobile-action[aria-expanded="true"] {
		border-color: rgba(236, 181, 70, 0.72) !important;
		background: rgba(236, 181, 70, 0.14) !important;
		color: #f4c761 !important;
		outline: 2px solid transparent;
	}

	#mobile-header .bh-cart__label {
		display: none !important;
	}

	#mobile-header .bh-cart__icon {
		display: inline-flex;
	}

	#mobile-header .bh-mobile-action svg,
	#mobile-header .menu-toggle-open svg,
	#mobile-header .bh-cart__trigger svg,
	#mobile-drawer .bh-nav-icon {
		width: 24px;
		height: 24px;
		flex: 0 0 24px;
	}

	#mobile-header .bh-cart__count {
		position: absolute !important;
		top: -3px !important;
		right: -3px !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		min-width: 18px;
		height: 18px;
		padding-inline: 4px;
		border: 2px solid #071522;
		border-radius: 999px;
		background: #ecb546 !important;
		color: #071522 !important;
		font-size: 10px !important;
		font-weight: 900 !important;
		line-height: 1 !important;
	}

	#mobile-header .bh-mobile-language-toggle {
		font-size: 11px !important;
		font-weight: 900 !important;
		letter-spacing: 0.04em;
	}

	#mobile-header [hidden] {
		display: none !important;
	}

	#mobile-header .bh-mobile-popover {
		position: absolute;
		top: calc(100% + 10px);
		z-index: 1005;
		padding: 10px;
		border: 0;
		border-radius: 16px;
		background: linear-gradient(145deg, rgba(10, 31, 50, 0.98), rgba(7, 20, 33, 0.98));
		box-shadow: 0 22px 58px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(92, 197, 255, 0.09);
		color: #fff;
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
	}

	#mobile-header .bh-mobile-account-panel {
		left: calc(-1 * (var(--bh-mobile-control) + var(--bh-mobile-gap)));
		width: calc(100vw - 16px) !important;
		max-width: 360px !important;
	}

	#mobile-header .bh-mobile-account-panel::before,
	#mobile-header .bh-mobile-language-panel::before {
		content: "";
		position: absolute;
		top: -6px;
		width: 12px;
		height: 12px;
		background: #091d2e;
		transform: rotate(45deg);
	}

	#mobile-header .bh-mobile-account-panel::before {
		left: calc(var(--bh-mobile-control) + var(--bh-mobile-gap) + 16px);
	}

	#mobile-header .bh-mobile-account-panel__identity {
		display: grid;
		gap: 4px;
		padding: 12px;
		border: 0;
		border-radius: 12px;
		background: rgba(92, 197, 255, 0.055);
	}

	#mobile-header .bh-mobile-account-panel__eyebrow {
		color: rgba(255, 255, 255, 0.62);
		font-size: 11px;
		font-weight: 800;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	#mobile-header .bh-mobile-account-panel__nav {
		display: grid;
		gap: 4px;
		padding-top: 8px;
	}

	#mobile-header .bh-mobile-account-panel__nav a,
	#mobile-header .bh-mobile-language-panel a {
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 44px;
		padding: 10px 12px;
		border-radius: 10px;
		background: transparent;
		color: rgba(255, 255, 255, 0.9);
		font-size: 14px;
		font-weight: 750;
		text-decoration: none;
	}

	#mobile-header .bh-mobile-account-panel__nav a:hover,
	#mobile-header .bh-mobile-account-panel__nav a:focus-visible,
	#mobile-header .bh-mobile-language-panel a:hover,
	#mobile-header .bh-mobile-language-panel a:focus-visible,
	#mobile-header .bh-mobile-language-panel a[aria-current="page"] {
		background: linear-gradient(90deg, rgba(92, 197, 255, 0.12), rgba(240, 165, 0, 0.08));
		color: #fff4de;
	}

	#mobile-header .bh-mobile-account-panel__logout {
		margin-top: 4px;
		border: 0;
		background: rgba(240, 165, 0, 0.055);
		color: #f4c761 !important;
	}

	#mobile-header .bh-mobile-language-panel {
		right: 0;
		width: 190px !important;
		max-width: 190px !important;
	}

	#mobile-header .bh-mobile-language-panel::before {
		right: 16px;
	}

	#mobile-header .bh-mobile-search-panel {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 1003;
		width: 100%;
		padding: 10px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		background: #071522;
		box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
	}

	#mobile-header .bh-mobile-search-panel__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 40px;
		gap: 8px;
		max-width: 720px;
		margin-inline: auto;
	}

	#mobile-header .bh-mobile-search-form {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 40px;
		align-items: center;
		width: 100% !important;
		min-height: 44px !important;
		padding: 0 3px 0 12px !important;
		border: 1px solid rgba(95, 205, 255, 0.18) !important;
		border-radius: 12px !important;
		background: rgba(5, 20, 32, 0.96) !important;
		color: rgba(244, 239, 228, 0.92) !important;
	}

	#mobile-header .bh-mobile-search-form__input {
		width: 100% !important;
		min-width: 0;
		padding: 6px 0 !important;
		border: 0 !important;
		background: transparent !important;
		color: rgba(244, 239, 228, 0.94) !important;
		box-shadow: none !important;
	}

	#mobile-header .bh-mobile-search-form__input::placeholder {
		color: rgba(244, 239, 228, 0.52) !important;
		opacity: 1 !important;
	}

	#mobile-header .bh-mobile-search-form__submit {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		padding: 0;
		border: 0;
		border-radius: 9px;
		background: linear-gradient(135deg, rgba(95, 205, 255, 0.22), rgba(214, 166, 71, 0.18));
		color: rgba(244, 239, 228, 0.96);
	}

	#mobile-header .bh-mobile-search-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 44px;
		padding: 0;
		border: 1px solid rgba(255, 255, 255, 0.16);
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.06);
		color: #fff;
		font-size: 28px;
		line-height: 1;
	}

	/* One continuous left-side drawer surface on every mobile page. */
	#mobile-drawer .drawer-inner {
		width: min(calc(100vw - 24px), 460px) !important;
		max-width: none !important;
		border-left: 0 !important;
		border-right: 1px solid rgba(95, 205, 255, 0.12) !important;
		background:
			url("../images/decor/bh-menu-background.webp") center bottom / 520px auto no-repeat,
			linear-gradient(180deg, #06131f 0%, #071c2d 100%) !important;
		box-shadow: 28px 0 80px rgba(0, 0, 0, 0.42) !important;
	}

	#mobile-drawer .drawer-content {
		padding: 50px 18px 32px !important;
		background: transparent !important;
	}

	#mobile-drawer .drawer-header {
		position: relative;
	}

	#mobile-drawer .bh-mobile-drawer-title {
		position: absolute;
		top: 22px;
		left: 20px;
		display: inline-flex;
		align-items: center;
		height: 44px;
		color: rgba(255, 255, 255, 0.68);
		font-size: 12px;
		font-weight: 850;
		letter-spacing: 0.12em;
		text-transform: uppercase;
	}

	#mobile-drawer .drawer-toggle,
	#mobile-drawer .menu-toggle-close,
	#mobile-drawer .drawer-close {
		top: 22px !important;
		right: 18px !important;
		box-sizing: border-box !important;
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		min-height: 44px !important;
		padding: 0 !important;
		border-radius: 13px !important;
		line-height: 1 !important;
	}

	#mobile-drawer .mobile-navigation .menu {
		gap: 7px !important;
		padding: 14px 0 0 !important;
	}

	#mobile-drawer .mobile-navigation .menu > li > a {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 12px;
		min-height: 50px !important;
		border-radius: 12px !important;
		font-size: 15px !important;
		font-weight: 850 !important;
		letter-spacing: 0.035em;
		text-align: left;
		text-transform: uppercase;
	}

	#mobile-drawer .mobile-navigation .menu > li.current-menu-item > a,
	#mobile-drawer .mobile-navigation .menu > li.current_page_item > a {
		border-color: rgba(214, 166, 71, 0.28) !important;
		background: rgba(214, 166, 71, 0.09) !important;
		box-shadow: inset 3px 0 0 rgba(214, 166, 71, 0.72) !important;
	}

	#mobile-drawer .mobile-navigation .menu > li.menu-item-wholesale > a {
		border-color: rgba(236, 181, 70, 0.24) !important;
		background: rgba(236, 181, 70, 0.08) !important;
		color: #f8dd9d !important;
	}

	/* Mobile category disclosure: keep the trigger in the product row and
	 * neutralize the desktop mega-menu centering inside the side drawer. */
	#mobile-drawer .mobile-navigation .menu > li.menu-item-products {
		position: relative;
	}

	#mobile-drawer .mobile-navigation .menu > li.menu-item-products.is-open {
		margin-bottom: 10px;
	}

	#mobile-drawer .mobile-navigation .menu > li.menu-item-products > a {
		padding-right: 60px !important;
	}

	#mobile-drawer .menu-item-products > .bh-dropdown-toggle {
		position: absolute;
		top: 3px;
		right: 4px;
		z-index: 2;
		width: 44px;
		height: 44px;
		margin: 0;
		border: 0 !important;
		border-radius: 12px;
		background: transparent !important;
		color: rgba(255, 255, 255, 0.82);
	}

	#mobile-drawer .menu-item-products > .bh-dropdown-toggle:hover,
	#mobile-drawer .menu-item-products > .bh-dropdown-toggle:focus-visible {
		border: 0 !important;
		background: rgba(236, 181, 70, 0.12) !important;
		color: #f4c761;
	}

	#mobile-drawer .menu-item-products > .bh-dropdown-toggle:focus-visible {
		outline: 2px solid rgba(244, 199, 97, 0.8);
		outline-offset: -2px;
	}

	#mobile-drawer .menu-item-products.is-open > .bh-dropdown-toggle {
		background: rgba(236, 181, 70, 0.1) !important;
		color: #f4c761;
	}

	#mobile-drawer .menu-item-products > .bh-dropdown-menu {
		position: static;
		left: auto;
		width: 100%;
		min-width: 0;
		max-height: 0;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		transform: none;
		overflow: hidden;
		gap: 0;
	}

	#mobile-drawer .menu-item-products.is-open > .bh-dropdown-menu {
		max-height: 320px;
		margin-top: 8px;
		padding: 8px 0 0 34px;
		transform: none;
	}

	#mobile-drawer .menu-item-products > .bh-dropdown-menu > li > a {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 12px;
		width: 100%;
		min-height: 44px;
		padding: 0 12px;
		border: 0;
		border-radius: 8px;
		background: transparent;
		color: rgba(255, 255, 255, 0.78);
		font-size: 14px;
		font-weight: 780;
		letter-spacing: 0.03em;
		text-align: left;
		text-transform: uppercase;
	}

	#mobile-drawer .menu-item-products > .bh-dropdown-menu > li:not(:last-child) > a {
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
		border-radius: 0;
	}

	#mobile-drawer .menu-item-products > .bh-dropdown-menu > li > a:hover,
	#mobile-drawer .menu-item-products > .bh-dropdown-menu > li > a:focus-visible,
	#mobile-drawer .menu-item-products > .bh-dropdown-menu > li.current-menu-item > a {
		background: rgba(30, 171, 230, 0.12) !important;
		color: #fff !important;
	}

	#mobile-drawer .menu-item-products > .bh-dropdown-menu > li.bh-dropdown-menu__all > a {
		margin-top: 6px;
		background: rgba(236, 181, 70, 0.09) !important;
		color: #f4c761 !important;
	}

	#mobile-drawer .menu-item-products > .bh-dropdown-menu > li.bh-dropdown-menu__all > a::before {
		background: #f4c761;
		box-shadow: 0 0 12px rgba(244, 199, 97, 0.38);
	}

	#mobile-drawer .bh-menu-search,
	#mobile-drawer .bh-menu-account,
	#mobile-drawer .bh-menu-cart,
	#mobile-drawer .menu-item-language {
		display: none !important;
	}
}

@media (max-width: 420px) {
	#mobile-header {
		--bh-mobile-control: 42px;
		--bh-mobile-gap: 3px;
		--bh-mobile-logo: 52px;
		--bh-mobile-row: 60px;
	}

	#mobile-header .site-main-header-inner-wrap.site-header-row-has-sides {
		padding-inline: max(6px, env(safe-area-inset-left)) max(6px, env(safe-area-inset-right)) !important;
	}
}

@media (max-width: 359px) {
	#mobile-header {
		--bh-mobile-control: 40px;
		--bh-mobile-gap: 2px;
		--bh-mobile-logo: 46px;
		--bh-mobile-row: 56px;
	}

	#mobile-header .site-main-header-inner-wrap.site-header-row-has-sides {
		padding-inline: 4px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	#mobile-header *,
	#mobile-header *::before,
	#mobile-header *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
