/* ============================================================
   fox.prod.sidebarfull.css — Product Filters Sidebar
   ============================================================ */

aside.especialidades {
    background: white;
    border-radius: 8px;
    padding: 0!important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: auto;
    margin-right: 2%;
    border-top: 0;
}

aside.especialidades {
    background: none;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0)!important;
}

.product-filters-sidebar {
    width: 280px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    border: 1px solid #e9ecef;
}

.filters-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #e9ecef;
}

.filter-section {
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
}

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

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-title:hover {
    color: #007bff;
}

.filter-toggle {
    color: #6c757d;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.filter-section.collapsed .filter-toggle {
    transform: rotate(-90deg);
}

.filter-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-section.collapsed .filter-content {
    max-height: 0 !important;
}

/* Category Filters */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 8px;
}

.category-link {
    color: var(--txt-cor-texto);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.category-link:hover,
.category-link.active {
    color: #FFF;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    background: var(--botao-primary);
    border-radius: 25px;
    padding: 0.5rem 0.9rem 0.5rem 1.3rem;
}

.category-count {
    margin-left: auto;
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}


.group-link {
    color: #6c757d;
    text-decoration: none;
    text-transform: capitalize;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 2px 0;
    transition: all 0.3s ease;
}

.group-link:hover,
.group-link.active {
    color: var(--botao-primary);
    font-weight: 500;
}

.group-count {
    margin-left: auto;
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}


.subcategory-list {
    margin-left: 15px;
    margin-top: 5px;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease;
}

.category-item.collapsed .subcategory-list {
    max-height: 0;
}

.category-toggle {
    font-size: 0.72rem;
    margin-left: 6px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.category-item.collapsed .category-toggle {
    transform: rotate(-90deg);
}

.subcategory-item {
    margin-bottom: 5px;
}

.subcategory-link {
    color: var(--txt-cor-texto);
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: capitalize;
    display: block;
    padding: 2px 0;
    transition: color 0.3s ease;
}

.subcategory-link.active{
    color: var(--foxb2c-primary);
    font-weight: 500;
}

.subcategory-link:hover {
    color: var(--foxb2c-secondary);
}

/* Subcategory Toggle (chevron nível 2) */
.subcategory-toggle {
    font-size: 0.65rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.subcategory-item.collapsed .subcategory-toggle {
    transform: rotate(-90deg);
}

/* Subsubcategory (nível 3: grupoId) */
.subsubcategory-list {
    margin-left: 15px;
    margin-top: 4px;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease;
    list-style: none;
    padding: 0;
}

.subcategory-item.collapsed .subsubcategory-list {
    max-height: 0;
}

.subsubcategory-item {
    margin-bottom: 4px;
}

.subsubcategory-link {
    color: var(--txt-cor-texto);
    font-size: 0.80rem;
    text-decoration: none;
    text-transform: capitalize;
    display: block;
    padding: 2px 0;
    transition: color 0.3s ease;
}

.subsubcategory-link.active {
    color: #28a745;
    font-weight: 500;
}

.subsubcategory-link:hover {
    color: var(--foxb2c-primary);
}

/* Checkbox Filters */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item{
    text-decoration: none;
    text-transform: capitalize;
}

.checkbox-item:hover .checkbox-label,
.checkbox-item:hover{
    color: var(--foxb2c-secondary);
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #007bff;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    flex: 1;
    transition: color 0.3s ease;
    
}

.checkbox-label:hover {
    color: #2c3e50;
}

.checkbox-count {
    font-size: 0.75rem;
    color: var(--txt-cor-texto);
    background: var(--txt-cor-controles);
    width: 25px;
    text-align: center;
    border-radius: 5px;
}

.checkbox-item:hover .checkbox-count{
    background: var(--foxb2c-secondary);
    color: var(--foxb2c-neutro);
}

/* Price Range Slider */
.price-range {
    margin-bottom: 15px;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.price-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.price-slider {
    position: relative;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    margin: 15px 0;
}

.price-slider-track {
    position: absolute;
    height: 100%;
    background-color: #007bff;
    border-radius: 3px;
}

.price-slider-thumb {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: #007bff;
    border-radius: 50%;
    top: -6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.price-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.price-slider-thumb.dragging {
    transform: scale(1.2);
}

/* Color Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: #6c757d;
}

.color-swatch.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.color-swatch.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Product Tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list a{
    text-decoration: none;
}

.product-tag {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-tag:hover {
    background-color: #e9ecef;
    color: #2c3e50;
}

.product-tag.active {
    background-color: var(--botao-primary);
    color: var(--botao-texto);
    border-color: var(--botao-primary);
    text-transform: capitalize;
}

.filter-select-group{
    display: flex;
}

.filter-select-group div{
    width: 50%;
}

.filter-select-group div select{
    width: 95%;
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Action Buttons */
.filter-actions {
    padding: 20px;
    background-color: #f8f9fa;
    display: flex;
    gap: 10px;
}

.btn-apply-filters {
    flex: 1;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-apply-filters:hover {
    background-color: #0056b3;
}

.btn-clear-filters {
    padding: 10px 15px;
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-clear-filters:hover {
    background-color: #e9ecef;
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 991px) {
    .product-filters-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .product-filters-sidebar {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .filter-section {
        padding: 15px;
    }

    .filters-header {
        padding: 12px 15px;
    }
}
