/* ===== Catalog (grid) ===== */
#catalog {
	background: var(--color-white);
}

/* ===== Catalog filters ===== */
.catalog-filters {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.catalog-filters__row {
	display: flex;
	align-items: center;
	gap: 20px;

	@media (max-width: 767px) {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

.catalog-filters__label {
	flex-shrink: 0;
	width: 140px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	line-height: 24px;
	color: var(--color-black);

	@media (max-width: 767px) {
		width: auto;
	}
}

.catalog-filters__pills {
	display: flex;
	flex: 1 0 0;
	flex-wrap: wrap;
	gap: 12px;
	min-width: 0;

	@media (max-width: 767px) {
		gap: 4px;
	}
}

.catalog-filters__pill {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px 12px;
	border: 1px solid var(--color-gray-light);
	border-radius: 4px;
	background: var(--color-white);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 15px;
	line-height: 24px;
	color: var(--color-black);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.catalog-filters__pill.is-active {
	border-color: var(--color-orange);
	background: var(--color-orange);
}

.product-card.js-catalog-card.is-filtered-out {
	display: none;
}

.catalog__empty {
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--color-gray);
	margin-top: 24px;
}

.catalog__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 40px;

	@media (max-width: 1200px) {
		grid-template-columns: repeat(2, 1fr);
	}

	@media (max-width: 767px) {
		grid-template-columns: 1fr;
		gap: 8px;
		margin-top: 20px;
	}
}

.product-card--catalog .product-card__img-wrap {
	display: flex;
	flex-direction: column;
	height: auto;
	padding: 16px 16px 0;
	overflow: visible;
}

.product-card--catalog .product-card__img-wrap--gallery {
	padding-bottom: 0;
}

.product-card__img-slide,
.product-card__img-link {
	display: block;
	flex: 1;
	min-height: 0;
}

.product-card--catalog .product-card__img-wrap--gallery .product-card__img-slide {
	height: 232px;

	@media (max-width: 1200px) {
		height: 208px;
	}

	@media (max-width: 767px) {
		height: 188px;
	}
}

.catalog-card__swiper {
	width: 100%;
	height: 232px;
	overflow: hidden;

	@media (max-width: 1200px) {
		height: 208px;
	}

	@media (max-width: 767px) {
		height: 188px;
	}
}

.catalog-card__swiper .swiper-slide {
	height: 100%;
}

.catalog-card__swiper .product-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.catalog-card__pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 12px 0 4px;
	min-height: 16px;
}

.catalog-card__pagination .swiper-pagination-bullet {
	width: 16px;
	height: 4px;
	border-radius: 100px;
	margin: 0 !important;
	opacity: 1;
	background: var(--color-gray-light);
	transition: width 0.2s ease, background 0.2s ease;
}

.catalog-card__pagination .swiper-pagination-bullet-active {
	width: 32px;
	background: var(--color-orange);
}

.product-card--catalog .product-card__badge {
	z-index: 2;
}
