.product-filter {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #111;
    height: 100%;
}

.product-filter[data-loading="true"] {
    opacity: 0.6;
    pointer-events: none;
}

.product-filter__title {
    font-weight: 600;
    font-size: 1.1rem;
}

.product-filter__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.product-filter__section {
    border-bottom: 1px solid rgba(15, 17, 24, 0.08);
    padding-bottom: 1rem;
}

.product-filter__section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.product-filter__section-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-family: "Onest";
    background: transparent;
    padding: 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.product-filter__chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.product-filter__section-toggle[aria-expanded="false"] .product-filter__chevron {
    transform: rotate(-135deg);
}

.product-filter__section-body {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.product-filter__section-body.is-collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    pointer-events: none;
}

.product-filter__section-body:not(.product-filter__section-body--price)::-webkit-scrollbar {
    width: 6px;
}

.product-filter__section-body:not(.product-filter__section-body--price)::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.product-filter__section-body--price {
    max-height: none;
    overflow: visible;
}

.product-filter__price {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.product-filter__price-values {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.product-filter__price-inputs {
    position: relative;
    height: 20px;
    width: 99%;
}

.product-filter__price-inputs::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background-color: #101010;
    transform: translateY(-50%);
    pointer-events: none;
}

.product-filter__price-inputs input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: none;
}

.product-filter__price-inputs input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #111;
}

.product-filter__price-inputs input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #111;
    border: 0;
}

.product-filter__option {
    display: block;
}

.product-filter__option input {
    display: none;
}

.product-filter__option span {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.85rem;
    border-radius: 14px;
    /* border: 1px solid rgba(15, 17, 24, 0.15); */
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-filter__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-filter__option input:checked + span,
.product-filter__option.is-current span {
    border-color: #fff;
    background-color: #fff;
    color: #000;
}

.product-filter__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.product-filter__apply,
.product-filter__reset {
    flex: 1;
    border: none;
    border-radius: 18px;
    padding: 0.8rem 1rem;
    font-weight: 600;
    cursor: pointer;
}

.product-filter__apply {
    background-color: #962B20;
    color: #fff;
}

.product-filter__apply:hover {
    background-color: #843027;
}

.product-filter__reset {
    background: transparent;
    border: 1px solid rgba(15, 17, 24, 0.2);
    color: #111;
}

.product-filter__empty {
    margin: 0;
    font-size: 0.95rem;
    color: #777;
}
