/*
 * Academy — положите .woff2 в папку шаблона (см. fonts/README.txt).
 * Пути от корня сайта: если шаблон переименуете, поменяйте префикс в url().
 * 404 в Network → Font = файла нет на диске или неверное имя (на Linux регистр букв важен).
 */
@font-face {
	font-family: "Academy";
	src: url("/local/templates/eshop_bootstrap_v4/fonts/academy-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Academy";
	src: url("/local/templates/eshop_bootstrap_v4/fonts/academy-bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Academy";
	src: url("/local/templates/eshop_bootstrap_v4/fonts/academy-bold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Academy";
	src: url("/local/templates/eshop_bootstrap_v4/fonts/academy-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Academy";
	src: url("/local/templates/eshop_bootstrap_v4/fonts/academy-bolditalic.woff2") format("woff2");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

/* Каталог и контакты: контент на всю ширину «хрома», как у блока с заголовком (без узкого Bootstrap .container) */
body.lf-catalog-page #bx_eshop_wrap > .workarea > .container.bx-content-section,
body.lf-section-heading-page #bx_eshop_wrap > .workarea > .container.bx-content-section {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: var(--lf-chrome-pad-x, clamp(18px, 3vw, 48px));
	padding-right: var(--lf-chrome-pad-x, clamp(18px, 3vw, 48px));
	box-sizing: border-box;
}

body.lf-catalog-page #bx_eshop_wrap > .workarea > .container.bx-content-section > .row,
body.lf-section-heading-page #bx_eshop_wrap > .workarea > .container.bx-content-section > .row {
	margin-left: 0;
	margin-right: 0;
}

body.lf-catalog-page #bx_eshop_wrap > .workarea > .container.bx-content-section .bx-content.col,
body.lf-section-heading-page #bx_eshop_wrap > .workarea > .container.bx-content-section .bx-content.col {
	padding-left: 0;
	padding-right: 0;
	flex: 1 1 100%;
	max-width: 100%;
}

/* Компактнее зазор до футера (перебивает header-custom у .workarea и Bootstrap .pb-4 у колонки листинга) */
body.lf-catalog-page #bx_eshop_wrap > .workarea {
	padding-bottom: clamp(10px, 1.8vw, 18px);
}

body.lf-catalog-page .lf-catalog-root-listing > .pb-4 {
	padding-bottom: 0.75rem !important;
}

/*
 * Совпадение с Figma: скопируйте из правой панели (Typography) значения в переменные ниже.
 * Семейство в Figma должно называться «Academy» — те же .woff2, что даёт лицензия (не подменяйте на похожий шрифт).
 */
body.lf-catalog-page,
body.lf-section-heading-page {
	--lf-heading-serif: "Academy", Georgia, "Times New Roman", serif;
	--lf-heading-weight: 400;
	/* Заголовок страницы (#pagetitle), напр. «Белье для отелей» — как в макете */
	--lf-pagetitle-weight: var(--lf-heading-weight);
	--lf-pagetitle-size: clamp(1.75rem, 3vw, 2.25rem);
	--lf-pagetitle-line-height: 1.2;
	--lf-pagetitle-letter-spacing: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/*
 * Зазор крошки → H1: перебиваем Bootstrap (.row > * margin), фикс. высоту .bx-breadcrumb-item (22px в ядре)
 * и возможный margin у h1 из общих стилей — flex-колонка + !important.
 */
body.lf-catalog-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header,
body.lf-section-heading-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	row-gap: 0;
	padding-bottom: clamp(6px, 1vw, 12px);
}

body.lf-catalog-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header > .row.lf-after-header__crumbs,
body.lf-section-heading-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header > .row.lf-after-header__crumbs {
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
}

body.lf-catalog-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header > .row.lf-after-header__crumbs > *,
body.lf-section-heading-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header > .row.lf-after-header__crumbs > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.lf-catalog-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header .lf-after-header__crumbs #navigation,
body.lf-section-heading-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header .lf-after-header__crumbs #navigation {
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.125rem;
}

body.lf-catalog-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header .bx-breadcrumb,
body.lf-section-heading-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header .bx-breadcrumb {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.25;
}

body.lf-catalog-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header .bx-breadcrumb-item,
body.lf-section-heading-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header .bx-breadcrumb-item {
	height: auto !important;
	min-height: 0;
	line-height: 1.25;
}

body.lf-catalog-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header .bx-breadcrumb-item-link,
body.lf-section-heading-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header .bx-breadcrumb-item-link {
	line-height: 1.25;
}

body.lf-catalog-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header #pagetitle,
body.lf-section-heading-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header #pagetitle {
	font-family: var(--lf-heading-serif);
	font-weight: var(--lf-pagetitle-weight);
	font-size: var(--lf-pagetitle-size);
	line-height: var(--lf-pagetitle-line-height);
	letter-spacing: var(--lf-pagetitle-letter-spacing);
	font-synthesis: none;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
	width: 100%;
}

body.lf-section-heading-page #bx_eshop_wrap > .container.bx-content-section.lf-after-header #pagetitle {
	color: #0f172a;
}

/*
 * Контакты и др. страницы только с lf-section-heading-page (без lf-catalog-page):
 * зазор крошки → H1 как у каталога (#lf-catalog-crumbs-title-gap в header.php).
 * !important — перебить ui.bootstrap / стили ядра после ShowHead.
 */
body.lf-section-heading-page:not(.lf-catalog-page) #bx_eshop_wrap > .container.bx-content-section.lf-after-header > .row.lf-after-header__crumbs {
	margin-top: 0 !important;
	margin-bottom: 6px !important;
	padding: 0 !important;
}

body.lf-section-heading-page:not(.lf-catalog-page) #bx_eshop_wrap > .container.bx-content-section.lf-after-header > .row.lf-after-header__crumbs > * {
	margin: 0 !important;
	padding: 0 !important;
}

body.lf-section-heading-page:not(.lf-catalog-page)
	#bx_eshop_wrap
	> .container.bx-content-section.lf-after-header
	.lf-after-header__crumbs
	#navigation {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: clamp(6px, 1vw, 12px) !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.lf-section-heading-page:not(.lf-catalog-page)
	#bx_eshop_wrap
	> .container.bx-content-section.lf-after-header
	#pagetitle.lf-after-header__title,
body.lf-section-heading-page:not(.lf-catalog-page)
	#bx_eshop_wrap
	> .container.bx-content-section.lf-after-header
	#pagetitle {
	margin: 0 !important;
	padding: 0 !important;
}

body.lf-section-heading-page:not(.lf-catalog-page)
	#bx_eshop_wrap
	> .container.bx-content-section.lf-after-header
	.bx-breadcrumb {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.25 !important;
}

body.lf-section-heading-page:not(.lf-catalog-page)
	#bx_eshop_wrap
	> .container.bx-content-section.lf-after-header
	.bx-breadcrumb-item {
	height: auto !important;
	min-height: 0;
	line-height: 1.25 !important;
}

/* Заголовок «Все товары» над листингом — те же параметры шрифта, что у H1 «Каталог» */
body.lf-catalog-page .lf-catalog-all-products-heading-wrap {
	margin: 0 0 1.25rem;
	text-align: left;
	padding-left: 0;
	padding-right: 0;
}

