/* Other styles */

.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px -10px;
}

.product-card {
    flex: 0 0 calc(20% - 20px); /* Each product card takes 25% width with margins */
    margin: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    justify-content: space-around;
}

.product-card img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

.product-card h3 {
    margin-top: 10px;
}

.product-card button {
    background-color: #000000;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    
}
.product-card button:hover {
    background-color: #555;
  }

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination span {
    padding: 8px;
    margin: 0 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination span.active {
    background-color: #4CAF50;
    color: white;
}

@media screen and (max-width: 768px) {
    .product-card {
        flex: 0 0 calc(50% - 20px); /* 2 products per row on smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .product-card {
        flex: 0 0 calc(100% - 20px); /* 1 product per row on even smaller screens */
    }
}
