/* Open-Tronics shop filters — Seeed-style left sidebar (catalog pages) */

/* Sidebar filter groups */
.widget.ot-filter-group {
	background: #fff;
	border: 1px solid var(--mall-line, #e7e5e4);
	border-radius: 10px;
	padding: 14px 16px 10px;
	margin-bottom: 16px;
}

.widget.ot-filter-group .widget-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--mall-ink, #1c1917);
	margin-bottom: 4px;
	cursor: pointer;
	user-select: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.widget.ot-filter-group .widget-title::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--mall-muted, #57534e);
	border-bottom: 2px solid var(--mall-muted, #57534e);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex: none;
}

.widget.ot-filter-group.is-open .widget-title::after {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.widget.ot-filter-group .ot-filter {
	display: none;
}

.widget.ot-filter-group.is-open .ot-filter {
	display: block;
}

.ot-filter-list {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}

.ot-filter-item {
	margin: 0;
}

.ot-filter-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	color: var(--mall-ink, #1c1917);
}

.ot-filter-row:hover .ot-filter-name {
	color: var(--mall-accent, #ea580c);
}

.ot-filter-row input[type="checkbox"] {
	margin: 0;
	width: 15px;
	height: 15px;
	flex: none;
	accent-color: var(--mall-accent, #ea580c);
	cursor: pointer;
}

.ot-filter-name {
	flex: 1;
}

.ot-filter-count {
	color: #a8a29e;
	font-size: 12px;
	font-weight: 400;
}

.ot-filter-sub {
	list-style: none;
	margin: 0 0 6px;
	padding: 0 0 0 14px;
	border-left: 1px solid var(--mall-line, #e7e5e4);
}

/* Top toolbar above the product grid */
.ot-toolbar {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin: 0 0 18px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--mall-line, #e7e5e4);
	border-radius: 10px;
}

.ot-toolbar-field {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.ot-toolbar-label {
	color: var(--mall-muted, #57534e);
}

.ot-toolbar select {
	padding: 7px 10px;
	border: 1px solid var(--mall-line, #e7e5e4);
	border-radius: 8px;
	background: var(--mall-soft, #fafaf9);
	font-size: 14px;
	color: var(--mall-ink, #1c1917);
	cursor: pointer;
}

.ot-stock-toggle {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	cursor: pointer;
	color: var(--mall-ink, #1c1917);
}

.ot-stock-toggle input[type="checkbox"] {
	margin: 0;
	width: 15px;
	height: 15px;
	accent-color: var(--mall-accent, #ea580c);
	cursor: pointer;
}

/* Mobile: sidebar stacks above the grid, groups start collapsed. */
@media (max-width: 768px) {
	.site-content {
		display: flex;
		flex-direction: column;
	}

	.site-content > .is-left-sidebar {
		order: -1;
		width: 100%;
	}

	.widget.ot-filter-group .widget-title {
		font-size: 16px;
	}
}
