/*===============================================
    [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{
    margin-bottom: 30px;
}
@media (min-width: 992px){
    #content .so-page-builder .container,
    .container-fluid .container{
        padding-left: 0px;
        padding-right: 0px;
    }
}
.layout-16{
   .wrapper-fluid .container{
        max-width: 1600px;
   }
   a:focus, a:hover{
        color: $linkColor;
   }
}
body.layout-16{
    font-size: 13px;
}

.layout-16{
    .products-list .product-grid .product-item-container,
    .products-list .product-grid .product-item-container .right-block{
        background-color: #fff;
    }

}

/*====================== mod title ========================*/
.layout-16.common-home #content{
    .price .price-new, .price span.price{
        font-size: 14px;
    }
    .label-new, 
    .label-sale{
        border-radius: 0;
        width: auto;
        height: auto; 
        line-height: 22px;
        padding: 0 10px;
        font-weight: 400; 
        text-transform: capitalize;
    }
    .label-sale{
        #{$right}: 10px; top: 10px;
        background-color: #ff9000;
    }
    .label-new{
        #{$left}: 10px; top: 10px;
    }
    .main-left .module{       
        .form-group{
            font-size: 14px; color: #898989; text-align: center;
            line-height: 100%;
        }
        h3.modtitle{     
            font-size: 20px;
            color: #222;
            font-weight: 500;
            position: relative;
            margin-bottom: 18px;
            text-transform: capitalize;
            span{
                font-size: 20px;
                color: #222;
                font-weight: 500;
                text-transform: capitalize;
                margin-#{$right}: 20px;
            }
            &:after{
                content: '';
                width: 40px;
                height: 2px;
                background: $background;
                position: absolute;
                top: 50%;                        
            }
        }
    }
    .main-right .module{
        margin-bottom: 20px;
        .modcontent{
            border: 1px solid #ccc; 
            border-top: none;
            padding: 20px;
        }
        h3.modtitle{
            background-color: #0b79bf;
            margin: 0;
            padding: 0 18px;
            @media (min-width: 1200px) and (max-width: 1649px){
                padding: 0 10px;
            }
            span{
                font-size: 16px; font-size: 700;
                color: #fff; text-transform: uppercase;
                position: relative;
                padding: side-values(10px 0 10px 31px);
                display: block;
                &:before{
                    content: '';
                    display: block;
                    width: 21px;
                    height: 21px;
                    background: url(#{$imgPath}icon/id16-icon-image.png) no-repeat -325px -69px;
                    position: absolute;
                    #{$left}: 0;
                    top: 8px;
                }
            }
        }
        &.deals-layout16{
            h3.modtitle span:before{
                background-position: -325px -24px;
            }
            .modcontent{
                padding: 0;
            }
        }
    }
    .products-list .product-grid .product-item-container .left-block .button-group{
        .loading{
            width: 42px !important;
            height: 42px;
            line-height: 42px;
            position: relative;
            &:before {
                top: 0px;
                left: 13px;
            }
        }
    }
}

