/* Header / New — Figma 1002:6355. Loaded only when body.shop-header-new */

#header-variant-switcher {
	position: fixed;
	left: 12px;
	bottom: 56px;
	z-index: 251;
	display: flex;
	align-items: center;
	gap: 4px;
	font: 12px/1.2 system-ui, sans-serif;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.12);
	padding: 3px;
	backdrop-filter: blur(8px);
}
#header-variant-switcher .header-variant-switcher__label {
	padding: 4px 8px;
	color: #666;
	font-weight: 600;
	white-space: nowrap;
}
#header-variant-switcher .header-variant-switcher__btn {
	padding: 6px 10px;
	color: #222;
	text-decoration: none;
	border-radius: 999px;
	white-space: nowrap;
}
#header-variant-switcher .header-variant-switcher__btn.is-active {
	background: #0868d9;
	color: #fff;
	font-weight: 700;
}
@media (max-width: 991px) {
	#header-variant-switcher {
		left: 8px;
		bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
		max-width: calc(100vw - 5.5rem);
	}
}

/* Hide legacy header only when the new markup is actually present (avoids blank pages from stale cache) */
body.shop-header-new:has([data-ms-header-new]) > header.header,
body.shop-header-new:has([data-ms-header-new]) > .container.main_menu,
body.shop-header-new:has([data-ms-header-new]) .header:not(.ms-hn),
body.shop-header-new:has([data-ms-header-new]) .container.main_menu:not(.ms-hn) {
	display: none !important;
}

body.shop-header-new {
	--ms-hn-brand: #0868d9;
	--ms-hn-text: #122443;
	--ms-hn-muted: #5c6d84;
	--ms-hn-surface: #f5f7fa;
	--ms-hn-border: #e1e7ef;
	--ms-hn-max: 1320px;
}

.ms-hn {
	position: relative;
	z-index: 200;
	background: #fff;
	font-family: var(--ms-font-ui, system-ui, sans-serif);
	color: var(--ms-hn-text);
	/* Must stay visible — overflow-x:clip forces overflow-y≠visible and clips dropdowns */
	overflow: visible !important;
}

.ms-hn__inner {
	width: 100%;
	max-width: var(--ms-hn-max);
	margin: 0 auto;
	padding-inline: 16px;
	box-sizing: border-box;
}

.ms-hn__utility {
	background: var(--ms-hn-surface);
	min-height: 40px;
}
.ms-hn__utility .ms-hn__inner,
.ms-hn__utility-left,
.ms-hn__utility-right {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 40px;
}
.ms-hn__utility .ms-hn__inner {
	justify-content: space-between;
}
.ms-hn__meta,
.ms-hn__util-link,
.ms-hn__lang {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--ms-hn-text);
	text-decoration: none;
}
.ms-hn__util-link,
.ms-hn__lang {
	color: var(--ms-hn-muted);
}
.ms-hn__lang.active_lang_ua,
.ms-hn__lang.active_lang_ru,
.ms-hn__langs a[class*="active"] {
	color: var(--ms-hn-brand);
	font-weight: 600;
}
.ms-hn__langs {
	display: inline-flex;
	gap: 10px;
}
.ms-hn__icon {
	display: block;
	flex: 0 0 auto;
}

