.filter-form {
	width: 300px;
	margin: 0 auto;
	padding: 20px;
	border: 1px solid #ccc;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar--products {
	border: 2px solid var(--color-block-border);
	border-radius: var(--border-radius-s);
	height: fit-content;
	background: var(--color-bg-block);
}

@media(max-width: 992px) {
	body:has(.sidebar--products.opened) {
		overflow: hidden;
	}

	body:has(.sidebar--products.opened) .page-wrapper::after {
		position: fixed;
		content: '';
		width: 100vw;
		height: 100vh;
		display: block;
		background: rgba(0, 0, 0, 0.4);
		z-index: 8;
	}

	.open-filters {
		display: flex;
		flex-flow: row nowrap;
		gap: 10px;
		justify-content: flex-start;
		align-items: center;
	}

	.sidebar--products .close-filter {
		position: absolute;
		top: 0;
		right: 0;
	}
}

.products {
	padding: 18px;
	/* border-bottom: 1px solid #E5E8F2; */
	overflow: hidden;
}

.filters {
	padding: 0;
}

@media(min-width: 992px) {
	.filters {
		padding: 18px 18px 10px;
	}
}

/* @media(max-width: 768px) {
	.block__filters-top:has(.filters--top) #js__toggle-filters .open {
		display: block;
	}
	
	.block__filters-top:has(.filters--top) #js__toggle-filters .close {
		display: none;
	}

	.block__filters-top:has(.filters--top.opened) #js__toggle-filters .open {
		display: none;
	}

	.block__filters-top:has(.filters--top.opened) #js__toggle-filters .close {
		display: block;
	}

	.block__filters-top .filters--top {
		display: none;
	}

	.block__filters-top .filters--top.opened {
		display: grid;
	}
} */

.button__clear-all--mobile {
	margin-left: 40px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #E84241;
	font-size: 1rem;
	font-weight: 700;
	height: 42px;
}

.filter-section h2 {
	font-size: 18px;
	margin-bottom: 10px;
}

.price-slider {
	width: 100%;
	margin-top: 10px;
}

.block__filters {
	position: relative;
}

@media(min-width: 1024px) {
	.block__filters {
		position: relative;
	}
}

.filter__options {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 10px 0;
}

.block__filter {
	display: flex;
	flex-flow: column;
	justify-content: space-between;
	align-items: center;
	position: relative;
	width: 100%;
	border: 1px solid var(--color-table-border);
	border-radius: 6px;
	padding: 0;
}

.block__filter.filter-section--inline {
	border: none;
	align-items: flex-start;
}

.block__filter-content {
	max-height: 0;
	padding: 15px 10px 10px;
	overflow: hidden;
	transition: max-height 0.2s ease-out, padding 0.2s ease-out;
	position: relative;
	top: auto;
	left: auto;
	min-width: 100%;
	width: 100%;
	height: auto;
	z-index: 1;
	background: #fff;
}

@media(min-width: 1024px) {
	.block__filter.filter-section .block__filter-content {
		height: auto;
		z-index: 1;
		background: #fff;
	}
}

.block__filter-title {
	display: flex;
	align-items: center;
	gap: 14px;
	justify-content: space-between;
	height: 42px;
	width: 100%;
	cursor: pointer;
	padding: 0 10px;
}

.block__filter-title:hover {
	color: var(--color-text-secondary);
}

.block__filter-title:hover svg path {
	stroke: var(--color-text-secondary);
}

.block__filter.active .block__filter-title svg {
	transform: rotate(180deg);
}

.block__filter-title svg {
	transition: transform 0.3s ease-out;
}

.block__filter-title span,
#js__productCatalogMenuSidebar2 .sidebar__link {
	font-size: 1rem;
	line-height: 1.2;
	font-weight: 400;
	display: flex;
	align-items: center;
}

#js__productCatalogMenuSidebar2 .sidebar__grouplink-wrapper.active>a {
	font-weight: 600;
	color: var(--color-sidebar-active-text);
}

#js__productCatalogMenuSidebar2 .sidebar__link:hover {
	color: var(--color-text-primary);
}

#js__productCatalogMenuSidebar2 .sidebar__link-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 32px;
	height: 32px;
}

#js__productCatalogMenuSidebar2 .sidebar__link-arrow svg {
	transition: transform 0.3s ease-out;
}

#js__productCatalogMenuSidebar2 .sidebar__grouplink-wrapper {
	display: flex;
	gap: 14px;
	align-items: center;
	min-height: 32px;
	padding: 0 10px;
	justify-content: space-between;
	/* margin-bottom: 7px; */
}

#js__productCatalogMenuSidebar2 .sidebar__grouplink-wrapper.active {
	background: var(--color-sidebar-active-bg);
	border-radius: var(--border-radius);
}

#js__productCatalogMenuSidebar2 .sidebar__grouplink-wrapper:has(+ .js__subgroup:not(.hidden))>.sidebar__link-arrow svg,
#js__productCatalogMenuSidebar2 .sidebar__grouplink-wrapper:has(+ .js__subgroup:not(.hidden))>.js__sidebar__grouplink-arrow svg {
	transform: rotate(180deg);
}

