.headerLineMenu2>ul>li:first-child>.selected {
	background-color: transparent;
}
.index-banners .elem-column a[href="https://new.hafeleshop.ru/new/"] .text-wrap .btn-simple.btn-micro {
    margin-top: 125px;
}
.slideBox>li {
	position: relative;
}
.slideBox>li .slideBox-link {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}
#slider ol.pager {
    z-index: 2;
}
#slider .sliderContent .bigTextLight.bigTextLight-bottom {
    margin-top: 26%;
    font-size: 30px;
    line-height: 33px;
}
#subHeader7 .secondPhones.header-mail {
    display:inline-flex;
    align-items: center;
	column-gap: 10px;
}
#subHeader7 .secondPhones.header-mail a {
	color: #c81938;
    position: relative;
    text-decoration: none;
}
#subHeader7 .secondPhones.header-mail a::after {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 0;
    transition: all .2s ease-in-out;
    content: "";
    border-bottom: 1px dashed #c81938;
}
#headerLine4 .topSocItem a.socMax {
	background-image:url(/bitrix/templates/dresscode/headers/header7/css/images/max_30.webp);
    background-size: contain;

}
@media (max-width:1800px) {
	.index-banners .elem-column a[href="https://new.hafeleshop.ru/new/"] .text-wrap .btn-simple.btn-micro {
		margin-top: 115px;
		margin-left: clamp(20px, 2.3vw, 50px);
	}
}
@media (max-width:1530px) {
	#slider .sliderContent .bigTextLight.bigTextLight-bottom {
    	margin-top: 23%;
	}
}
@media (max-width:1340px) {
	#subHeader7 .secondPhones.header-mail {
		padding-left: 15px;
	}
	#subHeader7 .secondPhones.header-mail>svg {
		display:none;
	}
}
@media (max-width:1300px) {
	#slider .sliderContent .bigTextLight.bigTextLight-bottom {
    	margin-top: 17%;
	}
}
@media (max-width:1240px) and (min-width:525px) {
	#subHeader7 .subTableRow .subTableColumn:nth-child(3) {
        width: 320px;
    }
}
@media (max-width:1024px) {
	.index-banners .elem-column a[href="https://new.hafeleshop.ru/new/"] .text-wrap .btn-simple.btn-micro {
		margin-left: 10px;
	}
}
@media (max-width:760px) and (min-width:525px) {
	#subHeader7 .verticalBlock #logo {
        width: 160px;
    }
	#subHeader7 .subTable .subTableColumn:first-child {
        width: 160px;
    }
	#subHeader7 .subTableColumn .phonesContainer {
    	margin-right: 0;
	}
	#subHeader7 .subTableRow .subTableColumn:nth-child(3) {
        width: 296px;
    }
	#subHeader7 .subTableRow .subTableColumn:nth-child(2) {
    	padding-right: 0;
    	width: 0;
	}
}
@media (max-width:700px) and (min-width:601px) {
	#subHeader7 .subTableRow .subTableColumn:nth-child(3) {
        width: 215px;
    }
	#subHeader7 .subTable .subTableColumn:first-child {
        width: 110px;
    }
	#subHeader7 .subTable .subTableColumn:last-child {
        width: 82px;
    }
}
@media (max-width:590px) {
	#slider .sliderContent .bigTextLight.bigTextLight-bottom {
    	margin-top: 10%;
    	font-size: 25px;
    	line-height: 28px;
	}
}
@media (max-width:525px) {
	#subHeader7 .secondPhones.header-mail {
		display:none;
	}
}
@media (max-width:480px) {
	#slider .sliderContent .bigTextLight.bigTextLight-bottom {
    	margin-top: 0;
    	font-size: 22px;
    	line-height: 22px;
	}
	#slider .sliderContent {
		width: 100% !important;
	}
}
@media (max-width:360px) {
	#slider .sliderContent .bigTextLight.bigTextLight-bottom {
    	font-size: 18px;
    	line-height: 20px;
	}
	#main.color_black #slider .sliderContent {
		padding: 0 12px;
	}
}


/* === Custom overrides === */

/* Task 3: Show article in product right sidebar */
.reviewsBtnWrap .row.article {
    display: block;
    margin-top: 5px;
}

