

/*===========================
 20.Single Product Page css 
===========================*/


.single-product-image{
    & .product-single-image-tab,
    & .product-single-image{
        & .single-image{
            text-align: center;
            
            & img{
                display: inline-block;
            }
        }
    }
    
    & .product-single-image-tab{
        width: 85%;
        
        @media #{$xs}{
            width: 80%;
        }
    }

    & .product-single-thumb-image{
        
        & .product-single-thumb-tab,
        & .product-single-thumb{
            & li{
                margin: 0 10px;
                border: 1px solid $border-color;
                @include transition(0.3s);
                cursor: pointer;

                @media #{$lg}{
                     margin: 0 5px;
                }
                @media #{$xs}{
                     margin: 0 5px;
                }
                @media #{$sm}{
                     margin: 0 10px;
                }

                &.slick-current{
                    border-color: rgba($black, 0.3);
                }
            }
        }
        
        & .product-single-thumb-tab{
            & li{
                margin: 10px 0;
            }
        }
        
        &.product-tab-style{
            width: 15%;
            
            @media #{$xs}{
                width: 20%;
            }
        }
    }
}

.single-product-gallery-image{
    & .single-product-image-gallery{
        width: 50%;
        
        & img{
            width: 100%;
        }
    }
}
.single-product-image{
    & .single-product-image{
        width: 50%;
        
        & img{
            width: 100%;
        }
    }
}

.single-product-image-slide{
    & .slick-arrow{
        position: absolute;
        top: 50%;
        left: -15px;
        @include transform(translateY(-50%));
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        @include transition(0.3s);
        cursor: pointer;

        @media #{$laptop}{
            left: 5px;
        }
        @media #{$md}{
            left: 5px;
            opacity: 1;
            visibility: visible;
        }
        @media #{$xs}{
            left: 5px;
            opacity: 1;
            visibility: visible;
        }
        
        & i{
            font-size: 26px;
            color: $black;
        }
        
        &.next{
            left: auto;
            right: -15px;

            @media #{$laptop}{
                right: 5px;
            }
            @media #{$md}{
                right: 5px;
            }
            @media #{$xs}{
                right: 5px;
            }
        }
    }
    
    &:hover{
        & .slick-arrow{
            visibility: visible;
            opacity: 1;            
        }
    }
}


