    /* Mobile toggle button */
.menu-toggle {
    display: inline-block; /* show on all screens */
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    margin: 10px 0;
    z-index: 1002;
    position: relative;
}

/* Sidebar */
.category-sidebar {
    position: fixed;
    top: 0;
    left: -260px; /* hidden */
    width: 260px;
    height: 100%;
    background: #fff;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 1001;
    padding: 15px;
}

.category-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

    .head-aside {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    /* Category title */
    .head-aside h3 {
        font-size: 1rem;
        margin: 0;
        flex: 1; /* pushes arrow to the right */
    }

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Category list */
.main-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-list li {
    border-bottom: 1px solid #f1f1f1;
    padding: 8px 0;
}

.main-list h3 {
    display: inline-block;
    font-size: 1rem;
    margin: 0;
}

    .toggle-sub {
        background: none;
        border: none;
        font-size: 14px;
        cursor: pointer;
        margin-left: 8px;
        color: #333;
        flex-shrink: 0;
    }

.list-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 15px;
}

.list-wrap.active {
    max-height: 500px; /* enough for most cases */
    transition: max-height 0.4s ease-in;
}

.list-wrap li a {
    display: block;
    padding: 5px 0;
    font-size: 0.9rem;
    text-decoration: none;
    color: #333;
}

.list-wrap li a:hover {
    color: #007bff;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.overlay.active {
    display: block;
}
