/************************************/
/****** Marina 18/09/2019 ***********/
/*Mini ficha que muestra los datos en el hover sin hacer el rebote*/


@mixin fichaDatosHover(){
    .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;
            img{
               // @include sombraPortada();
                max-width: 100%;
                height: auto;
            }
        }
        .product-image-container{
            .cart-button {
                background: rgba(255, 255, 255, 0.5);
                -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
                filter: alpha(opacity=0);
                -moz-opacity: 0;
                -khtml-opacity: 0;
                opacity: 0;
                transition: all 0.3s ease-in-out 0s;
                -webkit-transition: all 0.3s ease-in-out 0s;
                -ms-transition: all 0.3s ease-in-out 0s;
                //Colocamos el elemento
                position: absolute;
                top: 0px;
                align-items: center;
                justify-content: center;
                overflow: hidden;
                display: flex;
                height: 100%;
                width: 100%;
                & > span{
                    opacity: 0;
                    margin-top: 0;
                    border: 0;
                    border: 0 none;
                    color: $blanco;
                    height: 100%;
                    width: 100%;
                    position: absolute;
                    white-space: nowrap;
                    transition: all 0.4s ease-in-out 0s;
                    -webkit-transition: all 0.4s ease-in-out 0s;
                    -ms-transition: all 0.4s ease-in-out 0s;
                    display: inline-block;
                    a{
                        background-color: $bt_mf_fondo;
                        color:$bt_mf_fuente;
                        &:hover{
                            color:$bt_mf_fuente_hover;
                            background-color: $bt_mf_fondo_hover;
                        }
                    }
                    .right-block {
                        position: relative;
                        height: 100%;
                        h5{
                            display: block;
                            position: relative;
                            font-size: 12px;
                            margin: 7px 0px 2px 0px;
                            text-transform: capitalize;
                            text-align: left;
                            height: 33px;
                            overflow: hidden;
                            .product-name{
                                color: $titulo_ficha;
                                display: inline-block;
                                font-size: 1.2em;
                                white-space: normal;
                                font-weight: bold;
                                line-height: 1.1em;
                                margin-bottom: 0;
                                text-align: center;
                                width: 100%;
                                padding: 1px 8px;
                                overflow: hidden;
                                height:32px;
                                &:hover{
                                    color: $titulo_ficha_hover;
                                    font-size: 1.22em;

                                }
                            }
                        }
                        .comments_note {
                            display: block;
                            padding: 0px 10px;
                            height:20px;
                            text-align:center;
                            margin-bottom: 2px;
                            .star {
                                a{
                                    text-transform: capitalize;
                                    text-overflow: ellipsis;
                                    white-space: nowrap;
                                    display: block;
                                    overflow: hidden;
                                    color: $autor_ficha;
                                    font-size: 0.9em;
                                    &:hover{
                                        color:$primarioHover;
                                    }
                                }
                            }
                        }
                        .price-rating{
                            .btnComprar{
                                float: none;
                                background-color: $blanco;
                                border:1px solid $primario;
                                font-family: $fuente;
                                bottom: 10px;
                                width: 100%;
                                text-align: center;
                                a{
                                    color:$primario;
                                    font-weight: 700;
                                }
                                &:hover{
                                    background-color: $secundario;
                                    a{
                                        color:$blanco;
                                    }
                                }
                            }
                        }
                        .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;
                        }
                    }
                }
                .tab_button {
                    position: absolute;
                    bottom: 10%;
                    a{
                        background: $secundario;
                        border: 1px solid $bt_mf_fuente;
                        color: $bt_mf_fuente;
                        display: inline-block;
                        height: 30px;
                        width: 30px;
                        transition: all 0.4s ease-in-out 0s;
                        -webkit-transition: all 0.4s ease-in-out 0s;
                        -ms-transition: all 0.4s ease-in-out 0s;
                        &:before {
                            border-top: 6px solid $rojo;
                            border-top-color: $bt_mf_fuente;
                            border-left: 6px solid transparent;
                            border-right: 6px solid transparent;
                            content: "";
                            height: 0;
                            left: 50%;
                            margin-left: -5px;
                            position: absolute;
                            top: -8px;
                            transition: all 0.3s ease-in-out 0s;
                            width: 0;
                            opacity: 0;
                            z-index: -10;
                            transition: all 0.3s ease-in-out 0s;
                            -webkit-transition: all 0.3s ease-in-out 0s;
                            -ms-transition: all 0.3s ease-in-out 0s;
                        }
                        &:hover{
                            background: $primario;
                            color:$secundario;
                            span{
                                opacity: 1;
                                z-index: auto;
                                color:$secundario;
                                &:before{
                                    background: $primario;
                                }
                            }
                            &:before{
                                opacity: 0.8;
                                z-index: auto;
                            }
                        }
                        i {
                            font-size: 13px;
                            line-height: 1;
                            width: 20px;
                            &.icon-eye-open {
                                padding-top: 7px;
                            }
                        }
                        .icon-eye::before, .icon-eye-open::before {
                            content: "\f208";
                        }
                        span {
                            bottom: 36px;
                            font-size: 12px;
                            font-weight: normal;
                            left: 50%;
                            padding: 5px 4px 4px;
                            position: absolute;
                            text-transform: capitalize;
                            transform: translateX(-50%);
                            line-height: 1;
                            white-space: nowrap;
                            opacity: 0;
                            z-index: -10;
                            transition: all 0.3s ease-in-out 0s;
                            -webkit-transition: all 0.3s ease-in-out 0s;
                            -ms-transition: all 0.3s ease-in-out 0s;
                            &:before {
                                background: $secundario none repeat scroll 0 0;
                                content: "";
                                height: 100%;
                                left: 0;
                                position: absolute;
                                top: 0;
                                width: 100%;
                                opacity: 0.8;
                                z-index: -1;
                            }
                        }
                    }
                }
            }
            &:hover{
                .cart-button {
                    background: rgba(219, 219, 219, 0.72);
                    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
                    filter: alpha(opacity=100);
                    -moz-opacity: 1;
                    -khtml-opacity: 1;
                    opacity: 1;
                    cursor:pointer;
                    & > span {
                        animation: bounce;
                        animation-duration: 0.7s;
                        opacity: 1;
                        margin-top: 0;
                        transition: all 1s ease-in-out 0s;
                        -webkit-transition: all 1s ease-in-out 0s;
                        -ms-transition: all 1s ease-in-out 0s;
                    }
                    .tab_button {
                        animation-name: slideInUp;
                        animation-duration: 0.4s;
                    }
                }
            }
        }
    }

    .btnComprar {
        background: $primario;
        a{
            color:$grisTexto;
            padding: 4px 10px;
            &.exclusive{
                color:$blanco;
                &:hover{
                    color: $blanco;
                    background: $primario;
                    transition: all ease 0.2s 0s;
                }
            }
        }
    }
    .product-image-container{
        text-align: center;
        overflow: hidden;
        position: relative;
    }
    .btnComprar {
        background: $primario;
        a{
            color:$grisTexto;
            padding: 4px 10px;
            &.exclusive{
                color:$blanco;
                &:hover{
                    color: $blanco;
                    background: $primario;
                    transition: all ease 0.2s 0s;
                }
            }
        }
    }
    .cart-button{
        display: none;
    }

    /* The animation code */
    @keyframes slide_derecha {
        0%{right:100%}
        99%{right:1%}
        100%{right:0%}
    }
    .precio{
        display: inline-block;
        float: right;
        padding-right: 18px;
        font-size: 12px;
        font-weight: bold;
        font-family: $fuente2;
    }
    .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;
    }
}