/**
 * BCstore Smart Lavender & Blueberry Glass Petals Filter Engine
 * Release: Fluid Auto-Fit Chips, No-Ellipsis Typography & Universal Drawer Width
 */

/* ==========================================================================
   1. БЛОКИРОВКА САЙТА И СКРЫТИЕ ПЕРЕКРЫВАЮЩИХ МОБИЛЬНЫХ КНОПОК
   ========================================================================== */
html.drawer-open,
body.showing-filter-drawer,
body.drawer-open {
    overflow: hidden !important;
    height: 100% !important;
}

body.showing-filter-drawer .kadence-shop-filter-toggle,
body.showing-filter-drawer .shop-filter-toggle-wrap,
body.showing-filter-drawer .bc-mobile-filter-bar,
body.showing-filter-drawer .site-mobile-footer-nav,
body.showing-filter-drawer .kadence-mobile-footer-nav,
body.showing-filter-drawer #mobile-bottom-nav,
body.showing-filter-drawer .site-mobile-navigation,
body.showing-filter-drawer a[href="#filter-drawer"],
body.showing-filter-drawer button.filter-toggle-open,
body.showing-filter-drawer [class*="brands-toggle"],
body.showing-filter-drawer [class*="brand-toggle"],
body.showing-filter-drawer [class*="telegram"],
body.showing-filter-drawer [class*="share"],
body.showing-filter-drawer div[class*="filter-bar"],
body.showing-filter-drawer div[class*="sticky-buttons"],
body.showing-filter-drawer div[class*="shop-bottom-bar"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(300px) !important;
}

/* ==========================================================================
   2. МАКСИМАЛЬНЫЙ Z-INDEX ДЛЯ ШТОРКИ И ОВЕРЛЕЯ (2147483640)
   ========================================================================== */
#mobile-drawer,
.mobile-navigation-drawer,
div[id*="mobile-drawer"] {
    z-index: 2147483645 !important;
}

html body div#filter-drawer,
html body div#filter-drawer.popup-drawer,
html body div#filter-drawer.popup-drawer-layout-sidepanel,
html body div#filter-drawer.popup-drawer-side-left {
    z-index: 2147483640 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    width: 360px !important;
    max-width: 95vw !important;
}

html body div#filter-drawer:not(.show-drawer):not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
html body div#filter-drawer:not(.show-drawer):not(.active) .drawer-overlay {
    display: none !important;
    opacity: 0 !important;
}

html body div#filter-drawer .drawer-inner,
html body div#filter-drawer .drawer-content,
html body div#filter-drawer .drawer-main,
html body div#filter-drawer .widget-area,
html body div#filter-drawer .product-filter-widgets,
html body div#filter-drawer .widget_block,
html body div#filter-drawer .site-drawer-container,
.kadence-offcanvas-drawer,
.kadence-shop-filter-drawer {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
}

#filter-drawer::before,
#filter-drawer::after,
#filter-drawer .drawer-inner::before,
#filter-drawer .drawer-inner::after,
#filter-drawer .drawer-header::before,
#filter-drawer .drawer-header::after {
    display: none !important;
    background: none !important;
    border: none !important;
}

#filter-drawer .drawer-inner,
#filter-drawer .drawer-content,
#filter-drawer .widget-area {
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   3. КНОПКА ЗАКРЫТИЯ (КРЕСТИК)
   ========================================================================== */
#filter-drawer .drawer-header {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 8px 8px 4px 8px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 42px !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 100 !important;
    flex: 0 0 auto !important;
}

#filter-drawer .drawer-header button,
#filter-drawer .drawer-header .filter-toggle-close,
#filter-drawer .drawer-header .drawer-toggle,
#filter-drawer .drawer-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    color: #FF3300 !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#filter-drawer .drawer-header button svg,
#filter-drawer .drawer-header .kadence-svg-icon {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    color: #FF3300 !important;
    fill: currentColor !important;
}

#filter-drawer .drawer-header button:hover {
    transform: rotate(90deg) scale(1.08) !important;
    background: #ffffff !important;
}

/* ==========================================================================
   4. ИЗОЛЯЦИЯ ОВЕРЛЕЯ
   ========================================================================== */
body.showing-filter-drawer #filter-drawer .drawer-overlay,
body.showing-filter-drawer .drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483630 !important;
    background: rgba(15, 23, 42, 0.1) !important;
    backdrop-filter: blur(2.5px) !important;
    -webkit-backdrop-filter: blur(2.5px) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#filter-drawer .drawer-inner {
    position: relative !important;
    z-index: 2147483640 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#filter-drawer .drawer-content,
