﻿.products-section {
    background-color: #dbdada;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 6rem;
}

    .products-section h1 {
        font-family: 'Saira Stencil One', sans-serif;
        font-size: 4.8rem;
        margin-bottom: 2rem;
        color: #000;
        justify-self: baseline;
    }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    justify-items: center;
    padding: 4em;
}

.product-card {
    background: linear-gradient(to bottom right, #fb5500, #1a1a1a);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: white;
    width: 100%;
    max-width: 280px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .product-card img {
        max-width: 200px;
        width: 100%;
        height: auto;
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .product-card h3 {
        font-size: 1.3rem;
        font-weight: bold;
        margin: 0.5rem 0;
    }

    .product-card p {
        font-size: 0.9rem;
        color: #ddd;
    }

    /* Hover effect */
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

/* ------------------- */
/* ✅ Responsive tweaks */
/* ------------------- */

/* Tablets */
@media (max-width: 992px) {
    .products-section h1 {
        font-size: 3.5rem;
    }

    .product-card {
        max-width: 240px;
    }
}

/* Mobiles */
@media (max-width: 730px) {
    .products-section {
        padding: 3rem 1rem;
    }

        .products-section h1 {
            font-size: 3rem;
        }

    .products-grid {
        grid-template-columns: 1fr; /* single column on phones */
    }

    .product-card {
        max-width: 100%;
    }
}
@media (max-width: 430px) {
    .products-section {
        padding: 3rem 1rem;
        margin-top: 7rem;
    }

        .products-section h1 {
            font-size: 3rem;
        }

    .products-grid {
        grid-template-columns: 1fr; /* single column on phones */
        padding: 2rem
    }

    .product-card {
        max-width: 100%;
    }
}
