﻿/* Active Filter Chips */
#applied-filters .badge {
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.2s ease;
}

    #applied-filters .badge:hover {
        background-color: #495057 !important;
        transform: translateY(-1px);
    }

#applied-filters .btn-close {
    padding: 0;
    width: 12px;
    height: 12px;
    background-size: 12px;
}

/* Category Filter Active State */
.category-filter.active {
    color: #000;
    font-weight: 600;
    position: relative;
}

    .category-filter.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 80%;
        background-color: #000;
        border-radius: 2px;
    }

.category-filter {
    padding: 8px 12px;
    display: block;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 20px;
}

    .category-filter:hover {
        background-color: #f8f9fa;
    }

/* Attribute Filter Checkboxes */
.attribute-filter:checked + .form-check-label {
    font-weight: 600;
    color: #000;
}

.form-check {
    padding: 6px 0;
}

.form-check-input:checked {
    background-color: #000;
    border-color: #000;
}

/* Filter Count Badge */
.active-filter-count {
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    min-width: 20px;
    text-align: center;
}

/* Clear All Button */
#clear-all-filters {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

    #clear-all-filters:hover {
        background-color: #dc3545;
        color: white;
        border-color: #dc3545;
    }

/* Mobile Filter Button */
#apply-filters-mobile {
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
}

/* Product Count Info */
#product-count-info {
    color: #666;
    font-size: 0.9rem;
}

/* Loading State */
.wrapper-shop {
    transition: opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    #applied-filters-container {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .meta-filter-shop {
        padding: 10px 0;
    }

    #applied-filters {
        width: 100%;
    }
}

/* Mobile Offcanvas Filters */
.canvas-filter .category-filter.active {
    background-color: #f8f9fa;
}

.canvas-filter .widget-facet {
    margin-bottom: 1.5rem;
}

.canvas-filter .facet-title {
    cursor: pointer;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}
