.wbc-filter-widget {
    margin-bottom: 30px;
}

.wbc-filter-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.wbc-filter-toggle {
    display: none;
    flex-shrink: 0;
}

.wbc-filter-quick-brands {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    flex: 1;
}

.wbc-filter-quick-brands::-webkit-scrollbar {
    height: 4px;
}

.wbc-filter-quick-brands::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.wbc-quick-brand-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    min-width: 80px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbc-quick-brand-item:hover {
    border-color: #999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.wbc-quick-brand-item.active {
    background: #0073aa;
    border-color: #0073aa;
}

.wbc-quick-brand-item img {
    max-width: 60px;
    max-height: 24px;
    object-fit: contain;
}

.wbc-quick-brand-item.active img {
    filter: brightness(0) invert(1);
}

.wbc-quick-brand-item span {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.wbc-quick-brand-item.active span {
    color: #fff;
}

.wbc-filter-panel {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    display: block;
}

.wbc-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0;
    border-bottom: none;
}

.wbc-filter-header > div h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.wbc-filter-count-result {
    display: none;
}

.wbc-filter-close {
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 4px 20px;
    font-size: 16px;
    color: #667085;
    transition: all 0.2s;
    border-radius: 6px;
    font-weight: 500;
    text-transform: none;
}

.wbc-filter-close:hover {
    color: #333;
    background: #f5f5f5;
    border-color: #999;
}

.wbc-filter-close .dashicons {
    display: none;
}

.wbc-filter-panel > form {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
}

.wbc-filter-width-1 {
    grid-column: span 12;
}

.wbc-filter-width-2 {
    grid-column: span 6;
}

.wbc-filter-width-3 {
    grid-column: span 4;
}

.wbc-filter-title {
    margin: 0 0 14px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.wbc-filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(98px, 170px));
    gap: 10px;
}

.wbc-filter-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: var(--Radius-2, 4px);
    border: 1.222px solid var(--Gray-200, #E4E7EC);
    background: #F2F4F7;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    min-height: 44px;
}

.wbc-filter-option:hover {
    border-color: #999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.wbc-filter-option.active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}
.wbc-filter-option.active img {
    filter: brightness(0) invert(1);
}
.wbc-filter-option input[type="checkbox"] {
    display: none;
}

.wbc-filter-option span {
    font-size: 14px;
}

.wbc-filter-count {
    display: none;
}

.wbc-filter-range {
    padding: 10px;
}

.wbc-range-slider {
    width: 100%;
    margin-bottom: 10px;
}

.wbc-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.wbc-range-current {
    font-weight: 600;
    color: #333;
}

.wbc-filter-actions {
    display: none;
}
.wbc-filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 17px;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    width: 100%;
    color: var(--gray-500);
    text-transform: none;
    margin: 0;
}
.wbc-filter-toggle {
    display: inline-block;
}
.wbc-filter-panel {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    border-radius: 0;
    display: none;
    height: 100%;
    min-height: max-content;
}
.wbc-filter-panel.active {
    display: block;
}



.wbc-filter-loading {
    opacity: 0.6;
    pointer-events: none;
}

.wbc-products-loading {
    position: relative;
}

.wbc-products-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    backdrop-filter: blur(2px);
}

.wbc-products-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: wbc-spin 1s linear infinite;
}

@keyframes wbc-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.wbc-filter-brands {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.wbc-filter-brands .wbc-filter-option {
    padding: 8px 16px;
    min-height: 48px;
}

.wbc-brand-logo {
    max-width: 80px;
    max-height: 32px;
    object-fit: contain;
}

.wbc-brand-name {
    display: none;
}

.wbc-brand-option {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbc-filter-price-range {
    /* grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); */
}

.wbc-filter-price-range .wbc-filter-option {
    min-height: 48px;
}

.wbc-filter-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.wbc-sort-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.wbc-sort-label {
    white-space: nowrap;
    color: var(--Gray-700, #344054);
    text-align: center;
    text-overflow: ellipsis;
    font-family: "Be Vietnam Pro";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.54px;
}

.wbc-sort-select {
    padding: 8px 32px 8px 12px;
    border-radius: var(--Radius-2, 4px);
    box-shadow: 0 4px 15px 0 rgba(162, 160, 160, 0.15);
    background: #fff url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>') no-repeat right 12px center;
    background-size: 12px;
    cursor: pointer;
    appearance: none;
    min-width: auto;
    transition: all 0.2s;
    width: auto;
    color: var(--Gray-500, #667085);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    min-height: 48px;
}

.wbc-sort-select:hover {
    border-color: #999;
}

.wbc-sort-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.wbc-sort-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wbc-sort-tag {
    padding: 11px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    color: var(--Gray-500, #667085);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-transform: none;
}

.wbc-sort-tag:hover {
    border-color: #999;
    color: #333;
}

.wbc-sort-tag.active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

@media (max-width: 768px) {
    .wbc-filter-toggle-wrapper {
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
    }
    
    .wbc-filter-quick-brands {
        justify-content: flex-start;
    }
    
    .wbc-quick-brand-item {
        min-width: 70px;
    }
    
    .wbc-filter-sort-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .wbc-sort-left {
        flex-direction: row;
        align-items: stretch;
    }
    
    .wbc-sort-select {
        width: auto;
    }
    
    .wbc-sort-right {
        justify-content: flex-start;
    }
    
    .wbc-sort-tag {
        flex: 1;
    }
    
    .wbc-filter-width-1,
    .wbc-filter-width-2,
    .wbc-filter-width-3 {
        grid-column: span 12;
    }
}