.product-tpl-wrapper {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.product-tpl-item.border-box {
box-sizing: border-box;
margin: 10px;
max-width: 100%;
display: flex;
flex-direction: row;
background-color: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 2px solid #d6d6d6;
border-radius: 16px;
display: flex;
gap: 1.5rem;
overflow: hidden;
padding: 1rem;
width: 100%;
}
.product-tpl-item.border-box:hover {
box-shadow: 16px 8px 16px rgba(0, 0, 0, 0.2)
}
.news-image-post {
display: block;
position: relative;
overflow: hidden;
border-radius: 8px;
flex: 0 0 150px;
}
.news-image-post img.media-object {
width: 100%;
height: auto;
display: block;
border-radius: 8px;
transition: transform 0.3s ease;
}
.news-image-post:hover img.media-object {
transform: scale(1.05);
}
.prod-tpl-discount {
position: absolute;
top: 10px;
left: 10px;
background-color: #ff6f61;
color: white;
padding: 5px 10px;
font-size: 14px;
border-radius: 4px;
}
.news-content-post {
display: flex;
flex-direction: column;
justify-content: space-between;
flex: 1;
}
.prod-tpl-title {
font-size: 18px;
font-weight: bold;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
margin-bottom: 10px;
transition: color 0.3s ease;
}
.news-content-post a:hover .prod-tpl-title {
color: #007bff;
}
.prod-tpl-price {
margin-top: 10px;
font-size: 16px;
display: flex;
align-items: center;
gap: 10px;
}
.prod-tpl-newprice {
color: #ff6f61;
font-weight: bold;
}
.prod-tpl-oldprice {
text-decoration: line-through;
color: #777;
}
.product-tpl-box {
margin-top: 15px;
display: flex;
gap: 10px;
}
.news-view-product,
.news-buy-product {
flex: 1;
background-color: #007bff;
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
border-radius: 4px;
text-align: center;
transition: background-color 0.3s ease;
}
.news-view-product:hover,
.news-buy-product:hover {
background-color: #0056b3;
}
a.product-view-btn {
text-align: end;
}
.product-tpl-item.border-box .prod-tpl-price {
margin: 0 0 10px 0;
}
.btn-view a.product-view-btn {
border-radius: 24px;
color: #fff;
position: relative;
transition: all .3s;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
align-items: center;
background-color: #000;
border: 2px solid #000;
border-radius: 16px;
color: #fff;
cursor: pointer;
display: inline-flex;
height: 40px;
justify-content: center;
padding: 0 30px;
transition: all .2s;
width: 22%;
}
.btn-view {
text-align: right;
}
.btn-view a.product-view-btn:hover {
color: black;
background: white;
}
p.custom-product-description {
margin: 0;
}
@media (max-width: 768px) {
.product-tpl-item.border-box {
flex-direction: column;
align-items: center;
max-width: 100%;
}
.news-image-post {
flex: 0 0 auto;
width: 100%;
margin-bottom: 15px;
}
.btn-view a.product-view-btn {
width: 100%;
}
p.custom-product-description {
margin: 1rem 0;
}
}
@media (max-width: 480px) {
.product-tpl-item.border-box {
padding: 10px;
}
.news-view-product,
.news-buy-product {
padding: 8px 12px;
}
}