/* Ürün Filtreleme - Frontend Styles */

.uf-product-filters-card {
    margin: 20px 0;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.uf-filter-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
}

.uf-filter-header-icon {
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uf-filter-header-icon img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

.uf-filter-header-content {
    flex: 1;
    text-align: center;
}

.uf-filter-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333 !important;
    line-height: 1.2;
}

.uf-filter-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.uf-product-filters {
    margin: 0;
    padding: 0;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
}

.uf-filters-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.uf-filter-dropdown-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uf-filter-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    box-sizing: border-box;
}

.uf-filter-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Dropdown Stilleri */
.uf-filter-select {
    flex: 1;
    height: 50px;
    padding: 0 40px 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    box-sizing: border-box;
    line-height: 50px;
    color: #666666 !important;
}

.uf-filter-select option {
    color: #333333;
}

.uf-filter-select option[value=""] {
    color: #666666 !important;
}

/* Select */
.uf-product-filters .uf-filter-dropdown-wrapper select {
    height: 50px;
}

.uf-filter-select:hover {
    border-color: #ccc;
}

.uf-filter-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.uf-filter-select option {
    padding: 10px;
}

.uf-filter-button-wrapper {
    flex-shrink: 0;
}

.uf-apply-filters {
    height: 50px;
    padding: 0 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-block;
    min-width: 100px;
    text-align: center;
    box-sizing: border-box;
    line-height: 50px;
}

.uf-apply-filters:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.uf-apply-filters:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .uf-product-filters-card {
        padding: 20px;
    }
    
    .uf-filter-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .uf-filter-header-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .uf-filter-title {
        font-size: 20px;
    }
    
    .uf-filters-row {
        flex-direction: column;
    }
    
    .uf-filter-dropdown-wrapper {
        width: 100%;
        min-width: 100%;
    }
    
    .uf-filter-button-wrapper {
        width: 100%;
    }
    
    .uf-apply-filters {
        width: 100%;
    }
}

/* Loading state */
.uf-loading {
    opacity: 0.6;
    pointer-events: none;
}

.uf-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

