/*
 * Product Categories Section — 2-part title + 3 photo-background cards + footer note + view-all link.
 *
 * Design source: Figma file o2Fw8rOZW4xOIEcs13IWzo, Rectangle 115 at top:6493.
 * Each card has the photo as a covering background with a green linear gradient
 * (transparent → rgba(98,156,85,0.25)) and a text+CTA block positioned at the bottom.
 *
 * NEW widget — 2026-05-18, not yet in deploy ZIP.
 */

.greengrass-product-categories {
	padding-block: clamp(48px, 5vw, 96px);
	background: #F3F3F3;
	font-family: 'Polin', sans-serif;
	direction: rtl;
	overflow-x: clip; /* backstop: this section can never push the page wider */
}

.greengrass-product-categories__container {
	max-width: 1900px;
	margin-inline: auto;
	padding-inline: clamp(16px, 2vw, 48px);
}

/* ── Title ──────────────────────────────────────────── */
.greengrass-product-categories__title {
	margin: 0 0 clamp(28px, 3vw, 48px);
	font-family: 'Polin', sans-serif;
	font-size: clamp(28px, 3.5vw, 55px);
	font-weight: 700;
	line-height: 1.05;
	color: #2C3D41;
	text-align: center;
}

.greengrass-product-categories__title .accent {
	color: #00A3E9;
}

/* ── Cards ──────────────────────────────────────────── */
.greengrass-product-categories__cards {
	list-style: none;
	margin: 0 0 clamp(32px, 3vw, 48px);
	padding: 0;
	display: grid;
	/* Overflow-proof responsive grid: as many >=260px columns as fit (3 → 2 → 1),
	 * and min(260px,100%) means a column never exceeds the screen on tiny phones. */
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: clamp(20px, 2vw, 32px);
}

/* Card is just a vertical stack on the section's gray bg: photo, then text, then CTA.
 * Only the photo gets rounded corners — the card wrapper is transparent. */
.greengrass-product-categories__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(16px, 1.6vw, 24px);
	text-align: center;
}

.greengrass-product-categories__card-photo {
	width: 100%;
	aspect-ratio: 568 / 360;
	border-radius: 15px;
	overflow: hidden;
	background: #d9d9d9;
}

.greengrass-product-categories__card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.greengrass-product-categories__card-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	width: 100%;
	max-width: 384px;
}

.greengrass-product-categories__card-title {
	margin: 0;
	font-family: 'Polin', sans-serif;
	font-size: clamp(20px, 2vw, 30px);
	font-weight: 700;
	line-height: 1.003;
	color: #2C3D41;
}

.greengrass-product-categories__card-body {
	margin: 0;
	font-family: 'Polin', sans-serif;
	font-size: clamp(14px, 1.3vw, 20px);
	font-weight: 400;
	line-height: 1.003;
	color: #2C3D41;
}

.greengrass-product-categories__card-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: clamp(160px, 16vw, 232px);
	height: 51px;
	padding: 0 clamp(14px, 1.4vw, 24px);
	background-color: #629C55;
	color: #F8FFFD;
	font-family: 'Polin', sans-serif;
	font-size: clamp(15px, 1.4vw, 20px);
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 15px;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.greengrass-product-categories__card-cta:hover {
	background-color: #4f7d44;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(98, 156, 85, 0.32);
}

/* ── Footer note + view-all CTA ─────────────────────── */
.greengrass-product-categories__footer-note {
	margin: 0 auto clamp(16px, 1.6vw, 28px);
	max-width: 824px;
	font-family: 'Polin', sans-serif;
	font-size: clamp(15px, 1.4vw, 22px);
	font-weight: 400;
	line-height: 1.3;
	color: #2C3D41;
	text-align: center;
}

.greengrass-product-categories__view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0 auto;
	width: max-content;
	font-family: 'Polin', sans-serif;
	font-size: clamp(18px, 2vw, 30px);
	font-weight: 400;
	line-height: 1;
	color: #00A3E9;
	text-decoration: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.greengrass-product-categories__view-all:hover {
	opacity: 0.85;
	transform: translateX(2px);
}

.greengrass-product-categories__view-all-text {
	display: inline-block;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.greengrass-product-categories__view-all-arrow {
	display: inline-block;
	width: 11px;
	height: clamp(18px, 1.8vw, 24px);
	flex-shrink: 0;
}

/* Wrapper to center the view-all CTA under the footer note */
.greengrass-product-categories__container > .greengrass-product-categories__view-all {
	display: flex;
}

/* Responsive column count is handled by the auto-fit grid above — no fixed breakpoints needed. */
