.header__inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 20px; }
.header__logo { flex: 0 0 auto; }
.main-menu__wrap { flex: 1 1 auto; display: flex; margin-left: 20px; }
.main-menu { display: flex !important; flex-wrap: nowrap; }
.main-menu.collapse { display: flex !important; }
.main-menu.navbar-collapse { display: flex !important; }
#main-nav { display: flex !important; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; }
#main-nav > li { display: inline-block !important; white-space: nowrap; }
.xb-hamburger-menu { flex: 0 0 auto; }
.header__action { flex: 0 0 auto; display: flex; gap: 10px; flex-wrap: nowrap; align-items: center; }
.header__action li { display: inline-flex; align-items: center; }
.header__search { padding: 6px 10px !important; font-size: 13px !important; }
.header__language { max-width: 120px; }

/* Keep language dropdown usable on touch devices (no hover). */
.site-header .header__language ul > li:focus-within > .lang_sub_list,
.site-header .header__language ul > li.lang-open > .lang_sub_list,
.site-header .header__language ul > li:hover > .lang_sub_list {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	top: 100% !important;
}

@media (max-width: 1199px) {
	.header__action {
		display: flex !important;
	}

	.header__language {
		display: block !important;
		max-width: none;
	}

	.site-header .header__language .lang-btn {
		display: inline-flex !important;
		align-items: center;
	}

	.site-header .header__language .lang_sub_list {
		right: 0;
		z-index: 1001;
	}
}
