

/* حالت لینک عمودی با عکس */
.wdf-filter-vertical-links .wdf-related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wdf-filter-vertical-links .wdf-related-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.wdf-filter-vertical-links .wdf-related-thumb img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    margin-left: 10px;
} 

.wdf-inputs-container {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}


#wdf-custom-filter.wdf-horizontal .wdf-inputs-container {
    flex-direction: row;
    flex-wrap: wrap;
}

#wdf-custom-filter.wdf-horizontal .wdf-field {
    flex: 1 1 200px;
    min-width: 150px;
}


#wdf-custom-filter.wdf-vertical .wdf-inputs-container {
    flex-direction: column;
}

#wdf-custom-filter.wdf-vertical .wdf-field {
    width: 100%;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    #wdf-custom-filter .wdf-inputs-container {
        flex-direction: column !important;
    }
    #wdf-custom-filter .wdf-field {
        width: 100% !important;
        flex: none !important;
    }
}


#wdf-custom-filter {
    background: #fff;
    padding: 25px; 
    border-radius: 20px; 
    border: 1px solid #e5e5e5;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}


.wdf-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.wdf-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wdf-step-circle {
    width: 30px;
    height: 30px;
    background: #e0e0e0;
    color: #888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s;
}

.wdf-step-label {
    margin-top: 5px;
    font-size: 10px;
    color: #888;
}

.wdf-progress-step.active .wdf-step-circle {
    background: #3498db;
    color: #fff;
}

.wdf-progress-step.active .wdf-step-label {
    color: #3498db;
    font-weight: 600;
}

.wdf-progress-step.completed .wdf-step-circle {
    background: #27ae60;
    color: #fff;
}

.wdf-progress-step.completed .wdf-step-label {
    color: #27ae60;
}

.wdf-progress-line {
    width: 25px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 5px 18px 5px;
}


.wdf-inputs-container {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.wdf-field {
    flex: 1 1 200px;
    min-width: 150px;
    box-sizing: border-box;
}

.wdf-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}


.wdf-filter-wrap.wdf-horizontal .wdf-inputs-container {
    flex-direction: row;
}

.wdf-filter-wrap.wdf-vertical .wdf-inputs-container {
    flex-direction: column;
}

.wdf-filter-wrap.wdf-vertical .wdf-field {
    width: 100%;
    flex: none;
}


.wdf-btn-field {
    flex: 0 0 auto;
    min-width: auto;
}

.wdf-filter-wrap.wdf-vertical .wdf-btn-field {
    width: 100%;
}


#wdf-custom-filter .wdf-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px !important; 
    padding: 0 25px !important;
    background: #cd4354 !important; 
    color: #fff !important; 
    border: 1px solid #cd4354 !important; 
    border-radius: 25px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px !important;
    transition: all 0.25s ease;
    white-space: nowrap;
}

#wdf-custom-filter .wdf-reset-button:hover {
    background: #b53849 !important;
    border-color: #b53849 !important;
}

.wdf-filter-wrap.wdf-vertical .wdf-reset-button {
    width: 100%;
}


#wdf-custom-filter .select2-container .select2-selection--single {
    height: 45px; 
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 25px; 
    background-color: #fff;
    display: flex;
    align-items: center;
}

#wdf-custom-filter .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 45px;
    color: #333;
    padding-left: 10px;
    padding-right: 15px; 
    font-size: 14px;
}

#wdf-custom-filter .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
    width: 30px;
    left: 5px; 
    right: auto;
}


.wdf-option-img {
    width: 45px;
    height: 30px;
    object-fit: contain;
    margin-left: 8px;
    border-radius: 3px;
    vertical-align: middle;
}


.wdf-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.wdf-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #eee;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: wdf-spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes wdf-spin {
    to { transform: rotate(360deg); }
}

.wdf-no-result {
    text-align: center;
    padding: 30px;
    background: #fff8e1;
    border-radius: 10px;
    color: #f57c00;
}


@media (max-width: 768px) {
    .wdf-inputs-container { 
        flex-direction: column !important; 
        gap: 15px; 
    }
    .wdf-field, .wdf-btn-field { 
        width: 100% !important;
        flex: none !important;
        min-width: 100% !important;
    }
    .wdf-reset-button { 
        width: 100% !important; 
    }
    
    .wdf-progress-line {
        width: 15px;
    }
    
    .wdf-step-circle {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
    
    .wdf-step-label {
        font-size: 8px;
    }
}


.wdf-products-wrap { 
    margin-top: 25px; 
}

.wdf-related-list { 
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.wdf-related-item { 
    padding: 12px 0; 
    border-bottom: 1px solid #f1f1f1; 
}

.wdf-related-item:last-child {
    border-bottom: none;
}

.wdf-related-item a { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    color: #333; 
}

.wdf-related-item a:hover {
    color: #3498db;
}

.wdf-related-thumb {
    margin-left: 12px;
    flex-shrink: 0;
}

.wdf-related-thumb img { 
    width: 50px; 
    height: 50px; 
    object-fit: cover; 
    border-radius: 4px; 
    border: 1px solid #eee; 
}

.wdf-related-info {
    flex: 1;
}

.wdf-related-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.wdf-related-price {
    font-size: 13px;
    color: #27ae60;
    font-weight: 600;
}