/* 
* Filter Sidebar Improvements
* This file contains CSS fixes for the category page filter sidebar
*/

/* Filter Sidebar Base Styling */
.filter_sidebar {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Filter Button - visible on all screens but styled differently */
.filter_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #FFB6C1, #FF69B4);
    color: #fff;
    height: 36px;
    padding: 0 15px;
    font-size: 15px;
    border: 1px solid #FFB6C1;
    text-align: center;
    cursor: pointer;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    transition: all 0.3s ease;
}

.filter_btn i {
    margin-right: 5px;
}

/* Only show close button on mobile */
.filter_close {
    display: block;
}

@media (max-width: 767px) {
    .filter_sidebar {
        position: fixed;
        visibility: hidden;
        opacity: 0;
        top: 0;
        left: 0;
        transition: 0.35s all;
        z-index: 9999;
        height: 100vh;
        width: 100%;
        padding: 15px;
        overflow-y: auto;
        background: #fff;
        transform: translateX(-100%);
    }

    .filter_sidebar.active {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    /* Filter Button */
    .filter_btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(45deg, #FFB6C1, #FF69B4);
        color: #fff;
        height: 36px;
        padding: 0 15px;
        font-size: 15px;
        border: 1px solid #FFB6C1;
        text-align: center;
        cursor: pointer;
        border-radius: 20px;
        box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
        transition: all 0.3s ease;
    }
    
    .filter_btn i {
        margin-right: 5px;
    }

    /* Close Button */
    .filter_close {
        background: linear-gradient(45deg, #FF69B4, #FF91A4);
        padding: 10px 15px;
        font-size: 16px;
        color: #fff;
        border-radius: 25px;
        margin-bottom: 15px;
        cursor: pointer;
        display: flex;
        align-items: center;
        box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
        transition: all 0.3s ease;
        font-weight: 600;
        border: none;
        width: fit-content;
    }

    .filter_close i {
        margin-right: 8px;
    }
}

/* Accordion Styling Improvements */
.sidebar_item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f1f1f1;
}

.sidebar_item .accordion-item {
    border: none;
    background-color: transparent;
}

.sidebar_item h2.accordion-header button.accordion-button {
    background: linear-gradient(45deg, #FF69B4, #FF91A4);
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    padding: 12px 20px;
}

.sidebar_item .accordion-header .accordion-button::after {
    content: '\f078';
    font-family: 'FontAwesome';
    background: none;
    font-size: 15px;
    color: #fff;
}

.sidebar_item .accordion-header .accordion-button.collapsed::after {
    content: '\f054';
}

.sidebar_item .accordion-body {
    padding: 15px;
    background-color: #fff;
}

.cust_according_body {
    max-height: 250px;
    overflow-y: auto;
}

.cust_according_body::-webkit-scrollbar {
    width: 5px;
}

.cust_according_body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cust_according_body::-webkit-scrollbar-thumb {
    background: #FFB6C1;
    border-radius: 10px;
}

/* Category List Styling */
.cust_according_body ul {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.cust_according_body ul li {
    margin-bottom: 10px;
}

.cust_according_body ul li:last-child {
    margin-bottom: 0;
}

.cust_according_body ul li a {
    color: #444;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.cust_according_body ul li a:hover {
    color: #FF69B4;
    padding-left: 5px;
}

/* Price Range Slider Styling */
.filter-price-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.min-price, .max-price {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.min-price input, .max-price input {
    border: 1px solid #ddd;
    padding: 5px;
    width: 70px;
    margin-left: 5px;
    border-radius: 5px;
}

.ui-slider {
    height: 5px;
    background: #f1f1f1;
    border: none;
    border-radius: 10px;
    margin: 10px 0 15px;
}

.ui-slider .ui-slider-range {
    background: linear-gradient(45deg, #FFB6C1, #FF69B4);
}

.ui-slider .ui-slider-handle {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #FF69B4;
    top: -7px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 5px rgba(255, 105, 180, 0.3);
}

.ui-slider .ui-slider-handle:focus,
.ui-slider .ui-slider-handle:active {
    outline: none;
    border: 2px solid #FF69B4;
}

/* Subcategory Filter Styling */
.subcategory-filter-list {
    margin-bottom: 10px;
}

.subcategory-filter-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-checkbox {
    margin-right: 8px;
    accent-color: #FF69B4;
    width: 16px;
    height: 16px;
}

.subcategory-filter-name {
    margin-bottom: 0;
    font-size: 14px;
    color: #444;
    font-weight: normal;
}

/* Make the filter UI consistent between mobile and desktop */
.space-y-3 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Apply subtle hover effects to filter items */
.cust_according_body ul li a:hover,
.subcategory-filter-label:hover {
    background-color: rgba(255, 182, 193, 0.1);
    border-radius: 5px;
    transform: translateX(3px);
}

/* Price filter button styles */
.price-submit button {
    transition: all 0.3s ease;
}

.price-submit button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(255, 105, 180, 0.3) !important;
}

/* Accordion animation */
.accordion-collapse {
    transition: all 0.3s ease-in-out;
}

/* Smooth transitions */
.form-attribute,
.sidebar_item,
.accordion-item,
.filter_sidebar,
.cust_according_body ul li a,
.subcategory-filter-label {
    transition: all 0.3s ease;
}
