.t888-discount-wrapper {
    background-repeat: no-repeat;
    display: flex;
    justify-content: space-between;
    background-size: cover;
}

.t888-discount-wrapper .products .product-item .grid-product-item.grid-product-item-boxsale .product-thumbnail {
    padding-top: 111%;
    border: transparent;
}

.t888-discount-wrapper .grid-product-item.grid-product-item-boxsale .product-item-inner {
    padding: 0 20px;
}

.t888-left {
    width: 51%;
    display: flex;
    padding-bottom: 100px;
    padding-left: 80px;
}

.t888-left .title1-left,
.t888-left .title2-left,
.t888-left .title3-left {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: left;
    font-family: var(--font-philosopher);
}

.t888-left .title1-left {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: bold;
    color: var(--primary-color);

}

.t888-left .title2-left {
    font-size: 3rem;
    line-height: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-left: 30px;
    margin-right: 16px;
}

.t888-left .title2-left::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 50px;
    background-color: var(--secondary-color);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.t888-left .title3-left {
    font-size: 1.5rem;
    line-height: 2rem;
    color: var(--primary-color);
}

.t888-right {
    background-color: rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative;
    z-index: 2;
    width: 49%;
    padding-top: 100px;
    padding-bottom: 90px;
}

.t888-discount-shadow {
    position: absolute;
    bottom: -27px;
    left: 0;
    width: 100%;
    height: 27px;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
}


.t888-right .title1-right {
    font-size: 1.5rem;
    line-height: 2rem;
    font-family: var(--font-philosopher);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.t888-right .title2-right {
    font-size: 1rem;
    line-height: 2rem;
    font-family: var(--font-philosopher);
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.t888-right .title2-right::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--third-color);
    transition: width 0.3s ease;
}

.t888-right .products-slider {
    margin-top: 40px;
    margin-bottom: 0;
    padding: 0 138px;
}

.t888-right .products-slider .products {
    margin-bottom: 0px;
}

.products .product-item .grid-product-item .product-item-inner .product-thumbnail .product-link {
    padding: 20px;
}

@media(max-width: 1599.98px) {
    .t888-discount-shadow {
        height: 27px;
        bottom: -23px;
    }
}

@media(max-width: 1024px) {
    .t888-left {
        padding-bottom: 50px;
        padding-left: 16px;
    }

    .t888-right {
        padding-top: 50px;
        padding-bottom: 40px;
    }

    .t888-discount-shadow {
        bottom: -20px;
    }

    .t888-right .products-slider {
        padding: 0 110px;
        margin-top: 20px;
    }
}

@media(max-width: 991px) {
    .t888-discount-shadow {
        bottom: -19px;
    }
}

@media(max-width: 820px) {
    .t888-discount-shadow {
        bottom: -16px;
    }
}

@media(max-width: 768px) {
    .t888-discount-shadow {
        bottom: -15px;
    }

    .t888-right .products-slider {
        padding: 0 90px;
    }

    .swiper-discount-products.eltech888-swiper-slider .swiper-button-next {
        right: 80px;
    }

    .swiper-discount-products.eltech888-swiper-slider .swiper-button-prev {
        left: 80px;
    }
}

@media (max-width: 767px) {
    .t888-discount-wrapper {
        flex-direction: column;
    }

    .t888-left {
        flex-direction: column;
        width: 100%;
        padding-top: 50px;
    }

    .t888-left .title1-left,
    .t888-left .title2-left,
    .t888-left .title3-left {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
    }

    .t888-left .title2-left {
        padding-left: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .t888-left .title2-left::after {
        width: 50px;
        height: 2px;
        top: auto;
        bottom: 0;
    }

    .t888-right {
        width: 100%;
        padding-bottom: 25px;
    }

    .t888-discount-shadow {
        display: none;
    }
}

