/* =============================================================
   ChillBud – Shop Sidebar Filter Styles
   Targets YITH WooCommerce Ajax Product Filter (shortcode output)
   ============================================================= */

/* 1. Override YITH's inline CSS custom properties */
.yith-wcan-filters {
    --yith-wcan-filters_colors_titles:         #e6a25d;
    --yith-wcan-filters_colors_background:     #282E26;
    --yith-wcan-filters_colors_accent:         #e6a25d;
    --yith-wcan-filters_colors_accent_r:       230;
    --yith-wcan-filters_colors_accent_g:       162;
    --yith-wcan-filters_colors_accent_b:       93;
    --yith-wcan-anchors_style_text:            #d1d0c3;
    --yith-wcan-anchors_style_text_hover:      #e6a25d;
    --yith-wcan-anchors_style_text_active:     #e6a25d;
    --yith-wcan-labels_style_background:       #1e2320;
    --yith-wcan-labels_style_background_hover: #e6a25d;
    --yith-wcan-labels_style_background_active:#e6a25d;
    --yith-wcan-labels_style_text:             #d1d0c3;
    --yith-wcan-labels_style_text_hover:       #282E26;
    --yith-wcan-labels_style_text_active:      #282E26;
}

/* 2. Sidebar wrapper */
#qodef-page-sidebar {
    background: transparent;
}

/* 3. Outer filters container */
.yith-wcan-filters {
    background: #282E26;
    border: 1px solid #3a4138;
    border-radius: 6px;
    padding: 4px 0;
    font-family: 'Prompt', sans-serif;
}

/* 4. Individual filter block */
.yith-wcan-filters .yith-wcan-filter {
    background: #282E26;
    border-bottom: 1px solid #3a4138;
    padding: 14px 18px;
    margin: 0;
}

.yith-wcan-filters .yith-wcan-filter:last-child {
    border-bottom: none;
}

/* 5. Filter section title */
.yith-wcan-filters .yith-wcan-filter .filter-title {
    color: #e6a25d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    font-family: 'Prompt', sans-serif !important;
}

/* 6. Filter item links and labels */
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item > a,
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item > label > a {
    color: #d1d0c3 !important;
    font-size: 13px;
    font-family: 'Prompt', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item > a:hover,
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item > label > a:hover,
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item.active > a,
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item.active > label > a {
    color: #e6a25d !important;
}

/* 7. Count badges */
.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item .count {
    color: #666 !important;
    font-size: 11px;
    margin-left: auto;
}

/* 8. List items */
.yith-wcan-filters .yith-wcan-filter .filter-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yith-wcan-filters .yith-wcan-filter .filter-items .filter-item {
    padding: 3px 0;
    border: none !important;
    background: transparent !important;
}

/* 9. Custom checkbox styling */
.yith-wcan-filters.custom-style span.checkboxbutton:before {
    background: transparent !important;
    border: 1px solid #e6a25d !important;
    border-radius: 3px !important;
    width: 15px !important;
    height: 15px !important;
}

.yith-wcan-filters.custom-style span.checkboxbutton.checked:before {
    background: #e6a25d !important;
    border-color: #e6a25d !important;
}

/* 10. Native checkbox fallback */
.yith-wcan-filters .filter-item input[type="checkbox"] {
    accent-color: #e6a25d;
}

/* 11. Placeholder skeleton animation while loading */
.yith-wcan-filters .yith-wcan-filter.filter-placeholder .item-placeholder {
    background: linear-gradient(90deg, #2e342c 25%, #3a4138 50%, #2e342c 75%) !important;
    background-size: 200% 100% !important;
    border-radius: 3px !important;
    height: 14px !important;
    opacity: 0.7;
}

/* 12. Apply / Reset buttons */
.yith-wcan-filters .apply-filters,
.yith-wcan-filters .reset-filters {
    display: block;
    background: transparent !important;
    border: 1px solid #e6a25d !important;
    color: #e6a25d !important;
    text-align: center;
    border-radius: 4px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: 'Prompt', sans-serif;
}

.yith-wcan-filters .apply-filters:hover,
.yith-wcan-filters .reset-filters:hover {
    background: #e6a25d !important;
    color: #282E26 !important;
}

/* 13. Collapsible arrow */
.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable:after {
    color: #e6a25d !important;
    border-color: #e6a25d !important;
}

/* 14. Scrollable list */
.yith-wcan-filters .filter-content {
    max-height: 220px;
    overflow-y: auto;
}

.yith-wcan-filters .filter-content::-webkit-scrollbar { width: 4px; }
.yith-wcan-filters .filter-content::-webkit-scrollbar-track { background: #1e2320; }
.yith-wcan-filters .filter-content::-webkit-scrollbar-thumb {
    background: #e6a25d;
    border-radius: 2px;
}
