/* Varsayılan olarak kapatma butonunu gizle */
.sidebar-close {
    display: block !important;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #202020;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.sidebar-close svg {
    width: 24px;
    height: 24px;
}

/* Mobil Filter Toggle Butonu */
.mobile-filter-toggle {
    display: none;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #202020;
    color: #fff;
    padding: 12px 16px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    z-index: 999;
    border: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: auto;
}

/* Tablet ve Mobil ortak stiller */
@media screen and (max-width: 992px) {
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: auto;
    }

    .shop-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 85%;
        max-width: 350px;
        height: 100%;
        background: #fff;
        z-index: 1001;
        padding: 20px;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        display: block !important;
    }

    .shop-sidebar.active {
        left: 0;
    }

    /* Sidebar Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Kapatma butonu */
    .sidebar-close {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: #202020;
        cursor: pointer;
        padding: 8px;
    }
}

/* Body scroll engelleme */
body.sidebar-open {
    overflow: hidden;
} 