/************************************/
/****** Marina 18/07/2019 ***********/
/*Mini ficha que hace un giro y da la vuelta a la portada*/


@mixin FichaFlip(){
    .item-inner {
        max-width: 100%;
        //overflow: hidden;
        position: relative;
    }
    .left-block {
        //border: 1px solid $gris;
        position: relative;
        margin: 10px auto 0px;
        z-index: 1;
        perspective: 1000px;
        -webkit-perspective: 1000px;
        -moz-perspective: 1000px;
        -o-perspective: 1000px;
        .product-image-container{
            width: 100%;
            height: 100%;
            -webkit-transform-style: preserve-3d;
            -webkit-transition: all 0.7s linear;
            -moz-transform-style: preserve-3d;
            -moz-transition: all 0.7s linear;
            -o-transform-style: preserve-3d;
            -o-transition: all 0.7s linear;
            transform-style: preserve-3d;
            transition: all 0.7s linear;
            .face{
                width: 100%;
                height: 100%;
                -webkit-backface-visibility: hidden;
                -moz-backface-visibility: hidden;
                -o-backface-visibility: hidden;
                backface-visibility: hidden;
                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;
                    }
                }
            }
            .button-container {
                padding: 12px;
                display: block;
                -webkit-transform: rotateY(180deg);
                -webkit-box-sizing: border-box;
                -moz-transform: rotateY(180deg);
                -moz-box-sizing: border-box;
                -o-transform: rotateY(180deg);
                -o-box-sizing: border-box;
                transform: rotateY(180deg);
                box-sizing: border-box;
                padding: 10px;
                text-align: center;
                background-color: $secundario;
                position: absolute;
                top:0;
                .cart-button {
                    background: $blanco;
                    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;
                    display: block;
                    height: 100%;
                    width: 100%;
                    position: relative;
                    border: 1px solid $blanco;
                    text-align: center;
                    // @include sombraReversoPortada();
                    .descripcion{
                        padding: 12px;
                        display: block;
                        height: 55%;
                        overflow: hidden;
                        color: $colorDelDemonio;
                        text-align: left;
                        text-indent: 15%;
                        font-size: 12px;
                        margin-top: 7px;
                        cursor: pointer;
                    }
                    div{
                        overflow: hidden;
                        margin: 8px 13px;
                        & > span {
                            color:$colorDelDemonio;
                            font-size: 15px;
                            display: block;
                        }
                        a{
                            color:$terciario;
                            font-size: 16.50px;
                            height: 23px;
                            overflow: hidden;
                            display: block;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                            &:hover{
                                color:$primarioHover;
                            }
                        }
                    }
                }
            }
        }
        &:hover{
            .product-image-container{
                -webkit-transform: rotateY(180deg);
                -moz-transform: rotateY(180deg);
                -o-transform: rotateY(180deg);
                transform: rotateY(180deg);
            }
        }
    }
    .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: 17px;
            margin: 7px 0px 0px;
            text-align: left;
            height: 36px;
            overflow: hidden;
            .product-name{
                color: $primario;
                display: inline-block;
                line-height: 1.1em;
                margin-bottom: 0;
                text-align: center;
                width: 100%;
                /* padding: 17px 100px 0 24px; */
                padding: 1px 8px;
                overflow: hidden;
                height:36px;
                // @media (max-width: 600px){
                //     font-size: 1.2em;
                // }
                &:hover{
                    color: $terciario;
                }
            }
        }
        .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;
            font-size: 16px;
            margin-top: 5px;
            margin-right: 4px;
            text-decoration: line-through;
            @media (max-width: 1518px){
                font-size: 15px;
            }
            @media (max-width: 1199px){
                font-size: 16px;
            }
            @media (max-width: 574px){
                font-size: 15px;
            }
        }
    }
    .btnComprar {
        background: $primario;
        a{
            color:$grisTexto;
            padding: 4px 10px;
            &.exclusive{
                color:$blanco;
                &:hover{
                    color: $blanco !important;
                    background: $primario;
                    transition: all ease 0.2s 0s;
                }
            }
        }
    }
    .cart-button{
        display: none;
    }
    .price-rating{
        height: 28px;
        width: 80%;
        display:inline-block;
        @media (max-width: 1518px){
            width: 90%;
        }
        @media (max-width: 1199px){
            width: 80%;
        }
        @media (max-width: 897px){
            width: 90%;
        }
    }
    .contenedor_article{
        .col-lg-2{
            @media (max-width: 1600px){
                width: 24.666667%;
            }
        }
        .col-sm-6{
            @media (max-width: 992px){
                width: 32.666667%;

            }
        }
        .escaparate{
            // @media (min-width: 1200px){
            //     width: 14%;
            // }

            // @media (max-width: 1199px){
            //     width: 24.333333%;
            // }
            @media (max-width: 850px){
                padding-left: 0px;
                padding-right: 0px;
            }
            @media (max-width: 767px){
                width: 33.333333%;
            }
            @media (max-width: 600px){
                width: 49.333333%;
            }
            @media (max-width: 574px){
                padding:0px;
            }
            @media (max-width: 472px){
                padding:0px;
            }
            @media (max-width: 300px){
                width: 99.333333%;
            }    
        }
    }
    .divcomprar{
        text-align: center;
        .btnComprar{
            margin-bottom: 5px;
            font-family: $fuente;
            background: none;
            a{
                background-color: $primario;
                color:$secundario;
                width: 80%;
                font-size: 16px;
                margin-top: 7px;
                &:hover{
                    color:$primario;
                    background-color: $secundario;
                    .precio_actual, .precio_final{
                        color:$bt_mf_fuente_hover;
                    }
                }
                @media (max-width: 1518px){
                    width: 90%;
                }
                @media (max-width: 1199px){
                    width: 90%;
                }
                @media (max-width: 767px){
                    width: 80%;
                }
                @media (max-width: 467px){
                    font-size: 14px;
                }
            }
        }
    }
    .sliderComprar{
        text-align: center;
        .btnComprar{
            margin-bottom: 5px;
            font-family: $fuente;
            background: none;
            a{
                background-color: $primario;
                color:$secundario;
                font-weight: 700;
                width: 80%;
                font-size: 16px;
                margin-top: 7px;
                &:hover{
                    color:$primario;
                    background-color: $secundario;
                    .precio_actual, .precio_final{
                        color:$bt_mf_fuente_hover;
                    }
                }
                @media (max-width: 1518px){
                    width: 90%;
                }
                @media (max-width: 767px){
                    width: 50%;
                }
                @media (max-width: 676px){
                    width: 70%;
                }
                @media (max-width: 300px){
                    width: 90%;
                }
            }
        }
    }
    /* The animation code */
    @keyframes slide_derecha {
        0%{right:100%}
        99%{right:1%}
        100%{right:0%}
    }
    .precio{
        display: inline-block;
        font-size: 12px;
        font-weight: bold;
        font-family: $fuente2;
    }
    .precio_actual, .precio_final{
        @extend .precio;
        color: $precio_ficha;
        font-size: 22px;
        font-weight: 800;
        font-family: $fuente2;
        @media (max-width: 1518px){
            font-size: 20px;
        }
        @media (max-width: 1199px){
            font-size: 20px;
        }
        @media (max-width: 574px){
            font-size: 18px;
        }
    }
    .precio_anterior{
        @extend .precio;
        text-decoration: line-through;
        font-family: $fuente2;
    }
    .content_price{
        height: 28px;
        font-family: $fuente2;
    }
}