/* Task 5: Swatch text below image */
.sku-grid-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: top;
}
.sku-grid-link {
    display: block;
    text-decoration: none;
}
.sku-grid-link img {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: cover;
}
.sku-color-label {
    display: block;
    text-align: center;
    font-size: 11px;
    margin-top: 5px;
    line-height: 1.3;
    max-width: 70px;
    word-break: break-word;
    color: #333;
}


/* Email share button */
.row.share-items .ya-share2 {
    display: inline-block;
    vertical-align: middle;
}
.custom-email-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #888;
    color: #fff;
    vertical-align: middle;
    margin-left: 4px;
    text-decoration: none;
    transition: background 0.2s;
}
.custom-email-share:hover {
    background: #555;
    color: #fff;
}
.custom-email-share svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

#headerLine4 .topSocItem a.socMAIL {
	background-image: url(/bitrix/templates/dresscode/headers/header7/css/images/mail_30.svg);
	background-size: contain;
	background-position: 0 0;
	filter: none !important;
}

/* === hafeleshop custom overrides === */

/* 2) Hide popular brands block */
#brandList { display: none !important; }

/* 3) Hide retail price filter */
#smartFilter .paramsBox:has(input[name="arrFilter_P1_MIN"]),
#smartFilter .paramsBox:has(#sl_1) {
	display: none !important;
}

/* 6) Hide wishlist & compare */
.topCompare,
.topWishlist,
#flushTopCompare,
#flushTopwishlist,
#footerLine .compare,
#footerLine .wishlist,
#flushFooterCart .item:has(.compare),
#flushFooterCart .item:has(.wishlist),
.addCompare,
.addWishlist,
.label.addCompare,
.label.addWishlist,
.item .compare,
.item .wishlist,
a.compare,
a.wishlist {
	display: none !important;
}

/* 7) Text selection: brand red instead of yellow */
::selection {
	color: #fff;
	background: #c81938;
}
::-moz-selection {
	color: #fff;
	background: #c81938;
}
::-webkit-selection {
	color: #fff;
	background: #c81938;
}

/* 8) Envelope icon hover — SVG swap, only stroke turns red */
#headerLine4 .topSocItem a.socMAIL:hover {
	filter: none !important;
	background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'><rect width='30' height='30' rx='7' fill='%236B7280'/><path d='M8 10h14a1.5 1.5 0 0 1 1.5 1.5v9A1.5 1.5 0 0 1 22 22H8a1.5 1.5 0 0 1-1.5-1.5v-9A1.5 1.5 0 0 1 8 10z' stroke='%23c81938' stroke-width='1.5' fill='none'/><path d='M6.5 10.5L15 16.5l8.5-6' stroke='%23c81938' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}
#subHeader7 .secondPhones.header-mail svg {
	transition: fill .2s ease;
}
#subHeader7 .secondPhones.header-mail:hover svg {
	fill: #c81938;
}
#subHeader7 .secondPhones.header-mail:hover a {
	color: #c81938;
}
#subHeader7 .secondPhones.header-mail:hover a::after {
	border-bottom-color: #c81938;
}


/* hide refine section + fr3d files on product cards */
#nextSection { display: none !important; }
#files .item:has(a[href$=".fr3d"]),
#files .item:has(a[href*=".fr3d?"]),
#files .items .item:has(a[href$=".fr3d"]),
#files a[href$=".fr3d"],
#elementContainer #files .item:has(a[href$=".fr3d"]),
div#files .item:has(> .tb a[href$=".fr3d"]),
div#files .item:has(.icon a[href$=".fr3d"]) { display: none !important; }

/* === 2026-08-10 header6 fixes (geo / mail / cart empty) === */

#geoPosition,
#subHeader6 #geoPosition,
.user-geo-position {
	display: none !important;
}

#subHeader6 .subPhones.phonesContainer {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	text-align: right;
}
#subHeader6 .subPhones .firstPhones .heading {
	display: inline-block;
	margin-right: 12px;
	font-size: 16px;
	font-family: robotomedium, sans-serif;
	color: #fff;
}
#subHeader6 .secondPhones.header-mail {
	display: inline-flex;
	align-items: center;
	column-gap: 10px;
}
#subHeader6 .secondPhones.header-mail .heading {
	display: block;
	color: #fff;
	font-size: 14px;
}
#subHeader6 .secondPhones.header-mail a {
	color: #c81938;
	position: relative;
	text-decoration: none;
	font-size: 13px;
}
#subHeader6 .secondPhones.header-mail a::after {
	position: absolute;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 0;
	content: "";
	border-bottom: 1px dashed #c81938;
}
@media (max-width: 1340px) {
	#subHeader6 .secondPhones.header-mail > svg { display: none; }
}
@media (max-width: 525px) {
	#subHeader6 .secondPhones.header-mail { display: none; }
}

