/* =========================================================
   Product Filter Custom
   All colours flow from --pfc-accent so a single Elementor
   control can retheme the widget, while every individual
   element still has its own override control.
   ========================================================= */

.pfc-card {
	--pfc-accent: #a21d30;
	background: #fff;
	border-radius: 12px;
	padding: 24px 20px;
	color: #333;
}

/* ── Header ─────────────────────────────────────────────── */
.pfc-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #f2f2f2;
	padding-bottom: 14px;
	margin-bottom: 20px;
}
.pfc-title {
	font-size: 20px;
	font-weight: 700;
	color: #441118;
}
.pfc-icon {
	color: var(--pfc-accent);
	opacity: .8;
	display: inline-flex;
}

/* ── Sections ───────────────────────────────────────────── */
.pfc-section {
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 20px;
	margin-bottom: 20px;
}
.pfc-section:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}
.pfc-sec-hdr {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 16px;
	font-weight: 700;
	color: #441118;
	cursor: pointer;
	margin-bottom: 14px;
	user-select: none;
	transition: color .2s ease;
}
.pfc-sec-hdr:focus-visible {
	outline: 2px solid var(--pfc-accent);
	outline-offset: 2px;
}
.pfc-toggle-dash {
	font-size: 14px;
	line-height: 1;
	display: inline-block;
	transition: opacity .15s ease;
}
/* Expanded shows a minus, collapsed shows a plus. */
.pfc-toggle-dash::before { content: "\2212"; }
.pfc-section.pfc-collapsed .pfc-toggle-dash::before { content: "+"; }
.pfc-section.pfc-collapsed .pfc-sec-content { display: none; }

/* ── Option list ────────────────────────────────────────── */
.pfc-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pfc-item {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: 14px;
	color: #444;
	user-select: none;
	position: relative;
	padding-left: 28px;
	transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}
