.filtri-header {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filtri-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.filtri-header .filtri-top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.filtri-header .filtri-top-actions .filtro-count {
    font-size: 18px;
    color: #575252;
    margin: 0;
}

.filtri-reset {
    background: none !important;
    border: none !important;
    color: #575252 !important;
    text-transform: none !important;
    cursor: pointer;
    font-size: 20px !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
}

.filtri-reset svg {
    margin-right: 8px;
}

.filtro-gruppo {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #F5F7FA;
}

.filtro-gruppo .pretty-checkbox input[type=checkbox] {
    display: none;
}

.filtro-gruppo .pretty-checkbox>span {
    display: inline-block;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    background: #fff;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

.filtro-gruppo .pretty-checkbox input[type=checkbox]:checked+span {
    border-color: var(--e-global-color-accent);
    background: var(--e-global-color-accent);
}

.filtro-title {
    margin-bottom: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    font-size: 16px;
}

.filtro-title .fas {
    color: var(--e-global-color-accent);
}

.filtro-options {
    max-height: 300px;
    overflow-y: auto;
}

.filtro-option {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
}

/* .filtro-option input[type="checkbox"] {
    margin-right: 8px;
} */
.filtro-option label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.filtro-option label .filtro-count {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.2);
    margin-left: auto;
}

.filtro-option.disabled {
    opacity: 0.5;
}

.filtro-option.disabled input {
    cursor: not-allowed;
}

.filtri-loading {
    position: relative;
}

.filtri-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.filtro-count {
    color: #666;
    font-size: 13px;
    margin-left: 5px;
}

.filtro-prezzo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.filtro-prezzo-input {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.filtro-prezzo-input label {
    font-size: 14px;
    margin: 0;
}

.filtro-prezzo-input input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.filtro-prezzo-separator {
    color: #999;
}

#archivio_prodotti_2026.loading {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

#archivio_prodotti_2026.loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: bold;
}

/* Mobile filter toggle - nascosto di default */
.mobile-filter-toggle {
    display: none;
}

.mobile-filter-btn,
.mobile-filter-close,
.mobile-filter-apply {
    display: none;
}

/* Stili mobile */
@media (max-width: 767px) {

    /* Pulsante filtri mobile */
    .mobile-filter-btn {
        display: flex;
        align-items: center;
        background: #fff;
        color: #303030;
        padding: 8px 16px;
        border-radius: 25px;
        border: 2px solid #303030;
        display: block;
        font-weight: bold;
        cursor: pointer;
        font-family: Inter, sans-serif;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-filter-btn>svg {
        margin-right: 16px;
    }

    /* Pannello filtri mobile */
    .filtri-prodotti {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: white;
        z-index: 99999;
        overflow-y: auto;
        padding: 16px;
        transform: translateX(-110%);
    }

    /* Quando il checkbox è checked, mostra i filtri */
    .mobile-filter-toggle:checked~.filtri-prodotti {
        transform: translateX(0);
    }

    /* Nasconde il pulsante quando i filtri sono aperti */
    .mobile-filter-toggle:checked~.mobile-filter-btn {
        display: none;
    }

    /* Pulsante chiudi — ora dentro .filtri-header, allineato in flex */
    .mobile-filter-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: 32px;
        height: 32px;
        background: transparent;
        color: #333;
        cursor: pointer;
        border-radius: 50%;
        transition: background 0.3s;
        flex-shrink: 0;
    }

    .mobile-filter-close:active {
        background: #f0f0f0;
    }

    /* Pulsante applica filtri */
    .mobile-filter-apply {
        display: block;
        position: sticky;
        bottom: 16px;
        background: var(--e-global-color-accent);
        color: white;
        padding: 15px;
        text-align: center;
        font-weight: bold;
        cursor: pointer;
        border: none;
        font-size: 16px;
        border-radius: 50px;
        font-family: Inter, sans-serif;
        text-transform: uppercase;
    }

    .mobile-filter-apply:active {
        background: #b71c1c;
    }
}







.filtro-title {
    margin-bottom: 0 !important;
}