/* DW Shop Sidebar — structural styles only; colors, fonts and buttons inherit the theme. */

.dwss-layout {
	display: flex;
	align-items: flex-start;
	gap: 36px;
}

.dwss-sidebar {
	flex: 0 0 230px;
	max-width: 230px;
	position: sticky;
	top: 24px;
}

.dwss-main {
	flex: 1 1 auto;
	min-width: 0;
}

/* Hidden checkbox that powers the mobile toggle (works without JS). */
.dwss-mtoggle {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dwss-mtoggle-btn {
	display: none;
	cursor: pointer;
}

.dwss-sidebar h3 {
	margin: 0 0 0.6em;
	font-size: 1.05em;
}

.dwss-cats {
	list-style: none;
	margin: 0 0 1.6em;
	padding: 0;
}

.dwss-cats li {
	margin: 0 0 0.45em;
}

.dwss-cats label,
.dwss-sale {
	display: flex;
	align-items: center;
	gap: 0.5em;
	cursor: pointer;
}

.dwss-cats input[type="checkbox"],
.dwss-sale input[type="checkbox"] {
	margin: 0;
}

.dwss-count {
	opacity: 0.55;
	font-size: 0.85em;
}

.dwss-price {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin-bottom: 1.6em;
}

.dwss-price input {
	width: 100%;
	min-width: 0;
}

.dwss-price-sep {
	opacity: 0.5;
}

.dwss-sale {
	margin-bottom: 1.6em;
}

.dwss-apply {
	width: 100%;
}

.dwss-clear {
	display: block;
	text-align: center;
	margin-top: 0.85em;
	font-size: 0.9em;
	opacity: 0.75;
	text-decoration: underline;
}

/* Mobile: collapse the sidebar behind a "Filters" button instead of pushing products down. */
@media (max-width: 768px) {
	.dwss-layout {
		display: block;
	}

	.dwss-mtoggle-btn {
		display: inline-block;
		margin-bottom: 16px;
	}

	.dwss-sidebar {
		display: none;
		position: static;
		flex: none;
		max-width: none;
		margin-bottom: 20px;
		padding: 16px;
		border: 1px solid rgba(0, 0, 0, 0.12);
		border-radius: 8px;
	}

	.dwss-mtoggle:checked ~ .dwss-sidebar {
		display: block;
	}
}

/* Standalone sidebar shown on zero-results pages */
.dwss-standalone .dwss-sidebar {
	display: block;
	position: static;
	max-width: 320px;
	margin-bottom: 24px;
}
