/* =====================================================================
   NOUT.KG — каталог: подкатегории, панель сортировки и фильтр.
   Подключается в header.php последним из файлов nout (только s2).
   Шире 1024px фильтр стоит в левой колонке, уже — открывается шторкой снизу
   по кнопке «Фильтры» (класс .opened ставит catalog/.default/script.js).
   ===================================================================== */

/* ---------- Подкатегории раздела: компактные чипы вместо больших плиток ---------- */
html body.site-s2 #catalog .catalog-section-list-pictures {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	height: auto !important;
	margin: 0 0 16px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
}
html body.site-s2 #catalog .catalog-section-list-pictures::before,
html body.site-s2 #catalog .catalog-section-list-pictures::after { display: none !important; }
html body.site-s2 #catalog .catalog-section-list-item {
	float: none !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}
html body.site-s2 #catalog .catalog-section-list-item-wp {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 10px;
	width: auto !important;
	height: auto !important;
	min-height: 48px;
	margin: 0 !important;
	padding: 6px 18px 6px 6px !important;
	border: 1px solid #dfe8f2 !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: none !important;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
html body.site-s2 #catalog .catalog-section-list-item-wp:hover {
	border-color: var(--n-blue) !important;
	box-shadow: 0 6px 16px rgb(11 116 222 / 12%) !important;
	transform: translateY(-1px);
}
html body.site-s2 #catalog .catalog-section-list-picture {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px !important;
	height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50%;
	background: #f1f6fc !important;
	overflow: hidden;
}
html body.site-s2 #catalog .catalog-section-list-picture img {
	display: block;
	width: 24px !important;
	height: 24px !important;
	max-width: 24px !important;
	max-height: 24px !important;
	margin: 0 !important;
	object-fit: contain;
}
html body.site-s2 #catalog .catalog-section-list-link {
	display: block !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #0c305b !important;
	font: 14px/1.3 robotomedium, robotobold, arial, sans-serif !important;
	text-align: left !important;
	text-decoration: none !important;
	white-space: nowrap;
}
/* Кликабельна вся пилюля, а не только текст */
html body.site-s2 #catalog .catalog-section-list-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
html body.site-s2 #catalog .catalog-section-list-link span { display: inline !important; height: auto !important; line-height: inherit !important; }

/* ---------- Панель над товарами ---------- */
html body.site-s2 #main #catalogLine {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 0 16px !important;
	padding: 10px 12px 10px 16px !important;
	border: 1px solid #e3ebf5 !important;
	border-radius: 16px !important;
	background: #fff !important;
	box-shadow: 0 4px 14px rgb(10 37 64 / 5%) !important;
	overflow: visible !important;
}
html body.site-s2 #main #catalogLine .column {
	display: flex !important;
	flex: 0 0 auto !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 10px;
	float: none !important;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	line-height: 1.3 !important;
}
html body.site-s2 #main #catalogLine .column:has(.viewList) { margin-left: auto !important; }
html body.site-s2 #main #catalogLine .column:has(.viewList) .label { display: none !important; }
html body.site-s2 #main #catalogLine .label {
	display: block !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #6a819a !important;
	font: 13px/1.3 robotoregular, arial, sans-serif !important;
	white-space: nowrap;
}

/* Кнопка «Фильтры» — только когда фильтр открывается шторкой */
html body.site-s2 #main #catalogLine .column.oFilter { display: none !important; }
html body.site-s2 #main #catalogLine .oSmartFilter {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--n-blue) !important;
	color: #fff !important;
	font: 14px/40px robotomedium, robotobold, arial, sans-serif !important;
	text-decoration: none !important;
	box-shadow: 0 6px 14px rgb(11 116 222 / 22%);
}
html body.site-s2 #main #catalogLine .oSmartFilter:hover { background: #0a66c4 !important; }
html body.site-s2 #main #catalogLine .oSmartFilter .ico { display: none !important; }
html body.site-s2 #main #catalogLine .oSmartFilter svg { flex: 0 0 18px; width: 18px; height: 18px; }

