/* ============================================================
   AstroPanda WooCommerce Filter
   ============================================================ */

.ap-filter-widget {
	font-family: inherit;
}

/* ---- Sections ---- */
.ap-filter-section {
	margin-bottom: 28px;
}

.ap-filter-section:last-of-type {
	margin-bottom: 0;
}

/* ---- Section title ---- */
.ap-filter-title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
	color: #002868;
	line-height: 1.2;
}

/* ============================================================
   Price inputs
   ============================================================ */
.ap-price-inputs {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
}

.ap-price-inputs input[type="number"] {
	width: 100%;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	font-size: 14px;
	color: #aaa;
	background: #fff;
	box-sizing: border-box;
	-moz-appearance: textfield;
}

.ap-price-inputs input[type="number"]:focus {
	outline: none;
	border-color: #002868;
	color: #333;
}

/* Show spin buttons (Chrome/Safari) */
.ap-price-inputs input[type="number"]::-webkit-inner-spin-button,
.ap-price-inputs input[type="number"]::-webkit-outer-spin-button {
	opacity: 1;
}

/* ============================================================
   Dual-handle range slider
   ============================================================ */
.ap-price-slider-wrap {
	position: relative;
	height: 22px;
	margin: 0 8px;
}

.ap-slider-track,
.ap-slider-range {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 4px;
	border-radius: 2px;
	pointer-events: none;
}

.ap-slider-track {
	left: 0;
	right: 0;
	background: #e0e0e0;
}

.ap-slider-range {
	background: #002868;
	/* left/width set by JS */
}

/* Both range inputs sit on the same track */
.ap-price-slider-wrap input[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}

/* ----- Webkit thumb ----- */
.ap-price-slider-wrap input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #002868;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	cursor: pointer;
	pointer-events: all;
}

.ap-price-slider-wrap input[type="range"]:focus::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px rgba(0, 40, 104, .15);
}

/* ----- Firefox thumb ----- */
.ap-price-slider-wrap input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #002868;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	cursor: pointer;
	pointer-events: all;
}

/* Hide Firefox default track */
.ap-price-slider-wrap input[type="range"]::-moz-range-track {
	background: transparent;
}

/* ============================================================
   Categories list
   ============================================================ */
.ap-categories-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ap-category-item {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.ap-category-item input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: #002868;
}

.ap-category-name {
	font-size: 14px;
	color: #333;
	line-height: 1.4;
}

.ap-category-count {
	font-size: 13px;
	color: #999;
	font-weight: 400;
}

/* ============================================================
   Submit button
   ============================================================ */
.ap-filter-submit {
	display: block;
	width: 100%;
	margin-top: 20px;
	padding: 10px 20px;
	background-color: #002868;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s;
}

.ap-filter-submit:hover {
	background-color: #003794;
}

/* ============================================================
   Reset link
   ============================================================ */
.ap-filter-reset {
	display: inline-block;
	margin-top: 10px;
	font-size: 13px;
	color: #888;
	text-decoration: underline;
	cursor: pointer;
}

.ap-filter-reset:hover {
	color: #002868;
}
