/* Main Filter Widget */
.wc-ajax-filter-widget {   
    border-radius: 0px;
    margin-bottom: 30px;
    padding: 0px;
}

.wc-ajax-filter-widget .widget-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Filter Lists */
.wc-filter-list {
	list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow: auto;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

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

.wc-filter-list li:last-child {
    margin-bottom: 0;
}

.wc-filter-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
	position: relative;
}

.wc-filter-list label span:before{
	background: rgb(44 44 44);
    border-radius: 2px;
    content: "";
    height: 17px;
    left: 0;
    opacity: 1;
    pointer-events: none;
    position: absolute;
    top: 1px;
    width: 17px;
    z-index: 99;
}

.wc-filter-list label span:after {
    content: '';
    width: 0px;
    height: 10px;
    position: absolute;
    left: 6px;
    top: 2px;
    border: 3px solid #1f92bf;
    z-index: 99;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
	opacity: 0;
}

.wc-filter-list input[type="checkbox"] {
    margin-right: 10px;
}

.wc-filter-list input[type="checkbox"]:checked + span:after {
	width: 6px;
	opacity: 1;
}

.wc-filter-list .count {
    margin-left: 5px;
    color: #999;
    font-size: 12px;
}

.wc-filter-list label.current-category {
    font-weight: 600;
    color: #333;
}

.wc-filter-list label.current-category input[type="checkbox"] {
    border-color: #337ab7;
}

/* Price Filter */
.wc-price-filter {
    padding: 10px 0;
}

.price-slider {
    margin: 20px 0;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
}

.price-inputs input {
    width: 80px;
    padding: 5px 0px;
    border: 0px solid #ddd !important;
    border-radius: 3px;
    text-align: center;
    background: transparent;
	color: #fff !important;
}

input#min_price_wc_ajax_filter_widget-4 {
    text-align: left;
}

input#max_price_wc_ajax_filter_widget-4 {
    text-align: right;
}

/* Loading State for YOUR theme structure */
ul.products.columns-4.loading {
    position: relative;
    min-height: 300px;
}

ul.products.columns-4.loading:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #337ab7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

.woocommerce-products-container.loading ul.products.columns-4 {
    opacity: 0.5;
    pointer-events: none;
}

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

/* jQuery UI Slider */
.ui-slider {
    position: relative;
    text-align: left;
    background: #f0f0f0;
    border-radius: 3px;
    height: 6px;
}

.ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    font-size: .7em;
    display: block;
    border: 0;
    background: #2c2c2c;
    border-radius: 3px;
}

.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    cursor: pointer;
    background: #fff;
    border: 0px solid #337ab7;
    border-radius: 50%;
    top: -7px;
    margin-left: -9px;
}

/* Clear Filters Button */
.wc-clear-filters {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 0px solid #ddd;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    margin-top: 15px;
    font-size: 14px;
    transition: all 0.2s;
	text-align: left;
}

.wc-clear-filters:hover {
    background: transparent;
    color: #333;
}

/* Dropdowns */
.wc-filter-dropdown {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.wc-filter-dropdown:focus {
    outline: none;
    border-color: #337ab7;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-ajax-filter-widget {
        padding: 15px;
    }
    
    .wc-filter-list {
        max-height: 200px;
        overflow-y: auto;
    }
    
    .price-inputs input {
        width: 100%;
    }
}