.ms-hn__brand {
	background: #fff;
}
.ms-hn__brand-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 24px;
	min-height: 96px;
	padding-block: 20px;
}
.ms-hn__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}
.ms-hn__logo-name {
	display: block;
	font-size: 23px;
	font-weight: 600;
	line-height: 1.2;
}
.ms-hn__logo-tag {
	display: block;
	font-size: 11px;
	color: var(--ms-hn-muted);
}
.ms-hn__search {
	position: relative;
	min-width: 0;
	width: 100%;
	justify-self: stretch;
	/* beat .shop-v2 .search-form flex/max-width rails */
	flex: 1 1 auto !important;
	margin: 0 !important;
}
/* Figma 684px — beat .shop-v2 .search-form { max-width:720px } */
body.shop-header-new .ms-hn__search.search-form,
body.shop-header-new .ms-hn__search {
	max-width: 684px !important;
}
body.shop-header-new .ms-hn__search #update-live-search {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 420;
}
body.shop-header-new .ms-hn__search.search-form form {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
}
.ms-hn__search-field {
	display: flex !important;
	align-items: center;
	gap: 12px;
	width: 100% !important;
	max-width: none !important;
	height: 48px;
	padding-left: 14px;
	border: 1px solid var(--ms-hn-border);
	border-radius: 8px;
	background: var(--ms-hn-surface);
	box-sizing: border-box;
	overflow: hidden;
	flex: 1 1 auto !important;
}
body.shop-header-new .ms-hn__search-field input[type="text"],
body.shop-header-new .ms-hn__search #live-search {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	width: auto !important;
	max-width: none !important;
	float: none !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	color: var(--ms-hn-text) !important;
	outline: none;
	box-shadow: none !important;
}
body.shop-header-new .ms-hn__search-submit,
body.shop-header-new .ms-hn__search .search_button {
	flex: 0 0 48px !important;
	width: 48px !important;
	min-width: 48px !important;
	height: 46px !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 7px !important;
	background: var(--ms-hn-brand) !important;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
.ms-hn__contact {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 160px;
}
body.shop-header-new .ms-hn__phone {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--ms-hn-text) !important;
	text-decoration: none;
}
body.shop-header-new .ms-hn__contacts-toggle {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	font-size: 11px;
	color: var(--ms-hn-muted) !important;
	cursor: pointer;
}
.ms-hn__contacts-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 220px;
	padding: 12px;
	border: 1px solid var(--ms-hn-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(18, 36, 67, 0.12);
	z-index: 220;
}
.ms-hn__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
body.shop-header-new .ms-hn__account {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--ms-hn-text) !important;
	text-decoration: none;
}
body.shop-header-new .ms-hn__account span {
	color: inherit !important;
}
.ms-hn__cart .cart-btn,
.ms-hn__cart a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	color: var(--ms-hn-brand) !important;
	text-decoration: none;
}
/* Figma Cart / 0 — count beside icon, not shop-v2 badge chip */
body.shop-header-new .ms-hn__cart .cart-btn span,
body.shop-header-new .ms-hn__cart .cart-count-value {
	position: static !important;
	top: auto !important;
	right: auto !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
	color: var(--ms-hn-brand) !important;
}
body.shop-header-new .ms-hn__cart .cart-btn img {
	width: 24px !important;
	height: 24px !important;
	max-width: 24px !important;
	opacity: 1 !important;
	filter: none !important;
}

