/* Shop results-page filter sidebar — replaces the default "Browse" category widget when the
   shop was reached via the Finder's "Display Items" (see class-wla-finder-sidebar.php).
   Unlike the dark Finder drawer (deliberately matched to Lipsey's own dark tool), this sits
   inside a normal light page, so it uses the site's actual design tokens
   (Wulfys-Armory-PRD_1.md §5.1) instead. */

.wla-shop-filters {
	font-family: inherit;
	color: #1e2420;
	max-width: 260px;
}

.wla-shop-filters-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.wla-shop-filters-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #1e2420;
}

.wla-shop-filters-clear {
	flex: 0 0 auto;
	display: inline-block;
	padding: 6px 12px;
	background: #c6791f;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 4px;
	text-decoration: none !important;
	transition: background 0.15s ease;
}

.wla-shop-filters-clear:hover {
	background: #d98a2b;
}

.wla-shop-filter-section {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #d4d3c8;
}

/* Collapsed-by-default filter groups (native <details>/<summary> — no JS needed). A section
   with an active selection stays collapsed too, but shows that pick abbreviated in its own
   header (.wla-shop-filter-section-selected) rather than fully hiding it — see
   class-wla-finder-sidebar.php. */
.wla-shop-filter-section-title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 2px 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6c7268;
	cursor: pointer;
	list-style: none; /* hide the default disclosure triangle, we draw our own */
}

.wla-shop-filter-section-title::-webkit-details-marker {
	display: none;
}

.wla-shop-filter-section-label {
	flex: 0 0 auto;
}

.wla-shop-filter-section-selected {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	color: #c6791f;
}

.wla-shop-filter-section-title::after {
	content: '';
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-right: 1.5px solid #6c7268;
	border-bottom: 1.5px solid #6c7268;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.wla-shop-filter-section[open] > .wla-shop-filter-section-title::after {
	transform: rotate(-135deg);
}

.wla-shop-filter-section-body {
	padding-top: 8px;
}

.wla-shop-filter-opt {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px 0;
	color: #1e2420 !important;
	text-decoration: none !important;
	font-size: 13.5px;
	line-height: 1.3;
}

.wla-shop-filter-opt:hover .wla-shop-filter-label {
	color: #33513f;
}

.wla-shop-filter-box {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	border: 1px solid #b9b8ac;
	border-radius: 3px;
	background: #fff;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wla-shop-filter-opt.is-checked .wla-shop-filter-box {
	background: #c6791f;
	border-color: #c6791f;
}

.wla-shop-filter-opt.is-checked .wla-shop-filter-box::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.wla-shop-filter-label {
	transition: color 0.15s ease;
}

.wla-shop-filter-opt.is-checked .wla-shop-filter-label {
	font-weight: 600;
	color: #1e2420;
}

.wla-shop-filter-count {
	margin-left: auto;
	color: #6c7268;
	font-size: 12px;
}
