/************************************/
/****** Marina 18/07/2019 ***********/
/*Mini ficha que tiene un semaforo de disponibilidad de stock*/

@mixin FichaSemaforo(){
    .mini_ficha{
        border:1px solid $secundario;
        margin-bottom: 30px;
        &:hover{
            border:1px solid $primario;
        }   
    }
    .item-inner {
        max-width: 100%;
        overflow: hidden;
        position: relative;
    }
    .left-block {
        // border: 1px solid $gris;
        figure{
            text-align: center;
            padding: 18px 18px;
            min-height: 292px;
            display: flex;
            align-items: center;
            justify-content: center;
            display: -webkit-flex;
            -webkit-align-items: center;
            -webkit-justify-content: center;
            img{
                @include sombraPortada();
                max-width: 100%;
                height: auto;
            }
        }
    }
    .right-block {
        /*text-align: center;*/
        position: relative;
        border-width: 1px;
        h5{
            display: block;
            position: relative;
            font-size: 12px;
            margin: 7px 0px 2px 0px;
            text-align: left;
            height: 33px;
            overflow: hidden;
            .product-name{
                color: $titulo_ficha;
                display: inline-block;
                font-size: 1.2em;
                font-weight: bold;
                line-height: 1.1em;
                margin-bottom: 0;
                text-align: center;
                width: 100%;
                /* padding: 17px 100px 0 24px; */
                padding: 1px 8px;
                overflow: hidden;
                height:32px;
                &:hover{
                    color: $titulo_ficha_hover !important;
                    font-size: 1.22em ! important;
                }
            }
        }
        .comments_note {
            display: block;
            padding: 0px 10px;
            height:20px;
            text-align:center;
            margin-bottom: 2px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
        .price-rating {
            display: flex;
            align-content: space-between;
            display: -webkit-flex;
            -webkit-align-content: space-between;
            .semaforo {
                flex: 1 1;
                -webkit-flex: 1 1;
                margin-left: 15px;
                .red{
                    color:red;
                }
                .yellow{
                    color:orange;
                }
                .green{
                    color: green;
                }
            }
        }
        .old-price{
            color: $colorDelDemonio;
            display: inline-block;
            padding-left: 18px;
            float: left;
            font-size: 1em;
            margin-right: 9px;
            margin-top: 2px;
            text-decoration: line-through;
        }
    }
    .product-image-container{
        text-align: center;
        overflow: hidden;
        position: relative;
    }
    .btnComprar {
        a{
            background: $minificha_boton_comprar_fondo;
            color:$minificha_boton_comprar_texto;
            display:block;
            font-size:1.2em;
            border:0;
            border-top:1px solid $secundario;
            &:hover{
                color: $minificha_boton_comprar_texto_hover;
                background: $minificha_boton_comprar_fondo_hover;
                transition: all ease 0.2s 0s;
                border-top:1px solid $primario;
            }
        }
    }
    .cart-button{
        display: none;
    }
    .precio{
        display: inline-block;
        float: right;
        padding-right: 18px;
        font-size: 12px;
        font-weight: bold;
    }
    .precio_actual, .precio_final{
        @extend .precio;
        color: $precio_ficha;
        font-size: 1.3em;
        font-weight: 800;
        font-family: $fuente2;
    }
    .precio_anterior{
        @extend .precio;
        text-decoration: line-through;
        font-family: $fuente2;
    }
    .content_price{
        height: 28px;
        font-family: $fuente2;
    }
}