/* =========================================================
   ESHOP-SPORT 6.0
   MENU V6
   ========================================================= */


/* =========================================================
   ZÁKLADNÍ RESET
   ========================================================= */

.menu-v6-menu,
.menu-v6-menu *,
.menu-v6-toggle {
    box-sizing: border-box;
}


/* =========================================================
   HLAVNÍ MENU
   DESKTOP = ODDĚLENÍ POD SEBOU
   ========================================================= */

.menu-v6-menu {
    position: relative;

    display: block;

    width: 100%;
    max-width: 18.75rem; /* původních cca 289 px */

    height: auto;
    min-height: 0;

    margin: 0;
    padding: 0;

    background: transparent;

    overflow: visible;
}


/* =========================================================
   SEZNAM ODDĚLENÍ
   ========================================================= */

.menu-v6-list {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    list-style: none;

    background: #FFD700;

    border-top: 0.125rem solid #ffffff;
}


/* =========================================================
   ODDĚLENÍ
   ========================================================= */

.menu-v6-item {
    position: relative;

    display: block;

    width: 100%;
    height: 2.8125rem; /* 45 px */

    margin: 0;
    padding: 0;

    list-style: none;

    cursor: pointer;

    border-bottom: 0.125rem solid #ffffff;

    background: #FFD700;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


/* =========================================================
   HOVER ODDĚLENÍ
   ========================================================= */

.menu-v6-item:hover {
    background-color: #46a935;
}


/* =========================================================
   ODKAZ ODDĚLENÍ
   ========================================================= */

.menu-v6-link {
    display: flex;

    align-items: center;

    width: 100%;
    height: 2.8125rem; /* 45 px */

    margin: 0;
    padding: 0 0.9375rem;

    box-sizing: border-box;

    background: transparent;

    color: #eb0000;

    cursor: pointer;

    text-decoration: none;

    text-align: left;

    /*
     * Původní velikost textu.
     * Žádné zmenšování pomocí vw/clamp.
     */
    font-size: inherit;

    font-weight: inherit;

    line-height: 2.8125rem;
}


/* =========================================================
   HOVER ODKAZ
   ========================================================= */

.menu-v6-link:hover,
.menu-v6-item:hover > .menu-v6-link {
    color: #ffffff;

    text-decoration: none;
}


/* =========================================================
   IKONA ODDĚLENÍ
   ========================================================= */

.menu-v6-section-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 1.75rem;
    height: 1.75rem;

    margin-right: 0.5rem;
}


.menu-v6-section-icon svg {
    display: block;

    width: auto;
    height: 1.75rem;

    max-width: 100%;
    max-height: 100%;

    margin: 0;
    padding: 0;

    fill: #eb0000;
}


.menu-v6-item:hover
.menu-v6-section-icon svg {
    fill: #ffffff;
}


.menu-v6-section-icon i {
    display: block;

    margin: 0;
    padding: 0;

    font-size: 1.25rem;

    line-height: 1;
}


/* =========================================================
   NÁZEV ODDĚLENÍ
   ========================================================= */

.menu-v6-section-name {
    display: block;

    min-width: 0;

    margin: 0;
    padding: 0;

    line-height: 1.2;
}


/* =========================================================
   PODMENU KATEGORIÍ
   DESKTOP
   OTEVÍRÁ SE DOPRAVA
   ========================================================= */

.menu-v6-submenu {
    position: absolute;

    top: -0.125rem;
    left: 100%;

    z-index: 10050;

    display: none;

    width: min(
        41.25rem,
        65vw
    );

    height: auto;
    min-height: 0;

    margin: 0;
    padding: 0.5rem;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 0.35rem;

    list-style: none;

    background: #ffffff;

    border: 0.0625rem solid #444444;

    border-bottom-width: 0.1875rem;

    box-shadow:
        0 0.5rem 1.5rem
        rgba(0, 0, 0, 0.15);
}


/* =========================================================
   OTEVŘENÍ PODMENU
   ========================================================= */

.menu-v6-item:hover > .menu-v6-submenu,
.menu-v6-item:focus-within > .menu-v6-submenu {
    display: grid;
}


/* =========================================================
   POLOŽKA KATEGORIE
   ========================================================= */

.menu-v6-submenu-item {
    display: block;

    width: 100%;
    height: 2.5rem; /* původních 40 px */

    margin: 0;
    padding: 0;

    list-style: none;
}


/* =========================================================
   ODKAZ KATEGORIE
   ========================================================= */

