my-sidebar {
    position: relative;
    width: 23%;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    color: black;
    transition: transform 0.3s ease;
    margin-left: 10px;
    margin-top: 20px;
    border-radius: 10px;
    border: 1.5px solid #161a1d;
    z-index: 150;
    overflow: hidden;
}

.side_nav {
    background-color: #202332;
}

.nav_top_links li a{
    color: azure;
}

.side_cat {
    background-color: #fdfbf9;
}

.nav_sidebar {
    display: none;
}

.sidebar-header {
    display: flex;
    background-color: #780000;
    width: 100%;
    margin-bottom: 15px;
    z-index: 5;
}

.sidebar .header_search {
    display: none;
}

.sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: rgb(250, 255, 255);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
    user-select: none;
}

.sidebar li.category-separator {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.sidebar a {
    color: black;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: block;
    padding-left: 10px;
    cursor: pointer;
}

.sidebar a:hover {
    color: #28a745;
}

.sidebar a.active {
    color: #28a745;
    font-weight: 700;
}

.sidebar .subcategory {
    font-weight: 600;
    margin-left: 20px;
    display: none;
    color: black;
    position: relative;
    padding-left: 12px;
}

.sidebar .subcategory::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: black;
}

.dropdown-arrow {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    position: absolute;
    right: 0;
    top: 50%;
    transform-origin: center;
    cursor: pointer;
    margin-top: -9px;
    padding: 5px;
    box-sizing: content-box;
    margin-right: 10px;
}

.dropdown-arrow.expanded {
    transform: rotate(-135deg);
}


@media (min-width: 769px) {
    my-sidebar.not-product {
        display: none;
    }
}

@media (max-width: 768px) {
    my-sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 35%;
        height: 100dvh;
        overflow-y: auto;
        z-index: 150;
        background-color: #202332;
    }

    my-sidebar.active {
        transform: translateX(0);
    }

    .sidebar {
        margin-top: 0;
        top: 0;
        left: 0;
        margin-top: 0;
        margin-left: 0;
        padding: 0;
        border: none;
        border-radius: 0;
    }

    .sidebar .header_search {
        display: block;
        margin-top: 7px;
        margin-left: 5px;
        margin-right: 15px;
    }

    .nav_sidebar {
        display: block;
        margin-top: 15px;
        margin-bottom: 5px;
    }

    .nav_top_links li {
        display: grid;
        padding-left: 5px;
        pading-top: 4px;
    }
}

@media (max-width: 384px) {
    my-sidebar {
        width: 75%;
    }
}
