/************************************/
/****** Marina 18/07/2019 ***********/
/*Mini ficha que hace efecto de rebote en el hover*/


@mixin fichaBoing(){
    .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;
                    /*transform: translate(-50%,-50%);*/
                    border: 0 none;
                    color: $blanco;
                    /*left: 50%;*/
                    position: absolute;
                    /*top: 50%;*/
                    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 !important;
                        &:hover{
                            color:$bt_mf_fuente_hover !important;
                            background-color: $bt_mf_fondo_hover;
                        }
                    }
                }
                .tab_button {
                    position: absolute;
                    bottom: 10%;
                    a{
                        background: $secundario;
                        border: 1px solid $bt_mf_fuente;
                        /*bottom: 30px;*/
                        color: $bt_mf_fuente !important;
                        display: inline-block;
                        /*float: left;*/
                        height: 30px;
                        /*position: absolute;*/
                        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 !important;
                            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.5);
                    /*animation: slide_derecha;
                    animation-duration: 0.4s;*/
                    -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;
                        /*animation-duration: 1s;
                        animation-iteration-count: 1;
                        animation-name: hvr-adtocart;
                        animation-timing-function: ease-in-out;*/
                        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;
                    }
                }
            }
        }
    }
    .right-block {
        border-style: solid;
        border-color: $gris;
        /*text-align: center;*/
        position: relative;
        border-width: 1px;
        margin-bottom: 30px;
        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;
                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;
            /*position: absolute;
            right: 20px;
            top: 18px;*/
            .star {
                /*position: relative;
                top: -2px;
                float: left;
                width: 76px;
                overflow: hidden;
                cursor: pointer;
                font-size: 11px;
                font-weight: normal;
                text-transform: capitalize;
                max-height: 13px;*/
                a{
                    text-transform: capitalize;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    display: block;
                    overflow: hidden;
                    color: $autor_ficha !important;
                    font-size: 0.9em;
                    &:hover{
                        color:$primarioHover !important;
                    }
                }
            }
        }
        .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;
        }
    }
    .btnComprar {
        background: $secundario;
        a{
            color:$blanco;
            padding: 4px 10px;
            &.exclusive{
                color:$blanco;
                &:hover{
                    color: $secundario;
                    background: $primario;
                    transition: all ease 0.2s 0s;
                }
            }
        }
    }
    .product-image-container{
        text-align: center;
        overflow: hidden;
        position: relative;
    }
    .btnComprar {
        background: $blanco;
        a{
            color:$secundario;
            padding: 4px 10px;
            &.exclusive{
                color:$blanco;
                &:hover{
                    color: $blanco !important;
                    background: $secundario;
                    transition: all ease 0.2s 0s;
                }
            }
        }
    }
    .cart-button{
        display: none;
    }
    .price-rating{
        .btnComprar{
            float: left;
            margin-left: 5px;
            margin-bottom: 5px;
            font-family: $fuente;
            a{
                background-color: $blanco;
                color:$secundario !important;
                font-weight: 700;
                border: 1px solid #8cbde02e;
                &:hover{
                    color:$blanco !important;
                    background-color: $secundario;
                }
            }
        }
    }
    /* 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;
    }
}