.product-card {
	display: flex;
	flex-direction: column;
	row-gap: 5px;
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
	text-decoration: none;
}

.product-card:hover .product-card__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.product-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 5px;
	aspect-ratio: 600 / 866;
	overflow: hidden;
}

/* Sources smaller than the crop come back uncropped, so the ratio is forced here. */
.product-card__image {
	width: 100%;
	height: auto;
	max-height: 100%;
	aspect-ratio: 600 / 866;
	object-fit: cover;
}

.product-card__image--hover {
	position: absolute;
	inset: 0;
	margin: auto;
	opacity: 0;
	transition: opacity 0.3s;
}

@media (hover: hover) {
	.product-card:hover .product-card__image--hover {
		opacity: 1;
	}
}

.product-card__brand {
	margin-bottom: -5px;
	overflow: hidden;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.product-card__sizes {
	color: var(--wp--preset--color--black);
	font-size: 0.8125rem;
}

.product-card__title {
	margin: 0;
	overflow: hidden;
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
	text-transform: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.product-card__price {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	line-height: 1.7;
}

.product-card__price del {
	margin-right: 5px;
	color: #767676;
	font-weight: 400;
}

.product-card__price ins {
	text-decoration: none;
}

.product-card__sizes {
	display: flex;
	flex-wrap: wrap;
	column-gap: 8px;
}

/* Below AA (2.6:1) by the client's choice; the strikethrough and the "(loppu)" sr-text carry the state. */
.product-card__sizes s {
	color: #a0a0a0;
}
