//---------------------------------------------------------------------------------------------------------
// Marina(29/Enero/2020) ---- Esta ficha se ha creado por primera vez para la web Serendipias
// Ficha Ampliada del producto que tiene un aside en el lateral izquierdo y los productos relacionados en la parte inferior
// Diseño: tiene un diseño renovado para hacerlo mas ordenado y directo visualmente 
//---------------------------------------------------------------------------------------------------------
@import 'colores';
@import 'aside';

@mixin FichaAmpliadaNova(){
    /*----------------------------------------------------------------------------
      COLUMNA ASIDE
    -----------------------------------------------------------------------------*/

    @include aside();

    #left_column1{
        float: left;
        padding-top: 0px;
    }

    /*----------------------------------------------------------------------------
      COLUMNA DE LA FICHA
    -----------------------------------------------------------------------------*/
    .center_column{
        float: right;
        .primary_block {
            .pb-left-column{
                text-align: center;
                .product-title {
                    padding-left: 20px;
                    //text-align: left;
                    h1 {
                        color: $primario;
                        font-size: 2.3em;
                        font-weight: bold;
                        font-family: $fuente2;
                        line-height: 1;
                        margin-top: -2px;
                        margin-bottom: 7px;
                        @media(max-width: 767px) {
                            margin-top: 20px;  
                        }
                    }
                }
                div#image-block {
                    position: relative;
                    //display: block;
                    width: fit-content;
                    display: inline-block;
                    //border: 1px solid $border_imagen;
                    cursor: pointer;
                    figure{
                        text-align: center;
                        padding: 30px 0 30px 0;
                        width: fit-content;
                        img{
                            width:auto !important;
                            @include sombraPortada();
                            max-width: 90%;
                            height: auto;
                        }
                    }
                }
                div#views_block{
                    text-align: center;
                }
            }
            .pb-center-column {
                width: 53%;
                padding-top: 86px;
                .page-product-box{
                    //border: 2px dotted $primario;
                    border: 1px solid $gris;
                    margin-bottom: 10px;
                    padding: 10px 20px;
                    position: relative;
                    .datos_ficha{
                        color: $primario;
                        font-size: 24px;
                        position: absolute;
                        top: -36px;
                        left: 14px;
                        background-color: $blanco;
                        padding: 0px 6px;
                    }
                    .autor{
                        h2{
                            margin-top: 9px; 
                            font-size: 22px;
                        }
                    }
                    .editorial{
                        h2{
                            margin-top: 1px;
                            font-size: 20px;
                        }
                    }
                    p{
                        color: $colorDelDemonio;
                        font-size: 13px;
                        line-height: 21px;
                        margin: 0;
                        min-height: 1px;
                        text-align: justify;
                        strong{
                            padding-left: 8px;
                        }
                        &.bg-warning{
                            //background-color: $secundario;
                            
                        }
                    }
                }
                .redes_y_comprar{
                    .socialsharing_product{
                        display: inline-block;
                        float: right;
                        @media(max-width: 991px){
                            float: left;
                            margin-top: 10px;
                        }
                        @media(max-width: 767px) and (min-width: 420px){
                            float: right;
                            margin-top: 0px;
                        }
                        @media(max-width: 420px){
                            float: left;
                            margin-top: 10px;
                            width: 100%;
                        }
                    }
                    .comprar{
                        float: left;
                        margin-top:-8px;
                        .buttons_bottom_block .boton{
                            background: $primario;
                            color: $blanco;
                            &:hover{
                                background: $secundarioHover;

                            }
                        }
                    }
                }
                p {
                    margin-bottom: 5px;

                }
                #availability_statut{
                    margin:0px 0px 10px -4px;
                }
                .bg-danger{
                    color: $rojo_claro;
                }
                .ean{
                    strong{
                        font-family: $fuente2;
                        font-size:1.3em;
                        padding-left: 8px;

                    }
                    margin-bottom:5px;
                }
                @media (max-width: 1199px){
                    width: 50%;
                }
                @media (max-width: 767px){
                    width: 100%;
                }
            }
            @media(min-width: 992px) and (max-width: 1199px){
                padding: 0% 5%;
                .pb-left-column, .pb-center-column{
                    width: 50%;
                }
            }
            .price {
                font-size: 32px;
                font-weight: bold;
                color: $precio_ficha;
                white-space: nowrap; 
                em{
                    font-size:0.6em;
                    color:$color_gris_oscuro;
                }
            }
            .price .product-price {
                font: bold 16px/22px $fuente;
                color: $precio_ficha; 
            }
            .old-price {
                color: $gris8;
                text-decoration: line-through;
            }
            .old-price.product-price {
                font-size: 12px;
            }
            .special-price {
                color: $colorDelDemonio;
            }
        }
        .bloque_descripcion{
            padding: 20px 40px;
            @media(max-width: 1599px){
                padding: 20px 20px 20px 0px;
            }
            .masinfo{
                background-color: $blanco;
                font-size: 18px;
                position:absolute;
                color:$primario;
            }
            .descripcion{
                border-top: 1px solid #6666664a;
                width: 100%;
                margin-top: 12px;
                color: $colorDelDemonio;
                font-size: 16px;
                line-height: 21px;
                min-height: 1px;
                text-align: justify;
                text-indent: 27px;
                padding: 14px;
            }
        }
        .contenedor_relacionados {
            #productos_relacionados{
                overflow:hidden;
                .block_content {
                    border: 1px solid $blancoRoto;
                    padding: 0 20px;
                }
                .lista_articulos {
                    padding: 0 5px;
                    @include FichaBordeSombreado();
                    .mini_ficha_borde_sombreado{
                        padding: 0px 26px;
                        @media(max-width: 1599px) {
                            width: 50%;
                            padding: 0px 50px;
                        }
                        @media(max-width: 767px) {
                            padding: 0px 40px;
                        }
                        @media(max-width: 700px) {
                            padding: 0px 30px;
                        }
                        @media(max-width: 650px) {
                            padding: 0px 80px;
                            width: 100%;
                        }
                        @media(max-width: 550px) {
                            padding: 0px 60px;
                        }
                        @media(max-width: 450px) {
                            padding: 0px 40px;
                        }
                        @media(max-width: 450px) {
                            padding: 0px;
                        }
                    }
                }
            }
        }
    }
    .btnComprar{
        background: none !important;
    }
    .list-inline{
        margin-left: 0px;
    }

    body:not(#index) #columns {
        position: relative;
        padding-top: 30px;
    }

    // #buy_block .box-cart-bottom #add_to_cart, #buy_block .box-cart-bottom .buttons_bottom_block {
    //     display: inline-block;
    //     float: left;
    // }
    p {
        margin: 0 0 9px;
    }
    .our_price_display, #old_price {
        display: inline-block;
        font-family: $fuente2;
    }
    #old_price{
        color: $colorDelDemonio;
        text-decoration: line-through;
        font-size: 13px;
        .price{
            font-size: 1.2em;
            color: $colorDelDemonio;
            font-weight: normal;
        }
    }

    .resetimg {
        padding: 10px 0 0;
    }
    #page p {
        color: $colorDelDemonio;
        font-size: 13px;
        line-height: 21px;
        margin: 0;
        min-height: 1px;
        border: 1px solid $blancoRoto;
        padding: 26px 20px;
        text-align: justify;
    }

    /*-+----+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-
    * quantity_wanted
    *+-+-+-+-+-+--+-++-+-+-+-+-+-+-+-+-+-+-*/
    input.cantidad_compra {
        width: 100%;
        border: none;
    }
    .pb-center-column p#quantity_wanted_p {
        margin-bottom: 5px;
        display: inline-block;
        margin-right: 10px;
        margin-top: 8px;
        float: left;
    }
    form.cantidadBtnComprar {
        margin-top: 7px;
    }
    .cantidadBtnComprar {
        width: 80px;
        height: 35px;
        padding: 0 3px 0 5px;
        float: left;
        border: 1px solid $border_cantidad !important;
        line-height: 27px;
        padding: 0;
        text-align: center;
        padding-left: 15px;
        margin: 0;
    }
    #quantity_wanted_p input {
        width: 40px;
        height: 33px;
        padding: 0 3px 0 5px;
        float: left;
        border: 0px solid $gris!important;
        line-height: 27px;
        padding: 0;
        text-align: center;
        /*padding-left: 15px;*/
        margin: 0;
    }

    input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    input[type=number]::-webkit-outer-spin-button{
        -webkit-appearance: none;
        margin: 0;
    }
    input[type=number] {
        -moz-appearance:textfield;
    }
    .abc {
        width: 23px;
        height: 33px;
        float: left;
        border-color: $gris;
        border-style: solid;
        //border-width: 1px 1px 1px 0;
        border-width: 0px;
        .boton{
            display:block;
            background-color: $blanco;
            padding: 0px;
            border: none;
            &:hover{
                background-color: $terciario2;
            }
        }
        span {
            width: 21px;
            height: 16px;
            display: block;
            text-align: center;
            color: $colorDelDemonio;
        }
    }

    /*-----------------------------------------------
    * Boton comprar
    *-----------------------------------------------*/
    p#add_to_cart {
        display: inline-block;
        float: left;
        margin-top: 7px;
    }
    /**
    * Label de stock
    **/
    #availability_value, #last_quantities {
        color: $blanco;
        display: inline-block;
        font-weight: normal;
        line-height: 18px;
        margin-left: 5px;
        padding: 3px 8px 4px;
        border: 0;
        background: $verde;
    }
    #availability_statut, #pQuantityAvailable {
        display: inline-block;
    }

    .label{
        white-space: normal;
        vertical-align: baseline;
        border-radius: 0;
    }

    /**----------------------------------------------------------------------------
    * Precios
    * ----------------------------------------------------------------------------**/




    .pvp{
        display: inline-block;
        vertical-align: middle;
    }
    .comprar{
        display: inline-block;
        vertical-align: middle;
        float:right;
        @media (min-width: 1200px) and (max-width: 1599px){
            float:unset;
        }
        @media (max-width: 991px){
            float:unset;
        }
    }


    .descripcion_seo{
        margin-top: 3%;
        p{
            color: $colorDelDemonio;
            font-size: 13px;
            line-height: 21px;
            padding-bottom: 3%;
            min-height: 1px;
            text-align: justify;  
        }
    }
    /*
    * Social Sharing
    */
    .socialsharing_product button {
        margin-bottom: 3px;
        text-align: center; }

    /* -------*--------------------------------------------------------------------------------------------------------
                                                                                     Social Sharing 
    ------------------------------------------------------------------------------------------------------------------- */
    .socialsharing_product button {
        margin-bottom: 3px;
        border: 0;
        background: $rs_fondo;
        color: $colorDelDemonio;
        font-size: 0px;
        span{
            font-size: 16px;
        }
    }

    .btn-twitter:hover {
        color: $blanco;
        background-color: $twitter;
        .icon-twitter{
            background: url('../images/w-twitter-logo.svg')center center no-repeat;
        }
    }
    .btn-facebook:hover {
        color: $blanco;
        background-color: $facebook;
        .icon-facebook{
            background: url('../images/w-facebook-logo.svg')center center no-repeat;
        }
    }
    .btn-google-plus:hover {
        color: $blanco;
        background-color: $naranja_google;
        .icon-google-plus{
            background: url('../images/w-google-logo.svg')center center no-repeat;
        }
    }
    .btn-pinterest-plus:hover {
        color: $blanco;
        background-color: $pinterest;
        .icon-pinterest-plus{
            background: url('../images/w-pinterest-logo.svg')center center no-repeat;
        }
    }
    .btn-whatsapp{
        @media(min-width:992px){
            display:none;
        }
        &:hover{
            background: $wasap;
        }
    }
    .icon{
        width: 13px;
        height: 13px;
        display: inline-block;
        background-size: cover !important;
        vertical-align: middle;
        margin-top: -3px;
    }
    .icon-twitter{
        background: url('../images/twitter-logo.svg')center center no-repeat;
    }
    .icon-facebook{
        background: url('../images/facebook-logo.svg')center center no-repeat;
    }
    .icon-google-plus{
        background: url('../images/google-logo.svg')center center no-repeat;
    }
    .icon-pinterest-plus{
        background: url('../images/pinterest-logo.svg')center center no-repeat;
    }
    #product_sub {

        color: $colorDelDemonio;
    }
    /**-------------------------------------------------------------------------
    * Side
    -------------------------------------------------------------------------**/
    .cabecera_lista_escaparates, .headRelated{
        font-family: $fuente;
        color: $gris_chocolate;
        background: none;
        font-size: 16px;
        line-height: 16px;
        margin: 0 0 20px;
        padding: 14px 40px 16px 20px;
        position: relative;
        text-transform: uppercase;
        font-weight: 700;
        border-bottom:1px solid $gris;
    }

    .lista_escaparates{
        border: 1px solid $gris_borde_subtitulo;
        padding: 9px 20px 8px;
        &> ul > li > a {
            font-family: $fuente;
            font-size: 16px;
            font-weight: bold;
            line-height: 16px;
            border-top: 1px solid $gris_borde_subtitulo;
            padding: 12px 0 7px;
            &:nth-child(1){
                border-top: none;
            }
        }
        li{
            list-style: none;
        }
    }



    /**
    *-------------------------------------------------------------------------------
    * lupa_articulo
    *-------------------------------------------------------------------------------
    **/
    article .lupa_articulo {
        position:relative;
        overflow: hidden;
    }

    article .lupa_articulo img {
        display: block;
        height: auto;
        cursor:crosshair;
    }
    article .lupa_articulo img:hover {
        cursor:crosshair;
    }
    .lupa_articulo figure:hover figcaption {
        visibility:hidden;
        transition: all 0.1s linear 0s;
    }
    .lupa{
        position: absolute;
        z-index: 100;
        width: 22%;
        height: 454px;
        overflow: hidden;
        border: 1px solid $gris;
        top: 37%;
        left: 50%;
    }
    .LupaTrans{
        width:150px;
        height:150px;
        border: 1px solid $grisClaro;
        -webkit-box-shadow: 0px 0px 10px 0px rgba(50, 50, 50, 0.5);
        -moz-box-shadow:    0px 0px 10px 0px rgba(50, 50, 50, 0.5);
        box-shadow:         0px 0px 10px 0px rgba(50, 50, 50, 0.5);
        cursor:crosshair;
        background: -moz-linear-gradient(top,  rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.2) 48%, rgba(255,255,255,0.5) 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top,  rgba(255,255,255,0.5) 0%,rgba(255,255,255,0.2) 48%,rgba(255,255,255,0.5) 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom,  rgba(255,255,255,0.5) 0%,rgba(255,255,255,0.2) 48%,rgba(255,255,255,0.5) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80ffffff', endColorstr='#80ffffff',GradientType=0 ); /* IE6-9 */
    }
    @media (max-width: 767px){
        .pb-center-column {
            float: left;
            overflow: hidden;
        }
    }

    /* Small devices (tablets, 768px and up) */
    @media (min-width: 768px) { 

    }

    /* Medium devices (desktops, 992px and up) */
    @media (min-width: 992px) { 

    }

    .block_hidden_only_for_screen {
        display: none;
    }

    /**
    *-------------------------------------------------------------------------------
    * fotos extra
    *-------------------------------------------------------------------------------
    **/
    .mostrarExtraFotos img {
        width: auto;
        margin: 2px;
        box-shadow: -2px 2px 14px 1px #b9b9b9;
        -webkit-box-shadow: -2px 2px 14px 1px #b9b9b9;
        -moz-box-shadow: -2px 2px 14px 1px #b9b9b9;
        -ms-box-shadow: -2px 2px 14px 1px #b9b9b9;
        -o-box-shadow: -2px 2px 14px 1px #b9b9b9;
        &:hover{
            cursor:pointer;
        }
    }
    #aside_category{
        margin-bottom:15px;

        li{
            position: relative;
        }
        a {
            display: block;
            span{
                display: block;       
                padding: 4px 17px;

            }
            &:before {
                height: 100%;
                border-style: solid;
                border-width: 4px;
                border-color: rgba(204, 230, 207, 0.5);
                background: rgba(204, 230, 207, 0.15);
                content: "";
                position: absolute;
                transform: scale(0);
                transition-duration: 0.3s;
                transition-property: transform;
                width: 100%;
                transition-timing-function: ease-out;
                z-index: -1;

            }
            &:hover{
                color:$primarioHover;
                &:before{
                    transform: scale(1);
                    z-index: 1;
                }
            }
        }   
    }



}
