.lh-mag-bar {
	margin-bottom: 24px;
	font-family: "Roboto", sans-serif;
}

.lh-mag-bar *{
	font-family: "Roboto", sans-serif;
}

/* === Поле з підписом === */
.lh-field {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	gap: 6px;
	min-width: 0;
}
.lh-label {
	font-size: 15px;
	font-weight: 600;
	color: #000;
}

/* === 1 ряд: пошук + фільтри === */
.lh-mag-bar .lh-row-top {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 12px;
	margin-bottom: 16px;
}

/* === 2 ряд: скинути + сортування === */
.lh-mag-bar .lh-row-bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

/* === Поля вводу та селекти === */
.lh-mag-bar select,
.lh-mag-bar input[type="search"] {
	padding: 10px 16px;
	border-radius: 2px;
	font-size: 14px;
	line-height: 16px;
	border: 1px solid #bfbfbf;
	border-radius: 0;
	background: #fff;
	color: #000;
	height: 45px;
	outline: none;
	box-shadow: none;
	transition: border-color 0.2s ease;
}
.lh-mag-bar select:focus,
.lh-mag-bar input[type="search"]:focus {
	border-color: #000;
}

/* === Стрілка в селектах === */
.lh-mag-bar select {
	border-radius: 2px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 32px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 14px;
}

/* === Кнопка "Скинути всі фільтри" === */
.lh-mag-bar .lh-reset {
	background: none;
	border: none;
	color: #000;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	height: auto;
	line-height: 1;
	transition: color 0.2s ease;
}
.lh-mag-bar .lh-reset:hover {
	text-decoration: underline;
}
.lh-mag-bar .lh-reset span {
	color: #b30000;
	font-size: 11px;
	font-weight: 800;
	transform: translateY(0px);
}

/* === Сортування === */
.lh-sort-wrap {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	font-size: 15px;
	font-weight: 500;
	color: #333;
	gap: 6px;
}
.lh-sort-wrap .lh-label{
	font-weight: 400;
}
.lh-sort-select {
	position: relative;
	display: inline-block;
}
.lh-sort-select select {
	border: none;
	background: none;
	padding: 0 18px 0 0;
	font-size: 15px;
	font-weight: 500;
	color: #000;
	cursor: pointer;
	appearance: none;
	line-height: 1.2;
	height: auto;
}
.lh-sort-select::after {
	content: "";
	position: absolute;
	right: 2px;
	top: 55%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	pointer-events: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><polyline points='6 9 12 15 18 9'/></svg>");
	background-size: 14px;
	background-repeat: no-repeat;
	background-position: center;
}
.lh-sort-select select:focus {
	outline: none;
}

/* === No results block === */
#lh-nores .woocommerce-info,
#lh-nores .woocommerce-notices-wrapper {
	width: 100%;
	text-align: center;
	margin: 80px 0;
}

/* === Адаптив === */
@media (max-width: 1024px) {
	.lh-mag-bar .lh-row-top {
		flex-wrap: wrap;
	}
	.lh-mag-bar .lh-row-top > * {
		flex: 1 1 45%;
	}
}
@media (max-width: 640px) {
	.lh-mag-bar .lh-row-top {
		flex-wrap: wrap;
	}
	.lh-mag-bar .lh-row-top > * {
		flex: 1 1 100%;
	}
	.lh-mag-bar .lh-row-bottom {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.lh-sort-wrap {
		align-items: flex-start;
	}
	.lh-mag-bar .lh-reset {
		justify-content: center;
	}
}

/* === Loading state === */
#lh-archive.is-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* === Поява кнопки "Скинути" === */
#lh-reset {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
#lh-reset.is-visible {
	opacity: 1;
	pointer-events: auto;
}
