* {
    box-sizing: border-box; /* Ensures padding and borders are included in element's total width */
}

.product-grid {
    display: grid;
    gap: 20px; /* Space between products */
    padding: 20px;
}

.product-item {
    border: 2px solid #ccc;
    padding: 15px;
    text-align: left;
    /* Basic styling for product items */
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    margin-top: 10px;
}

/* Mobile View: 2 columns */
@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr); /* Creates 2 columns of equal width */
    }
}

/* Desktop View (and larger tablets): 4 columns */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* Creates 4 columns of equal width */
    }
}