.menu-v6-category-link {
    display: flex;

    align-items: center;

    width: 100%;
    height: 2.5rem;

    margin: 0;
    padding: 0 0.625rem;

    background: #ffffff;

    color: #444444;

    text-decoration: none;

    line-height: 2.5rem;
}


/* =========================================================
   HOVER KATEGORIE
   ========================================================= */

.menu-v6-category-link:hover,
.menu-v6-category-link:focus {
    background: #46a935;

    color: #ffffff;

    text-decoration: none;
}


/* =========================================================
   IKONA KATEGORIE
   ========================================================= */

.menu-v6-category-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 2.5rem;

    width: 2.5rem;
    height: 2.5rem;

    margin-right: 0.4rem;

    overflow: hidden;
}


.menu-v6-category-icon img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    margin: 0;
    padding: 0;

    object-fit: contain;
}


/* =========================================================
   NÁZEV KATEGORIE
   ========================================================= */

.menu-v6-category-name {
    display: block;

    min-width: 0;

    margin: 0;
    padding: 0;

    color: inherit;

    font-size: inherit;

    font-weight: inherit;

    line-height: 1.2;
}


/* =========================================================
   ZOBRAZIT CELÉ ODDĚLENÍ
   ========================================================= */

.menu-v6-submenu-all {
    grid-column: 1 / -1;

    display: block;

    width: 100%;

    margin: 0.2rem 0 0;
    padding: 0;

    border-top:
        0.0625rem solid #dddddd;
}


.menu-v6-submenu-all a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin: 0;
    padding: 0.55rem 0.5rem;

    background: #ffffff;

    color: #eb0000;

    text-decoration: none;

    font-size: inherit;

    font-weight: 700;
}


.menu-v6-submenu-all a:hover,
.menu-v6-submenu-all a:focus {
    color: #46a935;

    text-decoration: none;
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.menu-v6-toggle {
    display: none;

    align-items: center;

    width: 100%;

    min-height: 2.8125rem;

    margin: 0;
    padding: 0.5rem 0.7rem;

    border: 0;

    background: #FFD700;

    color: #eb0000;

    font-size: 1.4rem;

    cursor: pointer;

    text-align: left;
}


.menu-v6-toggle:hover,
.menu-v6-toggle:focus {
    background: #46a935;

    color: #ffffff;
}


.menu-v6-toggle i {
    margin-right: 0.5rem;
}


.menu-v6-toggle-text {
    font-size: inherit;
}


/* =========================================================
   TABLET + MOBIL
   DO 920 PX
   ========================================================= */

@media (max-width: 76.25rem) {

    /* -----------------------------------------------------
       HAMBURGER
       ----------------------------------------------------- */

    .menu-v6-toggle {
        display: flex;
    }


    /* -----------------------------------------------------
       MENU ZAVŘENÉ
       ----------------------------------------------------- */

    .menu-v6-menu {
        display: none;

        width: 100%;
        max-width: none;

        height: auto;

        margin: 0;
        padding: 0;

        overflow: visible;
    }


    /* -----------------------------------------------------
       MENU OTEVŘENÉ
       ----------------------------------------------------- */

    .menu-v6-menu.menu-v6-mobile-open {
        display: block;
    }


    /* -----------------------------------------------------
       ODDĚLENÍ
       ----------------------------------------------------- */

    .menu-v6-list {
        display: block;

        width: 100%;

        margin: 0;
        padding: 0;

        background: #FFD700;
    }


    .menu-v6-item {
        width: 100%;
        height: auto;

        min-height: 2.8125rem;
    }


    .menu-v6-link {
        width: 100%;

        min-height: 2.8125rem;
        height: 2.8125rem;

        padding: 0 0.75rem;

        font-size: inherit;

        text-align: left;
    }


    /* -----------------------------------------------------
       PODMENU
       ----------------------------------------------------- */

    .menu-v6-submenu {
        position: static;

        display: none;

        width: 100%;

        height: auto;

        margin: 0;
        padding: 0.5rem;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        background: #ffffff;

        border: 0;

        box-shadow: none;
    }


    /*
     * Otevřené podmenu
     */

    .menu-v6-item.menu-v6-open
    > .menu-v6-submenu {
        display: grid;
    }


    /*
     * Hover na mobilu nesmí sám
     * otevírat podmenu.
     */

    .menu-v6-item:hover
    > .menu-v6-submenu {
        display: none;
    }


    .menu-v6-item.menu-v6-open:hover
    > .menu-v6-submenu {
        display: grid;
    }
}


/* =========================================================
   MALÝ MOBIL
   ========================================================= */

@media (max-width: 35rem) {

    .menu-v6-submenu {
        grid-template-columns: 1fr;
    }
}
