body {
    font-family: "Roboto", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
button{
    cursor: pointer;
}
/* Overlay for Mobile Navigation */
.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    top: 80px; /* Below the header */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Main Body */
.main-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 100px; /* To prevent content being hidden behind fixed header */
}

/* Main Content Container */
.main-content-container {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

/* Left Navigation Section */

/* Main Content Section */
.main-content-section {
    flex: 1;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.main-content-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-content {
    font-size: 18px;
    color: #333;
}

/* Ads Section */
.ads-section {
    width: 100%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.ads-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-nav {
    display: none; /* Hidden by default, shown in media queries */
    background-color: #f9f9f9;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.miadx {
    width: 100%;
    padding: 4px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

.pagination {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.pagination button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
    background-color: #0056b3;
}

#page-info {
    font-size: 16px;
}

/* Responsive Styles */

@media (max-width: 767px) {
    /* Hide Left Navigation and Ads by default */
    .left-nav-section{
        display: none;
    }

    /* Show Ads after Main Content */
    .main-content-container {
        flex-direction: column;
    }

    /* Adjust Main Body to stack elements */
    .main-body {
        flex-direction: column;
    }
    /* Ads appear after main content */
    .ads-section {
        order: 3;
        width: 100%;
    }

    /* Main Content */
    .main-content-section {
        order: 2;
        width: 100%;
    }

    /* Left Navigation (when toggled) */
    .left-nav-section.active {
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        width: 75%;
        height: 100%;
        background-color: #fff;
        overflow-y: auto;
        z-index: 1001;
        padding: 10px;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        transition: transform 0.3s ease-in-out;
    }

    /* Overlay when Left Nav is Open */
    .overlay.active {
        display: block;
    }
}

/* Tablet View */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-body {
        flex-direction: column;
    }

    .main-content-container {
        flex: 2;
        display: flex;
        flex-direction: row;
        padding: 5px;
    }

    .left-nav-section {
        width: 25%;
        margin-right: 20px;
        display: block;
    }

    .main-content-section {
        width: 75%;
    }

    .ads-section {
        width: 100%;
        display: block;
    }

}

/* Large Screens (Desktop) */
@media (min-width: 1024px) {
    .main-body {
        flex-direction: row;
    }

    .main-content-container {
        flex: 2;
        display: flex;
        flex-direction: row;
        padding: 5px;
        width: 75%;
    }

    .left-nav-section {
        width: 25%;
        margin-right: 20px;
        display: block;
    }

    .main-content-section {
        width: 75%;
    }

    .ads-section {
        width: 20%;
        margin-left: 10px;
        display: block;
    }

    .cart-nav {
        display: block;
    }
}


/* Smooth Transitions for Interactive Elements */
.header-section,
.left-nav-section,
.main-content-section,
.ads-section,
footer {
    transition: all 0.3s ease-in-out;
}

