/* Каталог SNO: md (768px - 991.98px), media задаётся в catalog/styles */
.catalog-title-scroll h1,
.h1-with-counter h1{
	font-size:1.18rem;
}

#headerPanel{
	padding-top:14px!important;
	margin-top:14px!important;
}

.catalog-toolbar{
	display:flex!important;
	flex-wrap:wrap!important;
	align-items:center!important;
	gap:8px!important;
	padding:0!important;
	margin:0 0 16px 0!important;
	border:none!important;
	overflow:visible!important;
}
.catalog-toolbar > div{
	padding-left:0!important;
	padding-right:0!important;
	margin:0!important;
}

/* 1. Кнопка «Фильтры» */
.catalog-toolbar__filter-btn{
	flex:0 0 auto!important;
	height:38px!important;
	display:inline-flex!important;
	align-items:center!important;
	justify-content:center!important;
	background:#f3f4f6!important;
	border:none!important;
	border-radius:9999px!important;
	color:#1f2937!important;
	font-size:13px!important;
	font-weight:500!important;
	padding:0 12px!important;
	box-shadow:none!important;
	outline:none!important;
	cursor:pointer!important;
	transition:background-color .15s ease, color .15s ease;
}
.catalog-toolbar__filter-btn:hover,
.catalog-toolbar__filter-btn:focus,
.catalog-toolbar__filter-btn:active{
	background:#e5e7eb!important;
	color:#111827!important;
}
.catalog-toolbar__filter-icon{
	width:15px;
	height:15px;
	margin-right:5px;
	stroke:#1f2937;
	fill:none;
	flex-shrink:0;
	transition:stroke .15s ease;
}
.catalog-toolbar__filter-btn:hover .catalog-toolbar__filter-icon,
.catalog-toolbar__filter-btn:focus .catalog-toolbar__filter-icon{
	stroke:#111827;
}

/* Активное состояние кнопки «Фильтры» */
.catalog-toolbar__filter-btn.is-active{
	background:#2C344E!important;
	color:#ffffff!important;
	font-weight:600!important;
}
.catalog-toolbar__filter-btn.is-active .catalog-toolbar__filter-icon{
	stroke:#ffffff;
}
.catalog-toolbar__filter-btn.is-active:hover,
.catalog-toolbar__filter-btn.is-active:focus,
.catalog-toolbar__filter-btn.is-active:active{
	background:#1f2537!important;
	color:#ffffff!important;
}
.catalog-toolbar__filter-btn.is-active:hover .catalog-toolbar__filter-icon,
.catalog-toolbar__filter-btn.is-active:focus .catalog-toolbar__filter-icon{
	stroke:#ffffff;
}
.catalog-toolbar__filter-badge{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-width:18px;
	height:18px;
	padding:0 5px;
	margin-left:5px;
	background:#2C344E;
	color:#ffffff;
	font-size:11px;
	font-weight:700;
	border-radius:9999px;
	line-height:1;
}
.catalog-toolbar__filter-btn.is-active .catalog-toolbar__filter-badge{
	background:#ffffff!important;
	color:#2C344E!important;
}
.catalog-toolbar__filter-badge:empty,
.catalog-toolbar__filter-badge.is-hidden,
.catalog-toolbar__filter-badge[style*="display: none"],
.catalog-toolbar__filter-badge[style*="display:none"]{
	display:none!important;
}

/* 2. Кнопка «Сортировка» */
#orderButton{
	flex:0 0 auto!important;
	min-width:0!important;
	max-width:none!important;
	width:auto!important;
	display:flex!important;
	justify-content:flex-start!important;
	padding:0!important;
	margin:0!important;
}
#orderButton .dropdown,
#orderButton .catalog-sort-control{
	width:auto!important;
}
#orderButton .catalog-text-control__toggle{
	width:auto!important;
	height:38px!important;
	min-height:38px!important;
	display:inline-flex!important;
	align-items:center!important;
	justify-content:center!important;
	gap:4px!important;
	background:#f3f4f6!important;
	border:none!important;
	border-radius:9999px!important;
	padding:0 12px!important;
	color:#1f2937!important;
	font-size:13px!important;
	font-weight:500!important;
	text-decoration:none!important;
	transition:background-color .15s ease, color .15s ease!important;
}
#orderButton .catalog-text-control__toggle:focus-visible,
#orderButton .dropdown.show .catalog-text-control__toggle{
	background:#e5e7eb!important;
	color:#111827!important;
}
#orderButton .catalog-text-control__toggle:focus-visible .catalog-toolbar__sort-icon,
#orderButton .dropdown.show .catalog-text-control__toggle .catalog-toolbar__sort-icon{
	stroke:#111827;
}
#orderButton .catalog-text-control__toggle .sort-label-text{
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
	text-align:left;
}
#orderButton .catalog-text-control__toggle:after{
	margin-left:2px;
	flex:0 0 auto;
	border-top-color:#6b7280;
}
.catalog-toolbar__sort-icon,
#orderButton .catalog-toolbar__sort-icon{
	width:14px!important;
	height:14px!important;
	flex:0 0 14px;
	margin-right:4px;
	vertical-align:middle;
}

