/* Burger Menu Styles */
.burger-menu {
    display: none; /* Hidden on larger screens */
    cursor: pointer;
    font-size: 30px; /* Adjust size of the icon */
    color: #000; /* Change the color of the icon */
    padding: 10px;
    background-color: transparent;
    border: none;
    transition: color 0.3s ease; /* Smooth transition on hover */
    z-index: 999;
	margin-left: 0px!important;
}

.burger-menu i {
    display: block;
    width: 30px; /* Width of the burger bars */
    transition: all 0.3s ease;
}

/* Add some space between bars */
.burger-menu i:nth-child(1) {
    margin-bottom: 5px;
}

.burger-menu i:nth-child(2) {
    margin-bottom: 5px;
}

/* Rotate the bars when the sidebar is open */
.sidebar.open + .site-header .burger-menu i:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px); /* First bar rotated */
}

.sidebar.open + .site-header .burger-menu i:nth-child(2) {
    opacity: 0; /* Hide the middle bar */
}

.sidebar.open + .site-header .burger-menu i:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px); /* Third bar rotated */
}

/* Mobile screens: Show the burger menu */
@media (max-width: 1027px) {
    .burger-menu {
        display: block; /* Display on mobile devices */
    }
}

/* Sidebar and Sidebar Overlay styles */
.sidebar, .sidebar-overlay {
    position: fixed;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease; /* Smooth sliding effect */
	z-index: 1001;
	left: -250px; /* Initially off-screen */
}

/* When the sidebar is open */
.sidebar.open {
    left: 0; /* Move sidebar into view */
}

/* When the overlay sidebar is open */
.sidebar-overlay.open {
    left: 0; /* Move the overlay sidebar into view */
    z-index: 1002; /* Ensure the overlay sidebar sits on top of the regular sidebar */
    transition: left 0.3s ease, opacity 0.3s ease; /* Smooth sliding effect with opacity transition */
    opacity: 1; /* Fade in */
}

/* Sidebar Content */
.sidebar-content, .sidebar-overlay .sidebar-content {
    padding: 20px;
    overflow-y: auto;
}

/* Title in sidebar/overlay */
.sidebar h3, .sidebar-overlay h3 {
    margin-top: 0;
}

.sidebar-content h3 {
	text-align: center;
}
/* Back button in sidebar/overlay */
.sidebar .back-button, .sidebar-overlay .back-button {
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Subcategory list styles in sidebar/overlay */
.sidebar ul, .sidebar-overlay ul {
    list-style: none;
    padding-left: 0;
}

.sidebar ul li, .sidebar-overlay ul li {
    margin: 5px 0;
}

.sidebar ul li a, .sidebar-overlay ul li a {
    text-decoration: none;
    color: #333;
}

.category-menu {
	text-align:left;
}

/* Mobile responsiveness: Sidebar on top of content */
@media (max-width: 1027px) {
    .sidebar, .sidebar-overlay {
        width: 250px;
    }

    /* Content will shift when either sidebar is open */
    .sidebar.open + #main-content, .sidebar-overlay.open + #main-content {
        margin-left: 250px;
    }
}

/* Container for back button and close button */
.back-button-container {
    display: flex;
    justify-content: space-between; /* Pushes the close button to the far right */
    align-items: center; /* Vertically aligns the buttons */
    position: relative;
}

#sidebar-back-button-container {
	justify-content: flex-end;
}
/* Style for the back button */
.back-button {
    font-size: 16px;
    cursor: pointer;
}

/* Style for the close button (already included earlier) */
.close-btn {
    background: none;
    border: none;
    font-size: 38px;
    cursor: pointer;
    color: #000;
    padding: 0;
	margin-bottom: 10px;
}

.close-btn:hover {
    color: #ff0000; /* Optional hover color */
	background: none; 
}

