﻿.last-product-section {
    border-radius: 5px;
    margin: 24px 0px;

    .cat-box {
        width: 135px;
        height: 100%;
        min-width: 135px;
        margin-left: 5px;

        .img-box {
            width: 100%;
            min-height: 115px;
            -background: transparent;
            -background: radial-gradient(circle, rgba(212, 61, 144, 0.8) 0%, rgba(132, 29, 105, 0.4) 66%);
        }

        .title {
            font-size: 1.2rem;
            font-weight: bold;
            color: white;
            width: 90%;
            margin-bottom: 1rem;

            span {
                display: block;
                font-weight: lighter;
            }
        }

        .slogan-img {
            display: none;
            max-width: 100%;
            margin-bottom: 1rem;
        }

        .link {
            font-size: 1rem;
            color: white;

            svg {
                stroke: white;
                width: 7px;
                margin-right: 0.5rem;
            }
        }
    }

    .slider_box {
        width: calc(100% - 140px);
        min-width: calc(100% - 140px);

        .swiper-slide {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 258px;
            border-radius: 5px;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            -ms-border-radius: 5px;
            -o-border-radius: 5px;
            background-color: white;
            padding: 8px;

            .cat-logo {
                display: flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                top: 5px;
                left: 5px;
                width: 30px;
                height: 30px;
                border: solid 1px #F5F5F5;
                padding: 2px;
                background: #fff;
                border-radius: 5px;
                -webkit-border-radius: 5px;
                -moz-border-radius: 5px;
                -ms-border-radius: 5px;
                -o-border-radius: 5px;
                overflow: hidden;

                .icon {
                    display: none;
                    width: 22px;
                    fill: #000;
                }
            }

            .title {
                font-size: 1rem;
                text-align: right;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .price-box {
                min-height: 43px;

                strike {
                    font-size: 11px;
                }
            }


            .discount {
                width: 30px;
                height: 30px;
                background-color: var(--button-color);
                border-radius: 50%;
                font-size: 11px;
                color: #fff;
            }


        }

        .addToBasket {
            width: 2rem;
            height: 2rem;
            border-radius: 0.3rem;
            background: var(--accent-color);
            -webkit-border-radius: 0.3rem;
            -moz-border-radius: 0.3rem;
            -ms-border-radius: 0.3rem;
            -o-border-radius: 0.3rem;

            svg {
                width: 1.2rem;
                height: 1.2rem;
                stroke: var(--White);
            }
        }

        .discount-box {
            position: absolute;
            top: 0.6rem;
            right: 0.6rem;
            left: 0.6rem;
            padding: 0.6rem;
            border-radius: 5px;
            background: var(--accent-color);
            z-index: 10;

            svg {
                width: 18px;
                height: 18px;
                stroke: #F5B014;
                margin-left: 0.5rem;
            }

            .caption {
                font-size: 0.9rem;
                color: #fff;
            }

            .soon {
                direction: ltr;

                .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;

                    .soon-group-sub {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        width: 30px;
                        height: 30px;
                        border-radius: 5px;
                        -webkit-border-radius: 5px;
                        -moz-border-radius: 5px;
                        -ms-border-radius: 5px;
                        -o-border-radius: 5px;
                        background-color: #fff;
                        font-size: 1rem;
                        font-weight: bold;
                        color: #000;
                        padding-top: 4px;
                    }
                }
            }
        }

    }

    &.sandwich-theme {
        background-color: var(--CustomColor5);

        .cat-box {
            .img-box {
                background: transparent;
                background: radial-gradient(circle, rgba(212, 61, 144, 0.8) 0%, rgba(132, 29, 105, 0.4) 66%);
            }
        }

        .slogan-img.orange {
            display: block;
        }

        .slider_box {
            .swiper-slide {
                .cat-logo {
                    .icon {
                        &.Sandwich-icon {
                            display: block;
                            fill: var(--CustomColor5);
                        }
                    }
                }
            }
        }
    }

    &.cannedfood-theme {
        background-color: var(--CustomColor10);

        .cat-box {
            .img-box {
                background: transparent;
                background: radial-gradient(circle, #7BD3F7 0%, rgb(29 152 196 / 40%) 66%);
            }
        }

        .slogan-img.blue-dark {
            display: block;
        }

        .slider_box {
            .swiper-slide {
                .cat-logo {
                    .icon {
                        &.Cannedfood-icon {
                            display: block;
                            fill: var(--CustomColor10);
                        }
                    }
                }
            }
        }
    }

    &.refrigerator-theme {
        background-color: #1A86B5;

        .cat-box {
            .img-box {
                background: transparent;
                background: radial-gradient(circle, #7BD3F7 0%, #1A86B5 66%);
            }
        }

        .slogan-img.blue-dark {
            display: block;
        }

        .slider_box {
            .swiper-slide {
                .cat-logo {
                    .icon {
                        &.Refrigerator-icon {
                            display: block;
                            fill: #1A86B5;
                        }
                    }
                }
            }
        }
    }

    &.frozen-theme {
        background-color: #153B62;

        .cat-box {
            .img-box {
                background: transparent;
                background: radial-gradient(circle, #7BD3F7 0%, #153B62 66%);
            }
        }

        .slogan-img.blue-light {
            display: block;
        }

        .slider_box {
            .swiper-slide {
                .cat-logo {
                    .icon {
                        &.Frozen-icon {
                            display: block;
                            fill: #153B62;
                        }
                    }
                }
            }
        }
    }

    &.vegetables-theme {
        background-color: var(--CustomColor8);

        .cat-box {
            .img-box {
                background: transparent;
                background: radial-gradient(circle, #6bb97b85 0%, rgb(20 76 53) 66%);
            }
        }

        .slogan-img.green {
            display: block;
        }

        .slider_box {
            .swiper-slide {
                .cat-logo {
                    .icon {
                        &.Vegetables-icon {
                            display: block;
                            fill: var(--CustomColor8);
                        }
                    }
                }
            }
        }
    }

    &.kebab-theme {
        background-color: #F77275;

        .cat-box {
            .img-box {
                background: transparent;
                background: radial-gradient(circle, #ffffff66 0%, #F77275 66%);
            }
        }

        .slogan-img.red {
            display: block;
        }

        .slider_box {
            .swiper-slide {
                .cat-logo {
                    .icon {
                        &.Kebab-icon {
                            display: block;
                            fill: #F77275;
                        }
                    }
                }
            }
        }
    }

    &.fingerfood-theme {
        background-color: #E92390;

        .cat-box {
            .img-box {
                background: transparent;
                background: radial-gradient(circle, #ffffff66 0%, #E92390 66%);
            }
        }

        .slogan-img.white {
            display: block;
        }

        .slider_box {
            .swiper-slide {
                .cat-logo {
                    .icon {
                        &.Kebab-icon {
                            display: block;
                            fill: #E92390;
                        }
                    }
                }
            }
        }
    }

    &.protein-theme {
        background-color: #F81B1F;

        .cat-box {
            .img-box {
                background: transparent;
                background: radial-gradient(circle, #ffffff66 0%, #F81B1F 66%);
            }
        }

        .slogan-img.red-dark {
            display: block;
        }

        .slider_box {
            .swiper-slide {
                .cat-logo {
                    .icon {
                        &.Protein-icon {
                            display: block;
                            fill: #F81B1F;
                        }
                    }
                }
            }
        }
    }

    &.discount-theme {
        background-color: #9e0b0f;

        .cat-box {
            .img-box {
                background: transparent;
                background: radial-gradient(circle, #ffffff66 0%, #9e0b0f 66%);
            }
        }

        .slogan-img.white {
            display: block;
        }

        .slider_box {
            .swiper-slide {
                .cat-logo {
                    .icon {
                        &.Discount-icon {
                            background: #9e0b0f;
                            color: var(--White);
                        }
                    }
                }
            }
        }
    }

    @media(max-width: 768px) {
        .content-holder {
            padding-top: 1rem !important;
        }

        .cat-box {
            width: 100%;
            margin: 0 0 1rem;

            .img-box {
                display: none;
                width: fit-content;
            }

            .title {
                width: auto;
                margin-bottom: 0;
            }

            .slogan-img {
                display: none !important;
            }
        }

        .slider_box {
            width: 100%;
        }
    }
}