/* Vini - UX de filtros de catálogo */

.vini-filter-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: rgba(250, 247, 243, 0.72);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, visibility 0.18s ease;
}

.vini-filter-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.vini-filter-spinner {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 3px solid #E7E2DB;
	border-top-color: #E8562D;
	animation: vini-filter-spin 0.7s linear infinite;
}

.vini-filter-overlay__text {
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #6B7280;
	letter-spacing: 0.01em;
}

html.vini-filtering,
html.vini-filtering body {
	cursor: progress;
}

html.vini-filtering .vini-filter-overlay {
	pointer-events: auto;
}

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

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

	.vini-filter-spinner {
		animation-duration: 1.6s;
	}
}

/* Search results: the plugin's "Filtros" <h2> is injected into the plain sidebar
   and inherits the theme's h2 size. Category pages use the Elementor sidebar
   without it; the mobile panel has its own title. */
.search-results #secondary > .wmf-filters-title {
    display: none;
}

/* Search results: the plain #secondary sidebar gets the parent theme's widget
   spacing (24px margin + padding), which the Elementor sidebar on category
   pages doesn't. Match the category look: even rows separated by the border. */
.search-results #secondary > .widget {
    margin-bottom: 0;
    padding-bottom: 0;
}
