/* =============================================================
   filter-01-shared.css  —  Amazon-style filter sidebar
   All classes suffixed -01-shared for zero collision.
   Uses !important to guarantee consistent look across all platforms.
   EXCEPTION: display on see-more/less items — left without !important
   so jQuery .show()/.hide() can toggle them via inline styles.
   ============================================================= */

/* ---- Desktop: scroll with page ---- */
.filter-sticky-01-shared {
    position: static !important;
}

/* ============================================================
   OUTER PANEL  — flat white card on desktop, drawer on mobile
   ============================================================ */
.filter-wrap-01-shared {
    background: #fff !important;
    width: 100% !important;
    font-size: 13px !important;
    color: #0F1111 !important;
    line-height: 1.4 !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: none !important;
}
.filter-wrap-01-shared,
.filter-wrap-01-shared * {
    box-sizing: border-box !important;
}

/* Mobile drawer */
@media (max-width: 767px) {
    .filter-wrap-01-shared {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
        box-shadow: 4px 0 24px rgba(0,0,0,0.18) !important;
        transition: left 0.28s cubic-bezier(.4,0,.2,1) !important;
        padding: 0 0 20px !important;
        border-radius: 0 !important;
        border: none !important;
    }
    .filter-wrap-01-shared.active-01-shared { left: 0 !important; }
}

/* Mobile overlay */
.filter-overlay-01-shared {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.45) !important;
    z-index: 9998 !important;
    transition: opacity 0.2s !important;
}
.filter-overlay-01-shared.active-01-shared { display: block !important; }

/* ============================================================
   PANEL HEADER
   ============================================================ */
.filter-header-01-shared {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 16px 13px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e8e8e8 !important;
}
.filter-header-01-shared h5 {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0F1111 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    padding: 0 !important;
    border: none !important;
}
.filter-close-btn-01-shared {
    display: none !important;
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    color: #666 !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    line-height: 1 !important;
    transition: color 0.15s !important;
}
.filter-close-btn-01-shared:hover { color: #6366f1 !important; }
@media (max-width: 767px) {
    .filter-close-btn-01-shared { display: block !important; }
}

/* Body padding */
.filter-body-01-shared {
    padding: 0 16px !important;
}

/* ============================================================
   SECTION  — always open, separated by thin border
   ============================================================ */
.filter-section-01-shared {
    padding: 13px 0 15px !important;
    border-bottom: 1px solid #eee !important;
    transition: opacity 0.2s !important;
    margin: 0 !important;
    background: transparent !important;
}
.filter-section-01-shared:last-child { border-bottom: none !important; }

/* Dependent section — hidden until parent selected */
.filter-section-hidden-dep-01-shared { display: none !important; }

/* Section title row */
.filter-title-01-shared {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0F1111 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
    border: none !important;
}

/* Selected count badge */
.filter-count-badge-01-shared {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    background: #6366f1 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    line-height: 1 !important;
    margin-left: 6px !important;
}

/* ============================================================
   KEYWORD SEARCH
   ============================================================ */
.filter-search-01-shared {
    width: 100% !important;
    padding: 7px 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    color: #111 !important;
    background: #fff !important;
    outline: none !important;
    height: auto !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
.filter-search-01-shared:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(228,121,17,0.12) !important;
}

/* ============================================================
   CHECKBOX LIST  — exact Amazon look
   ============================================================ */
.filter-checkbox-list-01-shared {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.filter-checkbox-list-01-shared li {
    padding: 2px 0 !important;
    line-height: 1 !important;
    list-style: none !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}
/* "See more" hides extra items — NO !important so jQuery .show()/.hide() works */
.filter-checkbox-extra-01-shared { display: none; }

.filter-checkbox-label-01-shared {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: #333 !important;
    line-height: 1.5 !important;
    user-select: none !important;
    width: 100% !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    transition: background 0.1s !important;
}
.filter-checkbox-label-01-shared:hover {
    background: rgba(99,102,241,.06) !important;
}
.filter-checkbox-label-01-shared span {
    flex: 1 !important;
    font-size: 13px !important;
    color: #333 !important;
}
.filter-checkbox-label-01-shared:hover span {
    color: #6366f1 !important;
}

/* Checkbox square — Amazon style */
.filter-checkbox-label-01-shared input[type=checkbox] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    border: 1.5px solid #aaa !important;
    border-radius: 3px !important;
    background: #fff !important;
    cursor: pointer !important;
    margin: 2px 0 0 0 !important;
    flex-shrink: 0 !important;
    position: relative !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.12s, background 0.12s, box-shadow 0.12s !important;
}
.filter-checkbox-label-01-shared input[type=checkbox]:hover {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(43,38,99,0.1) !important;
}
.filter-checkbox-label-01-shared input[type=checkbox]:checked {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
}
.filter-checkbox-label-01-shared input[type=checkbox]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 5px !important;
    height: 9px !important;
    margin-left: -2.5px !important;
    margin-top: -5.5px !important;
    border: 2px solid #fff !important;
    border-top: none !important;
    border-left: none !important;
    transform: rotate(45deg) !important;
    display: block !important;
}
.filter-checkbox-label-01-shared input[type=checkbox]:focus {
    outline: 2px solid #6366f1 !important;
    outline-offset: 1px !important;
}

