This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
@@ -0,0 +1,420 @@
.esun-new-product,
.esun-hot-sale,
.esun-resources-downloads,
.esun-innovative-materials {
position: relative;
}
.esun-rule-deal {
--deal-green: #12ad5c;
--deal-green-soft: #e9faf1;
box-sizing: border-box;
margin: 72px auto;
max-width: 1360px;
overflow: hidden;
padding: 28px 20px 0;
position: relative;
width: 100%;
}
.esun-rule-deal *,
.esun-rule-deal *::before,
.esun-rule-deal *::after {
box-sizing: border-box;
}
.esun-rule-deal::before {
background:
radial-gradient(
circle at 16% 5%,
rgba(82, 211, 151, 0.13),
transparent 22%
),
radial-gradient(
circle at 83% 16%,
rgba(82, 211, 151, 0.1),
transparent 24%
);
content: "";
inset: 0;
pointer-events: none;
position: absolute;
}
.esun-rule-deal__header {
align-items: center;
background: rgba(255, 255, 255, 0.96);
border-radius: 68px;
box-shadow: 0 0 36px rgba(26, 137, 82, 0.38);
display: flex;
min-height: 170px;
padding: 24px 105px 24px 205px;
position: relative;
}
.esun-rule-deal__tag {
background-image: url("../images/stock-icon.png");
background-size: contain;
/*background: linear-gradient(145deg, #168eea, #04d27d);*/
/*border-radius: 12px 12px 20px 20px;*/
/*box-shadow: 0 15px 25px rgba(0, 139, 204, .25);*/
color: #fff;
font-size: 46px;
font-weight: 800;
height: 167px;
left: -55px;
line-height: 167px;
position: absolute;
text-align: center;
top: 0;
transform: rotate(5deg);
width: 143px;
}
.esun-rule-deal__tag span {
display: none;
}
.esun-rule-deal__dot {
background: #84e1af;
border-radius: 50%;
height: 26px;
left: 146px;
position: absolute;
width: 26px;
}
.esun-rule-deal__title {
color: #282b2a;
flex: 1;
font-size: 32px;
font-weight: 400;
line-height: 1.1;
margin: 0;
}
.esun-rule-deal__title span {
color: var(--deal-green);
}
.esun-rule-deal__countdown {
display: flex;
gap: 32px;
margin-left: 40px;
}
.esun-rule-deal__time {
color: var(--deal-green);
min-width: 72px;
position: relative;
text-align: center;
}
.esun-rule-deal__time:not(:last-child)::after {
content: ":";
font-size: 24px;
position: absolute;
right: -20px;
top: 2px;
}
.esun-rule-deal__time strong,
.esun-rule-deal__time span {
display: block;
}
.esun-rule-deal__time strong {
font-size: 30px;
font-weight: 500;
}
.esun-rule-deal__time span {
font-size: 14px;
letter-spacing: 0.06em;
margin-top: 4px;
}
.esun-rule-deal__maximum {
align-items: center;
background: var(--deal-green);
border-radius: 50%;
color: #fff;
display: flex;
flex-direction: column;
height: 100px;
justify-content: center;
position: absolute;
right: -18px;
text-align: center;
top: -20px;
transform: rotate(12deg);
width: 100px;
}
.esun-rule-deal__maximum strong {
font-size: 26px;
line-height: 1;
}
.esun-rule-deal__maximum span {
font-size: 13px;
font-weight: 600;
}
.esun-rule-deal__products {
display: grid;
gap: 25px;
grid-template-columns: repeat(4, minmax(0, 1fr));
list-style: none;
margin: 60px 0 0;
padding: 0;
position: relative;
}
.esun-rule-deal__product {
background: #fff;
border: 2px solid rgba(24, 169, 87, 0.12);
border-radius: 30px;
min-width: 0;
padding: 20px;
}
.esun-rule-deal__image {
border-radius: 20px;
overflow: hidden;
position: relative;
}
.esun-rule-deal__image .product-image-container,
.esun-rule-deal__image .product-image-wrapper {
display: block;
width: 100% !important;
}
.esun-rule-deal__image .product-image-wrapper {
height: 300px;
padding-bottom: 0 !important;
}
.esun-rule-deal__image .product-image-photo {
height: 100%;
left: auto;
margin: 0 auto;
max-width: 100%;
object-fit: contain;
position: static;
top: auto;
width: 100%;
border-radius: 20px;
}
.esun-rule-deal__discount {
background: var(--deal-green);
border-radius: 20px;
color: #fff;
font-size: 16px;
left: 0;
padding: 8px 24px;
position: absolute;
top: 0;
z-index: 2;
}
.esun-rule-deal__details {
padding-top: 20px;
position: relative;
}
.esun-rule-deal__details h3 {
font-size: 18px;
margin: 0 0 15px;
height: 40px;
font-weight: 600;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.esun-rule-deal__details h3 a {
color: #333;
text-decoration: none;
}
.esun-rule-deal__price {
align-items: baseline;
display: flex;
gap: 12px;
}
.esun-rule-deal__final-price {
font-size: 18px;
font-weight: 600;
}
.esun-rule-deal__regular-price {
color: #c7c7c7;
font-size: 14px;
text-decoration: line-through;
}
.color-swatches-cart {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 20px;
}
.esun-rule-deal__swatches {
align-items: center;
display: flex;
gap: 9px;
}
.esun-rule-deal__swatch {
align-items: center;
border: 1px solid #c7cbc9;
border-radius: 50%;
display: inline-flex;
height: 20px;
justify-content: center;
overflow: hidden;
padding: 2px;
width: 20px;
}
.esun-rule-deal__swatch > span,
.esun-rule-deal__swatch img {
border-radius: 50%;
display: block;
height: 100%;
object-fit: cover;
width: 100%;
}
.esun-rule-deal__swatch-more {
color: #b5b5b5;
font-size: 14px;
font-weight: 600;
}
.esun-rule-deal__actions form {
margin: 0;
}
.esun-rule-deal__actions .action.tocart {
align-items: center;
background: var(--deal-green);
border: 0;
border-radius: 50%;
display: flex;
height: 50px;
justify-content: center;
padding: 0;
text-decoration: none;
width: 50px;
}
.esun-rule-deal__actions .action.tocart svg {
fill: #fff;
}
.esun-rule-deal__visually-hidden {
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
@media (max-width: 1200px) {
.esun-rule-deal__header {
align-items: flex-start;
flex-direction: column;
padding: 40px 150px 40px 190px;
}
.esun-rule-deal__countdown {
margin: 24px 0 0;
}
.esun-rule-deal__products {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 767px) {
.esun-rule-deal {
margin: 36px auto;
padding: 20px 16px 40px;
}
.esun-rule-deal__header {
border-radius: 32px;
min-height: 0;
padding: 110px 22px 28px;
}
.esun-rule-deal__tag {
height: 70px;
left: 24px;
line-height: 70px;
top: 22px;
width: 68px;
}
.esun-rule-deal__dot {
left: 108px;
top: 48px;
}
.esun-rule-deal__countdown {
gap: 12px;
justify-content: space-between;
width: 100%;
}
.esun-rule-deal__time {
min-width: 0;
}
.esun-rule-deal__time:not(:last-child)::after {
right: -9px;
}
.esun-rule-deal__time strong {
font-size: 22px;
}
.esun-rule-deal__time span {
font-size: 10px;
}
.esun-rule-deal__maximum {
height: 88px;
right: 12px;
top: 12px;
width: 88px;
}
.esun-rule-deal__maximum strong {
font-size: 22px;
}
.esun-rule-deal__maximum span {
font-size: 10px;
margin-top: 5px;
}
.esun-rule-deal__products {
gap: 18px;
grid-template-columns: 1fr;
margin-top: 36px;
}
.esun-rule-deal__product {
border-radius: 30px;
padding: 22px;
}
.esun-rule-deal__image .product-image-wrapper {
height: 280px;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB