/*===============================================
    [SASS DIRECTORY ]
    
    [1] MEGA MENU VERTICAL 
    [2] MODULE HOME SLIDER  
    [3] MODULE EXTRA SLIDER
    [4] SHORT CODE BANNER 
    [5] SO LISTING TABS
    [6] SO DEALS
    [7] SO NEWSLETTER
==============================================*/


#content .so-page-builder .container,
.container-fluid .container{
    padding-left: 15px;
    padding-right: 15px;
}


/*====================== mod title ========================*/
.layout-7.common-home #content{
    .products-list .product-grid .product-item-container .left-block .button-group .btn-button i, 
    .products-list .product-grid .product-item-container .left-block .button-group .btn-button::before{
        line-height: 29px;
    }
    .price .price-old{
        padding: 0;
    }
    .price,
    .price .price-new, .price span.price{
        font-size: 20px;
        color: #222;
        min-height: 25px;
    }
    .label-product,
    .label-product-new,
    .label-product-sale  {
        text-align: center; 
        background-color: $linkColor;
        border-radius: 3px;
        color: #fff;
        display: block;
        @include rem(font-size,12px);
        font-weight: 700;
        padding: 0px 10px;
        position: absolute;
        top: 20px;    
        text-transform: uppercase;        
        z-index: 9;
        margin-bottom: 5px;
        width: auto; height: auto; line-height: 25px;
    }
    .label-sale,  
    .label-product-sale{
       // background-color: $background;
        #{$right}: 20px;
    }
    .label-new, 
    .label-product-new{
        background-color: #53d542;
        #{$left}: 20px;
    }

    .module{       
        &.sohomepage-slider{
            border: none;
        }
        h3.modtitle{     
            font-size: 20px;
            color: #222;
            font-weight: 700;
            text-transform: capitalize;
            margin: 0;
            padding: 0;
            display: inline-block; width: 100%;
            margin-bottom: 10px;
            padding-bottom: 20px;
            position: relative;
            border-bottom: 2px solid #ebebeb;
            &:after{
                position: absolute;
                content: "";
                width: 70px; height: 2px;
                bottom: -2px; #{$left}: 0;
                background-color: $background;
            }
            span{
                font-size: 20px;
                color: #222;
                font-weight: 700;
                float: $left;
                text-transform: capitalize;               
            }
        }
    }

}

/*========= mega menu ===========*/

.box-content1{
    margin-top: 30px;
}


/************************************************************************************************
    MODULE HOME SLIDER  
*************************************************************************************************/

.module.sohomepage-slider .so-homeslider img{
    width: auto;
}
.sohomepage-slider .so-homeslider .owl2-nav div::before,
.sohomepage-slider .so-homeslider .owl2-nav div:hover:before{
    background-color: transparent !important;
}

.module.sohomepage-slider{
    margin: 0;
    z-index: 0;
    .form-group{
        margin-bottom: 0;
    }
    .so-homeslider{
         border: none;
        img{
            width: auto;
        }
    }
    .owl2-controls{
        height: 0;
        .owl2-nav{
            .owl2-next,
            .owl2-prev{
                font-size: 0px;
                z-index: 99;
                width: 34px;
                height: 50px;
                line-height: 50px;
                text-align: center;
                @include border-radius(0px);
                top: 50%;
                margin-top: -25px;
                text-indent: -999em;
                display: block;
                background-color: #c6c6c8;
                border: none;
                &:after{display: none;}
                &:before{
                    font-size: 30px;
                    color: #fff;
                    font-family: 'FontAwesome';
                    display: block;
                    text-indent: 0 !important;
                    opacity: 1;
                    width: 34px;
                    height: 50px;
                }
                &:hover{
                    background-color: #fff;
                    &:before{
                        color: $linkColor;
                    }
                }
            }
            .owl2-next{
                #{$right}: 10px;
                #{$left}: auto;
                &:before{
                    @include if-ltr{             
                        content: "\f105"; 
                    }  
                    @include if-rtl {
                        content: "\f104"; 
                    }  
                }
            }
            .owl2-prev{
                #{$left}: 10px;
                #{$right}: auto;
                &:before{
                  @include if-ltr{             
                    content: "\f104"; 
                  }  
                  @include if-rtl {
                    content: "\f105"; 
                  }  
                }
            }

        }
        .owl2-dots{
            text-align: center;
            position: relative;
            top: -40px;
            left: auto; right: auto;
            .owl2-dot {
              background: #222222 !important;
              margin: 0 5px;
              width: 12px;
              height: 12px;
              padding: 0;
              transition: all 0.3s ease 0s;
              border-radius: 50%;
              float: none;
              display: inline-block;
              border: 2px solid transparent;

              span {
                background: #222;
                display: block;
                width: 100%;
                height: 100%;          
                border-radius: 50%;
                border: 2px solid transparent;
                margin: 0;
              }
              &:hover{
                 background: $background !important;   
                 span {
                  box-shadow: none;
                  -webkit-box-shadow: none;
                  background: $background !important; 
                }
              }
              &.active {
                width: 12px;
                height: 12px;
                background: $background !important;   
                border-color: $background;
                span {
                  box-shadow: none;
                  -webkit-box-shadow: none;
                  background: $background !important; 
                   border-color: $background;
                }
              }
            }

        } 
    } 

}


/************************************************************************************************
    SHORTCODE HTML 
*************************************************************************************************/
.box1-right{
    padding-#{$left}: 10px;
}
.box1-left{
    padding-#{$right}: 10px;
}
/*-- banner --*/
.id7-banners1{
    > .row{
        margin: 0 -10px;
    }
    .b1,.b2{
        padding: 0 10px;
    }
    .b3{
        margin-top: 20px;
        padding: 0 10px;
    }
}

.id7-banners3{
    margin-top: 50px;
    margin-bottom: 45px;
}

/*== Block policy ==*/
.block-policy7{
    background-color: #f7f7f7;
    border: 1px solid #ebebeb;
    border-radius: 3px;
    padding: 22px 0 15px 0;
    margin: 48px 0 43px 0;
    display: inline-block;
    width: 100%;
    ul{
        li{
            float: $left;
            padding: 0 15px;
            text-align: center;
            width: 25%;
            position: relative;
            &:before{
                background: #ebebeb none repeat scroll 0 0;
                content: "";
                height: 50px;
                position: absolute;
                #{$right}: 0;
                top: 3px;
                width: 1px;
            }
            &:last-child{
                &:before{
                    display: none;
                }
            }
            .item-inner{
                display: inline-block;
                .icon{
                    background: url(#{$imgPath}icon/id7-promotion.png) no-repeat center center; 
                    width: 60px;
                    height: 52px;
                    float: $left;
                    margin-#{$right}: 10px;
                    &.icon1{
                        background-position: -35px -23px;
                    } 
                    &.icon2{
                        background-position: -115px -23px;
                    } 
                    &.icon3{
                        background-position: -212px -23px;
                    } 
                    &.icon4{
                        background-position: -305px -23px;
                    }       
                }
                .content{
                    float: $left;
                    text-align: $left;
                    margin-top: 3px;
                    a{
                        color: #333;
                        font-weight: 700;
                        text-transform: uppercase;
                        &:hover{
                            color: $linkColor;
                        }
                    }
                    p{
                        line-height: 100%;
                        margin: 0;
                        text-transform: capitalize;
                    }
                }
            }
            &:last-child .item-inner:before{
                display: none;
            }
            
        }
    }
}





/************************************************************************************************
    MODULE DEALS
*************************************************************************************************/
.layout-7.common-home #content .module.deals-layout2 h3.modtitle{
    margin-bottom: 12px;
}
.so-deal .extraslider-inner{
    border: none;
}