/* Hide filter value counts (N) — 2026-08-10 elCount hide filter counts */
#smartFilter ins.elCount,
#smartFilter [data-role^="count_"] {
	display: none !important;
}

/* ins.elCount global */
ins.elCount,
[data-role^="count_arrFilter"] {
	display: none !important;
	font-size: 0 !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* === 2026-08-10 header6 layout per approved mockup === */
@media (min-width: 901px) {
	#subHeader6 {
		height: 102px !important;
		line-height: 102px !important;
	}
	#subHeader6 > .limiter,
	#subHeader6 .subTable {
		position: relative;
		height: 102px;
	}

	/* Left: auth + cart on first line, search below */
	#subHeader6 .subTableColumn:first-child {
		float: none !important;
		position: static !important;
		width: auto !important;
	}
	#subHeader6 #topAuth {
		position: absolute !important;
		top: 11px !important;
		left: 16px !important;
		z-index: 98;
		margin: 0 !important;
		line-height: 21px !important;
	}
	#subHeader6 .toolsContainer {
		position: absolute !important;
		top: 5px !important;
		left: 140px !important;
		z-index: 98;
		margin: 0 !important;
		line-height: 34px !important;
		text-align: left !important;
	}
	#subHeader6 .toolsContainer .cart {
		float: none !important;
		margin: 0 !important;
	}
	#subHeader6 #topSearchLine {
		position: absolute !important;
		top: 46px !important;
		left: 16px !important;
		z-index: 97;
		box-sizing: border-box;
		width: 275px !important;
		padding: 0 !important;
		line-height: 21px !important;
	}
	#subHeader6 #topSearch2 {
		width: 100% !important;
		margin: 0 !important;
	}

	/* Center: large white logo */
	#subHeader6 .subTableColumn:last-child {
		position: absolute !important;
		top: 0 !important;
		left: 50% !important;
		float: none !important;
		width: 390px !important;
		height: 102px !important;
		margin: 0 !important;
		transform: translateX(-50%);
		text-align: center !important;
	}
	#subHeader6 .subTableColumn:last-child .verticalBlock {
		line-height: 102px !important;
	}
	#subHeader6 #logo {
		float: none !important;
		display: inline-block !important;
		height: 64px !important;
		max-height: 64px !important;
		line-height: 64px !important;
		padding: 0 !important;
		vertical-align: middle;
	}
	#subHeader6 #logo img {
		width: 370px !important;
		max-width: 100% !important;
		height: auto !important;
		max-height: 64px !important;
	}
	#subHeader6 #topHeading { display: none !important; }

	/* Right: phone/button, email below */
	#subHeader6 .subTableColumn:nth-child(2) {
		position: absolute !important;
		top: 11px !important;
		right: 16px !important;
		float: none !important;
		width: 300px !important;
		line-height: 21px !important;
		text-align: right !important;
	}
	#subHeader6 .subTableColumn:nth-child(2) > .verticalBlock {
		line-height: 21px !important;
	}
	#subHeader6 .subPhones.phonesContainer {
		gap: 6px !important;
	}
	#subHeader6 .subPhones .firstPhones {
		white-space: nowrap;
	}
	#subHeader6 .subPhones .firstPhones .heading {
		margin-right: 14px !important;
	}
	#subHeader6 .subPhones .callBack {
		padding: 10px 22px !important;
	}
	#subHeader6 .secondPhones.header-mail {
		min-width: 245px;
		justify-content: flex-end;
	}
	#subHeader6 .secondPhones.header-mail .phonesTc {
		display: flex;
		align-items: center;
		gap: 38px;
		white-space: nowrap;
	}
	#subHeader6 .secondPhones.header-mail svg { display: none !important; }

	/* Compact navigation row as in mockup */
	#headerLine3 {
		height: 38px !important;
		line-height: 38px !important;
	}
	#headerLine3 #subMenu li a {
		line-height: 38px !important;
	}
}

