@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400&display=swap");

.catalog-filters {
	--cf-font: "graphik_lcg", "Graphik-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--cf-font-medium: "graphik_lcg1", "graphik_lcg", "Graphik-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--cf-font-menu: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--cf-border: #ececec;
	--cf-text: #111;
	--cf-muted: #8d8da0;
	--cf-bg: #fff;
	--cf-accent: #a333c8;
	--cf-accent-hover: #8f2eb0;
	--cf-track: #ebe6f2;
	--cf-radius: 14px;
	--cf-shadow: 0 16px 48px rgba(28, 28, 40, 0.14), 0 4px 16px rgba(28, 28, 40, 0.08);
	--cf-rail-width: 24px;
	margin-bottom: 24px;
	position: relative;
	z-index: 1000; /* выше header/top_header (z-index: 50), иначе panel/overlay «заперты» в контексте 30 */
	overflow: visible;
	font-family: var(--cf-font);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
}

.catalog-filters__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	position: relative;
	z-index: 40;
	overflow: visible;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.catalog-filters.is-under-sticky .catalog-filters__toolbar {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-8px);
}

.catalog-filters__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cf-text);
	font-family: var(--cf-font-medium);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

.catalog-filters__btn:hover {
	color: var(--cf-accent);
}

.catalog-filters__btn-icon {
	flex-shrink: 0;
}

.catalog-filters__count[hidden] {
	display: none !important;
}

/* --- Сортировка (кастомный dropdown) --- */
.catalog-filters__sort {
	position: relative;
	flex-shrink: 0;
	z-index: 50;
}

.catalog-filters__sort.is-open {
	/* выше .mobail_header (z-index: 16000161 в vendor/main.css) */
	z-index: 16000220;
}

.catalog-filters__sort-native {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.catalog-filters__sort-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cf-text);
	font-family: var(--cf-font-medium);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
}

.catalog-filters__sort-trigger:focus {
	outline: none !important;
}

.catalog-filters__sort-trigger:hover,
.catalog-filters__sort.is-open .catalog-filters__sort-trigger {
	color: var(--cf-accent);
}

.catalog-filters__sort-chevron {
	flex-shrink: 0;
	transition: transform .2s;
}

.catalog-filters__sort.is-open .catalog-filters__sort-chevron {
	transform: rotate(180deg);
}

.catalog-filters__sort-menu {
	position: fixed;
	z-index: 16000221;
	min-width: 260px;
	max-width: calc(100vw - 16px);
	padding: 0;
	border: 1px solid rgba(0, 0, 0, .05);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 16px 48px rgba(28, 28, 40, 0.14), 0 4px 16px rgba(28, 28, 40, 0.08);
	overflow: hidden;
	box-sizing: border-box;
}

.catalog-filters__sort-menu.is-positioned {
	visibility: visible;
}

.catalog-filters__sort-menu[hidden] {
	display: none;
}

.catalog-filters__sort-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 14px 20px;
	border: 0;
	border-top: 1px solid #f0f0f0;
	background: transparent;
	color: #111;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: left;
	cursor: pointer;
	transition: background .15s;
}

.catalog-filters__sort-option:first-child {
	border-top: 0;
}

.catalog-filters__sort-option:hover {
	background: #f5f5f5;
}

.catalog-filters__sort-option:first-child:hover {
	border-radius: 22px 22px 0 0;
}

.catalog-filters__sort-option:last-child:hover {
	border-radius: 0 0 22px 22px;
}

.catalog-filters__sort-check {
	flex-shrink: 0;
	opacity: 0;
	color: #a333c8;
}

.catalog-filters__sort-option.is-active .catalog-filters__sort-check {
	opacity: 1;
}

/* --- Оверлей и панель --- */
.catalog-filters__overlay {
	position: fixed;
	inset: 0;
	/* выше .mobail_header / .sticky (z-index: 16000161) */
	z-index: 16000200;
	background: rgba(0, 0, 0, .45);
}

.catalog-filters__overlay[hidden] {
	display: none;
}

