.product-title {
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: clamp(1.05rem, 1.8vw, 1.28rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
	text-align: left;
	padding: 2px 2px 6px;
	margin: 0;
	color: var(--site-fg, #000b5a);
}

/* 1 → 2: подкаталоги | блок «Вид»/бренды/сортировка+таблица */
.catalog-head {
	margin: 0 0 20px;
}
.catalog-head > .cat2-grid {
	padding: 0;
	margin: 0;
}

.cat2-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
	gap: 8px;
	padding: 2px 0 4px;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
.cat2-chip {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--site-fg, #000b5a);
	background: rgba(15, 23, 42, 0.05);
	border: 1px solid rgba(15, 23, 42, 0.08);
	text-decoration: none;
	text-align: left;
	white-space: normal;
	overflow-wrap: anywhere;
	hyphens: auto;
	min-width: 0;
	box-sizing: border-box;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.cat2-chip:hover {
	background: rgba(13, 148, 136, 0.12);
	border-color: rgba(13, 148, 136, 0.35);
	transform: translateY(-1px);
}
.cat2-chip.is-active {
	font-weight: 700;
	background: rgba(13, 148, 136, 0.16);
	border-color: rgba(13, 148, 136, 0.4);
	box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.2);
}
/* L1 — заголовок-родитель над чипами L2 */
.cat2-chip--section {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	margin: 0 0 2px;
	padding: 2px 2px 10px 10px;
	font-weight: 750;
	font-size: 14px;
	line-height: 1.3;
	letter-spacing: -0.01em;
	cursor: pointer;
	background: transparent;
	border: none;
	border-radius: 0;
	border-left: 3px solid rgba(13, 148, 136, 0.55);
	border-bottom: 1px solid rgba(15, 23, 42, 0.12);
	box-shadow: none;
	text-decoration: none;
	color: inherit;
}
.cat2-chip--section::before {
	content: "Раздел";
	font-size: 10px;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.55;
	line-height: 1.2;
}
.cat2-chip--section.is-active {
	border-left-color: rgba(13, 148, 136, 0.85);
}
.cat2-chip--section.is-active,
.cat2-chip--section:hover {
	font-weight: 750;
	background: transparent;
	border-color: transparent;
	border-left-color: rgba(13, 148, 136, 0.85);
	border-bottom-color: rgba(15, 23, 42, 0.16);
	box-shadow: none;
	transform: none;
	opacity: 1;
}
html.theme-preset-new2026 .cat2-chip--section {
	border-left-color: rgba(34, 158, 217, 0.65);
	border-bottom-color: rgba(255, 255, 255, 0.14);
}
html.theme-preset-new2026 .cat2-chip--section.is-active,
html.theme-preset-new2026 .cat2-chip--section:hover {
	border-left-color: rgba(34, 158, 217, 0.95);
	border-bottom-color: rgba(255, 255, 255, 0.2);
}
/* Выбранный L2 — цветом */
html.theme-preset-new2026 .cat2-chip.is-active:not(.cat2-chip--section) {
	background: rgba(34, 158, 217, 0.28);
	border-color: rgba(34, 158, 217, 0.55);
	box-shadow: inset 0 0 0 1px rgba(34, 158, 217, 0.2);
}

.brand-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	padding: 8px 4px;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 14px;
	color: var(--site-fg, #000b5a);
}
.brand-filter__lab {
	flex: 0 0 auto;
	margin-right: 4px;
}
/* Один бренд: «Здесь товары только» + пиктограмма в одну строку */
.brand-filter--single {
	flex-wrap: nowrap;
	white-space: nowrap;
	gap: 0.35em;
	align-items: center;
}
.brand-filter--single .brand-filter__lab {
	margin-right: 0;
}
.brand-filter--single .brand-filter__ico {
	display: inline-block;
	height: 1em;
	width: auto !important;
	max-height: 1em;
	padding: 0;
	margin: 0;
	vertical-align: -0.12em;
	object-fit: contain;
}
.brand-filter a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}
.brand-filter__logo {
	max-height: 17px;
	width: auto;
	height: auto;
	padding-left: 10px;
	object-fit: contain;
	vertical-align: middle;
}
.brand-filter__nobrand {
	display: inline-flex;
	align-items: center;
	margin-left: 10px;
	padding: 2px 8px;
	border: 1px dashed rgba(15, 23, 42, 0.28);
	border-radius: 6px;
	font-size: 0.92em;
	line-height: 1.2;
	color: inherit;
	opacity: 0.85;
	white-space: nowrap;
}
.brand-filter--single .brand-filter__nobrand {
	margin-left: 0;
	padding: 0;
	border: none;
	opacity: 1;
}

/* Марки + «Вид» в одну строку; максимум расстояния по ширине */
.catalog-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: 24px;
	row-gap: 8px;
	margin: 0;
	width: 100%;
	box-sizing: border-box;
}
.catalog-tools .catalog-products__toolbar {
	flex: 0 0 auto;
	order: -1;
	margin: 0;
	gap: 8px 10px;
}
.catalog-tools:has(> .brand-filter) .catalog-products__toolbar {
	margin-right: 0;
	padding-right: 0;
	border-right: none;
}
.catalog-tools > .brand-filter {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	padding: 4px 0;
	order: 0;
	gap: 12px 18px;
	margin-left: auto;
}
.catalog-tools > .catalog-list {
	display: contents;
}
.catalog-tools .catalog-products {
	display: contents;
}
/* «Вид»/бренды ближе к таблице, чем к подкаталогам */
.catalog-tools .product-grid,
.catalog-tools .catalog-products__cards,
.catalog-tools .product-table-wrap,
.catalog-tools .catalog-products__table {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	margin-top: 8px;
}