@media (min-width: 901px) and (max-width: 1120px) {
	#subHeader6 .subTableColumn:last-child {
		width: 360px !important;
	}
	#subHeader6 #logo img {
		width: 350px !important;
	}
	#subHeader6 .subTableColumn:nth-child(2) {
		width: 290px !important;
	}
}

/* === 2026-08-10 approved header exact fixes === */
@media (min-width: 901px) {
	#subHeader6 .subPhones .firstPhones .heading,
	#subHeader6 .secondPhones.header-mail .heading {
		display: inline-block !important;
	}
	#subHeader6 #logo {
		width: 350px !important;
		max-width: 350px !important;
	}
	#subHeader6 #logo img {
		width: 350px !important;
		max-width: 350px !important;
	}
}

/* === 2026-08-10 approved header: clean text logo + compact contacts === */
@media (min-width: 901px) {
	#subHeader6 #logo {
		width: 390px !important;
		max-width: 390px !important;
		overflow: visible !important;
	}
	#subHeader6 #logo img {
		display: none !important;
	}
	#subHeader6 #logo > span,
	#subHeader6 #logo > a {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 390px;
		height: 64px;
		color: #fff !important;
		text-decoration: none !important;
	}
	#subHeader6 #logo > span::after,
	#subHeader6 #logo > a::after {
		content: "ООО «Умные решения Рус»";
		font-family: Arial, sans-serif;
		font-size: 27px;
		font-weight: 700;
		line-height: 1;
		white-space: nowrap;
	}
	#subHeader6 .subPhones .firstPhones .heading {
		margin-right: 10px !important;
		font-size: 13px !important;
	}
	#subHeader6 .subPhones .callBack {
		padding: 9px 14px !important;
		font-size: 13px !important;
	}
}

/* Prevent center logo from overlapping right contacts */
@media (min-width: 901px) {
	#subHeader6 .subTableColumn:last-child { z-index: 1; }
	#subHeader6 .subTableColumn:nth-child(2) { z-index: 2; }
	#subHeader6 #logo > span::after,
	#subHeader6 #logo > a::after {
		font-size: 22px !important;
	}
}

/* === 2026-08-10 final header proportions — reference 1024x140 === */
@media (min-width: 901px) {
	#subHeader6 {
		height: 130px !important;
		line-height: 130px !important;
	}
	#subHeader6 > .limiter,
	#subHeader6 .subTable {
		height: 130px !important;
	}

	#subHeader6 #topAuth {
		top: 14px !important;
		left: 0 !important;
		font-size: 16px !important;
	}
	#subHeader6 .toolsContainer {
		top: 7px !important;
		left: 178px !important;
		line-height: 42px !important;
	}
	#subHeader6 .cart .heading,
	#subHeader6 .cart .total {
		font-size: 16px !important;
	}

	#subHeader6 #topSearchLine {
		top: 60px !important;
		left: 0 !important;
		width: 365px !important;
	}
	#subHeader6 #topSearch2,
	#subHeader6 #topSearch2 .searchContainerInner {
		height: 56px !important;
	}
	#subHeader6 #topSearch2 #searchQuery {
		height: 54px !important;
		font-size: 17px !important;
	}

	#subHeader6 .subTableColumn:last-child {
		width: 500px !important;
		height: 130px !important;
	}
	#subHeader6 .subTableColumn:last-child .verticalBlock {
		line-height: 130px !important;
	}
	#subHeader6 #logo {
		width: 500px !important;
		max-width: 500px !important;
		height: 76px !important;
		max-height: 76px !important;
		line-height: 76px !important;
	}
	#subHeader6 #logo > span,
	#subHeader6 #logo > a {
		width: 500px !important;
		height: 76px !important;
	}
	#subHeader6 #logo > span::after,
	#subHeader6 #logo > a::after {
		font-size: 34px !important;
	}

	#subHeader6 .subTableColumn:nth-child(2) {
		top: 15px !important;
		right: 0 !important;
		width: 330px !important;
	}
	#subHeader6 .subPhones .firstPhones .heading {
		font-size: 16px !important;
		margin-right: 14px !important;
	}
	#subHeader6 .subPhones .callBack {
		padding: 11px 20px !important;
		font-size: 16px !important;
	}
	#subHeader6 .secondPhones.header-mail {
		min-width: 280px !important;
	}
	#subHeader6 .secondPhones.header-mail .phonesTc {
		gap: 42px !important;
	}
	#subHeader6 .secondPhones.header-mail .heading,
	#subHeader6 .secondPhones.header-mail a {
		font-size: 16px !important;
	}

	#headerLine3 {
		height: 46px !important;
		line-height: 46px !important;
	}
	#headerLine3 #subMenu li {
		font-size: 16px !important;
	}
	#headerLine3 #subMenu li a {
		line-height: 46px !important;
	}
}

