﻿.last-product-section {
    border-radius: 5px;
    margin: 24px 0px;
    background-color: var(--CustomColor1);

    .cat-box {
        position: relative;
        width: 135px;
        min-width: 135px;
        margin-left: 5px;

        &:before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            filter: brightness(0.5);
            background: url(/Portals/0/Images/cat-box-pattern.svg) no-repeat top right;
            background-size: cover;
        }

        .content {
            position: relative;
            width: 100%;
            min-height: 290px;
            max-height: 100%;
            padding: 2rem 0;

        }

        .title {
            font-size: 1.2rem;
            color: white;
            width: 90%;

            span {
                display: block;
                font-weight: lighter;
            }
        }

        .tag-icon {
            width: 22px;
            height: 22px;
            fill: var(--accent-color);
            margin: 1rem auto;
        }

        .link {
            font-weight: bold;
            font-size: 1rem;
            color: white;
        }
    }

    .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;
                }

                svg {
                    width: 15px;
                    height: 15px;
                    vertical-align: middle;
                    fill: var(--CustomColor1);
                }
            }


            .discount {
                width: 30px;
                height: 30px;
                background-color: var(--accent-color2);
                border-radius: 50%;
                font-size: 11px;
                color: #fff;
            }
        }
    }

    &.type-2 {
        background-color: var(--CustomColor10);

        .cat-box {
            .tag-icon {
                fill: #B1BBFF;
            }

            &:before {
                filter: brightness(0);
            }
        }

        .slider_box {
            .swiper-slide {
                .price-box {
                    svg {
                        fill: var(--CustomColor10);
                    }
                }
            }
        }
    }

    &.type-3 {
        background-color: var(--CustomColor4);

        .cat-box {
            .tag-icon {
                fill: #C66E13;
            }
        }

        .slider_box {
            .swiper-slide {
                .price-box {
                    svg {
                        fill: var(--CustomColor4);
                    }
                }
            }
        }
    }


}