/* Ürün Filtresi Component Stilleri */

.filter-sidebar {
    width: 280px;
    min-width: 260px;
    flex: 0 0 auto;
    transition: all 0.3s ease;
}

.filter-card {
    background: white;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 14rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin; /* Firefox için ince scrollbar */
    scrollbar-color: #8a8a8a #f3f3f3; /* thumb ve track rengi (gri) */
    width: 100%;
    margin-top: 10px;
}

    .filter-card::-webkit-scrollbar {
        width: 6px;
        background: #f3f3f3;
    }

    .filter-card::-webkit-scrollbar-thumb {
        background-color: #8a8a8a;
        border-radius: 20px;
        min-height: 30px;
    }

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem 0.6rem 1rem;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #6B6A6A;
}

.filter-icon {
    color: #ff8006;
    font-size: 0.9rem;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-close-btn {
    background: none;
    border: none;
    color: #6B6A6A;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

    .filter-close-btn:hover {
        color: #ff8006;
    }

.filter-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 0.75rem 1rem;
    border-top: 1px solid #F3F4F6;
    margin-top: 1rem;
    z-index: 10;
}

    .filter-footer .filter-btn-reset {
        width: 90%;
        background: transparent;
        color: #737373;
        border: 1px solid #b7b7b7;
        padding: 0.5rem 0.75rem;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        margin-left: 1rem;
        margin-right: 1rem;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

        .filter-footer .filter-btn-reset:hover {
            background: #eff0f1;
            color: #6B7280;
        }

    .filter-footer .filter-btn-reset:active {
        background: #F3F4F6;
        color: #374151;
    }

    .filter-footer .filter-btn-reset i {
        font-size: 0.7rem;
    }

    .filter-footer .filter-btn-reset .fas.fa-times {
        font-size: 0.8rem;
    }

.filter-divider {
    height: 1px;
    background:#F3F4F6;
    margin: 0.6rem 1rem;
}

.filter-group {
    margin-bottom: 0.8rem;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-left: 1rem;
}

    .filter-group:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

.filter-group-header {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

    .filter-group-header:hover {
        background: rgba(255, 128, 6, 0.05);
    }

.filter-group-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 128, 6, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.7rem;
    color: #ff8006;
    font-size: 0.65rem;
}

.filter-group-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6B6A6A;
    flex-grow: 1;
}

.filter-group-indicator {
    width: 12px;
    height: 12px;
    position: relative;
    margin-left: 8px;
}

    .filter-group-indicator:before,
    .filter-group-indicator:after {
        content: "";
        position: absolute;
        background-color: #ff8006;
        transition: all 0.3s ease;
    }

    .filter-group-indicator:before {
        width: 12px;
        height: 2px;
        top: 5px;
        left: 0;
    }

    .filter-group-indicator:after {
        width: 2px;
        height: 12px;
        top: 0;
        left: 5px;
    }

    .filter-group-indicator.open:after {
        transform: scaleY(0);
    }

.filter-group-content {
    padding: 0.5rem;
    background: white;
    border-top: 1px solid rgba(107, 106, 106, 0.05);
}


.filter-checkbox-grid {
    max-height: 160px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin; /* Firefox için ince scrollbar */
    scrollbar-color: #8a8a8a #f3f3f3; /* thumb ve track rengi */
    padding: 0 0.3rem;
}

.filter-checkbox-grid::-webkit-scrollbar {
    width: 4px;
    background: #f3f3f3;
}

.filter-checkbox-grid::-webkit-scrollbar-thumb {
    background-color: #8a8a8a;
    border-radius: 20px;
    min-height: 20px;
}

.rz-checkbox-list {
    width: 100%;
}

    .rz-checkbox-list .rz-checkbox {
        width: 100%;
        margin-bottom: 0.45rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .rz-checkbox-list .rz-checkbox label {
            font-size: 0.8rem;
            color: #6B6A6A;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-right: 8px;
        }

.rz-checkbox .rz-checkbox-box {
    border-color: rgba(107, 106, 106, 0.3) !important;
    transform: scale(0.85);
}

    .rz-checkbox .rz-checkbox-box.rz-state-active {
        background-color: #ff8006 !important;
        border-color: #ff8006 !important;
    }

.filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6B6A6A;
    margin-bottom: 0.6rem;
    padding: 0 0.5rem;
}

/* Sıralama dropdown'u için stil */
.rz-dropdown {
    width: 100%;
    border: 2px solid rgba(83, 83, 83, 0.15) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
    background-color: white !important;
    overflow: hidden !important;
}

    .rz-dropdown:hover {
        border-color: #ff8006 !important;
        box-shadow: 0 0 0 3px rgba(255, 128, 6, 0.1) !important;
    }

    .rz-dropdown .rz-dropdown-trigger {
        background-color: transparent !important;
        color: #6B6A6A !important;
    }

    .rz-dropdown .rz-inputtext {
        color: #333 !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        padding: 0.5rem 0.75rem !important;
        display: flex !important;
        align-items: center !important;
        line-height: 1.2 !important;
    }

.rz-dropdown-panel {
    border-radius: 6px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
}

.rz-dropdown-items {
    padding: 0.5rem 0 !important;
}

.rz-dropdown-item {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
}

    .rz-dropdown-item:hover {
        background-color: rgba(255, 128, 6, 0.1) !important;
        color: #ff8006 !important;
    }

    .rz-dropdown-item.rz-state-highlight {
        background-color: rgba(255, 128, 6, 0.2) !important;
        color: #ff8006 !important;
        font-weight: 500 !important;
    }

@media (max-width: 992px) {
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        bottom: 0;
        width: 280px;
        height: 100vh;
        z-index: 999;
        overflow-y: auto;
        background: white;
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

        .filter-sidebar.active {
            left: 0;
        }

    .filter-card {
        border-radius: 0;
        max-height: 100vh;
        margin-top: 0;
        padding-bottom: 0;
    }

    .filter-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 280px;
        z-index: 1000;
        border-top: 1px solid #E5E7EB;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }

        .filter-sidebar.active .filter-footer {
            left: 0;
        }
}

.filter-btn-apply {
    display: none;
}

/* Mobil Modal Stilleri */
.filter-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
}