.catalog-filters__panel {
	--cf-font: "graphik_lcg", "Graphik-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--cf-font-medium: "graphik_lcg1", "graphik_lcg", "Graphik-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--cf-border: #ececec;
	--cf-text: #111;
	--cf-muted: #8d8da0;
	--cf-bg: #fff;
	--cf-accent: #a333c8;
	--cf-accent-hover: #8f2eb0;
	--cf-track: #ebe6f2;
	--cf-shadow: 0 16px 48px rgba(28, 28, 40, 0.14), 0 4px 16px rgba(28, 28, 40, 0.08);
	--cf-rail-width: 24px;
	--cf-panel-x: 24px;
	position: fixed;
	z-index: 16000210;
	display: flex;
	flex-direction: column;
	background: var(--cf-bg);
	box-shadow: var(--cf-shadow);
	transition: transform .28s ease;
	overflow: hidden;
	color: var(--cf-text);
	font-family: var(--cf-font);
}

@media (min-width: 768px) {
	.catalog-filters__panel {
		top: 24px;
		left: 24px;
		bottom: 24px;
		width: min(500px, calc(100vw - 48px));
		max-width: calc(100vw - 48px);
		height: auto;
		border-radius: 20px;
		transform: translateX(calc(-100% - 32px));
	}

	.catalog-filters__panel.is-open {
		transform: translateX(0);
	}
}

.catalog-filters__panel-handle {
	display: none;
}

.catalog-filters__panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	padding: 24px 24px 0;
}

.catalog-filters__panel-title {
	margin: 0;
	font-family: var(--cf-font-medium);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.03em;
	color: var(--cf-text);
}

.catalog-filters__panel-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-right: -4px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--cf-text);
	cursor: pointer;
}

.catalog-filters__panel-close:hover {
	background: #f5f5f5;
}

.catalog-filters__panel-body {
	flex: 1;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	--cf-panel-x: 24px;
	padding: 0 var(--cf-panel-x);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.catalog-filters__panel-body::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.catalog-filters__accordion {
	padding-top: 0;
}

.catalog-filters__group {
	border-bottom: 1px solid #f2f2f2;
}

.catalog-filters__group:last-child {
	border-bottom: 0;
}

.catalog-filters__group-head {
	display: block;
}

.catalog-filters__group-toggle {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--cf-rail-width);
	align-items: center;
	gap: 8px;
	width: 100%;
	min-width: 0;
	padding: 12px 0;
	border: 0;
	background: transparent;
	color: var(--cf-text);
	font-family: var(--cf-font-medium);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
}

.catalog-filters__group:first-child .catalog-filters__group-toggle {
	padding-top: 16px;
}

.catalog-filters__group.is-open .catalog-filters__group-toggle {
	padding-bottom: 10px;
}

.catalog-filters__group-title-row {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 6px;
	min-width: 0;
}

.catalog-filters__group-title {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.catalog-filters__group-badge {
	color: var(--cf-accent);
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.catalog-filters__group-badge:empty,
.catalog-filters__group-badge[hidden] {
	display: none;
}

.catalog-filters__group-reset {
	flex-shrink: 0;
	margin-left: 4px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cf-muted);
	font-family: var(--cf-font);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
}

.catalog-filters__group-reset:hover {
	color: var(--cf-text);
}

.catalog-filters__group-reset[hidden] {
	display: none;
}

.catalog-filters__chevron {
	flex-shrink: 0;
	justify-self: end;
	width: 12px;
	height: 8px;
	margin-left: 0;
	transition: transform .2s;
}

.catalog-filters__group.is-open .catalog-filters__chevron {
	transform: rotate(180deg);
}

.catalog-filters__group-content {
	padding-bottom: 4px;
}

.catalog-filters__group-content[hidden] {
	display: none;
}

.catalog-filters__price-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 10px;
}

.catalog-filters__price-field {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--cf-border);
	border-radius: 12px;
	background: #fff;
	cursor: text;
}

.catalog-filters__price-field:focus-within {
	border-color: var(--cf-accent);
}

