/*
 * WooCommerce – Showcase (Figma 313:2446, 1280×1439 centred, 120px to the next section).
 * Head: Section Divider (24) + 16 + H3 title (722 wide, 2 lines) = 132; 48 gap; then a 2×3 grid of
 * 632×409 cards, 16 gap. Card: 32/32/0 padding text (H4 + 8 + paragraph), 8 gap, 275px image area with
 * the illustration centred. The 1px purple-30 stroke is Figma "inside" (takes no layout space), so it is
 * drawn as an inset shadow.
 */

.rs-woo-showcase__head > .rs-woo-showcase__title {
	max-width: 722px;
}

/* ---- Cards ---- */
.rs-woo-showcase__grid > .rs-woo-card {
	box-sizing: border-box;
	min-width: 0;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--25);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--purple-30);
}

.rs-woo-card > .rs-woo-card__text > * {
	margin: 0;
}

/* Image area: bottom-aligned, so illustrations line up when a neighbour's copy runs longer. */
.rs-woo-card > .rs-woo-card__media {
	box-sizing: border-box;
	height: 275px;
	margin-top: auto;
}

.rs-woo-card__media > .rs-woo-card__img {
	flex: 0 1 auto;
	min-width: 0;
	max-width: calc(100% - 48px);
	margin: 0;
}

.rs-woo-card__img img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ---- Responsive ---- */
@media (max-width: 899px) {
	.rs-woo-showcase .rs-woo-showcase__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 781px) {
	.rs-woo-card > .rs-woo-card__media {
		height: auto;
		padding: 24px 0 40px;
	}

	.rs-woo-card__media > .rs-woo-card__img {
		max-width: calc(100% - 32px);
	}
}
