/**
 * Herbalist
 * Herbalist – is a website template created for selling the cannabis, medical marijuana and CBD products, cannabis blogging and others
 * Exclusively on https://1.envato.market/herbalist-html
 *
 * @encoding        UTF-8
 * @version         1.0.0
 * @copyright       (C) 2018 - 2021 Merkulove ( https://merkulov.design/ ). All rights reserved.
 * @license         Envato License https://1.envato.market/KYbje
 * @contributors    Lamber Lilit (winter.rituel@gmail.com)
 * @support         help@merkulov.design
 **/
// compare list aside

.viewed {
    background: $pastelYellow;

    &_header {
        text-align: center;
        margin-bottom: 30px;
    }

    &_slider {
        &-slide {
            .wrapper {
                .media {
                    position: relative;
                    border-radius: 16px;
                    overflow: hidden;
                    cursor: pointer;
                    margin-bottom: 10px;

                    &:hover {
                        .overlay {
                            opacity: 1;
                            visibility: visible;
                        }
                    }

                    .overlay, .sale {
                        position: absolute;
                    }

                    .sale {
                        width: 40px;
                        height: 40px;
                        background: $secondary;
                        border-radius: 50%;
                        top: 20px;
                        right: 20px;
                        color: #fff;
                        font-weight: 600;
                        font-size: 14px;
                    }

                    .overlay {
                        background: rgba($primary, 0.6);
                        left: 0;
                        right: 0;
                        top: 0;
                        bottom: 0;
                        transition: all .3s ease-in-out;
                        opacity: 0;
                        visibility: hidden;

                        .action {

                            .list-item {
                                margin-right: 15px;

                                &:last-of-type {
                                    margin-right: 0;
                                }
                            }

                            &_link {
                                background: #fff;
                                width: 40px;
                                height: 40px;
                                border-radius: 50%;
                                border: 1px solid $accent;
                                color: $accent;
                                font-size: 16px;


                                &:hover, &.active {
                                    background: $accent;
                                    color: #fff;
                                }
                            }
                        }
                    }
                }

                .main {
                    flex-grow: 1;

                    &_rating {
                        &-stars {

                            &_star {
                                margin-right: 10px;
                                font-size: 20px;

                                &:last-of-type {
                                    margin-right: 0;
                                }
                            }
                        }
                    }

                    &_title {
                        margin-top: 5px;
                        margin-bottom: 10px;
                        flex-grow: 1;
                    }

                    &_price {
                        margin: 15px 0 0;

                        .price {
                            color: $secondary;
                            font-size: 22px;
                            line-height: 1.1;
                            font-weight: 800;
                            font-family: $accentFont;

                            &--old {
                                color: $gray;
                                text-decoration: line-through;
                                margin-right: 15px;
                                font-weight: 700;
                            }
                        }
                    }
                }
            }
        }
    }
}

// media queries

@media screen and (min-width: 991.98px) {
    .viewed {
        &_header {
            margin-bottom: 40px;
        }
        &_slider {
            .wrapper {
                .media {
                    margin-bottom: 20px;
                }
            }
        }
    }
}