body.lf-catalog-page .lf-catalog-all-products-heading-wrap .lf-cat-dir__heading {
	margin: 0 0 0.35rem;
	font-family: var(--lf-heading-serif);
	font-weight: var(--lf-pagetitle-weight);
	font-size: var(--lf-pagetitle-size);
	line-height: var(--lf-pagetitle-line-height);
	letter-spacing: var(--lf-pagetitle-letter-spacing);
	font-synthesis: none;
	text-align: left;
	color: #0f172a;
}

/* Как у H1: без max-width и margin auto из home-catalog-directions (.lf-cat-dir__sub) */
body.lf-catalog-page .lf-cat-dir--catalog-root .lf-cat-dir__sub {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	text-align: left;
}

/* Заголовок «Подбор параметров» не выводим визуально */
body.lf-catalog-page .smart-filter .smart-filter-title {
	display: none !important;
}

/* Заголовки блоков фильтра (Цвет, Размер, …): Academy 400, компактнее страничного H1 */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-parameters-box-title-text {
	font-family: var(--lf-heading-serif) !important;
	font-weight: var(--lf-pagetitle-weight) !important;
	font-size: 23px !important;
	line-height: 1.35 !important;
	letter-spacing: var(--lf-pagetitle-letter-spacing) !important;
	font-synthesis: none;
	color: #0f172a !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .bx-active .smart-filter-parameters-box-title-text {
	color: #0f172a !important;
}

/* --- Корень каталога: сетка как на главной (.lf-cat-dir) + мега-панель подразделов --- */

.lf-cat-dir--catalog-root {
	position: relative;
	margin-bottom: 1.25rem;
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Субменю (мега) должно перекрывать «Найдено», разделитель и сортировку — только пока открыта панель */
@media (hover: hover) and (pointer: fine) {
	body.lf-catalog-page .lf-cat-dir--catalog-root:has(.lf-cat-dir__cell:hover),
	body.lf-catalog-page .lf-cat-dir--catalog-root:has(.lf-cat-dir__cell:focus-within) {
		z-index: 100;
	}
}

/* Выравнивание с шапкой и крошками: горизонтальный отступ уже задаёт .workarea > .container (lf-chrome-pad-x), без второго слоя из .lf-cat-dir__gutter */
body.lf-catalog-page #bx_eshop_wrap > .workarea .lf-cat-dir--catalog-root .lf-cat-dir__gutter {
	padding-left: 0;
	padding-right: 0;
	padding-top: 0;
	padding-bottom: 18px;
}

.lf-cat-dir--catalog-root .lf-cat-dir__cell {
	position: relative;
}

/* Выше .product-item-container.hover (z-index:17 в bootstrap_v4), иначе полоска цены карточки товара наезжает на субменю */
@media (hover: hover) and (pointer: fine) {
	.lf-cat-dir--catalog-root .lf-cat-dir__cell:hover,
	.lf-cat-dir--catalog-root .lf-cat-dir__cell:focus-within {
		z-index: 120;
	}
}

/* Мега-панель под карточкой категории */
.lf-cat-root__mega {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	bottom: auto;
	width: auto;
	max-width: 100%;
	min-width: 0;
	transform: none;
	box-sizing: border-box;
	z-index: 121;
	padding: 12px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
	max-height: none;
	overflow: visible;
}

/* Обёртка: ряд карточек + кастомная полоска прокрутки (логика в component_epilog.php) */
.lf-cat-root__mega-scroll {
	--lf-mega-scroll-track: rgba(0, 0, 0, 0.06);
	--lf-mega-scroll-thumb: rgba(0, 0, 0, 0.38);
	--lf-mega-scroll-thumb-hover: rgba(0, 0, 0, 0.52);
	--lf-mega-bar-h: 4px;
	--lf-mega-bar-gap: 8px;
	display: block;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* Подкатегории: в видимой зоне 3 карточки; нативный скроллбар скрыт — своя полоска снизу */
.lf-cat-root__mega-inner {
	--lf-mega-sub-gap: 12px;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--lf-mega-sub-gap);
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	max-height: none;
	padding-bottom: 0;
}

.lf-cat-dir--catalog-root .lf-cat-root__mega-inner::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.lf-cat-root__mega-bar {
	position: relative;
	width: 100%;
	height: var(--lf-mega-bar-h);
	margin-top: var(--lf-mega-bar-gap);
	border-radius: 999px;
	background: var(--lf-mega-scroll-track);
	box-sizing: border-box;
	flex-shrink: 0;
	touch-action: none;
	cursor: pointer;
}

.lf-cat-root__mega-bar[hidden] {
	display: none !important;
}

.lf-cat-root__mega-bar__thumb {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	min-width: 20px;
	border-radius: 999px;
	background: var(--lf-mega-scroll-thumb);
	box-sizing: border-box;
	cursor: grab;
	touch-action: none;
	transition: background 0.15s ease;
}

.lf-cat-root__mega-bar__thumb:hover {
	background: var(--lf-mega-scroll-thumb-hover);
}

.lf-cat-root__mega-bar__thumb.lf-cat-root__mega-bar__thumb--dragging {
	cursor: grabbing;
	background: var(--lf-mega-scroll-thumb-hover);
	transition: none;
}

.lf-cat-root__mega-inner:focus {
	outline: 2px solid #1e3a5f;
	outline-offset: 2px;
}

/* Подкатегории в мега-меню — как .lf-cat-dir__card (home-catalog-directions): фото на всю плитку, подпись в чёрной плашке */
.lf-cat-root__sub {
	display: block;
	position: relative;
	box-sizing: border-box;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: #f8fafc;
	background: #0f172a;
	border: none;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
	aspect-ratio: 1 / 1;
	min-height: 0;
	isolation: isolate;
	transition: box-shadow 0.2s ease;
	flex: 0 0 calc((100% - 2 * var(--lf-mega-sub-gap)) / 3);
	width: calc((100% - 2 * var(--lf-mega-sub-gap)) / 3);
	min-width: calc((100% - 2 * var(--lf-mega-sub-gap)) / 3);
	max-width: calc((100% - 2 * var(--lf-mega-sub-gap)) / 3);
	scroll-snap-align: start;
	scroll-snap-stop: normal;
}

.lf-cat-root__sub:hover,
.lf-cat-root__sub:focus-visible {
	outline: none;
	box-shadow: 0 10px 32px rgba(15, 23, 42, 0.16);
}

.lf-cat-root__sub:focus-visible {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0f766e;
}

/* Выбранная сеткой категория на корне каталога (AJAX-листинг без ухода со страницы) */
body.lf-catalog-page .lf-cat-dir--catalog-root .lf-cat-root__sub--lf-picked {
	box-shadow: 0 0 0 3px #0d9488, 0 10px 32px rgba(15, 23, 42, 0.2);
}

body.lf-catalog-page .lf-cat-dir--catalog-root .lf-cat-dir__card--lf-picked {
	outline: 3px solid #0d9488;
	outline-offset: 4px;
	border-radius: 14px;
}

.lf-cat-root__sub-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(145deg, #2d2d2d 0%, #1f1f1f 50%, #1a1a1a 100%);
}

.lf-cat-root__sub-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.45s ease;
}

.lf-cat-root__sub:hover .lf-cat-root__sub-img,
.lf-cat-root__sub:focus-visible .lf-cat-root__sub-img {
	transform: scale(1.06);
}

.lf-cat-root__sub-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.2);
	pointer-events: none;
	transition: background 0.25s ease;
}

.lf-cat-root__sub:hover .lf-cat-root__sub-scrim,
.lf-cat-root__sub:focus-visible .lf-cat-root__sub-scrim {
	background: rgba(0, 0, 0, 0.28);
}

