/* General styling */


/* Container */
.product_container {
    display: flex;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    margin-top: 80px;
    flex-wrap: wrap; /* Flex wrap to stack items on smaller screens */
    box-sizing: border-box;

}

/* Sidebar styling */
.sidebar {
    width: 20%;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar h2, .sidebar h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    font-size: 16px;
    margin-bottom: 5px;
    cursor: pointer;
    padding: 5px;
    transition: background-color 0.3s;
}

.sidebar ul li.active {
    color: #0b425d;
    border-bottom: 2px solid #0b425d;
    font-weight: bold;
}

/* Products section styling */
.products-section {
    width: 80%;
    padding: 20px;
    box-sizing: border-box;
}

.products-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-item {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: start;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: auto;
}

.product-item h3 {
    font-size: 16px;
    margin: 10px 0;
}

.product-item p {
    font-size: 14px;
    color: #555;
}

.product-item a {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.product-item a:hover {
    text-decoration: underline;
}

/* Hide the extra details text by default */
.extra-details {
    display: none;
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

/* Style for when details are shown */
.product-item .details-link.active {
    color: #555;
    text-decoration: underline;
}

/* Product list styling */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Pagination controls styling */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 12px;
    margin: 0 5px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#page-numbers span {
    margin: 0 3px;
    padding: 5px 10px;
    cursor: pointer;
}

#page-numbers .active {
    font-weight: bold;
    color: #007bff;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .sidebar {
        width: 30%; /* Sidebar width increased */
    }
    .products-section {
        width: 70%; /* Product section width adjusted */
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 20%;
        text-align: center; /* Center text for small screens */
    }
    .products-section {
        width: 80%;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Show 2 items per row */
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr; /* Show 1 item per row */
    }
    .sidebar h2, .sidebar h3 {
        font-size: 16px;
    }
    .sidebar ul li {
        font-size: 14px;
    }

    .sidebar {
        width: 20%;
        text-align: center; /* Center text for small screens */
    }
    .products-section {
        width: 80%;
    }
    .products-grid {
        grid-template-columns: repeat(1, 1fr); /* Show 2 items per row */
    }

    
}