.ms-hn__nav {
	position: relative;
	/* Above .ms-hn__catalog-panel (230) so nav dropdowns are never covered */
	z-index: 250;
	background: #fff;
	border-bottom: 1px solid var(--ms-hn-border);
	overflow: visible !important;
}
.ms-hn__nav-row {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 68px;
	overflow: visible !important;
}
body.shop-header-new .ms-hn__nav-item.dropdown,
body.shop-header-new .ms-hn__nav-item {
	position: relative !important;
	z-index: 1;
	overflow: visible !important;
}
body.shop-header-new .ms-hn__nav-item:hover,
body.shop-header-new .ms-hn__nav-item.is-open,
body.shop-header-new .ms-hn__nav-item:focus-within {
	z-index: 30;
}
body.shop-header-new .ms-hn__catalog-btn,
body.shop-header-new .ms-hn__repair-cta,
body.shop-header-new a.ms-hn__repair-cta {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 44px;
	padding: 0 24px;
	border: 0;
	border-radius: 8px;
	background: var(--ms-hn-brand) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer;
	white-space: nowrap;
}
body.shop-header-new .ms-hn__repair-cta span,
body.shop-header-new .ms-hn__catalog-btn span {
	color: #fff !important;
}
.ms-hn__primary {
	display: flex;
	align-items: center;
	gap: 8px 24px;
	flex: 1 1 auto;
	min-width: 0;
	flex-wrap: wrap;
	overflow: visible !important;
}
body.shop-header-new .ms-hn__nav-link,
body.shop-header-new .ms-hn__nav-link.navigation__link,
body.shop-header-new a.ms-hn__nav-link {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	height: 44px;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	color: var(--ms-hn-text) !important;
	text-decoration: none !important;
	text-transform: none !important;
	background: none !important;
	padding-inline: 0 !important;
}
body.shop-header-new .ms-hn__nav-link::after,
body.shop-header-new .ms-hn__nav-link.navigation__link::after {
	display: none !important;
	content: none !important;
}
body.shop-header-new .ms-hn__nav-item .ms-hn__drop,
body.shop-header-new .ms-hn__nav-item .ms-hn__drop.drop_menu {
	display: none;
	position: absolute !important;
	left: 0 !important;
	right: auto !important;
	top: 100% !important;
	z-index: 400 !important;
	min-width: 14rem;
	width: max-content;
	max-width: min(22rem, calc(100vw - 24px));
	max-height: min(70vh, 28rem);
	margin: 0;
	padding: 0.35rem 0 0.5rem;
	background: #fff !important;
	border: 1px solid var(--ms-hn-border) !important;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(18, 36, 67, 0.14);
	overflow-x: hidden;
	overflow-y: auto;
}
body.shop-header-new .ms-hn__nav-item.is-open > .ms-hn__drop,
body.shop-header-new .ms-hn__nav-item:hover > .ms-hn__drop,
body.shop-header-new .ms-hn__nav-item:focus-within > .ms-hn__drop {
	display: block !important;
}
body.shop-header-new .ms-hn__nav-item[data-ms-hn-role="repair"].is-closed > .ms-hn__drop {
	display: none !important;
}
.ms-hn__nav-item.is-open > .ms-hn__nav-link .ms-hn__nav-chevron,
.ms-hn__nav-item:hover > .ms-hn__nav-link .ms-hn__nav-chevron {
	transform: rotate(180deg);
}
.ms-hn__nav-chevron {
	transition: transform 0.15s ease;
}

/* —— Catalog flyout (Figma card under Каталог) —— */
.ms-hn__catalog-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: auto;
	z-index: 230;
	width: min(1100px, calc(100vw - 32px));
	max-height: min(75vh, 640px);
	margin-top: 4px;
	background: #fff;
	border: 1px solid var(--ms-hn-border);
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(18, 36, 67, 0.16);
	overflow: hidden;
}
/* Panel already aligns to the catalog button — do not inherit page gutter */
.ms-hn__catalog-panel > .ms-hn__inner {
	max-width: none;
	width: 100%;
	padding-inline: 0;
}
.ms-hn__catalog-panel[hidden] {
	display: none !important;
}
.ms-hn__catalog-panel-head {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px 4px;
}
.ms-hn__catalog-close {
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: var(--ms-hn-text);
	cursor: pointer;
	padding: 0 4px;
}
.ms-hn__catalog-panel-body {
	padding: 0;
	height: 100%;
}
.ms-hn__catalog-panel-body > ul {
	display: none !important;
}

.ms-hn-flyout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	align-items: stretch;
	min-height: 360px;
	max-height: min(75vh, 640px);
	background: #fff;
}
.ms-hn-flyout__rail {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	gap: 2px;
	padding: 14px 10px 16px;
	background: var(--ms-hn-surface);
	border-right: 1px solid var(--ms-hn-border);
	overflow: auto;
}
.ms-hn-flyout__rail-label {
	margin: 0 4px 8px;
	padding: 2px 8px 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--ms-hn-muted, #8b93a7);
}
.ms-hn-flyout__rail-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ms-hn-text) !important;
	text-decoration: none !important;
	background: transparent;
	transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