/* === 2026-08-10 pixel match against approved 1024x140 reference === */
@media (min-width: 901px) {
	/* Header/menu boundary: current y100 -> target y103 */
	#subHeader6 {
		height: 134px !important;
		line-height: 134px !important;
	}
	#subHeader6 > .limiter,
	#subHeader6 .subTable {
		height: 134px !important;
	}

	/* Search: current 16..270 / y50..90 -> target 16..290 / y47..84 */
	#subHeader6 #topSearchLine {
		top: 56px !important;
		width: 394px !important;
	}
	#subHeader6 #topSearch2,
	#subHeader6 #topSearch2 .searchContainerInner {
		height: 48px !important;
	}
	#subHeader6 #topSearch2 #searchQuery {
		height: 46px !important;
	}

	/* Cart: 6px left, icon/text vertically centered */
	#subHeader6 .toolsContainer {
		left: 170px !important;
		top: 3px !important;
	}
	#subHeader6 #flushTopCart {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		height: 46px !important;
	}
	#subHeader6 #flushTopCart .countLink,
	#subHeader6 #flushTopCart .heading {
		display: inline-flex !important;
		align-items: center !important;
		margin: 0 !important;
		line-height: 22px !important;
	}

	/* Logo: same left edge, +15% text width */
	#subHeader6 .subTableColumn:last-child {
		height: 134px !important;
	}
	#subHeader6 .subTableColumn:last-child .verticalBlock {
		line-height: 134px !important;
	}
	#subHeader6 #logo > span::after,
	#subHeader6 #logo > a::after {
		font-size: 39px !important;
	}

	/* Phone stays on first row; mail moves down and spans target width */
	#subHeader6 .subPhones .firstPhones .heading,
	#subHeader6 .subPhones .callBack {
		font-size: 17px !important;
	}
	#subHeader6 .secondPhones.header-mail {
		min-width: 335px !important;
		margin-top: 24px !important;
	}
	#subHeader6 .secondPhones.header-mail .phonesTc {
		width: 335px !important;
		justify-content: space-between !important;
		gap: 0 !important;
	}
	#subHeader6 .secondPhones.header-mail .heading,
	#subHeader6 .secondPhones.header-mail a {
		font-size: 16px !important;
	}
}

/* === 2026-08-10 exact callback frame/contact grid === */
@media (min-width: 901px) {
	#subHeader6 .subTableColumn:nth-child(2) {
		right: 7px !important;
		width: 344px !important;
	}
	#subHeader6 .subPhones.phonesContainer {
		width: 344px !important;
		align-items: stretch !important;
	}
	#subHeader6 .subPhones .firstPhones {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		width: 344px !important;
	}
	#subHeader6 .subPhones .firstPhones .heading {
		margin: 0 !important;
	}
	#subHeader6 .subPhones .callBack {
		box-sizing: border-box !important;
		padding: 10px 12px !important;
		line-height: 18px !important;
	}
	#subHeader6 .secondPhones.header-mail,
	#subHeader6 .secondPhones.header-mail .phonesTc {
		width: 335px !important;
		min-width: 335px !important;
		box-sizing: border-box !important;
	}
}

/* Final contact coordinates against reference */
@media (min-width: 901px) {
	#subHeader6 .subTableColumn:nth-child(2) {
		right: 0 !important;
	}
	#subHeader6 .secondPhones.header-mail,
	#subHeader6 .secondPhones.header-mail .phonesTc {
		width: 327px !important;
		min-width: 327px !important;
	}
	#subHeader6 .secondPhones.header-mail {
		margin-left: 11px !important;
	}
}

/* Laptop header: keep search clear of the centered company name */
@media (min-width: 901px) and (max-width: 1366px) {
	#subHeader6 #topSearchLine {
		width: 320px !important;
	}
}
