/* Shop archive: topbar (grid/list toggle + result count + ordering) and the
   [ssw_category_sidebar] shortcode. Installed by Site Setup Wizard. */

.ssw-shop-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.ssw-shop-topbar-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ssw-view-toggle {
	display: flex;
	gap: 8px;
}

.ssw-view-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	color: #bbb;
}

.ssw-view-btn.active,
.ssw-view-btn:hover {
	color: #000;
	border-color: #000;
}

.ssw-view-icon {
	width: 16px;
	height: 16px;
	display: block;
}

.ssw-result-count p {
	margin: 0;
}

ul.products.list-view {
	display: block !important;
}

ul.products.list-view li.product {
	display: flex !important;
	align-items: center;
	gap: 24px;
	width: 100% !important;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
}

ul.products.list-view li.product a.woocommerce-LoopProduct-link {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 1;
}

ul.products.list-view li.product img {
	width: 160px;
	flex-shrink: 0;
}

.ssw-category-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ssw-parent-category {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-weight: 600;
}

.ssw-child-categories {
	list-style: none;
	margin: 8px 0 0;
	padding-left: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ssw-child-categories a {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.ssw-child-categories li.is-active a {
	font-weight: 600;
}

.ssw-category-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 1px solid #cfcfcf;
	flex-shrink: 0;
}

.ssw-category-group.is-current > .ssw-parent-category .ssw-category-dot,
.ssw-child-categories li.is-active .ssw-category-dot {
	background: currentColor;
	border-color: currentColor;
}

@media (max-width: 767px) {
	.ssw-shop-topbar {
		flex-direction: column;
		align-items: flex-start;
	}
}
