.products-sidebar {
    position: fixed;
    right: -800px;
    top: 0;
    bottom: 0;
    width: 800px;
    z-index: 999999;
    -webkit-transition: all 900ms ease;
    -ms-transition: all 900ms ease;
    -o-transition: all 900ms ease;
    -moz-transition: all 900ms ease;
    transition: all 900ms ease;
    }
    .products-sidebar .upper-box{
        background-color:  var(--white-color);
    }
.products-sidebar .gradient-layer {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    opacity: 0.6;
    z-index: -1;
    background-color: var(--black-color);
    -webkit-transition: all 500ms ease;
    -ms-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    transition: all 500ms ease;
    cursor: pointer
    }
.products-sidebar.active .gradient-layer {
    width: 500%;
    right: 0
    }
.products-sidebar.active {
    right: 0
    }
.products-sidebar .sidebar-inner {
    top:150px;
    bottom:150px;
    position: relative;
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between
    }
.products-sidebar .content-box {
    position: relative;
    padding: 30px 50px;
    background-color: var(--white-color)
    }
.products-sidebar h3 {
    margin-bottom: 15px;
    color: var(--black-color);
    font-family: var(--font-heading)
    }
.products-sidebar h3 span {
    font-weight: 700
    }
.products-sidebar .text {
    line-height: 28px;
    margin-top: 15px;
    margin-bottom: 30px;
    color: var(--color-five)
    }
.products-sidebar .social-box {
    position: relative;
    margin-left: 50px;
    margin-bottom: 35px
    }
.products-sidebar .social-box a {
    position: relative;
    margin-right: 15px;
    font-size: 18px;
    color: var(--black-color);
    font-family: "Font Awesome 5 Brands"
    }
.products-sidebar .social-box a:hover {
    color: var(--main-color)
    }
.products-sidebar .sidebar-inner::-webkit-scrollbar {
    width: 8px
    }
.products-sidebar .sidebar-inner::-webkit-scrollbar-track {
    background: #ddd
    }
.products-sidebar .sidebar-inner::-webkit-scrollbar-thumb {
    background-color: var(--main-color)
    }
.products-sidebar_list {
    position: relative
    }
.products-sidebar_list li {
    position: relative;
    font-weight: 400;
    font-size: 15px;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--black-color);
    text-transform: capitalize
    }
.products-sidebar_list li:before {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--black-color);
    font-family: "Font Awesome 6 Free"
    }

/* Sidebar for Product Category Page */
.page-sidebar {
    position: relative;
    background: #fff;
    padding: 30px;
    border: 1px solid #e5e5e5 !important;
    border-radius: 20px;
    margin-bottom: 30px;
}

.page-sidebar .sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--black-color);
    text-transform: uppercase;
}

.page-sidebar ul.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-sidebar ul.sidebar-list li {
    margin-bottom: 10px;
}

.page-sidebar ul.sidebar-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #666;
    font-size:18px;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: #f9f9f9;
}

.page-sidebar ul.sidebar-list li a:hover,
.page-sidebar ul.sidebar-list li.active a {
    color: var(--main-color);
    background: #f0f4ff;
    border-left-color: var(--main-color);
    padding-left: 20px;
}

.page-sidebar ul.sidebar-list li a i {
    font-size: 14px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
/* Product Toolbar Styles */
.product-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom:15px;
}

.product-toolbar .result-count {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.product-toolbar .search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-right:15px;
}

.product-toolbar .search-box input {
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 8px 15px 8px 35px; /* Space for icon if we put it inside, or outside */
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    width: 200px;
}

.product-toolbar .search-box input:focus {
    border-color: var(--main-color);
}

.product-toolbar .search-box button {
    position: absolute;
    right: 5px; /* If button is inside input? No, structure is separate. Let's position icon absolute inside input. */
    /* Wait, HTML structure: div > input + button. Let's adjust CSS. */
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    right: 10px;
}

/* Let's fix search box layout: Icon on right inside input? Or simple input + button? */
/* Design: Rounded input with icon button inside on right */
.product-toolbar .search-box input {
    padding-right: 35px; /* Space for button */
    padding-left: 15px;
}

.product-toolbar .sort-box .form-select {
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 8px 30px 8px 15px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    outline: none;
    background-color: #fff;
}

.product-toolbar .sort-box .form-select:focus {
    border-color: var(--main-color);
    box-shadow: none;
}

/* Mobile Sidebar Styles */
/* Mobile Sidebar Styles */
.mobile-filter-toggle {
    display: none; /* Hidden by default on desktop */
}

@media (max-width: 991px) {
    .mobile-filter-toggle {
        background: var(--main-color);
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        margin-bottom: 20px;
        font-weight: 600;
        display: flex; /* Visible on mobile */
        align-items: center;
        gap: 10px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        position: fixed;
        bottom: 30px;
        left: 20px;
        z-index: 999; 
    }

    .mobile-filter-toggle:hover {
        background: var(--black-color);
    }
}

.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Responsive Sidebar */
@media (max-width: 991px) {
    .page-sidebar {
        position: fixed;
        top: 0;
        left: -300px; /* Hidden by default */
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 1001; /* Above backdrop */
        padding: 30px 20px;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    }
    
    .page-sidebar.active {
        left: 0;
    }
    
    /* Adjust grid layout on mobile */
    .product-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-toolbar .toolbar-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .product-toolbar .search-box {
        width: 100%;
        margin-right: 0;
    }
    
    .product-toolbar .search-box input {
        width: 100%;
    }
    
    .product-toolbar .sort-box {
        width: 100%;
    }
    
    .product-toolbar .sort-box select {
        width: 100%;
    }
}
