/* ── Widget filtre LEGO — sidebar XStore ────────────────────────────────────── */

.pb-lego-filter-widget {
    margin-bottom: 20px !important;
}

/* ── Header : logo LEGO + titre ─────────────────────────────────────────────── */

.pb-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 14px;
    margin-bottom: 10px;
    border-bottom: 2px solid #e3000b;
}
.pb-sidebar-logo {
    width: 112px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}
.pb-sidebar-title {
    font-size: 16px;
    font-weight: 800;
    color: #222;
    line-height: 1.2;
}

.pb-lego-filter-widget .widget-title {
    /* hérite du style XStore widget-title */
}

/* ── Masquer les widgets XStore sous notre filtre (page lego-sets) ──────────── */

.pb-lego-filter-widget ~ [id^="pb_brand_logo"],
.pb-lego-filter-widget ~ [id^="et_price_filter"],
.pb-lego-filter-widget ~ .widget_price_filter,
.pb-lego-filter-widget ~ .widget_product_categories,
.pb-lego-filter-widget ~ .sidebar-widget,
.pb-lego-filter-widget ~ [class*="sidebar-widget-item"] {
    display: none !important;
}

/* ── Sections ───────────────────────────────────────────────────────────────── */

.pb-filter-body {
    padding: 0;
}

.pb-filter-section {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.pb-filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 6px;
}

/* ── Toggle actif ───────────────────────────────────────────────────────────── */

.pb-toggle-active {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}
.pb-toggle-active input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #e3000b;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Section labels ─────────────────────────────────────────────────────────── */

.pb-section-label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Dropdown tri ───────────────────────────────────────────────────────────── */

.pb-filter-section select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}
.pb-filter-section select:focus {
    outline: 2px solid #e3000b;
    outline-offset: 1px;
}

/* ── Recherche ──────────────────────────────────────────────────────────────── */

.pb-filter-section input[type="text"] {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    box-sizing: border-box;
}
.pb-filter-section input[type="text"]:focus {
    outline: 2px solid #e3000b;
    outline-offset: 1px;
}

/* ── Grille checkbox années ─────────────────────────────────────────────────── */

.pb-year-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
}

.pb-year-check {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}
.pb-year-check input[type="checkbox"] {
    width: 13px;
    height: 13px;
    accent-color: #e3000b;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Footer compteur + reset ────────────────────────────────────────────────── */

.pb-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

#pb-results-count {
    font-style: italic;
}

#pb-reset-filters {
    background: none;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
    color: #666;
    transition: all 0.15s;
}
#pb-reset-filters:hover {
    background: #e3000b;
    color: #fff;
    border-color: #e3000b;
}
