/* ============================================================
   MODUL 12 — YITH Filters Sidebar Styling
   rsditmag-uiux / css-modules/12-yith-filters-sidebar.css
   Ultima actualizare: 2026-05-19
   Stilizare identică cu cardurile de produse din 03-shop-archive-category.css
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   CARD per secțiune filtru YITH — identic cu produsele
   border-radius: 16px, shadow, border rgba(0,0,0,.10)
   ──────────────────────────────────────────────────────────── */
.widget_yith_wcan_filter_preset .yith-wcan-filter,
.sidebar .yith-wcan-filter,
#sidebar .yith-wcan-filter {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 16px !important;
    box-shadow: 0px 12px 34px -18px rgba(0,0,0,.35) !important;
    padding: 16px !important;
    margin: 0 0 14px 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transition: box-shadow 180ms ease !important;
}


/* ────────────────────────────────────────────────────────────
   TITLU secțiune
   ──────────────────────────────────────────────────────────── */
.widget_yith_wcan_filter_preset .yith-wcan-filter .filter-title,
.sidebar .yith-wcan-filter .filter-title,
#sidebar .yith-wcan-filter .filter-title,
.widget_yith_wcan_filter_preset .yith-wcan-filter h4,
.sidebar .yith-wcan-filter h4 {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: #111 !important;
    margin: 0 0 12px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
    line-height: 1.3 !important;
}


/* ────────────────────────────────────────────────────────────
   LISTA
   ──────────────────────────────────────────────────────────── */
.widget_yith_wcan_filter_preset .yith-wcan-filter ul,
.sidebar .yith-wcan-filter ul,
#sidebar .yith-wcan-filter ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.widget_yith_wcan_filter_preset .yith-wcan-filter ul li,
.sidebar .yith-wcan-filter ul li,
#sidebar .yith-wcan-filter ul li {
    padding: 4px 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* LABEL */
.widget_yith_wcan_filter_preset .yith-wcan-filter ul li label,
.sidebar .yith-wcan-filter ul li label,
#sidebar .yith-wcan-filter ul li label,
.widget_yith_wcan_filter_preset .yith-wcan-filter ul li a,
.sidebar .yith-wcan-filter ul li a,
#sidebar .yith-wcan-filter ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #333 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: color .15s !important;
    width: 100% !important;
}

.widget_yith_wcan_filter_preset .yith-wcan-filter ul li label:hover,
.sidebar .yith-wcan-filter ul li label:hover,
#sidebar .yith-wcan-filter ul li label:hover {
    color: #000 !important;
}

/* CHECKBOX */
.widget_yith_wcan_filter_preset .yith-wcan-filter ul li input[type="checkbox"],
.sidebar .yith-wcan-filter ul li input[type="checkbox"],
#sidebar .yith-wcan-filter ul li input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
    accent-color: #111 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* TERM NAME */
.widget_yith_wcan_filter_preset .yith-wcan-filter ul li .term-name,
.sidebar .yith-wcan-filter ul li .term-name,
#sidebar .yith-wcan-filter ul li .term-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* COUNT — (3) în paranteze gri */
.widget_yith_wcan_filter_preset .yith-wcan-filter ul li .count,
.sidebar .yith-wcan-filter ul li .count,
#sidebar .yith-wcan-filter ul li .count {
    flex-shrink: 0 !important;
    font-size: 11px !important;
    color: #999 !important;
    font-weight: 500 !important;
    margin-left: auto !important;
}

.widget_yith_wcan_filter_preset .yith-wcan-filter ul li .count::before,
.sidebar .yith-wcan-filter ul li .count::before,
#sidebar .yith-wcan-filter ul li .count::before {
    content: '(' !important;
}
.widget_yith_wcan_filter_preset .yith-wcan-filter ul li .count::after,
.sidebar .yith-wcan-filter ul li .count::after,
#sidebar .yith-wcan-filter ul li .count::after {
    content: ')' !important;
}