.single-product-content{
    & .tags{
        padding-bottom: 15px;
        
        & .tag-title{
            font-size: 16px;
            color: $black;
            font-weight: 400;
        }
        & .tag-list{
            & li{
                display: inline-block;
                margin-left: 3px;
                
                & a{
                    font-size: 16px;
                    color: $theme-color;
                }
            }
        }
    }
    & .product-title{
        font-size: 28px;
        font-weight: 500;
        color: #000;
        text-transform: capitalize;
        margin-bottom: 10px;
        
        @media #{$lg}{
            font-size: 24px;
        }
        @media #{$xs}{
            font-size: 20px;
        }
        @media #{$sm}{
            font-size: 24px;
        }
    }
    & .review-rating{        
        & .rating{
            padding-top: 10px;
            & li{
                display: inline-block;
                font-size: 12px;
                color: #e1e1e1;
                
                &.rating-on{
                    color: #f3cd1e;
                }
            }
        }
        & .review-link{
            padding-top: 10px;
            
            & li{
                display: inline-block;
                margin-left: 20px;
                position: relative;
                
                & + li{
                    &::before{
                        content: '|';
                        color: #000;
                        position: absolute;
                        top: 4px;
                        left: -12px;
                        font-size: 13px;
                    }
                }
                
                & a{
                    font-size: 14px;
                    color: $body-color;
                    @include transition(0.3s);
                    
                    &:hover{
                        color: $theme-color;
                    }
                }
            }
        }
    }
    & .product-price{
        margin-top: 15px;
        
        & .price-sale{
            color: #888888;
            font-weight: 500;
            text-decoration: line-through;
            margin-right: 8px;
            font-size: 14px;
        }
        & .regular-price{
            font-size: 20px;
            font-weight: 500;
            color: $theme-color;
            margin-right: 8px;
        }
    }
    & .product-basic-info{
        margin-top: 15px;
        
        & .single-info{
            margin-top: 5px;
            
            & .title{
                font-size: 14px;
                color: $black;
                text-transform: capitalize;
            }
            & .value{
                font-size: 14px;
                color: $theme-color;
                
                & a{
                    color: $theme-color;
                }
            }
        }
    }
    
    & p{
        padding-top: 25px;
    }
    
    & .product-details-table{
        margin-top: 30px;
        
        & .table{
            margin-bottom: 0;
            
            & tbody{
                & tr{
                    & td{
                        padding: 10px 15px;
                        width: 33.33%;
                        text-align: center;
                        border: 1px solid $border-color;
                        vertical-align: middle;
                        
                        & a{
                            font-size: 14px;
                            color: $black;
                            text-transform: capitalize;
                        }
                        &.amount{
                            font-size: 14px;
                            color: $black;
                            text-transform: capitalize;
                        }
                    }
                }
            }
        }
    }
    
    & .product-size-color-quantity{
        & .title{
            font-size: 14px;
            color: $black;
            font-weight: 500;
            color: $black;
        }
    }
    
    & .product-size{
        position: relative;
        display: inline-block;
        margin-top: 25px;
        margin-right: 30px;

        @media #{$md}{
            margin-right: 15px;
        }

        & select{
            width: 61px;
            padding: 0 10px;
            border: 1px solid $border-color;
            height: 40px;
            margin-top: 10px;
        }
    }
    & .product-color{
        margin-top: 25px;
        margin-right: 30px;

        @media #{$md}{
            margin-right: 15px;
        }

        & .color-input{
            display: -webkit-flex;
            display: -moz-flex;
            display: -ms-flex;
            display: -o-flex;
            display: flex;
            margin-top: 10px;

            & .single-color{
                & input[type="radio"] {
                    display: none;

                    & + label {
                        width: 20px;
                        height: 20px;
                        border: 0;
                        cursor: pointer;
                        position: relative;
                        display: inline-block;
                        margin: 0 10px -4px 0;
                        @include box-shadow (0px 1px 3px 0px rgba(0, 0, 0, 0.2));

                        &::before {
                            position: absolute;
                            content: '';
                            top: 0;
                            left: 0;
                            width: 100%;
                            height: 100%;
                            @include transition(0.4s);
                            border: 2px solid transparent;
                        }

                    }

                    &:checked {
                        & + label {
                            &::before {

                            }
                        }
                    }
                }

                &.color-1{
                    & input[type="radio"] {
                        & + label {
                            background-color: $white;
                        }

                        &:checked {
                            & + label {
                                &::before {
                                    border-color: $black;
                                }
                            }
                        }
                    }
                }
                &.color-2{
                    & input[type="radio"] {
                        & + label {
                            background-color: #008000;
                        }

                        &:checked {
                            & + label {
                                &::before {
                                    border-color: $white;
                                }
                            }
                        }
                    }
                }

                &.color-3{
                    & input[type="radio"] {
                        & + label {
                            background-color: $black;
                        }

                        &:checked {
                            & + label {
                                &::before {
                                    border-color: $white;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    & .quantity{
        margin-right: 30px;
        
        & input{
            width: 60px;
            height: 40px;
            border: 1px solid $border-color;
            padding: 0 10px;
            text-align: center;
        }
        & button{
            width: 40px;
            height: 40px;
            background-color: transparent;
            border: 1px solid $border-color;
        }
    }
    
    & .addcart{
        margin-top: 30px;

        & a,
        & button{
            position: relative;
            padding: 0;
            color: $white;
            line-height: 60px;
            height: 60px;
            font-size: 16px;
            font-weight: 500;
            border: 0;
            width: 100%;
            border-radius: 0;
            box-shadow: none;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            background: -webkit-linear-gradient(left, rgba(188,110,255,1) 0%, rgba(101,226,255,1) 50%, rgba(188,110,255,1) 100%);
            background: -o-linear-gradient(left, rgba(188,110,255,1) 0%, rgba(101,226,255,1) 50%, rgba(188,110,255,1) 100%);
            background: linear-gradient(to right, rgba(188,110,255,1) 0%, rgba(101,226,255,1) 50%, rgba(188,110,255,1) 100%);
            background-size: 200%;
            background-position: left center;
            @include transition(0.3s);
            text-align: center;

            @media #{$md}{
                height: 50px;
                line-height: 50px;
            }
            @media #{$xs}{
                height: 50px;
                line-height: 50px;
            }

            & i{
                font-size: 28px;
                line-height: 60px;

                @media #{$md}{
                    line-height: 50px;
                    font-size: 24px;
                }
                @media #{$xs}{
                    line-height: 50px;
                    font-size: 24px;
                }
            }

            &:hover{
                background-position: right center;
            }
        }
    }
    
    & .product-wishlist-compare{
        padding-top: 15px;

        & ul{
            & li{
                margin-top: 15px;
                margin-right: 30px;
                
                @media #{$xs}{
                    margin-right: 15px;
                }

                & a{
                    line-height: 0;
                    border: none;
                    color: $black;
                    display: inline-block;
                    font-size: 14px;
                    background: transparent;
                    cursor: pointer;
                    font-weight: 500;
                    text-transform: uppercase;

                    @media #{$desktop}{
                        letter-spacing: 2px;
                    }

                    @media #{$md}{
                        font-size: 13px;
                    }
                    @media #{$xs}{
                        font-size: 13px;
                    }

                    & i{
                        margin-right: 5px;
                        font-size: 22px;
                        color: $body-color;

                        @media #{$md}{
                            font-size: 18px;
                        }
                        @media #{$xs}{
                            font-size: 18px;
                        }
                    }
                }

                & + li{
                    border-left: 1px solid $border-color;

                    @media #{$xs}{
                        border-left: 0;
                    }
                    @media #{$sm}{
                        border-left: 1px solid $border-color;
                    }

                    & a{
                        padding-left: 30px;

                        @media #{$md}{
                            padding-left: 15px;
                        }
                        @media #{$xs}{
                            padding-left: 0;
                        }
                        @media #{$sm}{
                            padding-left: 15px;
                        }
                    }
                }
            }
        }
    }
    & .product-share{
        padding-top: 20px;

        & p{
            font-size: 14px;
            color: $black;
            font-weight: 500;
            padding-top: 0;
        }
        & .social{
            & li{
                display: inline-block;
                margin-left: 10px;

                & a{
                    color: #b4b4b4;
                    font-size: 14px;
                    padding: 0;
                    @include transition(0.3s);

                    &:hover{
                        color: $body-color;
                    }
                }
            }
        }
    }
    
    & .reassurance-block{
        border-top: 1px solid $border-color;
        margin-top: 30px;
        
        & .single-reassurance{
            margin-top: 30px;

            & .reassurance-icon{}
            & .reassurance{
                padding-left: 10px;

                & p{                
                    font-size: 14px;
                    color: $body-color;
                    text-transform: capitalize;
                    padding-top: 0;
                }
            }
        }
    }
    
    &.sticky{
        position: -webkit-sticky;
        position: sticky;
        top: 85px;
        left: 0;
        width: 100%;
    }
}


