/* Fooppers Category Grid — frontend */

.fcg {
	--fcg-cols: 4;
	--fcg-cols-tablet: 5;
	--fcg-cols-desktop: 6;
	--fcg-tile-bg: #e9f4f3;
	--fcg-radius: 14px;
	--fcg-gap-x: 10px;
	--fcg-gap-y: 18px;
	--fcg-pad: 10px;

	margin: 0 0 28px;
}

.fcg__heading {
	margin: 0 0 14px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #1f1f1f;
}

.fcg__grid {
	display: grid;
	grid-template-columns: repeat(var(--fcg-cols), minmax(0, 1fr));
	gap: var(--fcg-gap-y) var(--fcg-gap-x);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fcg__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fcg__item::before,
.fcg__item::marker {
	content: none;
}

.fcg__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.fcg__link:hover,
.fcg__link:focus {
	text-decoration: none;
	color: inherit;
}

.fcg__link:focus-visible {
	outline: 2px solid #1f8a70;
	outline-offset: 3px;
	border-radius: var(--fcg-radius);
}

.fcg__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: var(--fcg-pad);
	background: var(--fcg-tile-bg);
	border-radius: var(--fcg-radius);
	overflow: hidden;
	transition: transform 0.18s ease;
}

@media (hover: hover) {
	.fcg__link:hover .fcg__tile {
		transform: translateY(-2px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fcg__tile {
		transition: none;
	}

	.fcg__link:hover .fcg__tile {
		transform: none;
	}
}

.fcg__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	border-radius: 0;
	mix-blend-mode: multiply;
}

.fcg__label {
	display: block;
	margin-top: 8px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	color: #22282e;
	word-break: break-word;
}

.fcg__count {
	font-weight: 400;
	opacity: 0.6;
}

/* Photo mode: lifestyle photos fill the tile instead of floating inside it. */
.fcg--photo .fcg__tile {
	padding: 0;
}

.fcg--photo .fcg__img {
	object-fit: cover;
	mix-blend-mode: normal;
}

@media (min-width: 600px) {
	.fcg {
		--fcg-gap-x: 14px;
		--fcg-gap-y: 22px;
	}

	.fcg__grid {
		grid-template-columns: repeat(var(--fcg-cols-tablet), minmax(0, 1fr));
	}

	.fcg__heading {
		font-size: 21px;
	}

	.fcg__label {
		font-size: 14px;
	}
}

@media (min-width: 1024px) {
	.fcg__grid {
		grid-template-columns: repeat(var(--fcg-cols-desktop), minmax(0, 1fr));
	}

	.fcg__heading {
		font-size: 23px;
		margin-bottom: 18px;
	}
}
