.catalog-cf {
	--cf-main: #353a52;
	--cf-gray: #758495;
	--cf-add: #d1d9e6;
	--cf-accent: #6699ff;
	--cf-bg: #f4f6f8;
	float: none;
	width: 100%;
	margin: 0;
	font-family: Montserrat, sans-serif;
	position: relative;
}

.catalog-cf__toggle {
	display: none;
}

.catalog-cf__section {
	margin: 0 0 36px;
}

.product_filter:has(.catalog-cf) > .fs-24 {
	display: none;
}

.catalog-cf__bar {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	margin: 0 0 20px;
	min-width: 0;
}

.catalog-cf__bar-btn {
	flex: 0 0 auto;
	padding: 5px 8px;
	border: 1px solid var(--cf-add);
	border-radius: 8px;
	background: #fff;
	color: var(--cf-gray);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.catalog-cf__bar-btn.is-on,
.catalog-cf__bar-btn:hover {
	background: var(--cf-main);
	border-color: var(--cf-main);
	color: #fff;
}

.catalog-cf__bar-btn--reset {
	margin-left: auto;
}

.catalog-cf .widget-title {
	margin: 0 0 10px;
	color: var(--cf-gray);
	font-size: 14px;
	font-weight: 600;
}

.catalog-cf ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.catalog-cf li {
	margin: 0;
	position: relative;
}

.catalog-cf__section--buttons a {
	display: inline-block;
	padding: 8px 12px;
	border: 1px solid var(--cf-add);
	border-radius: 8px;
	color: var(--cf-gray);
	background: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

.catalog-cf__section--buttons li.chosen a,
.catalog-cf__section--buttons a:hover {
	background: var(--cf-main);
	border-color: var(--cf-main);
	color: #fff;
}

.catalog-cf__count {
	margin-left: 4px;
	font-weight: 700;
}

.catalog-cf__section--swatch li.chosen {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.catalog-cf__section--swatch .catalog-cf__count {
	margin: 4px 0 0;
	color: var(--cf-main);
	font-size: 11px;
	line-height: 1;
}

.catalog-cf__section--swatch a {
	display: block;
	width: 36px;
	height: 36px;
	border: 1px solid var(--cf-add);
	border-radius: 8px;
	background: #fff;
	box-sizing: border-box;
	position: relative;
	font-size: 0;
}

.catalog-cf__section--swatch a:after {
	content: "";
	position: absolute;
	top: 4px;
	right: 4px;
	bottom: 4px;
	left: 4px;
	border-radius: 5px;
	background: var(--cf-swatch, var(--cf-gray));
}

.catalog-cf__section--swatch li.chosen a,
.catalog-cf__section--swatch a:hover {
	border-color: var(--cf-main);
	border-width: 2px;
}

.catalog-cf__section:not(.is-open) li.is-extra {
	display: none;
}

.catalog-cf__section.is-filtering li.is-extra:not(.is-miss) {
	display: list-item;
}

.catalog-cf__section.is-filtering .catalog-cf__more {
	display: none;
}

.catalog-cf__section li.is-miss {
	display: none;
}

.catalog-cf__price-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.catalog-cf .catalog-cf__price-row input[type="number"] {
	width: 100%;
	min-width: 0;
	height: 36px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #9aa6b8;
	border-radius: 8px;
	background: #fff;
	color: var(--cf-main);
	font-family: inherit;
	font-size: 14px;
	line-height: 36px;
	box-shadow: none;
	box-sizing: border-box;
}

.catalog-cf__price-row span {
	color: var(--cf-gray);
	flex: 0 0 auto;
}

.catalog-cf__slider {
	position: relative;
	height: 28px;
	margin: 8px 2px 18px;
}

.catalog-cf__slider-track {
	position: absolute;
	top: 13px;
	right: 9px;
	left: 9px;
	height: 6px;
	border-radius: 6px;
	background: linear-gradient(to right, #8d9aaf var(--cf-a), #3d74f5 var(--cf-a), #3d74f5 var(--cf-b), #8d9aaf var(--cf-b));
}

.catalog-cf .catalog-cf__range[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	pointer-events: none;
	appearance: none;
}

.catalog-cf__range[data-bound="max"] {
	z-index: 3;
}

.catalog-cf__range::-webkit-slider-runnable-track {
	height: 0;
	background: transparent;
	border: 0;
}

.catalog-cf__range::-moz-range-track {
	height: 0;
	background: transparent;
	border: 0;
}

.catalog-cf__range::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	margin-top: -6px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--cf-accent);
	box-shadow: 0 0 0 1px var(--cf-accent);
	pointer-events: auto;
	cursor: pointer;
	appearance: none;
}

.catalog-cf__range::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 0;
	border-radius: 50%;
	background: var(--cf-accent);
	box-shadow: 0 0 0 2px #fff;
	pointer-events: auto;
	cursor: pointer;
}

.catalog-cf input.catalog-cf__find[type="search"] {
	display: block;
	width: 100%;
	height: 36px;
	margin: 0 0 10px;
	padding: 0 10px;
	border: 1px solid #9aa6b8;
	border-radius: 8px;
	background: #fff;
	color: var(--cf-main);
	font-family: inherit;
	font-size: 14px;
	line-height: 36px;
	box-shadow: none;
	box-sizing: border-box;
	appearance: none;
}

.catalog-cf__more {
	display: block;
	width: 100%;
	margin: 10px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cf-accent);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	text-decoration: underline;
	cursor: pointer;
}

.catalog-cf .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 782px) {
	.catalog-cf {
		float: none;
		width: auto;
		margin: 0 0 16px;
	}

	.catalog-cf__toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		margin-bottom: 10px;
		cursor: pointer;
		color: var(--cf-gray);
		font-weight: 600;
	}

	.catalog-cf__toggle input {
		position: absolute;
		opacity: 0;
	}

	.catalog-cf__toggle .slider {
		width: 42px;
		height: 24px;
		border-radius: 99px;
		background: var(--cf-bg);
		position: relative;
	}

	.catalog-cf__toggle .slider:before {
		content: "";
		position: absolute;
		width: 18px;
		height: 18px;
		left: 3px;
		top: 3px;
		border-radius: 50%;
		background: #fff;
		transition: transform 0.2s ease;
	}

	.catalog-cf__toggle input:checked + .slider {
		background: var(--cf-accent);
	}

	.catalog-cf__toggle input:checked + .slider:before {
		transform: translateX(18px);
	}

	.catalog-cf.is-collapsed .catalog-cf__panel {
		display: none;
	}
}

.product_filter .catalog-cf__toggle {
	display: none;
}

.product_filter .catalog-cf__panel,
.product_filter .catalog-cf.is-collapsed .catalog-cf__panel {
	display: block;
}

@media (max-width: 767px) {
	html,
	body {
		overflow-x: hidden;
		max-width: 100%;
	}

	.content,
	.product_container,
	.row.w-100,
	.row.flex-nowrap {
		min-width: 0;
		max-width: 100%;
	}

	body ul.row.product_list {
		margin-left: 0;
		margin-right: 0;
		width: 100%;
		max-width: 100%;
	}

	body ul.products_category {
		max-width: 100%;
		min-width: 0;
		overscroll-behavior-x: contain;
	}

	.product_filter,
	.product_filter.show {
		margin-left: 0;
		margin-right: 0;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.product_filter.show {
		position: relative;
		z-index: 25;
	}

	.product_filter.show .catalog-cf,
	.product_filter.show .catalog-cf a {
		position: relative;
		z-index: 1;
		pointer-events: auto;
	}
}
