
/* =========================================
   PTAKOVINY.CZ – IKONKY PODKATEGORII
   BRANDING 9.2 – TEST
   ========================================= */

/* KLIKACI POLOZKA */

.category-top .subcategories.with-image li > a {
    display: flex;
    align-items: center;
    min-width: 0;
    height: auto !important;
    min-height: 84px;
    padding: 8px;
    border-radius: 12px;
    overflow: visible;
    text-decoration: none !important;
    transition: background .25s ease,
                transform .25s ease;
}

/* BILA CTVERCOVA IKONKA */

.category-top .subcategories.with-image li > a .image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    margin-right: 12px;
    padding: 6px;
    background: #ffffff !important;
    border: 1px solid #e3e6df;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .25s ease;
}

/* FOTOGRAFIE BEZ OREZU */

.category-top .subcategories.with-image li > a .image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff !important;
}

/* NAZEV KATEGORIE */

.category-top .subcategories.with-image li > a .text {
    display: block;
    min-width: 0;
    color: #29242c;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    max-height: none !important;
    text-decoration: none !important;
    transition: color .25s ease;
}

/* HOVER */

@media (hover: hover) {
    .category-top .subcategories.with-image li > a:hover {
        background: #f7f7f4;
        transform: translateY(-2px);
    }

    .category-top .subcategories.with-image li > a:hover .image {
        border-color: #a3c94f;
    }

    .category-top .subcategories.with-image li > a:hover .text {
        color: #d62b56;
    }
}

/* BEZ PODTRZENI */

.category-top .subcategories.with-image li > a:hover,
.category-top .subcategories.with-image li > a:hover * {
    text-decoration: none !important;
}

/* OVLADANI KLAVESNICI */

.category-top .subcategories.with-image li > a:focus-visible {
    outline: 2px solid #d62b56;
    outline-offset: 2px;
}

/* MOBIL – DVA SLOUPCE, MENSI MEZERY */

@media (max-width: 767px) {

    .category-top .subcategories.with-image li > a {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 0 !important;
        padding: 6px 4px !important;
        text-align: center;
    }

    .category-top .subcategories.with-image li > a .image {
        flex: 0 0 76px !important;
        width: 76px !important;
        height: 76px !important;
        margin: 0 0 7px !important;
    }

    .category-top .subcategories.with-image li > a .text {
        width: 100%;
        text-align: center;
        font-size: 15px;
        line-height: 1.3;
    }

    .category-top .subcategories.with-image li {
        margin-bottom: 4px !important;
    }
}

/* OMEZENI ANIMACI */

@media (prefers-reduced-motion: reduce) {
    .category-top .subcategories.with-image li > a,
    .category-top .subcategories.with-image li > a .image,
    .category-top .subcategories.with-image li > a .text {
        transition: none;
    }
}