/* Checked label text highlight */
.filter-checkbox-label-01-shared:has(input:checked) span {
    color: #6366f1 !important;
    font-weight: 600 !important;
}

/* ============================================================
   SEE MORE / SEE LESS — NO !important on display so jQuery works
   ============================================================ */
.filter-see-more-01-shared,
.filter-see-less-01-shared {
    display: inline-flex;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    color: #6366f1 !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    padding: 2px 0 !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    transition: color 0.12s !important;
}
.filter-see-more-01-shared:hover,
.filter-see-less-01-shared:hover {
    color: #6366f1 !important;
    text-decoration: none !important;
}
.filter-see-less-01-shared { display: none; }

/* Empty state for dynamic lists */
.filter-dynamic-empty-01-shared {
    font-size: 12px !important;
    color: #999 !important;
    font-style: italic !important;
    padding: 4px 0 !important;
    display: block !important;
}

/* ============================================================
   PRICE RANGE SLIDER
   ============================================================ */
.filter-price-label-01-shared {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0F1111 !important;
    margin-bottom: 12px !important;
    background: #f7f7f7 !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    border: 1px solid #e8e8e8 !important;
    text-align: center !important;
}

.filter-slider-wrap-01-shared {
    position: relative !important;
    height: 36px !important;
    margin: 0 8px 4px !important;
}
.filter-slider-track-01-shared {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important; right: 0 !important;
    height: 4px !important;
    background: #e0e0e0 !important;
    transform: translateY(-50%) !important;
    border-radius: 4px !important;
}
.filter-slider-range-01-shared {
    position: absolute !important;
    top: 50% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #007185, #00a8c4) !important;
    transform: translateY(-50%) !important;
    border-radius: 4px !important;
}
.filter-slider-wrap-01-shared input[type=range] {
    position: absolute !important;
    width: 100% !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.filter-slider-wrap-01-shared input[type=range]::-webkit-slider-thumb {
    pointer-events: all;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #007185;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: border-color 0.12s, box-shadow 0.12s, transform 0.1s;
}
.filter-slider-wrap-01-shared input[type=range]::-webkit-slider-thumb:hover {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(231,118,0,0.15);
    transform: scale(1.1);
}
.filter-slider-wrap-01-shared input[type=range]::-moz-range-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #007185;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.filter-price-go-btn-01-shared {
    display: inline-block !important;
    margin-top: 10px !important;
    padding: 6px 20px !important;
    background: linear-gradient(180deg, #FFD814 0%, #F5C518 100%) !important;
    border: 1px solid #FCD200 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #111 !important;
    transition: background 0.12s, box-shadow 0.12s !important;
    font-family: inherit !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    text-align: center !important;
}
.filter-price-go-btn-01-shared:hover {
    background: linear-gradient(180deg, #F7CA00 0%, #EBB800 100%) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

/* ============================================================
   STAR RATING ROWS
   ============================================================ */
.filter-rating-list-01-shared {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.filter-rating-list-01-shared li { padding: 1px 0 !important; }
.filter-rating-row-01-shared {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 5px 6px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    color: #6366f1 !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
    transition: background 0.12s, color 0.12s !important;
    font-family: inherit !important;
}
.filter-rating-row-01-shared:hover {
    background: rgba(99,102,241,.06) !important;
    color: #6366f1 !important;
}
.filter-rating-row-01-shared.selected-01-shared {
    background: #fff3e0 !important;
    color: #6366f1 !important;
    font-weight: 600 !important;
    border-left: 2px solid #6366f1 !important;
}
.f-star-filled-01-shared { color: #FFA41C !important; font-size: 14px !important; }
.f-star-empty-01-shared  { color: #DDD !important;    font-size: 14px !important; }
.filter-rating-up-01-shared {
    font-size: 12px !important;
    white-space: nowrap !important;
    color: inherit !important;
    margin-left: 2px !important;
}

/* ============================================================
   RESET BUTTON
   ============================================================ */
.filter-reset-btn-01-shared {
    display: block !important;
    width: 100% !important;
    padding: 9px 12px !important;
    margin: 14px 0 6px !important;
    background: #fff !important;
    border: 1px solid #D5D9D9 !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #555 !important;
    cursor: pointer !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: background 0.12s, border-color 0.12s, color 0.12s !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    font-family: inherit !important;
}
.filter-reset-btn-01-shared:hover {
    background: #fff3e0 !important;
    border-color: #6366f1 !important;
    color: #6366f1 !important;
    text-decoration: none !important;
}
.filter-reset-btn-01-shared i { margin-right: 5px !important; }

/* ============================================================
   HIDE native selects (keep in DOM for JS compatibility)
   ============================================================ */
.filter-hidden-select-01-shared {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================================
   HIDE SELECT2 / NICE-SELECT WIDGETS
   ============================================================ */
.filter-hidden-select-01-shared ~ .select2-container,
.filter-hidden-select-01-shared + .select2-container {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}
.filter-section-01-shared .select2-container {
    display: none !important;
}
.filter-wrap-01-shared .nice-select {
    display: none !important;
}
