/* HTL chrome: header + footer per catalog mockup */

.htl-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #1c1c1c;
}

.htl-header__bar {
	background: #1c1c1c;
	color: #fff;
}

.htl-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 64px;
	height: 64px;
	gap: 24px;
	box-sizing: border-box;
}

.htl-header .container.htl-header__inner {
	padding-left: 40px;
	padding-right: 40px;
}

.htl-header__left {
	display: flex;
	align-items: center;
	gap: 24px;
	min-width: 0;
}

.htl-header__primary {
	display: flex;
	align-items: center;
	gap: 32px;
	flex-wrap: nowrap;
}

.htl-header__primary-link {
	color: #fff;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 400;
	text-decoration: none;
	opacity: 0.95;
	transition: opacity .2s ease;
	white-space: nowrap;
}

.htl-header__primary-link:hover {
	color: #fff;
	opacity: 1;
	text-decoration: none;
}

.htl-header__logo {
	justify-self: center;
	display: flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.htl-header__logo svg {
	display: block;
	width: 68px;
	height: 27px;
}

.htl-header__logo:hover {
	text-decoration: none;
	opacity: 0.92;
}

.htl-header__right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	min-width: 0;
}

.htl-header .header__menu,
.htl-header .header__menu--wrapper,
.htl-header .header__menu--nav {
	display: contents;
}

.htl-header .header__menu--nav-item {
	display: none !important;
}

.htl-header .header__menu--nav .burger,
.htl-header .burger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	cursor: pointer;
	flex-shrink: 0;
	order: -1;
	padding: 0 !important;
}

/* Full-height drawer from the left (ported to body via JS) */
.htl-header .header__menu--over,
.htl-header .header__menu--wrapper .header__menu--over,
body > .header__menu--over,
body > .htl-drawer-over {
	position: fixed !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100vh !important;
	height: 100dvh !important;
	max-height: none !important;
	z-index: 10040 !important;
	display: none !important;
	background: rgba(0, 0, 0, 0.45) !important;
	opacity: 1 !important;
	transition: opacity .3s ease;
}

.htl-header .header__menu--over.show,
.htl-header .header__menu--wrapper .header__menu--over.show,
body > .header__menu--over.show,
body > .htl-drawer-over.show {
	display: block !important;
}

.htl-header .header__menu--side,
.htl-header .header__menu--wrapper .header__menu--side,
body > .header__menu--side,
body > .htl-drawer-side {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: auto !important;
	bottom: 0 !important;
	width: min(500px, 92vw) !important;
	height: 100vh !important;
	height: 100dvh !important;
	max-height: none !important;
	min-height: 100vh !important;
	min-height: 100dvh !important;
	z-index: 10050 !important;
	display: flex !important;
	flex-direction: column;
	background: #1c1c1c !important;
	overflow-x: hidden;
	overflow-y: auto;
	opacity: 1 !important;
	visibility: visible !important;
	transform: translate3d(-105%, 0, 0) !important;
	transition: transform .32s ease !important;
	margin: 0 !important;
	padding: 40px 48px 48px !important;
	box-sizing: border-box;
}

.htl-header .header__menu--side.show,
.htl-header .header__menu--wrapper .header__menu--side.show,
body > .header__menu--side.show,
body > .htl-drawer-side.show {
	transform: translate3d(0, 0, 0) !important;
	opacity: 1 !important;
}

body.htl-drawer-open .htl-header {
	z-index: 10030;
}

body > .htl-drawer-side .header__menu--close,
.htl-header .header__menu--side .header__menu--close {
	position: absolute;
	top: 24px;
	right: 24px;
	display: flex !important;
	cursor: pointer;
	z-index: 2;
}

.htl-header .header__menu--nav .burger svg rect {
	fill: #fff;
}

.htl-header .header_phone,
.htl-header .header__lang,
.htl-header .cart_for_a.cart_head {
	display: none !important;
}

.htl-header .header__search,
.htl-header .header__user,
.htl-header .header__theme-toggle {
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	height: auto !important;
	border: 0 !important;
	color: #fff;
	flex-shrink: 0;
}

