/**
 * Woo Filter Sidebar styles.
 */

.wsf-sidebar {
	--wsf-accent: #2563eb;
	--wsf-accent-dark: #1d4ed8;
	--wsf-text: #334155;
	--wsf-muted: #94a3b8;
	--wsf-border: #e2e8f0;
	font-size: 14px;
	color: var(--wsf-text);
	line-height: 1.5;
	width: 100%;
}

.wsf-sidebar * {
	box-sizing: border-box;
}

/* Search box */
.wsf-search {
	position: relative;
	margin-bottom: 18px;
}

.wsf-search-input {
	width: 100%;
	padding: 11px 44px 11px 14px;
	border: 1px solid var(--wsf-border);
	border-radius: 6px;
	font-size: 14px;
	color: var(--wsf-text);
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	line-height: 1.4;
}

.wsf-search-input:focus {
	outline: none;
	border-color: var(--wsf-accent);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.wsf-search-btn {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	padding: 0;
	color: var(--wsf-accent);
	cursor: pointer;
}

.wsf-search-btn:hover {
	color: var(--wsf-accent-dark);
}

/* Browse categories button */
.wsf-browse {
	margin-bottom: 22px;
}

.wsf-browse-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid var(--wsf-border);
	border-radius: 6px;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #1e293b;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.15s ease;
}

.wsf-browse-toggle:hover {
	border-color: var(--wsf-accent);
}

.wsf-browse-icon {
	font-size: 14px;
	line-height: 1;
}

/* Filter By heading */
.wsf-heading {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0f172a;
	margin: 0 0 18px;
	padding: 0;
}

/* Groups */
.wsf-group {
	margin-bottom: 26px;
}

.wsf-group-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wsf-accent);
	margin: 0 0 12px;
	padding: 0;
}

.wsf-options {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wsf-option {
	margin: 0 0 9px;
	padding: 0;
}

.wsf-option label {
	display: flex;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	font-size: 14px;
	color: var(--wsf-text);
}

.wsf-option input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--wsf-accent);
	cursor: pointer;
	flex-shrink: 0;
}

.wsf-option-label {
	flex: 1 1 auto;
}

.wsf-count {
	color: var(--wsf-muted);
	font-size: 13px;
	flex-shrink: 0;
}

.wsf-option label:hover .wsf-option-label {
	color: var(--wsf-accent);
}

/* Price slider */
.wsf-group-price {
	padding-bottom: 6px;
}

.wsf-price-slider {
	position: relative;
	height: 24px;
	margin: 14px 6px 10px;
}

.wsf-price-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	transform: translateY(-50%);
	background: var(--wsf-border);
	border-radius: 4px;
}

.wsf-price-range {
	position: absolute;
	top: 0;
	height: 100%;
	background: var(--wsf-accent);
	border-radius: 4px;
}

.wsf-price-handle {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 24px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.wsf-price-handle::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--wsf-accent);
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wsf-price-handle::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--wsf-accent);
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wsf-price-handle::-webkit-slider-runnable-track {
	background: none;
}

.wsf-price-handle::-moz-range-track {
	background: none;
}

.wsf-price-values {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: var(--wsf-muted);
	margin: 0 2px;
}

.wsf-price-values .amount {
	color: var(--wsf-text);
}

/* Reset */
.wsf-reset {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 16px;
	margin-top: 6px;
	background: #fff;
	border: 1px solid var(--wsf-border);
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
	color: var(--wsf-text);
	cursor: pointer;
	transition: all 0.15s ease;
}

.wsf-reset:hover {
	border-color: var(--wsf-accent);
	color: var(--wsf-accent);
}

.wsf-reset-icon {
	font-size: 15px;
	line-height: 1;
}

.wsf-apply {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 11px 16px;
	background: var(--wsf-accent);
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
}

/* Loading state */
.wsf-loading {
	position: relative;
	min-height: 120px;
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.wsf-loading::after {
	content: "";
	position: absolute;
	top: 40px;
	left: 50%;
	width: 28px;
	height: 28px;
	margin-left: -14px;
	border: 3px solid var(--wsf-border, #e2e8f0);
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: wsf-spin 0.7s linear infinite;
}

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

/* AJAX pagination injected list */
.wsf-pagination ul {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	justify-content: center;
}

.wsf-pagination a,
.wsf-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--wsf-text, #334155);
	border: 1px solid #e2e8f0;
}

.wsf-pagination .current {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

@media ( max-width: 768px ) {
	.wsf-sidebar {
		max-width: 100%;
	}
}
