/* Lista produktów i kafelek produktu (także na stronie głównej). */

.shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.shop__count {
	color: var(--color-muted);
}

.shop__count strong {
	color: var(--color-text);
}

.shop__sorting .select {
	width: 230px;
	min-height: 44px;
	font-size: 15px;
}

@media (max-width: 1023px) {
	.shop__sorting .select {
		width: 190px;
	}
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 44px 24px;
}

@media (max-width: 1023px) {
	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 12px;
	}
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
}

.product-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius-large);
	background: var(--color-surface);
	aspect-ratio: 1;
}

@media (max-width: 1023px) {
	.product-card__media {
		border-radius: var(--radius);
	}
}

.section--surface .product-card__media {
	background: var(--color-bg);
}

.product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.product-card:hover .product-card__image {
	transform: scale(1.03);
}

.product-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
}

@media (max-width: 1023px) {
	.product-card__badge {
		top: 8px;
		left: 8px;
	}
}

.product-card__body {
	display: grid;
	justify-items: center;
	gap: 2px;
	padding: 16px 16px 0;
	text-align: center;
}

@media (max-width: 1023px) {
	.product-card__body {
		padding-top: 12px;
	}
}

.product-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

@media (max-width: 1023px) {
	.product-card__title {
		font-size: 14px;
	}
}

.product-card__title a {
	text-decoration: none;
}

.product-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.product-card__price {
	display: flex;
	align-items: center;
	font-size: 16px;
}

@media (max-width: 1023px) {
	.product-card__price {
		font-size: 15px;
	}
}