.htl-header .header__search {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 28px !important;
	min-width: 28px;
	max-width: 28px;
	overflow: visible;
}

.htl-header__search-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.htl-header .header__search .bx-searchtitle,
.htl-header .header__search #title-search,
.htl-header .header__search form {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

/* Fixed full-width search strip under header (does not shift content) */
.htl-search-panel {
	display: none;
	position: fixed;
	top: 64px;
	left: 0;
	right: 0;
	z-index: 49;
	background: #1c1c1c;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.htl-header.is-search-open .htl-search-panel {
	display: block;
}

.htl-search-panel__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
	padding-left: 40px;
	padding-right: 40px;
}

.htl-search-panel__input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
	background: transparent;
	color: #fff;
	font-size: 18px;
	font-weight: 350;
	line-height: 1.2;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.htl-search-panel__input::-webkit-search-cancel-button,
.htl-search-panel__input::-webkit-search-decoration,
.htl-search-panel__input::-webkit-search-results-button,
.htl-search-panel__input::-ms-clear {
	display: none !important;
	-webkit-appearance: none;
	appearance: none;
	width: 0;
	height: 0;
}

.htl-search-panel__input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.htl-search-panel__close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
}

.htl-search-panel__close:hover {
	opacity: 1;
}

.htl-header .header__search input#title-search-input,
.htl-header .header__search #title-search-input {
	display: none !important;
}

.htl-header .title-search-result,
.htl-header.is-search-open .title-search-result,
body.htl-search-open #search-results,
body.htl-search-open #search-results.htl-search-results {
	position: fixed !important;
	top: 128px !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	z-index: 48 !important;
	margin: 0 !important;
	padding: 8px 40px 16px !important;
	background: #fff !important;
	border: 0 !important;
	border-top: 1px solid #e8e8e8 !important;
	border-radius: 0 !important;
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2) !important;
	max-height: min(60vh, 520px);
	overflow-x: hidden;
	overflow-y: auto;
	box-sizing: border-box;
}

body.htl-search-open #search-results style,
body.htl-search-open #search-results .title-search-fader {
	display: none !important;
}

body.htl-search-open #search-results .bx_searche {
	display: block;
}

body.htl-search-open #search-results .bx_item_block {
	display: flex !important;
	align-items: center;
	gap: 16px;
	position: relative !important;
	min-height: 72px !important;
	margin-left: -40px !important;
	margin-right: -40px !important;
	padding: 12px 40px !important;
	border-bottom: 1px solid #eee;
	float: none !important;
	clear: both !important;
	box-sizing: border-box;
	transition: background-color .15s ease;
}

body.htl-search-open #search-results .bx_item_block:hover {
	background: #f6f6f6;
}

body.htl-search-open #search-results .bx_item_block[style*="display:none"],
body.htl-search-open #search-results .bx_item_block.all_result {
	display: none !important;
}

body.htl-search-open #search-results .bx_item_block:last-child {
	border-bottom: 0;
}

body.htl-search-open #search-results .bx_img_element {
	position: static !important;
	float: none !important;
	top: auto !important;
	bottom: auto !important;
	width: 64px !important;
	height: 64px !important;
	padding: 0 !important;
	flex: 0 0 64px;
	background: #f6f6f6;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

body.htl-search-open #search-results .bx_img_element img {
	max-width: 100%;
	max-height: 100%;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
}

body.htl-search-open #search-results .bx_img_element img[src=""],
body.htl-search-open #search-results .bx_img_element:has(img[src=""]) {
	display: none !important;
}

body.htl-search-open #search-results .bx_item_element {
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0;
	flex: 1;
	align-self: stretch;
	display: flex;
	align-items: center;
}

body.htl-search-open #search-results .bx_item_element a {
	color: #1c1c1c !important;
	font-size: 16px !important;
	font-weight: 500;
	text-decoration: none !important;
	line-height: 1.3;
	display: flex;
	align-items: center;
	flex: 1;
	width: 100%;
	align-self: stretch;
	min-height: 48px;
	box-sizing: border-box;
}