/* Animations - MobileListModal ile aynı */
.slide-up {
    animation: slide-up 0.3s ease-out forwards;
}

.slide-down {
    animation: slide-down 0.3s ease-in forwards;
}

.slide-right {
    animation: slide-right 0.3s ease-out forwards;
}

.slide-left {
    animation: slide-left 0.3s ease-in forwards;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slide-down {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}


@keyframes slide-right {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

@keyframes slide-left {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .filter-sidebar {
        display: none;
    }

        .filter-sidebar-active {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            z-index: 1051;
            background: white;
            overflow-y: auto;
        }

    .filter-card {
        padding-bottom: 5rem;
        box-shadow: none;
    }

    .filter-footer {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    /*.mobile-modal-active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        z-index: 1051;
        background: white;
        overflow-y: auto;
    }*/

    .filter-sidebar .filter-card {
        border-radius: 0;
        max-height: 100vh;
        margin-top: 0;
        box-shadow: none;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .filter-sidebar .filter-header {
        padding: 1rem;
        border-bottom: 1px solid #E5E7EB;
        flex-shrink: 0;
    }

    .filter-sidebar .filter-footer {
        position: sticky;
        bottom: 0;
        width: 100%;
        left: 0;
        right: 0;
    }

    .filter-footer .filter-btn-reset {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .filter-btn-apply {
        width: 100%;
        background: #FF8006;
        color: white;
        border: 1px solid #FF8006;
        padding: 0.5rem 0.75rem;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: 600;
        margin-left: 1rem;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .filter-btn-apply:hover {
            background: #e67300;
            border-color: #e67300;
        }

        .filter-btn-apply:active {
            background: #d16803;
            border-color: #d16803;
        }
} 