/* Выпадающие списки: сортировка и «показывать по» */
html body.site-s2 #main #catalogLine .dropDownList {
	position: relative;
	float: none !important;
	width: auto !important;
	min-width: 0;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	line-height: normal !important;
}
html body.site-s2 #main #catalogLine .dropDownSelected {
	position: relative;
	display: flex !important;
	align-items: center;
	box-sizing: border-box;
	height: 40px !important;
	min-height: 40px;
	margin: 0 !important;
	padding: 0 38px 0 14px !important;
	border: 1px solid #dbe5f0 !important;
	border-radius: 10px !important;
	background: #f6f9fc !important;
	color: #0c305b !important;
	font: 14px/38px robotomedium, robotobold, arial, sans-serif !important;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
html body.site-s2 #main #catalogLine .dropDownSelected:hover { border-color: var(--n-blue) !important; background: #fff !important; }
html body.site-s2 #main #catalogLine .dropDownSelected::after {
	content: "" !important;
	position: absolute;
	top: 50%;
	right: 15px;
	width: 7px;
	height: 7px;
	margin-top: -6px;
	border-right: 2px solid #5b7590;
	border-bottom: 2px solid #5b7590;
	background: none !important;
	transform: rotate(45deg);
	transition: transform .15s ease, margin .15s ease;
}
html body.site-s2 #main #catalogLine .dropDownList:has(.dropDownItems.opened) .dropDownSelected { border-color: var(--n-blue) !important; background: #fff !important; }
html body.site-s2 #main #catalogLine .dropDownList:has(.dropDownItems.opened) .dropDownSelected::after { margin-top: -2px; transform: rotate(-135deg); }
html body.site-s2 #main #catalogLine .dropDownItems {
	position: absolute !important;
	top: calc(100% + 6px) !important;
	left: 0 !important;
	right: auto !important;
	z-index: 60 !important;
	display: none !important;
	box-sizing: border-box;
	width: max-content !important;
	min-width: 100% !important;
	max-width: 300px;
	height: auto !important;
	margin: 0 !important;
	padding: 6px !important;
	border: 1px solid #e3ebf5 !important;
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: 0 16px 40px rgb(10 37 64 / 16%) !important;
}
html body.site-s2 #main #catalogLine .dropDownItems.opened { display: block !important; }
html body.site-s2 #main #catalogLine .dropDownItem {
	position: relative;
	display: block !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 10px 36px 10px 12px !important;
	border: 0 !important;
	border-radius: 8px;
	background: none !important;
	color: #0c305b !important;
	font: 14px/1.3 robotoregular, arial, sans-serif !important;
	white-space: nowrap;
	cursor: pointer;
}
html body.site-s2 #main #catalogLine .dropDownItem:hover { background: #f1f6fc !important; }
html body.site-s2 #main #catalogLine .dropDownItem.selected { color: var(--n-blue) !important; font-family: robotomedium, robotobold, arial, sans-serif !important; }
html body.site-s2 #main #catalogLine .dropDownItem.selected::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 15px;
	width: 5px;
	height: 10px;
	margin-top: -7px;
	border-right: 2px solid var(--n-blue);
	border-bottom: 2px solid var(--n-blue);
	transform: rotate(45deg);
}

