/* VHD Product Filter Widget Styles */
.vhd-product-filter {
    background: #fff;
    border-radius: 8px;
    /* margin-bottom: 30px; */
}

/* Widget başlığını tıklanamaz yap */
.widget.vhd-product-filter-widget .widget-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: default !important;
    pointer-events: none;
}

.wd-widget-collapse .widget-title:after {
    display: none !important;
}

/* Widget içeriğinin her zaman görünür olması */
.widget.vhd-product-filter-widget .vhd-product-filter {
    display: block !important;
    visibility: visible !important;
}

.vhd-product-filter .filter-group {
    margin-bottom: 15px;
    /* border-bottom: 1px solid #f0f0f0; */
    border-radius: 8px;
    overflow: hidden;
}

.vhd-product-filter .filter-group:last-of-type {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.vhd-product-filter .filter-group h4 {
    margin: 0;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    /* border-bottom: 1px solid #e9ecef; */
    user-select: none;
}

.vhd-product-filter .filter-group h4::after {
    content: "\f129";
    font-family: "woodmart-font";
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.vhd-product-filter .filter-group.collapsed h4::after {
    transform: rotate(-90deg);
}

.vhd-product-filter .filter-group .filter-content {
    /* padding: 20px; */
    background: #fff;
    transition: all 0.3s ease;
    max-height: 1000px;
    overflow: hidden;
    opacity: 1;
}

/* Default olarak tüm filtreler kapalı gelsin (stock-filter hariç) */
.vhd-product-filter .filter-group:not(.stock-filter) .filter-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.vhd-product-filter .filter-group:not(.stock-filter) h4::after {
    transform: rotate(-90deg);
}

/* Kapalı durumda olan filtreler */
.vhd-product-filter .filter-group.collapsed .filter-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.vhd-product-filter .filter-group.collapsed h4::after {
    transform: rotate(-90deg);
}

/* Açık durumda olan filtreler */
.vhd-product-filter .filter-group.expanded .filter-content {
    max-height: 1000px;
    /* padding: 20px; */
    opacity: 1;
}

.vhd-product-filter .filter-group.expanded h4::after {
    transform: rotate(0deg);
}

/* Price Range Filter */
.price-filter .price-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-filter .price-range-inputs input[type="number"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.price-filter .price-range-inputs span {
    color: #666;
    font-weight: 500;
}

/* Stock Filter */
.stock-filter label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.stock-filter input[type="checkbox"] {
    margin: 0;
    accent-color: #000;
}

/* Attribute Filters */
.attribute-filter .filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 1px;
}

.attribute-filter .filter-option {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s ease;
}

.attribute-filter .filter-option:hover {
    color: #000;
}

.attribute-filter .filter-option input[type="checkbox"] {
    margin: 0 10px 0 0;
    transform: scale(1.1);
    accent-color: #000;
}

.attribute-filter .filter-option .checkmark {
    position: relative;
}

.attribute-filter .filter-option .count {
    margin-left: auto;
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

/* Filter Actions - Form'un en altında sabit */
.filter-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 30px;
    padding: 20px 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.filter-actions .vhd-btn,
.filter-actions .btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Primary Button */
.filter-actions .vhd-btn-primary,
.filter-actions .btn-primary {
    background: #000;
    color: #fff;
}

.filter-actions .vhd-btn-primary:hover,
.filter-actions .btn-primary:hover {
    background: #000;
    color: #fff;
}

/* Secondary Button */
.filter-actions .vhd-btn-secondary,
.filter-actions .btn-secondary {
    background: #fff;
    color: #666;
    border: 2px solid #e1e1e1;
}

.filter-actions .vhd-btn-secondary:hover,
.filter-actions .btn-secondary:hover {
    background: #f8f9fa;
    border-color: #ccc;
    color: #333;
    transform: translateY(-1px);
}

/* Loading State & Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vhd-filter-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin-top: 20px;
}

.vhd-filter-loader .loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.vhd-filter-loader span {
    font-size: 14px;
    color: #666;
}

/* Product Results Loading */
.woocommerce-products-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.woocommerce-products-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Filter Results Info */
.vhd-filter-results-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
}

.vhd-filter-results-info .results-count {
    font-weight: 600;
}

/* Active Filters Display */
.vhd-active-filters {
    margin-bottom: 20px;
}

.vhd-active-filters .active-filters-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.vhd-active-filters .active-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vhd-active-filters .filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 25px;
    font-size: 12px;
    text-decoration: none;
}

.vhd-active-filters .filter-tag .remove-filter {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    margin-left: 3px;
}

.vhd-active-filters .filter-tag .remove-filter:hover {
    opacity: 0.8;
}

/* No Products Found Message */
.no-products-found {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.no-products-found p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Animation for filter updates */
.vhd-filter-updating .filter-option {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.vhd-filter-updating .filter-option.loading {
    opacity: 0.3;
}

/* Widget Area Specific Styles */
.widget.vhd-product-filter-widget {
    background: transparent;
    border: none;
    padding: 0;
}

.vhd-btn:focus,
.btn:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vhd-product-filter {
        /* padding: 15px; */
        /* margin-bottom: 20px; */
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-actions .vhd-btn,
    .filter-actions .btn {
        padding: 12px 16px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
    
    .price-filter .price-range-inputs {
        flex-direction: row;
        align-items: stretch;
    }
    
    .price-filter .price-range-inputs span {
        text-align: center;
        margin: 5px 0;
    }
    .elementor-443 .elementor-element.elementor-element-00ca42f  {
        min-height: 45vh !important;
    }
}
.elementor-443 .elementor-element.elementor-element-ee06b08 {
    min-height: 45vh !important;
}
.elementor-443 .elementor-element.elementor-element-ee06b08 .e-con-inner {
    padding: 20px 0px 0px 0px;
}