/*.products{
    background-color: red;
}
 */

.product-container{
   
    width: 100%;
    padding: 1.8rem;
 /*   background-color: rgba(251, 251, 251, 0.308) */
}
#product-list {
    
    display: grid;
    grid-template-columns: repeat(3, 1fr);
   
    align-items: start;
    justify-items: center;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
  /*  border-left: 1px solid rgba(182, 182, 182, 0.558);
    border-right: 1px solid rgba(182, 182, 182, 0.558);*/
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    position: relative; 
    overflow: hidden; 
}

.product-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.product-item:hover::before {
    opacity: 1;
}


.product-image {
    max-width: 70%;
    max-height: 70%;
    height: auto;
    flex: 1;
    object-fit: contain;
}

.product-item h3 {
    /*font-size: 3rem;*/
    margin: 1rem 0 0.5rem;
    text-align: center;
}

.product-item .btn {
   /* font-size: 1.3rem; */
    padding: 0.8rem 2rem;
  /*  background-color: #ffffff; */
   /* color: black; */
    border-radius: 2px;
    transition: all 0.3s ease;
}
#itemName {
  /*  font-size: 2.3rem; */
    padding: 0.8rem 2rem;
 /*   color: black; */
}

#itemPrice{
  /*  font-size: 1.9rem;*/
    padding: 0.8rem 2rem; 
 /*   color: grey;*/
}
.product-item a.itemDetails {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
}

@media (max-width: 880px) {
    #product-list {
        margin-top: 140px;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
     
        align-items: center;
        justify-items: center;
    }
    #product-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-item {
        max-width: 100%;
    }

    .product-image {
        max-width: 80%;
        max-height: 200px;
    }

    .product-item h3 {
        font-size: 2rem;
    }

    #itemName {
        font-size: 1.8rem;
    }

    #itemPrice {
        font-size: 1.5rem;
    }

  }
  
