/* =========================================================
   HLxHub — Global Filter Component
   File:
   assets/css/components/filter/filter.css
   ========================================================= */


/* =========================================================
   ROOT
   ========================================================= */

.hlx-filter {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	background: #fff;
	font-family: inherit;
	color: #111;
}


/* =========================================================
   TRIGGER
   ========================================================= */

.hlx-filter__trigger {
	width: auto;
	min-width: 112px;
	height: 42px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 8px;
	padding: 0 15px;

	background: #fff;
	color: #111;

	border: none;
	outline: none;
	border-radius: 10px;

	font: inherit;
	font-size: 13px;
	font-weight: 700;

	cursor: pointer;

	transition:
		background-color .2s ease,
		color .2s ease,
		transform .2s ease;
}

.hlx-filter__trigger:hover {
	background: #f5f7fa;
}

.hlx-filter__trigger:focus {
	outline: none;
}

.hlx-filter__trigger:active {
	transform: scale(.98);
}


/* =========================================================
   TRIGGER ICON
   ========================================================= */

.hlx-filter__trigger-icon {
	width: 26px;
	height: 26px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 26px;

	background: #111;
	color: #fff;

	border-radius: 7px;

	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}

.hlx-filter__trigger-text {
	line-height: 1;
	white-space: nowrap;
}


/* =========================================================
   FILTER PANEL
   ========================================================= */

.hlx-filter__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;

	width: min(1180px, calc(100vw - 30px));

	background: #fff;

	border: 1px solid #edf0f3;
	border-radius: 16px;

	box-shadow: 0 18px 45px rgba(0, 0, 0, .10);

	z-index: 9999;
}

.hlx-filter__panel[hidden] {
	display: none;
}

.hlx-filter__panel-inner {
	width: 100%;
	padding: 18px;
}


/* =========================================================
   PANEL HEADER
   ========================================================= */

.hlx-filter__header {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 20px;

	padding-bottom: 14px;
	border-bottom: 1px solid #eef0f3;
}

