.product-grid{
font-family: 'Open Sans', sans-serif;
text-align: center;
margin-bottom: 40px;
overflow: hidden;
border: 1px solid transparent;
transition: all 0.5s;
}
.product-grid:hover{
border-color: rgba(0,0,0,0.15);
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
.product-grid .product-image{
overflow: hidden;
position: relative;
}
.product-grid .product-image a{ display: block; }
.product-grid .product-image img{
width: 100%;
height: auto;
}
.product-grid .product-image .pic-1{
border-left: 10px solid #fff;
border-right: 10px solid #fff;
transition: all 0.3s;
}
.product-grid:hover .product-image .pic-1{ transform: scale(1.09); }
.product-grid .add-to-cart{
color: #fff;
background-color: #6c5de2;
font-size: 16px;
line-height: 45px;
height: 45px;
width: 45px;
border-radius: 3px;
opacity: 0;
transform: translateX(-50%) translateY(-50%);
position: absolute;
left: 50%;
top: 0;
transition: all 0.3s;
}
.product-grid:hover .add-to-cart{
opacity: 1;
top: 50%;
}
.product-grid .add-to-cart:before,
.product-grid .add-to-cart:after{
content: attr(data-tip);
color: #fff;
background-color: #6c5de2;
font-size: 13px;
line-height: 22px;
padding: 2px 8px;
border-radius: 3px;
white-space: nowrap;
display: none;
transform: translateX(-50%);
position: absolute;
left: 50%;
top: -34px;
z-index: 1;
transition: all 0.3s ease 0s;
}
.product-grid .add-to-cart:after{
content: '';
height: 15px;
width: 15px;
border-radius: 0;
transform: translateX(-50%) rotate(45deg);
top: -20px;
z-index: -1;
}
.product-grid .add-to-cart:hover:before,
.product-grid .add-to-cart:hover:after{
display: block;
}
.product-grid .product-content{
padding: 10px;
position: relative;
}
.product-grid .title{
font-size: 18px;
font-weight: 600;
margin: 0 0 8px 0;
}
.product-grid .title a{ color: #000; }
.product-grid .title a:hover{ color: #6c5de2; }
.product-grid .price{
color: #000;
font-size: 18px;
font-weight: 600;
margin-bottom: 7px;
}
.product-grid .price span{
font-size: 13px;
vertical-align: top;
margin: 2px 0 0 0;
display: inline-block;
}
.product-grid .rating{
color: #ffce21;
font-size: 11px;
padding: 0;
margin: 0;
list-style: none;
}
.product-grid .rating .far{ color: rgba(0,0,0,0.2); }
.product-grid .social{
background-color: #fff;
width: 100%;
padding: 30px 0;
margin: 0;
list-style: none;
position: absolute;
left: 50%;
bottom: -100%;
transform: translateX(-50%);
transition: all 0.3s;
}
.product-grid:hover .social{ bottom: 0; }
.product-grid .social li{ display: inline-block; }
.product-grid .social li a{
color: #6c5de2;
line-height: 35px;
height: 35px;
width: 35px;
margin: 0 5px;
border: 1px solid #6c5de2;
border-radius: 3px;
display: block;
position: relative;
z-index: 1;
transition: all 0.3s;
}
.product-grid .social li a:hover{
color: #fff;
background-color: #6c5de2;
}
.product-grid .social li a:before,
.product-grid .social li a:after{
content: attr(data-tip);
color: #fff;
background-color: #6c5de2;
font-size: 13px;
line-height: 22px;
padding: 2px 12px;
border-radius: 3px;
white-space: nowrap;
display: none;
transform: translateX(-50%);
position: absolute;
left: 50%;
top: -37px;
z-index: 1;
transition: all 0.3s ease 0s;
}
.product-grid .social li a:after{
content: '';
height: 15px;
width: 15px;
border-radius: 0;
transform: translateX(-50%) rotate(45deg);
top: -26px;
z-index: -1;
}
.product-grid .social li a:hover:before,
.product-grid .social li a:hover:after{
display: block;
}
@media only screen and (max-width:990px){
.product-grid{ margin-bottom: 30px; }
}