.filters {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.filters__head {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.filters__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--dark, #0f172a);
}

.filters__close {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: var(--bg-light, #f1f5f9);
	font-size: 22px;
	line-height: 1;
	color: #475569;
	cursor: pointer;
}

.filters__active {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--line, #e6efe9);
	border-radius: 14px;
}

.filters__active-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--green-soft, #ecfdf5);
	border: 1px solid var(--green-border, #a7f3d0);
	font-size: 12px;
	color: #047857;
	text-decoration: none;
	transition: background .15s ease;
}

.filter-chip:hover {
	background: #d1fae5;
	color: #047857;
}

.filter-chip__attr {
	opacity: .7;
}

.filter-chip__value {
	font-weight: 600;
}

.filter-chip__remove {
	font-size: 15px;
	line-height: 1;
}

.filters__reset {
	align-self: flex-start;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-decoration: none;
	border-bottom: 1px dashed currentColor;
}

.filters__reset:hover {
	color: var(--green, #16a34a);
}

.filter-block {
	background: #f8fafb;
	border: 1px solid var(--line, #e6efe9);
	border-radius: 14px;
	padding: 16px 18px;
}

.filter-block__head {
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 12px;
	color: var(--dark, #0f172a);
}

.filter-block__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: 260px;
	overflow-y: auto;
}

.afilter {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 6px;
	border-radius: 10px;
	font-size: 14px;
	color: #1e293b;
	cursor: pointer;
	transition: background .15s ease;
}

.afilter:hover {
	background: #fff;
}

.afilter input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.afilter__box {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1.5px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	transition: border-color .15s ease, background .15s ease;
}

.afilter input:checked + .afilter__box {
	background: var(--green, #16a34a);
	border-color: var(--green, #16a34a);
}

.afilter input:checked + .afilter__box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.afilter input:focus-visible + .afilter__box {
	box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
}

.afilter__dot {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid #dcdcdc;
}

.afilter__img {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #dcdcdc;
}

.afilter__label {
	flex: 1 1 auto;
	min-width: 0;
}

.afilter__count {
	flex: 0 0 auto;
	font-size: 12px;
	color: #94a3b8;
}

.filters__submit {
	width: 100%;
}

.filter-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	position: relative;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	cursor: pointer;
}

.filter-toggle__icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
	color: #475569;
	flex-shrink: 0;
}

.filter-toggle__icon svg {
	width: 100%;
	height: 100%;
}

.filter-toggle__text {
	text-transform: uppercase;
	letter-spacing: .02em;
}

.filter-toggle__dot {
	display: none;
	position: absolute;
	top: -3px;
	right: -3px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--green, #16a34a);
	border: 2px solid #fff;
}

.filter-toggle.has-active .filter-toggle__dot {
	display: block;
}

.catalog-orderby {
	display: flex;
	align-items: center;
	gap: 8px;
}

.catalog-orderby__select {
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	color: #1e293b;
	cursor: pointer;
}

.catalog-orderby__select:focus {
	outline: none;
	border-color: var(--green, #16a34a);
	box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}

@media (max-width: 920px) {
	.filter-toggle {
		display: inline-flex;
	}

	.filters {
		position: fixed;
		z-index: 120;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(360px, 90vw);
		margin: 0;
		padding: 20px 18px 32px;
		background: #fff;
		box-shadow: -8px 0 32px rgba(15, 23, 42, .16);
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .25s ease;
	}

	.filters.is-open {
		transform: none;
	}

	.filters__head {
		display: flex;
	}

	body.filters-open {
		overflow: hidden;
	}
}
