/* Shared product card used by the homepage collections and WooCommerce catalog. */
.gh-product-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e4e4e4;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 2px 4px rgb(63 63 63 / 3%);
}

.gh-product-card[hidden] { display: none; }

.gh-product-card__image {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #e9edf2;
}

.gh-product-card__image--pending {
	background: linear-gradient(100deg, #e8edf2 20%, #f6f8fa 40%, #e8edf2 60%);
	background-size: 220% 100%;
	animation: gh-skeleton-shimmer 1.25s ease-in-out infinite;
}

@keyframes gh-skeleton-shimmer {
	from { background-position: 100% 0; }
	to { background-position: -120% 0; }
}

.gh-product-card__image img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.gh-product-card__image .gh-lazy-image { opacity: 0; }
.gh-product-card__image .gh-lazy-image.is-loaded { opacity: 1; }
.gh-product-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--gh-gold);
	color: var(--gh-navy);
	font-size: .59rem;
	font-weight: 700;
	text-transform: uppercase;
}

.gh-product-card__actions {
	position: absolute;
	right: 0;
	bottom: 16px;
	left: 0;
	display: flex;
	justify-content: center;
	gap: 12px;
}

.gh-product-card__action {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	color: #3f3f3f;
	box-shadow: 0 10px 22px rgb(63 63 63 / 25%);
	transform: translate3d(0, 0, 0);
	transition: background-color .25s ease, color .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.gh-product-card__action:hover {
	background: var(--gh-navy);
	color: #fff;
	transform: translate3d(0, -2px, 0);
}

.gh-product-card__action svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.gh-product-card__body {
	min-height: 142px;
	padding: 16px;
}

.gh-product-card__body small {
	display: block;
	margin-bottom: 7px;
	overflow: hidden;
	color: #64748b;
	font-size: .66rem;
	letter-spacing: .04em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.gh-product-card h2,
.gh-product-card h3 {
	display: -webkit-box;
	min-height: 42px;
	margin: 0 0 9px;
	overflow: hidden;
	color: var(--gh-navy);
	font-size: .86rem;
	font-weight: 700;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.gh-product-card h2 a,
.gh-product-card h3 a { text-decoration: none; }

.gh-product-card__body > strong {
	color: var(--gh-navy);
	font-size: .88rem;
}

.gh-product-card__body > strong .price,
.gh-product-card__body > strong ins {
	color: inherit;
	text-decoration: none;
}

.gh-product-card__body > strong del { display: none; }

@media (max-width: 650px) {
	.gh-product-card__body { min-height: 136px; padding: 13px; }

	.gh-product-card h2,
	.gh-product-card h3 { font-size: .78rem; }

	.gh-product-card__actions { display: none; }
}

@media (max-width: 430px) {
	.gh-product-card__body small { font-size: .58rem; }

	.gh-product-card h2,
	.gh-product-card h3 { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
	.gh-product-card__image--pending { animation: none; }

	.gh-product-card__action {
		transition: background-color .18s ease, color .18s ease, transform .18s ease;
	}
}
