/**
 * Legend Eagle — Shop sidebar filter (checkbox AJAX).
 */

.le-shop-filter {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	font-size: 14px;
	color: #374151;
}

.le-filter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid #f3f4f6;
}

.le-filter-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	color: #111827;
}

.le-filter-reset {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 0;
	background: transparent;
	color: #6b7280;
	font-size: 13px;
	cursor: pointer;
	width: 75%;
	margin-bottom: 0!important;
	border-radius: 6px;
	transition: all 0.15s;
}

.le-filter-reset:hover {
	color: #111827;
	background: #f3f4f6;
}

/* ---------- Groups ---------- */
.le-filter-group {
	padding: 14px 0;
	border-bottom: 1px solid #f3f4f6;
}

.le-filter-group:last-child {
	border-bottom: 0;
}

.le-filter-group-title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	margin: 0 0 12px;
}

.le-filter-options {
	display: flex;
	gap: 8px;
}

.le-filter-options-stack {
	flex-direction: column;
}

.le-filter-options-2col {
	flex-wrap: wrap;
}

.le-filter-options-2col .le-filter-option {
	flex: 0 0 calc(50% - 4px);
}

/* ---------- Checkbox ---------- */
.le-filter-option {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	padding: 4px 0;
	font-size: 14px;
	color: #374151;
	line-height: 1.4;
	transition: color 0.15s;
}

.le-filter-option:hover {
	color: #111827;
}

.le-filter-option input.le-filter-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

.le-filter-cb-box {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1.5px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s;
	position: relative;
}

.le-filter-option input.le-filter-checkbox:checked + .le-filter-cb-box {
	background: #dc2626;
	border-color: #dc2626;
}

.le-filter-option input.le-filter-checkbox:checked + .le-filter-cb-box::after {
	content: '';
	width: 5px;
	height: 9px;
	border: 2px solid #fff;
	border-top: 0;
	border-left: 0;
	transform: rotate(45deg) translate(-1px, -1px);
}

.le-filter-option input.le-filter-checkbox:focus-visible + .le-filter-cb-box {
	outline: 2px solid #dc2626;
	outline-offset: 2px;
}

.le-filter-label-text {
	flex: 1;
}

.le-filter-count {
	color: #9ca3af;
	font-size: 13px;
	margin-left: auto;
}

/* ---------- Price ---------- */
.le-filter-price-presets {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-bottom: 14px;
}

.le-filter-price-pill {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	padding: 6px 10px;
	font-size: 12px;
	cursor: pointer;
	color: #374151;
	transition: all 0.15s;
	text-align: center;
}

.le-filter-price-pill:hover {
	border-color: #9ca3af;
}

.le-filter-price-pill.is-active {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

.le-filter-price-range {
	display: flex;
	align-items: center;
	gap: 6px;
}

.le-filter-price-min,
.le-filter-price-max {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 13px;
	color: #111827;
	background: #fff;
	box-shadow: none;
}

.le-filter-price-min:focus,
.le-filter-price-max:focus {
	outline: none;
	border-color: #111827;
}

.le-filter-price-sep {
	color: #9ca3af;
	flex: 0 0 auto;
}

/* ---------- Rating stars ---------- */
.le-filter-rating-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.le-star {
	color: #d1d5db;
}

.le-star.is-filled {
	color: #f59e0b;
}

.le-filter-rating-text {
	margin-left: 6px;
	color: #6b7280;
	font-size: 13px;
}

/* ---------- Submit (noscript only) ---------- */
.le-filter-submit {
	width: 100%;
	margin-top: 16px;
	padding: 10px 16px;
	background: #111827;
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

/* ---------- Shop main loading overlay ---------- */
.le-shop-products {
	position: relative;
	min-height: 200px;
	transition: opacity 0.2s;
}

.le-shop-products.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.le-shop-products.is-loading::after {
	content: '';
	position: absolute;
	top: 100px;
	left: 50%;
	width: 36px;
	height: 36px;
	margin-left: -18px;
	border: 3px solid #e5e7eb;
	border-top-color: #111827;
	border-radius: 50%;
	animation: le-spin 0.8s linear infinite;
	z-index: 2;
}

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

.le-filter-empty {
	padding: 40px 20px;
	text-align: center;
	color: #6b7280;
	background: #f9fafb;
	border-radius: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 849px) {
	.le-shop-row .col.large-3 {
		display: none;
	}
}