#filter-drawer .drawer-content .widget-area,
#filter-drawer .drawer-content .widget_block {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   5. ПОЛНОЕ УНИЧТОЖЕНИЕ ПОЛОСЫ СКРОЛЛА
   ========================================================================== */
#filter-drawer,
#filter-drawer *,
.bc-petals-scroll-area,
.bc-petals-scroll-area * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#filter-drawer::-webkit-scrollbar,
#filter-drawer *::-webkit-scrollbar,
.bc-petals-scroll-area::-webkit-scrollbar,
.bc-petals-scroll-area *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* ==========================================================================
   6. КОРНЕВОЙ БЛОК И ОБЛАСТЬ СКРОЛЛА
   ========================================================================== */
#bc-meili-filters-root {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: calc(100dvh - 42px) !important;
    max-height: calc(100dvh - 42px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bc-petals-scroll-area {
    flex: 1 1 auto !important;
    height: 100% !important;
    max-height: calc(100dvh - 105px) !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding: 2px 6px 10px 4px !important;
    box-sizing: border-box !important;
}

/* Выразительная парящая капсула-подсказка скролла */
#bc-meili-filters-root {
    position: relative !important;
}

.bc-scroll-hint-arrow {
    position: absolute;
    bottom: 66px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 24px;
    border-radius: 14px 4px 14px 14px !important;
    background: rgba(126, 87, 194, 0.92) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 15px rgba(126, 87, 194, 0.55), 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 95;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: bcPulseScrollDown 1.5s infinite ease-in-out;
}

.bc-scroll-hint-arrow svg {
    width: 15px;
    height: 15px;
    stroke: #ffffff !important;
    stroke-width: 2.8 !important;
    display: block;
}

.bc-scroll-hint-arrow.is-hidden {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(12px) scale(0.85) !important;
}

@keyframes bcPulseScrollDown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        box-shadow: 0 4px 15px rgba(126, 87, 194, 0.55);
    }
    50% {
        transform: translateX(-50%) translateY(6px);
        box-shadow: 0 8px 22px rgba(126, 87, 194, 0.75);
    }
}

/* ==========================================================================
   7. ГЕОМЕТРИЯ ЛЕПЕСТКОВ
   ========================================================================== */
.bc-petal-item {
    margin-bottom: 6px !important;
    border-radius: 20px 4px 20px 20px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
    touch-action: pan-y !important;
}

.bc-petal-item:active {
    transform: scale(0.99);
}

.bc-petal-header {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 12px 0 14px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 20px 4px 20px 20px !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    user-select: none !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    background-color: #B39DDB !important;
    background-image: linear-gradient(135deg, rgba(179, 157, 219, 0.95) 0%, rgba(149, 117, 205, 0.95) 100%), 
                      linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(0, 0, 0, 0.03) 51%, rgba(255, 255, 255, 0.12) 100%) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    touch-action: pan-y !important;
    position: relative !important;
    z-index: 5 !important;
}

.bc-petal-3d-icon {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
}

.bc-petal-title-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    height: 100% !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.bc-petal-title {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    letter-spacing: -0.1px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-shadow: none !important;
}

.bc-petal-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-left: 6px !important;
    pointer-events: auto !important;
}

