How To Change Product Box CSS
.item-grid:after {
content: "";
display: block;
clear: both;
}
.item-box {
position: relative;
width: 100%;
float: left;
margin: 0 0 80px;
text-align: left;
}
.item-box .picture {
z-index: 1;
background-color: #fff;
margin: 0 0 20px;
}
.item-box .picture a {
display: block;
position: relative;
}
.item-box .picture a:focus {
opacity: 0.85;
}
.item-box .picture a:before {
content: "";
display: block;
padding-top: 100%;
}
.item-box .picture a img {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
max-width: 100%;
max-height: 100%;
margin: auto;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
-webkit-transform: translateZ(0) scale(1.0, 1.0);
}
.item-box:hover .picture a img {
opacity: 0.85;
}
.item-box .details {
padding: 0 10px;
}
.item-box .product-title {
margin: 0 0 10px;
font-size: 17px;
line-height: 1.2;
font-weight: normal;
color: #4ab2f1;
}
.item-box .product-title a {
display: block;
}
.item-box .product-title a:hover,
.item-box .product-title a:focus {
color: #248ece;
}
.item-box .sku {
margin: 0 0 15px;
}
.item-box .product-rating-box {
display: inline-block;
margin: 0 0 10px;
}
.item-box .rating {
background: url('../images/rating1.png') repeat-x;
width: 95px;
height: 14px;
}
.item-box .rating div {
background: url('../images/rating2.png') repeat-x;
height: 14px;
}
.product-grid .item-box .description:not([data-short-description]) {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
margin: 0 0 15px;
height: 66px;
line-height: 22px;
}
.item-box .description[data-short-description] {
display: none;
}
.item-box .description a {
display: block;
overflow: hidden;
}
.item-box .prices {
margin: 0 0 10px;
overflow: hidden;
}
.item-box .old-price {
margin: 0 5px 0 0;
font-size: 16px;
color: #aaa;
text-decoration: line-through;
}
.item-box .actual-price {
margin: 0 5px 0 0;
font-size: 16px;
color: #666;
}
.item-box .tax-shipping-info a {
color: #4ab2f1;
}
.item-box .tax-shipping-info a:hover,
.item-box .tax-shipping-info a:focus {
text-decoration: underline;
}
.item-box .buttons {
margin: 0;
font-size: 0;
}
.item-box button {
display: inline-block;
height: 40px;
border: none;
vertical-align: middle;
}
.item-box .product-box-add-to-cart-button {
width: 60%;
background-color: #4ab2f1;
text-align: center;
font-size: 15px;
color: #fff;
text-transform: uppercase;
}
.item-box .product-box-add-to-cart-button:hover,
.item-box .product-box-add-to-cart-button:focus {
background-color: #248ece;
}
.item-box .add-to-compare-list-button,
.item-box .add-to-wishlist-button {
width: 20%;
border-left: 1px solid #fff !important;
background-color: #eaeaea;
background-position: center;
background-repeat: no-repeat;
font-size: 0;
}
.item-box .add-to-compare-list-button {
background-image: url('../images/compare-button.png');
}
.item-box .add-to-wishlist-button {
background-image: url('../images/wishlist-button.png');
}
.item-box .add-to-compare-list-button:hover,
.item-box .add-to-compare-list-button:focus,
.item-box .add-to-wishlist-button:hover,
.item-box .add-to-wishlist-button:focus {
background-color: #ddd;
}
.product-grid,
.product-list {
margin: 0 0 50px;
}
.product-grid .title {
margin: 0 0 30px;
border-bottom: 1px solid #ddd;
padding: 0 0 15px;
font-size: 30px;
font-weight: normal;
color: #444;
}
.product-grid .title strong {
font-weight: normal;
}
@media all and (min-width: 481px) {
.item-box {
width: 49%;
margin: 0 0.5% 50px;
}
.item-box:nth-child(2n+1) {
clear: both;
}
.item-box .product-rating-box {
margin: 0 0 15px;
}
.item-box .prices {
min-height: 40px;
}
.item-box .product-title {
min-height: 42px;
margin: 0 0 5px;
}
}
@media all and (min-width: 769px) {
.item-box {
width: 32.33333%;
margin: 0 0.5% 50px;
}
.item-box:nth-child(2n+1) {
clear: none;
}
.item-box:nth-child(3n+1) {
clear: both;
}
.product-list .item-box {
float: none;
width: auto;
margin: 0 5px 20px;
}
.product-list .item-box .product-item:after {
content: "";
display: block;
clear: both;
}
.product-list .item-box .picture {
float: left;
width: 220px;
}
.product-list .item-box:hover .picture a img,
.product-list .item-box:focus .picture a img {
opacity: 1;
}
.product-list .item-box .picture:hover a img,
.product-list .item-box .picture:focus a img {
opacity: 0.85;
}
.product-list .item-box .picture + .details {
margin: 0 0 0 240px;
}
.product-list .item-box .product-title {
height: auto;
padding: 10px 0;
font-size: 18px;
}
.product-list .item-box .description {
display: block;
margin: 0 0 10px;
line-height: 22px;
}
.product-list .item-box .prices {
height: auto;
margin: 0 0 30px;
}
.product-list .item-box .buttons {
}
.product-list .item-box .product-box-add-to-cart-button {
width: auto;
min-width: 150px;
padding: 0 20px;
}
.product-list .item-box .add-to-compare-list-button,
.product-list .item-box .add-to-wishlist-button {
width: 42px;
}
}
@media all and (min-width: 1001px) {
/*** CATEGORY ***/
.item-box .buttons {
text-align: left;
}
}
Modified at 2024-08-27 11:55:42