/**
 * HalalEco Category Filter
 *
 * Deliberately minimal: the category list keeps its original .he-cat-list
 * class so your existing styling stays in charge. Only the loading and
 * error states are added here.
 */

.hcf-grid {
	position: relative;
	min-height: 120px;
}

.hcf-grid.hcf-loading {
	pointer-events: none;
}

.hcf-grid.hcf-loading > * {
	opacity: 0.35;
	transition: opacity 0.15s ease;
}

.hcf-grid.hcf-loading::after {
	content: "";
	position: absolute;
	top: 60px;
	left: 50%;
	width: 34px;
	height: 34px;
	margin-left: -17px;
	border: 3px solid rgba( 0, 0, 0, 0.12 );
	border-top-color: var( --hqs-green, #5da22b );
	border-radius: 50%;
	animation: hcf-spin 0.7s linear infinite;
}

@keyframes hcf-spin {
	to {
		transform: rotate( 360deg );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.hcf-grid.hcf-loading::after {
		animation-duration: 2s;
	}
}

.hcf-error {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 6px;
	background: #fdecea;
	color: #b3261e;
	font-size: 14px;
}

/* Category list — only what the dynamic list needs on top of your CSS. */

.hcf-list a {
	cursor: pointer;
}

.hcf-list .hcf-count {
	opacity: 0.55;
	font-size: 0.85em;
}

.hcf-list .hcf-count::before {
	content: "(";
}

.hcf-list .hcf-count::after {
	content: ")";
}
