/* ===================================
   Custom Price Range Slider Styles
   =================================== */

.price-range-container {
    padding: 20px 0 0 0;
}

/* Custom Range Slider */
.custom-range-slider {
    position: relative;
    height: 6px;
    margin: 10px 0 40px 0;
}

.range-slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.range-slider-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #425A8B 0%, #5B7BB4 100%);
    border-radius: 3px;
    transition: left 0.1s ease, width 0.1s ease;
}

.range-slider-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid #425A8B;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.range-slider-thumb:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 2px 8px rgba(66, 90, 139, 0.3);
}

.range-slider-thumb:active {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 2px 12px rgba(66, 90, 139, 0.4);
}

.range-slider-thumb.active {
    border-color: #5B7BB4;
    box-shadow: 0 0 0 4px rgba(66, 90, 139, 0.1);
}

/* Price Input Fields */
.price-inputs-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.price-input-group {
    flex: 1;
}

.price-input-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.price-input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
    -moz-appearance: textfield;
    font-family: "Mark Geo Semibold", sans-serif;
}

.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input:focus {
    outline: none;
    border-color: #425A8B;
    box-shadow: 0 0 0 3px rgba(66, 90, 139, 0.1);
}

.price-currency {
    position: absolute;
    right: 12px;
    font-size: 14px;
    color: #666;
    pointer-events: none;
}

.price-separator {
    font-size: 18px;
    color: #999;
    font-weight: 300;
    padding-top: 20px;
}

/* Price Display */
.price-display {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.price-display-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.price-display-value {
    font-size: 16px;
    color: #425A8B;
}

/* Loading Overlay */
.products-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.products-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #425A8B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* Products Container Wrapper */
.products-container-wrapper {
    position: relative;
    min-height: 400px;
}

/* Subcategories List */
.subcategories-container {
    margin-left: 20px;
    margin-top: 10px;
}

.subcategories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategories-list li {
    margin-bottom: 8px;
}

.subcategory-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding: 5px 0;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.subcategory-filter:hover {
    color: #425A8B;
}

.subcategory-filter.active {
    color: #425A8B;
    font-weight: 600;
}

.subcategory-filter .number {
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .price-separator {
        display: none;
    }

    .custom-range-slider {
        margin: 25px 0 35px 0;
    }
}