.catalog-filters__price-prefix {
	flex-shrink: 0;
	color: var(--cf-muted);
	font-family: var(--cf-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
}

.catalog-filters__price-value {
	flex: 1;
	min-width: 0;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: var(--cf-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--cf-text);
}

.catalog-filters__price-value:focus {
	outline: none;
}

.catalog-filters__price-suffix {
	flex-shrink: 0;
	color: var(--cf-text);
	font-family: var(--cf-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
}

.catalog-filters__range {
	position: relative;
	height: 44px;
	max-height: 44px;
	margin: 0;
	padding: 0;
	overflow: visible;
	contain: none;
	isolation: isolate;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

.catalog-filters__group[data-filter-group="price"] .catalog-filters__group-content {
	overflow: visible;
	padding-bottom: 0;
}

.catalog-filters__range-track {
	position: absolute;
	top: 50%;
	left: 11px;
	right: 11px;
	height: 4px;
	border-radius: 999px;
	background: var(--cf-track);
	transform: translateY(-50%);
}

.catalog-filters__range-fill {
	position: absolute;
	top: 0;
	height: 100%;
	border-radius: 999px;
	background: var(--cf-accent);
}

.catalog-filters__range-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	pointer-events: none;
	touch-action: none;
}

.catalog-filters__range-input.is-active {
	pointer-events: auto;
}

.catalog-filters__range-input::-webkit-slider-runnable-track {
	height: 4px;
	background: transparent;
	border: none;
}

.catalog-filters__range-input::-moz-range-track {
	height: 4px;
	background: transparent;
	border: none;
}

.catalog-filters__range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	margin-top: -9px;
	border: 0;
	border-radius: 50%;
	background: var(--cf-accent);
	box-shadow: 0 2px 6px rgba(163, 51, 200, .35);
	cursor: grab;
}

.catalog-filters__range-input:active::-webkit-slider-thumb {
	cursor: grabbing;
}

.catalog-filters__range-input::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: var(--cf-accent);
	box-shadow: 0 2px 6px rgba(163, 51, 200, .35);
	cursor: grab;
}

.catalog-filters__range-input--min {
	z-index: 1;
}

.catalog-filters__range-input--max {
	z-index: 2;
}

.catalog-filters__range-input--min.is-active {
	z-index: 4;
}

.catalog-filters__range-input--max.is-active {
	z-index: 4;
}

/* --- Опции фильтра (чекбоксы) --- */
.catalog-filters__option {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr) var(--cf-rail-width);
	align-items: center;
	gap: 10px;
	position: relative;
	z-index: 0;
	padding: 8px 12px;
	margin: 0;
	border-radius: 12px;
	cursor: pointer;
	font-family: var(--cf-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
}

.catalog-filters__option::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius: 12px;
	background: #f5f5f5;
	opacity: 0;
	transition: opacity .15s;
	z-index: -1;
}

.catalog-filters__option:hover::before {
	opacity: 1;
}

.catalog-filters__option-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.catalog-filters__option-box {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border: 1.5px solid #d8d8d8;
	border-radius: 8px;
	background: #fff;
	transition: background .15s, border-color .15s;
}

.catalog-filters__option-input:checked + .catalog-filters__option-box {
	border-color: var(--cf-accent);
	background: var(--cf-accent) url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5.2L4.2 8.4L11 1.6' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.catalog-filters__option-label {
	min-width: 0;
	color: var(--cf-text);
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1;
	transform: translateY(-1px);
}

.catalog-filters__option-count {
	justify-self: end;
	min-width: var(--cf-rail-width);
	color: var(--cf-muted);
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1;
	text-align: right;
	font-variant-numeric: tabular-nums;
	transform: translateY(-1px);
}

.catalog-filters__panel-footer {
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	padding: 12px 24px 20px;
	padding-bottom: max(20px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--cf-border);
	background: var(--cf-bg);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .06);
}

.catalog-filters__apply {
	display: block;
	width: 100%;
	height: 52px;
	border: 0;
	border-radius: 13px;
	background: var(--cf-accent);
	color: #fff;
	font-family: var(--cf-font-medium);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background .2s;
}

.catalog-filters__apply:hover {
	background: var(--cf-accent-hover);
}

.catalog-filters__reset {
	display: block;
	width: 100%;
	height: 52px;
	margin-top: 10px;
	border: 1px solid var(--cf-border);
	border-radius: 13px;
	background: #fff;
	color: var(--cf-text);
	font-family: var(--cf-font-medium);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}

.catalog-filters__reset:hover {
	background: #fafafa;
	border-color: #d5d5d5;
}

/* Старый класс для совместимости */
.catalog-filters__check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	cursor: pointer;
	font-size: 15px;
}

.catalog-filters-products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 16px;
}