/* Вид каталога: сегменты с иконками вместо старых картинок */
html body.site-s2 #main #catalogLine .viewList {
	display: flex !important;
	gap: 2px;
	margin: 0 !important;
	padding: 3px !important;
	border-radius: 10px;
	background: #f1f6fc;
}
html body.site-s2 #main #catalogLine .viewList .element { float: none !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; }
html body.site-s2 #main #catalogLine .viewList a {
	display: block !important;
	width: 36px !important;
	height: 34px !important;
	margin: 0 !important;
	border-radius: 8px;
	background-color: transparent !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 20px 20px !important;
	transition: background-color .15s ease, box-shadow .15s ease;
}
html body.site-s2 #main #catalogLine .viewList a:hover { background-color: #fff !important; }
html body.site-s2 #main #catalogLine .viewList a.selected { background-color: #fff !important; box-shadow: 0 2px 6px rgb(10 37 64 / 12%); }
html body.site-s2 #main #catalogLine .viewList a.squares { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f93a8' stroke-width='1.8'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.6'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.6'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.6'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1.6'/%3E%3C/svg%3E") !important; }
html body.site-s2 #main #catalogLine .viewList a.squares.selected { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b74de' stroke-width='1.8'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.6'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.6'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.6'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1.6'/%3E%3C/svg%3E") !important; }
html body.site-s2 #main #catalogLine .viewList a.line { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f93a8' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='4' width='6' height='6' rx='1.4'/%3E%3Crect x='3.5' y='14' width='6' height='6' rx='1.4'/%3E%3Cpath d='M13 6h7.5M13 9h4.5M13 16h7.5M13 19h4.5'/%3E%3C/svg%3E") !important; }
html body.site-s2 #main #catalogLine .viewList a.line.selected { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b74de' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='4' width='6' height='6' rx='1.4'/%3E%3Crect x='3.5' y='14' width='6' height='6' rx='1.4'/%3E%3Cpath d='M13 6h7.5M13 9h4.5M13 16h7.5M13 19h4.5'/%3E%3C/svg%3E") !important; }
html body.site-s2 #main #catalogLine .viewList a.table { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f93a8' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") !important; }
html body.site-s2 #main #catalogLine .viewList a.table.selected { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b74de' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") !important; }

/* ---------- Фильтр ---------- */
html body.site-s2 #main #smartFilter {
	margin-top: 0 !important;
	border: 1px solid #e3ebf5 !important;
	border-radius: 16px !important;
	background: #fff !important;
	box-shadow: 0 4px 14px rgb(10 37 64 / 5%) !important;
	overflow: hidden;
}
html body.site-s2 #main #smartFilter .heading {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: auto !important;
	margin: 0 !important;
	padding: 16px 20px !important;
	border-bottom: 1px solid #eef3f8;
	background: #fff !important;
	color: #0c305b !important;
	font: 17px/1.3 robotobold, arial, sans-serif !important;
	text-align: left !important;
	text-transform: none !important;
	cursor: default !important;
}
html body.site-s2 #main #smartFilter .nout-filter-close { display: none; }
html body.site-s2 #main #smartFilterForm { padding: 0 !important; }
html body.site-s2 #main #smartFilter .paramsBox {
	position: relative;
	margin: 0 !important;
	padding: 16px 20px 18px !important;
	border: 0 !important;
	border-bottom: 1px solid #eef3f8 !important;
	font-size: 14px;
}
html body.site-s2 #main #smartFilter .paramsBoxTitle {
	display: block !important;
	margin: 0 0 12px !important;
	padding-right: 28px;
	color: #0c305b !important;
	font: 15px/20px robotomedium, robotobold, arial, sans-serif !important;
}
html body.site-s2 #main #smartFilter .propExpander {
	position: absolute !important;
	top: 14px !important;
	right: 14px;
	width: 28px !important;
	height: 28px !important;
	border-radius: 8px;
	background: none !important;
	transform: none !important;
}
html body.site-s2 #main #smartFilter .propExpander::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	margin: -6px 0 0 -4px;
	border-right: 2px solid #5b7590;
	border-bottom: 2px solid #5b7590;
	transform: rotate(-135deg);
	transition: transform .15s ease, margin .15s ease;
}
html body.site-s2 #main #smartFilter .propExpander:not(.expanded)::before { margin-top: -8px; transform: rotate(45deg); }
html body.site-s2 #main #smartFilter .propExpander:hover { background: #f1f6fc !important; }

