.product-grid{ background-color: #fff; font-family: 'Source Sans Pro', sans-serif; text-align: center; } .product-grid .product-image{ overflow: hidden; position: relative; } .product-grid .product-image a.image{ display: block; } .product-grid .product-image img{ width: 100%; height: auto; } .product-grid .product-image .pic-1{ transition: all 0.5s ease 0s; } .product-grid .product-image:hover .pic-1{ opacity: 0; } .product-grid .product-image .pic-2{ width: 100%; height: 100%; backface-visibility: hidden; opacity: 0; position: absolute; top: 0; left: 0; transition: all 0.5s ease 0s; } .product-grid .product-image:hover .pic-2{ opacity: 1; } .product-grid .product-discount-label{ color: #fff; background: #0058c6; font-size: 15px; font-weight: 600; letter-spacing: 1px; line-height: 45px; width: 45px; height: 45px; border-radius: 50%; position: absolute; top: 10px; left: 10px; } .product-grid .add-to-cart{ color: #fff; background: #0058c6; font-size: 17px; font-weight: 500; text-transform: uppercase; width: 125px; padding: 10px 14px; opacity: .85; transform: translateX(-50%); position: absolute; bottom: -75px; left: 50%; transition: all 0.5s ease 0s; } .product-grid .add-to-cart:hover{ opacity: 1; } .product-grid:hover .add-to-cart{ bottom: 15px; } .product-grid .product-links{ background: #fff; padding: 0; margin: 0; list-style: none; opacity: 0; position: absolute; top: 10px; right: -50px; transition: all 0.3s ease 0s; } .product-grid:hover .product-links{ opacity: 1; right: 10px; } .product-grid .product-links li a{ color: #555; font-size: 16px; line-height: 50px; width: 47px; height: 50px; display: block; transition: all 0.3s ease 0s; } .product-grid:hover .product-links li a:hover{ color: #0058c6; box-shadow: 0 0 5px rgba(0,0,0,0.1) inset; } .product-grid .product-content{ padding: 12px; } .product-grid .product-category{ font-size: 17px; text-transform: capitalize; margin: 0 0 5px; display: block; } .product-grid .product-category a{ color: #999; transition: all 0.3s ease 0s; } .product-grid .product-category a:hover{ color: #555; } .product-grid .title{ font-size: 19px; font-weight: 500; text-transform: capitalize; margin: 0 0 8px; } .product-grid .title a{ color: #444; transition: all 0.3s ease 0s; } .product-grid .title a:hover{ color: #0058c6; } .product-grid .price{ color: #0058c6; font-size: 17px; font-weight: 600; } .product-grid .price span{ color: #888; text-decoration: line-through; margin: 0 5px 0 0; } @media screen and (max-width: 990px){ .product-grid{ margin: 0 0 30px; } }