/*
 * Mustek Mobile Category Nav
 * Desktop: no visual change.
 * Mobile: creates a reusable expandable copy of existing .product-side-menu.
 */

.mustek-mobile-category-nav {
    display: none;
}

@media (max-width: 768px) {
    .mustek-mobile-category-nav {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 0 0 22px 0;
    }

    .mustek-mobile-category-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        box-sizing: border-box;
        padding: 12px 0;
        margin: 0;
        background: transparent;
        border: 0;
        border-bottom: 1px solid #d7dee8;
        border-radius: 0;
        box-shadow: none;
        color: #102033;
        font-family: inherit;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.3;
        text-align: left;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }

    .mustek-mobile-category-toggle:hover,
    .mustek-mobile-category-toggle:focus,
    .mustek-mobile-category-toggle:active {
        background: transparent;
        color: #0b6f80;
        box-shadow: none;
        outline: none;
    }

    .mustek-mobile-category-label {
        min-width: 0;
    }

    .mustek-mobile-category-arrow {
        flex: 0 0 auto;
        margin-left: auto;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
    }

    .mustek-mobile-category-content {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 0 4px 0;
    }

    .mustek-mobile-category-content[hidden] {
        display: none !important;
    }

    /* Reuse existing menu visual language, but never sticky/scroll inside mobile. */
    .mustek-mobile-category-content .product-side-menu,
    .mustek-mobile-category-content .mustek-category-tree,
    .mustek-mobile-category-content .mustek-category-tree-mobile {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }
}