/* Цена: два поля рядом, подписи над ними, ползунок под ними */
html body.site-s2 #main #smartFilter .rangeSlider {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 10px;
	align-items: end;
}
html body.site-s2 #main #smartFilter .rangeSlider > label:nth-of-type(1) { grid-column: 1; grid-row: 1; }
html body.site-s2 #main #smartFilter .rangeSlider > input:nth-of-type(1) { grid-column: 1; grid-row: 2; }
html body.site-s2 #main #smartFilter .rangeSlider > label:nth-of-type(2) { grid-column: 2; grid-row: 1; }
html body.site-s2 #main #smartFilter .rangeSlider > input:nth-of-type(2) { grid-column: 2; grid-row: 2; }
html body.site-s2 #main #smartFilter .rangeSlider > .slider { grid-column: 1 / -1; grid-row: 3; }
html body.site-s2 #main #smartFilter .rangeSlider label {
	display: block !important;
	margin: 0 0 6px !important;
	color: #6a819a !important;
	font: 12px/1.2 robotoregular, arial, sans-serif !important;
}
html body.site-s2 #main #smartFilter .rangeSlider input[type="text"] {
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 1px solid #dbe5f0 !important;
	border-radius: 10px !important;
	background: #f6f9fc !important;
	color: #0c305b !important;
	font: 15px/1 robotomedium, robotobold, arial, sans-serif !important;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
html body.site-s2 #main #smartFilter .rangeSlider input[type="text"]:focus {
	border-color: var(--n-blue) !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px rgb(11 116 222 / 15%);
}
html body.site-s2 #main #smartFilter .slider {
	display: block !important;
	position: relative;
	width: auto !important;
	max-width: none !important;
	height: 28px !important;
	margin: 14px 11px 0 !important;
	background: none !important;
}
html body.site-s2 #main #smartFilter .handler {
	position: absolute !important;
	top: 12px !important;
	left: 0;
	width: 100% !important;
	height: 4px !important;
	border-radius: 4px;
	background: var(--n-blue) !important;
	touch-action: none;
}
html body.site-s2 #main #smartFilter .slider .blackoutLeft,
html body.site-s2 #main #smartFilter .slider .blackoutRight {
	top: 0 !important;
	height: 4px !important;
	border-radius: 4px !important;
	background: #e3ebf5 !important;
}
html body.site-s2 #main #smartFilter .slider ins {
	top: -9px !important;
	box-sizing: border-box;
	width: 22px !important;
	height: 22px !important;
	border: 2px solid var(--n-blue);
	border-radius: 50%;
	background: #fff !important;
	box-shadow: 0 2px 6px rgb(10 37 64 / 20%);
	cursor: grab;
	touch-action: none;
}
html body.site-s2 #main #smartFilter .slider ins:active { cursor: grabbing; transform: scale(1.1); }
html body.site-s2 #main #smartFilter .slider .left { right: -11px !important; }
html body.site-s2 #main #smartFilter .slider .right { left: -11px !important; }

/* Кнопки */
html body.site-s2 #main #smartFilterControls {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	margin: 0 !important;
	padding: 16px 20px 20px !important;
	overflow: visible !important;
	list-style: none;
	background: #fff;
}
html body.site-s2 #main #smartFilterControls li { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
html body.site-s2 #main #smartFilterControls li::before { display: none !important; }
html body.site-s2 #main #set_filter,
html body.site-s2 #main #del_filter {
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100% !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 12px !important;
	font: 15px/46px robotomedium, robotobold, arial, sans-serif !important;
	text-decoration: none !important;
	white-space: nowrap;
}
html body.site-s2 #main #set_filter { background: var(--n-blue) !important; color: #fff !important; box-shadow: 0 6px 16px rgb(11 116 222 / 25%); }
html body.site-s2 #main #set_filter:hover { background: #0a66c4 !important; }
html body.site-s2 #main #set_filter_num { margin-left: 6px; opacity: .85; }
html body.site-s2 #main #del_filter { background: #f1f6fc !important; color: #33506e !important; font-size: 14px !important; }
html body.site-s2 #main #del_filter:hover { background: #e4eef9 !important; color: #0c305b !important; }
/* Подсказка «Выбрано: N»: каталог и так обновляется сразу */
html body.site-s2 #main #modef { display: none !important; }

