.block-categories {
    padding: 0 50px;
    margin-top: 50px;
}

.block-categories__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.block-categories__title {
    font-family: 'ABC Prophet', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 35px;
    margin: 0;
}

.block-categories__nav {
    display: flex;
    gap: 10px;
}

.block-categories__arrow {
    width: 40px;
    height: 40px;
    background: #FFF;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    color: var(--bs-ink);
}

.block-categories__arrow:hover {
    background: var(--bs-ink);
    color: #FFF;
}

.block-categories__slider {
    overflow: hidden;
}

.block-categories__track {
    display: flex;
    gap: 25px;
    transition: transform 0.3s ease;
}

.block-categories__item {
    position: relative;
    flex: 0 0 calc((100% - 75px) / 4);
    text-decoration: none;
    color: inherit;
    background-color: var(--bs-cream);
}

.block-categories__image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 0;
}

.block-categories__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.block-categories__name {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 100%;
    color: var(--bs-ink);
    padding: 25px 25px;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 767px) {
    .block-categories__header {
        margin-bottom: 10px;
    }

    .block-categories__nav {
        display: none;
    }

    .block-categories__slider {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .block-categories__slider::-webkit-scrollbar {
        display: none;
    }

    .block-categories__track {
        transform: none !important;
        transition: none;
    }

    .block-categories__item {
        flex: 0 0 300px;
        min-width: 300px;
    }
}
