/* Shunny Product Filters - stile sidebar come mockup */

.shunny-filters {
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    font-family: inherit;
    color: #101827;
}

.shunny-filter-mobile-head {
    display: block;
    margin: 0 0 12px;
}

.shunny-filter-mobile-head strong {
    display: none;
}

/* Desktop: il bottone non si vede */
.shunny-filter-toggle {
    display: none !important;
}

.shunny-filter-content {
    display: block;
}

/* Box sezioni */
.shunny-filter-box {
    border-bottom: 1px solid #e8e8e8;
    padding: 0 0 25px;
    margin: 0 0 24px;
}

.shunny-filter-box h4 {
    position: relative;
    margin: 0 0 16px;
    padding-right: 20px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #101827;
}

.shunny-filter-box h4::after {
    content: "-";
    position: absolute;
    right: 0;
    top: 0;
    color: #7b8491;
    font-weight: 700;
}

/* Categorie: compatte ma simili alla foto */
.shunny-category-box {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.shunny-filter-option {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 27px;
    padding: 4px 0;
    margin: 0;
    cursor: pointer;
    color: #1f2933;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 500;
}

.shunny-category-option {
    padding: 4px 0;
    font-size: 15px;
    line-height: 1.25;
}

/* Nasconde i radio per categorie e taglie, come nel mockup */
.shunny-category-box input[type="checkbox"],
.shunny-filter-box:not(:has(.shunny-color-dot)) .shunny-filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shunny-filter-option span {
    flex: 1;
}

.shunny-filter-option em {
    min-width: 26px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #b8bdc5;
    color: #fff;
    font-style: normal;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    font-weight: 800;
}

/* Stato selezionato */
.shunny-filter-option input[type="checkbox"]:checked + span {
    color: #d7194a;
    font-weight: 900;
}

.shunny-filter-option input[type="checkbox"]:checked ~ em {
    background: #aeb4bd;
}

/* Colori stile pallini grandi */
.shunny-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #d7dbe0;
    display: inline-block;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

/* nei colori il radio resta nascosto ma il pallino è visibile */
.shunny-filter-option .shunny-color-dot + input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shunny-filter-option:has(.shunny-color-dot) {
    gap: 11px;
    padding: 6px 0;
}

.shunny-filter-option:has(.shunny-color-dot) input[type="checkbox"]:checked + span {
    color: #1f2933;
    font-weight: 700;
}

.shunny-filter-option:has(.shunny-color-dot) input[type="checkbox"]:checked ~ em {
    background: #aeb4bd;
}

.shunny-filter-option:has(.shunny-color-dot):has(input[type="checkbox"]:checked) .shunny-color-dot {
    outline: 2px solid #d7194a;
    outline-offset: 2px;
}

/* Pallini colore */
.shunny-dot-nero,
.shunny-dot-black { background: #000; border-color: #000; }

.shunny-dot-bianco,
.shunny-dot-white { background: #fff; border-color: #cfd4da; }

.shunny-dot-grigio,
.shunny-dot-gray,
.shunny-dot-grey { background: #a8a8a8; border-color: #a8a8a8; }

.shunny-dot-blu,
.shunny-dot-blue { background: #0757d8; border-color: #0757d8; }

.shunny-dot-rosso,
.shunny-dot-red { background: #e11d48; border-color: #e11d48; }

.shunny-dot-giallo,
.shunny-dot-yellow { background: #facc15; border-color: #facc15; }

.shunny-dot-verde,
.shunny-dot-green { background: #16a34a; border-color: #16a34a; }

.shunny-dot-rosa,
.shunny-dot-pink { background: #fb7185; border-color: #fb7185; }

/* Prezzo */
.shunny-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.shunny-price-row label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
}

.shunny-price-row input {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #d8dbe0;
    border-radius: 4px;
    padding: 9px 10px;
    background: #fff;
    color: #111827;
    outline: none;
}

.shunny-price-row input:focus {
    border-color: #d7194a;
}

.shunny-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 0;
    border-radius: 3px;
    padding: 10px 18px;
    margin: 0;
    background: #e9e7ed;
    color: #161b22;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
}

.shunny-filter-button:hover {
    background: #d7194a;
    color: #fff;
}

.shunny-reset {
    display: inline-block;
    margin-left: 10px;
    margin-top: 0;
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
}

.shunny-reset:hover {
    color: #d7194a;
    text-decoration: underline;
}

/* Box spedizione */
.shunny-shipping-box {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 5px;
    background: #fff;
    border: 1px solid #d9dde3;
    border-radius: 2px;
    padding: 18px 20px;
    min-height: 75px;
}

.shunny-truck {
    font-size: 29px;
    line-height: 1;
    color: #f6a400;
}

.shunny-shipping-box strong {
    display: block;
    color: #111827;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
}

.shunny-shipping-box small {
    display: block;
    margin-top: 4px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.25;
}

/* Layout Elementor/Woo: larghezza sidebar consigliata */
.shunny-filters,
.shunny-filter-sidebar {
    max-width: 250px;
}

/* Mobile */
@media (max-width: 768px) {
    .shunny-filters {
        max-width: none;
        background: #fff;
        border: 1px solid #e8e8e8;
        border-radius: 12px;
        padding: 14px;
        box-shadow: 0 8px 24px rgba(0,0,0,.05);
    }

    .shunny-filter-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0;
    }

    .shunny-filter-mobile-head strong {
        display: block;
        font-size: 17px;
        font-weight: 900;
    }

    .shunny-filter-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 999px;
        background: #071948;
        color: #fff;
        padding: 9px 15px;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
    }

    .shunny-filter-content {
        display: none;
        padding-top: 18px;
    }

    .shunny-filters.is-open .shunny-filter-content {
        display: block;
    }

    .shunny-filter-box {
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .shunny-category-box {
        max-height: 300px;
        overflow-y: auto;
        padding-right: 6px;
    }

    .shunny-filter-button {
        width: 100%;
    }

    .shunny-reset {
        display: block;
        text-align: center;
        margin: 12px 0 0;
    }
}


.shunny-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.shunny-active-title {
    font-size: 14px;
    font-weight: 900;
    color: #111827;
}

.shunny-active-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.shunny-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 10px 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.shunny-active-chip:hover {
    background: #d7194a;
    color: #fff;
}

.shunny-active-chip strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(0,0,0,.12);
    font-size: 13px;
    line-height: 1;
}

.shunny-active-reset {
    margin-left: auto;
    color: #d7194a;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.shunny-active-reset:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .shunny-active-filters {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .shunny-active-reset {
        margin-left: 0;
    }
}