/* Product Section */
.products-section {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center align items horizontally */
    justify-content: center;
    /* Center items vertically */
    width: 100%;
    padding: 100px;
    background: linear-gradient(to bottom, #0B0B0B, #222222);
    box-sizing: border-box;
}

/* Product Section Text */
.products-text {
    text-align: center;
    /* Center-align text */
    margin-bottom: 20px;
    /* Add spacing below the text */
    color: white;
}

.products-text h1 {
    text-transform: uppercase;
    font-size: 58px;
    color: red;
    margin-bottom: 10px;
    font-weight: 900;
}

.products-text p {
    text-transform: capitalize;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Products Grid */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Three columns */
    gap: 50px;
    width: 100%;
    margin: auto;
}

/* Product Item */
.product-item {
    display: flex;
    flex-direction: column;
    /* Stack image and text vertically */
    align-items: center;
    text-align: center;
    text-decoration: none;
    /* Remove underline */
    color: inherit;
    /* Inherit text color */
}




/* Images */
.product-item img {
    width: 100%;
    /* Ensure the image fills the container width */
    aspect-ratio: 1 / 1;
    /* Maintain a 1:1 ratio for a square box */
    object-fit: cover;
    /* Ensure the image covers the box without distortion */
    border-radius: 10px;
    /* Curved borders */
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.product-item img:hover {
    transform: scale(1.05);
    /* Zoom on hover */
}

.product-item:hover p {
    color: red;
    /* Change text color on hover */
}

/* Product Description */
.product-item p {
    text-transform: capitalize;
    margin-top: 10px;
    /* Add space between image and text */
    font-size: 16px;
    color: white;
    font-weight: 700;
}

@media (max-width: 1500px) {

    .products {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        /* Three columns */
        gap: 20px;
        width: 100%;
        margin: auto;
    }
}

@media (max-width: 1260px) {


    .products {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        /* Three columns */
        gap: 20px;
        width: 100%;
        margin: auto;
    }



}


@media (max-width: 1024px) {

    .products {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* Three columns */
        gap: 20px;
        width: 100%;
        margin: auto;
    }



}

@media (max-width: 768px) {

    .products {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Three columns */
        gap: 20px;
        width: 100%;
        margin: auto;
    }


}

@media (max-width: 480px) {

    .products-section {
        display: flex;
        flex-direction: column;
        /* Stack items vertically */
        align-items: center;
        /* Center align items horizontally */
        justify-content: center;
        /* Center items vertically */
        width: 100%;
        padding: 40px;
        background-color: #ffedd2;
        box-sizing: border-box;
    }

    .products-text h1 {
        text-transform: uppercase;
        font-size: 48px;
        color: red;
        margin-bottom: 10px;
        font-weight: 900;
    }

    .products-text p {
        text-transform: capitalize;
        font-size: 16px;
        margin-bottom: 20px;
        font-weight: 500;
    }

    .products {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Three columns */
        gap: 20px;
        width: 100%;
        margin: auto;
    }

    /* Product Item */
    .product-item {
        display: flex;
        flex-direction: column;
        /* Stack image and text vertically */
        align-items: center;
        text-align: center;
    }

    /* Images */
    .product-item img {
        width: 100%;
        height: auto;
        /* Maintain aspect ratio */
        object-fit: cover;
        border-radius: 10px;
        /* Curved borders */
        transition: transform 0.3s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .product-item img:hover {
        transform: scale(1.05);
        /* Zoom on hover */
    }

    /* Product Description */
    .product-item p {
        text-transform: capitalize;
        margin-top: 10px;
        /* Add space between image and text */
        font-size: 16px;
        color: white;
        font-weight: 700;
    }


}