/* Figma: white pill on gray rail — not blue wash */
.ms-hn-flyout__rail-item:hover,
.ms-hn-flyout__rail-item.is-active {
	background: #fff;
	color: var(--ms-hn-brand) !important;
	box-shadow: 0 1px 3px rgba(18, 36, 67, 0.08);
}
.ms-hn-flyout__rail-item.is-active {
	font-weight: 600;
}
.ms-hn-flyout__rail-item::after {
	content: "";
	width: 6px;
	height: 10px;
	flex: 0 0 auto;
	opacity: 0.45;
	background: no-repeat center / contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' viewBox='0 0 6 10' fill='none'%3E%3Cpath d='M1 1l4 4-4 4' stroke='%238b93a7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ms-hn-flyout__rail-item:hover::after,
.ms-hn-flyout__rail-item.is-active::after {
	opacity: 1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' viewBox='0 0 6 10' fill='none'%3E%3Cpath d='M1 1l4 4-4 4' stroke='%230868d9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ms-hn-flyout__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 20px 24px 16px;
	overflow: auto;
	background: #fff;
}
.ms-hn-flyout__main-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.ms-hn-flyout__title {
	font-size: 16px;
	font-weight: 600;
	color: var(--ms-hn-text);
}
.ms-hn-flyout__all {
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-hn-brand) !important;
	text-decoration: none !important;
	white-space: nowrap;
}
.ms-hn-flyout__cols {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
	gap: 1.25rem 1.75rem;
	flex: 1 1 auto;
	align-items: start;
}
.ms-hn-flyout.has-details-only .ms-hn-flyout__cols,
.ms-hn-flyout__cols:has(.ms-hn-flyout__col--brands[hidden]) {
	grid-template-columns: 1fr;
}
.ms-hn-flyout__col--brands.is-empty .ms-hn-flyout__list--brands::after {
	content: "—";
	color: var(--ms-hn-muted);
	font-size: 13px;
}
.ms-hn-flyout__heading {
	margin: 0 0 0.65rem;
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-hn-text);
}
.ms-hn-flyout__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ms-hn-flyout__list--details {
	columns: 2;
	column-gap: 1.5rem;
	min-height: 6rem;
	transition: opacity 0.15s ease;
}
.ms-hn-flyout__col--details.is-dense .ms-hn-flyout__list--details {
	columns: 2;
	column-gap: 1.75rem;
}
.ms-hn-flyout__list--brands {
	columns: 2;
	column-gap: 1rem;
	min-height: 6rem;
	transition: opacity 0.15s ease;
}
.ms-hn-flyout__list--details.is-loading,
.ms-hn-flyout__list--brands.is-loading {
	opacity: 0.45;
}
.ms-hn-flyout__list li {
	margin: 0 0 0.4rem;
	break-inside: avoid;
}
.ms-hn-flyout__list a {
	font-size: 13px;
	line-height: 1.35;
	color: #4a4e55 !important;
	text-decoration: none !important;
}
.ms-hn-flyout__list a:hover {
	color: var(--ms-hn-brand) !important;
	text-decoration: underline !important;
}
.ms-hn-flyout__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--ms-hn-border);
}
.ms-hn-flyout__foot a {
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-hn-brand) !important;
	text-decoration: none !important;
}

