
.products{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
     
}

.products .product {
    max-width: 300px;
    width: 17.3%;
    cursor: pointer;
    background-color: white;
    box-shadow: 0 0 15px #a39e9e;
    position: relative;
    margin: 9px;

    /* New */
    border:1px solid #c0b5b5; 
    border-radius: 12px;         
    overflow: hidden;            /* ensures children follow radius */
    transition: all 0.3s ease;  
}
/*.products .product:hover {*/
/*    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);*/
/*}*/



.products .product .image {
    overflow: hidden;
    position: relative;

    /* New */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.products .product .image img {
    width: 100%;
    display: block;

    /* Fix image bleed outside radius */
    border-radius: 12px 12px 0 0;
}

  .products .product .image .second{
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transition: 1.5s;
    transform: scale(1);
  }
  .products .product:hover .image .second{
    visibility: visible;
    opacity: 1;
    transform: scale(1.5);
  }
  .products .product .labels{
    position: absolute;
    top: 10px;
    left: 10px;
  }
  .products .product .labels > div{
    height: 50px;
    width: 50px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    margin-bottom: 10px;
    line-height: 15px;
  }
  
.products .product .content {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #eee; /*new separates image and content */
}

  .products .product .content .title{
     font-size: 17px;
    height: 50px;
    overflow: hidden;
    color: #031a43de;
    font-weight: 700;
  }
  .products .product .content del{
    color: rgb(175, 175, 175);
  }
  .products .product .content .price{
    margin-bottom: 10px;
  }
  .products .product .content .submit_button{
    margin-bottom: 0px;
    height: 32px;
    overflow: hidden;
    width: 100% !important;
    padding: 0px !important;
    padding-top: 5px !important;
    border-radius: 0 !important;
    border: none
  }
  .products .product .content .submit_button > .cart_btn{
    margin-bottom: 10px;
    font-size: 13px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
    .products .product .content .submit_button > .cart_btn2{
          margin-bottom: 10px;
    font-size: 13px;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    }
  .products .product .content .submit_button:hover > .cart_btn , 
  .products .product .content .submit_button:hover > .cart_btn2{
    margin-top: -34px;   
  }


.product-box .product-item .product_content {
    padding: 5px 5px;
    background-color: #fff;
}
.product-box .product-item .product_content h4 {
    line-height: 20px;
    display: block;
    font-size: 17px;
    text-transform: capitalize;
    font-weight: 600;
    margin-bottom: 0;
    
}
.product-box .product-item .product_content h4 a{
    text-decoration: none;
    color: var(--black);
}
.product-box .product-item .product_content h4 a:hover {
    color: #fdb813;
}
.product-box .product-item .product_content .price_box {
    display: flex;
    padding-bottom: 15px;
}
.product-box .product-item .product_content .price_box span.current_price {
    color: #f30;
    font-weight: 600;
    font-size: 17px;
}
.product-box .product-item .product_content .price_box span.old_price {
    text-decoration: line-through;
    font-weight: 400;
    font-size: 14px;
    margin-left: 10px;
}

.current_price{
    font-weight: 700;
    
}

@media (max-width: 360px) {
    .products .product .content .submit_button > .cart_btn {
        margin-bottom: 6px;
        font-size: 11px;
    }
    .products .product .content .submit_button{
        height: 29px;
        padding-top: 6px !important;
    }
    
}