/* ---------- До 1024px: фильтр — шторка снизу ---------- */
@media (min-width: 1025px) {
	html body.site-s2 #main #catalogLine .column.oFilter { display: none !important; }
}
@media (max-width: 1024px) {
	html body.site-s2 #main #catalogLine .column.oFilter { display: flex !important; }
	html body.site-s2 #main #smartFilter {
		position: fixed !important;
		top: auto !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		z-index: 10050 !important;
		width: auto !important;
		max-width: none !important;
		max-height: 88vh;
		max-height: 88dvh;
		margin: 0 !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		overscroll-behavior: contain;
		border: 0 !important;
		border-radius: 20px 20px 0 0 !important;
		box-shadow: 0 -12px 40px rgb(10 37 64 / 25%) !important;
		opacity: 1 !important;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(105%);
		transition: transform .25s ease, visibility 0s linear .25s;
	}
	html body.site-s2 #main #smartFilter.opened {
		visibility: visible !important;
		pointer-events: auto !important;
		transform: none;
		transition: transform .25s ease;
	}
	html body.site-s2 #main #smartFilter .heading {
		position: sticky !important;
		top: 0;
		z-index: 3;
		padding: 22px 16px 12px !important;
		font-size: 18px !important;
	}
	/* «Ручка» шторки */
	html body.site-s2 #main #smartFilter .heading::before {
		content: "";
		position: absolute;
		top: 8px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 2px;
		background: #d5dfea;
	}
	html body.site-s2 #main #smartFilter .nout-filter-close {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 36px;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #f1f6fc;
		color: #33506e;
		cursor: pointer;
	}
	html body.site-s2 #main #smartFilter .nout-filter-close svg { width: 18px; height: 18px; }
	html body.site-s2 #main #smartFilter .paramsBox { padding: 16px !important; }
	html body.site-s2 #main #smartFilter .rangeSlider input[type="text"] { font-size: 16px !important; }
	html body.site-s2 #main #smartFilterControls {
		position: sticky;
		bottom: 0;
		z-index: 3;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
		border-top: 1px solid #eef3f8;
	}
	/* Затемнение под шторкой; клик по нему закрывает фильтр (closeSmartFilter) */
	html body.site-s2:has(#smartFilter.opened)::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 10040;
		background: rgb(10 37 64 / 45%);
	}
	html:has(body.site-s2 #smartFilter.opened) { overflow: hidden; }
}

/* ---------- Планшет и узкое окно (701–1000px): поиск в шапке на своём месте ----------
   Старое правило шаблона (top: 82px) сдвигало строку поиска вниз, под ленту категорий:
   поиск был почти не виден и перекрывал хлебные крошки. */
@media (min-width: 701px) and (max-width: 1000px) {
	html body.site-s2 #noutHeader #topSearchLine { top: 0 !important; }
}

/* ---------- Телефон: лента категорий в шапке сворачивается при прокрутке ----------
   Шапка прилипает к верху, и вместе с лентой категорий закрывала почти четверть экрана
   (171px из 812). Каталог всегда доступен в нижней панели и кнопке «Каталог».
   На планшете не трогаем: там строка поиска сдвинута вниз на место этой ленты. */
@media (max-width: 700px) {
	html body.site-s2 #noutHeader .nout-category-bar {
		max-height: 80px;
		overflow: hidden;
		transition: max-height .2s ease, opacity .2s ease;
	}
	html body.site-s2 #noutHeader.is-scrolled .nout-category-bar {
		max-height: 0;
		opacity: 0;
		pointer-events: none;
	}
}

