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

h1 {
    text-align: center;
    padding: 10px 0;
}

nav {
    background-color: #333;
    overflow: hidden;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
}

nav ul li a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: #111;
}

.category {
    margin-bottom: 20px;
    padding: 0 10px;
}

.category h2 {
    background-color: #f8f8f8;
    padding: 10px;
    border: 1px solid #ddd;
    margin: 0;
}

.category h2 a {
    text-decoration: none;
    color: black;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0; /* Remove padding to avoid gaps */
    margin: 0; /* Remove margin to avoid gaps */
}

.product {
    flex: 0 0 49%; /* Ensure two items per row without gaps */
    box-sizing: border-box;
    margin-bottom: 0; /* Remove margin to avoid gaps */
    text-align: center;
}

.product img {
    width: 100%; /* Ensure images take the full width of the container */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* Remove padding to avoid gaps */
}

.details-container img {
    width: 100%; /* Ensure images take the full width of the container */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0; /* Remove any margin between images */
}