.pfc-item input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.pfc-item input:focus-visible ~ .pfc-checkmark {
	outline: 2px solid var(--pfc-accent);
	outline-offset: 2px;
}
.pfc-item-hidden { display: none !important; }
.pfc-item-disabled {
	opacity: .4;
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Custom checkbox ────────────────────────────────────── */
.pfc-checkmark {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	transition: background-color .2s ease, border-color .2s ease;
}
.pfc-item:hover input:not(:disabled) ~ .pfc-checkmark {
	border-color: var(--pfc-accent);
}
.pfc-item input:checked ~ .pfc-checkmark {
	background-color: var(--pfc-accent);
	border-color: var(--pfc-accent);
}
.pfc-checkmark::after {
	content: "";
	position: absolute;
	display: none;
	left: 34%;
	top: 12%;
	width: 28%;
	height: 55%;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.pfc-item input:checked ~ .pfc-checkmark::after { display: block; }

.pfc-label-txt { font-weight: 500; }
.pfc-count      { color: #999; margin-left: 6px; font-weight: 400; }
.pfc-count-zero { color: #ccc; }

/* ── Show more ──────────────────────────────────────────── */
.pfc-show-more {
	background: none;
	border: none;
	color: var(--pfc-accent);
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	margin-top: 12px;
	padding: 0;
	transition: color .2s ease, opacity .2s ease;
}
.pfc-show-more:hover { opacity: .75; }
.pfc-show-more:focus-visible {
	outline: 2px solid var(--pfc-accent);
	outline-offset: 2px;
}

/* ── Price slider ───────────────────────────────────────── */
.pfc-slider-container {
	margin: 20px 0 15px;
	padding: 0 10px;
}
.pfc-slider {
	position: relative;
	height: 4px;
	background-color: #e0e0e0;
	border-radius: 2px;
}
.pfc-slider-track {
	position: absolute;
	height: 100%;
	background-color: var(--pfc-accent);
	border-radius: 2px;
}
.pfc-slider input[type="range"] {
	position: absolute;
	width: 100%;
	height: 4px;
	-webkit-appearance: none;
	appearance: none;
	background: none;
	pointer-events: none;
	top: 0;
	left: 0;
	margin: 0;
}
.pfc-slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #fff;
	border: 3px solid var(--pfc-accent);
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
	transition: transform .15s ease;
}
.pfc-slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.pfc-slider input[type="range"]::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #fff;
	border: 3px solid var(--pfc-accent);
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
	transition: transform .15s ease;
}
.pfc-slider input[type="range"]::-moz-range-thumb:hover { transform: scale(1.15); }

/* ── Price inputs row ───────────────────────────────────── */
.pfc-price-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 15px;
	flex-wrap: wrap;
}
.pfc-currency-label {
	font-size: 11px;
	color: #666;
	font-weight: 500;
}
.pfc-price-num {
	width: 60px;
	padding: 6px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 13px;
	text-align: center;
	color: #333;
	transition: border-color .2s ease;
}
.pfc-price-num:focus {
	border-color: var(--pfc-accent);
	outline: 1px solid var(--pfc-accent);
}
.pfc-dash-sep { color: #ccc; }

/* ── Buttons ────────────────────────────────────────────── */
.pfc-submit-btn {
	margin-left: auto;
	background-color: var(--pfc-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}
.pfc-submit-btn:hover { opacity: .9; }
.pfc-submit-btn:focus-visible {
	outline: 2px solid var(--pfc-accent);
	outline-offset: 2px;
}

.pfc-reset-row {
	margin-top: 18px;
	text-align: center;
}
.pfc-reset-btn {
	display: inline-block;
	color: var(--pfc-accent);
	background-color: transparent;
	border: 1px solid var(--pfc-accent);
	border-radius: 6px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pfc-reset-btn:hover {
	background-color: var(--pfc-accent);
	color: #fff;
}
.pfc-reset-btn:focus-visible {
	outline: 2px solid var(--pfc-accent);
	outline-offset: 2px;
}

/* ── Loading overlay ────────────────────────────────────── */
.pfc-loading-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, .7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999;
}
.pfc-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(0, 0, 0, .08);
	border-left-color: var(--pfc-accent);
	border-radius: 50%;
	animation: pfc-spin .8s linear infinite;
}
@keyframes pfc-spin { to { transform: rotate(360deg); } }

@media ( prefers-reduced-motion: reduce ) {
	.pfc-card *,
	.pfc-spinner {
		transition: none !important;
		animation: none !important;
	}
}

/* =========================================================
   Mobile toggle + responsive behaviour
   ========================================================= */

/* Hidden on desktop; the media query below reveals it. */
.pfc-mobile-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	width: 100%;
	background-color: #fff;
	color: var(--pfc-accent);
	border: 1px solid var(--pfc-accent);
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pfc-mobile-toggle:focus-visible {
	outline: 2px solid var(--pfc-accent);
	outline-offset: 2px;
}
.pfc-mobile-toggle-icon {
	display: inline-flex;
	flex-shrink: 0;
}
.pfc-mobile-toggle-text { flex: 1; text-align: left; }

/* Chevron that flips when the panel is open. */
.pfc-mobile-toggle::after {
	content: "";
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .2s ease;
}
.pfc-mobile-toggle[aria-expanded="true"]::after {
	transform: rotate(-135deg) translateY(-2px);
}

.pfc-mobile-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background-color: var(--pfc-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}

/* ── Tablet ─────────────────────────────────────────────── */
@media ( max-width: 1024px ) {
	.pfc-card { padding: 20px 16px; }
	.pfc-price-actions { gap: 5px; }
	.pfc-price-num { width: 56px; }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media ( max-width: 767px ) {
	/* Reveal the toggle and hide the panel until opened. */
	.pfc-mobile-toggle { display: flex; }

	.pfc-card.pfc-has-mobile-toggle {
		display: none;
		margin-top: 10px;
	}
	.pfc-card.pfc-has-mobile-toggle.pfc-mobile-open {
		display: block;
	}

	/* The widget's own header is redundant next to the toggle button. */
	.pfc-card.pfc-has-mobile-toggle .pfc-header { display: none; }

	.pfc-card {
		padding: 18px 14px;
		border-radius: 10px;
	}

	.pfc-sec-hdr {
		font-size: 15px;
		/* Comfortable tap target. */
		padding: 6px 0;
		margin-bottom: 10px;
	}

	.pfc-item {
		font-size: 15px;
		/* 44px min tap height per touch guidelines. */
		min-height: 32px;
		padding-top: 4px;
		padding-bottom: 4px;
	}

	.pfc-checkmark {
		width: 20px;
		height: 20px;
	}

	.pfc-section {
		padding-bottom: 16px;
		margin-bottom: 16px;
	}

	/* Price row wraps onto two lines instead of squeezing. */
	.pfc-price-actions {
		gap: 8px;
		row-gap: 10px;
	}
	.pfc-price-num {
		width: 0;
		flex: 1 1 60px;
		min-width: 60px;
		padding: 10px 6px;
		font-size: 15px;
	}
	.pfc-submit-btn {
		margin-left: 0;
		flex: 1 1 100%;
		padding: 10px 14px;
		font-size: 15px;
	}

	/* Bigger slider handles for touch. */
	.pfc-slider-container { padding: 0 12px; }
	.pfc-slider input[type="range"]::-webkit-slider-thumb {
		width: 22px;
		height: 22px;
	}
	.pfc-slider input[type="range"]::-moz-range-thumb {
		width: 22px;
		height: 22px;
	}

	.pfc-reset-btn {
		display: block;
		padding: 10px 16px;
		font-size: 15px;
	}

	.pfc-show-more {
		padding: 6px 0;
		font-size: 14px;
	}
}

/* Very narrow phones — force a single column of options. */
@media ( max-width: 400px ) {
	.pfc-list {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