.product-description-area{
    & .nav{
        position: relative;
        
        &::before{
            position: absolute;
            content: '';
            width: 100%;
            height: 2px;
            background-color: $border-color;
            top: 50%;
            left: 0;
            @include transform(translateY(-50%));
        }
        
        & .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 8px;
                position: relative;
                @include transition(0.3s);
                z-index: 5;
                overflow: hidden;
                border: 1px solid $border-color;
                @include transition(0.3s);
                background-color: $white;
                
                @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;
                    }
                }
            }
        }
    }
    
    & .description{
        margin-top: 30px;
    }
}


.product-rating-content{
    & .average-rating{
        & .rating-overall{
            font-size: 28px;
            font-weight: 500;
            color: $black;
            
            & span{
                font-size: 14px;
            }
        }
        & p{
            margin-top: 14px;
            margin-top: 5px;
            color: $black;
        }
    }
    & .rating-list{
        padding-top: 15px;
        margin-left: -25px;
        margin-right: -25px;
        
        & .single-rating{
            margin-top: 10px;
            padding: 0 25px;
            
            & i{
                font-size: 14px;
                color: #f3cd1e;
            }
            & span{
                font-size: 14px;
                color: $black;
                margin-left: 3px;
            }
        }
    }
    & .rating-items{
        & .single-rating-item{
            margin-top: 25px;
            
            & .rating-author{
                & .author-name{
                    font-size: 16px;
                    font: 500px;
                    margin-right: 15px;
                }
                & .rating-star{
                    li{
                        display: inline-block;
                        font-size: 13px;
                        color: #f3cd1e;
                        
                        & span{
                            font-size: 14px;
                            color: $black;
                            margin-left: 3px;
                        }
                    }
                }
            }
            & p{
                margin-top: 10px;
            }
        }
    }
    & .rating-form{
        margin-top: 30px;
        
        & .form-title{
            font-weight: 500;
            font-size: 24px;
            color: $black;
            text-transform: uppercase;
        }
        & .rating-star{
            margin-top: 15px;
            
            & .title{
                font-weight: 500;
                color: $black;
                margin-right: 10px;
            }
            & ul{
                & li{
                    display: inline-block;
                    font-size: 13px;
                    color: #f3cd1e;
                }
            }
        }
    }
}
























