.buzze-shop-filters {
	font-family: inherit;
	box-sizing: border-box;
}

.buzze-shop-filters *,
.buzze-shop-filters *::before,
.buzze-shop-filters *::after {
	box-sizing: inherit;
}

.buzze-filter-block {
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e2e2e2;
}

.buzze-filter-block:last-child {
	border-bottom: none;
}

.buzze-filter-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin: 0 0 12px;
	color: var(--buzze-text, inherit) !important;
	text-align: left;
	font-family: inherit;
	cursor: default;
}

/* Accordion caret is a mobile/tablet-only affordance (see media query). */
.buzze-accordion-icon {
	display: none;
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 1;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

/* "Filters" toggle button that shows/hides the whole panel on mobile. */
.buzze-filter-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 12px 14px;
	margin-bottom: 16px;
	background: #f7f7f7;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: inherit;
	cursor: pointer;
	text-align: left;
}

.buzze-filter-toggle .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

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

.buzze-filter-list li {
	margin-bottom: 10px;
}

.buzze-filter-list label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: var(--buzze-font-size, 14px);
	color: var(--buzze-text, #333);
}

.buzze-filter-list label:hover,
.buzze-cat-link:hover {
	color: var(--buzze-hover, #c0392b);
}

.buzze-cat-link {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--buzze-text, #333);
	font-size: var(--buzze-font-size, 14px);
}

.buzze-cat-link.is-current {
	color: var(--buzze-checkbox, #c0392b);
	font-weight: 600;
}

.buzze-cat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.buzze-cat-row .buzze-cat-link {
	flex: 1;
	min-width: 0;
}

/* Nested sub-category list — collapsed by default, revealed via
   .buzze-cat-item.is-expanded (toggled by the "+" button in script.js). */
.buzze-filter-sublist {
	display: none;
	margin: 8px 0 0 24px;
}

.buzze-cat-item.is-expanded > .buzze-filter-sublist {
	display: block;
}

.buzze-cat-expand {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 1px solid #b5b5b5;
	border-radius: 3px;
	padding: 0;
	cursor: pointer;
	line-height: 1;
}

.buzze-cat-expand-icon {
	position: relative;
	width: 8px;
	height: 8px;
}

.buzze-cat-expand-icon::before,
.buzze-cat-expand-icon::after {
	content: '';
	position: absolute;
	background: var(--buzze-text, #333);
}

/* Horizontal bar of the "+" (always present, becomes "−" when collapsed to "+"... ) */
.buzze-cat-expand-icon::before {
	top: 50%;
	left: 0;
	width: 8px;
	height: 2px;
	transform: translateY(-50%);
}

/* Vertical bar of the "+", hidden when expanded so it reads as "−". */
.buzze-cat-expand-icon::after {
	left: 50%;
	top: 0;
	width: 2px;
	height: 8px;
	transform: translateX(-50%);
	transition: opacity 0.15s ease;
}

.buzze-cat-expand[aria-expanded="true"] .buzze-cat-expand-icon::after {
	opacity: 0;
}

.buzze-fake-checkbox {
	width: 16px;
	height: 16px;
	border: 1px solid #b5b5b5;
	border-radius: 2px;
	display: inline-block;
	flex-shrink: 0;
	position: relative;
}

.buzze-fake-checkbox.checked {
	background: var(--buzze-checkbox, #c0392b);
	border-color: var(--buzze-checkbox, #c0392b);
}

.buzze-fake-checkbox.checked::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.buzze-attr-form input[type="checkbox"] {
	width: 15px;
	height: 15px;
	accent-color: var(--buzze-checkbox, #c0392b);
}

.buzze-result-count {
	font-size: var(--buzze-font-size, 13px);
	color: var(--buzze-text, #767676);
	margin-bottom: 14px;
}

/* Active filters + Clear All chips (e.g. "Gold ×  Clear All") */
.buzze-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	font-size: var(--buzze-font-size, 14px);
}

.buzze-active-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: var(--buzze-text, #333);
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
}

.buzze-active-filter-chip:hover {
	border-color: var(--buzze-hover, #c0392b);
	color: var(--buzze-hover, #c0392b);
}

.buzze-chip-remove {
	font-size: 1.1em;
	line-height: 1;
}

.buzze-clear-all {
	color: var(--buzze-text, #333);
	text-decoration: underline;
	font-size: 0.95em;
}

.buzze-clear-all:hover {
	color: var(--buzze-hover, #c0392b);
}

.buzze-stock-list .buzze-stock-icon {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
	color: #6b6b6b;
}

/* -----------------------------------------------------------------
 * Responsive: tablet & mobile
 * - "Filters" button shows/hides the whole panel.
 * - Each section (Categories / Availability / each attribute)
 *   becomes an accordion the shopper taps open one at a time.
 * --------------------------------------------------------------- */
@media (max-width: 782px) {
	.buzze-filter-toggle {
		display: flex;
	}

	.buzze-filter-panel {
		display: none;
	}

	.buzze-shop-filters.is-open .buzze-filter-panel {
		display: block;
	}

	.buzze-filter-title {
		cursor: pointer;
		padding: 10px 0;
	}

	.buzze-accordion-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.buzze-filter-block.is-expanded .buzze-accordion-icon {
		transform: rotate(180deg);
	}

	.buzze-filter-content {
		display: none;
	}

	.buzze-filter-block.is-expanded .buzze-filter-content {
		display: block;
		padding-top: 4px;
	}

	.buzze-filter-block {
		margin-bottom: 0;
	}

	.buzze-filter-block .buzze-filter-title {
		margin-bottom: 0;
	}

	/* Tighten tap targets a bit for touch screens. */
	.buzze-filter-list li {
		margin-bottom: 12px;
	}

	.buzze-filter-list label,
	.buzze-cat-link {
		font-size: calc(var(--buzze-font-size, 14px) + 1px);
	}
}

/* Below ~480px (phones): give the panel a touch more breathing room
 * and let it use the full available width when placed in a narrow
 * sidebar/column layout. */
@media (max-width: 480px) {
	.buzze-filter-toggle {
		padding: 12px;
		font-size: 15px;
	}

	.buzze-filter-title {
		font-size: 14px;
	}
}