/* Вид + сортировка + таблица: ширина по таблице (не на весь экран) */
.catalog-tools:has(.catalog-products[data-view="table"]) {
	display: grid;
	grid-template-columns: minmax(0, min(100%, var(--catalog-table-w, max-content)));
	justify-content: start;
	justify-items: stretch;
	align-items: center;
	column-gap: 0;
	row-gap: 8px;
}
.catalog-tools:has(.catalog-products[data-view="table"]) .catalog-products__toolbar {
	grid-row: 1;
	grid-column: 1;
	justify-self: start;
	order: unset;
	margin: 0;
	width: auto;
	max-width: 55%;
}
.catalog-tools:has(.catalog-products[data-view="table"]) > .brand-filter {
	grid-row: 1;
	grid-column: 1;
	justify-self: end;
	align-self: center;
	order: unset;
	margin: 0;
	max-width: 55%;
	padding: 0;
}
.catalog-tools:has(.catalog-products[data-view="table"]) .product-table-wrap,
.catalog-tools:has(.catalog-products[data-view="table"]) .catalog-products__table {
	grid-column: 1;
	width: auto;
	max-width: 100%;
	margin-top: 0;
	flex: unset;
	align-items: flex-start;
}
.catalog-tools:has(.catalog-products[data-view="table"]) .catalog-products__cards {
	display: none;
}

/* Узкий экран: «Вид» и бренды не в одной ячейке — иначе наезд */
@media (max-width: 768px) {
	.catalog-tools {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		column-gap: 0;
		row-gap: 7px;
	}
	.catalog-tools .catalog-products__toolbar {
		order: -1;
		width: 100%;
		max-width: 100%;
		margin: 0;
	}
	.catalog-tools > .brand-filter {
		order: 0;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		padding: 2px 0 4px;
		gap: 10px 14px;
	}
	.catalog-tools:has(.catalog-products[data-view="table"]) {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		grid-template-columns: none;
	}
	.catalog-tools:has(.catalog-products[data-view="table"]) .catalog-products__toolbar,
	.catalog-tools:has(.catalog-products[data-view="table"]) > .brand-filter {
		grid-row: auto;
		grid-column: auto;
		justify-self: stretch;
		align-self: stretch;
		width: 100%;
		max-width: 100%;
		margin: 0;
	}
	.catalog-tools:has(.catalog-products[data-view="table"]) .product-table-wrap,
	.catalog-tools:has(.catalog-products[data-view="table"]) .catalog-products__table {
		width: 100%;
		max-width: 100%;
		margin-top: 0;
	}
	.brand-filter__lab {
		flex: 1 1 100%;
		margin: 0 0 2px;
	}
	.brand-filter__logo {
		padding-left: 0;
	}
	.brand-filter__nobrand {
		margin-left: 0;
	}
}