/* ---------- Телефон: две кнопки «Фильтры» и сортировка, подкатегории лентой ---------- */
@media (max-width: 700px) {
	html body.site-s2 #catalog .catalog-section-list-pictures {
		flex-wrap: nowrap;
		margin: 0 -12px 12px !important;
		padding: 0 12px 4px !important;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	html body.site-s2 #catalog .catalog-section-list-pictures::-webkit-scrollbar { display: none; }
	html body.site-s2 #catalog .catalog-section-list-item { flex: 0 0 auto; }
	html body.site-s2 #catalog .catalog-section-list-item-wp { min-height: 40px; gap: 8px; padding: 4px 14px 4px 4px !important; }
	html body.site-s2 #catalog .catalog-section-list-picture { flex-basis: 32px; width: 32px !important; height: 32px !important; }
	html body.site-s2 #catalog .catalog-section-list-picture img { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
	html body.site-s2 #catalog .catalog-section-list-link { font-size: 13px !important; }

	html body.site-s2 #main #catalogLine {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
		box-shadow: none !important;
	}
	html body.site-s2 #main #catalogLine .column:has(.countElements),
	html body.site-s2 #main #catalogLine .column:has(.viewList),
	html body.site-s2 #main #catalogLine .column:has(.sortFields) .label { display: none !important; }
	html body.site-s2 #main #catalogLine .column { min-width: 0; }
	html body.site-s2 #main #catalogLine .column > * { flex: 1 1 auto; min-width: 0; }
	html body.site-s2 #main #catalogLine .oSmartFilter { width: 100%; height: 44px !important; line-height: 44px !important; }
	html body.site-s2 #main #catalogLine .dropDownList { width: 100% !important; }
	/* Длинное «уменьшению цены» не влезало и наезжало на иконку: блок с многоточием */
	html body.site-s2 #main #catalogLine .dropDownSelected {
		display: block !important;
		height: 44px !important;
		padding: 0 30px 0 40px !important;
		font-size: 13px !important;
		text-align: left;
		white-space: nowrap;
		background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c305b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4v16m0 0-3-3m3 3 3-3M16 20V4m0 0-3 3m3-3 3 3'/%3E%3C/svg%3E") no-repeat 14px center / 18px 18px !important;
		overflow: hidden;
		text-overflow: ellipsis;
		line-height: 42px !important;
	}
	html body.site-s2 #main #catalogLine .dropDownItems { left: auto !important; right: 0 !important; min-width: 220px !important; }
	html body.site-s2 #main #catalogLine .dropDownItem { padding-top: 12px !important; padding-bottom: 12px !important; font-size: 15px !important; }
}

/* ---------- Фильтр: галочки характеристик ---------- */
html body.site-s2 #main #smartFilter ul.checkbox,
html body.site-s2 #main #smartFilter ul.radio {
	display: grid !important;
	gap: 2px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
