body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.product-list {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.product-list select {
    width: 16%; /* Make the select box narrower on large screens */
    padding: 10px;
    font-size: 16px;
}

.product-details {
    width: 98%;
    overflow-x: auto; /* Enable horizontal scrolling */
}

.product-details-container {
    display: grid;
    grid-template-columns: repeat(9, 1fr); /* Create 9 equal-width columns */
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

.product-details-header {
    text-align: left;
    width: 100%;
    padding-left: 10px;
    box-sizing: border-box;
}

.header-row, .data-row {
    display: contents; /* Use CSS Grid display contents */
}

.cell {
    padding: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: 14px;
}

.header-row .cell {
    background-color: #f4f4f4;
    font-weight: bold;
    text-align: center;
}

.data-row .cell {
    text-align: left;
}

.data-row:nth-child(even) .cell {
    background-color: #f9f9f9;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    margin: 0 5px;
    text-decoration: none;
    color: #000;
}

.pagination a.active-page {
    font-weight: bold;
    color: #007bff;
}

/* Responsive Design for Small Screens */
@media (max-width: 800px) {
    .container {
        width: 100%; /* Ensure the container takes full width on small screens */
        padding: 0; /* Adjust padding */
    }

    .product-list select {
        width: 55%; /* Make the select box wider on small screens */
    }

    .product-details {
        width: 100%; /* Ensure the product details take full width on small screens */
        padding-left: 5px; /* Add some padding for better look */
        padding-right: 5px; /* Add some padding for better look */
        box-sizing: border-box;
    }

    .product-details-container {
        grid-template-columns: repeat(9, 1fr); /* Keep the same column widths */
        overflow-x: auto;
        padding: 0; /* Remove padding */
        margin: 0; /* Remove margin */
        box-sizing: border-box;
    }

    .cell {
        padding: 8px;
        border: 1px solid #ccc;
        box-sizing: border-box;
        white-space: nowrap;
        font-size: 14px;
    }
}
