.product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-radius: 18px;
}

.product-card:hover {
	border-color: #c8d4c2;
}

.product-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: linear-gradient(135deg, #f6f3ea, #eeece2);
}

.product-card__media-link {
	display: block;
	width: 100%;
	height: 100%;
}

.product-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: var(--space-4);
	object-fit: contain;
}

.product-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 36px;
	padding: 6px 11px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-ink);
	background: rgb(255 254 250 / 94%);
	border-radius: 7px;
	box-shadow: 0 2px 10px rgb(23 63 50 / 8%);
}

.product-card__badge .icon {
	width: 16px;
	height: 16px;
	color: var(--color-brand);
}

.product-card__media--origin .product-card__badge {
	top: 58px;
}

.origin-tag {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	color: #43533b;
	background: rgb(255 254 250 / 90%);
	border-radius: 6px;
	box-shadow: 0 2px 10px rgb(23 63 50 / 6%);
}

.origin-tag .flag {
	font-size: 14px;
	line-height: 1;
}

.product-card__favorite {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: var(--color-ink);
	background: var(--color-surface);
	border: 1px solid rgb(227 229 219 / 80%);
	border-radius: 50%;
	box-shadow: 0 2px 10px rgb(23 63 50 / 6%);
}

.product-card__favorite:hover {
	color: var(--color-brand);
	border-color: var(--color-brand);
}

.product-card__favorite.is-active {
	color: var(--color-surface);
	background: var(--color-brand);
	border-color: var(--color-brand);
}

.product-card__favorite.is-active .icon {
	fill: currentColor;
}

.product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 7px;
	padding: 20px 20px 0;
}

.product-card__category {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--color-ink);
}

.product-card__category a {
	color: inherit;
	text-decoration: none;
}

.product-card__category a:hover {
	color: var(--color-brand);
}

.product-card__title {
	font-family: var(--font-body);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-ink);
}

.product-card__link {
	color: inherit;
	text-decoration: none;
}

.product-card__link:hover {
	color: var(--color-brand);
}

.product-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.product-card__chip {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	border-radius: 5px;
}

.product-card__chip--sand {
	color: #6d553c;
	background: #f0e8db;
}

.product-card__chip--green {
	color: #47603b;
	background: #e9f1e0;
}

.product-card__description {
	display: -webkit-box;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.45;
	color: var(--color-ink-muted);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.product-card__price {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	padding-top: 16px;
}

.product-card__price-value {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--color-brand);
}

.product-card__price-value .price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.product-card__price-value .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.product-card__price-value del {
	font-size: 14px;
	font-weight: 400;
	color: var(--color-ink-muted);
}

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

.product-card__price-label {
	font-size: 12px;
	color: var(--color-ink-muted);
}

.product-card__footer {
	padding: 14px 20px 20px;
}

.product-card__cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-brand);
	text-decoration: none;
	background: #f2f6ed;
	border: 1px solid #b9cbb5;
	border-radius: 9px;
}

.product-card__cta:hover {
	background: #e8f0e1;
	border-color: var(--color-brand);
}

.product-card__cta .icon {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 17px;
	height: 17px;
	transform: translateY(-50%);
}

.product-card__footer a.button.product-card__add,
.product-card__add.button,
.product-card__footer .button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-brand);
	text-align: center;
	text-decoration: none;
	background: #f2f6ed;
	border: 1px solid #b9cbb5;
	border-radius: 9px;
}

.product-card__footer a.button.product-card__add:hover,
.product-card__add.button:hover,
.product-card__footer .button:hover {
	color: var(--color-brand);
	background: #e8f0e1;
	border-color: var(--color-brand);
}

.product-card__footer .added_to_cart {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	text-align: center;
}

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

@media (max-width: 900px) {
	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-3);
	}

	.product-card__body {
		padding: 14px 14px 0;
	}

	.product-card__title {
		font-size: 17px;
	}

	.product-card__chips {
		gap: 4px;
	}

	.product-card__chip {
		min-height: 26px;
		padding: 3px 8px;
		font-size: 11px;
	}

	.product-card__description {
		font-size: 12px;
	}

	.product-card__price-value {
		font-size: 22px;
	}

	.product-card__footer {
		padding: 12px 14px 14px;
	}

	.product-card__cta,
	.product-card__footer a.button.product-card__add,
	.product-card__add.button,
	.product-card__footer .button {
		min-height: 46px;
		font-size: 13px;
	}
}

@media (max-width: 640px) {
	.product-grid {
		grid-template-columns: 1fr;
		gap: var(--space-4);
	}

	.product-grid--home {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-3);
	}

	.product-card__media {
		aspect-ratio: 1.2 / 1;
	}

	.product-card__body {
		padding: 16px 16px 0;
	}

	.product-card__title {
		font-size: 21px;
	}

	.product-card__description {
		display: -webkit-box;
		font-size: 13px;
	}

	.product-card__price-value {
		font-size: 26px;
	}

	.product-card__footer {
		padding: 14px 16px 16px;
	}

	.product-card__cta,
	.product-card__footer a.button.product-card__add,
	.product-card__add.button,
	.product-card__footer .button {
		min-height: 50px;
		font-size: 14px;
	}
}