html body.site-s2 #main #smartFilter ul.checkbox li,
html body.site-s2 #main #smartFilter ul.radio li { margin: 0 !important; padding: 0 !important; }
html body.site-s2 #main #smartFilter ul.checkbox li.off,
html body.site-s2 #main #smartFilter ul.radio li.off { display: none !important; }
html body.site-s2 #main #smartFilter input[type="checkbox"],
html body.site-s2 #main #smartFilter input[type="radio"] { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
html body.site-s2 #main #smartFilter input[type="checkbox"] + label,
html body.site-s2 #main #smartFilter input[type="radio"] + label {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	margin: 0 !important;
	padding: 6px 8px 6px 36px !important;
	border-radius: 8px;
	color: #0c305b !important;
	font: 14px/1.3 robotoregular, arial, sans-serif !important;
	cursor: pointer;
	transition: background-color .15s ease;
}
html body.site-s2 #main #smartFilter input[type="checkbox"] + label:hover,
html body.site-s2 #main #smartFilter input[type="radio"] + label:hover { background: #f4f8fc; }
html body.site-s2 #main #smartFilter input[type="checkbox"] + label::before,
html body.site-s2 #main #smartFilter input[type="radio"] + label::before {
	content: "" !important;
	position: absolute !important;
	top: 50% !important;
	left: 8px !important;
	box-sizing: border-box;
	width: 20px !important;
	height: 20px !important;
	margin-top: -10px;
	border: 1.5px solid #c3d2e2;
	border-radius: 6px;
	background: #fff !important;
	transition: border-color .15s ease, background-color .15s ease;
}
html body.site-s2 #main #smartFilter input[type="radio"] + label::before { border-radius: 50%; }
html body.site-s2 #main #smartFilter input[type="checkbox"] + label:hover::before,
html body.site-s2 #main #smartFilter input[type="radio"] + label:hover::before { border-color: var(--n-blue); }
html body.site-s2 #main #smartFilter input[type="checkbox"]:checked + label::before {
	border-color: var(--n-blue);
	background: var(--n-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 14px 14px !important;
}
html body.site-s2 #main #smartFilter input[type="radio"]:checked + label::before { border: 6px solid var(--n-blue); }
html body.site-s2 #main #smartFilter input[type="checkbox"]:checked + label { font-family: robotomedium, robotobold, arial, sans-serif !important; }
html body.site-s2 #main #smartFilter input:disabled + label { opacity: .45; cursor: default; }
html body.site-s2 #main #smartFilter input:disabled + label:hover { background: none; }
html body.site-s2 #main #smartFilter .elCount { margin-left: auto; padding-left: 8px; color: #8aa0b6; font: 12px/1 robotoregular, arial, sans-serif; text-decoration: none; }
html body.site-s2 #main #smartFilter .showALL {
	display: inline-block;
	margin: 6px 0 0 8px;
	color: var(--n-blue) !important;
	font: 13px/1.3 robotomedium, robotobold, arial, sans-serif;
	text-decoration: none !important;
	border-bottom: 1px dashed currentColor;
}
/* Свёрнутая группа: только заголовок */
html body.site-s2 #main #smartFilter .params.collapsed { margin-top: -12px !important; }
html body.site-s2 #main #smartFilter .paramsBoxTitle span { cursor: pointer; }

/* ---------- Карточка товара: характеристики ---------- */
html body.site-s2 #catalogElement #elementProperties .detailPropertiesTable { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html body.site-s2 #catalogElement #elementProperties table.stats {
	width: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse !important;
	table-layout: fixed;
	background: none !important;
}
html body.site-s2 #catalogElement #elementProperties table.stats tbody { display: table-row-group !important; }
html body.site-s2 #catalogElement #elementProperties table.stats tr { display: table-row !important; height: auto !important; background: none !important; }
html body.site-s2 #catalogElement #elementProperties table.stats tr:nth-child(n) td {
	display: table-cell !important;
	width: auto !important;
	height: auto !important;
	padding: 12px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid #eef3f8 !important;
	background: none !important;
	color: #0c305b !important;
	font: 14px/1.45 robotomedium, robotobold, arial, sans-serif !important;
	text-align: left !important;
	vertical-align: top;
	overflow-wrap: anywhere;
}
html body.site-s2 #catalogElement #elementProperties table.stats tr:nth-child(n) td.name {
	width: 46% !important;
	padding-right: 20px !important;
	color: #5b7590 !important;
	font-family: robotoregular, arial, sans-serif !important;
}
html body.site-s2 #catalogElement #elementProperties table.stats tr:nth-child(n) td.name span { display: inline !important; padding: 0 !important; background: none !important; }
html body.site-s2 #catalogElement #elementProperties table.stats tr:nth-child(n) td.right { display: none !important; }
html body.site-s2 #catalogElement #elementProperties table.stats tr:last-child:nth-child(n) td { border-bottom: 0 !important; }
html body.site-s2 #catalogElement #elementProperties table.stats tr.cap:nth-child(n) td {
	width: auto !important;
	padding: 22px 0 8px !important;
	border-bottom: 2px solid #e3ebf5 !important;
	color: #0c305b !important;
	font: 15px/1.3 robotobold, arial, sans-serif !important;
}
html body.site-s2 #catalogElement #elementProperties table.stats tr.cap:first-child td { padding-top: 4px !important; }
/* Одна группа «Прочие» — заголовок ни о чём не говорит */
html body.site-s2 #catalogElement #elementProperties table.stats tbody:not(:has(tr.cap ~ tr.cap)) tr.cap { display: none !important; }