/* До инициализации JS сразу показываем первые 20 карточек */
.catalog-filters-products--loading .product-item:nth-child(n+9) {
	display: none !important;
}

.catalog-filters-products-wrap {
	position: relative;
}

.catalog-filters-products-wrap.is-loading .catalog-filters-products {
	opacity: 0.45;
	pointer-events: none;
}

.catalog-filters__loader {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: rgba(255, 255, 255, 0.82);
}

.catalog-filters__loader[hidden] {
	display: none !important;
}

.catalog-filters__loader-spinner {
	width: 42px;
	height: 42px;
	border: 3px solid #e5e5e5;
	border-top-color: #111;
	border-radius: 50%;
	animation: catalog-filters-spin 0.8s linear infinite;
}

.catalog-filters__loader-text {
	font-size: 15px;
	color: #555;
}

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

/* --- Стили карточки (из site.css), только внутри catalog --- */
.catalog-filters-products .product-item {
	position: relative;
	width: 100%;
	max-width: none;
	border: 0;
	border-bottom: 1px solid #d5d5d5;
	box-shadow: none;
	padding: 10px 10px 145px;
}

.catalog-filters-products .product-item__b {
	position: absolute;
	bottom: 0;
	left: 10px;
	right: 10px;
	height: 145px;
}

.catalog-filters-products .product-item .product-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.catalog-filters-products .product-item .product-image {
	position: relative;
	margin: 0 auto 10px;
	padding: 0;
	max-width: 250px;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: visible;
}

.catalog-filters-products .product-item .product-image-action {
	position: relative;
	overflow: visible;
}

.catalog-filters-products .product-item .product-image:before,
.catalog-filters-products .product-item .product-image-action:before,
.catalog-filters-products .card-section-action .gallery-holder li:nth-child(1):before {
	content: "";
	position: absolute;
	left: 0px;
	top: 60% !important;
	width: 132px !important;
	height: 71px !important;
	background-image: url(/svg/new.png) !important;
	background-size: 132px !important;
	background-repeat: no-repeat;
	z-index: 2;
	pointer-events: none;
}

.catalog-filters-products .product-item .product-image img {
	display: block;
	border-radius: 8px;
	margin: 0;
	padding: 0;
	max-width: 100%;
	width: 100%;
	height: auto;
}

.catalog-filters-products .product-item .product-flags {
	min-height: 60px;
	padding: 0 0 10px;
}

.catalog-filters-products .product-item .product-flags span {
	display: block;
	border: none;
	padding: 0;
	font-size: 13px;
	line-height: 1.35;
}

.catalog-filters-products .product-item .product-flags span .red {
	color: #f91155;
}

.catalog-filters-products .product-item .product-title {
	height: auto !important;
	margin-bottom: 15px;
	font-size: 14px;
	line-height: 1.3;
}

.catalog-filters-products .product-item .product-price {
	padding: 0 0 2px;
}

.catalog-filters-products .product-item .product-price .current-price {
	padding-right: 5px;
	font-size: 17px;
	font-weight: 600;
	color: #f91155;
}

.catalog-filters-products .product-item .product-price .old-price {
	font-size: 13px;
	color: #999;
	text-decoration: line-through;
}

.catalog-filters-products .product-item .product-creditPrice {
	font-size: 1.4rem;
	font-weight: 400;
	color: #555;
}

.catalog-filters-products .product-item .product-split {
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: 5px;
	margin-top: 5px;
	font-size: 1.4rem;
	font-weight: 400;
	color: #555;
}

.catalog-filters-products .product-item .product-split:before {
	content: "";
	display: block;
	margin-top: -4px;
	width: 18px;
	height: 18px;
	background: url(../svg/split.svg) 50% 50% no-repeat;
	background-size: cover;
}

.catalog-filters-products .product-item .stock {
	margin-bottom: 0;
	padding-top: 10px;
	font-size: 13px;
}

.catalog-filters-products .product-item .btn-basket {
	float: none;
	width: auto;
	margin-top: 10px;
}

.catalog-filters-products .product-item .btn-basket .btn {
	width: 100%;
	max-width: 250px;
	padding: 12px 10px;
	border: none;
	border-radius: 10px;
	background: #1c84fe;
	font-weight: bold;
	font-size: 14px;
	line-height: 125%;
	color: #fff;
	transition: all .2s ease-out;
}

