/* pp-quote 0.6.2: home page "Our Products" grid (theme front-page.php, ACF 'products' repeater) restyled like the
   range cards on the product listing pages (.pp-pl-card). Front page only; theme markup and ACF content untouched.
   Markup: #products .product-container > .product.col-* > a > .image (background-image) + .content.match > h3.title + text.
   #products-offset (the menu's jump target, 125px above) is left alone. */
#products { --pp-green: #84ab49; --pp-green-dark: #5f8a2c; --pp-ink: #2f3133; --pp-muted: #6b6b6b; --pp-line: #e4e2db; }
#products .blurb .subheading a { color: var(--pp-green-dark); }
#products .product-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; text-align: left; }
#products .product-container::before, #products .product-container::after { display: none; } /* bootstrap clearfix would take grid cells */
#products .product-container > .product { float: none; width: auto; min-height: 0; padding: 0; margin: 0; }
#products .product > a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--pp-line); border-radius: 8px; overflow: hidden; color: var(--pp-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
#products .product > a:hover, #products .product > a:focus-visible { border-color: var(--pp-green); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateY(-2px); outline: none; }
#products .product .image { width: 100%; height: auto !important; aspect-ratio: 16 / 10; padding: 0 !important; margin: 0; background-size: cover; background-position: center; }
#products .product .content { display: flex; flex-direction: column; flex: 1 1 auto; height: auto !important; padding: 14px 16px 16px; margin: 0; border: 0; background: transparent; text-align: left; color: var(--pp-muted); font-size: 14px; line-height: 1.45; }
#products .product .content p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--pp-muted); }
#products .product .content h3.title { margin: 0 0 4px; padding: 0; font-size: 19px; line-height: 1.3; color: var(--pp-ink); text-align: left; }
#products .product .content::after { content: "View range →"; margin-top: auto; padding-top: 12px; color: var(--pp-green-dark); font-weight: 600; font-size: 14px; }
#products .product > a:hover .title, #products .product > a:focus-visible .title { color: var(--pp-green-dark); }

@media (max-width: 991px) {
	#products .product-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
/* Phones: one column, photo left and text right, like the range cards on phones. */
@media (max-width: 600px) {
	#products .product-container { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	#products .product > a { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
	#products .product .image { aspect-ratio: auto; height: 100% !important; min-height: 96px; }
	#products .product .content { padding: 12px 12px 12px 14px; }
	#products .product .content h3.title { font-size: 17px; }
	#products .product .content::after { padding-top: 6px; }
	#products .product > a:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { #products .product > a { transition: none; } #products .product > a:hover { transform: none; } }
