/* Product Taxonomy Filters - basic frontend styles.
   Intentionally minimal; adjust freely to match your theme. */

.ptf-filter-bar-wrap {
	margin: 0 0 24px;
}

.ptf-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.ptf-filter-dropdown {
	position: relative;
}

.ptf-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 14px;
	cursor: pointer;
}

.ptf-filter-toggle:hover {
	border-color: #b5b5b5;
}

.ptf-filter-dropdown.is-open .ptf-filter-toggle {
	border-color: #f28c28;
}

.ptf-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 50%;
	background: #f28c28;
	color: #fff;
	font-size: 11px;
	line-height: 1;
}

.ptf-filter-arrow {
	font-size: 10px;
	color: #888;
}

.ptf-filter-panel {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 200px;
	max-height: 320px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	padding: 8px 0;
	z-index: 20;
}

.ptf-filter-dropdown.is-open .ptf-filter-panel {
	display: block;
}

.ptf-filter-terms {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ptf-term {
	padding: 0;
}

.ptf-term label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
}

.ptf-term label:hover {
	background: #f7f7f7;
}

.ptf-term-selected .ptf-term-name {
	color: #f28c28;
	font-weight: 600;
}

.ptf-term-count {
	color: #999;
	font-size: 12px;
}

.ptf-term-disabled label {
	opacity: 0.4;
	cursor: not-allowed;
}

.ptf-term-disabled input[type="checkbox"] {
	cursor: not-allowed;
}

.ptf-reset-all {
	margin-left: 8px;
	font-size: 14px;
	text-decoration: underline;
	color: #333;
	white-space: nowrap;
}

.ptf-reset-all:hover {
	color: #f28c28;
}

@media (max-width: 782px) {
	.ptf-filter-bar {
		gap: 6px;
	}

	.ptf-filter-panel {
		left: auto;
		right: 0;
	}
}
