.products-page {
    max-width: 1200px;
    margin: 3rem auto;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two side-by-side */
    gap: 2rem;
}

/* Row-style product */
.product-row {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;

    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-row:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Big image on the left */
.product-image {
    width: 320px;
    height: 240px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
    margin: auto; 
}

/* Info pinned toward bottom */
.product-info {
    /* display: flex;
    flex-direction: column;
    justify-content: flex-start; */
    /* padding-bottom: 0.5rem; */
    padding: 1.25rem 1.5rem;
}

.product-info h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #374151;
    max-width: 480px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .product-list {
        grid-template-columns: 1fr; /* stack vertically */
    }
    .product-row {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        height: 220px;
    }
}