.product-grid {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: calc(var(--m) * 4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-grid__item {
	display: flex;
	flex: 0 1 310px;
	min-width: 240px;
	max-width: 310px;
}

.product-card {
	position: relative;
	display: flex;
	flex-flow: column;
	width: 100%;
	overflow: hidden;
	border-radius: var(--m);
	background-color: var(--brandwhite);
	box-shadow: 0 6px 10px rgba(174, 174, 174, 0.3);
	transition: transform 0.15s ease;
}

.product-card:hover,
.product-card:focus-within {
	transform: scale(1.03);
}

.product-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 310 / 270;
	background-color: var(--gray-1, #f1f3f5);
}

.product-card__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card__label {
	position: absolute;
	top: 23px;
	left: 23px;
	padding: 2px 10px;
	border-radius: var(--m);
	background-color: var(--brand-dark);
	color: var(--brandwhite);
	font-size: var(--fs-sm);
	line-height: 1.8;
}

.product-card__body {
	display: flex;
	flex: 1;
	flex-flow: column;
	gap: var(--padding-sm);
	padding: var(--padding-base);
}

.product-card__title {
	margin: 0;
	color: var(--secondary);
	font-size: var(--h6);
	font-weight: 700;
	line-height: 1.3;
}

.product-card__link {
	color: inherit;
	text-decoration: none;
}
.product-card__link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
}
.product-card__link:hover {
	text-decoration: underline;
}
.product-card__link:focus-visible {
	outline: none;
}
.product-card__link:focus-visible::after {
	outline: 3px solid var(--color-focus);
	outline-offset: -3px;
}

.product-card__actions {
	display: flex;
	margin-top: auto;
}

.product-card__more {
	pointer-events: none;
}
.product-card:hover .btn.product-card__more,
.product-card:focus-within .btn.product-card__more {
	background: var(--brand-darker);
	border-color: var(--brand-darker);
}

@media (prefers-reduced-motion: reduce) {
	.product-card { transition: none; }
	.product-card:hover,
	.product-card:focus-within { transform: none; }
}

.product-card__media--empty {
	background: var(--secondary) url('../../img/dark-ornament.svg') center / cover no-repeat;
}

.post-card .product-card__actions {
	justify-content: center;
}

.post-card__meta {
	margin: 0;
	color: var(--gray-7, #495057);
	font-size: var(--fs-xs);
}

.post-card__excerpt {
	margin: 0;
	color: var(--gray-7, #495057);
	font-size: var(--fs-sm);
	line-height: 1.5;
}