body.htl-search-open #search-results .bx_item_element a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

body.htl-search-open #search-results .bx_item_block:hover .bx_item_element a,
body.htl-search-open #search-results .bx_item_element a:hover {
	color: #03a543 !important;
}

body.htl-search-open #search-results .bx_item_element a b {
	color: inherit !important;
	font-weight: 700;
}

body.htl-search-open #search-results .bx_item_block > div[style*="clear"] {
	display: none !important;
}

@media (max-width: 768px) {
	body.htl-search-open #search-results,
	body.htl-search-open #search-results.htl-search-results {
		top: 120px !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	body.htl-search-open #search-results .bx_item_block {
		margin-left: -20px !important;
		margin-right: -20px !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

.htl-header .header__theme-toggle {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 28px !important;
	height: 28px !important;
	background: transparent;
	cursor: pointer;
	border-radius: 0;
}

.htl-header .header__theme-toggle:hover {
	background: transparent;
	opacity: 0.85;
}

.htl-header .header__theme-toggle svg {
	display: block;
	width: 24px;
	height: 24px;
}

.htl-header .header__user {
	display: flex !important;
	align-items: center;
}

.htl-header .header__search svg {
	display: block;
	width: 24px;
	height: 24px;
}

.htl-header .header__user svg {
	display: block;
	width: 30px;
	height: 30px;
}

.htl-header .header__user-avatar {
	border-color: rgba(255, 255, 255, 0.35);
}

.htl-header .title-search-input,
.htl-header input[type="text"] {
	color: #fff;
}

/* Catalog page title strip */
.htl-catalog__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 42px;
	padding-bottom: 20px;
	position: relative;
	border-bottom: none;
}

.htl-catalog__head::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 100vw;
	height: 1px;
	background: #898989;
	transform: translateX(-50%);
	pointer-events: none;
}

.htl-catalog__title {
	margin: 0;
	font-size: 36px;
	line-height: 1.1;
	font-weight: 500;
	color: #1c1c1c;
}

.htl-catalog__lead {
	margin: 0;
	color: #1c1c1c;
	font-size: 16px;
	line-height: 1.4;
	white-space: nowrap;
}

.htl-catalog .breadcrumbs,
.htl-catalog + .breadcrumbs,
main > .breadcrumbs:has(+ .htl-catalog) {
	display: none;
}

/* When breadcrumb is before catalog */
.breadcrumbs:has(+ .htl-catalog),
body:has(.htl-catalog) > main > .breadcrumbs {
	display: none;
}

/* Footer */
.footer.htl-footer {
	background: #1c1c1c;
	color: #fff;
}

.htl-footer .footer-top {
	padding: 100px 0 100px !important;
	background: #1c1c1c;
}

.footer.htl-footer .footer-top {
	padding: 100px 0 100px !important;
}

.htl-footer .footer-top__content {
	display: grid;
	grid-template-columns: minmax(140px, 1.1fr) repeat(3, minmax(0, 1fr));
	gap: 20px 48px;
	align-items: start;
}

.htl-footer .footer-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.htl-footer .footer-logo svg {
	display: block;
	width: 96px;
	height: 38px;
}

.htl-footer .footer-logo:hover {
	text-decoration: none;
	opacity: 0.92;
}

.htl-footer .footer-logo img {
	display: none;
}

.htl-footer .footer-logo-contacts {
	display: block;
}

.htl-footer .footer-contacts {
	display: none;
}

.htl-footer .footer-menu-title {
	margin: 0 0 30px;
	font-size: 22px;
	font-weight: 500;
	color: #fff;
}

.htl-footer .footer-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.htl-footer .footer-menu-item {
	margin: 0 0 8px;
}

.htl-footer .footer-menu-item a {
	color: rgba(255, 255, 255, 0.78);
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	transition: color .2s ease;
}

.htl-footer .footer-menu-item a:hover {
	color: #fff;
	text-decoration: none;
}

.htl-footer .footer-menu-download {
	display: block;
}