.deals-layout7{
    position: relative;
    .modcontent{
        
    }
    .so-deal{
        margin: 0;
        margin-bottom: 30px;
        
        .owl2-nav{
            @include owl2-nav-style7(30px,18px);                
        }
        .owl2-controls{
            .owl2-dots{
                bottom: 20px;
                position: static;
                left: auto;
                right: auto;
                width: 100%;
                display: inline-block;
                text-align: center;
                position: relative;
                top: 0px;
                z-index: 10;
                .owl2-dot {
                  background: #222 !important;
                  margin: 0 5px;
                  width: 30px;
                  height: 6px;
                  padding: 0;
                  transition: all 0.3s ease 0s;
                  border-radius: 3px;
                  float: none;
                  display: inline-block;
                  span {
                    
                  }
                  &:hover,
                  &.active {
                    background: $background !important;   
                    span {
                      box-shadow: none;
                      -webkit-box-shadow: none;
                      background: $background !important; 
                    }
                  }
                }
            }
        }
        
        .extraslider-inner{
            .product-thumb{
                margin: 0;
                border: 1px solid #ebebeb;
                border-radius: 4px;
             
            }
            .item{
                .item-left,
                .item-right{
                    width: 100%;
                }
                .image {
                    position: relative;
                    overflow: hidden;   
                    margin: 0;    
                    border-radius: 3px;
          
                    a.img-link{
                        position: relative;
                        display: block;
                        border-radius: 3px;
                    }
                    
                    .label-product-new,
                    .label-product-sale  {
                        text-align: center; 
                        background-color: $linkColor;
                        border-radius: 50%;
                        color: #fff;
                        display: block;
                        @include rem(font-size,12px);
                        font-weight: 700;
                        height: 40px;
                        width: 40px;
                        line-height: 40px;
                        position: absolute;
                        top: 20px;    
                        text-transform: uppercase;        
                        z-index: 9;
                        padding: 0;
                        margin-bottom: 5px;
                    }
                         
                    .label-product-sale{
                        background-color: #ff3c20;
                        #{$right}: 20px;
                    }
                    .label-product-new{
                        background-color: #53d542;
                        #{$left}: 20px;
                    }

                    .button-group{
                        padding: 0;
                        position: absolute;
                        z-index: 99;
                        #{$left}: 10px;
                        bottom: 35px;

                        .btn-button{
                            border: none;
                            display: block;
                            margin-top: 5px;
                            padding: 0;
                            background-color: #666666;
                            border-radius: 3px;
                            color: #fff;
                            width: 30px;
                            height: 30px;
                            line-height: 30px;
                            transform: all 0.3s ease 0s;
                            position: relative;
                            @include transition(all 0.3s ease-in-out 0s);
                            @include opacity(0);
                            @include transform(translate(-50px, 0px));
                            @include if-rtl {
                                @include transform(translate(50px, 0px));
                            } 
                            span{
                                color: #fff;
                                display: inline-block;
                                font-size: 12px;
                                font-weight: 300;
                                height: auto;
                                opacity: 0;
                                position: static;
                                transition: all 0.3s ease 0s;
                                width: auto;
                            }
                            i,
                            &:before{
                                font-size: 12px;
                                color: #fff;                              
                                height: 30px;
                                line-height: 30px;
                                width: 30px;
                                text-align: center;
                                position: absolute;
                                #{$left}: 0px;
                            }
                            
                            &.addToCart{
                                transition-delay: 0.1s;
                               /* &:before{
                                    content: '\f291';
                                }*/
                            }
                            &.wishlist {
                                margin-bottom: 0;
                                transition-delay: 0.2s;
                            }
                            &.compare{
                                margin-bottom: 0;
                                transition-delay: 0.3s;
                            }
                            &.quickview{
                                transition-delay: 0.4s;
                            }
                            
                            &:hover{
                                background-color: $background;
                                width: auto;
                                span{  
                                    opacity: 1;
                                    padding: side-values(0 10px 0 28px);
                                }
                                i{
                                    color: #fff;
                                    
                                }
                            }

                        }
                        
                    }
                }
                .item-time-w{
                    clear: both;
                    margin-top: 10px;
                    border-top: 1px solid #ebebeb;
                    padding: 10px 0 17px 0;
                    .time-title{
                        margin-bottom: 5px;
                    }
                }
                .item-timer{
                    background-color: transparent;
                    text-align: center;
                    .time-item{
                        width: 40px;
                        height: 40px;                        
                        line-height: 100%;
                        text-align: center;
                        background-color: $background;
                        border-radius: 3px;
                        float: none;
                        display: inline-block;
                        margin: 0 3px;
                        .num-time{
                            border: none;
                            font-size: 14px;
                            color: #fff;
                            font-weight: 700;
                            position: relative;
                            margin-top: 3px;
                            &:after{
                                
                            }
                        }
                        .name-time{
                            color: #fff;
                            font-size: 10px;
                            font-weight: 400;
                            text-transform: capitalize;
                            margin-top: 0px;
                            line-height: 100%;
                        }
                        &.time-sec{
                            .num-time{
                                &:after{
                                    display: none;
                                }
                            }
                        }
                    }
                } 

                .caption{
                    text-align: center;
                    margin: 0 20px 10px 20px;
                    padding-bottom: 40px;
                    .item-available{
                        border-top: 1px solid #ebebeb;
                        position: absolute;
                        bottom: 0; left: 0;
                        display: inline-block;
                        padding-top: 10px;
                        width: 100%;
                        p{
                            color: #999;
                            margin-bottom: 0;
                            b{
                                color: #666;
                                font-weight: 400;
                            }
                        }
                        .a1{
                            text-align: $left;   
                             
                        }
                        .a2{
                            text-align: $right;
     
                        }
                    }
                    .available{
                        display: none;
                        background-color: #eee;
                        height: 13px;
                        width: 100%;
                        //display: inline-block;
                        border-radius: 7px;
                        position: relative;
                        z-index: 2;
                        overflow: hidden;
                        .color_width{
                             background:$background;
                            position: absolute;
                            height: 100%;
                            #{$left}: 0;
                            border-radius: 7px;
                        }
                    }
                    h4{                    
                        margin-top: 10px;                    
                        margin-bottom: 5px;
                        a{
                            color: #666;
                            font-size: 14px;
                            text-transform: capitalize;
                            font-weight: 400;
                            &:hover{
                                color: $linkColor;
                            }
                        }
                    }
                    .addToCart{ 
                        background-color: #fff;
                        border: 1px solid $base-border-color;                       
                        color: #888888;
                        @include rem(font-size,12px);                        
                        font-weight: 400;
                        line-height: 100%;
                        padding: 13px 20px;
                        border-radius: 5px;
                        text-transform: uppercase;
                        margin-top: 20px;
                        float: $left;
                        clear: both;
                        &:hover{
                            color: #fff;
                            background-color: $background;
                            border-color: $background;
                        }           
                    }
                    .price .price-new, .price span.price{
                        font-size: 20px;
                        color: $linkColor;
                    }
                    .price{
                        margin-top: 0px;
                    }
                    .rating{
                        
                    }
                }
                &:hover .product-thumb{
                    .image{     
                        .button-group .btn-button{   
                            @include transform(translate(0px, 0px));
                            @include opacity(1);
                        }
                        
                        a.img-link:before{
                            @include opacity(1);
                        }
                    }
                } 
            }
        }
    }
}


