#categories{
    padding-bottom: 50px;
}
a.categories-item {
    height: 292.5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    padding: 23px 0;
    overflow: hidden;
}

a.categories-item .categories-image {
    position: absolute;
    inset: 0;
    z-index: -1;
}
a.categories-item .categories-image img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
a.categories-item .categories-image + strong{
    color: #000;
    font-size: 24px;
    margin-top: 16px;
    margin-bottom: 4px;
    position: relative;
    display: block;
    margin: 0;
    width: fit-content;
    height: 50px;
    line-height: 50px;
    padding: 0 35px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
a.categories-item .categories-image + strong::after{
    content: ''; 
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(255, 255, 255, 0.9);
}
a.categories-item .categories-image + strong span{
    content: ''; 
    position: absolute;
    top: -28px;
    left: -29px;
    right: 10px;
    bottom: 13px;
    z-index: -1;
    border: 2px solid var(--red);
}
a.categories-item span {
    font-size: 17px;
    display: block;
    margin: auto auto 0 auto;
    height: 50px;
    line-height: 50px;
    padding: 0 38px;
}
a.categories-item .in-stock {
    top: -98px;
    left: -98px;
    transform: rotate(-45deg);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 21px;
    font-size: 26px;
    line-height: 23.5px;
    box-shadow: 5px 5px 20px 2px rgba(0,0,0,0.5);
}

#categories h2{
    font-size:45px
}

#categories .swiper-padding{
    padding: 0 14px;
}

#categories .swiper-button-prev {
    left: -36px;
}

#categories .swiper-button-next {
    right: -35px;
    transform: scale(-1);
}

#categories .swiper-button-next,
#categories .swiper-button-prev {
    background-image: url('../../images/swiper-arrow.png');
    background-size: 7px 11px;
    background-position: center;
    background-repeat: no-repeat;
    width: 37.5px;
    height: 37.5px;
    border-radius: 50%;
    border: 1px solid var(--dark-gray);
    top: calc(50% + 9px);
}
#categories .swiper-button-next::after,
#categories .swiper-button-prev::after {
    display: none;
}

@media screen and (max-width: 567px ) {
    #categories {
        padding-bottom: 0;
    }
    #categories h2 {
        margin-top: 38px;
        font-size: 29.5px;
        line-height: 31px;
    }
    #categories .swiper-padding {
        padding-right: 0;
    }
    #categories .swiper {
        overflow: visible;
    }
    a.categories-item {
        height: 210px;
        padding: 17px 0;
    }
    a.categories-item .in-stock {
        font-size: 19px;
        line-height: 17px;
        top: -86px;
        left: -85px;
        width: 160px;
        height: 160px;
        padding-bottom: 13px;
    }
    a.categories-item .categories-image + strong {
        font-size: 18px;
        height: 36px;
        line-height: 36px;
    }
    a.categories-item span {
        font-size: 17px;
        height: 50px;
        line-height: 50px;
        padding: 0 22px;
    }
    a.categories-item .categories-image + strong span {
        top: unset;
        left: -8px;
        right: 10px;
        bottom: 3px;
    }
}