body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #000;
}

.container {
    display: flex;
    gap: 20px;
    padding: 120px;
}

/* Product grid */
.products {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;   /* center grid items */
    align-items: center;       /* vertically align if possible */
}

.product-card {
    text-align: left;
    text-decoration: none;
    color: inherit;
    margin: 0 auto; /* keep product card centered on small screens */
}

.product-card:link,
.product-card:visited,
.product-card:hover,
.product-card:active {
    text-decoration: none;
    color: inherit;
}

.product-card img {
    width: 100%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 10px;
}

.collection {
    color: #ff8000;
    margin: 10px 0 5px;
    font-size: 16px;
}

.product-card h3 {
    font-size: 20px;
    margin: 0;
}

/* Hover effect */
.product-card:hover h3 {
    color: #ff8000;
}

/* =========== Responsive Design =======*/
@media (max-width: 1200px) {
    .container {
        padding: 60px;
    }
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        padding: 40px 20px; /* reduce padding so content stays centered */
    }

    .sidebar {
        max-width: 100%;
    }

    .products {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .products {
        grid-template-columns: 1fr; /* single column on very small screens */
    }

    .product-card {
        width: 100%;
        max-width: 350px; /* keeps nice centered card size */
    }
}
