.ha-filter-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	width: 100%;
	margin-bottom: 28px;
}

.ha-filter-left,
.ha-filter-right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: nowrap;
}

.ha-filter-left {
	width: 80%;
}

.ha-filter-right {
	width: 20%;
}

/* Wrapper around Brand, Price, Availability */
.ha-filter-control {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 1 1 0;
	min-width: 0;
}

/* Selects inside Brand, Price, Availability */
.ha-filter-control select {
	width: 100%;
	min-width: 155px;
	height: 46px;
	padding: 0 46px 0 16px;
	border: 1px solid #e5e1dc;
	background: #fff;
	color: #222;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	border-radius: 0;
	cursor: pointer;
	box-sizing: border-box;
}

/* Sort By select */
.ha-filter-right select {
	width: 70%;
	min-width: 155px;
	height: 46px;
	padding: 0 16px;
	border: 1px solid #e5e1dc;
	background: #fff;
	color: #222;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	border-radius: 0;
	cursor: pointer;
	box-sizing: border-box;
}

.ha-filter-right span {
	width: 30%;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #222;
	white-space: nowrap;
}

/* Red X clear icon */
.ha-filter-clear {
	display: none;
	position: absolute;
	right: 34px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: 0;
	background: transparent;
	color: #d80000;
	font-size: 22px;
	line-height: 18px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	z-index: 3;
}

/* Only show X when that filter has a selected value */
.ha-filter-control.has-value .ha-filter-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ha-filter-clear:hover {
	color: #a80000;
}

.ha-ajax-results {
	position: relative;
	min-height: 200px;
	transition: opacity .2s ease;
}

.ha-ajax-results.is-loading {
	opacity: .45;
	pointer-events: none;
}

.ha-product-results {
	display: grid;
	grid-template-columns: repeat(var(--ha-columns), minmax(0, 1fr));
	gap: 24px;
}

.ha-no-products {
	grid-column: 1 / -1;
	padding: 32px 0;
	text-align: center;
}

/* Pagination */
.ha-product-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.ha-product-pagination button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 13px;
	border: 1px solid #ddd;
	background: #fff;
	color: #222;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	cursor: pointer;
	transition: all .2s ease;
}

.ha-product-pagination button:hover:not(:disabled),
.ha-product-pagination button.active {
	background: #222;
	color: #fff;
	border-color: #222;
}

.ha-product-pagination button:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.ha-pagination-arrow {
	min-width: 112px;
}

@media (max-width: 1024px) {
	.ha-filter-bar {
		gap: 16px;
	}

	.ha-filter-left {
		width: 75%;
	}

	.ha-filter-right {
		width: 25%;
	}

	.ha-product-results {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ha-filter-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.ha-filter-left,
	.ha-filter-right {
		width: 100%;
		flex-wrap: wrap;
	}

	.ha-filter-control {
		width: 100%;
		flex: 1 1 100%;
	}

	.ha-filter-control select {
		width: 100%;
		min-width: 100%;
	}

	.ha-filter-right span {
		width: 100%;
	}

	.ha-filter-right select {
		width: 100%;
		min-width: 100%;
	}

	.ha-product-results {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.ha-product-pagination {
		gap: 6px;
	}

	.ha-product-pagination button {
		min-width: 34px;
		height: 34px;
		padding: 0 10px;
		font-size: 11px;
	}

	.ha-pagination-arrow {
		min-width: auto;
	}
}