


/*===========================
     06.Product css 
===========================*/

.product-area{}

.product-menu{
    & .nav{
        & .nav-item{
            & a{
                display: inline-block;
                font-size: 20px;
                color: $black;
                text-transform: capitalize;
                font-weight: 500;
                border-radius: 50px;
                line-height: 55px;
                padding: 0 28px;
                cursor: pointer;
                margin: 0 5px;
                position: relative;
                @include transition(0.3s);
                z-index: 5;
                overflow: hidden;
                border: 1px solid $border-color;
                @include transition(0.3s);
                
                @media #{$md}{
                    line-height: 45px;
                    font-size: 18px;
                }
                @media #{$xs}{
                    line-height: 40px;
                    font-size: 14px;
                    padding: 0 20px;
                }
                @media #{$sm}{
                    line-height: 45px;
                    font-size: 16px;
                    padding: 0 25px;
                }
                
                &::before{
                    position: absolute;
                    content: '';
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    z-index: -1;
                    background: -webkit-linear-gradient(left, #bc6eff 0%, #65e2ff 100%);
                    background: -o-linear-gradient(left, #bc6eff 0%, #65e2ff 100%);
                    background: linear-gradient(to right, #bc6eff 0%, #65e2ff 100%);
                    opacity: 0;
                    visibility: hidden;
                    @include transition(0.3s);
                }
                
                &.active{
                    color: $white;
                    border-color: transparent;
                    
                    &::before{
                        opacity: 1;
                        visibility: visible;
                    }
                }
            }
        }
    }
}

.product-items{}


.single-product{
    border: 1px solid $border-color;
    
    & .product-image{
        position: relative;
        
        & a{
            display: block;
            position: relative;
            
            & .first-image{
                width: 100%;
            }
            & .second-image{
                width: 100%;
                position: absolute;
                top: 0;
                left: 0;
                z-index: 2;
                opacity: 0;
                visibility: hidden;
                @include transition(0.3s);
            }
        }
        
        & .product-meta{
            position: absolute;
            bottom: 5px;
            left: 0;
            right: 0;
            max-width: 232px;
            width: 100%;
            margin: 0 auto;
            background-color: $white;
            @include box-shadow (0px 1px 3px 0px rgba($black, 0.2));
            @include transition(0.3s);
            z-index: 99;
            @include transform(scale3d(0, 0, 0));
            
            & li{
                display: inline-block;
                width: 23%;
                text-align: center;
                border-right: 1px solid $border-color;
                margin: 0 auto;
                
                &:last-child{
                    border-right: 0;
                }
                
                & a{
                    display: block;
                    color: $body-color;
                    padding: 0;
                    border: none;
                    line-height: 55px;
                    height: 55px;
                    border: none;
                    padding: 0;
                    font-size: 28px;
                    text-align: center;
                    text-transform: capitalize;
                    @include transition(0.3s);
                    width: 100%;
                }
                
                &:hover{
                    & a{
                        color: $theme-color;
                    }
                }
            }
        }
        
        & .discount-product{
            position: absolute;
            top: 10px;
            right: 10px;
            display: block;
            color: $white;
            padding: 0;
            width: 53px;
            text-align: center;
            line-height: 53px;
            height: 53px;
            border-radius: 100%;
            font-size: 16px;
            font-weight: 400;
            text-transform: capitalize;
            text-align: center;
            z-index: 4;
            background-color: $theme-color;
            
            @media #{$xs}{
                width: 43px;
                height: 43px;
                line-height: 43px;
            }
        }
    }
    
    & .product-content{
        padding: 30px 15px;
        background-color: $white;
        overflow: hidden;
        position: relative;
        @include transition(0.3s);

        @media #{$xs}{
            padding: 10px 15px 30px;
        }
        
        & .product-rating{
            margin-bottom: 15px;
            
            & li{
                display: inline-block;
                font-size: 12px;
                color: #e1e1e1;
                
                &.rating-on{
                    color: #f3cd1e;
                }
            }
        }
        & .product-title{
            & a{
                margin-bottom: 15px;
                font-size: 14px;
                text-transform: capitalize;
                color: $black;
                @include transition(0.3s);
                font-weight: 400;
                
                &:hover{
                    color: $theme-color;
                }
            }
        }
        & .product-price{            
            & .regular-price{
                color: #888888;
                font-weight: 500;
                text-decoration: line-through;
                margin-right: 8px;
                font-size: 14px;
            }
            & .price-sale{
                font-size: 20px;
                font-weight: 500;
                color: $theme-color;
                margin-right: 8px;
            }
        }
    }
    
    &.product-list{
        & .product-image{
            width: 50%;
            
            @media #{$xs}{
                width: 100%;
            }
            @media #{$sm}{
                width: 50%;
            }
        }
        & .product-content{
            width: 50%;
            
            @media #{$xs}{
                width: 100%;
            }
            @media #{$sm}{
                width: 50%;
            }
        }
    }
    
    &:hover{
        border-color: rgba($black, 0.4);
        
        & .product-image{

            & a{
                & .second-image{
                    opacity: 1;
                    visibility: visible;
                }
            }
            
            & .product-meta{
                @include transform(scale3d(1, 1, 1));
            }
        }
    }
}


