/* Desktop layout for Gomax product-category archives. */
body.tax-product_cat .mecs-category-layout {
	align-items: flex-start;
}

body.tax-product_cat .mecs-category-sidebar {
	order: 2;
}

body.tax-product_cat .mecs-products-column {
	order: 1;
}

.mecs-sidebar-inner {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	padding: 22px;
}

.mecs-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.mecs-sidebar-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.mecs-filter-close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: #f2f2f2;
	color: #111;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.mecs-sidebar-widgets > * + *,
.mecs-sidebar-widgets .widget + .widget {
	margin-top: 26px;
}

.mecs-sidebar-widgets h2,
.mecs-sidebar-widgets h3,
.mecs-widget-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 13px;
}

.mecs-sidebar-widgets ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mecs-sidebar-widgets ul ul {
	padding-left: 15px;
}

.mecs-sidebar-widgets li {
	margin: 0;
	padding: 6px 0;
}

.mecs-sidebar-widgets a {
	color: #222;
	text-decoration: none;
}

.mecs-sidebar-widgets a:hover,
.mecs-sidebar-widgets .current-cat > a {
	color: var(--themeasy-primary-color, #f6a017);
}

.mecs-sidebar-widgets .count {
	color: #777;
	font-size: 0.9em;
}

.mecs-filter-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	margin: 0 0 18px;
	padding: 12px 16px;
	border: 0;
	border-radius: 5px;
	background: #111;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.mecs-filter-icon {
	font-size: 18px;
	line-height: 1;
}

.mecs-filter-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99997;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.48);
	cursor: pointer;
}

@media (min-width: 992px) {
	body.tax-product_cat .mecs-category-sidebar .mecs-sidebar-inner {
		position: sticky;
		top: 24px;
		max-height: calc(100vh - 48px);
		overflow: auto;
	}
}

@media (max-width: 991.98px) {
	.mecs-filter-toggle {
		display: flex;
	}

	body.tax-product_cat .mecs-category-sidebar {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 99998;
		display: block;
		width: min(88vw, 380px);
		max-width: 380px;
		padding: 0;
		background: #fff;
		transform: translateX(105%);
		transition: transform 220ms ease;
	}

	body.tax-product_cat .mecs-category-sidebar .mecs-sidebar-inner {
		height: 100%;
		padding: 20px;
		border: 0;
		border-radius: 0;
		overflow-y: auto;
	}

	.mecs-filter-close {
		display: inline-flex;
	}

	body.mecs-filter-open {
		overflow: hidden;
	}

	body.mecs-filter-open .mecs-category-sidebar {
		transform: translateX(0);
	}

	body.mecs-filter-open .mecs-filter-overlay {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.tax-product_cat .mecs-category-sidebar {
		transition: none;
	}
}

