/* ─── Filter Bar ─── */
.filter-container {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 75%;
    background: #F7F7F7;
    border: 1.5px solid #E8E8E8;
    border-radius: 14px;
    padding: 14px 22px;
    margin: 20px auto;
}

/* ─── Price Block ─── */
.price-range-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.price-labels {
    display: flex;
    align-items: center;
    gap: 20px;
}

.price-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-label > span:first-child {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #AEAEAE;
}

.price-value {
    font-size: 16px;
    font-weight: 800;
    color: #F77F00;
}

/* Separador vertical entre os preços */
.price-separator {
    width: 1px;
    height: 30px;
    background: #E8E8E8;
    flex-shrink: 0;
}

/* ─── Slider ─── */
.range-container {
    position: relative;
    height: 22px;
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
}

.range-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    background: #E8E8E8;
    border-radius: 999px;
    pointer-events: none;
}

.range-fill {
    position: absolute;
    height: 5px;
    background: linear-gradient(90deg, #F7A130, #F77F00);
    border-radius: 999px;
    pointer-events: none;
}

input[type="range"] {
    position: absolute;
    width: 100%;
    height: 22px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #F77F00;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: grab;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(247, 127, 0, .35);
    transition: transform .15s, box-shadow .2s;
}

input[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.18);
    box-shadow: 0 4px 14px rgba(247, 127, 0, .5);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #F77F00;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: grab;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(247, 127, 0, .35);
}

#minRange { z-index: 2; }
#maxRange { z-index: 2; }

/* ─── Divisores verticais ─── */
.filter-divider {
    width: 1px;
    height: 36px;
    background: #E8E8E8;
    flex-shrink: 0;
}

/* ─── Sort Select ─── */
.sort-row {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sort-row select {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #1A1A1A;
    background: #fff;
    border: 1.5px solid #E8E8E8;
    border-radius: 10px;
    padding: 9px 36px 9px 14px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23AEAEAE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color .2s;
    white-space: nowrap;
}

.sort-row select:hover { border-color: #F77F00; }

/* ─── Responsivo Mobile ─── */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        width: 100%;
        padding: 16px;
        gap: 16px;
        border-radius: 12px;
    }

    .price-range-row {
        width: 100%;
        justify-content: space-between;
    }

    .price-labels {
        width: 100%;
        justify-content: space-between;
    }

    .price-separator {
        display: none;
    }

    .price-label > span:first-child {
        font-size: 9px;
    }

    .price-value {
        font-size: 14px;
    }

    .range-container {
        width: 100%;
        min-width: unset;
    }

    .filter-divider {
        width: 100%;
        height: 1px;
    }

    .sort-row {
        width: 100%;
    }

    .sort-row select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filter-container {
        padding: 12px;
        margin: 12px auto;
    }

    .price-value {
        font-size: 13px;
    }

    .price-label > span:first-child {
        font-size: 8px;
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 26px;
        height: 26px;
    }

    input[type="range"]::-moz-range-thumb {
        width: 26px;
        height: 26px;
    }
}