/************************************************************************************************
    SO EXTRA SLIDER
*************************************************************************************************/
.newpro{
    margin-top: 15px;
}
.extra-layout7{
    position: relative;
    .modcontent .extraslider-inner{
        border: 1px solid #ebebeb;
        border-#{$right}: none;
        @include border-top-radius(3px);
        .product-grid .product-item-container{
            border-#{$right}: 1px solid #ebebeb;
            margin-bottom: 0;
            border-radius: 0;
            .right-block{
                background-color: #fff;
            }
        }
    }

    &.newpro{
        .so-extraslider .item{
            .product-layout:first-child{
                border-bottom: 1px solid #ebebeb;
            }
        }
    }
}
.layout-7.common-home .module .so-extraslider{
    
    margin: 0;
    .owl2-nav{
        @include owl2-nav-style7(30px,18px);        
    }
    .owl2-controls{
        .owl2-dots{
            @include owl2-dot-style(8px,8px,#999);
            position: static;
            text-align: center;
            .owl2-dot{
                float: none;
            }
        }
    }
}

.layout-7.common-home #content .module.product-simple h3.modtitle{
    margin-bottom: 0;
    display: inline-flex;

    &:after{
        //border-bottom-#{$left}-radius: 3px;
        border-top-#{$left}-radius: 3px;
    }
}

