/* Responsive Blog CSS with Collapsible Sidebar */

/* General Reset */
a {
    text-decoration: none;
    color: inherit;
}

/* Sidebar */
.sidebar {
    width: 230px;
    padding-right: 1%;
    padding-top: 1.2%;
    background: white;
    border-right: 2px solid #111;
}

.sidebar a.active {
    font-weight: bold;
    color: green;
    text-decoration: underline;
}

.sidebar h2 {
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding-top: 15px;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    transition: 0.3s ease-in-out;
}

.sidebar ul li a:hover {
    color: gold;
    text-decoration: underline;
}

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

.sidebar-content {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
}

.sidebar-content.open {
    right: 0;
}

.close-sidebar {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px;
    background-color: #706C41;
    color: white;
    border-radius: 5px;
    margin-bottom: 20px;
}

.sidebar-toggle {
    display: none;
    padding: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #706C41;
    color: white;
    border-radius: 5px;
}

@media (max-width: 900px) {
    .post-container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .sidebar-toggle {
        display: block;
        margin: 10px;
    }

    .blog-post {
        width: 100%;
        padding: 10;
    }

    .product-grid {
        flex-wrap: wrap;
    }
}

@media (min-width: 690px) {
    .overlay-sidebar, .sidebar-toggle {
        display: none;
    }

    .sidebar {
        display: block !important;
        position: relative;
    }

    .overlay-sidebar {
        display: none !important;
    }

    .sidebar-content {
        position: static;
        box-shadow: none;
        transition: none;
    }
}