/* ==========================================================================
   CPT Elementor Loop Filters — Frontend Styles
   ========================================================================== */

.celf-filter-widget { font-family: inherit; font-size: 14px; color: inherit; }

.celf-global-filters .celf-filter-widget + .celf-filter-widget { margin-top: 24px; }

/* ── Título ─────────────────────────────────────────────────────────────── */
.celf-filter-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(0,0,0,.1);
}

/* ── Checkboxes ──────────────────────────────────────────────────────────── */
.celf-filter-list { list-style: none; margin: 0; padding: 0; }
.celf-filter-item { margin: 0; padding: 0; }

.celf-filter-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	text-decoration: none;
	color: inherit;
	transition: color 0.2s;
}

.celf-filter-link:hover { color: #8b5cf6; }
.celf-filter-link.active .celf-filter-label { font-weight: 600; }

.celf-checkbox-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	min-width: 16px;
	border: 2px solid #ccc;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	color: transparent;
	transition: background 0.2s, border-color 0.2s;
}

.celf-filter-link.active .celf-checkbox-icon {
	background: #8b5cf6;
	border-color: #8b5cf6;
	color: #fff;
}

.celf-filter-label { flex: 1; line-height: 1.3; }
.celf-filter-count { font-size: 12px; opacity: 0.55; }

/* ── Botões ──────────────────────────────────────────────────────────────── */
.celf-filter-buttons { display: flex; flex-wrap: wrap; gap: 6px; }

.celf-btn-filter {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 13px;
	text-decoration: none;
	color: inherit;
	background: transparent;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.celf-btn-filter:hover { border-color: #8b5cf6; color: #8b5cf6; }
.celf-btn-filter.active { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }

/* ── Dropdown / Sort ─────────────────────────────────────────────────────── */
.celf-filter-dropdown,
.celf-sort-select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
	appearance: auto;
}

.celf-filter-dropdown:focus,
.celf-sort-select:focus {
	outline: none;
	border-color: #8b5cf6;
	box-shadow: 0 0 0 2px rgba(139,92,246,.15);
}

/* ── Pesquisa ────────────────────────────────────────────────────────────── */
.celf-search-filter { position: relative; }

.celf-search-input {
	width: 100%;
	padding: 8px 36px 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.celf-search-input:focus {
	outline: none;
	border-color: #8b5cf6;
	box-shadow: 0 0 0 2px rgba(139,92,246,.15);
}

.celf-search-icon {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	opacity: 0.4;
	pointer-events: none;
}

/* ── Limpar ──────────────────────────────────────────────────────────────── */
.celf-clear-btn {
	display: inline-block;
	margin-top: 16px;
	padding: 5px 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 12px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s, color 0.2s;
}
.celf-clear-btn:hover { border-color: #e74c3c; color: #e74c3c; }

/* ── Placeholder editor ──────────────────────────────────────────────────── */
.celf-placeholder {
	padding: 12px;
	background: #faf5ff;
	border: 1px dashed #c4b5fd;
	border-radius: 4px;
	font-size: 13px;
	color: #8b5cf6;
	text-align: center;
}

@media ( max-width: 767px ) {
	.celf-filter-buttons { flex-wrap: wrap; }
}
