.category-tabs-section {
    position: relative;
    margin: 18px 0;
    overflow: hidden;
    border: 1px solid #eee3dc;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(81, 50, 35, 0.08);
}

.category-tabs-section__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid #f1e5de;
    background: linear-gradient(135deg, #fff8f3 0%, #f8e7da 100%);
}

.category-tabs-section__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    color: #d96f40;
    box-shadow: 0 6px 16px rgba(183, 94, 53, 0.12);
    font-size: 17px;
}

.category-tabs-section__heading {
    min-width: 0;
}

.category-tabs-section__heading h2 {
    margin: 0 0 3px;
    color: #2f2926;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1.25;
    text-transform: uppercase;
}

.category-tabs-section__heading p {
    margin: 0;
    color: #7b6c64;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.category-tabs {
    padding: 14px;
}

.category-tabs .category-tabs__list {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 9px;
    border: 0;
    list-style: none;
}

.category-tabs .category-tabs__item {
    display: flex;
    min-width: 0;
    flex: 1 1 170px;
    margin: 0;
}

.category-tabs .category-tabs__link {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid #eadfd9;
    border-radius: 13px;
    background: #fbf9f7;
    color: #514944;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.035em;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-tabs .category-tabs__link i {
    flex: 0 0 auto;
    color: #d9784a;
    font-size: 12px;
    transition: color 0.2s ease;
}

.category-tabs .category-tabs__link:hover,
.category-tabs .category-tabs__link:focus {
    border-color: #dfbca9;
    background: #fff5ee;
    color: #b9562d;
    text-decoration: none;
    box-shadow: 0 7px 16px rgba(123, 72, 47, 0.1);
    outline: 0;
    transform: translateY(-1px);
}

.category-tabs .category-tabs__link:focus-visible {
    box-shadow: 0 0 0 3px rgba(217, 115, 67, 0.16);
}

.category-tabs .category-tabs__link.is-active,
.category-tabs .category-tabs__link[aria-current="page"] {
    border-color: transparent;
    background: linear-gradient(135deg, #e98c58 0%, #cf6438 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(194, 88, 43, 0.22);
}

.category-tabs .category-tabs__link.is-active i,
.category-tabs .category-tabs__link[aria-current="page"] i {
    color: #fff;
}

@media (max-width: 575.98px) {
    .category-tabs-section {
        margin: 14px 0;
        border-radius: 16px;
    }

    .category-tabs-section__header {
        padding: 12px 13px;
    }

    .category-tabs-section__icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }

    .category-tabs-section__heading h2 {
        font-size: 13px;
    }

    .category-tabs-section__heading p {
        font-size: 11px;
    }

    .category-tabs {
        padding: 12px 0 13px;
    }

    .category-tabs .category-tabs__list {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0 12px 5px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        scrollbar-color: #e6c8b7 transparent;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .category-tabs .category-tabs__list::-webkit-scrollbar {
        height: 4px;
    }

    .category-tabs .category-tabs__list::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: #e6c8b7;
    }

    .category-tabs .category-tabs__item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .category-tabs .category-tabs__link {
        width: auto;
        min-width: 142px;
        min-height: 43px;
        padding: 9px 12px;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-tabs .category-tabs__link,
    .category-tabs .category-tabs__link i {
        transition: none;
    }
}