.lf-cat-root__sub-name {
	position: absolute;
	left: 10px;
	bottom: 10px;
	right: auto;
	transform: none;
	z-index: 2;
	box-sizing: border-box;
	max-width: calc(100% - 20px);
	margin: 0;
	padding: 8px 10px;
	background: #000000;
	color: #ffffff;
	font-family: "Rubik", system-ui, sans-serif;
	font-weight: 400;
	/* Базовый максимум; точный размер под длину строки — lfFitSubCategoryNames в component_epilog.php */
	font-size: 0.8125rem;
	line-height: 1.25;
	text-align: left;
	border-radius: 10px;
	text-shadow: none;
	white-space: nowrap;
	hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
	overflow: visible;
}

@media (hover: hover) and (pointer: fine) {
	.lf-cat-dir--catalog-root .lf-cat-dir__cell:hover .lf-cat-root__mega,
	.lf-cat-dir--catalog-root .lf-cat-dir__cell:focus-within .lf-cat-root__mega {
		display: block;
	}
}

/* --- Умный фильтр: горизонтальная «палитра» цветов (COLOR_REF с картинками в админке) --- */

body.lf-catalog-page .smart-filter-horizontal .smart-filter-form > .row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
}

body.lf-catalog-page .smart-filter-horizontal .smart-filter-parameters-box {
	flex: 0 1 auto;
	min-width: 0;
	margin-bottom: 0 !important;
}

