/**
 * BH-Größen Filter Styles
 */

.vv-bh-size-filter {
    padding: 0;
    margin-bottom: 30px;
}

.vv-filter-section {
    margin-bottom: 25px;
}

.vv-filter-section:last-of-type {
    margin-bottom: 25px;
}

.vv-filter-label {
    display: block;
    font-weight: 400;
    font-size: 13px;
    margin-bottom: 15px;
    color: #000;
    text-transform: none;
    letter-spacing: 0;
}

.vv-filter-buttons {
    display: block;
}

button.vv-filter-btn {
     padding-top: 0px !important;
     padding-bottom: 0px !important;
    font-size: 15px !important;

}

.vv-filter-btn {
    display: inline-block;
    vertical-align: top;
    padding: 0px 10px;
    background: #fff;
    border: 1px solid #9a9a9a;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    transition: all 0.2s ease;
    min-width: 55px;
    text-align: center;
    line-height: 1;
    margin: 0 10px 10px 0;
}

.vv-filter-btn:hover {
    border-color: #999;
    background: #f5f5f5;
}

.vv-filter-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
    border-width: 1px;
}

.vv-filter-btn.disabled,
.vv-filter-btn:disabled {
    background: #fff;
    color: #999;
    border-color: #ddd;
    border-width: 1px;
    cursor: not-allowed;
    position: relative;
    opacity: 0.6;
}

.vv-filter-btn.disabled::after,
.vv-filter-btn:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #999;
    transform: translateY(-50%) rotate(-10deg);
}

.vv-filter-btn.disabled:hover,
.vv-filter-btn:disabled:hover {
    background: #fff;
    border-color: #ddd;
    color: #999;
}

.vv-filter-reset {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.vv-reset-filter-btn {
    display: inline-block;
    cursor: pointer;
    font-size: 15px;
    color: #d9121f;
    _text-decoration: underline;
    transition: color 0.2s ease;
}

.vv-reset-filter-btn:before {
    font-size: 70%;
    margin-right: 5px;
    font-family: 'themify';
    font-weight: normal;
    font-style: normal;
    letter-spacing: 0;
    content: "\e646";
}

.vv-reset-filter-btn:hover {
    text-decoration: none !important;
}

/* Loading Overlay */
.vv-filter-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.vv-filter-loading.active {
    display: flex;
}

.vv-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: vv-spin 1s linear infinite;
}

@keyframes vv-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Produktliste Loading State */
.products.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .vv-filter-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 45px;
    }

    .vv-bh-size-filter {
        padding: 15px 0;
    }

    .vv-filter-label {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .vv-filter-buttons {
        gap: 6px;
    }

    .vv-filter-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 40px;
    }
}

/* Widget Sidebar Anpassungen */
.widget.widget_vv_bh_size_filter .vv-bh-size-filter {
    padding: 0;
}

.widget.widget_vv_bh_size_filter .widget-title {
    margin-bottom: 15px;
}

/* Integration mit Yobazar Theme */
.sidebar .widget_vv_bh_size_filter {
    margin-bottom: 30px;
}

.sidebar .vv-filter-btn.active {
    background: var(--ts-primary-color, #000);
    border-color: var(--ts-primary-color, #000);
}

.sidebar .vv-filter-btn:hover {
    border-color: var(--ts-primary-color, #000);
}
