/* ==============================================
   WC Real-Time Price Filter – Slider Styles
   תואם Woodmart + RTL
   משתני Woodmart: --woodmart-primary-color, --woodmart-body-color,
                   --woodmart-input-border-color, --woodmart-body-font-size
   ============================================== */

.wcrtpf-slider-wrap {
    padding: 8px 4px 4px;
    direction: ltr;
}

/* Track */
.wcrtpf-track-wrap {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}

.wcrtpf-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--woodmart-input-border-color, #e0e0e0);
    z-index: 1;
}

.wcrtpf-range {
    position: absolute;
    height: 4px;
    border-radius: 2px;
    background: var(--woodmart-primary-color, #333);
    z-index: 2;
    pointer-events: none;
}

/* Inputs */
.wcrtpf-input {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    border: none;
    outline: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 3;
}

/* Thumb – WebKit */
.wcrtpf-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--woodmart-bg-color, #fff);
    border: 2px solid var(--woodmart-primary-color, #333);
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    cursor: pointer;
    pointer-events: all;
    transition: transform .15s ease, box-shadow .15s ease;
}

.wcrtpf-input::-webkit-slider-thumb:hover,
.wcrtpf-input::-webkit-slider-thumb:active {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Thumb – Firefox */
.wcrtpf-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--woodmart-bg-color, #fff);
    border: 2px solid var(--woodmart-primary-color, #333);
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    cursor: pointer;
    pointer-events: all;
    transition: transform .15s ease, box-shadow .15s ease;
}

.wcrtpf-input::-moz-range-thumb:hover,
.wcrtpf-input::-moz-range-thumb:active {
    transform: scale(1.15);
}

/* Labels */
.wcrtpf-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: var(--woodmart-body-font-size, 13px);
    color: var(--woodmart-body-color, #555);
    direction: ltr;
}

.wcrtpf-label {
    font-weight: 500;
}

/* Loading state */
.wcrtpf-slider-wrap.is-loading .wcrtpf-track {
    opacity: .5;
}

.wcrtpf-slider-wrap.is-loading .wcrtpf-range {
    animation: wcrtpf-pulse 1s infinite;
}

@keyframes wcrtpf-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}
/* תיקון RTL – הופך את ה-input פיזית */
.wcrtpf-input {
    transform: scaleX(-1);
}