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

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

/* ── Título ─────────────────────────────────────────────────────────────── */
.welf-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, 0.1);
}

/* ── Lista de checkboxes ─────────────────────────────────────────────────── */
.welf-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.welf-filter-item {
	margin: 0;
	padding: 0;
}

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

.welf-filter-link:hover {
	color: #7b68ee;
}

.welf-filter-link.active .welf-filter-label {
	font-weight: 600;
}

.welf-filter-link.active .welf-checkbox-icon {
	background: #7b68ee;
	border-color: #7b68ee;
	color: #fff;
}

.welf-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;
	transition: background 0.2s, border-color 0.2s;
	color: transparent;
}

.welf-filter-label {
	flex: 1;
	line-height: 1.3;
}

.welf-filter-count {
	font-size: 12px;
	opacity: 0.6;
}

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

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

.welf-btn-filter:hover {
	border-color: #7b68ee;
	color: #7b68ee;
}

.welf-btn-filter.active {
	background: #7b68ee;
	border-color: #7b68ee;
	color: #fff;
}

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

.welf-filter-dropdown:focus,
.welf-sort-select:focus {
	outline: none;
	border-color: #7b68ee;
	box-shadow: 0 0 0 2px rgba(123, 104, 238, 0.15);
}

/* ── Filtro de Preço ─────────────────────────────────────────────────────── */
.welf-price-filter {
	padding: 4px 0 8px;
}

.welf-range-wrapper {
	position: relative;
	height: 36px;
	display: flex;
	align-items: center;
}

.welf-range-track {
	position: absolute;
	left: 0;
	right: 0;
	height: 4px;
	background: #e0e0e0;
	border-radius: 2px;
	pointer-events: none;
}

.welf-range-fill {
	position: absolute;
	height: 100%;
	background: #7b68ee;
	border-radius: 2px;
}

.welf-range {
	position: absolute;
	width: 100%;
	height: 4px;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}

.welf-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #7b68ee;
	cursor: pointer;
	pointer-events: all;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s;
}

.welf-range::-webkit-slider-thumb:hover {
	transform: scale(1.15);
}

.welf-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: none;
	border-radius: 50%;
	background: #7b68ee;
	cursor: pointer;
	pointer-events: all;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.welf-range-min {
	z-index: 2;
}

.welf-range-max {
	z-index: 3;
}

.welf-price-labels {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	gap: 8px;
}

.welf-price-display {
	font-size: 13px;
	color: inherit;
}

.welf-sep {
	opacity: 0.5;
}

.welf-price-apply {
	padding: 5px 14px;
	background: #7b68ee;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.2s;
}

.welf-price-apply:hover {
	background: #6a5acd;
}

/* ── Avaliação ───────────────────────────────────────────────────────────── */
.welf-rating-filter {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.welf-rating-item {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 0;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}

.welf-rating-item:hover {
	opacity: 0.8;
}

.welf-rating-item.active .welf-star.filled {
	color: #f5a623;
}

.welf-star.filled {
	color: #f5a623;
	font-size: 16px;
}

.welf-star.empty {
	color: #ddd;
	font-size: 16px;
}

.welf-rating-item.active .welf-rating-label {
	font-weight: 600;
}

.welf-rating-label {
	font-size: 12px;
	opacity: 0.7;
	margin-left: 4px;
}

/* ── Botão Limpar ────────────────────────────────────────────────────────── */
.welf-clear-btn {
	display: inline-block;
	margin-top: 14px;
	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;
}

.welf-clear-btn:hover {
	border-color: #e74c3c;
	color: #e74c3c;
}

/* ── Placeholder (editor) ────────────────────────────────────────────────── */
.welf-placeholder {
	padding: 12px;
	background: #f9f9f9;
	border: 1px dashed #ccc;
	border-radius: 4px;
	font-size: 13px;
	color: #888;
	text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
	.welf-filter-buttons,
	.welf-stock-buttons {
		flex-wrap: wrap;
	}

	.welf-rating-filter {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}

	.welf-rating-item {
		padding: 4px 8px;
		border: 1px solid #eee;
		border-radius: 4px;
	}
}
