@media (max-width: 999px) {
	.riedel-row-count__orderby {
		align-items: flex-start;
		gap: 15px;
		margin-top: 20px;
	}
}

/* ── Mobile: Filter toggle sits inline with the sort dropdown ────────────────── */
/* The toggle button is moved here from the sidebar by assets/js/page-catalog.js
   so it appears next to the sort control instead of stacked above the grid. */
@media (max-width: 999px) {
	.riedel-catalog__sort-wrap {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		gap: var(--wp--preset--spacing--3);
	}

	.riedel-catalog__sort-wrap .riedel-catalog-filters__toggle {
		width: auto;
		margin: 0;
	}
}

/* ── Filter / sort / pagination loading state ──────────────────────────────── */

.riedel-catalog__content {
	position: relative;
}

.riedel-catalog-loading {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: none;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--wp--preset--color--surface-default) 65%, transparent);
}

.is-catalog-loading {
	pointer-events: none;
}

.is-catalog-loading .riedel-catalog-loading {
	display: flex;
}

.riedel-catalog-loading__spinner {
	width: 44px;
	height: 44px;
	border-radius: var(--wp--custom--radius--full, 9999px);
	border: 3px solid var(--wp--preset--color--border-default);
	border-top-color: var(--wp--preset--color--action-primary);
	animation: riedel-catalog-spin 0.7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
	.riedel-catalog-loading__spinner {
		animation-duration: 1.5s;
	}
}