/* Стили для десктопной версии */
ul.product-cats {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
    margin-bottom: 30px;
    overflow-x: auto;
}

ul.product-cats li {
    list-style: none;
    margin: 8px;
    width: calc(25% - 16px);
    box-sizing: border-box;
    padding: 8px;
    position: relative;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    -webkit-clip-path: polygon(100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 0);
    clip-path: polygon(100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 0);
}

ul.product-cats li img {
    max-width: 60%;
    height: auto;
    margin-bottom: 8px;
}

ul.product-cats li a {
    display: contents;
}

ul.product-cats h5 {
    font-size: 16px;
    line-height: normal;
    font-weight: 400;
    margin: 0;
    text-align: center;
    word-break: break-word;
}

/* Стили для мобильной версии */
@media screen and (max-width: 767px) {
    ul.product-cats {
        flex-wrap: wrap;
        justify-content: center;
    }
    ul.product-cats li {
        width: calc(33.33333% - 10px);
        margin: 4px;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
    ul.product-cats li img {
        max-width: 60%; /* Устанавливаем максимальную ширину изображения на 40% */
        height: auto;
        margin-bottom: 8px;
    }
    ul.product-cats h5 {
        font-size: 13px;
        text-align: center;
    }
}