/* SHOW MORE */
.widget_yith_wcan_filter_preset .yith-wcan-filter .show-more,
.widget_yith_wcan_filter_preset .yith-wcan-filter .toggle-show-more,
.sidebar .yith-wcan-filter .show-more {
    font-size: 12px !important;
    color: #555 !important;
    margin-top: 8px !important;
    display: inline-block !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* OPȚIUNE ACTIVĂ */
.widget_yith_wcan_filter_preset .yith-wcan-filter ul li.chosen label,
.sidebar .yith-wcan-filter ul li.chosen label {
    color: #000 !important;
    font-weight: 600 !important;
}


/* ────────────────────────────────────────────────────────────
   CARD FILTRU PREȚ
   ──────────────────────────────────────────────────────────── */
.widget_price_filter {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 16px !important;
    box-shadow: 0px 12px 34px -18px rgba(0,0,0,.35) !important;
    padding: 16px !important;
    margin: 0 0 14px 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.widget_price_filter .widgettitle {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: #111 !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
}

/* TRACK */
.widget_price_filter .ui-slider {
    position: relative !important;
    height: 4px !important;
    background: rgba(0,0,0,.12) !important;
    border-radius: 4px !important;
    margin: 18px 10px 24px !important;
    border: none !important;
}

/* RANGE colorat */
.widget_price_filter .ui-slider .ui-slider-range {
    position: absolute !important;
    height: 100% !important;
    background: #111 !important;
    border-radius: 4px !important;
    top: 0 !important;
}

/* THUMB-URI */
.widget_price_filter .ui-slider .ui-slider-handle {
    position: absolute !important;
    width: 18px !important;
    height: 18px !important;
    background: #fff !important;
    border: 2.5px solid #111 !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    cursor: grab !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.20) !important;
    transition: box-shadow .15s, transform .1s !important;
    outline: none !important;
    z-index: 2 !important;
    margin: 0 !important;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle:focus {
    box-shadow: 0 0 0 5px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.20) !important;
    transform: translate(-50%, -50%) scale(1.2) !important;
}

.widget_price_filter .ui-slider .ui-slider-handle:active {
    cursor: grabbing !important;
}

/* INPUTS min/max */
.widget_price_filter .price_slider_amount {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.widget_price_filter .price_slider_amount .min,
.widget_price_filter .price_slider_amount .max,
.widget_price_filter .price_slider_amount input[type="text"] {
    flex: 1 !important;
    height: 34px !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    border-radius: 8px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #111 !important;
    background: #f9f9f9 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.widget_price_filter .price_slider_amount .min:focus,
.widget_price_filter .price_slider_amount .max:focus,
.widget_price_filter .price_slider_amount input[type="text"]:focus {
    outline: none !important;
    border-color: #111 !important;
    background: #fff !important;
}

/* Label "Preț minim/maxim" — ascuns, înlocuit de input */
.widget_price_filter .price_slider_amount label {
    display: none !important;
}

/* BUTON APLICĂ */
.widget_price_filter .price_slider_amount button.button {
    display: block !important;
    width: 100% !important;
    height: 36px !important;
    margin-top: 10px !important;
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    cursor: pointer !important;
    transition: background .15s !important;
    text-transform: uppercase !important;
}

.widget_price_filter .price_slider_amount button.button:hover {
    background: #333 !important;
}


/* ────────────────────────────────────────────────────────────
   ACTIVE FILTERS (filtrele active deasupra produselor)
   ──────────────────────────────────────────────────────────── */
.yith-wcan-reset-button,
.yith-wcan-active-filters-bar {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    margin-bottom: 16px !important;
    font-size: 12px !important;
}

.yith-wcan-active-filters-bar .active-filter {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #f0f0f0 !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
    margin: 2px !important;
    font-size: 11px !important;
}


/* ────────────────────────────────────────────────────────────
   MOBILE — buton fix "Filtrează"
   ──────────────────────────────────────────────────────────── */
.rsd-filter-mobile-btn {
    display: none;
}

@media (max-width: 900px) {
    .rsd-filter-mobile-btn {
        display: flex !important;
        align-items: center;
        gap: 7px;
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9997;
        background: #111;
        color: #fff;
        border: none;
        border-radius: 32px;
        padding: 11px 22px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(0,0,0,.35);
        white-space: nowrap;
    }
}
/* ============================================================
   PRICE FILTER — WooCommerce Blocks
   Bazat pe HTML real: .wc-block-components-price-slider
   Adaugă la finalul lui 12-yith-filters-sidebar.css
   ============================================================ */

/* CARD wrapper */
.wc-blocks-filter-wrapper {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 16px !important;
    box-shadow: 0px 12px 34px -18px rgba(0,0,0,.35) !important;
    padding: 16px !important;
    margin: 0 0 14px 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Titlu */
.wc-blocks-filter-wrapper h3.wp-block-heading {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: #111 !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
    line-height: 1.3 !important;
}

/* Track wrapper */
.wc-block-price-filter__range-input-wrapper,
.wc-block-components-price-slider__range-input-wrapper {
    position: relative !important;
    height: 4px !important;
    background: rgba(0,0,0,.12) !important;
    border-radius: 4px !important;
    margin: 16px 8px 24px !important;
}

/* Range colorat între thumburi */
.wc-block-price-filter__range-input-progress,
.wc-block-components-price-slider__range-input-progress {
    position: absolute !important;
    height: 100% !important;
    background: #111 !important;
    border-radius: 4px !important;
    top: 0 !important;
    left: var(--low, 0%) !important;
    right: calc(100% - var(--high, 100%)) !important;
}

/* Input range invizibil — doar thumb-ul e vizibil */
.wc-block-price-filter__range-input,
.wc-block-components-price-slider__range-input {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 100% !important;
    height: 4px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Thumb webkit */
.wc-block-price-filter__range-input::-webkit-slider-thumb,
.wc-block-components-price-slider__range-input::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    background: #fff !important;
    border: 2.5px solid #111 !important;
    border-radius: 50% !important;
    cursor: grab !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.20) !important;
    pointer-events: all !important;
}

.wc-block-price-filter__range-input::-webkit-slider-thumb:hover,
.wc-block-components-price-slider__range-input::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 5px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.20) !important;
}

/* Thumb firefox */
.wc-block-price-filter__range-input::-moz-range-thumb,
.wc-block-components-price-slider__range-input::-moz-range-thumb {
    width: 18px !important;
    height: 18px !important;
    background: #fff !important;
    border: 2.5px solid #111 !important;
    border-radius: 50% !important;
    cursor: grab !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.20) !important;
    pointer-events: all !important;
}

/* Controls min/max */
.wc-block-price-filter__controls,
.wc-block-components-price-slider__controls {
    display: flex !important;
    align-items: flex-end !important;
    gap: 8px !important;
    margin-top: 4px !important;
}

.wc-block-price-filter__control,
.wc-block-components-price-slider__control {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

/* Label "Preț minim / maxim" */
.wc-block-components-price-slider__label {
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    color: #999 !important;
    margin: 0 !important;
}

/* Input text valoare */
.wc-block-price-filter__amount,
.wc-block-components-price-slider__amount {
    width: 100% !important;
    height: 34px !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    border-radius: 8px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #111 !important;
    background: #f9f9f9 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.wc-block-price-filter__amount:focus,
.wc-block-components-price-slider__amount:focus {
    outline: none !important;
    border-color: #111 !important;
    background: #fff !important;
}