.custom-home-categories-section {
    background: #FFF;
    padding: 112px 0;
}

.custom-home-categories-section .container {
    padding: 0;
}

.custom-home-categories-section__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 0 0 48px;
}

.custom-home-categories-section__title {
    margin-bottom: 0 !important;
    text-align: center;
}

.custom-home-categories-section__text {
    color: #36485C;
    font-size: 18px;
    font-weight: 400;
    line-height: 25.2px;
    text-align: center;
}

.custom-home-categories-section__tab-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 52px;
}

.custom-home-categories-section__tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid #8CB747;
    border-radius: 7px;
    background: transparent;
    color: #8CB747;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.custom-home-categories-section__tab-button:hover,
.custom-home-categories-section__tab-button:focus,
.custom-home-categories-section__tab-button.is-active {
    border-color: #8CB747;
    background: #8CB747;
    color: #FFF;
}

.custom-home-categories-section__tab-button:focus-visible {
    outline: 2px solid #36485C;
    outline-offset: 3px;
}

.custom-home-categories-section__tab-content {
    width: 100%;
}

.custom-home-categories-section__tab-panel[hidden] {
    display: none !important;
}

.custom-home-categories-section__categories {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 32px 20px;
    width: 100%;
}

.custom-home-categories-section__category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #36485C;
    text-align: center;
    text-decoration: none;
}

.custom-home-categories-section__category:hover {
    color: #8CB747;
}

.custom-home-categories-section__category-image {
    display: block;
    width: 100%;
    max-width: 120px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    background: #FAF7F2;
}

.custom-home-categories-section__category-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.custom-home-categories-section__category:hover
.custom-home-categories-section__category-thumbnail {
    transform: scale(1.05);
}

.custom-home-categories-section__category-title {
    display: block;
    max-width: 140px;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    transition: color 0.2s ease;
}

.custom-home-categories-section__empty {
    margin: 0;
    color: #36485C;
    text-align: center;
}

@media (max-width: 1199px) {
    .custom-home-categories-section__categories {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 40px 24px;
    }
}

@media (max-width: 991px) {
    .custom-home-categories-section__tab-navigation {
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: 100%;
        padding: 0 20px 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .custom-home-categories-section__tab-navigation::-webkit-scrollbar {
        display: none;
    }

    .custom-home-categories-section__tab-button {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .custom-home-categories-section__title,
    .custom-home-categories-section__text {
        text-align: left;
    }

    .custom-home-categories-section__tab-navigation {
        width: auto;
        margin-right: -20px;
        margin-bottom: 40px;
        margin-left: -20px;
    }

    .custom-home-categories-section__categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
    }

    .custom-home-categories-section__category {
        gap: 16px;
    }

    .custom-home-categories-section__category-image {
        max-width: 132px;
    }

    .custom-home-categories-section__category-title {
        font-size: 15px;
        line-height: 20px;
    }
}

@media (max-width: 1199px) {
    
}

@media (max-width: 991px) {
    
}

@media (max-width: 767px) {
    .custom-home-categories-section {
        padding: 64px 0;
    }

    .custom-home-categories-section__header {
        align-items: flex-start;
        gap: 16px;
        margin: 0 0 32px;
    }
}
