.products-container {
    padding: 20px;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 20px;
    margin: 80px auto;
}
.product-card {
    position: relative;
    margin: 0 auto;
    width: 90%;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border: 2px solid #dddddd00;
    box-shadow: 0 10px 20px #00000080;
    padding: 10px;
    text-align: center;
    border-radius: 20px;
    transition: 0.3s ease-in-out;
}

.product-card:hover{
    transform: scale(1.05);
    border: solid 2px #0e3083;
}

.product-card img {
    width: 70%;
    height: auto;
    margin-bottom: 5px;
    border-radius: 10px;
}

.product-title{
    /* white-space: nowrap; */
    font-size: 1.2em;
    color: #f29400;
    margin-block: 15px;
}

.product-price{
    position: absolute;
    width: 95.5%;
    bottom: 10px;
    left: 0px;
    font-size: 1em;
    text-align: center;
    color: white;
    background-color: #0e3083;
    padding: 5px;
    border-bottom: 2px solid #f29400;
}

.add-to-cart-btn{
    background-color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    position: absolute;
    top: -8px;
    right: -8px;
    border-radius: 50%; 
    padding: 0;

    img{
        margin: 0 auto;
        width: 40px;
    }
}

.add-to-cart-btn:hover{
    transform: scale(1.2) rotateZ(360deg);
}

@media screen and (width < 1440px) {
    body{
    padding-top: 80px;
    }
}


@media screen and (width < 1025px) {
    .products-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .product-card img {
        height: auto;
        margin-bottom: 5px;
        border-radius: 10px;
    }
}


@media screen and (width < 900px) {
    .products-container {
        margin: 40px auto;
    }
}

@media screen and (width < 470px) {
    .products-container {
        padding: 0;
        margin-top: 20px;
        grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    }

    .product-title{
        white-space: inherit;
    }
}