/**
 * Каталог Filtek — карточки как /test
 */

.filtek-catalog-page .wd-products.elements-list,
.filtek-catalog-page .products.elements-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.filtek-catalog-page .filtek-catalog__item,
.filtek-catalog-page .filtek-catalog__item.wd-product {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: none !important;
}

.filtek-catalog-page .filtek-catalog__item::before,
.filtek-catalog-page .filtek-catalog__item::after {
	display: none !important;
}

.filtek-catalog-page .product-card {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
	min-width: 0;
	padding: 20px 28px;
	background: #fff;
	border-radius: 20px;
}

.filtek-catalog-page .product-card__info,
.filtek-catalog-page .product-card__actions {
	display: flex;
	align-items: center;
	min-width: 0;
}

.filtek-catalog-page .product-card__info {
	flex: 1 1 auto;
	gap: 20px;
}

.filtek-catalog-page .product-card__actions {
	flex: 0 0 auto;
	gap: 14px;
	margin-left: auto;
}

.filtek-catalog-page .product-card__thumb-link {
	flex-shrink: 0;
	line-height: 0;
}

.filtek-catalog-page .product-card__thumb {
	width: 100px;
	height: auto;
	object-fit: contain;
}

.filtek-catalog-page .product-card__brand {
	flex-shrink: 0;
	width: 120px;
	height: auto;
	border-radius: 4px;
}

.filtek-catalog-page .product-card__brand--text {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
}

.filtek-catalog-page .product-card__sku {
	margin: 0;
	flex-shrink: 0;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.filtek-catalog-page .product-card__title {
	margin: 0;
	flex: 1 1 120px;
	min-width: 0;
	font-size: 16px;
	font-weight: 400;
}

.filtek-catalog-page .product-card__title a {
	color: #1a1a1a;
	text-decoration: none;
}

.filtek-catalog-page .product-card__title a:hover {
	text-decoration: underline;
}

.filtek-catalog-page .product-card__stock {
	margin: 0;
	flex-shrink: 0;
	font-size: 16px;
	white-space: nowrap;
}

.filtek-catalog-page .product-card__stock--out {
	color: #c0392b;
}

.filtek-catalog-page .product-card__qty {
	flex-shrink: 0;
}

.filtek-catalog-page .product-card .qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 120px;
	height: 48px;
	padding: 0 16px;
	background: #eef1f5;
	border-radius: 12px;
}

.filtek-catalog-page .product-card .qty__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: #8b96a6;
	cursor: pointer;
}

.filtek-catalog-page .product-card .qty__btn:hover {
	color: #1a1a1a;
}

.filtek-catalog-page .product-card .qty__value {
	font-size: 18px;
	font-weight: 500;
	color: #8b96a6;
	min-width: 20px;
	text-align: center;
}

.filtek-catalog-page .product-card__price {
	margin: 0;
	flex-shrink: 0;
	font-size: 24px;
	font-weight: 700;
	white-space: nowrap;
}

.filtek-catalog-page .product-card__price .amount,
.filtek-catalog-page .product-card__price ins {
	text-decoration: none;
}

.filtek-catalog-page .product-card__buy {
	flex-shrink: 0;
	min-width: 180px;
	height: 56px;
	padding: 0 28px !important;
	border: none !important;
	border-radius: 14px !important;
	background: #f5c518 !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	color: #1a1a1a !important;
	line-height: 56px !important;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease;
}

.filtek-catalog-page .product-card__buy:hover {
	background: #e6b800 !important;
	color: #1a1a1a !important;
}

.filtek-catalog-page .product-card__buy.loading {
	opacity: 0.7;
	pointer-events: none;
}

.filtek-catalog-page .product-card__fav {
	flex-shrink: 0;
	position: relative;
	width: 56px;
	height: 56px;
}

.filtek-catalog-page .product-card__fav .filtek-catalog-wishlist,
.filtek-catalog-page .product-card__fav .wd-wishlist-btn {
	position: absolute;
	inset: 0;
	margin: 0;
	width: 100%;
	height: 100%;
}

