/**
 * Price Filter & Sale Filter CSS
 * 
 * Stiluri pentru filtrul de preț cu slider și filtrul pentru produse la reducere
 */

/* Container pentru filtrul de preț */
.price-filter-content {
    min-width: 280px !important;
    width: 280px !important;
}

.price-filter-container {
    padding: 16px;
}

/* Input-uri pentru preț */
.price-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.price-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-input-group label {
    font-size: 11px;
    font-weight: 600;
    color: #2D3640;
    text-transform: uppercase;
}

.price-input-group input[type="number"] {
    padding: 8px 10px;
    border: 2px solid #EAD4C3;
    border-radius: 4px;
    font-size: 13px;
    color: #2D3640;
    background: white;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.price-input-group input[type="number"]:focus {
    outline: none;
    border-color: #590202;
}

.price-input-group span {
    font-size: 10px;
    color: #888;
    text-align: center;
    margin-top: 2px;
}

/* Container pentru slider */
.price-slider-container {
    position: relative;
    margin: 20px 0 10px 0;
}

/* Track-ul slider-ului */
.price-slider-track {
    height: 6px;
    background: #EAD4C3;
    border-radius: 3px;
    position: relative;
    margin: 15px 0;
}

.price-slider-range {
    height: 100%;
    background: #590202;
    border-radius: 3px;
    position: absolute;
    transition: all 0.1s ease;
}

/* Slider inputs */
.price-slider {
    position: absolute;
    top: -5px;
    width: 100%;
    height: 16px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    background: #590202;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    -webkit-appearance: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    background: #4a0101;
    transform: scale(1.1);
}

.price-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #590202;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.price-slider::-moz-range-thumb:hover {
    background: #4a0101;
    transform: scale(1.1);
}

.price-slider::-moz-range-track {
    background: transparent;
    border: none;
}

/* Second slider positioning */
.price-slider:nth-of-type(2) {
    z-index: 2;
}

/* Sale filter specific styles */
.filter-dropdown[data-filter="sale"] .filter-dropdown-content {
    min-width: 200px !important;
}

/* Responsive pentru price filter */
@media (max-width: 768px) {
    .price-filter-content {
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .price-filter-container {
        padding: 12px;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-input-group input[type="number"] {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .price-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    
    .price-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
}

/* Animații pentru range slider */
@keyframes rangeSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-slider-container {
    animation: rangeSlide 0.3s ease-out;
}

/* Focus states pentru accesibilitate */
.price-slider:focus {
    outline: none;
}

.price-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(89, 2, 2, 0.3);
}

.price-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(89, 2, 2, 0.3);
} 