body.lf-catalog-page .smart-filter-horizontal .smart-filter-parameters-box.bx-active .smart-filter-block {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

body.lf-catalog-page .smart-filter-horizontal .smart-filter-checkbox-image,
body.lf-catalog-page .smart-filter-horizontal .smart-filter-checkbox-btn-image {
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	border: 2px solid #e2e8f0 !important;
	box-sizing: border-box;
	background-size: cover !important;
	background-position: center !important;
	transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

body.lf-catalog-page .smart-filter-horizontal .smart-filter-checkbox-image:hover,
body.lf-catalog-page .smart-filter-horizontal .smart-filter-checkbox-btn-image:hover {
	transform: scale(1.08);
	border-color: #94a3b8 !important;
}

body.lf-catalog-page .smart-filter-horizontal .bx-active .smart-filter-checkbox-image,
body.lf-catalog-page .smart-filter-horizontal .bx-active .smart-filter-checkbox-btn-image {
	border-color: #1e3a5f !important;
	box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.2);
}

/* Подпись блока фильтра «Цвет» компактнее */
body.lf-catalog-page .smart-filter-horizontal .smart-filter-parameters-box-title {
	padding: 6px 0;
}

body.lf-catalog-page .smart-filter-horizontal .smart-filter-parameters-box-title-text {
	font-size: 23px !important;
	line-height: 1.35 !important;
}

/* Подписи значений в горизонтальном фильтре — меньше заголовков блоков */
body.lf-catalog-page .smart-filter-horizontal .smart-filter-checkbox-text.form-check-label,
body.lf-catalog-page .smart-filter-horizontal .smart-filter-param-text,
body.lf-catalog-page .smart-filter-horizontal .smart-filter-input-group-checkbox-pictures-text .smart-filter-checkbox-text {
	font-size: 14px !important;
	line-height: 1.35 !important;
	transform: translateY(1px);
}

/* Колонка с фильтром на lg: чуть шире, чем Bootstrap col-lg-2 (≈2.5 из 12) */
@media (min-width: 992px) {
	body.lf-catalog-page .lf-catalog-root-listing > .col-lg-2 {
		flex: 0 0 20.833333%;
		max-width: 20.833333%;
	}

	body.lf-catalog-page .lf-catalog-root-listing > .col-lg-10 {
		flex: 0 0 79.166667%;
		max-width: 79.166667%;
	}
}

/* Ширина сортировки = внутренняя ширина блока фильтра (колонка − padding колонки − padding .smart-filter) */
body.lf-catalog-page .lf-catalog-root-listing {
	container-type: inline-size;
	container-name: lf-catalog-root;
}

/*
 * Вертикальный умный фильтр (сайдбар): макет как на референсе — без смены разметки/JS компонента.
 * Горизонтальный режим (.smart-filter-horizontal) не затрагиваем.
 */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) {
	margin-bottom: 0;
	min-width: 0;
	max-width: 100%;
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 400;
	color: #1a1a1a;
	background: #fff;
	border: 1px solid #ebebeb;
	border-radius: 11px;
	padding: 14px 12px;
	box-shadow: none;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-form > .row {
	margin-left: 0;
	margin-right: 0;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-form > .row > [class*="col"] {
	padding-left: 0;
	padding-right: 0;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-parameters-box {
	margin-bottom: 0 !important;
	padding: 7px 6px;
	border-bottom: 1px solid #ebebeb;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-form > .row:first-of-type > .smart-filter-parameters-box:last-child {
	border-bottom: none;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-parameters-box-title {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 5px 0;
	margin: 0;
	cursor: pointer;
	box-sizing: border-box;
	position: relative;
	z-index: 0;
	pointer-events: auto;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-container-modef:empty {
	display: none;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-parameters-box-title-text {
	flex: 1;
	min-width: 0;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-angle {
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	margin-left: auto;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	overflow: visible;
	box-sizing: border-box;
	pointer-events: auto;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-angles {
	display: block !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	min-height: 30px !important;
	margin: 0 !important;
	line-height: 30px !important;
	transform: translate(-50%, -50%) !important;
	transition: transform 0.25s ease !important;
	cursor: pointer;
	pointer-events: auto;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%2024%2024' fill='none'%3E%3Cpath d='M7%2010l5%205%205-5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-angle-up .smart-filter-angles {
	transform: translate(-50%, -50%) rotate(180deg) !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-angles:before,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-angles:after {
	display: none !important;
	content: none !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-block {
	padding: 0 0 8px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-parameters-box > .smart-filter-block {
	padding-top: 6px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-parameters-box-container {
	width: 100%;
	font-size: 14px;
	line-height: 1.35;
}

/* Чекбоксы списком */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-checkbox-list .form-check {
	margin-bottom: 0.5rem;
	padding-left: 0;
	display: flex;
	align-items: center;
	gap: 11px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .form-check-input {
	position: static;
	margin: 0;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	min-width: 16px;
	min-height: 16px;
	border-radius: 4px;
	border: 1px solid #cccccc;
	box-shadow: none;
	cursor: pointer;
	background-color: #fff;
	accent-color: #000000;
	-webkit-appearance: none;
	appearance: none;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .form-check-input:checked {
	background-color: #000000;
	border-color: #000000;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center 55%;
	background-size: 10px auto;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .form-check-input:focus {
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
	border-color: #999;
	outline: none;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .form-check-input:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-checkbox-text.form-check-label {
	font-size: 14px;
	line-height: 1.35;
	color: #1a1a1a;
	cursor: pointer;
	padding-top: 0;
	display: flex;
	align-items: center;
	transform: translateY(1px);
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-checkbox-text.form-check-label [data-role^="count_"] {
	color: #757575;
	font-weight: 400;
}

/* Радио-список */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 11px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-param-text {
	font-size: 14px;
	line-height: 1.35;
	color: #1a1a1a;
	display: inline-flex;
	align-items: center;
	transform: translateY(1px);
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-param-text [data-role^="count_"] {
	color: #757575;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-checkbox input[type="radio"] {
	width: 16px;
	height: 16px;
	margin: 0;
	flex-shrink: 0;
	accent-color: #000000;
	cursor: pointer;
}

/* Поля «от / до» */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-container .form-control {
	border-radius: 8px;
	border-color: #e2e8f0;
	font-size: 14px;
	padding: 6px 10px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-container .form-control:focus {
	border-color: #94a3b8;
	box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

/* Слайдер диапазона: тонкая линия, ручки-кружки без «стрелок» */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-track-container {
	padding: 10px 4px 18px !important;
	overflow: visible !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-track {
	position: relative !important;
	height: 1px;
	background: #e5e7eb;
	border-radius: 999px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-number.lf-density-slider-only .smart-filter-slider-track-container {
	padding: 8px 0 22px !important;
	padding-left: 10px !important;
	padding-right: 13px !important;
	box-sizing: border-box !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-number.lf-density-slider-only .smart-filter-slider-track .lf-density-thumb-labels {
	margin-top: 18px !important;
	height: 1.35em !important;
	z-index: 130 !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-number.lf-density-slider-only .lf-density-thumb-label {
	font-size: 13px !important;
	line-height: 1.35 !important;
}

/* «Плотность ткани»: небольшой зазор после блока ползунка (подписи к ручкам) до следующего раздела */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-number.lf-density-slider-only {
	margin-bottom: 12px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-ruler {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-price-bar-vd {
	background: #d1d5db;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-price-bar-vn {
	background: #e5e7eb;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-price-bar-v {
	background: #1a1a1a;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-handle {
	position: absolute !important;
	top: 50% !important;
	width: 14px !important;
	height: 14px !important;
	margin-top: 0 !important;
	border: 0 !important;
	border-top: 0 !important;
	border-right: 0 !important;
	border-bottom: 0 !important;
	border-left: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: 0 0 0 2px #1a1a1a, 0 1px 4px rgba(0, 0, 0, 0.12) !important;
	transform: translateY(-50%) !important;
	box-sizing: border-box !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-handle.left {
	margin-left: -7px !important;
	margin-right: 0 !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-handle.right {
	margin-right: -7px !important;
	margin-left: 0 !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-handle.left,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-handle.right {
	border: 0 !important;
	border-top: 0 !important;
	border-left: 0 !important;
	border-right: 0 !important;
	border-bottom: 0 !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-handle:hover {
	cursor: grab;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-slider-handle:active {
	cursor: grabbing;
}

/* Только «Плотность ткани»: чёрные ручки (полоска — общие правила слайдера выше) */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-number.lf-density-slider-only .smart-filter-slider-handle,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-number.lf-density-slider-only .smart-filter-slider-handle.left,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-number.lf-density-slider-only .smart-filter-slider-handle.right {
	background: #000000 !important;
	box-shadow: none !important;
	border: none !important;
}

/* Палитра / картинки в сетке */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-checkbox-pictures,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-checkbox-pictures-text {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	align-items: center;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-checkbox-pictures .smart-filter-checkbox-label {
	float: none;
	margin: 0;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-checkbox-btn {
	width: auto;
	height: auto;
	padding: 2px;
	border: none;
	background: transparent;
	border-radius: 50%;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-checkbox-btn-image,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-checkbox-image {
	width: 24px !important;
	height: 24px !important;
	min-width: 24px;
	min-height: 24px;
	border-radius: 50% !important;
	border: 1px solid rgba(0, 0, 0, 0.18) !important;
	box-sizing: border-box;
	background-size: cover !important;
	background-position: center !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-checkbox-btn-image:hover,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-checkbox-image:hover {
	transform: scale(1.05);
	border-color: rgba(0, 0, 0, 0.35) !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .bx-active .smart-filter-checkbox-btn-image,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .bx-active .smart-filter-checkbox-image {
	border-color: #000000 !important;
	box-shadow: 0 0 0 2px #000000, inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-checkbox-pictures-text .smart-filter-checkbox-text {
	font-size: 14px;
	line-height: 1.35;
	color: #1e293b;
	padding-left: 6px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-checkbox-pictures-text .smart-filter-checkbox-text [data-role^="count_"] {
	color: #757575;
}

/* Ссылка «Показать все» / «Посмотреть всё» под палитрой (если выводится ядром или кастомом) */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-parameters-box-container > a,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-checkbox-pictures + a,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-tag .bx-tag-link {
	display: inline-block;
	margin-top: 10px;
	font-size: 0.8125rem;
	font-weight: 400;
	color: #757575 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-parameters-box-container > a:hover,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-checkbox-pictures + a:hover,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-tag .bx-tag-link:hover {
	color: #1a1a1a !important;
}

/* Выпадающий список свойства */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-input-group-dropdown {
	height: auto;
	min-height: 38px;
	border-radius: 8px;
	border-color: #e2e8f0;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-dropdown-block {
	height: 36px;
	border-radius: 7px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-dropdown-text {
	height: 36px;
	line-height: 36px;
	font-size: 14px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-dropdown-popup ul li label {
	font-size: 14px;
	line-height: 1.35;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-calendar-container input,
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-calendar-container .calendar {
	font-size: 14px;
}

/* Кнопки */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-button-box {
	margin-top: 0;
	padding-top: 8px;
	border-top: none;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-button-box .smart-filter-parameters-box-container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) #set_filter {
	box-sizing: border-box;
	width: 100%;
	display: block;
	margin: 0;
	padding: 12px 16px;
	min-height: 48px;
	/* Figma Text-l/400, 16_22 — те же 16/22, что у «Очистить», для одинаковой высоты */
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	line-height: 22px;
	letter-spacing: 0;
	text-align: center;
	color: #fff !important;
	background: #000000 !important;
	/* 1px как у «Очистить», иначе из‑за рамки высоты не совпадут */
	border: 1px solid transparent !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	transition: background 0.15s ease;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) #set_filter:focus {
	outline: none !important;
	box-shadow: none !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) #set_filter:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) #set_filter:hover {
	background: #1f1f1f !important;
}

/* «Очистить»: белая кнопка, чёрная обводка, жирный текст (перебивает старый вид «ссылки») */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) #del_filter {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 100%;
	display: block;
	margin: 0;
	padding: 12px 16px;
	min-height: 48px;
	/* Figma Text-l/500, 16_22; скругление и отступы как у «Применить» */
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 500 !important;
	font-style: normal;
	line-height: 22px;
	letter-spacing: 0;
	text-align: center;
	color: #000 !important;
	background: #fff !important;
	border: 1px solid #000 !important;
	border-radius: 8px !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.15s ease;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) #del_filter:hover:not(:disabled) {
	color: #000 !important;
	background: #f5f5f5 !important;
}

/* Клик мышью не даёт вторую обводку; контур только с клавиатуры (:focus-visible) */
body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) #del_filter:focus {
	outline: none !important;
	box-shadow: none !important;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) #del_filter:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-popup-result {
	margin-top: 6px;
	font-size: 0.8125rem;
	color: #757575;
	line-height: 1.4;
}

/* Та же типографика для кнопки в горизонтальном фильтре */
body.lf-catalog-page .smart-filter-horizontal #set_filter {
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	font-style: normal;
	line-height: 1.375;
	letter-spacing: 0;
	text-align: center;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-popup-result .arrow {
	display: none;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-popup-result a {
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	font-style: normal;
	line-height: 1.375;
	letter-spacing: 0;
	text-align: center;
}

/* Свотчи «Цвет» (умный фильтр): сетка кругов вместо списка текста */
body.lf-catalog-page .lf-smart-filter-color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 14px;
	align-items: flex-start;
}

body.lf-catalog-page .lf-smart-filter-color-item {
	margin: 0;
	flex: 0 0 auto;
}

body.lf-catalog-page .lf-smart-filter-color-input.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

body.lf-catalog-page .lf-smart-filter-color-swatch {
	display: block;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	cursor: pointer;
	box-sizing: border-box;
	position: relative;
	background: transparent;
	border: none;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
	transition: box-shadow 0.15s ease, transform 0.12s ease;
}

body.lf-catalog-page .lf-smart-filter-color-swatch:hover:not(.disabled) {
	transform: scale(1.05);
}

body.lf-catalog-page .lf-smart-filter-color-swatch__inner {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: var(--lf-swatch, #cbd5e1);
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

body.lf-catalog-page .lf-smart-filter-color-swatch[data-lf-swatch-light="Y"] .lf-smart-filter-color-swatch__inner {
	box-shadow: inset 0 0 0 1px #0f172a;
}

/* После клика чекбокс остаётся :focus — обводку только для клавиатуры (:focus-visible) */
body.lf-catalog-page .lf-smart-filter-color-input:focus + .lf-smart-filter-color-swatch {
	outline: none;
}

body.lf-catalog-page .lf-smart-filter-color-input:focus-visible + .lf-smart-filter-color-swatch {
	outline: 2px solid #000;
	outline-offset: 3px;
}

body.lf-catalog-page .lf-smart-filter-color-input:checked + .lf-smart-filter-color-swatch {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0f172a;
}

body.lf-catalog-page .lf-smart-filter-color-input:checked:focus + .lf-smart-filter-color-swatch {
	outline: none;
}

body.lf-catalog-page .lf-smart-filter-color-swatch.disabled {
	opacity: 0.38;
	cursor: not-allowed;
	pointer-events: none;
}

body.lf-catalog-page .smart-filter:not(.smart-filter-horizontal) .smart-filter-hint-icon {
	background: #94a3b8;
	font-size: 11px;
	line-height: 15px;
}

/* Карточки: скраб по фото; точки вынесены в блок над названием */
.product-item-image-wrapper.lf-catalog-scrub-ready {
	cursor: ew-resize;
}

/* Ссылка на детальную: как у названия — указатель; скраб по mousemove сохраняется */
.product-item.lf-product-card a.product-item-image-wrapper.lf-catalog-scrub-ready {
	cursor: pointer;
}

/*
 * Внутренние слои превью не участвуют в hit-test — клик попадает в <a>,
 * иначе в части браузеров/стеков активация ссылки на фото может не срабатывать.
 */
.product-item.lf-product-card a.product-item-image-wrapper .product-item-image-slider-slide-container,
.product-item.lf-product-card a.product-item-image-wrapper .product-item-image-slide,
.product-item.lf-product-card a.product-item-image-wrapper .product-item-image-original,
.product-item.lf-product-card a.product-item-image-wrapper .product-item-image-alternative,
.product-item.lf-product-card a.product-item-image-wrapper .product-item-image-slider-progress-bar-container,
.product-item.lf-product-card a.product-item-image-wrapper .product-item-image-slider-progress-bar {
	pointer-events: none;
}

/* Точки слайдера над названием товара (без полоски поверх фото) */
.product-item.lf-product-card .lf-product-card__slider-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2px 16px 0;
	/* Зазор до названия ≈ margin-bottom превью (12px); карточка — block, не flex (иначе пробелы в разметке дают «лестницу»). */
	margin: 0 0 12px;
	box-sizing: border-box;
}

.product-item.lf-product-card .lf-product-card__slider-dots-track {
	position: static !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	z-index: auto;
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	padding: 0 !important;
	margin: 0 !important;
	width: 100%;
	max-width: 100%;
	text-align: center;
	opacity: 1 !important;
	background: none !important;
	box-shadow: none !important;
}

.product-item.lf-product-card .lf-product-card__slider-dots .product-item-image-slider-control {
	display: block !important;
	width: 8px !important;
	height: 8px !important;
	min-width: 8px !important;
	min-height: 8px !important;
	max-width: 8px !important;
	max-height: 8px !important;
	flex: 0 0 8px;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	aspect-ratio: 1 / 1;
	box-sizing: border-box !important;
	background-color: #c4c4c8 !important;
	opacity: 1 !important;
	box-shadow: none !important;
	vertical-align: middle;
	line-height: 0 !important;
	font-size: 0 !important;
	cursor: default;
}

.product-item.lf-product-card .lf-product-card__slider-dots .product-item-image-slider-control.active,
.product-item.lf-product-card .lf-product-card__slider-dots .product-item-image-slider-control:hover {
	background-color: #0a0a0a !important;
}

/* AJAX-подгрузка: плотная вуаль + спиннер по центру */
body.lf-catalog-page .lf-catalog-products-loader {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	text-align: center !important;
	overflow: hidden !important;
	background: rgba(255, 255, 255, 0.78) !important;
	background-image: none !important;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: none !important;
	font-family: inherit !important;
}

body.lf-catalog-page .lf-catalog-products-loader::after {
	content: "";
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 3px solid rgba(15, 23, 42, 0.12);
	border-top-color: rgba(15, 23, 42, 0.72);
	animation: lf-catalog-products-loader-spin 0.75s linear infinite;
	transform-origin: 50% 50%;
}

@keyframes lf-catalog-products-loader-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Список раздела: зазор между горизонтальными рядами карточек */
.catalog-section > .row[data-entity="items-row"] {
	margin-bottom: 20px;
}

.catalog-section > .row[data-entity="items-row"]:last-child {
	margin-bottom: 0;
}

/* —— Карточка товара (lf-product-card): превью, артикул, цена + круглая кнопка, «сердце» = сравнение —— */
.product-item.lf-product-card {
	position: relative;
	/*
	 * Не flex-column: переносы/пробелы между тегами в PHP дают текстовые узлы — в flex они
	 * становятся анонимными элементами (~высота строки) → лишний зазор над названием и под блоком цены.
	 */
	display: block;
	height: auto;
	min-height: 0;
	align-self: flex-start;
	width: 100%;
	box-sizing: border-box;
	width: 100%;
	max-width: 367px;
	margin: 0 auto;
	padding: 0 0 1px;
	border: none;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 22px rgba(15, 23, 42, 0.08);
	/* visible: тень у кнопки избранного (drop-shadow по макету) не обрезается; превью режет .product-item-image-wrapper */
	overflow: visible;
	/* Круг «+»: от высоты строки цены × масштаб; иконка пропорциональна */
	--lf-card-price-size: 22px;
	--lf-card-price-line-height: 1.15;
	--lf-card-add-btn-scale: 1.5;
	--lf-card-add-btn-size: calc(var(--lf-card-price-size) * var(--lf-card-price-line-height) * var(--lf-card-add-btn-scale));
}

.bx-no-touch .product-item-container.hover .product-item.lf-product-card,
.bx-touch .product-item.lf-product-card {
	position: relative !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	max-width: 367px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
	border: none !important;
	outline: none !important;
	box-shadow: 0 4px 22px rgba(15, 23, 42, 0.08) !important;
	animation: none !important;
	-webkit-animation: none !important;
}

/* Внешний контейнер Bitrix при hover не даём «вторую» подложку/рамку */
.product-item-container.hover:has(.lf-product-card) {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Превью: чуть ниже макета 367×522 для более компактной карточки */
.product-item.lf-product-card .product-item-image-wrapper {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin-bottom: 12px;
	padding-top: 0;
	height: auto;
	aspect-ratio: 367 / 500;
	border-radius: 8px 8px 0 0;
	overflow: hidden;
	background: #f4f4f5;
}

.product-item.lf-product-card .product-item-image-original,
.product-item.lf-product-card .product-item-image-alternative,
.product-item.lf-product-card .product-item-image-slide {
	background-size: cover;
	background-position: center;
}

/* Название: Rubik 500, 15px */
.product-item.lf-product-card .product-item-title {
	margin: 0;
	padding: 0 16px;
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.28;
	letter-spacing: 0;
}

.product-item.lf-product-card .product-item-title a {
	color: #1a1a1a;
	text-decoration: none;
	font: inherit;
	letter-spacing: inherit;
}

.product-item.lf-product-card .product-item-title a:hover {
	color: #000;
}

.product-item.lf-product-card .lf-product-card__sku {
	margin: 5px 0 14px;
	padding: 0 16px;
	font-size: 12px;
	line-height: 1.15;
	color: #8d8d91;
	font-family: var(--lf-font-family, "Rubik", sans-serif);
}

/*
 * Ряд цена + кнопка: перебиваем bitrix/components/.../catalog.item/bootstrap_v4/style.css
 * (.product-item-info-container { margin-bottom: 8px }, .product-item-price-container { line-height: 1; text-align: center },
 * .product-item-button-container .btn { margin-bottom: 2px }) и класс btn-sm с шаблона.
 */
.product-item.lf-product-card .lf-product-card__price-row {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	padding: 0 16px 12px;
	margin-bottom: 0;
	box-sizing: border-box;
}

.product-item.lf-product-card .lf-product-card__price-row > .product-item-info-container {
	margin-bottom: 0 !important;
}

.product-item.lf-product-card .lf-product-card__price-row .product-item-price-container {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 !important;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	text-align: left !important;
	line-height: normal !important;
	gap: 0;
}

.product-item.lf-product-card .lf-product-card__price-row .product-item-price-current {
	display: inline-block;
	font-size: var(--lf-card-price-size);
	font-weight: 500;
	line-height: var(--lf-card-price-line-height);
	color: #0a0a0a;
	letter-spacing: -0.02em;
	font-family: var(--lf-font-family, "Rubik", sans-serif);
	vertical-align: bottom;
}

.product-item.lf-product-card .lf-product-card__price-row .product-item-price-current .lf-product-card__currency-prefix,
.product-item.lf-product-card .lf-product-card__price-row .product-item-price-current .lf-product-card__price-digits {
	font: inherit;
	letter-spacing: inherit;
}

.product-item.lf-product-card .lf-product-card__price-row .product-item-price-old {
	font-size: 14px;
	font-weight: 500;
	color: #8d8d91;
}

.product-item.lf-product-card .lf-product-card__price-row .product-item-price-old .lf-product-card__currency-prefix,
.product-item.lf-product-card .lf-product-card__price-row .product-item-price-old .lf-product-card__price-digits {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.product-item.lf-product-card .lf-product-card__price-row .product-item-info-container[data-entity="buttons-block"],
.product-item.lf-product-card .lf-product-card__buttons-visible {
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	opacity: 1 !important;
	visibility: visible !important;
	align-items: flex-end;
	justify-content: flex-end;
	align-self: auto;
}

.product-item.lf-product-card .lf-product-card__price-row .product-item-button-container {
	margin: 0;
	text-align: right !important;
}

/* Цена по запросу (RATIO_PRICE <= 0): кнопка вместо цены и «в корзину»; высота ряда не больше обычной */
.product-item.lf-product-card .lf-product-card__request-price-only {
	display: none;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
}

.lf-catalog-item--request-price .product-item.lf-product-card .lf-product-card__request-price-only {
	display: flex;
	align-items: flex-end;
}

.lf-catalog-item--request-price .product-item.lf-product-card .lf-product-card__price-row [data-entity="price-block"],
.lf-catalog-item--request-price .product-item.lf-product-card .lf-product-card__price-row [data-entity="lf-basket-row"],
.lf-catalog-item--request-price .product-item.lf-product-card .lf-product-card__price-row [data-entity="quantity-block"] {
	display: none !important;
}

/* Как у цены + «+»: нижняя граница ряда совпадает, без растягивания колонки кнопки по высоте */
.lf-catalog-item--request-price .product-item.lf-product-card .lf-product-card__price-row {
	align-items: flex-end;
}

.lf-catalog-item--request-price .product-item.lf-product-card .lf-product-card__price-row .lf-product-card__buttons-visible {
	flex: 0 1 auto;
	justify-content: flex-start;
	align-items: flex-end;
	align-self: auto;
}

.product-item.lf-product-card .lf-product-card__request-price-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin: 0;
	padding: 0 12px;
	min-height: var(--lf-card-add-btn-size);
	font-family: var(--lf-font-family, "Rubik", sans-serif);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.15;
	color: #0a0a0a;
	text-align: center;
	text-decoration: none;
	background: #fff;
	border: 1px solid #0a0a0a;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.product-item.lf-product-card .lf-product-card__request-price-btn:hover,
.product-item.lf-product-card .lf-product-card__request-price-btn:focus {
	color: #fff;
	background: #0a0a0a;
	outline: none;
}

.product-item.lf-product-card .lf-product-card__price-row .product-item-button-container .btn {
	margin-bottom: 0 !important;
}

.product-item.lf-product-card .lf-product-card__add-btn,
.product-item.lf-product-card .lf-product-card__add-btn.btn-sm,
.product-item.lf-product-card .lf-product-card__add-btn.btn-md {
	width: var(--lf-card-add-btn-size) !important;
	height: var(--lf-card-add-btn-size) !important;
	min-width: var(--lf-card-add-btn-size) !important;
	min-height: var(--lf-card-add-btn-size) !important;
	max-width: var(--lf-card-add-btn-size) !important;
	max-height: var(--lf-card-add-btn-size) !important;
	padding: 0 !important;
	border-radius: 50% !important;
	border: 1px solid #0a0a0a !important;
	background: #fff !important;
	color: #0a0a0a !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	box-sizing: border-box !important;
}

.product-item.lf-product-card .lf-product-card__add-btn:hover,
.product-item.lf-product-card .lf-product-card__add-btn:focus {
	background: #0a0a0a !important;
	color: #fff !important;
	border-color: #0a0a0a !important;
}

/* Bootstrap .btn/.btn-primary даёт box-shadow на :focus — визуально «раздувает» круг и плюс; у круглой иконки не нужен */
.product-item.lf-product-card .lf-product-card__add-btn:focus,
.product-item.lf-product-card .lf-product-card__add-btn:focus-visible,
.product-item.lf-product-card .lf-product-card__add-btn:active,
.product-item.lf-product-card .lf-product-card__add-btn.focus {
	box-shadow: none !important;
	outline: none !important;
}

.product-item.lf-product-card .lf-product-card__add-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Плюс: inline SVG; цвет полосок через fill (не currentColor — у кнопки font-size:0) */
.product-item.lf-product-card .lf-product-card__add-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--lf-card-add-btn-size) * 15 / 36);
	height: calc(var(--lf-card-add-btn-size) * 15 / 36);
	flex-shrink: 0;
}

.product-item.lf-product-card .lf-product-card__add-icon-svg {
	display: block;
	width: calc(var(--lf-card-add-btn-size) * 15 / 36);
	height: calc(var(--lf-card-add-btn-size) * 15 / 36);
	min-width: calc(var(--lf-card-add-btn-size) * 15 / 36);
	min-height: calc(var(--lf-card-add-btn-size) * 15 / 36);
	flex-shrink: 0;
	overflow: visible;
}

.product-item.lf-product-card .lf-product-card__add-icon-svg .lf-product-card__add-icon-bars rect {
	fill: #0a0a0a;
}

.product-item.lf-product-card .lf-product-card__add-btn:hover .lf-product-card__add-icon-svg .lf-product-card__add-icon-bars rect,
.product-item.lf-product-card .lf-product-card__add-btn:focus .lf-product-card__add-icon-svg .lf-product-card__add-icon-bars rect {
	fill: #fff;
}

.product-item.lf-product-card .lf-product-card__detail-glyph {
	display: block;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	transform: translateX(1px);
}

/* Маркетинговая метка: слева сверху, ближе к углу превью */
.product-item.lf-product-card .product-item-image-wrapper .product-item-label-text {
	position: absolute !important;
	top: 8px !important;
	left: 8px !important;
	right: auto !important;
	bottom: auto !important;
	z-index: 14;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
	max-width: calc(100% - 58px);
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.product-item.lf-product-card .product-item-image-wrapper .product-item-label-text > div {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0;
}

/* На карточке показываем подписи и на мобильных (в шаблоне часто d-none d-sm-block) */
.product-item.lf-product-card .product-item-image-wrapper .product-item-label-text .d-none.d-sm-block {
	display: block !important;
}

/* Текст меток: Rubik regular, компактнее базового макета 16/22 */
.product-item.lf-product-card .product-item-image-wrapper .product-item-label-text span {
	display: inline-block;
	margin: 0 !important;
	padding: 5px 12px !important;
	font-family: var(--lf-font-family, "Rubik", sans-serif);
	font-size: 13px !important;
	font-weight: 400;
	line-height: 18px !important;
	letter-spacing: 0;
	color: #1a1a1a !important;
	background: #fff !important;
	border-radius: 999px;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
	white-space: nowrap;
	vertical-align: middle;
	text-align: center;
	pointer-events: auto;
}

.product-item.lf-product-card .product-item-image-wrapper .product-item-label-text.product-item-label-small span,
.product-item.lf-product-card .product-item-image-wrapper .product-item-label-text.product-item-label-big span {
	font-size: 13px !important;
	font-weight: 400;
	padding: 5px 12px !important;
	line-height: 18px !important;
	letter-spacing: 0;
	color: #1a1a1a !important;
	background: #fff !important;
}

@media (max-width: 767px) {
	.product-item.lf-product-card .product-item-image-wrapper .product-item-label-text span,
	.product-item.lf-product-card .product-item-image-wrapper .product-item-label-text.product-item-label-small span,
	.product-item.lf-product-card .product-item-image-wrapper .product-item-label-text.product-item-label-big span {
		font-size: 12px !important;
		line-height: 17px !important;
		font-weight: 400;
		padding: 5px 10px !important;
	}
}

/* Круг скидки — внизу слева, чтобы не наезжал на капсулу и сердце */
.product-item.lf-product-card .product-item-image-wrapper .product-item-label-ring {
	top: auto !important;
	left: 16px !important;
	right: auto !important;
	bottom: 16px !important;
	transform: none !important;
}

.product-item.lf-product-card .lf-product-card__wishlist-wrap {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 18;
	margin: 0 !important;
	pointer-events: auto;
	/* Bitrix показывает .product-item-compare-container только при .hover — без hover нужен явный display */
	display: block !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	min-height: 0 !important;
	padding: 0 !important;
}

.product-item.lf-product-card .lf-product-card__wishlist .checkbox {
	margin: 0;
	padding: 0;
}

/* Кнопка «избранное»: SVG из макета (круг 48×48, fill-opacity 0.3, сердце stroke 2); тень — как filter feOffset dy=20 + blur 17.5 */
.product-item.lf-product-card .lf-product-card__wishlist-label {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 50%;
	border: none;
	box-shadow: none;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 48px 48px;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%2735%2012%2048%2048%27%20fill%3D%27none%27%3E%3Crect%20x%3D%2735%27%20y%3D%2712%27%20width%3D%2748%27%20height%3D%2748%27%20rx%3D%2724%27%20fill%3D%27white%27%20fill-opacity%3D%270.3%27%2F%3E%3Cpath%20fill%3D%27none%27%20d%3D%27M60.3926%2045.2049C59.9734%2045.4629%2059.7637%2045.5919%2059.4378%2045.6651C59.1946%2045.7196%2058.8054%2045.7196%2058.5622%2045.6651C58.2363%2045.5919%2058.0266%2045.4629%2057.6074%2045.2049C54.8588%2043.5133%2049%2039.2477%2049%2033.6213C49%2030.514%2051.49%2028%2054.56%2028C56.38%2028%2057.99%2028.8849%2059%2030.2525C60.01%2028.8849%2061.63%2028%2063.44%2028C66.51%2028%2069%2030.514%2069%2033.6213C69%2039.2477%2063.1412%2043.5133%2060.3926%2045.2049Z%27%20stroke%3D%27white%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%2F%3E%3C%2Fsvg%3E");
	/* feGaussianBlur stdDeviation 17.5 → ~35px визуально; alpha 0.15 */
	filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.15));
	cursor: pointer;
}

.product-item.lf-product-card .lf-product-card__wishlist-label:hover {
	filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.18));
}

@keyframes lf-wishlist-tap {
	0% {
		transform: scale(1);
	}
	45% {
		transform: scale(0.92);
	}
	100% {
		transform: scale(1);
	}
}

.product-item.lf-product-card .lf-product-card__wishlist-label.lf-wishlist--animating {
	animation: lf-wishlist-tap 0.38s ease;
}

.product-item.lf-product-card .lf-product-card__wishlist-label input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.product-item.lf-product-card .lf-product-card__compare-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.product-item.lf-product-card .lf-product-card__wishlist-heart {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.product-item.lf-product-card .lf-product-card__wishlist-label:has(input:checked) {
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%2735%2012%2048%2048%27%20fill%3D%27none%27%3E%3Crect%20x%3D%2735%27%20y%3D%2712%27%20width%3D%2748%27%20height%3D%2748%27%20rx%3D%2724%27%20fill%3D%27white%27%20fill-opacity%3D%270.3%27%2F%3E%3Cpath%20d%3D%27M60.3926%2045.2049C59.9734%2045.4629%2059.7637%2045.5919%2059.4378%2045.6651C59.1946%2045.7196%2058.8054%2045.7196%2058.5622%2045.6651C58.2363%2045.5919%2058.0266%2045.4629%2057.6074%2045.2049C54.8588%2043.5133%2049%2039.2477%2049%2033.6213C49%2030.514%2051.49%2028%2054.56%2028C56.38%2028%2057.99%2028.8849%2059%2030.2525C60.01%2028.8849%2061.63%2028%2063.44%2028C66.51%2028%2069%2030.514%2069%2033.6213C69%2039.2477%2063.1412%2043.5133%2060.3926%2045.2049Z%27%20fill%3D%27%23e11d48%27%20stroke%3D%27%23e11d48%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%2F%3E%3C%2Fsvg%3E");
}

/*
 * Скрытые блоки: в bootstrap_v4 на bx-touch им даётся display:block — карточка раздувается снизу.
 * Пока класс product-item-hidden, в потоке не держим; при показе Bitrix обычно снимает класс.
 */
.product-item.lf-product-card .product-item-info-container.product-item-hidden {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	min-height: 0 !important;
}

.product-item.lf-product-card .product-item-info-container[data-entity="props-block"],
.product-item.lf-product-card .product-item-info-container[id*="prop"] {
	padding-left: 16px;
	padding-right: 16px;
}

/* —— Список: только 2 ряда карточек, остальное по кнопке (lf-catalog-rows-more.js) —— */
body.lf-catalog-page .catalog-section[data-entity^="container-"] > [data-entity="items-row"].lf-catalog-row--more,
body.lf-catalog-page .catalog-section[data-entity^="container-"] > [data-entity="items-row"].lf-catalog-row--more[hidden] {
	display: none !important;
}

/* Обёртка кнопки: дублируем без только body (кэш/порядок CSS); отступы подстраховывает JS (inline). */
body.lf-catalog-page .catalog-section[data-entity^="container-"] > .lf-catalog-show-more-rows-wrap,
.catalog-section[data-entity^="container-"] > .lf-catalog-show-more-rows-wrap {
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 32px !important;
	padding: 24px 16px 32px !important;
}

body.lf-catalog-page .catalog-section[data-entity^="container-"] > .lf-catalog-show-more-rows-wrap.lf-catalog-show-more-rows-wrap--expanded,
.catalog-section[data-entity^="container-"] > .lf-catalog-show-more-rows-wrap.lf-catalog-show-more-rows-wrap--expanded {
	padding-top: 36px !important;
	padding-bottom: 40px !important;
	margin-bottom: 36px !important;
}

body.lf-catalog-page .lf-catalog-show-more-rows-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 20px;
	min-height: 44px;
	font-family: "Rubik", var(--lf-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
	color: #000;
	text-align: center;
	white-space: nowrap;
	background: #fff;
	border: 1px solid #000;
	border-radius: 8px;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease;
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

body.lf-catalog-page .lf-catalog-show-more-rows-btn:hover {
	background: #f4f4f4;
	color: #000;
	border-color: #000;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

body.lf-catalog-page .lf-catalog-show-more-rows-btn:focus {
	outline: none;
}

body.lf-catalog-page .lf-catalog-show-more-rows-btn:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

body.lf-catalog-page .lf-catalog-show-more-rows-btn:active {
	background: #ebebeb;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.lf-catalog-page .lf-catalog-show-more-rows__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	line-height: 0;
	color: #000;
	transition: transform 0.2s ease;
}

body.lf-catalog-page .lf-catalog-show-more-rows__icon svg {
	display: block;
	width: 12px;
	height: 18px;
}

/* «Скрыть» — тот же SVG, поворот на 180° */
body.lf-catalog-page .lf-catalog-show-more-rows-btn--expanded .lf-catalog-show-more-rows__icon {
	transform: rotate(180deg);
	transform-origin: 50% 50%;
}

/* —— Листинг: «Найдено товаров» + сортировка (макет) —— */
body.lf-catalog-page .lf-catalog-listing-toolbar {
	position: relative;
	/* Ниже .lf-cat-dir--catalog-root при hover (z-index 100), чтобы мега-субменю перекрывало строку листинга */
	z-index: 30;
	isolation: isolate;
	width: 100%;
	gap: 12px;
	overflow: visible;
	margin-bottom: 24px;
}

body.lf-catalog-page .lf-catalog-listing-toolbar__count {
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.35;
	color: #0a0a0a;
}

body.lf-catalog-page .lf-catalog-listing-toolbar__count-num {
	font-weight: 700;
}

/*
 * Нативный <details>: Bitrix ui.bootstrap4 грузит bootstrap.js без Popper — Bootstrap dropdown падает при открытии.
 */
body.lf-catalog-page .lf-catalog-sort-details {
	position: relative;
	z-index: 2;
	isolation: isolate;
	display: inline-block;
	text-align: right;
	vertical-align: top;
}

@media (min-width: 992px) {
	body.lf-catalog-page .lf-catalog-root-listing:has(> .col-lg-2) > .col-lg-10 .lf-catalog-sort-details {
		width: min(100%, max(124px, calc(20.833333cqi - 90px)));
		max-width: 100%;
	}

	body.lf-catalog-page .lf-catalog-root-listing:has(> .col-lg-2) > .col-lg-10 .lf-catalog-sort-details > summary.lf-catalog-sort-toggle {
		width: 100%;
		min-width: 0;
	}
}

body.lf-catalog-page .lf-catalog-sort-details > summary.lf-catalog-sort-toggle {
	position: relative;
	z-index: 3;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	min-width: 124px;
	width: fit-content;
	max-width: 100%;
	height: 48px;
	padding: 0 14px;
	font-family: var(--lf-font-family, "Rubik", sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.25;
	color: #000;
	text-align: left;
	list-style: none;
	cursor: pointer;
	background: #fff;
	border: 1px solid #000;
	border-radius: 10px;
	box-shadow: none;
}

body.lf-catalog-page .lf-catalog-sort-details > summary.lf-catalog-sort-toggle::-webkit-details-marker {
	display: none;
}

body.lf-catalog-page .lf-catalog-sort-details > summary.lf-catalog-sort-toggle::after {
	content: "";
	display: block;
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	margin-left: auto;
	border-right: 2px solid #000;
	border-bottom: 2px solid #000;
	transform: rotate(45deg) translateY(-2px);
	transform-origin: 50% 50%;
}

body.lf-catalog-page .lf-catalog-sort-details[open] > summary.lf-catalog-sort-toggle::after {
	transform: rotate(225deg) translateY(-2px);
}

body.lf-catalog-page .lf-catalog-sort-details > summary.lf-catalog-sort-toggle:hover,
body.lf-catalog-page .lf-catalog-sort-details > summary.lf-catalog-sort-toggle:focus {
	color: #000;
	background: #fff;
	border-color: #000;
	box-shadow: none;
	outline: none;
}

body.lf-catalog-page .lf-catalog-sort-details > summary.lf-catalog-sort-toggle:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

body.lf-catalog-page .lf-catalog-sort-panel {
	position: absolute;
	z-index: 1;
	right: 0;
	top: calc(100% - 12px);
	min-width: 100%;
	width: max-content;
	max-width: min(280px, 100vw - 24px);
	padding: 14px 0 6px;
	margin: 0;
	text-align: left;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.lf-catalog-page .lf-catalog-sort-item {
	display: block;
	padding: 8px 8px;
	font-family: var(--lf-font-family, "Rubik", sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.25;
	color: #000;
	text-decoration: none;
	white-space: nowrap;
}

body.lf-catalog-page .lf-catalog-sort-item:hover,
body.lf-catalog-page .lf-catalog-sort-item:focus {
	background: #f5f5f5;
	color: #000;
	text-decoration: none;
}

body.lf-catalog-page .lf-catalog-sort-item--active {
	font-weight: 700;
	background: #f3f3f3;
	color: #000;
}

body.lf-catalog-page .lf-catalog-listing-divider {
	position: relative;
	z-index: 0;
	height: 0;
	margin: 0 0 20px;
	border: 0;
	border-bottom: 1px solid #e5e5e5;
}