.filtek-catalog-page .product-card__fav .wd-wishlist-btn > a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 56px !important;
	height: 56px !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 14px !important;
	background: #eef1f5 url("../images/favorite.svg") center / 24px no-repeat !important;
}

.filtek-catalog-page .product-card__fav .wd-action-icon,
.filtek-catalog-page .product-card__fav .wd-action-text {
	display: none !important;
}

.filtek-catalog-page .product-card__fav .wd-wishlist-btn > a.added {
	background-color: #e2e7ed !important;
}

@media (min-width: 901px) and (max-width: 1400px) {
	.filtek-catalog-page .product-card {
		flex-wrap: wrap;
		gap: 12px;
		padding: 16px 20px;
	}

	.filtek-catalog-page .product-card__info {
		flex-wrap: wrap;
		width: 100%;
	}

	.filtek-catalog-page .product-card__actions {
		flex-wrap: wrap;
		margin-left: 0;
	}
}

@media (min-width: 1401px) {
	.filtek-catalog-page .product-card {
		display: grid;
		grid-template-columns: 100px 120px 160px minmax(140px, 1fr) 150px 120px 130px 200px 56px;
		column-gap: 24px;
		align-items: center;
		padding: 20px 32px;
	}

	.filtek-catalog-page .product-card__info,
	.filtek-catalog-page .product-card__actions {
		display: contents;
	}

	.filtek-catalog-page .product-card__thumb-link {
		grid-column: 1;
	}

	.filtek-catalog-page .product-card__brand {
		grid-column: 2;
	}

	.filtek-catalog-page .product-card__sku {
		grid-column: 3;
	}

	.filtek-catalog-page .product-card__title {
		grid-column: 4;
		flex: none;
	}

	.filtek-catalog-page .product-card__stock {
		grid-column: 5;
	}

	.filtek-catalog-page .product-card__qty {
		grid-column: 6;
	}

	.filtek-catalog-page .product-card__price {
		grid-column: 7;
	}

	.filtek-catalog-page .product-card__buy {
		grid-column: 8;
		width: 100%;
		min-width: 0;
		max-width: 200px;
	}

	.filtek-catalog-page .product-card__fav {
		grid-column: 9;
	}
}

@media (min-width: 901px) and (max-width: 1200px) {
	.filtek-catalog-page .product-card {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 900px) {
	.filtek-catalog-page .product-card {
		display: grid;
		grid-template-columns: 1fr 1.65fr;
		grid-template-areas:
			"sku fav"
			"brand fav"
			"title thumb"
			"stock thumb"
			"price thumb"
			"qty buy";
		gap: 8px 12px;
		padding: 20px;
	}

	.filtek-catalog-page .product-card__info,
	.filtek-catalog-page .product-card__actions {
		display: contents;
	}

	.filtek-catalog-page .product-card__thumb-link {
		grid-area: thumb;
		justify-self: end;
	}

	.filtek-catalog-page .product-card__thumb {
		width: 88px;
	}

	.filtek-catalog-page .product-card__brand {
		grid-area: brand;
		width: 100px;
	}

	.filtek-catalog-page .product-card__sku {
		grid-area: sku;
		font-size: 20px;
	}

	.filtek-catalog-page .product-card__title {
		grid-area: title;
		font-size: 15px;
	}

	.filtek-catalog-page .product-card__stock {
		grid-area: stock;
		font-size: 14px;
	}

	.filtek-catalog-page .product-card__price {
		grid-area: price;
		font-size: 26px;
	}

	.filtek-catalog-page .product-card__qty {
		grid-area: qty;
		margin-top: 12px;
	}

	.filtek-catalog-page .product-card .qty {
		width: 100%;
		height: 52px;
	}

	.filtek-catalog-page .product-card__buy {
		grid-area: buy;
		width: 100%;
		min-width: 0;
		height: 52px;
		margin-top: 12px;
		line-height: 52px !important;
	}

	.filtek-catalog-page .product-card__fav {
		grid-area: fav;
		justify-self: end;
	}
}