.hlx-filter__eyebrow {
	display: block;

	margin-bottom: 3px;

	color: #1769ff;

	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.hlx-filter__header h2 {
	margin: 0;

	color: #111;

	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}

.hlx-filter__header p {
	margin: 4px 0 0;

	color: #747b85;

	font-size: 12px;
	line-height: 1.5;
}

.hlx-filter__close {
	width: 32px;
	height: 32px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 32px;

	background: #f5f6f8;
	color: #111;

	border: none;
	border-radius: 9px;

	font-size: 20px;
	line-height: 1;

	cursor: pointer;

	transition: all .2s ease;
}

.hlx-filter__close:hover {
	background: #111;
	color: #fff;
}


/* =========================================================
   ACTIVE FILTERS
   ========================================================= */

.hlx-filter__active {
	display: flex;
	align-items: center;
	gap: 12px;

	min-height: 40px;

	padding: 10px 0;

	border-bottom: 1px solid #f0f1f3;
}

.hlx-filter__active-label {
	flex: 0 0 auto;

	color: #555d67;

	font-size: 11px;
	font-weight: 800;
}

.hlx-filter__active-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.hlx-filter__active-empty {
	color: #9aa0a8;
	font-size: 11px;
}


/* =========================================================
   FILTER GRID
   ========================================================= */

.hlx-filter__grid {
	display: grid;

	grid-template-columns: repeat(4, minmax(0, 1fr));

	gap: 9px;

	padding: 14px 0;
}


/* =========================================================
   FILTER GROUP
   ========================================================= */

.hlx-filter-group {
	overflow: hidden;

	background: #fff;

	border: 1px solid #e9ecf0;
	border-radius: 11px;

	transition:
		border-color .2s ease,
		box-shadow .2s ease;
}

.hlx-filter-group:focus-within,
.hlx-filter-group:hover {
	border-color: #d8dee7;
}


/* =========================================================
   GROUP HEADER
   ========================================================= */

.hlx-filter-group__header {
	width: 100%;
	height: 42px;

	display: flex;
	align-items: center;

	gap: 8px;

	padding: 0 11px;

	background: #fff;
	color: #111;

	border: none;
	outline: none;

	font: inherit;
	text-align: left;

	cursor: pointer;
}

.hlx-filter-group__header:focus {
	outline: none;
}

.hlx-filter-group__icon {
	width: 23px;
	height: 23px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 23px;

	background: #f1f4f8;
	color: #1769ff;

	border-radius: 6px;

	font-size: 10px;
	font-weight: 800;
}

.hlx-filter-group__name {
	flex: 1;

	overflow: hidden;

	color: #20242a;

	font-size: 11px;
	font-weight: 750;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.hlx-filter-group__arrow {
	color: #8a919b;

	font-size: 14px;
	line-height: 1;

	transition: transform .2s ease;
}


/* =========================================================
   GROUP BODY
   ========================================================= */

.hlx-filter-group__body {
	padding: 0 10px 11px;

	background: #fff;
}

.hlx-filter-group__body[hidden] {
	display: none;
}


/* =========================================================
   OPTIONS
   ========================================================= */

.hlx-filter-options {
	display: grid;

	grid-template-columns: repeat(2, minmax(0, 1fr));

	gap: 5px;
}

.hlx-filter-option {
	min-height: 31px;

	display: flex;
	align-items: center;

	gap: 7px;

	padding: 5px 7px;

	background: #f8f9fb;

	border-radius: 7px;

	color: #4b525c;

	font-size: 10px;
	font-weight: 600;

	cursor: pointer;

	transition:
		background-color .2s ease,
		color .2s ease;
}

.hlx-filter-option:hover {
	background: #eef4ff;
	color: #1769ff;
}

.hlx-filter-option input {
	width: 14px;
	height: 14px;

	margin: 0;

	accent-color: #1769ff;

	cursor: pointer;
}


/* =========================================================
   PRICE
   ========================================================= */

.hlx-filter-price__inputs {
	display: grid;

	grid-template-columns: 1fr 18px 1fr;

	align-items: end;

	gap: 5px;
}

.hlx-filter-price__inputs label {
	display: block;
}

.hlx-filter-price__inputs label > span {
	display: block;

	margin-bottom: 4px;

	color: #777f89;

	font-size: 9px;
	font-weight: 700;
}

.hlx-filter-price__inputs input {
	width: 100%;
	height: 32px;

	padding: 0 8px;

	background: #f8f9fb;

	border: 1px solid #e5e8ec;
	border-radius: 7px;

	color: #111;

	font: inherit;
	font-size: 10px;

	outline: none;
}

.hlx-filter-price__inputs input:focus {
	border-color: #1769ff;
	background: #fff;
}

.hlx-filter-price__dash {
	padding-bottom: 8px;

	color: #9aa0a8;

	font-size: 12px;
	text-align: center;
}

.hlx-filter-price__quick {
	display: flex;
	flex-wrap: wrap;

	gap: 5px;

	margin-top: 8px;
}

.hlx-filter-price__quick button {
	padding: 6px 8px;

	background: #f5f7fa;
	color: #4c535d;

	border: none;
	border-radius: 7px;

	font: inherit;
	font-size: 9px;
	font-weight: 700;

	cursor: pointer;

	transition: all .2s ease;
}

.hlx-filter-price__quick button:hover {
	background: #1769ff;
	color: #fff;
}


/* =========================================================
   FOOTER
   ========================================================= */

.hlx-filter__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 10px;

	padding-top: 13px;

	border-top: 1px solid #eef0f3;
}

.hlx-filter__clear,
.hlx-filter__apply {
	height: 36px;

	padding: 0 15px;

	border: none;
	border-radius: 8px;

	font: inherit;
	font-size: 11px;
	font-weight: 750;

	cursor: pointer;

	transition: all .2s ease;
}

.hlx-filter__clear {
	background: #f3f4f6;
	color: #555c65;
}

.hlx-filter__clear:hover {
	background: #e9ebef;
	color: #111;
}

.hlx-filter__apply {
	background: #1769ff;
	color: #fff;

	box-shadow: 0 5px 14px rgba(23, 105, 255, .18);
}

.hlx-filter__apply:hover {
	background: #0f5ce8;
	transform: translateY(-1px);
}


/* =========================================================
   DESKTOP / HEADER VARIANT
   ========================================================= */

.hlx-header-search-filter .hlx-filter {
	width: auto;
}

.hlx-header-search-filter .hlx-filter__trigger {
	margin: 0;
}

.hlx-header-search-filter .hlx-filter__panel {
	left: 50%;
	transform: translateX(-50%);

	width: min(1180px, calc(100vw - 30px));
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

	.hlx-filter__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

	.hlx-filter__panel {
		position: fixed;

		top: 70px;
		left: 10px;
		right: 10px;

		width: auto;
		max-height: calc(100vh - 85px);

		overflow-y: auto;

		border-radius: 14px;

		transform: none;
	}

	.hlx-header-search-filter .hlx-filter__panel {
		left: 10px;
		transform: none;
	}

	.hlx-filter__panel-inner {
		padding: 14px;
	}

	.hlx-filter__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hlx-filter__header p {
		display: none;
	}

	.hlx-filter__header h2 {
		font-size: 16px;
	}

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

	.hlx-filter__grid {
		grid-template-columns: 1fr;
	}

	.hlx-filter__trigger {
		min-width: 105px;
		height: 40px;
		padding: 0 12px;
	}

	.hlx-filter__trigger-icon {
		width: 24px;
		height: 24px;
		flex-basis: 24px;
	}

	.hlx-filter__footer {
		position: sticky;
		bottom: 0;

		padding: 10px 0 0;

		background: #fff;
	}

}

/* =====================================================
   HLxHub — Filter Trigger
   Icon Top + Text Bottom
===================================================== */

.hlx-filter__trigger {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;

	width: 72px;
	min-width: 72px;
	height: 68px;

	padding: 8px 10px;

	background: #ffffff;
	border: 0;
	border-radius: 12px;

	color: #111111;

	cursor: pointer;

	box-shadow: none;

	transition:
		background-color 0.2s ease,
		transform 0.2s ease,
		color 0.2s ease;
}


/* Icon */

.hlx-filter__trigger-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 30px;
	height: 30px;

	font-size: 20px;
	line-height: 1;

	color: #111111;

	background: #ffffff;
}


/* Filter Text */

.hlx-filter__trigger-text {
	display: block;

	font-size: 10px;
	font-weight: 800;
	line-height: 1;

	letter-spacing: 0.12em;
	text-transform: uppercase;

	color: #111111;
}


/* Hover */

.hlx-filter__trigger:hover {
	background: #f7f9fc;
	color: #1769ff;

	transform: translateY(-1px);
}

.hlx-filter__trigger:hover
.hlx-filter__trigger-icon,
.hlx-filter__trigger:hover
.hlx-filter__trigger-text {
	color: #1769ff;
}


/* Active / Open */

.hlx-filter.is-open
.hlx-filter__trigger {
	background: #f7f9fc;
	color: #1769ff;
}


/* Mobile */

@media (max-width: 600px) {

	.hlx-filter__trigger {
		width: 64px;
		min-width: 64px;
		height: 62px;

		padding: 7px 8px;

		border-radius: 10px;
	}

	.hlx-filter__trigger-icon {
		width: 27px;
		height: 27px;

		font-size: 18px;
	}

	.hlx-filter__trigger-text {
		font-size: 9px;
	}
}

