/* Карусель категорий */
.categories-carousel {
    position: relative;
}

.category-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-slide:hover {
    transform: translateY(-5px);
}

.category-image {
    width: 160px;
    height: 160px;
    background-image: linear-gradient(to left bottom, #e9ecef, #edeff2, #f1f2f4, #f5f5f7, #f8f8f9);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.4;
    transition: .3s ease all;
}

.category-slide:hover .category-name {
    color: var(--siniy);
}

/* Навигационные кнопки */

.categories-carousel .swiper-button-next {
    right: -70px;
}

.categories-carousel .swiper-button-prev {
    left: -70px;
}

.categories-carousel .swiper-button-next, .categories-carousel .swiper-button-prev {
    border: 1px solid var(--svetloseryy);
    top: 100px;
}

/* Адаптивность для стрелок */
@media (max-width: 1720px) {
    .swiper-button-next {
        right: 10px;
    }

    .swiper-button-prev {
        left: 10px;
    }
}

@media (max-width: 1640px) {
    .swiper-button-next,
    .swiper-button-prev {
        transform: scale(0.9);
    }

    .swiper-button-next {
        right: 5px;
    }

    .swiper-button-prev {
        left: 5px;
    }
}

@media (max-width: 1600px) {
    .swiper-button-next,
    .swiper-button-prev {
        transform: scale(0.8);
    }
}

/* Адаптивность для контента */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

    .categories-title {
        font-size: 28px;
    }

    .category-image {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .categories-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .categories-title {
        font-size: 24px;
    }

    .category-image {
        width: 120px;
        height: 120px;
    }

    .category-name {
        font-size: 14px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 480px) {
    .category-image {
        width: 100px;
        height: 100px;
    }

    .category-name {
        font-size: 13px;
    }
}