/* 3. Кнопка «Лимит на странице» */
#showOnPageBlock{
	flex:0 0 auto!important;
	width:auto!important;
	max-width:none!important;
	display:flex!important;
	justify-content:flex-start!important;
	padding:0!important;
	margin:0!important;
}
#showOnPageBlock .catalog-show-count,
#showOnPageBlock .show-on-page-dropdown{
	width:auto!important;
}
#showOnPageBlock .catalog-text-control__toggle{
	width:auto!important;
	height:38px!important;
	min-height:38px!important;
	display:inline-flex!important;
	align-items:center!important;
	justify-content:center!important;
	background:#f3f4f6!important;
	border:none!important;
	border-radius:9999px!important;
	padding:0 12px!important;
	color:#1f2937!important;
	font-size:13px!important;
	font-weight:500!important;
	text-decoration:none!important;
	transition:background-color .15s ease, color .15s ease!important;
}
#showOnPageBlock .catalog-text-control__toggle:after{
	margin-left:4px;
	flex:0 0 auto;
	border-top-color:#6b7280;
}

/* 4. Компактная пагинация-степпер на планшете */
#paginatorTop{
	flex:0 0 auto!important;
	width:auto!important;
	max-width:none!important;
	display:inline-flex!important;
	justify-content:flex-start!important;
	align-items:center!important;
	padding:0!important;
	margin:0!important;
	overflow:visible!important;
	position:relative!important;
}
#paginatorTop .catalog-stepper__menu{
	left:0!important;
	right:auto!important;
	top:100%!important;
	min-width:240px!important;
	max-width:calc(100vw - 32px)!important;
}

/* Активные фильтры */
.catalog-active-filters__inner{
	overflow-x:auto;
	overflow-y:hidden;
	-webkit-overflow-scrolling:touch;
	scrollbar-width:none;
}
.catalog-active-filters__inner::-webkit-scrollbar{
	display:none;
	width:0;
	height:0;
}
.catalog-filter-chip,
.catalog-filter-reset{
	flex:0 0 auto;
}

/* Кнопка «Загрузить еще» */
.catalog-load-more{
	padding-top:20px;
}
.catalog-load-more__button{
	width:100%;
	min-width:0;
}

/* Полноэкранная мобильная шторка фильтров */
body.catalog-filter-open{
	overflow:hidden!important;
}
body.catalog-filter-open jdiv#jvLabelWrap,
body.catalog-filter-open .__jivoMobileButton{
	display:none!important;
}
#filter.collapse.show,
#filter.collapsing{
	position:fixed!important;
	top:0!important;
	left:0!important;
	right:0!important;
	bottom:0!important;
	width:100%!important;
	max-width:100%!important;
	height:100%!important;
	max-height:100%!important;
	z-index:1045!important;
	overflow-y:auto!important;
	-webkit-overflow-scrolling:touch;
	background:#ffffff!important;
	padding:0 16px 84px 16px!important;
	margin:0!important;
}
.catalog-filter-panel{
	min-height:100%;
	background:#ffffff;
}
.catalog-filter-topbar{
	position:sticky;
	top:0;
	z-index:10;
	display:flex;
	align-items:center;
	justify-content:space-between;
	height:52px;
	background:#ffffff;
	margin:0 -16px 12px -16px;
	padding:0 16px;
	border-bottom:1px solid #f0ece8;
}
.catalog-filter-topbar__reset{
	background:none;
	border:none;
	padding:6px 4px;
	font-size:13px;
	font-weight:500;
	color:#6c757d;
	cursor:pointer;
}
.catalog-filter-topbar__reset:hover{
	color:#2C344E;
	text-decoration:underline;
}
.catalog-filter-mobile-footer{
	position:fixed;
	bottom:0;
	left:0;
	right:0;
	z-index:1046!important;
	padding:12px 16px;
	background:#ffffff;
	border-top:1px solid #f0ece8;
	box-shadow:0 -8px 20px rgba(0, 0, 0, 0.06);
}
.catalog-filter-apply-btn{
	width:100%;
	height:44px;
	display:flex;
	align-items:center;
	justify-content:center;
	background:#2C344E!important;
	color:#ffffff!important;
	border:none!important;
	border-radius:9999px!important;
	font-size:14px;
	font-weight:600;
	box-shadow:0 2px 8px rgba(44, 52, 78, 0.2);
}
.catalog-filter-apply-btn:hover,
.catalog-filter-apply-btn:active{
	background:#1f2537!important;
	color:#ffffff!important;
}
#filterButtons,
#filterForm > input[type="submit"],
#filter input[type="submit"]{
	display:none!important;
}

@media (hover: hover) and (pointer: fine) {
	#orderButton .catalog-text-control__toggle:hover,
	#showOnPageBlock .catalog-text-control__toggle:hover{
		background:#e5e7eb!important;
		color:#111827!important;
	}
	#orderButton .catalog-text-control__toggle:hover .catalog-toolbar__sort-icon{
		stroke:#111827;
	}
}