.bc-petal-toggle-chevron {
    width: 7.5px !important;
    height: 7.5px !important;
    border-right: 2px solid #ffffff !important;
    border-bottom: 2px solid #ffffff !important;
    transform: rotate(45deg) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bc-petal-badge-count {
    display: none !important;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ffffff;
    color: #212121;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.bc-petal-clear-btn {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    border: none;
    outline: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.bc-petal-clear-btn:hover {
    background: #ffffff;
    color: #ef4444;
    transform: scale(1.15);
}

.bc-petal-item.has-selected .bc-petal-badge-count,
.bc-petal-item.has-selected .bc-petal-clear-btn {
    display: inline-flex !important;
}

/* ==========================================================================
   8. АКТИВНЫЙ/РАСКРЫТЫЙ ЛЕПЕСТОК
   ========================================================================== */
.bc-petal-item.bc-petal-open .bc-petal-header,
.bc-petal-item.has-selected .bc-petal-header {
    background-color: #7E57C2 !important;
    background-image: linear-gradient(135deg, #7E57C2 0%, #5E35B1 100%),
                      linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.03) 51%, rgba(255, 255, 255, 0.15) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(126, 87, 194, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.bc-petal-item.bc-petal-open .bc-petal-header {
    border-radius: 20px 4px 0 0 !important;
}

.bc-petal-item.bc-petal-open .bc-petal-toggle-chevron {
    transform: rotate(-135deg) !important;
}

/* ==========================================================================
   9. ВЫПАДАЮЩИЙ БЛОК: СТРОГОЕ ЗАКРЫТИЕ ПО УМОЛЧАНИЮ
   ========================================================================== */
.bc-petal-body {
    display: none !important;
    padding: 8px 4px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    touch-action: pan-y !important;
    overflow: visible !important;
}

.bc-petal-item.bc-petal-open > .bc-petal-body {
    display: block !important;
    animation: bcPetalSpring 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes bcPetalSpring {
    0% { opacity: 0; transform: translateY(-6px) scale(0.99); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.bc-petal-search-wrap {
    position: relative;
    margin-bottom: 8px;
    width: 100%;
    z-index: 2;
}
.bc-petal-search-input {
    width: 100%;
    padding: 8px 34px 8px 12px;
    font-size: 12px !important;
    font-weight: 500 !important;
    border-radius: 14px 4px 14px 14px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #212121 !important;
    outline: none;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}
.bc-petal-search-input:focus {
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.3) !important;
}

.bc-petal-search-icon {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 0;
}
.bc-petal-search-icon svg {
    display: block;
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   ГИБКАЯ СЕТКА: ЧИПСЫ НЕ ОБРЕЗАЮТСЯ И СВОБОДНО ПЕРЕНОСЯТСЯ
   ========================================================================== */
.bc-petal-chips-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow: visible !important;
    touch-action: pan-y !important;
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

/* Для категорий и подгузников делаем колонку на всю ширину */
.bc-petal-item[data-taxonomy="pa_diaper-type"] .bc-filter-chip,
.bc-petal-item[data-taxonomy="pa_purpose"] .bc-filter-chip,
.bc-petal-item[data-taxonomy="pa_clothing-type"] .bc-filter-chip,
.bc-petal-item[data-taxonomy="pa_diaper-size"] .bc-filter-chip,
.bc-petal-item[data-taxonomy="pa_educational-toy-type"] .bc-filter-chip,
.bc-petal-item[data-taxonomy="product_cat"] .bc-filter-chip {
    width: 100% !important;
    max-width: 100% !important;
}

/* СКРЫТИЕ ПОСЛЕ 8 ЧИПСОВ */
html body #filter-drawer .bc-filter-chip.bc-chip-hidden,
html body .bc-filter-chip.bc-chip-hidden,
.bc-filter-chip.bc-chip-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   ЧИПСЫ: ЧИТАЕМЫЙ ПОЛНЫЙ ТЕКСТ БЕЗ ТРОЕТОЧИЙ
   ========================================================================== */
html body #filter-drawer button.bc-filter-chip,
html body button.bc-filter-chip,
html body .bc-filter-chip {
    display: inline-flex !important;
    flex: 0 1 auto !important; /* Чипс берет ширину контента, но не превышает 100% */
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    padding: 0 10px !important;
    border-radius: 16px 4px 16px 16px !important;
    background: rgba(67, 83, 112, 0.78) !important;
    backdrop-filter: blur(10px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
    border: 0px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    outline: none !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14) !important;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
    transform: none !important;
    user-select: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    margin: 0 !important;
}

/* Разрешаем клик по тексту и цифре */
.bc-chip-label,
.bc-swatch-dot,
.bc-chip-count {
    pointer-events: auto !important;
    user-select: none !important;
}

html body #filter-drawer button.bc-filter-chip:hover:not(.disabled),
html body button.bc-filter-chip:hover:not(.disabled) {
    background: rgba(67, 83, 112, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: none !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2) !important;
}

/* Полный текст без обрезки */
.bc-chip-label {
    font-weight: 500 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: left !important;
}

.bc-swatch-dot {
    width: 13px;
    height: 13px;
    min-width: 13px;
    border-radius: 50%;
    display: inline-block;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    margin-right: 4px;
}

.bc-chip-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* АКТИВНЫЙ ЧИПС */
html body #filter-drawer button.bc-filter-chip.selected,
html body button.bc-filter-chip.selected,
html body #filter-drawer button.bc-filter-chip:active,
html body button.bc-filter-chip:active {
    background: linear-gradient(135deg, #7E57C2 0%, #5E35B1 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 3px 10px rgba(126, 87, 194, 0.45) !important;
    transform: none !important;
    font-weight: 500 !important;
}

html body #filter-drawer button.bc-filter-chip.selected .bc-chip-count {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.bc-filter-chip.disabled {
    opacity: 0.35 !important;
}

.bc-show-more-chips-btn {
    width: 100%;
    margin-top: 6px;
    padding: 7px 10px;
    border-radius: 12px 4px 12px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(67, 83, 112, 0.52) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12) !important;
    cursor: pointer;
    outline: none;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative !important;
    z-index: 10 !important;
}
.bc-show-more-chips-btn:hover {
    background: rgba(67, 83, 112, 0.8) !important;
}

/* ==========================================================================
   10. ПОЛЯ ДИАПАЗОНА ЦЕНЫ И МИНИМАЛИСТИЧНЫЙ ДВОЙНОЙ СЛАЙДЕР
   ========================================================================== */
.bc-price-inputs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.bc-price-field {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(67, 83, 112, 0.78) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: none !important;
    border-radius: 14px 4px 14px 14px !important;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.bc-price-field label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 6px;
    text-transform: lowercase;
}

.bc-price-field input {
    width: 100%;
    border: none !important;
    background: transparent !important;
    font-family: Montserrat, -apple-system, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    outline: none !important;
    padding: 0 !important;
}

.bc-price-separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 300;
}

/* Область слайдера без белых подложек */
.bc-range-slider-wrap {
    position: relative;
    height: 20px;
    margin: 6px 4px 8px 4px;
    display: flex;
    align-items: center;
}

/* Линия-трек с поддержкой динамической заливки диапазона */
.bc-range-slider-wrap::before {
    content: "" !important;
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--slider-track-bg, rgba(255, 255, 255, 0.28));
    border-radius: 2px;
    pointer-events: none;
    transition: background 0.05s ease;
}

/* Сброс всех дефолтных стилей браузера */
.bc-range-slider {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
    background-color: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: none;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Убираем белый фон дорожки в WebKit/Blink */
.bc-range-slider::-webkit-slider-runnable-track {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 100%;
}

/* Точки ползунка (аккуратные фиолетовые кружки с белым кантом) */
.bc-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #7E57C2;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    margin-top: 2px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.bc-range-slider::-webkit-slider-thumb:hover,
.bc-range-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
    background: #673AB7;
}

/* Для Firefox */
.bc-range-slider::-moz-range-track {
    background: transparent !important;
    border: none !important;
}
.bc-range-slider::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #7E57C2;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* ==========================================================================
   11. ПАРЯЩИЙ МАСТЕР-ЛЕПЕСТОК («ПОКАЗАТЬ X ТОВАРОВ» + СБРОС)
   ========================================================================== */
.bc-filter-sticky-footer {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 4px max(10px, env(safe-area-inset-bottom, 10px)) 4px !important;
    height: auto !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: relative !important;
    z-index: 100 !important;
}

.bc-filter-apply-btn {
    flex: 1 1 auto !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 0 16px !important;
    border-radius: 20px 4px 20px 20px !important;
    border: none !important;
    background-color: #7E57C2 !important;
    background-image: linear-gradient(135deg, #7E57C2 0%, #5E35B1 100%), 
                      linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.03) 51%, rgba(255, 255, 255, 0.15) 100%) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(126, 87, 194, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.bc-filter-apply-btn:hover {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 6px 20px rgba(126, 87, 194, 0.55) !important;
}
.bc-filter-apply-btn:active {
    transform: scale(0.98) !important;
}

.bc-filter-hits-counter {
    background: rgba(255, 255, 255, 0.25) !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

.bc-filter-reset-btn {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 16px 4px 16px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(67, 83, 112, 0.62) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.bc-filter-reset-btn:hover {
    background: rgba(239, 68, 68, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg) scale(1.06) !important;
}

/* ==========================================================================
   12. ПОЛНОЕ УНИЧТОЖЕНИЕ ДЕФОЛТНОГО БЛОКА KADENCE «REMOVE ALL FILTERS»
   ========================================================================== */
.kadence-shop-active-filters,
.kadence-clear-filters-container,
.kadence_all_filters,
.widget_layered_nav_filters,
.wpc-custom-selected-terms,
.wpc-filter-chips-wrapper,
.wpc-filters-section,
.woocommerce-active-filters {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

.bc-active-filters-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    clear: both !important;
    flex-basis: 100% !important;
    margin: 6px 0 16px 0 !important;
    padding: 4px 0 !important;
}

.bc-active-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(67, 83, 112, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #ffffff !important;
    padding: 6px 12px 6px 14px !important;
    border-radius: 16px 4px 16px 16px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bc-active-chip:hover {
    background: rgba(67, 83, 112, 0.98) !important;
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
    color: #ffffff !important;
}

.bc-active-chip-remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 17px !important;
    height: 17px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

.bc-active-chip:hover .bc-active-chip-remove {
    background: #ef4444 !important;
    color: #ffffff !important;
}

.bc-reset-all-chips {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    border-radius: 16px 4px 16px 16px !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    color: #ef4444 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bc-reset-all-chips:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3) !important;
}