/* 4N-XStore shared shop filters */
.n4x-filters { --n4x-f-gap: 26px; position: relative; color: var(--le-dark); font-size: 14px; }
.n4x-filters.is-loading { opacity: .55; pointer-events: none; }
.n4x-filters--v .n4x-f__blocks { display: flex; flex-direction: column; gap: var(--n4x-f-gap); }
.n4x-filters--v .n4x-f + .n4x-f { padding-top: var(--n4x-f-gap); border-top: 1px solid var(--le-line); }
.n4x-f__title:not(.n4x-z):not(.n4x-z):not(div):not(div) { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: none; color: var(--le-dark); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.n4x-f__title svg { transition: transform .25s; }
.n4x-filters--v .n4x-f:not(.is-open) .n4x-f__panel { display: none; }
.n4x-filters--v .n4x-f:not(.is-open) .n4x-f__title { margin-bottom: 0; }
.n4x-filters--v .n4x-f.is-open .n4x-f__title svg { transform: rotate(180deg); }
.n4x-f__list { margin: 0; padding: 0; list-style: none; }
.n4x-f__list li { margin: 0; }
.n4x-f__list a, .n4x-f__list label { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--le-text); text-decoration: none; cursor: pointer; transition: color .2s; }
.n4x-f__list a:hover, .n4x-f__list label:hover, .n4x-f__list .is-current > a, .n4x-f__list label.is-checked { color: var(--le-dark); }
.n4x-f__list--links li.is-child { padding-left: 14px; }
.n4x-f__list--links li { display: flex; align-items: center; justify-content: space-between; }
.n4x-f__count { margin-left: auto; padding: 0 8px; border-radius: 20px; background: var(--le-soft); color: var(--le-muted); font-size: 12px; }
.n4x-f__list input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: 0; border: 1.5px solid #c9ccd2; border-radius: 4px; background: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.n4x-f__list input[type="checkbox"]:checked { border-color: var(--le-accent); background: var(--le-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center/12px no-repeat; }
.n4x-f__list input[type="checkbox"]:focus-visible { outline: 2px solid var(--le-accent); outline-offset: 2px; }
.n4x-f__list--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.n4x-f__list--chips input, .n4x-f__list--swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.n4x-f__list--chips label { padding: 6px 14px; border: 1px solid var(--le-line); border-radius: 30px; }
.n4x-f__list--chips label.is-checked { border-color: var(--le-dark); background: var(--le-dark); color: #fff; }
.n4x-f__list--chips .n4x-f__count { background: none; padding: 0; }
.n4x-f__list--swatch { display: flex; flex-wrap: wrap; gap: 10px; }
.n4x-f__list--swatch label { position: relative; padding: 3px; border: 1.5px solid transparent; border-radius: 50%; }
.n4x-f__list--swatch label.is-checked { border-color: var(--le-dark); }
.n4x-f__swatch { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.n4x-f__list--swatch .n4x-f__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.n4x-f__stars { color: #f4b400; letter-spacing: 2px; }
.n4x-f__stars i { color: #d8dbe0; font-style: normal; }
.n4x-f__select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--le-line); border-radius: var(--le-radius); background: #fff; color: var(--le-dark); }

.n4x-f__price { --from: 0%; --to: 100%; }
.n4x-f__range { position: relative; height: 22px; margin: 6px 0 14px; }
.n4x-f__range::before, .n4x-f__range::after { content: ""; position: absolute; top: 9px; height: 4px; border-radius: 4px; }
.n4x-f__range::before { left: 0; right: 0; background: var(--le-line); }
.n4x-f__range::after { left: var(--from); right: calc(100% - var(--to)); background: var(--le-accent); }
.n4x-f__range input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.n4x-f__range input::-webkit-slider-thumb { width: 18px; height: 18px; border: 2px solid var(--le-accent); border-radius: 50%; background: #fff; pointer-events: auto; cursor: grab; -webkit-appearance: none; }
.n4x-f__range input::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--le-accent); border-radius: 50%; background: #fff; pointer-events: auto; cursor: grab; }
.n4x-f__range input::-moz-range-track { background: none; }
.n4x-f__price-fields { display: flex; align-items: center; gap: 8px; }
.n4x-f__price-fields label { display: flex; align-items: center; flex: 1; gap: 4px; padding: 0 10px; border: 1px solid var(--le-line); border-radius: var(--le-radius); }
.n4x-f__price-fields span { color: var(--le-muted); }
.n4x-f__price-fields input { width: 100%; min-width: 0; height: 38px; padding: 0; border: 0; background: none; color: var(--le-dark); font-size: 14px; outline: 0; -moz-appearance: textfield; }

.n4x-f__active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.n4x-f__chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 30px; background: var(--le-soft); color: var(--le-dark); font-size: 13px; text-decoration: none; }
.n4x-f__chip:hover { background: var(--le-dark); color: #fff; }
.n4x-f__clear { color: var(--le-accent); font-size: 13px; font-weight: 600; text-decoration: underline; }
.n4x-f__submit:not(.n4x-z):not(.n4x-z):not(div):not(div) { width: 100%; margin-top: 22px; }

/* Horizontal */
.n4x-filters--h .n4x-f__blocks { display: flex; flex-wrap: wrap; gap: 10px; }
.n4x-filters--h .n4x-f { position: relative; }
.n4x-filters--h .n4x-f__title:not(.n4x-z):not(div):not(div) { gap: 10px; margin: 0; padding: 10px 16px; border: 1px solid var(--le-line); border-radius: var(--le-radius); background: #fff; font-size: 14px; font-weight: 600; }
.n4x-filters--h .n4x-f.is-active .n4x-f__title { border-color: var(--le-dark); }
.n4x-filters--h .n4x-f__panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: none; min-width: 240px; padding: 16px; border: 1px solid var(--le-line); border-radius: var(--le-radius); background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.n4x-filters--h .n4x-f.is-dropdown .n4x-f__panel { display: block; }
.n4x-filters--h .n4x-f.is-dropdown .n4x-f__title svg { transform: rotate(180deg); }
.n4x-filters--h .n4x-f--price .n4x-f__panel { min-width: 300px; }
.n4x-filters--h .n4x-f__submit:not(.n4x-z):not(div):not(div) { width: auto; margin: 12px 0 0; }
.n4x-filters--h .n4x-f--orderby .n4x-f__panel { min-width: 260px; }
@media (max-width: 767px) {
	.n4x-filters--h .n4x-f__panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; min-width: 0; max-height: 70vh; overflow: auto; }
}