/* —— Repair mega (Figma «Ремонт техніки») —— */
body.shop-header-new .ms-hn__nav-item[data-ms-hn-role="repair"] {
	/* Fill nav row height so hover is not lost between link and panel */
	position: static !important;
	align-self: stretch;
	display: flex !important;
	align-items: center;
}
body.shop-header-new .ms-hn__nav-item[data-ms-hn-role="repair"] > .ms-hn__drop,
body.shop-header-new .ms-hn__nav-item[data-ms-hn-role="repair"] > .ms-hn__drop.drop_menu {
	left: 50% !important;
	right: auto !important;
	top: 100% !important;
	transform: translateX(-50%);
	width: min(1120px, calc(100vw - 32px)) !important;
	max-width: min(1120px, calc(100vw - 32px)) !important;
	min-width: 0 !important;
	max-height: min(70vh, 560px) !important;
	/* No margin gap — transparent padding is a hover bridge into the card */
	margin-top: 0 !important;
	padding: 12px 0 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
}
body.shop-header-new .ms-hn__nav-item[data-ms-hn-role="repair"] > .ms-hn__drop::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -16px;
	height: 16px;
}
.ms-hn-repair {
	max-height: min(70vh, 560px);
	padding: 20px 24px 16px;
	border: 1px solid var(--ms-hn-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(18, 36, 67, 0.16);
	overflow: auto;
	box-sizing: border-box;
}
.ms-hn-repair__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.ms-hn-repair__title {
	font-size: 18px;
	font-weight: 600;
	color: var(--ms-hn-text);
}
.ms-hn-repair__close {
	border: 0;
	background: transparent;
	padding: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--ms-hn-muted);
	cursor: pointer;
}
.ms-hn-repair__close:hover {
	color: var(--ms-hn-brand);
}
.ms-hn-repair__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem 1.75rem;
}
.ms-hn-repair__heading {
	margin: 0 0 0.75rem;
	font-size: 14px;
	font-weight: 600;
	color: var(--ms-hn-text);
}
.ms-hn-repair__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ms-hn-repair__list li {
	margin: 0 0 0.45rem;
}
.ms-hn-repair__list a {
	font-size: 13px;
	line-height: 1.35;
	color: #4a4e55 !important;
	text-decoration: none !important;
	font-style: normal !important;
}
.ms-hn-repair__list a:hover {
	color: var(--ms-hn-brand) !important;
	text-decoration: underline !important;
}
.ms-hn-repair__foot {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid var(--ms-hn-border);
}
.ms-hn-repair__foot a {
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-hn-brand) !important;
	text-decoration: none !important;
	font-style: normal !important;
}

