.product-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(20% - 10px), 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    overflow-x: hidden;
}

.product-cats .category {
    flex: 1 0 16.666%;
}

.product-cats .category a {
    box-sizing: border-box;
    display: flex;
    padding: 6px;
    flex-direction: row;
    align-items: center;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 6px;
    gap: 6px;
    color: black;
}

.category_img {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    width: 90px;
    max-width: 50px;
    height: 50px;
    overflow: hidden;
    transition: all .5s;
}

.category_img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.product-cats .category a:hover {
    border-color: #B8D54E;
}

/* Štýly pre mobilné zariadenia */
@media only screen and (max-width: 768px) {
    .product-cats {
        display: flex;
        flex-wrap: nowrap;
        /* Vypnúť zalamovanie pre malé zariadenia */
        overflow-x: auto;
        /* Povoliť horizontálne skrolovanie */

    }

    .product-cats .category {
        min-width: 30%;
    }
}

@media only screen and (max-width: 480px) {
    .product-cats .category {
        min-width: 40%;
    }
}