/* Стили страницы скидок: layout коллекций + legacy-фильтр
   Скопировано из www/assets/css/style.css и www/assets/css/header.css */

/* ── Layout ─────────────────────────────────────────────────────────────── */

.collections-page {
	padding-left: 96px;
	padding-right: 96px;
	position: relative;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-webkit-flex-flow: row wrap;
	-ms-flex-flow: row wrap;
	flex-flow: row wrap;
	max-width: 1920px;
	margin: 0 auto;
}

.collections-page .page-title {
	width: 100%;
	font-family: GothaProMed, sans-serif;
	font-size: 48px;
	line-height: 80px;
	margin-top: 0;
	margin-bottom: 50px;
	position: relative;
}

.collections-page .page-title .temp_msg {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	font-size: 13px;
	line-height: 18px;
	color: #999;
	font-family: GothaProReg, sans-serif;
	font-weight: 400;
	padding: 10px 40px;
	max-width: 470px;
}

.collections-page .collections-wrapper {
	position: relative;
	display: block;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	width: 75%;
}

/* ── Кнопка открытия фильтра (mobile) ───────────────────────────────────── */

.collections-page .filter_btn {
	position: absolute;
	display: none;
	right: 0;
	top: 0;
	padding: 20px 40px 20px 20px;
	background: #f5f5f5;
	z-index: 2;
	cursor: pointer;
}

.collections-page .filter_btn.fx {
	position: fixed;
}

.collections-page .filter_btn svg {
	position: relative;
	display: block;
	fill: #191a26;
}

/* ── Панель фильтра ─────────────────────────────────────────────────────── */

.collections-page .filter {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	position: relative;
	width: 25%;
	padding-left: 50px;
	height: 100%;
}

.collections-page div[id^="bx_incl"] > .filter {
	width: 100%;
}

.collections-page .filter:before {
	content: '';
	position: absolute;
	background-color: #f5f5f5;
	height: 100%;
	width: 1px;
	top: 0;
	left: 4%;
}

.collections-page .filter .close_btn {
	position: absolute;
	display: none;
	right: -7px;
	top: 7px;
	width: 22px;
	height: 22px;
	cursor: pointer;
	overflow: hidden;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.collections-page .filter .close_btn span {
	position: relative;
	display: block;
	height: 2px;
	width: 22px;
	margin-top: 10px;
	background-color: #191a26;
}

.collections-page .filter .close_btn span:after,
.collections-page .filter .close_btn span:before {
	position: absolute;
	display: block;
	content: '';
	background-color: #191a26;
	height: 100%;
	width: 50%;
	top: -7px;
	left: 5px;
	z-index: 1;
}

.collections-page .filter .close_btn span:after {
	top: 7px;
}

.collections-page .filter .filter-head {
	position: relative;
	display: block;
	font-size: 18px;
	margin-bottom: 10px;
	padding-bottom: 20px;
	padding-right: 30px;
	font-family: GothaProMed, sans-serif;
	border-bottom: 2px solid #000;
}

.collections-page .filter .filter-body .filter-block {
	position: relative;
	/* padding-top: 20px; */
	padding-bottom: 10px;
	overflow: hidden;
	-webkit-transition: all 1s ease;
	transition: all 1s ease;
	max-height: 500px;
}

.collections-page .filter-wrapper {
	margin-bottom: 20px;
}

.collections-page .filter .filter-body .filter-block .filter-title {
	font-family: GothaProMed, sans-serif;
	color: rgba(0, 0, 0, .75);
	position: relative;
	font-size: 11px;
	line-height: 50px;
	text-transform: uppercase;
	margin-bottom: 5px;
	cursor: pointer;
}

.collections-page .filter .filter-body .filter-block .filter-title:after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	width: 0;
	height: 0;
	-webkit-transform-origin: center;
	-ms-transform-origin: center;
	transform-origin: center;
	border-bottom: 5px solid #999;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	-webkit-transition: all .3s ease;
	transition: all .3s ease;
}

.collections-page .filter .filter-body .filter-block label {
	color: #6c6262;
	cursor: pointer;
	background-color: #ededed;
	display: inline-block;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	padding: 2px 7px;
	margin-right: 3px;
	margin-bottom: 8px;
	max-width: 140px;
	height: 21px;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 14px;
	-webkit-transition: all .2s ease;
	transition: all .2s ease;
}