@media screen and (max-width: 991px) {
	.ms-hn-flyout {
		grid-template-columns: 1fr;
		max-height: none;
	}
	.ms-hn-flyout__rail {
		flex-direction: row;
		flex-wrap: wrap;
		border-right: 0;
		border-bottom: 1px solid var(--ms-hn-border);
	}
	.ms-hn-flyout__cols {
		grid-template-columns: 1fr;
	}
	.ms-hn-flyout__list--details {
		columns: 2;
	}
	.ms-hn-repair__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.ms-hn__mobile {
	display: none;
}
.ms-hn__drawer[hidden] {
	display: none !important;
}

/* Figma primary has no «Запчастині» — catalog opens via CTA only */
.ms-hn__nav-item[data-ms-hn-role="parts"] {
	display: none !important;
}
.ms-hn__nav-item[data-ms-hn-role="about"],
.ms-hn__nav-item[data-ms-hn-role="news"] {
	display: none;
}

@media screen and (min-width: 992px) {
	.ms-hn__mobile {
		display: none !important;
	}
}

@media screen and (max-width: 991px) {
	.ms-hn__utility,
	.ms-hn__brand,
	.ms-hn__nav {
		display: none !important;
	}
	.ms-hn__catalog-panel {
		position: fixed;
		inset: 0;
		top: 0;
		left: 0 !important;
		width: 100% !important;
		max-height: none;
		margin-top: 0;
		border-radius: 0;
		z-index: 260;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}
	.ms-hn__catalog-panel-head {
		display: flex;
		position: sticky;
		top: 0;
		background: #fff;
		z-index: 1;
		border-bottom: 1px solid var(--ms-hn-border);
		padding: 12px 16px;
	}
	.ms-hn__mobile {
		display: block;
		padding: 8px 16px 8px;
		background: #fff;
		border-bottom: 1px solid var(--ms-hn-border);
	}
	.ms-hn__mobile-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 56px;
		gap: 12px;
	}
	.ms-hn__burger,
	.ms-hn__mobile-catalog {
		border: 0;
		background: transparent;
		cursor: pointer;
	}
	.ms-hn__mobile-logo {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		font-size: 17px;
		font-weight: 600;
		color: var(--ms-hn-text);
		text-decoration: none;
	}
	/* Legacy styles.css ≤991 hides ALL .search-form — restore ours */
	body.shop-header-new .ms-hn__mobile-search,
	body.shop-header-new .ms-hn__mobile-search.search-form {
		display: block !important;
		margin-top: 12px;
		width: 100% !important;
		max-width: none !important;
		flex: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	body.shop-header-new .ms-hn__mobile-search form {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		overflow: visible !important;
	}
	.ms-hn__mobile-search .ms-hn__search-field {
		width: 100% !important;
		background: var(--ms-hn-surface);
	}
	.ms-hn__mobile-actions {
		display: grid;
		grid-template-columns: 122px 1fr;
		gap: 12px;
		margin-top: 12px;
	}
	.ms-hn__mobile-catalog {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		height: 44px;
		border: 1px solid var(--ms-hn-border) !important;
		border-radius: 8px;
		background: #fff !important;
		color: var(--ms-hn-brand);
		font-size: 14px;
		font-weight: 600;
	}
	.ms-hn__mobile-repair {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		height: 44px;
		border-radius: 8px;
		background: var(--ms-hn-brand);
		color: #fff;
		font-size: 14px;
		font-weight: 600;
		text-decoration: none;
	}
	.ms-hn__drawer {
		position: fixed;
		inset: 0;
		z-index: 400;
	}
	.ms-hn__drawer-backdrop {
		position: absolute;
		inset: 0;
		z-index: 0;
		background: rgba(18, 36, 67, 0.45);
	}
	.ms-hn__drawer-panel {
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 1;
		width: min(86vw, 320px);
		padding: 20px 16px;
		background: #fff;
		overflow: auto;
		box-sizing: border-box;
		box-shadow: 8px 0 24px rgba(18, 36, 67, 0.18);
	}
	.ms-hn__drawer-close {
		position: absolute;
		top: 8px;
		right: 8px;
		border: 0;
		background: none;
		font-size: 28px;
		line-height: 1;
		cursor: pointer;
		color: var(--ms-hn-muted);
	}
	.ms-hn__drawer-nav a {
		display: block;
		padding: 12px 4px;
		border-bottom: 1px solid var(--ms-hn-border);
		color: var(--ms-hn-text);
		text-decoration: none;
		font-size: 15px;
		font-weight: 600;
	}
	.ms-hn__drawer-repair,
	.ms-hn__drawer-status {
		display: block;
		margin-top: 16px;
		padding: 12px;
		border-radius: 8px;
		text-align: center;
		text-decoration: none;
		font-weight: 600;
	}
	.ms-hn__drawer-repair {
		background: var(--ms-hn-brand);
		color: #fff;
	}
	.ms-hn__drawer-status {
		border: 1px solid var(--ms-hn-border);
		color: var(--ms-hn-text);
	}
	body.ms-hn-drawer-open {
		overflow: hidden;
	}
	.ms-hn__catalog-panel {
		position: fixed;
		left: 0 !important;
		right: 0;
		top: 0;
		bottom: 0;
		width: 100% !important;
		max-height: none;
		margin-top: 0;
		border-radius: 0;
		z-index: 410;
		overflow: auto;
	}
}

/* Login panel above sticky new header */
body.shop-header-new .slide-login-wrapper:not(.negative_z-index),
body.shop-header-new .ms-hn-login-slot:not(.negative_z-index) {
	z-index: 450 !important;
}

/* Keep page from growing sideways, but never clip header dropdowns */
body.shop-header-new {
	overflow-x: clip;
	max-width: 100vw;
}
body.shop-header-new .ms-hn,
body.shop-header-new .ms-hn.site-header-v2 {
	overflow: visible !important;
	overflow-x: visible !important;
	overflow-y: visible !important;
	max-width: none;
}