.single-product-list{
    & .product-image{
        position: relative;
        
        & a{
            display: block;
            position: relative;
            
            & .first-image{
                width: 100%;
            }
            & .second-image{
                width: 100%;
                position: absolute;
                top: 0;
                left: 0;
                z-index: 2;
                opacity: 0;
                visibility: hidden;
                @include transition(0.3s);
            }
        }
        
        & .discount-product{
            position: absolute;
            top: 10px;
            right: 10px;
            display: block;
            color: $white;
            padding: 0;
            width: 53px;
            text-align: center;
            line-height: 53px;
            height: 53px;
            border-radius: 100%;
            font-size: 16px;
            font-weight: 400;
            text-transform: capitalize;
            text-align: center;
            z-index: 4;
            background-color: $theme-color;
            
            @media #{$xs}{
                width: 43px;
                height: 43px;
                line-height: 43px;
            }
        }
    }
    
    & .product-content{
        padding: 30px 15px;
        background-color: $white;
        overflow: hidden;
        position: relative;
        @include transition(0.3s);
        
        & .product-rating{
            margin-bottom: 15px;
            
            & li{
                display: inline-block;
                font-size: 12px;
                color: #e1e1e1;
                
                &.rating-on{
                    color: #f3cd1e;
                }
            }
        }
        
        & .product-title{
            & a{
                margin-bottom: 15px;
                font-size: 20px;
                text-transform: capitalize;
                color: $black;
                @include transition(0.3s);
                font-weight: 400;
                
                @media #{$xs}{
                    font-size: 16px;
                }

                &:hover{
                    color: $theme-color;
                }
            }
        }
        
        & .availability{
            font-size: 13px;
            text-transform: capitalize;
            color: #868686;
            line-height: 1;
            display: block;
            font-weight: 400;
            margin-bottom: 15px;
            
            & strong{
                font-weight: 400;
                color: $theme-color;
            }
        }
        
        & .product-price{            
            & .regular-price{
                color: #888888;
                font-weight: 500;
                text-decoration: line-through;
                margin-right: 8px;
                font-size: 14px;
            }
            & .price-sale{
                font-size: 20px;
                font-weight: 500;
                color: $theme-color;
                margin-right: 8px;
            }
        }
        
        & p{
            margin-top: 15px;
        }
        
        & .product-meta{
            max-width: 232px;
            width: 100%;
            background-color: $white;
            @include box-shadow (0px 1px 3px 0px rgba($black, 0.2));
            @include transition(0.3s);
            z-index: 99;
            margin-top: 25px;
            
            & li{
                display: inline-block;
                width: 23%;
                text-align: center;
                border-right: 1px solid $border-color;
                margin: 0 auto;
                
                &:last-child{
                    border-right: 0;
                }
                
                & a{
                    display: block;
                    color: $body-color;
                    padding: 0;
                    border: none;
                    line-height: 55px;
                    height: 55px;
                    border: none;
                    padding: 0;
                    font-size: 28px;
                    text-align: center;
                    text-transform: capitalize;
                    @include transition(0.3s);
                    width: 100%;
                }
                
                &:hover{
                    & a{
                        color: $theme-color;
                    }
                }
            }
        }
    }
    
    &:hover{
        & .product-image{
            & a{
                & .second-image{
                    opacity: 1;
                    visibility: visible;
                }
            }
        }
    }
}


.product-col1{
    width: 20.6%;
    padding: 0 15px;
    
    @media #{$laptop}{
        width: 27.5%;
    }
    @media #{$lg}{
        width: 35%;
    }
    @media #{$md}{
        width: 50%;
    }
    @media #{$xs}{
        width: 100%;
    }
    @media #{$sm}{
        width: 54%;
    }
}
.product-col2{
    width: calc(100% - 20.6%);
    padding: 0 15px;
    
    @media #{$laptop}{
        width: calc(100% - 27.5%);
    }
    @media #{$lg}{
        width: calc(100% - 35%);
    }
    @media #{$md}{
        width: calc(100% - 50%);
    }
    @media #{$xs}{
        width: calc(100% - 0%);
    }
    @media #{$sm}{
        width: calc(100% - 54%);
    }
}

.product-active-4,
.product-active-3,
.product-active-2,
.product-active{
    & .slick-arrow{
        position: absolute;
        top: 50%;
        left: -5px;
        @include transform(translateY(-50%));
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        @include transition(0.3s);
        cursor: pointer;

        @media #{$laptop, $lg}{
            left: 10px;
        }
        
        & i{
            font-size: 26px;
            color: $black;
        }
        
        &.next{
            left: auto;
            right: -5px;

            @media #{$laptop, $lg}{
                right: 10px;
            }
        }
    }
    
    &:hover{
        & .slick-arrow{
            visibility: visible;
            opacity: 1;            
        }
    }

    & .slick-dots{
        text-align: center;
        width: 100%;
        margin-top: 10px;

        & li{
            display: inline-block;
            margin: 0 5px;

            & button{
                width: 13px;
                height: 13px;
                border: 0;
                background-color: rgba($black, 0.3);
                border-radius: 50%;
                font-size: 0;
            }

            &.slick-active{
                & button{
                    background-color: $theme-color;
                }
            }
        }
    }
}








