
/* Hamburger tlačítko */
.cmd-menu-toggle {
    display: none;
    
    top: 0;
    right: 0;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    
}

/* Hlavní seznam */
.cmd-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cmd-menu > ul {
    display: flex;
    gap: 20px;
    flex-direction: row;
}

/* Položky menu */
.cmd-menu li {
    position: relative;
}

.cmd-menu li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #000;
    cursor: pointer;
}

/* Submenu Desktop */
.cmd-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 999;
}

.cmd-menu li ul li ul {
    top: 0;
    left: 100%;
}

/* Hover deaktivováno, JS řídí rozjíždění */
.cmd-menu.hover li:hover > ul {
    display: none;
}

/* Výchozí šipka u odkazu (pro PC) */
.cmd-menu li.has-children > a::after {
    content: "\25BE";
    float: right;
}

/* MOBILNÍ SEKCE */
@media (max-width: 991px) {
    .cmd-menu-toggle {
        display: block !important;
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        z-index: 10000;
        background: transparent;
        border-radius: 4px;
    }

    .cmd-menu > ul {
        display: none;
        position: fixed;
        left: 0;
        top: 55px;
        width: 100%;
        background: #ffffff;
        z-index: 9998;
        margin: 0;
        padding-left: 20px;
        padding-right: 20px;
        overflow-y: auto;
        border-top: 1px solid #eee;
        flex-direction: column;
    }

    .cmd-menu li {
        width: 100%;
    }

    .cmd-menu li a {
        padding: 15px 10px;
        font-size: 1.1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Schování původní CSS šipky u odkazu na mobilu (nahrazeno toggle prvkem) */
    .cmd-menu li.has-children > a::after {
        display: none !important;
    }

    /* Submenu Mobil */
    .cmd-menu li ul {
        display: none;
        position: static;
        width: 100%;
        background: #fafafa;
        padding-left: 20px;
        box-shadow: none;
        border: none;
    }
}

/* STICKY MENU LOGIKA */
#main-nav {
    /*position: fixed;
    top: 0;
    left: 0;*/
    width: 100%;
    z-index: 10000;
    transition: all 0.3s ease-in-out;
}

#top-buttons {
    padding: 10px 0;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

#header-main {
    padding: 15px 0;
    transition: all 0.3s ease-in-out;
}

body.header-is-sticky #top-buttons {
    padding: 2px 0;
}

body.header-is-sticky #top-buttons .top-btn {
    transform: scale(0.8);
    margin: 0 !important;
}

body.header-is-sticky #header-main {
    padding: 5px 0;
}

body.header-is-sticky #logo img {
    height: 35px;
}

/* ROZBALOVACÍ ŠIPKA (Toggle) */
.menu-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submenu-toggle {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submenu-toggle::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url(../../../themes/zstrebovska/assets/images/arrow.png);
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s;
}
@media (max-width: 992px) {
  .submenu-toggle::after {
    width: 15px;
    height: 15px;
  }    
}

@media (max-width: 992px) {
    .submenu-toggle::after {
        background-image: url(../../../themes/zstrebovska/assets/images/arrow_white.svg);
    }
}

.has-children.open > .menu-item-wrapper .submenu-toggle::after {
    transform: rotate(90deg);
}