.htl-footer .footer-download {
	display: none;
}

.htl-footer .footer-contact {
	margin-top: 0;
}

.htl-footer .footer-contact__label {
	margin: 78px 0 6px;
	font-size: 18px;
	color: rgba(255, 255, 255, 0.5);
}

.htl-footer .footer-contact__value,
.htl-footer .footer-contact__value a {
	margin: 0;
	color: #fff;
	font-size: 18px;
	font-weight: 300;
	text-decoration: none;
	text-transform: uppercase;
}

.htl-footer .footer-contact__value a:hover {
	color: #7ac143;
}

.htl-footer .footer-bottom {
	padding: 40px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background: #1c1c1c;
}

.htl-footer .footer-bottom .container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.htl-footer .footer__privacy {
	color: rgba(255, 255, 255, 0.55);
	font-size: 18px;
	text-decoration: none;
}

.htl-footer .footer__privacy:hover {
	color: #fff;
	text-decoration: none;
}

.htl-footer .footer__developer {
	display: none !important;
}

@media (max-width: 1100px) {
	.htl-header__primary-link {
		font-size: 14px;
	}

	.htl-footer .footer-top__content {
		grid-template-columns: 1fr 1fr;
		gap: 36px 32px;
	}
}

@media (max-width: 768px) {
	.htl-header__inner {
		min-height: 60px;
		height: 60px;
		grid-template-columns: auto 1fr auto;
	}

	.htl-header .container.htl-header__inner,
	.htl-search-panel__inner {
		padding-left: 20px;
		padding-right: 20px;
	}

	.htl-search-panel {
		top: 60px;
	}

	.htl-header__primary {
		display: none;
	}

	.htl-header__logo {
		justify-self: start;
		margin-left: 8px;
	}

	.htl-header__logo svg {
		width: 56px;
		height: 22px;
	}

	.htl-header__right {
		gap: 12px;
	}

	.htl-catalog__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		margin-bottom: 24px;
	}

	.htl-catalog__title {
		font-size: 32px;
	}

	.htl-catalog__lead {
		white-space: normal;
	}

	.footer.htl-footer .footer-top,
	.htl-footer .footer-top {
		padding: 48px 0 40px !important;
	}

	.footer.htl-footer .footer-top__content,
	.htl-footer .footer-top__content {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
		width: 100% !important;
		grid-template-columns: none !important;
	}

	.footer.htl-footer .footer-logo-contacts,
	.footer.htl-footer .footer-menu-download,
	.footer.htl-footer .footer-menu-1,
	.footer.htl-footer .footer-menu-2,
	.footer.htl-footer .footer-menu-3,
	.htl-footer .footer-logo-contacts,
	.htl-footer .footer-menu-download,
	.htl-footer .footer-menu-1,
	.htl-footer .footer-menu-2,
	.htl-footer .footer-menu-3 {
		display: block !important;
		grid-column: auto !important;
		grid-row: auto !important;
		margin: 0 !important;
		width: 100%;
	}

	.footer.htl-footer .footer-logo,
	.htl-footer .footer-logo {
		margin-bottom: 0 !important;
		max-width: none !important;
	}

	.htl-footer .footer-logo svg {
		width: 80px;
		height: 32px;
	}

	.htl-footer .footer-menu-title {
		margin-bottom: 16px;
		font-size: 18px;
	}

	.htl-footer .footer-menu-list {
		gap: 12px;
	}

	.htl-footer .footer-menu-item {
		width: auto;
		margin: 0;
	}

	.htl-footer .footer-menu-item a {
		font-size: 16px;
		line-height: 1.35;
	}

	.htl-footer .footer-contact__label {
		margin-top: 24px;
		font-size: 14px;
	}

	.htl-footer .footer-contact__value,
	.htl-footer .footer-contact__value a {
		font-size: 16px;
	}

	.htl-footer .footer-bottom {
		padding: 24px 0;
	}

	.htl-footer .footer__privacy {
		font-size: 14px;
		text-align: center;
		display: block;
	}
}
