/* Oprava kategorii iba na uvodnej stranke */

.home-page-category-grid {
    clear: both;
    position: relative;
    margin-top: 30px;
}

.home-page-category-grid .item-box {
    height: auto;
}

.home-page-category-grid .product-category-item .picture {
    position: relative;
    height: auto;
}

.home-page-category-grid .product-category-item .picture .title {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    margin: 10px 0 20px;
    text-align: center;
}

.home-page-category-grid .product-category-item .picture .title a {
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding: 12px 20px;
}

/* VERA: zarovnanie troch kategorii na uvodnej stranke.
   Ziadne zvacsovanie zdrojovych fotiek nad ich vlastne rozmery. */
.home-page-category-grid .product-category-item .picture > a.product-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 240px;
    overflow: hidden;
}
.home-page-category-grid .product-category-item .picture > a.product-img > img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.home-page-category-grid .product-category-item .picture .title {
    position: static;
    margin: 12px 0 18px;
    min-height: 52px;
}
.home-page-category-grid .product-category-item .picture .title a {
    line-height: 1.35;
    vertical-align: top;
}
@media (max-width: 767px) {
    .home-page-category-grid .product-category-item .picture > a.product-img {
        height: 200px;
    }
}