.main-left{
    .col1{
        min-height: 450px;
        margin-bottom: 30px;
        width: 20%;
        @media (min-width: 1200px) and (max-width: 1649px){
            width: 24%;
            min-height: 360px;
        }
    }
    .col2{
        width: 80%;
        @media (min-width: 992px){
            padding-#{$right}: 10px; 
        }
        @media (min-width: 1200px) and (max-width: 1649px){
            width: 76%;
        }
    }
}
.main-right{
    @media (min-width: 992px){ padding-#{$left}: 5px; }
}
.content-main-w{
    margin-top: 20px;
}
/************************************************************************************************
    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 .owl2-nav{
        .owl2-next,
        .owl2-prev{
            background: none !important;
            width: 45px;
            height: 45px;
            &:before{
                 content: "" !important;
                width: 45px;
                height: 45px;
                background: none;
                border-left: 3px solid #fff;
                border-top: 3px solid #fff;
                position: absolute;
                top: 0;
                @include opacity(0.3);
                @include transition(all 0.5s ease);
               
            }
            &:after{
                display: none;
            }
            &:hover:before{
                  @include opacity(1);
            }

        }
        .owl2-prev:before{
             #{$left}: 16px;
              #{$right}: inherit;
             transform: rotate(-45deg); 
        }
        .owl2-next:before{
            left: inherit;
            right: 16px;
            transform: rotate(135deg);  
        }
     }
    .owl2-controls{
        height: 0;
        .owl2-dots{
            bottom: 30px;
            text-align: center;
            position: relative;
            top: -35px;
            left: auto; right: auto;   
            z-index: 10;
            .owl2-dot {
              background: #828282 !important;
              margin: 0 5px;
              width: 10px;
              height: 10px;
              padding: 0;
              transition: all 0.3s ease 0s;
              border-radius: 50%;
              float: none;
              display: inline-block;
              border: 2px solid transparent;

              span {
                background: #828282;
                display: block;
                width: 100%;
                height: 100%;          
                border-radius: 50%;
                border: 2px solid transparent;
                margin: 0;
              }
              &:hover{
                 background: $background !important;   
                 span {
                 
                  background: $background !important; 
                }
              }
              &.active {
                width: 10px;
                height: 10px;
                background: $background !important;   
                border-color: $background;
                span {
                 
                  background: $background !important; 
                   border-color: $background;
                }
              }
            }

        } 
    } 

}


/************************************************************************************************
    SHORTCODE HTML 
*************************************************************************************************/
.shop-services{
    margin: 0;
    position: relative;
    .contentslider{
        position: static;
        margin: 45px 0px;
        direction: ltr;
    }
    .owl2-controls .owl2-nav{
        @include owl2-nav-style9(10px,30px,27px); 
        .owl2-next,
        .owl2-prev{
            margin-top: -28px;
            @include effect-block-hide();
        }
    }
    &:hover{
        .owl2-controls .owl2-nav{
            .owl2-next,
            .owl2-prev{
                @include effect-block-show();
            }
        }
    }
    .item{
        text-align: center;
        span{
            padding-top: 5px;
            display: block;
            clear: both;
            font-size: 15px;
            color: #222;
            @media (min-width: 1200px) and (max-width: 1649px){
                font-size: 14px;
            }
        }
        a:hover span{
            color: $linkColor;
        }
    }
} 
.slider-brands{
    margin: 0 5px;
    padding: 0 40px;
    position: relative;
    .contentslider{
        position: static;
        direction: ltr;
    }
    .owl2-controls .owl2-nav{
        @include owl2-nav-style9(10px,30px,27px); 
        .owl2-next,
        .owl2-prev{
            @include effect-block-hide();
        }
    }
    &:hover{
        .owl2-controls .owl2-nav{
            .owl2-next,
            .owl2-prev{
                @include effect-block-show();
            }
        }
    }

} 


.banners2{
    margin-bottom: 20px;
}

//-- partner
.partners{
    margin-top: 10px;
}
.partners-items {
    margin-left: -20px;
    margin-right: -20px;
    margin-top: 10px;
    display: inline-block;
    .item{
        width: 25%;
        float: left;
        margin-bottom: 30px;
        padding-left: 20px;
        padding-right: 20px;
        a{
            display: block;
            img{
                width: 100%;
            }
        } 

        a:hover img{
            opacity: 0.8;
        }
    }
    .item:nth-child(4n+1) {
        clear: both;
    }
    .partners-title{
        border: 1px solid #ccc;
        border-top: none;
        text-align: center;
        a{
            font-weight: 500;
            font-size: 16px;
            display: inline-block;
            padding: 12px 10px;
            color: #222;
            &:hover{ color: $linkColor; }
        }
    }

}

/************************************************************************************************
    MODULE SO DEALS
*************************************************************************************************/

.deals-layout16{
    position: relative;
    .modcontent{
        
    }
    .so-deal{
        margin: 0;
        .extraslider-inner{
            border: none; padding: 0;
        }
        .owl2-nav{                
            @include owl2-nav-style2(20px,16px,#999);
            top: 10px;
            #{$right}: 5px; 
            > div{
                &:before{ color: rgba(255,255,255,0.7); }
                &:hover:before{ color: #fff; }
            }           
        }
        .owl2-controls{ margin: 0;
            .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;
            }
            .item{
                .item-left,
                .item-right{
                    width: 100%; 
                }
                .image {
                    position: relative;
                    overflow: hidden;   
                    margin: 0;    
                    padding: 20px 0;
                    a.img-link{
                        position: relative;
                        display: block;
                    }
                    
                    .label-product-new,
                    .label-product-sale  {
                        text-align: center;                       
                        color: #fff;
                        display: block;
                        @include rem(font-size,12px);
                        font-weight: 400;
                        padding: 0 10px;
                        line-height: 22px;
                        position: absolute;
                        top: 10px;    
                        text-transform: capitalize;        
                        z-index: 9;
                     
                    }
                         
                    .label-product-sale{
                        background-color: #ff9000;
                        #{$right}: 10px;
                    }
                    .label-product-new{
                        background-color: #53d542;
                        #{$left}: 10px;
                    }

                    .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; width: 100%;
                    position: absolute;
                    top: 0; left: 0;
                    background-color: #e81d25;
                    .time-title{
                        display: none;
                    }
                }
                .item-timer{
                    background-color: transparent;
                    text-align: center;
                    .time-item{
                        width: 40px;
                        height: 40px;                        
                        line-height: 100%;
                        text-align: center;
                        background-color: #e81d25;
                        border-radius: 0;
                        float: none;
                        display: inline-block;
                        margin: 0;
                        border: none;
                        .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{
                    position: relative;
                    padding: 40px 20px 0px 20px;                    
                    .item-available{
                        display: none;
                    }
                    .rating{
                        line-height: 18px;
                    }
                    h4{                    
                        margin-top: 10px;                    
                        margin-bottom: 5px;
                        a{
                            color: #222;
                            font-size: 14px;
                            text-transform: capitalize;
                            font-weight: 500;
                            &: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);
                        }
                    }
                } 
            }
        }
    }
}


/************************************************************************************************
 3  MODULE EXTRA
*************************************************************************************************/
.extra-book{
    margin-top: 10px;
}
.extra-layout16{
    position: relative;
    .so-extraslider{
        margin: 0;
        .item{ margin: 0 1px; }
    }
    .owl2-controls{
        .owl2-nav{
            @include owl2-nav-style(32px,16px,rgba(0,0,0,0.2));
            /*> div{
                &.owl2-prev{
                    #{$left}: 15px !important;
                }
                &.owl2-next{
                    #{$right}: 15px !important;
                }
            }*/
        }
    }

    .pre-text{
        position: absolute;
        top: 0;
        #{$right}: 0;
        a{
            border: 1px solid #ccc;
            border-radius: 3px;
            display: block;
            padding: 0 10px;
            &:hover{
                border-color: $background;
                background-color: $background;
                color: #fff;
            }

        }
        
    }

    .products-list .product-grid .product-item-container{
        border: 1px solid #ccc;
        border-radius: 0;
        .left-block .cartinfo--center .btn-button{
            width: 42px !important;
            height: 42px;
            line-height: 42px;
            @include border-radius(0);
            i{
                 width: 42px !important;
                height: 42px;
                line-height: 42px;
                font-size: 18px;
            }
        }
        .right-block{
            padding: 10px 20px;
            text-align: $left;
        }
        &:hover{
            border-color: $background;
            .left-block{
                .product-image-container{
                    opacity: 0.8;
                }
            }
        }
    } 
    
    .products-list .product-grid .product-item-container, 
    .products-list .product-grid .product-item-container .right-block{
        background: #fff;
        h4{            
            a{               
                font-weight: 500;
            }
        }
    }
    .products-list .product-grid .product-item-container:hover{
 
    }

}

.common-home .product-simple{
    position: relative;
    padding: 0;
    .modcontent{
        
        
    }
    .so-extraslider{
        margin: 0;
        .owl2-controls{ margin: 0;
            .owl2-nav{                
                @include owl2-nav-style2(20px,16px,#999);
                top: 5px;
                #{$right}: 5px; 
                > div{
                    &:before{ color: rgba(255,255,255,0.7); }
                    &:hover:before{ color: #fff; }
                }           
            }
            .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{           
                    margin-bottom: 20px; 
                   
                    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{
                        margin: 0 1px;
                        width: 70px;
                        float: $left;                
                        border: 1px solid #ccc;
                        a{
                            
                        }                
                    
                    }
                    .so-quickview{ display: none;
                        .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 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{  
                        .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;                                               
                                i{
                                    color: #fff;
                                    
                                }
                            }
                        }    
                    }
                    .item-content{
                        display: inline-block;
                    }
                    .item-info{
                        margin-top: 0px;
                        margin-#{$left}: 80px;
                        position: relative;
                        .price{ margin: 0; }
                        .item-title{
                            line-height: 100%;
                            margin-bottom: 0px;
                            padding: 0;
                            a{
                                font-size: 12px;
                                color: #222;
                                font-weight: 500;
                                text-transform: capitalize;
                                line-height: 18px;
                                &:hover{
                                    color: $linkColor;
                                }
                            }
                        }
                
                    }  
                    &:hover{
                        .item-image{
                            border-color: $linkColor;
                        }
                    }                  
                }
            }
        }
    }

    &.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;
            }
        }
    }
}
/************************************************************************************************
    MODULE SO CATEGORIES
*************************************************************************************************/