.catalog-filters-products .product-item .btn-basket .btn:hover {
	background: #0b6cff;
}

.catalog-filters-products .product-item.is-hidden {
	display: none !important;
}

.catalog-filters-products .product-item.is-page-hidden {
	display: none !important;
}

.catalog-filters__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
	position: relative;
	z-index: 2;
}

.catalog-filters__page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--cf-border);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.catalog-filters__page-btn.is-active {
	background: #1c84fe;
	color: #fff;
	border-color: #1c84fe;
}

.catalog-filters__page-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.catalog-filters__page-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 38px;
	color: var(--cf-muted);
	user-select: none;
}

@media (max-width: 1199px) {
	.catalog-filters-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.catalog-filters-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.catalog-filters__count {
		font-size: 14px;
	}

	.catalog-filters-products .product-item .product-image-action:before {
		top: 60%;
		width: 90px;
		height: 48px;
		background-size: 90px;
	}

	.catalog-filters-products .product-item .product-split:before {
		margin-top: -3px;
		width: 14px;
		height: 14px;
	}
}

.catalog-filters__range-input--min.is-active,
.catalog-filters__range-input--max.is-active {
	z-index: 5;
}

/* Серые кнопки моделей (admin / preview) */
.preview-cats {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid #ececec;
}

.preview-cats__nav {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #f3f3f3;
	color: #222;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.preview-cats__nav:hover:not(:disabled) {
	background: #e8e8e8;
}

.preview-cats__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.preview-cats__track {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	min-width: 0;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	user-select: none;
}

.preview-cats__track::-webkit-scrollbar {
	display: none;
}

.preview-cats__track.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
}

.preview-cats__track.is-dragging a {
	pointer-events: none;
}

.preview-cat {
	flex-shrink: 0;
	padding: 10px 16px;
	border-radius: 10px;
	background: #f3f3f3;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	color: #222;
	transition: background 0.15s ease;
}

.preview-cat:hover {
	background: #e8e8e8;
	color: #111;
	text-decoration: none;
}

@media (max-width: 767px) {
	.preview-cats {
		gap: 0;
		padding-bottom: 14px;
	}

	.preview-cats__nav {
		display: none;
	}

	.preview-cat {
		padding: 9px 14px;
		font-size: 13px;
	}
}

@media (max-width: 767px) {
	.catalog-filters__panel {
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
		height: auto;
		max-height: 92dvh;
		border-radius: 20px 20px 0 0;
		transform: translateY(105%);
	}

	.catalog-filters__overlay {
		width: 100%;
		height: 100%;
		transition: opacity .28s ease;
	}

	.catalog-filters__panel.is-open {
		transform: translateY(0);
	}

	.catalog-filters__panel-handle {
		display: block;
		position: relative;
		width: 40px;
		height: 4px;
		margin: 10px auto 0;
		border-radius: 999px;
		background: #d8d8d8;
		flex-shrink: 0;
		touch-action: none;
	}

	.catalog-filters__panel-handle::before {
		content: "";
		position: absolute;
		left: -48px;
		right: -48px;
		top: -14px;
		bottom: -14px;
	}

	.catalog-filters__panel-header {
		padding: 14px 20px 0;
		flex-shrink: 0;
		touch-action: none;
	}

	.catalog-filters__panel.is-dragging {
		transition: none;
	}

	.catalog-filters__panel-body {
		--cf-panel-x: 20px;
		flex: 0 1 auto;
		min-height: 0;
		max-height: calc(92dvh - 150px);
		padding-left: 20px;
		padding-right: 20px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.catalog-filters__panel-footer {
		padding-left: 20px;
		padding-right: 20px;
		flex-shrink: 0;
	}

	.catalog-filters__range {
		height: 44px;
		max-height: 44px;
	}

	.catalog-filters__range-input {
		height: 44px;
		max-height: 44px;
	}

	.catalog-filters__sort-menu {
		min-width: 220px;
	}

	.catalog-filters__btn,
	.catalog-filters__sort-trigger {
		font-size: 13px;
	}
}

@media (max-width: 575px) {
	.catalog-filters__toolbar {
		margin-bottom: 16px;
	}

	.catalog-filters-products {
		grid-template-columns: 1fr 1fr;
		gap: 16px 10px;
	}
}
