/* Стили для кнопок фильтра */
.ccf-filter-buttons {
    text-align: center;
    margin: 20px 0;
    padding: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ccf-filter-btn {
    display: inline-block;
    background: rgba(251, 251, 251, 0.75);
    border: 2px solid #ebebeb;
    padding: .125rem 1rem;
    text-decoration: none;
    color: #333;
    border-radius: .25rem;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: normal;
}

.ccf-filter-btn:hover,
.ccf-filter-btn.active {
    /*background: #333;*/
    /*color: white;*/
    border-color: #dfdfdf;
    text-decoration: none;
}
.ccf-filter-btn.active {
    background: #dfdfdf;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ccf-filter-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
    }

    /* Первая кнопка занимает 100% ширины */
    .ccf-filter-buttons .ccf-filter-btn:first-child {
        width: 100%;
        flex: 0 0 100%;
        order: -1;
    }

    /* Остальные кнопки */
    .ccf-filter-buttons .ccf-filter-btn:not(:first-child) {
        width: calc(50% - 4px);
        flex: 0 0 calc(50% - 4px);
    }

    .ccf-filter-btn {
        text-align: center;
        margin: 0;
        padding: .5rem 1rem;
        font-size: 13px;
        box-sizing: border-box;
    }
}