/* ==========================================================================
   WooCommerce Filters — filters.css
   ========================================================================== */

:root {
    --wfb-yellow:        #F5C00A;
    --wfb-yellow-dark:   #F0B300;
    --wfb-green:         #1A4A3A;
    --wfb-green-light:   #255C49;
    --wfb-text-dark:     #1A1A1A;
    --wfb-text-light:    #ffffff;
    --wfb-chip-bg:       #FAF3E0;
    --wfb-radius:        30px;
    --wfb-transition:    0.2s ease;
}

.wfb-wrap {
    font-family: inherit;
    position: relative;
    max-width:     1200px;
    margin:        0 auto;
    padding: 0 1rem 3rem;
}

/* Bar */
.wfb-bar {
    display:       flex;
    align-items:   stretch;
    background:    var(--wfb-yellow);
    border-radius: var(--wfb-radius);
    padding:       0 0.5rem 0 1rem;
    min-height:    52px;
    box-shadow:    0 2px 8px rgba(0,0,0,.08);
    transition:    background var(--wfb-transition);
    position: relative;
}

.wfb-bar.wfb-open {
    border-radius: 25px 25px 0 0;
}

/* Filter icon */
.wfb-icon {
    display:     flex;
    align-items: center;
    padding:     0 0.75rem 0 0;
    flex-shrink: 0;
    color:       var(--wfb-text-dark);
    transition:  color var(--wfb-transition);
}
.wfb-has-filters .wfb-icon { color: var(--wfb-text-light); }

/* Dropdown wrap */
.wfb-dropdown-wrap {
    display:     flex;
    align-items: center;
}

/* Accordion trigger */
.accordion-label {
    display:     flex;
    align-items: center;
    gap:         0.35rem;
    height:      100%;
    background:  none;
    border:      none;
    cursor:      pointer;
    padding:     0.5rem 1rem;
    font-family: inherit;
    color:       var(--wfb-text-dark);
    transition:  opacity var(--wfb-transition), color var(--wfb-transition);
}
.accordion-label h4 {
    margin:      0;
    font-size:   0.9rem;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
    text-transform: none;
}

.accordion-label[aria-expanded="true"] {
    background-color: var(--wfb-yellow-dark);
}
.accordion-label:hover             { opacity: 0.75; }

/* Chevron */
.wfb-chevron {
    flex-shrink: 0;
    transition:  transform 0.2s ease;
}
.accordion-label[aria-expanded="true"] .wfb-chevron { transform: rotate(180deg); }

/* Floating panel */
.accordion-content {
    position:      absolute;
    top:           100%;
    left:          0;
    z-index:       2;
    background:    #ffffff;
    border-radius: 0 0 30px 30px;
    box-shadow:    0 8px 32px rgba(0,0,0,.14);
    padding:       1.5rem 2rem;
    min-width:     220px;
    max-height:    max-content;
    overflow-y:    auto;
    right: 0;
}
.accordion-content[hidden] { display: none; }
.accordion-content ul { list-style: none; margin: 0; padding: 0; }

.accordion-content ul {
    column-count: 1;
    gap: 3rem;
    width: 100%;
}

@media (min-width: 480px) {
    .accordion-content ul {
        column-count: 2;
    }
}

