﻿.discount-products-section {
    position: relative;
    border-radius: 5px;
    margin-bottom: 3rem;
    margin-top: 6rem;


    .right-fixed {
        margin: 24px 0px;
        padding-left: 16vw;
    }

    .cat-box {
        /* width: 151px;
        height: 401px; */

        img {
            height: 100%;
            object-fit: cover;
        }
    }

    .discount-products-slider {
        direction: ltr;
        margin-left: -151px;
        width: 100%;

        .swiper-slide {
            direction: rtl;
            width: 300px;

            &.swiper-slide-active {
                &:first-child {
                    margin-left: 156px;
                }
            }

            .content-holder {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                min-height: 401px;
                border-radius: 5px;
                -webkit-border-radius: 5px;
                -moz-border-radius: 5px;
                -ms-border-radius: 5px;
                -o-border-radius: 5px;
                background-color: white;

                .img-box {
                    margin-bottom: 1rem;

                    .soon {
                        direction: ltr;
                        transform: translateY(-1rem);

                        .soon-label {
                            display: none;
                        }

                        .soon-separator {
                            font-size: 1rem;
                            font-weight: bold;
                            color: #fff;
                            margin: 0px 0.3rem;
                        }

                        .soon-group-inner {
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            gap: 0.5rem;

                            .soon-group-sub {
                                position: relative;
                                display: flex;
                                align-items: end;
                                justify-content: center;
                                width: 40px;
                                height: 40px;
                                border-radius: 5px;
                                background-color: #37404A;
                                font-weight: normal;
                                font-size: 0.8rem;
                                color: #fff;
                                padding-top: 4px;
                                overflow: hidden;

                                &:before {
                                    content: '';
                                    position: absolute;
                                    top: 0;
                                    right: 0;
                                    left: 0;
                                    bottom: 50%;
                                    display: flex;
                                    align-items: end;
                                    justify-content: center;
                                    line-height: normal;
                                    background-color: #2D3743;
                                    text-align: center;
                                }

                                &:first-child {
                                    &:before {
                                        content: 'D';
                                    }
                                }

                                &:nth-child(2n) {
                                    &:before {
                                        content: 'H';
                                    }
                                }

                                &:nth-child(3n) {
                                    &:before {
                                        content: 'M';
                                    }
                                }

                                &:nth-child(4n) {
                                    &:before {
                                        content: 's';
                                    }
                                }
                            }
                        }
                    }
                }

                .title {
                    font-size: 1rem;
                    text-align: right;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    margin-bottom: 2.6rem;
                }

                .price-box {
                    strike {
                        font-size: 11px;
                        color: #777;
                    }

                    svg {
                        width: 15px;
                        height: 15px;
                        vertical-align: middle;
                        fill: var(--CustomColor1);
                    }
                }


                .discount {
                    position: absolute;
                    top: 0.5rem;
                    left: 0.5rem;
                    width: 40px;
                    height: 40px;
                    background-color: var(--accent-color2);
                    border-radius: 5px;
                    font-size: 11px;
                    color: #fff;
                    -webkit-border-radius: 5px;
                    -moz-border-radius: 5px;
                    -ms-border-radius: 5px;
                    -o-border-radius: 5px;
                    z-index: 1;
                }
            }
        }
    }

    .slider-controller {
        max-width: 100%;

        .navigation {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            margin: 0 5px;
            border: solid 1px #707070;
            border-radius: 50%;
            cursor: pointer;

            svg {
                position: relative;
                width: 16px;
                stroke: #707070;
            }

            &.swiper-button-disabled {
                opacity: 0.5;
                cursor: default;

            }

        }

        .slide-number {
            font-weight: bold;
            font-size: 1rem;
        }

        .progressbar {
            position: relative;
            width: 160px;
            height: 2px;
            background-color: rgba(112, 112, 112, 0.1);

            &.swiper-pagination-lock {
                display: block;
            }

            .swiper-pagination-progressbar-fill {
                background: #FF1D3F;
                transition-duration: 5000ms !important;
            }
        }
    }

    .swiper-pagination-bullet {
        background-color: var(--accent-color);
        opacity: 0.4;

        &.swiper-pagination-bullet-active {
            opacity: 1;
        }
    }

    @media(max-width:960px) {
        .right-fixed {
            padding-left: 0;
            margin: 0px 1rem;
        }

    }
}