.stimul-catalog-page .header_extra {
	align-items: center;
	display: flex;
	gap: 8px;
}

/* The compare CTA is rendered by the shared header on legacy pages too. */
.header_button .simple_button.simple_button--flash {
	color: #622a3a !important;
	background: #faf3e7 !important;
	border-color: #faf3e7 !important;
	width: 54px;
}

.header_button .simple_button.simple_button--flash:hover {
	background: #faf3e7 !important;
}

.header_button .simple_button.simple_button--flash.header_compare {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px !important;
	padding: 0 !important;
}

@media (max-width: 991px) {
	.stimul-catalog-page .header_extra {
		display: none;
	}
}

/* Legacy pages do not load stimul-variables.css; retain the catalog CTA colour. */
.stimul-catalog-page .simple_button.simple_button--red {
	background-color: var(--color-red, #622a3a);
	border-color: var(--color-red, #622a3a) !important;
	color: var(--color-white, #fff) !important;
}

.stimul-catalog-page .header_nav__item--compare {
	position: relative;
}

@media (min-width: 992px) {
	.stimul-catalog-page .stimul-legacy-header .header_nav__item--compare {
		display: none;
	}

	.stimul-catalog-page .header_compare {
		align-items: center;
		background: #f6f6f6;
		border-radius: 10px;
		color: var(--color-red, #622a3a);
		display: inline-flex;
		height: 44px;
		justify-content: center;
		position: relative;
		text-decoration: none;
		transition: background-color .2s ease, color .2s ease;
		width: 44px;
	}

	.stimul-catalog-page .header_button .simple_button.header_compare {
		padding: 0;
		width: 54px;
	}

	.stimul-catalog-page .header_compare:hover {
		background: var(--color-red, #622a3a);
		color: #fff;
	}

	.stimul-catalog-page .header_compare [data-compare-count] {
		align-items: center;
		background: #9ecc0c;
		border-radius: 50%;
		color: #fff;
		display: inline-flex;
		font-size: 10px;
		height: 16px;
		justify-content: center;
		min-width: 16px;
		position: absolute;
		right: -4px;
		top: -4px;
	}
}

.stimul-catalog-page .header_nav__item--compare [data-compare-count] {
	align-items: center;
	background: #9ecc0c;
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	font-size: 10px;
	height: 16px;
	justify-content: center;
	margin-left: 4px;
	min-width: 16px;
	padding: 0 3px;
	vertical-align: top;
}

.stimul-catalog-page .header_nav__item--compare [data-compare-count][hidden],
.stimul-catalog-page .header_compare [data-compare-count][hidden] {
	display: none;
}

.stimul-catalog-page .mob_phone_ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* WordPress renders current page as a span; keep its digit centered. */
.stimul-catalog-page .pagination__link.active {
	display: flex;
}

.stimul-catalog-page .header_nav__item--has-children {
	position: relative;
}

.stimul-catalog-page .header_nav__toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: #000;
	cursor: pointer;
	display: flex;
	font: inherit;
	gap: 6px;
	padding: 0;
}

.stimul-catalog-page .header_nav__toggle svg {
	transition: transform .2s;
}

.stimul-catalog-page .header_nav__submenu {
	background: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
	display: block;
	gap: 0;
	left: 0;
	list-style: none;
	margin: 0;
	min-width: 180px;
	opacity: 0;
	padding: 10px 16px;
	position: absolute;
	top: calc(100% + 10px);
	visibility: hidden;
	width: max-content;
	z-index: 100;
}

.stimul-catalog-page .header_nav__submenu li {
	margin: 0;
}

.stimul-catalog-page .header_nav__submenu a {
	display: block;
	padding: 7px 0;
	white-space: nowrap;
}

.stimul-catalog-page .header_nav__item--has-children:hover .header_nav__submenu,
.stimul-catalog-page .header_nav__item--has-children:focus-within .header_nav__submenu {
	opacity: 1;
	visibility: visible;
}

.stimul-catalog-page .header_nav__item--has-children:hover .header_nav__toggle svg,
.stimul-catalog-page .header_nav__item--has-children:focus-within .header_nav__toggle svg {
	transform: rotate(180deg);
}

@media (max-width: 991px) {
	.stimul-catalog-page .mob_phone_ico {
		color: #4d4d4d;
	}

	.stimul-catalog-page .overlay-header_nav .header_nav__submenu {
		box-shadow: none;
		opacity: 1;
		position: static;
		visibility: visible;
	}
}

@media screen and (max-width: 1199px) {
	.tab-hidden {
		display: none !important;
	}
}

@media (min-width: 993px) and (max-width: 1200px) {
	.header_nav ul li {
		margin-left: 5px !important;
	}
}

@media (max-width: 992px) {
	.header_button {
		margin: 0 !important;
	}
}
