/* ===========================
   ICECAT MANAGER - FILTRI FRONTEND
   =========================== */

.icecat-filter-section {
    margin-bottom: 0;
    border-bottom: 1px solid #ebebeb;
    padding: 14px 0;
}

.icecat-filter-section:first-child { padding-top: 0; }
.icecat-filter-section:last-of-type { border-bottom: none; }

/* Titolo sezione */
.icecat-filter-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.icecat-filter-title:not(.collapsed) { margin-bottom: 10px; }

.icecat-filter-toggle {
    font-size: 9px;
    color: #aaa;
    transition: transform 0.2s;
    display: inline-block;
}

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

/* Lista opzioni */
.icecat-filter-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 2px;
}

.icecat-filter-options::-webkit-scrollbar { width: 3px; }
.icecat-filter-options::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 2px; }
.icecat-filter-options::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.icecat-filter-option { display: block; margin: 0; }

.icecat-filter-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 7px;
    text-decoration: none !important;
    color: #444;
    font-size: 13px;
    border-radius: 5px;
    transition: background 0.12s, color 0.12s;
    line-height: 1.3;
}

.icecat-filter-link:hover {
    background: #f5f5f5;
    color: #111;
}

.icecat-filter-option.icecat-active .icecat-filter-link {
    color: #111;
    font-weight: 600;
    background: #f0f0f0;
}

/* Checkbox custom */
.icecat-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    min-width: 15px;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    background: #fff;
    transition: all 0.12s;
}

.icecat-checkbox.checked {
    background: #111;
    border-color: #111;
}

.icecat-checkbox.checked::after {
    content: '';
    display: block;
    width: 4px;
    height: 7px;
    border: 1.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.icecat-filter-link:hover .icecat-checkbox:not(.checked) { border-color: #888; }
.icecat-term-name { flex: 1; }

/* Prezzo */
.icecat-price-slider-wrap { padding: 4px 0 0; }

#icecat-price-slider {
    margin: 8px 8px 16px;
    height: 3px;
    background: #e0e0e0;
    border: none;
    border-radius: 2px;
}

#icecat-price-slider .ui-slider-range { background: #111; border-radius: 2px; }

#icecat-price-slider .ui-slider-handle {
    border: 2px solid #111;
    background: #fff;
    top: -7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: grab;
    outline: none;
    transition: box-shadow 0.15s;
}

#icecat-price-slider .ui-slider-handle:focus,
#icecat-price-slider .ui-slider-handle:hover {
    box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
}

.icecat-price-inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    gap: 6px;
}

.icecat-price-label {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 600;
    color: #111;
    font-size: 13px;
    flex: 1;
    text-align: center;
}

.icecat-price-sep { color: #bbb; font-size: 11px; }

.icecat-apply-price {
    width: 100%;
    text-align: center;
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    padding: 9px 12px !important;
    border-radius: 6px !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    transition: opacity 0.15s !important;
}

.icecat-apply-price:hover { opacity: 0.82 !important; }

/* Reset */
.icecat-reset-wrap {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #ebebeb;
}

.icecat-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    color: #c00;
    text-decoration: none !important;
    padding: 7px 12px;
    border: 1px solid #f5cccc;
    border-radius: 6px;
    background: #fff8f8;
    transition: all 0.15s;
    font-weight: 500;
}

.icecat-reset-btn:hover {
    background: #c00;
    color: #fff !important;
    border-color: #c00;
}

/* Collapsed */
.icecat-filter-options.collapsed { display: none; }

/* ===========================
   SPECIFICHE PRODOTTO
   =========================== */

.icecat-product-attrs {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.icecat-attr {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #e5e5e5;
}

.icecat-attr:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.icecat-attr:first-child {
    padding-top: 0;
}

.icecat-attr strong {
    color: #333;
    font-weight: 600;
    min-width: 150px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .icecat-product-attrs {
        padding: 15px;
    }
    
    .icecat-attr {
        font-size: 13px;
    }
    
    .icecat-attr strong {
        display: block;
        margin-bottom: 4px;
    }
}

