/* Price Filter Widget */

.wc-price-filter-widget {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 30px;
}

.wc-price-filter-title {
    margin: 0 0 20px 0;
    font-family: "Montserrat", Sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1D1D1D;
}

.wc-price-filter-container {
    width: 80%;
    margin: 0;
}

.wc-price-filter-container.single-price .wc-price-slider::-webkit-slider-thumb {
    display: none;
}

.wc-price-filter-container.single-price .wc-price-slider::-moz-range-thumb {
    display: none;
}

.wc-price-slider-wrapper {
    position: relative;
    height: 3px;
    margin-bottom: 15px;
}

.wc-price-slider-track {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #8E8E8E;
    border-radius: 2px;
}

.wc-price-slider-range {
    position: absolute;
    height: 3px;
    background: #D1B8B1;
    border-radius: 2px;
    z-index: 1;
}

.wc-price-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: transparent;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    margin: 0;
}

.wc-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1B8B1 !important;
    background-color: #D1B8B1 !important;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #D1B8B1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    position: relative;
    z-index: 3;
}

.wc-price-slider::-webkit-slider-thumb:hover {
    background: #D1B8B1 !important;
    background-color: #D1B8B1 !important;
    border-color: #D1B8B1 !important;
    transform: scale(1.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.wc-price-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1B8B1 !important;
    background-color: #D1B8B1 !important;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #D1B8B1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    position: relative;
    z-index: 3;
}

.wc-price-slider::-moz-range-thumb:hover {
    background: #D1B8B1 !important;
    background-color: #D1B8B1 !important;
    border-color: #D1B8B1 !important;
    transform: scale(1.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.wc-price-slider-min {
    z-index: 2;
}

.wc-price-slider-max {
    z-index: 2;
}

.wc-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.wc-price-min-display,
.wc-price-max-display {
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #8E8E8E;
}

.wc-price-inputs {
    display: none;
}

.wc-price-input-wrapper {
    display: none;
}

/* Sort Widget */

.wc-sort-widget {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 30px;
}

.wc-sort-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wc-sort-label {
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    color: #1D1D1D;
    margin: 0;
    white-space: nowrap;
}

.wc-sort-select {
    flex: 1;
    min-width: 200px;
    padding: 0 30px 0 0;
    border: none;
    border-radius: 0;
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    color: #1D1D1D;
    background: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%231D1D1D' d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.wc-sort-select:hover {
    opacity: 0.7;
}

.wc-sort-select:focus {
    outline: none;
    opacity: 0.7;
}

/* Product Count Widget */

.wc-product-count-widget {
    padding: 0;
    background: transparent;
    margin-bottom: 20px;
}

.wc-product-count-text {
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    color: #1D1D1D;
}

/* Attributes Filter Widget */

.wc-attributes-filter-widget {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 30px;
}

.wc-attributes-filter-title {
    margin: 0 0 20px 0;
    font-family: "Montserrat", Sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1D1D1D;
}

.wc-attributes-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wc-attribute-item {
    position: relative;
    margin-bottom: 12px;
}

.wc-attribute-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding-left: 0;
    line-height: 16px;
    user-select: none;
}

.wc-attribute-text {
    display: inline-flex;
    align-items: center;
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.wc-attribute-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: transparent;
    transition: background 0.2s ease;
}

.wc-attribute-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wc-attribute-name {
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    color: #8E8E8E;
    transition: color 0.2s ease;
}

.wc-attribute-count {
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #8E8E8E;
    margin-left: 6px;
    transition: color 0.2s ease;
}

.wc-attribute-label:hover .wc-attribute-text {
    transform: translateX(12px);
}

.wc-attribute-label:hover::before {
    background: #D1B8B1;
}

.wc-attribute-label:hover .wc-attribute-name,
.wc-attribute-label:hover .wc-attribute-count {
    color: #1D1D1D;
}

.wc-attribute-label:has(.wc-attribute-checkbox:checked) .wc-attribute-text {
    transform: translateX(12px);
}

.wc-attribute-label:has(.wc-attribute-checkbox:checked)::before {
    background: #D1B8B1;
}

.wc-attribute-label:has(.wc-attribute-checkbox:checked) .wc-attribute-name,
.wc-attribute-label:has(.wc-attribute-checkbox:checked) .wc-attribute-count {
    color: #1D1D1D;
}

.wc-attribute-label.is-checked .wc-attribute-text {
    transform: translateX(12px);
}

.wc-attribute-label.is-checked::before {
    background: #D1B8B1;
}

.wc-attribute-label.is-checked .wc-attribute-name,
.wc-attribute-label.is-checked .wc-attribute-count {
    color: #1D1D1D;
}

.wc-attributes-display-list .wc-attribute-label {
    padding-left: 0;
}

/* Loading State */

.wc-filters-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.wc-filters-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 124, 186, 0.1);
    border-radius: 50%;
    border-top-color: #007cba;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.wc-no-products {
    padding: 40px 20px;
    text-align: center;
    font-size: 16px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive Design */

@media (max-width: 768px) {
    .wc-price-filter-widget {
        padding: 0;
        margin-bottom: 25px;
    }
    
    .wc-sort-widget {
        padding: 15px;
    }
    
    .wc-attributes-filter-widget {
        padding: 0;
        margin-bottom: 25px;
    }
    
    .wc-price-filter-title,
    .wc-attributes-filter-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .wc-price-filter-container {
        width: 100%;
    }
    
    .wc-price-min-display,
    .wc-price-max-display {
        font-size: 14px;
    }
    
    .wc-price-slider::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }
    
    .wc-price-slider::-moz-range-thumb {
        width: 10px;
        height: 10px;
    }
    
    .wc-sort-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wc-sort-select {
        width: 100%;
    }
    
    .wc-attribute-item {
        margin-bottom: 10px;
    }
    
    .wc-attribute-name,
    .wc-attribute-count {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .wc-price-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .wc-price-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
}

/* Elementor Editor Compatibility */

.elementor-editor-active .wc-price-filter-widget,
.elementor-editor-active .wc-sort-widget {
    pointer-events: auto;
}

.elementor-loop-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.elementor-loop-item[style*="display: none"] {
    display: none !important;
}

