/**
 * Product Filter Sidebar Styles
 */

.content-with-sidebar .products-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-sidebar {
    flex: 0 0 280px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 0;
    position: sticky;
    top: 100px;
}

.product-main-content {
    flex: 1;
    min-width: 0;
}

.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.filter-section {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 30px;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #131830;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0 !important;
}

.filter-list li {
    margin-bottom: 8px;
    list-style: none;
}

.filter-link {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
    font-size: 14px;
}

.filter-link:hover {
    background: #fff;
    color: #131830;
}

.filter-link.active {
    background: #131830;
    color: #fff;
    font-weight: 500;
}

/* Brand Filter Checkboxes */
.brand-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 0;
    font-size: 14px;
    color: #666;
    transition: color 0.2s ease;
}

.filter-checkbox:hover {
    color: #131830;
}

.filter-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 2px solid #131830;
    border-radius: 0;
    background-color: #fff;
    position: relative;
    margin: 0;
}

.filter-checkbox input[type="checkbox"]:checked {
    background-color: #131830;
}

.filter-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.filter-checkbox span {
    flex: 1;
}

/* Responsive */
@media (max-width: 990px) {
    .content-with-sidebar .products-container {
        flex-direction: column;
        gap: 30px;
        margin: 0;
    }

    .product-sidebar {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        position: static;
        padding: 25px;
        margin: 0;
        box-sizing: border-box;
    }

    .sidebar-filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 25px;
    }

    .filter-section {
        flex: 1;
        min-width: 200px;
        border-bottom: none;
        border-right: 1px solid #e0e0e0;
        padding-right: 25px;
        padding-bottom: 0;
    }

    .filter-section:last-child {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .content-with-sidebar .products-container {
        gap: 20px;
    }

    .product-sidebar {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        margin: 0;
        box-sizing: border-box;
    }

    .sidebar-filters {
        flex-direction: column;
        gap: 20px;
    }

    .filter-section {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .filter-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}