#js__productCatalogMenuSidebar2 .sidebar__grouplink-wrapper:has(+ .js__subgroup.hidden)>.sidebar__link-arrow svg,
#js__productCatalogMenuSidebar2 .sidebar__grouplink-wrapper:has(+ .js__subgroup.hidden)>.js__sidebar__grouplink-arrow svg {
	transform: rotate(0deg);
}

#js__productCatalogMenuSidebar2 .sidebar__grouplink-wrapper.active>.sidebar__link-arrow svg,
#js__productCatalogMenuSidebar2 .sidebar__grouplink-wrapper.active>.js__sidebar__grouplink-arrow svg {
	transform: rotate(180deg);
}

#js__productCatalogMenuSidebar2 .sidebar__grouplink-wrapper.active>.sidebar__link-arrow svg path,
#js__productCatalogMenuSidebar2 .sidebar__grouplink-wrapper.active>.js__sidebar__grouplink-arrow svg path {
	stroke: var(--color-sidebar-active-icon);
}

#js__productCatalogMenuSidebar2 .sidebar__sublink {
	padding-left: 0;
}

#js__productCatalogMenuSidebar2 .sidebar__sublink-1 {
	padding-left: 10px;
}

#js__productCatalogMenuSidebar2 .sidebar__sublink-2 {
	padding-left: 20px;
}

#js__productCatalogMenuSidebar2 .sidebar__sublink-3 {
	padding-left: 30px;
}

#js__productCatalogMenuSidebar2 .sidebar__sublink-4 {
	padding-left: 40px;
}

#js__productCatalogMenuSidebar2 .sidebar__sublink-5 {
	padding-left: 50px;
}

.filter-options {
	margin: 10px 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.block__filter .filter-header {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: flex-start;
}

.block__filter .filter-footer {
	margin: 5px 0;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-end;
	align-items: flex-start;
}

.selected-count {
	margin-right: 5px;
}

.button__reset {
	font-size: 1rem;
	color: var(--color-bg-button);
	background: transparent;
	border: none;
}

.filter-footer {
	height: 0;
	opacity: 0;
	transition: opacity 0.1s, height 0.3s;
}

.filter-footer:has(.button__secondary.active) {
	height: auto;
	opacity: 1;
}

.block__filter-content:has(.slider-container) .filter-footer {
	height: auto;
	opacity: 1;
}

.block__filter.filter-section .block__filter-content {
	position: absolute;
	top: calc(100% - 4px);
	left: auto;
	min-width: 100%;
	width: 100%;
	height: auto;
	z-index: 99;
	background: #fff;
}

.block__filter.filter-section.active .block__filter-content {
	border: 1px solid var(--color-table-border);
}

.is-scrollable {
	overflow: auto;
}

.block__filter-actions {
	grid-column: 1 / -1;
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.block__filter-actions .button {
	padding: 10px 20px;
}


/* priceslider */
.slider-container {
	padding: 10px 0px;
	max-width: 100%;
	padding-right: 5px;
}

.field--checkbox {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
	margin-bottom: 5px;
	font-size: 16px;
}

.filter-options label {
	display: flex;
	flex-flow: row nowrap;
	gap: 8px;
	align-content: flex-start;
	justify-content: flex-start;
	align-items: center;
}

.filter-options input[type=checkbox] {
	width: 15px;
	min-width: 15px;
	height: 15px;
	margin: 0px 0 0;
}

.filter-options input[type=text] {
	width: 100%;
	height: auto;
	margin: 3px 0;
	padding: 10px 8px;
	border-radius: 6px;
	border: 1px solid #808080;
}

.field--checkbox label {
	align-items: flex-start;
}

.slider-values-wrapper {
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
}

.slider-values-wrapper div {
	display: flex;
	font-size: 1rem;
	font-weight: 400;
}

.slider-values-wrapper .slider-values {
	font-weight: 600;
}

.slider {
	width: 100%;
	margin: 15px 0;
}

.values {
	display: none;
}

.value-input {
	width: 80px;
	text-align: center;
	border: 1px solid #ccc;
	padding: 5px;
	border-radius: 4px;
}

.slider-track {
	height: 6px;
	background: var(--color-inactive);
	position: relative;
	width: calc(100% - 22px);
	margin-left: 8px;
}

.slider-range {
	position: relative;
	height: inherit;
	background: var(--color-base);
}

.slider-thumb {
	width: 22px;
	height: 22px;
	background: var(--color-base);
	border-radius: 50%;
	position: absolute;
	top: -8px;
	cursor: pointer;
	touch-action: none;
	border: 2px solid var(--color-text-secondary);
}

/* end priceslider */

.sidebar__group-thumb {
	width: 35px;
	height: 35px;
	object-fit: contain;
	border-radius: 6px;
	margin-right: 8px;
	vertical-align: middle;
}

.filter-section--inline {
	grid-column: 1 / -1;
}

.filter-section--inline .field--checkbox label::before {
	width: 25px;
	height: 25px;
}

.filter-section--inline .field--checkbox label::after {
	content: "";
	position: absolute;
	left: 8.5px;
	top: 2px;
	width: 7px;
	height: 15px;
	border: 2px solid #fff;
	border-top: 0;
	border-left: 0;
	transform: rotate(45deg) scale(0.8);
	opacity: 0;
	transition: opacity .12s, transform .12s;
}

.block__filters-top .filters--top {
	padding: 0;
}

.block__filters-top {
	padding: 12px 20px;
}