/************************************/
/****** Marina 18/07/2019 ***********/
/*Ficha con los productos relacionados en un lado*/

@mixin FichAmpliadaRelacionadosAside(){
    /*
    Estilos tochos :D
    */
    
    .pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus, .pagination > .active > span, .pagination > .active > span:hover, .pagination > .active > span:focus, .pagination > li > a:hover, .pagination > li > a:focus, .pagination > li > span:hover, .pagination > li > span:focus, .pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus, .pagination > .active > span, .pagination > .active > span:hover, .pagination > .active > span:focus, .pagination > li > a:hover, .pagination > li > a:focus, .pagination > li > span:hover, .pagination > li > span:focus, #header .cart_block, .left-block .tab_button a:hover, ul.product_list.list > li .right-block .button-container .tab_button a:hover, #buy_block .box-cart-bottom a.add_to_compare:hover, #wishlist_button_nopop:hover, #wishlist_button:hover, #thumbs_list .owl-controls div.owl-nav > div:hover, #thumbs_list .owl-controls div.owl-nav > div:hover i, #more_info_tabs li a.selected, #more_info_tabs li a:hover, .box-info-product .exclusive:hover, #view_scroll_left:hover, #view_scroll_right:hover, .bottom-pagination-content ul.pagination li:not(.active):not(.pagination_next):not(.pagination_previous) > a:hover, .post-page .pagination .page-active {
        border-color: $gris;
    }
    .btnComprar{
        background: none !important;
    }
    .list-inline{
        margin-left: 0px;
    }
    /*
    * Resto de estilos
    */
    /*
    #columns{
            padding: 30px 0 30px 0px;
            overflow: hidden;
    }*/
    body:not(#index) #columns {
        position: relative;
        padding-top: 30px;
    }

    .pb-center-column 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;  
        }
    }
    #product .pb-center-column .price {
        font-size: 24px;
        font-weight: bold;
    }
    #more_info_tabs {
        margin-bottom: 30px;
        padding-right: 40px;
    }
    #more_info_tabs li {
        float: left;
        list-style: outside none none;
        margin: 0 30px 0 0;
        text-align: center;
    }
    #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;
        }
    }

    .exclusive {
        background: $botones_color;
        border: 0;
        color: $botones_fuente;
        display: block;
        margin-right: 3px;
        font-weight: bold;
        letter-spacing: 1.2px;
        line-height: 35px;
        padding: 0 10px;
        position: relative;
        transition: all 0.4s ease-in-out 0s;
        -webkit-transition: all 0.4s ease-in-out 0s;
        -moz-transition: all 0.4s ease-in-out 0s;
        height: 35px;
        &:hover, &:focus{
            background: $botones_color_hover !important;
            color: $botones_fuente_hover;
        }
    }
    .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;
    }
    .page-product-box {
        padding-bottom: 10px;
    }
    #idTab1, #idTab2{
        font-family: $fuente2;
    }
    .table-data-sheet {
        border-left: 1px solid $blancoRoto;
        border-right: 1px solid $blancoRoto;
        border-top: 1px solid $blancoRoto;
        width: 100%;
        margin: 0 0 20px;
        tr{
            td{
                &:nth-child(2){
                    border-right: 0;
                }
            }
        }
    }
    table {
        max-width: 100%;
        background-color: transparent;
    }
    table {
        border-collapse: collapse;
        border-spacing: 0;
    }
    .pb-left-column{

        div#image-block {
            position: relative;
            display: block;
            border: 1px solid $border_imagen;
            cursor: pointer;
        }
        div#views_block{
            text-align: center;
        }
    }
    /*-+----+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-
    * 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: 21px;
        height: 35px;
        float: left;
        border-color: $gris;
        border-style: solid;
        border-width: 1px 1px 1px 0;
        .boton{
            display:block;
            background-color: $blanco;
            padding: 0px;
            &:hover{
                background-color: $secundario;
            }
        }
        span {
            width: 20px;
            height: 15px;
            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;
    }
    .pb-center-column {
        p {
            margin-bottom: 5px;
            &.bg-warning{
                background-color: $secundario;
            }
        }
    }
    .label{
        white-space: normal;
        vertical-align: baseline;
        border-radius: 0;
    }
    /*
    * Sombricas y cosas para las imagenes
    */
    main{
        figure{
            text-align: center;
            padding: 30px 0 30px 0;
            img{
                width:auto !important;
                @include sombraPortada();
                max-width: 100%;
                height: auto;
            }
        }
    }
    /**----------------------------------------------------------------------------
    * Precios
    * ----------------------------------------------------------------------------**/

    .primary_block {
        .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; }
    }
    /*-----------------------------------------------------------------------------
    * TABS 
    *-----------------------------------------------------------------------------*/

    #more_info_tabs li a {
        color: $colorDelDemonio;
        display: inline-block;
        font-size: 16px;
        font-weight: bold;
        line-height: 1;
        padding: 5px 0 9px;
        text-decoration: none;
        &.selected{
            color: $primario !important;
            border-bottom: 1px solid $primario;
        }
        &:hover{
            border-bottom: 1px solid $primario;
        }
    }
    tr {
        td {
            border-color:$border_ficha_tecnica;
            border-style: solid;
            border-width: 0 1px 1px 0;
            color: $colorDelDemonio;
            padding: 10px 20px 11px;
            background: $blanco;
        }
    }
    .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;
        }
    }
    .page-product-box{
        .autor{
            h2{
                margin-top: 9px; 
            }
        }
        .editorial{
            h2{
                margin-top: 1px;
                font-size: 24px;
            }
        }
        p{
            color: $colorDelDemonio;
            font-size: 13px;
            line-height: 21px;
            margin: 0;
            min-height: 1px;
            text-align: justify;
			strong{
				padding-left: 8px;
			}
        }
    }
    .bloque_descripcion{
        padding-top: 3%;
        .masinfo{
            background-color: $blanco;
            font-size: 18px;
            position:absolute;
            color:$primario;
        }
        .descripcion{
            border-top: 1px solid #6666664a;
            width: 88%;
            margin-top: 12px;
          
                color: $colorDelDemonio;
                font-size: 16px;
                line-height: 21px;
                min-height: 1px;
                text-align: justify;
                text-indent: 27px;
                padding-top: 13px;
                padding-bottom: 13px;
           
            @media (max-width: 1199px){
                width: 100%;
            }
        }
    }
    .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;
    }

    .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 $secundario;
    }

    .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;
        }
    }
    div#productos_relacionados{
        overflow:hidden;
        .block_content {
            border: 1px solid $blancoRoto;
            padding: 0 20px;

        }
        .lista_articulos {
            padding: 0 20px;


        }
    }

    .ficha_aside {
        .banner_aside {
            margin-right: 15px;
            figure{
                padding: 0 0 30px;
                img{
                    box-shadow: none;
                    -webkit-box-shadow:none;
                }
            }
            figcaption{
                padding:  8px 12px;	
                font-size: 18px;
                font-family: $fuente3;
            }
            a{
                background: $blanco;
                opacity: 0.8;

                color: $secundario;

                display: block;  
                position:relative;
                &:before {
                    height: 100%;
                    border-style: solid;
                    border-width: 10px;
                    border-color: rgba(204, 225, 230, 0.5);
                    background: rgba(204, 225, 230, 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:$secundario;
                    &:before{
                        transform: scale(1);
                        z-index: 1;
                    }
                }
            }  
            img {
                max-width: 100%;
            }
        }
        .lista_articulos {
            @include FichaRelacionadosAside();
        }
    }
    /**
    *-------------------------------------------------------------------------------
    * 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;
        }
    }
    .pb-center-column {
        width: 41%;
        .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%;
        }
    }
    /* 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;
                }
            }
        }   
    }
}
