311 lines
8.2 KiB
CSS
311 lines
8.2 KiB
CSS
.checkout-cart-index .esun-cart-recommended {
|
|
--esun-green: #12ad5c;
|
|
--esun-green-dark: #0c914c;
|
|
--esun-text: #242424;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__slider {
|
|
cursor: grab;
|
|
min-width: 0;
|
|
overflow-x: auto !important;
|
|
overflow-y: hidden;
|
|
overscroll-behavior-x: contain;
|
|
scrollbar-width: none;
|
|
scroll-behavior: smooth;
|
|
scroll-snap-type: x mandatory;
|
|
touch-action: pan-x pan-y;
|
|
width: 100%;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__slider::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__slider.is-dragging {
|
|
cursor: grabbing;
|
|
scroll-behavior: auto;
|
|
user-select: none;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__wrapper {
|
|
align-items: stretch;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 22px;
|
|
transform: none !important;
|
|
width: 100% !important;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__item {
|
|
background: #fff;
|
|
border: 1px solid #eef2ef;
|
|
border-radius: 18px;
|
|
box-shadow: 0 8px 22px rgba(23, 50, 36, .08);
|
|
box-sizing: border-box;
|
|
flex: 0 0 calc((100% - 88px) / 5);
|
|
height: auto;
|
|
min-height: 374px;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
padding: 14px;
|
|
scroll-snap-align: start;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__image {
|
|
background: #fafbfa;
|
|
border-radius: 12px;
|
|
display: block;
|
|
height: 178px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__badge {
|
|
background: var(--esun-green) !important;
|
|
border-radius: 999px;
|
|
color: #fff !important;
|
|
font-size: 10px;
|
|
font-weight: 800;
|
|
left: 10px;
|
|
line-height: 1;
|
|
padding: 6px 9px;
|
|
position: absolute;
|
|
top: 10px;
|
|
z-index: 2;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__image .product-image-container,
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__image .product-image-wrapper {
|
|
height: 100%;
|
|
width: 100% !important;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__image .product-image-wrapper {
|
|
padding-bottom: 0 !important;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__image .product-image-photo {
|
|
height: 100%;
|
|
inset: 0;
|
|
margin: auto;
|
|
max-height: none;
|
|
object-fit: contain;
|
|
position: absolute;
|
|
width: 100%;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__details {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
padding: 14px 2px 2px;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__name {
|
|
display: -webkit-box;
|
|
font-size: 15px;
|
|
font-weight: 750;
|
|
line-height: 1.35;
|
|
margin: 0 0 10px;
|
|
min-height: 41px;
|
|
overflow: hidden;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__name a {
|
|
color: var(--esun-text);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
margin: 0 0 10px;
|
|
max-height: 24px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__tags span {
|
|
background: #f6f8f7;
|
|
border: 1px solid #e4e9e6;
|
|
border-radius: 999px;
|
|
color: #727a75;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
line-height: 20px;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
padding: 0 8px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__swatches {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin: 0 0 12px;
|
|
max-height: 22px;
|
|
min-height: 22px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__swatch {
|
|
align-items: center;
|
|
appearance: none;
|
|
background: #fff;
|
|
border: 1px solid #dfe5e1;
|
|
border-radius: 50%;
|
|
display: inline-flex;
|
|
flex: 0 0 18px;
|
|
height: 18px;
|
|
justify-content: center;
|
|
padding: 2px;
|
|
width: 18px;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__swatch > span,
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__swatch img {
|
|
border-radius: 50%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
width: 100%;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__inner {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__footer {
|
|
align-items: center;
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: space-between;
|
|
margin-top: auto;
|
|
min-height: 42px;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__price {
|
|
align-items: baseline;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__final-price {
|
|
color: var(--esun-green);
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__regular-price {
|
|
color: #a8b0ab;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__actions,
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__actions form {
|
|
border: 0 !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
width: auto !important;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .action.tocart.esun-category-card__cart {
|
|
align-items: center;
|
|
background: var(--esun-green) !important;
|
|
border: 0 !important;
|
|
border-radius: 50% !important;
|
|
box-shadow: none !important;
|
|
color: #fff !important;
|
|
display: inline-flex !important;
|
|
height: 42px !important;
|
|
justify-content: center;
|
|
min-height: 42px !important;
|
|
min-width: 42px !important;
|
|
padding: 0 !important;
|
|
width: 42px !important;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .action.tocart.esun-category-card__cart:hover,
|
|
.checkout-cart-index .esun-cart-recommended .action.tocart.esun-category-card__cart:focus {
|
|
background: var(--esun-green-dark) !important;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__cart svg {
|
|
fill: none !important;
|
|
height: 18px !important;
|
|
max-height: 18px !important;
|
|
max-width: 18px !important;
|
|
stroke: currentColor;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 1.9;
|
|
width: 18px !important;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-category-card__cart span {
|
|
clip: rect(0, 0, 0, 0);
|
|
clip-path: inset(50%);
|
|
height: 1px;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
width: 1px;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__previous.is-disabled,
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__next.is-disabled,
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__previous:disabled,
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__next:disabled {
|
|
cursor: default;
|
|
opacity: .35;
|
|
}
|
|
|
|
@media (max-width: 1439px) {
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__wrapper {
|
|
gap: 20px;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__item {
|
|
flex-basis: calc((100% - 60px) / 4);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1023px) {
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__wrapper {
|
|
gap: 18px;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__item {
|
|
flex-basis: calc((100% - 36px) / 3);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__wrapper {
|
|
gap: 16px;
|
|
}
|
|
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__item {
|
|
flex-basis: calc((100% - 16px) / 2);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 479px) {
|
|
.checkout-cart-index .esun-cart-recommended .esun-recommended-products__item {
|
|
flex-basis: 86%;
|
|
}
|
|
}
|
|
|