/**
 * Product cards.
 *
 * Three-up grid of product cards, each with a Made in the U.S.A. badge, the
 * product shot on a light panel, spec list and a link through to the product
 * page. Mirrors the "triple-card" layout on the current site.
 */

.sterling-products {
	background-color: #fff;
}

/* Group heading, e.g. "Junior Padlocks"
   ------------------------------------------------------------------------ */

/* The group headings double as anchor targets for the home page callout, so
   keep them clear of the sticky header when jumped to. */
.sterling-products__group {
	scroll-margin-top: 110px;
}

.elementor-widget-heading.sterling-products__group .elementor-heading-title {
	margin: 2.5rem 0 0.5rem;
	color: var(--sterling-ink, #231f20);
	font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(1.375rem, 2.2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
}

/* Grid
   ------------------------------------------------------------------------ */

.sterling-products__grid {
	align-items: stretch;
}

.sterling-card {
	position: relative;
	flex: 1 1 300px;
	max-width: calc((100% - 64px) / 3);
	gap: 0;
	padding: 2rem 1.75rem 2rem;
	background-color: #fff;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.11);
}

/* Made in the U.S.A. badge, decorative so it lives in CSS. */
.sterling-card::before {
	content: "";
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	z-index: 2;
	width: 62px;
	height: 62px;
	background-image: url("../images/made-in-usa.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	pointer-events: none;
}

/* Product shot
   ------------------------------------------------------------------------ */

.sterling-card__image {
	margin-bottom: 1.5rem;
	background-color: #f4f4f4;
}

/* The product shots are square (444x444), so the panel matches that ratio and
   the image fills it exactly. A fixed height letterboxes it and shows bands of
   the panel background above and below. */
.sterling-card__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* Copy
   ------------------------------------------------------------------------ */

.elementor-widget-heading.sterling-card__title .elementor-heading-title {
	margin: 0 0 0.85rem;
	color: var(--sterling-ink, #231f20);
	font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
}

.sterling-card__specs {
	margin-bottom: 1.5rem;
	color: var(--sterling-ink, #231f20);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.sterling-card__specs ul {
	margin: 0;
	padding-left: 1.15rem;
	list-style: disc;
}

.sterling-card__specs li {
	margin-bottom: 0.15rem;
}

/* Call to action
   ------------------------------------------------------------------------ */

.sterling-card__cta {
	margin-top: auto;
}

/* Qualified with the widget class so it sits above Elementor's per-page rule
   ".elementor-widget-button .elementor-button", which paints the global accent
   colour and would otherwise win on load order. */
.elementor-widget-button.sterling-card__cta .elementor-button {
	display: inline-block;
	padding: 0.7rem 1.35rem;
	background-color: var(--sterling-gray, #7f7f7f);
	color: #fff;
	font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 0;
	transition: background-color 0.18s ease;
}

.elementor-widget-button.sterling-card__cta .elementor-button:hover,
.elementor-widget-button.sterling-card__cta .elementor-button:focus-visible {
	background-color: var(--sterling-gold, #bd9b51);
	color: #fff;
}

/* Breakpoints
   ------------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.sterling-card {
		max-width: calc((100% - 32px) / 2);
	}
}

@media (max-width: 767px) {
	.sterling-card {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sterling-card__cta .elementor-button {
		transition: none;
	}
}