.product-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: flex-start;
	padding: 0 0 20px;
}
.product-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 200px;
	min-height: 220px;
	margin: 0;
	padding: 14px 12px 16px;
	box-sizing: border-box;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.45);
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
	float: none;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
	border-color: rgba(13, 148, 136, 0.35);
}
.product-tile a {
	color: inherit;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 13px;
	line-height: 1.35;
}
.product-tile__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 110px;
}
.product-tile__img img {
	max-width: 100%;
	max-height: 100px;
	width: auto;
	height: auto;
	object-fit: contain;
}
.product-tile__name { font-weight: 600; }
.product-tile__art {
	font-size: 12px;
	opacity: 0.7;
	font-weight: 500;
}
.product-tile__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding-top: 6px;
	min-height: 14px;
}
.product-tile__brand img {
	height: 10px;
	width: auto;
	display: block;
}
.product-tile__brand-txt {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.7;
}
.product-tile__status {
	font-size: 11.5px;
	font-weight: 600;
	color: #0f766e;
	text-transform: none;
}
.product-tile.is-oos .product-tile__status {
	color: var(--site-fg-muted, color-mix(in srgb, var(--site-fg, #000b5a) 48%, var(--site-bg, #f3e7e7)));
	text-transform: lowercase;
}
.product-tile.is-oos .product-tile__name,
.product-tile.is-oos .product-tile__art {
	color: var(--site-fg-muted, color-mix(in srgb, var(--site-fg, #000b5a) 48%, var(--site-bg, #f3e7e7)));
}

.catalog-products { margin: 0 0 12px; }
.catalog-products__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 10px;
}
.catalog-products__toolbar-lab,
.search-results__sort-lab {
	font-size: 0.86rem;
	font-weight: 600;
	opacity: 0.75;
	margin-right: 2px;
}
.catalog-products__view-btn,
.search-results__sort-btn {
	display: inline-flex;
	align-items: center;
	height: 1.85rem;
	padding: 0 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.14);
	background: rgba(255, 255, 255, 0.55);
	color: inherit;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
}
.catalog-products__view-btn:not(.is-active) {
	background: transparent;
	border-color: transparent;
	color: inherit;
}
.search-results__sort-btn {
	padding: 0 0.7rem;
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
}
.catalog-products__view-btn:hover,
.search-results__sort-btn:hover {
	border-color: rgba(13, 148, 136, 0.45);
	background: rgba(13, 148, 136, 0.1);
}
.catalog-products__view-btn.is-active,
.search-results__sort-btn.is-active {
	background: #0d9488;
	border-color: #0d9488;
	color: #fff;
}
.catalog-products__cards[hidden],
.catalog-products__table[hidden] { display: none !important; }

.product-table-wrap {
	width: fit-content;
	max-width: 100%;
	overflow-x: auto;
	border-radius: 0;
	border: none;
	background: transparent;
	color: var(--site-fg, #000b5a);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.product-table__sortbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	font-size: 0.82rem;
	background: transparent;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.product-table__sortbar-lab { font-weight: 700; opacity: 0.8; }
.product-table__sortbar-hint { opacity: 0.65; }
.product-table__sort-clear {
	margin-left: auto;
	height: 1.7rem;
	padding: 0 0.7rem;
	border-radius: 6px;
	border: 1px solid rgba(15, 23, 42, 0.16);
	background: rgba(255, 255, 255, 0.6);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	color: inherit;
}
.product-table__sort-clear[hidden] { display: none !important; }
.product-table__sort-clear:hover {
	border-color: rgba(185, 28, 28, 0.45);
	background: rgba(185, 28, 28, 0.08);
}
.product-table {
	width: max-content;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	border-collapse: collapse;
	font-size: 0.92rem;
	line-height: 1.35;
	table-layout: fixed;
	box-sizing: border-box;
}
.product-table th,
.product-table td {
	padding: 8px 8px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	text-align: left;
	vertical-align: middle;
}
.product-table thead th {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.9;
	white-space: nowrap;
	user-select: none;
	background: transparent;
	color: inherit;
	text-align: center;
}
.product-table thead th[data-sort] { cursor: pointer; }
.product-table-wrap:not(.is-compact) .product-table thead th[data-col]:not([data-col="rowbreak"]) {
	cursor: grab;
}
.product-table-wrap:not(.is-compact) .product-table thead th.is-col-dragging {
	cursor: grabbing;
	opacity: 0.45;
}
.product-table-wrap:not(.is-compact) .product-table thead th.is-col-drop-before {
	box-shadow: inset 3px 0 0 #0d9488;
}
.product-table-wrap:not(.is-compact) .product-table thead th.is-col-drop-after {
	box-shadow: inset -3px 0 0 #0d9488;
}
.product-table__th {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	box-sizing: border-box;
}
.product-table__th-lab { line-height: 1; flex: 1 1 auto; min-width: 0; }
/* сум0: не растягивать подпись — чекбокс рядом со словом «Цена» */
.product-table__th:has(.product-table__price0) .product-table__th-lab {
	flex: 0 0 auto;
}
.product-table__th .product-table__price0 {
	flex: 0 0 auto;
	opacity: 1;
	margin-left: -2px; /* gap 6px → ~4px от слова */
}
/* Клик по «Цена» — сум0; сортировка только через ▲▼ */
.product-table thead th:has(.product-table__price0) {
	cursor: pointer;
}
.product-table thead th:has(.product-table__price0) .product-table__sort-btns {
	cursor: default;
}
.product-table__sort-pri {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.2rem;
	border-radius: 999px;
	background: #0d9488;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1;
	flex: 0 0 auto;
}
.product-table__sort-pri[hidden] { display: none !important; }
.product-table__sort-clear-col {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(185, 28, 28, 0.35);
	border-radius: 999px;
	background: rgba(185, 28, 28, 0.1);
	color: #b91c1c;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	flex: 0 0 1.15rem;
	box-sizing: border-box;
}
.product-table__sort-clear-col[hidden] {
	display: none !important;
}
.product-table__sort-clear-col:hover {
	background: rgba(185, 28, 28, 0.2);
	border-color: rgba(185, 28, 28, 0.55);
}
.product-table__sort-btns {
	display: inline-flex;
	flex-direction: column;
	gap: 1px;
	margin-left: 2px;
	flex: 0 0 auto;
}
.product-table__sort-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15rem;
	height: 0.85rem;
	padding: 0;
	border: 1px solid rgba(15, 23, 42, 0.14);
	border-radius: 3px;
	background: transparent;
	color: inherit;
	font-size: 0.55rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
}
.product-table__sort-btn:hover {
	opacity: 1;
	border-color: rgba(13, 148, 136, 0.5);
	background: rgba(13, 148, 136, 0.12);
}
.product-table__sort-btn.is-active {
	opacity: 1;
	background: #0d9488;
	border-color: #0d9488;
	color: #fff;
}
.product-table th.is-sorted { color: #0f766e; }
/* Скрытый разделитель строк (только для мобильной вёрстки) */
.product-table__rowbreak { display: none; }
.product-table tbody tr:hover { background: rgba(13, 148, 136, 0.06); }
/* Нет на складе и нет в пути — приглушённый текст от --site-fg/--site-bg */
.product-table__row.is-oos,
.product-table__row.is-oos a,
.product-table__row.is-oos .product-table__stock-now,
.product-table__row.is-oos .product-table__price {
	color: var(--site-fg-muted, color-mix(in srgb, var(--site-fg, #000b5a) 48%, var(--site-bg, #f3e7e7)));
}
.product-table__row.is-oos { opacity: 0.88; }
.product-table__row.is-oos a:hover {
	color: var(--site-fg, #000b5a);
	text-decoration: underline;
	opacity: 1;
}
.product-table a {
	color: inherit;
	text-decoration: none;
}
.product-table a:hover { color: #0f766e; text-decoration: underline; }
.product-table__art {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	width: max-content;
	max-width: none;
	overflow: visible;
	text-overflow: unset;
}
.product-table__art-inline { display: none; }
.product-table__info {
	color: inherit;
	text-decoration: none;
}
.product-table__name-txt { color: inherit; }
.product-table__name {
	width: 22rem;
	min-width: 16rem;
	max-width: 28rem;
	padding-right: 10px;
	overflow-wrap: break-word;
	word-break: normal;
}
.product-table__price {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	font-weight: 650;
	width: max-content;
	min-width: 9rem;
	padding-left: 8px;
	padding-right: 8px;
}
.product-table__prices {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: baseline;
	justify-content: flex-end;
	gap: 0 4px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.product-table__price-n {
	display: inline-block;
	white-space: nowrap;
}
.product-table__stock {
	white-space: normal;
	font-variant-numeric: tabular-nums;
	width: 11rem;
	padding-left: 8px;
	padding-right: 8px;
	line-height: 1.25;
}
.product-table__stock-now,
.product-table__stock-arriv {
	display: block;
	line-height: 1.25;
	font-size: inherit;
	font-weight: 600;
	opacity: 1;
	white-space: nowrap;
	text-align: center;
}
.product-table__basket {
	white-space: nowrap;
	width: 7.5rem;
	text-align: center;
	padding-left: 4px;
	padding-right: 6px;
}
.product-table__basket .qty-stepper {
	min-width: 88px;
	height: 32px;
}
.product-table__basket-na { opacity: 0.45; }
.product-table__img,
.product-table thead th.product-table__img {
	width: 64px;
	min-width: 64px;
	max-width: 64px;
	white-space: nowrap;
	text-align: center;
	padding-left: 4px;
	padding-right: 4px;
	box-sizing: border-box;
	vertical-align: middle;
	overflow: hidden;
}
.product-table thead th.product-table__img {
	font-size: 0.65rem;
	letter-spacing: 0;
}
.product-table__thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 40px;
	max-width: 56px;
	vertical-align: middle;
}
.product-table__thumb img {
	max-width: 56px;
	max-height: 40px;
	width: auto;
	height: auto;
	object-fit: contain;
}
html.theme-preset-new2026 .catalog-products__view-btn,
html.theme-preset-new2026 .search-results__sort-btn {
	background: rgba(0, 0, 0, 0.28);
	border-color: rgba(255, 255, 255, 0.22);
	color: #e0f2f1;
}
html.theme-preset-new2026 .catalog-products__view-btn:not(.is-active) {
	background: transparent;
	border-color: transparent;
	color: inherit;
}
html.theme-preset-new2026 .catalog-products__view-btn.is-active,
html.theme-preset-new2026 .product-table__sort-btn.is-active,
html.theme-preset-new2026 .search-results__sort-btn.is-active {
	background: #229ED9;
	border-color: #1489c2;
	color: #fff;
}
html.theme-preset-new2026 .search-results__sort-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(126, 232, 212, 0.5);
}
html.theme-preset-new2026 .product-table-wrap {
	color: var(--site-fg, #0a3d33);
}
html.theme-preset-new2026 .product-table tbody tr:hover {
	background: rgba(13, 148, 136, 0.12);
}
html.theme-preset-new2026 .product-table__sort-pri { background: #229ED9; }
html.theme-preset-new2026 .product-tile__status { color: #0f766e; }