@media (min-width: 768px) {
    .accordion-content ul {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    .accordion-content ul {
        column-count: 4;
    }
}

/* Filter option row */
.filter-option {
    display:     flex;
    align-items: center;
    padding:     0 1rem;
    transition:  background var(--wfb-transition);
}
.filter-option:hover { background: var(--wfb-chip-bg); }

.filter-option input[type="checkbox"]:checked + label {
    font-weight: 600;
    color: var(--wfb-green);
}

/* Hide native checkbox */
.filter-option input[type="checkbox"] {
    position:       absolute;
    opacity:        0;
    width:          0;
    height:         0;
    pointer-events: none;
}

/* Label takes full row */
.filter-option label {
    display:     flex;
    align-items: center;
    gap:         0.6rem;
    font-size:   0.875rem;
    color:       var(--wfb-text-dark);
    cursor:      pointer;
    user-select: none;
    width:       100%;
    padding:     0.55rem 0;
}

/* Count in option */
.wfb-opt-count {
    margin-left: auto;
    font-size:   0.75rem;
    color:       #888;
}

/* Panel footer */
.wfb-panel-footer {
    position:   sticky;
    bottom:     0;
    background: #fff;
    padding:    0.6rem 1rem;
    border-top: 1px solid #eee;
    margin-top: 0.25rem;
}

/* Active count badge */
.wfb-count { font-weight: 700; font-size: 0.8em; }

/* Divider */
.wfb-divider {
    align-self:  center;
    display:     inline-block;
    width:       1px;
    height:      22px;
    background:  var(--wfb-yellow-dark);
    flex-shrink: 0;
}

/* Search */
.wfb-search-wrap {
    display:       flex;
    align-items:   center;
    margin-left:   auto;
    gap:           0.25rem;
    min-width:     160px;
    max-width:     260px;
    flex:          1 1 auto;
    transition:    background var(--wfb-transition);
    position:      relative;
}

.wfb-search {
    border:      none;
    background:  transparent;
    outline:     none;
    font-size:   0.875rem;
    color:       var(--wfb-text-dark);
    width:       100%;
    font-family: inherit;
}

.wfb-search::placeholder {
    font-size: 12px;
}

.wfb-bar .wfb-search:focus-visible {
    border-radius: 25px;
    border-color: var(--wfb-green);
}

.wfb-bar .wfb-search {
    border: 0;
    border-radius: 25px;
    color:       var(--wfb-text-dark);
}

.wfb-has-filters .wfb-search::placeholder { color: rgba(255,255,255,.6); }
.wfb-search::-webkit-search-cancel-button { display: none; }

.wfb-search-btn {
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      none;
    border:          none;
    cursor:          pointer;
    padding:         0.35rem;
    position:        absolute;
    right:           .5rem;
    color:           var(--wfb-text-dark);
    flex-shrink:     0;
    transition:      opacity var(--wfb-transition), color var(--wfb-transition);
}
.wfb-has-filters .wfb-search-btn { color: var(--wfb-green); }
.wfb-search-btn:hover             { opacity: 0.65; }

/* Chips */
.wfb-chips {
    display:     flex;
    flex-wrap:   wrap;
    align-items: center;
    gap:         0.5rem;
    margin-top:  0.75rem;
}

.wfb-chip {
    display:         inline-flex;
    align-items:     center;
    gap:             0.4rem;
    padding:         0.3rem 0.75rem;
    background:      var(--wfb-chip-bg);
    border-radius:   var(--wfb-radius);
    font-size:       0.8rem;
    font-weight:     500;
    color:           #343434;
    line-height:     1;
    text-decoration: none;
    transition:      background var(--wfb-transition);
}
.wfb-chip:hover { background: #fff0c6; }
.wfb-chip svg   { flex-shrink: 0; }

.wfb-clear-all {
    margin-left:     auto;
    display:         inline-flex;
    align-items:     center;
    padding:         0.4rem 1rem;
    background:      rgba(37, 92, 73, .6);
    color:           var(--wfb-text-light);
    border-radius:   var(--wfb-radius);
    font-size:       10px;
    letter-spacing:  0.04em;
    line-height:     1;
    text-decoration: none;
    text-transform:  uppercase;
    transition:      all var(--wfb-transition);
}
.wfb-clear-all:hover { background: var(--wfb-green-light); }

/* Responsive */
@media (max-width: 640px) {
    .wfb-bar {
        flex-wrap:     wrap;
        border-radius: 16px;
        padding:       .5rem 1rem;
    }
    .wfb-search-wrap {
        flex:        1 1 100%;
        max-width:   100%;
        order:       10;
        margin-left: 0;
    }
}

/* ugly hack to translate this string correctly to "Brand" */
.translated-ltr .label-cs { display: none; }
.translated-ltr .label-en { display: inline !important; }