.collections-page .filter .filter-body .filter-block label:hover {
	background: #e0e0e0;
}

.collections-page .filter .filter-body .filter-block label input {
	display: none;
}

.collections-page .filter .filter-body .filter-block label.active {
	color: #490E67;
	background-color: #C7ABCE;
}

.collections-page .filter .filter-body .filter-block:after {
	position: absolute;
	content: '';
	width: 100%;
	height: 1px;
	bottom: 0;
	left: 0;
	background-color: #e5e5e5;
}

.collections-page .filter .filter-body .filter-block.hidden {
	max-height: 45px;
}

.collections-page .filter .filter-body .filter-block.hidden .filter-title:after {
	-webkit-transform: translateY(-50%) scale(1, -1);
	-ms-transform: translateY(-50%) scale(1, -1);
	transform: translateY(-50%) scale(1, -1);
}

.collections-page .filter .filter-body .clear-filter {
	cursor: pointer;
	margin-top: 20px;
	display: inline-block;
	font-size: 12px;
	line-height: 24px;
	color: #6c6262;
	border-bottom: 1px dashed #6c6262;
}

/* mCustomScrollbar */
.collections-page #mCSB_1_scrollbar_vertical {
	visibility: hidden !important;
	z-index: -1;
}

.collections-page #mCSB_1_container {
	margin-right: 0 !important;
}

/* ── Скидки: products-grid внутри 75%-колонки ───────────────────────────── */

.discounts-page .collections-wrapper .products-grid {
	grid-template-columns: repeat(4, 1fr);
}

/* ── Кнопки «Показать» / «Сбросить» ─────────────────────────────────────── */

.discounts-page .filter .filter-actions {
	margin-top: 24px;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;
	gap: 12px;
}

.discounts-page .filter .apply-filter {
	cursor: pointer;
	display: inline-block;
	font-family: GothaProMed, sans-serif;
	font-size: 12px;
	line-height: 1;
	color: #fff;
	background: #6c6262;
	padding: 10px 24px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	text-align: center;
	-webkit-transition: background 0.2s ease;
	transition: background 0.2s ease;
}

.discounts-page .filter .apply-filter:hover {
	background: #4a4040;
}

.discounts-page .bx-filter,
.discounts-page .smartfilter > .row {
	display: none;
}

.discounts-page .bx-filter-popup-result {
	margin-top: 12px;
	font-size: 12px;
	color: #999;
}

/* ── Адаптив ────────────────────────────────────────────────────────────── */

@media (max-width: 1600px) {
	.collections-page {
		padding-left: 60px;
		padding-right: 60px;
	}

	.collections-page .collections-wrapper {
		width: 70%;
	}

	.collections-page .filter {
		width: 30%;
	}
}

@media (max-width: 1400px) {
	.discounts-page .collections-wrapper .products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 992px) {
	.discounts-page .collections-wrapper .products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 800px) {
	.collections-page {
		padding-left: 40px;
		padding-right: 40px;
	}

	.collections-page .page-title {
		font-size: 36px;
		line-height: 64px;
	}

	.collections-page .page-title .temp_msg {
		display: block;
		padding: 10px 0;
	}

	.collections-page .collections-wrapper {
		width: 100%;
	}

	.collections-page .filter_btn {
		display: block;
	}

	.collections-page .filter {
		position: fixed;
		top: 0;
		right: 0;
		width: 50%;
		min-width: 320px;
		z-index: 3;
		background: #f8f8f8;
		padding: 0 20px 0 0;
		-webkit-transform: translateX(100%);
		-ms-transform: translateX(100%);
		transform: translateX(100%);
		-webkit-transition: all .3s ease;
		transition: all .3s ease;
	}

	.collections-page .filter.active {
		-webkit-transform: translateX(0);
		-ms-transform: translateX(0);
		transform: translateX(0);
	}

	.collections-page .filter .filter-wrapper {
		padding: 60px 20px 60px 40px;
	}

	.collections-page .filter:before {
		display: none;
	}

	.collections-page .filter .close_btn {
		display: block;
	}
}

@media (max-width: 767px) {
	.discounts-page .collections-wrapper .products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.collections-page .filter .filter-wrapper {
		padding: 60px 0 60px 30px;
	}
}

@media (max-width: 576px) {
	.discounts-page .collections-wrapper .products-grid {
		grid-template-columns: 1fr;
	}
}