/* Короткий список рядом с ценой */
html body.site-s2 #catalogElement .elementProperties .propertyList { margin: 0 !important; padding: 0 !important; }
html body.site-s2 #catalogElement.nout-product-detail #elementContainer .elementProperties .propertyTable:nth-child(n) {
	display: flex !important;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	height: auto !important;
	margin: 0 !important;
	padding: 8px 0 !important;
	border: 0 !important;
	border-bottom: 1px dashed #e3ebf5 !important;
	background: none !important;
}
html body.site-s2 #catalogElement.nout-product-detail #elementContainer .elementProperties .propertyTable:last-child:nth-child(n) { border-bottom: 0 !important; }
html body.site-s2 #catalogElement.nout-product-detail #elementContainer .elementProperties .propertyTable:nth-child(n) .propertyName {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #5b7590 !important;
	font: 13px/1.4 robotoregular, arial, sans-serif !important;
	background: none !important;
}
html body.site-s2 #catalogElement.nout-product-detail #elementContainer .elementProperties .propertyTable:nth-child(n) .propertyValue {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #0c305b !important;
	font: 13px/1.4 robotomedium, robotobold, arial, sans-serif !important;
	text-align: right !important;
	overflow-wrap: anywhere;
	background: none !important;
}

/* ---------- Карточка товара: конфигурация (память, накопитель) кнопками ---------- */
html body.site-s2 #catalogElement .elementSkuVariantLabel {
	display: block !important;
	margin: 4px 0 12px !important;
	color: #0c305b !important;
	font: 16px/1.3 robotobold, arial, sans-serif !important;
}
html body.site-s2 #catalogElement .elementSkuProperty {
	margin: 0 0 14px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: visible !important;
}
html body.site-s2 #catalogElement .elementSkuPropertyName {
	margin: 0 0 8px !important;
	color: #5b7590 !important;
	font: 13px/1.3 robotoregular, arial, sans-serif !important;
}
html body.site-s2 #catalogElement .elementSkuProperty .elementSkuPropertyList {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	list-style: none;
}
html body.site-s2 #catalogElement .elementSkuProperty li.elementSkuPropertyValue {
	display: block !important;
	float: none !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	overflow: visible !important;
}
html body.site-s2 #catalogElement .elementSkuProperty .elementSkuPropertyLink {
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 76px;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 1.5px solid #dbe5f0 !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: #0c305b !important;
	font: 15px/1 robotomedium, robotobold, arial, sans-serif !important;
	text-decoration: none !important;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
html body.site-s2 #catalogElement .elementSkuProperty .elementSkuPropertyLink:hover { border-color: var(--n-blue) !important; color: var(--n-blue) !important; }
html body.site-s2 #catalogElement .elementSkuProperty li.selected .elementSkuPropertyLink {
	border-color: var(--n-blue) !important;
	background: #eef6ff !important;
	color: var(--n-blue) !important;
	box-shadow: inset 0 0 0 1px var(--n-blue);
}
/* Нет в этой комбинации — видно, но пунктиром: по нажатию подберётся подходящая конфигурация */
html body.site-s2 #catalogElement .elementSkuProperty li.disabled { display: block !important; }
html body.site-s2 #catalogElement .elementSkuProperty li.disabled .elementSkuPropertyLink {
	border-style: dashed !important;
	background: #f8fafc !important;
	color: #8aa0b6 !important;
}
html body.site-s2 #catalogElement .elementSkuProperty li.loading .elementSkuPropertyLink { opacity: .6; }
@media (max-width: 700px) {
	html body.site-s2 #catalogElement #elementProperties table.stats tr:nth-child(n) td { padding: 10px 0 !important; font-size: 13px !important; }
	html body.site-s2 #catalogElement #elementProperties table.stats tr:nth-child(n) td.name { width: 48% !important; padding-right: 12px !important; }
	html body.site-s2 #catalogElement .elementSkuProperty .elementSkuPropertyLink { min-width: 68px; height: 42px !important; padding: 0 12px !important; font-size: 14px !important; }
}
