/* wp-content/plugins/ceca-widgets/widgets/shop-mini-feed/shop-mini-feed.css */
/* Shop Mini Feed (Figma 2117:10965): four 306×300 folded-corner colour
   cards (green/teal/pink/amber cycle, 40px bottom-right cut), title 18/25
   Bold, Members / Non-members lines 18/22 with bold values. Heading row
   matches the Event Feed's 40/50 + right-aligned link. */

.ceca-smf {
	--ceca-smf-1: #8cc078;
	--ceca-smf-2: #5fafc4;
	--ceca-smf-3: #c65a93;
	--ceca-smf-4: #f0b43c;
	--ceca-smf-h: 300px;
}

.ceca-smf__head {
	display: flex;
	align-items: baseline;
	gap: 24px;
	margin-bottom: 17px;
}

.ceca-smf .ceca-smf__heading {
	margin: 0;
	font-size: 40px;
	line-height: 50px;
	font-weight: 700;
	color: #000;
}

.ceca-smf a.ceca-smf__all {
	margin-left: auto;
	font-size: 18px;
	line-height: 30px;
	color: #000;
	text-decoration: none;
	white-space: nowrap;
}

.ceca-smf a.ceca-smf__all:hover,
.ceca-smf a.ceca-smf__all:focus {
	color: #000;
	text-decoration: underline;
}

.ceca-smf__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

/* Double specificity + explicit states so theme/kit link globals cannot
   repaint the cards. The folded corner is a 40px diagonal clip. */
.ceca-smf a.ceca-smf__card,
.ceca-smf a.ceca-smf__card:hover,
.ceca-smf a.ceca-smf__card:focus {
	display: flex;
	flex-direction: column;
	min-height: var(--ceca-smf-h);
	padding: 20px;
	color: #000;
	text-decoration: none;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
	transition: filter 0.2s ease;
}

.ceca-smf a.ceca-smf__card:hover,
.ceca-smf a.ceca-smf__card:focus {
	filter: brightness(1.05);
}

.ceca-smf__card:nth-child(4n + 1) {
	background: var(--ceca-smf-1);
}

.ceca-smf__card:nth-child(4n + 2) {
	background: var(--ceca-smf-2);
}

.ceca-smf__card:nth-child(4n + 3) {
	background: var(--ceca-smf-3);
}

.ceca-smf__card:nth-child(4n + 4) {
	background: var(--ceca-smf-4);
}

.ceca-smf .ceca-smf__title {
	font-size: 18px;
	line-height: 25px;
	font-weight: 700;
}

.ceca-smf__prices {
	display: flex;
	flex-direction: column;
	margin-top: auto;
	font-size: 18px;
	line-height: 22px;
}

.ceca-smf__label {
	margin-top: 8px;
}

.ceca-smf__value {
	font-weight: 700;
}

/* wc_price() output inside a value keeps the card's weight and colour. */
.ceca-smf__value .woocommerce-Price-amount {
	font-weight: 700;
	color: inherit;
}

.ceca-smf__empty {
	padding: 24px;
	background: #f7f7f7;
	border: 1px dashed #c4c4c4;
	border-radius: 8px;
	font-size: 14px;
	color: #666;
}

@media (max-width: 1024px) {
	.ceca-smf__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ceca-smf__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ceca-smf {
		--ceca-smf-h: 260px;
	}
}

/* --- mobile design pass (Figma 2372:7357): horizontal card scroller ------- */
@media (max-width: 767px) {
	.ceca-smf__grid {
		display: flex;
		gap: 24px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		margin-right: -20px;
		padding-right: 20px;
	}

	.ceca-smf__grid::-webkit-scrollbar {
		display: none;
	}

	.ceca-smf__grid > * {
		flex: 0 0 306px;
		scroll-snap-align: start;
	}
}

/* No "Shop all" link on mobile; heading line-height 40px (user, 2026-09-16). */
@media (max-width: 767px) {
	.ceca-smf__all {
		display: none;
	}

	.ceca-smf .ceca-smf__heading {
		line-height: 40px;
	}
}