.common-home .product-simple{
    position: relative;
    .modcontent{
        padding-bottom: 10px !important;
        border: 1px solid #ebebeb;
        border-top: none;
        border-radius: 3px;
        padding: 20px;
    }
    .so-extraslider{
        margin: 0;
        .owl2-controls{
            .owl2-nav{                
                @include owl2-nav-style2(20px,26px,#999);            
            }
            .owl2-dots{
                @include owl2-dot-style(8px,8px,#222);
                top: -3px;
                #{$right}: -5px;

            }
        }
        &:hover{
            .owl2-controls{
                .owl2-nav > div{     
                   
                }
            }
        }
        .extraslider-inner{
            padding-bottom: 0;
            .item {
                padding-top: 0;
                border: none;
                .item-inner{           
                    padding-bottom: 20px;
                    margin-bottom: 20px; 
                    border-bottom: 1px solid #ebebeb;
                    width: 100%;
                    overflow: hidden;
  
                    &:last-child{
                        border-bottom: none;
                        margin-bottom: 0;
                    }
                    .label-product-sale{
                        top: 0 !important;
                        #{$right}: 0 !important;
                    }
                    .label-product-new{
                        top: 0 !important;
                        #{$left}: 0 !important; 
                    }
                    .item-image{
                        width: 100px;
                        float: $left;                
                        position: relative; 
                        a{
                            
                        }                
                        .so-quickview{
                            .btn-button{
                                border: none;
                                display: inline-block;
                                margin-top: 0;
                                padding: 0;
                                background-color: #c9c9c9;
                                border-radius: 3px;
                                color: #fff;
                                width: 30px;
                                height: 30px;
                                line-height: 30px;
                                transform: all 0.3s ease 0s;      
                                text-align: center;   
                                position: absolute;
                                top: 50%;
                                margin-top: -15px;
                                #{$left}: 50%;
                                margin-#{$left}: -15px; 
                                @include transform(scale(0));
                                opacity: 0;
                                @include transition(all 0.2s ease-in-out 0s);
                                span{
                                    display: none;
                                }
                                i,
                                &:before{
                                    font-size: 12px;
                                    color: #fff;                              
                                    height: 30px;
                                    line-height: 30px;
                                    text-align: center;                              
                                }
                                &:hover{
                                    background-color: $background;
                                }
                            }
                        } 
                    }
                    .button-group{  
                        @include transition(all 0.3s ease-in-out 0s);
                        @include opacity(0);
                        @include transform(translate(0px, 50px));   
                        position: absolute;    
                        bottom: -20px;
                        #{$left}: 0;    
                        .btn-button{
                            border: none;
                            display: inline-block;
                            margin-top: 5px;
                            padding: 0;
                            background-color: #c9c9c9;
                            border-radius: 3px;
                            color: #fff;
                            width: 30px;
                            height: 30px;
                            line-height: 28px;
                            transform: all 0.3s ease 0s;
                            position: relative;
                            margin: 0;
                            span{
                                color: #fff;
                                display: inline-block;
                                font-size: 12px;
                                font-weight: 300;
                                height: auto;                             
                                width: auto;
                            }
                            i,
                            &:before{
                                font-size: 12px;
                                color: #fff;                              
                                height: 30px;
                                line-height: 30px;
                                text-align: center;                              
                            }
                            
                            &.addToCart{
                                width: auto;
                                padding-#{$left}: 10px;
                                padding-#{$right}: 10px;
                                i{
                                    padding-#{$right}: 5px;
                                }
                            }
                            &.wishlist {
                                margin: 0 2px 0 2px;
                                
                            }
                            &.compare{
                               
                            }
                
                            &:hover{
                                background-color: $background;                   
                                /*span{  
                                    opacity: 1;
                                    padding: 0 10px 0 28px;
                                }*/
                                i{
                                    color: #fff;
                                    
                                }
                            }
                        }    
                    }
                    .item-content{
                        display: inline-block;
                    }
                    .item-info{
                        margin-top: 10px;
                        margin-#{$left}: 120px;
                        position: relative;
                        .content_price{
                            position: absolute;
                            bottom: 0;
                            #{$left}: 0;
                        }
                        .price{
                            margin-bottom: 3px;
                        }
                        .rating, .ratings{
                            margin-bottom: 5px;

                        }
                        .item-title{
                            line-height: 100%;
                            margin-bottom: 0px;
                            padding: 0;
                            a{
                                font-size: 14px;
                                color: #222;
                                font-weight: 400;
                                text-transform: capitalize;
                                line-height: 18px;
                                &:hover{
                                    color: $linkColor;
                                }
                            }
                        }
                
                    }  
                    &:hover{
                        .item-image .so-quickview .btn-button{
                            @include transform(scale(1));
                            opacity: 1;
                            @include transition(all 0.2s ease-in-out 0s);
                        }
                        .button-group{ 
                            @include transition(all 0.3s ease-in-out 0s);
                            @include opacity(1);
                            @include transform(translate(0px, 0px)); 
                            bottom: 0;   
                        }
                        .item-info .content_price{
                            opacity: 0;
                        }
                    }                  
                }
            }
        }
    }

    &.extra-bottom{
        margin-bottom: 30px;
        .so-extraslider .extraslider-inner .item .item-inner{
            padding: 10px 0;
            margin: 0;
            background-color: #f7f7f7;
            border-radius: 3px;
            overflow: hidden;

            .item-image{
                width: 130px;
                float: $left;  
            }
            .item-info{
                margin-top: 40px;
                margin-#{$left}: 150px;
            }
        }
    }
}

/************************************************************************************************
    SHORTCODE HTML SLIDER BRANDS
*************************************************************************************************/
.brands-w{
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin-top: 50px;
}
.slider-brands{
    
    border-radius: 0px;
     padding: 30px 0px;
     margin-top:50px;
     margin-bottom: 50px;
    .contentslider{
       padding: 0 20px;
        position: relative;
        .owl2-stage-outer{
            direction: ltr;
        }
        
    }
    .item{
        text-align: center;
        opacity: 0.4;
        &:hover{
            opacity: 1;
        }
    }
    .owl2-controls .owl2-nav{
        @include owl2-nav-style1(40px,20px,#e9e9e9,#c3c3c3);       
        position: static;
        .owl2-prev,
        .owl2-next{
            @include effect-block-hide();
        }
        .owl2-prev{
            #{$left}: -20px;
            position: absolute;
            top: 50%;
            margin-top: -20px;
            background-color: #fff;

        }
        .owl2-next{
            #{$right}: -20px;
            position: absolute;
            top: 50%;
            margin-top: -20px;
            background-color: #fff;
        }
    }
    &:hover{
        .owl2-controls .owl2-nav{
            .owl2-prev,
            .owl2-next{
                @include effect-block-show();
            }
        }
    }
    
}