.common-home .so-categories{
    margin: 0;
    margin-top: 10px;
    position: relative;
    .owl2-carousel .owl2-item img{
        transform-style: unset;
    }
    .form-group{
        margin-bottom: 0;
    }
    .owl2-controls{
        .owl2-nav{            
             @include owl2-nav-style16(30px,50px,20px);
        }
    }
    .cat-wrap{
        margin-top: 10px;
        margin-bottom: 35px;
        position: static;
        .owl2-stage-outer{
            direction: ltr;
            overflow: unset;
            position: static;
        }
        .content-box{
            width: 100%;
            padding: 0;
            margin: 0;
            text-align: center;
            
            &:hover{
                .cat-title a{
                    color: $linkColor;
                }
                
            }
            .image-cat{
                img{
                    border: none;
                    &:hover{
                        opacity: 1;
                        transform: scale(1.05);
                    }
                }                
            }
            .cat-title{
                border: 1px solid #ccc;
                border-top: none;
                padding: 0; margin: 0;
                transition: all 0.3s ease 0s;
                a{
                    text-transform: capitalize;
                    color: #222;
                    font-weight: 500;
                    font-size: 16px;
                    display: block;
                    padding: 15px 0;
                }
                &:hover{
                    background-color: $background;
                    border-color: $background;
                    a{
                        color: #fff;
                    }
                }
            }
            .child-cat{
                .child-cat-title{
                    float: $left;
                    width: 100%;
                    font-size: 14px;
                    .arrow{
                        display: none;
                    }
                    a{
                        position: relative;
                        padding-#{$left}: 20px;
                        line-height: 30px;
                        &:before{
                            position: absolute;
                            content: "\f18e";
                            font-family: FontAwesome;
                            top: -6px;
                            #{$left}: 0;
                            color: $linkColor;
                            font-size: 13px;
                            @include if-rtl {
                                content: "\f190";
                            }
                        }
                    }
                }
            }
            .btn-more{
                margin-top: 20px;
                a{
                    display: block;
                    font-size: 12px;
                    color: #fff;
                    font-weight: 600;
                    text-transform: uppercase;
                    padding: 8px 20px;
                    background-color: $background;
                    float: $left;
                    &:hover{
                        background-color: darken($background,10%);
                    }
                }
            }
        }
    }
}