/*==== products AREA ====*/

.products {
    & .col-md-6 {
        @include Mobile {
            max-width: 50%;
            flex: 0 0 50%;
        }

        @include sMobile {
            max-width: 100%;
            flex: 0 0 100%;
        }
    }

    & .col-sm-12 {
        @include Mobile {
            max-width: 100%;
            flex: 0 0 100%;
        }
    }

    & .row {
        & .section_title {
            @include Mobile {
                margin-bottom: 6px;
            }
        }
    }

    //products left filter// 
    &_filter_active {
        top: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    &_filter {
        @include Mobile {
            position: fixed;
            top: 100px;
            left: 0;
            background-color: $white;
            z-index: 99;
            width: 100%;
            height: 100%;
            overflow-y: scroll;
            opacity: 0;
            visibility: hidden;
            padding: 20px;
            transition: all .3s ease-in-out;
        }

        &_close {
            width: 30px;
            height: 30px;
            text-align: center;
            border: 1px solid $light-border;
            border-radius: 4px;
            color: $naviblue;
            background-color: $white;
            position: fixed;
            top: 15px;
            right: 15px;
            display: none;
            z-index: 9;

            @include Mobile {
                display: block;
            }

            &:hover {
                & i {
                    transform: rotate(90deg);
                }
            }

            & i {
                transform: rotate(0deg);
                transition: all .3s ease-in-out;
            }
        }

        &_border {
            border: 1px solid $border;
            margin-top: 24px;

            @include Mobile {
                margin-top: 0px;
                border: none;
            }
        }

        &_head {
            padding-bottom: 28px;
            padding-top: 10px;
            border-bottom: 1px solid $light-border;

            @include Tablet {
                padding-bottom: 22px;
            }

            @include Mobile {
                display: none;
            }

            & h6 {
                font-size: 16px;
                margin-bottom: 0px;
                font-weight: 700;
                color: $naviblue;

                @include Tablet {
                    font-size: 14px;
                }

                & svg {
                    margin-right: 5px;

                    & rect {
                        fill: $blue
                    }
                }
            }
        }

        &_item {
            padding: 30px;
            padding-bottom: 10px;

            @include Laptop {
                padding: 25px;
            }

            @include Ipad {
                padding: 20px;
            }

            @include Tablet {
                padding: 15px;
                padding-bottom: 5px;
            }

            @include Mobile {
                padding: 0;
                margin-top: 20px;
            }

            @include sMobile {
                margin-top: 20px;
            }

            &:first-child {
                margin-top: 0px;
            }

            &:last-child {
                padding-bottom: 30px;

                @include Ipad {
                    padding-bottom: 20px;
                }

                @include Tablet {
                    padding-bottom: 15px;
                }

                @include Mobile {
                    padding-bottom: 0;
                }
            }

            & h5 {
                font-size: 18px;
                padding-bottom: 15px;
                border-bottom: 1px solid $light-border;
                margin-bottom: 20px;
                font-weight: 700;

                @include Laptop {
                    margin-bottom: 20px;
                }

                @include Ipad {
                    font-size: 16px;
                    margin-bottom: 10px;
                }

                @include Tablet {
                    font-size: 16px;
                    margin-bottom: 15px;
                }

                @include Mobile {
                    font-size: 16px;
                    margin-bottom: 10px;
                }
            }

            &_rating {
                font-size: 14px;
                font-weight: 500;
                margin-bottom: 5px;

                &:last-child {
                    margin-bottom: 0px;
                }

                & i {
                    color: $yellow;

                    &:not(:last-child) {
                        margin-right: 4px;
                    }
                }

                & span {
                    margin-left: 15px;
                }
            }

            &_color {
                display: inline-block;
                position: relative;
                margin-right: 5px;
                z-index: 1;

                & input {
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    top: 0;
                    left: 0;
                    opacity: 0;
                    cursor: pointer;

                    &:checked~.products_filter_item_color_title {
                        border-color: $blue;
                    }

                    &[type=checkbox] {
                        display: none;
                    }
                }

                &_title {
                    width: 35px;
                    height: 35px;
                    border-radius: 100%;
                    display: block;
                    border: 1px solid $border;
                    position: relative;
                    z-index: -1;

                    @include Tablet {
                        width: 30px;
                        height: 30px;
                    }

                    &::before {
                        content: "";
                        width: 100%;
                        height: 100%;
                        border-radius: 100%;
                        background-color: $gray;
                        position: absolute;
                        transform: scale(.75);
                        z-index: -1;
                    }
                }

                &[data-name='000000'] {
                    & .products_filter_item_color_title {
                        &::before {
                            background-color: #000000;
                        }
                    }
                }

                &[data-name='1F73BE'] {
                    & .products_filter_item_color_title {
                        &::before {
                            background-color: #1F73BE;
                        }
                    }
                }

                &[data-name='d6d6d6'] {
                    & .products_filter_item_color_title {
                        &::before {
                            background-color: #d6d6d6;
                        }
                    }
                }

                &[data-name='81d742'] {
                    & .products_filter_item_color_title {
                        &::before {
                            background-color: #81d742;
                        }
                    }
                }

                &[data-name='dd9a32'] {
                    & .products_filter_item_color_title {
                        &::before {
                            background-color: #dd9a32;
                        }
                    }
                }

                &[data-name='8224e2'] {
                    & .products_filter_item_color_title {
                        &::before {
                            background-color: #8224e2;
                        }
                    }
                }

                &[data-name='ef3736'] {
                    & .products_filter_item_color_title {
                        &::before {
                            background-color: #ef3736;
                        }
                    }
                }

                &[data-name='eeee22'] {
                    & .products_filter_item_color_title {
                        &::before {
                            background-color: #eeee22;
                        }
                    }
                }
            }

            &_price_slider {
                & .irs {
                    margin-bottom: 20px;

                    @include Tablet {
                        margin-bottom: 10px;
                    }
                }

                & a {
                    padding: 8px 17px;
                    margin-right: 15px;

                    @include Laptop {
                        padding: 5px 10px;
                        margin-right: 10px;
                    }

                    @include Tablet {
                        padding: 5px 10px;
                        margin-right: 0;
                        display: inline-block;
                        margin-bottom: 10px;
                    }
                }

                & span {
                    font-size: 14px;

                    @include Tablet {
                        display: block;
                    }

                    & strong {
                        font-weight: 700;
                        color: $blue
                    }
                }
            }
        }
    }

    //products filter head//
    &_filtering_head {
        @include d-flex(wrap);
        border-bottom: 1px solid $light-border;
        padding-bottom: 20px;

        @include Tablet {
            padding-bottom: 15px;
        }

        &_left {
            max-width: 40%;
            flex: 0 0 40%;

            @include Mobile {
                max-width: 10%;
                flex: 0 0 10%;
            }
        }

        &_right {
            max-width: 60%;
            flex: 0 0 60%;

            @include Mobile {
                max-width: 90%;
                flex: 0 0 90%;
            }
        }

        &_filter_mobile {
            display: none;
            font-size: 0px;
            font-weight: 500;
            color: $naviblue;
            cursor: pointer;

            @include Mobile {
                display: flex;
                align-items: center;
            }

            & svg {
                margin-right: 5px;

                & rect {
                    fill: $naviblue;
                }
            }
        }

        & p {
            font-size: 14px;
            font-weight: 500;
            color: $naviblue;

            @include Tablet {
                font-size: 12px;
            }

            @include Mobile {
                display: none;
            }
        }
    }

    //products item// 
    &_item {
        display: block;
        margin-top: 24px;
        padding: 0px 20px;
        padding-bottom: 30px;
        padding-top: 0px;
        background-color: $light-gray;
        position: relative;
        z-index: 1;

        @include Ipad {
            padding: 0px 15px;
            padding-bottom: 20px;
        }

        @include Tablet {
            padding: 0px 15px;
            padding-bottom: 20px;
        }

        @include Mobile {
            margin-top: 24px;
        }

        &:hover {
            & h4 {
                color: $blue;
            }

            & img {
                transform: scale(1.05);
            }
        }

        &::before {
            content: "-" attr(data-discount) "%";
            color: $white;
            background-color: $blue;
            font-size: 12px;
            line-height: calc(24px / 12px);
            padding: 0px 5px;
            font-weight: 700;
            position: absolute;
            top: 20px;
            left: 20px;
            text-align: center;
            border-radius: 2px;

            @include Ipad {
                left: 15px;
                top: 15px;
            }

            @include Tablet {
                left: 15px;
                top: 15px;
            }

            @include Mobile {
                left: 10px;
                top: 10px;
            }

            @include sMobile {
                left: 15px;
                top: 15px;
            }
        }

        &_img {
            position: relative;
            z-index: 1;
            margin-bottom: 10px;
            overflow: hidden;

            &_inner {
                width: 100%;
                height: 240px;

                @include Laptop {
                    height: 200px;
                }

                @include Ipad {
                    height: 160px;
                }

                @include Tablet {
                    height: 160px;
                }

                @include Mobile {
                    height: 180px;
                }

                & img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                    transform: scale(1);
                    transition: all .3s ease-in-out;
                }
            }
        }

        &_inner {
            & span {
                font-size: 14px;
                font-weight: 500;
                color: $text-color;
                display: inline-block;
                margin-bottom: 5px;

                @include Tablet {
                    font-size: 12px;
                    margin-bottom: 0px;
                }

                @include Mobile {
                    font-size: 12px;
                    margin-bottom: 0px;
                }

                @include sMobile {
                    margin-bottom: 5px;
                }
            }

            & h4 {
                font-size: 18px;
                line-height: calc(28px / 18px);
                margin-bottom: 10px;
                transition: all .3s ease-in-out;
                font-weight: 700;

                @include Ipad {
                    font-size: 16px;
                }

                @include Tablet {
                    font-size: 16px;
                }

                @include Mobile {
                    font-weight: 600;
                    font-size: 16px;
                    margin-bottom: 5px;
                    line-height: 1.4;
                }
            }

            & p {
                font-family: 'Eudoxus Sans', sans-serif;
                font-weight: 700;
                font-size: 16px;
                color: $blue;

                @include Mobile {
                    font-size: 14px;
                }
            }

            &_rating {
                display: block;
                font-size: 14px !important;
                margin-bottom: 25px !important;

                @include Ipad {
                    margin-bottom: 15px !important;
                }

                @include Tablet {
                    margin-bottom: 10px !important;
                }

                @include Mobile {
                    font-size: 12px !important;
                    margin-bottom: 10px !important;
                }

                @include sMobile {
                    font-size: 14px !important;
                }

                & i {
                    margin-right: 5px;
                    color: $yellow;

                    @include Ipad {
                        margin-right: 3px;
                    }
                }
            }
        }
    }

    /*==== products DETAILS PAGE ====*/
    &_details {

        // image preview
        &_preview {
            @include Mobile {
                margin-bottom: 30px;
            }

            &_main {
                width: 100%;
                height: 550px;
                overflow: hidden;
                background-color: $gray;
                margin-bottom: 10px;

                @include Ipad {
                    height: 420px;
                }

                @include Tablet {
                    height: 400px;
                }

                @include Mobile {
                    height: 350px;
                }

                @include sMobile {
                    height: 300px;
                }

                & img {
                    position: initial !important;
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }
            }

            &_thum {
                @include d-flex(wrap);
                margin: 0px -5px;

                &_item {
                    max-width: 25%;
                    flex: 0 0 25%;
                    padding: 0px 5px;
                    border: 1px solid transparent;

                    &:hover {
                        & img {
                            transform: scale(1.05);
                        }
                    }

                    &_img {
                        width: 100%;
                        height: 100%;
                        background-color: $gray;
                        overflow: hidden;

                        & img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                            transform: scale(1);
                            transition: all .3s ease-in-out;
                        }
                    }
                }
            }
        }

        // single products details
        &_inner {
            padding-left: (80px-24px);

            @include Ipad {
                padding-left: 26px;
            }

            @include Tablet {
                padding-left: 0px;
            }

            @include Mobile {
                padding-left: 0px;
            }

            &_strock {
                margin-bottom: 25px;

                @include Ipad {
                    margin-bottom: 20px;
                }

                @include Tablet {
                    margin-bottom: 15px;
                }

                @include Mobile {
                    margin-bottom: 10px;
                }

                & p {
                    font-size: 14px;
                    font-weight: 600;
                    margin-bottom: 0px;

                    @include Tablet {
                        font-weight: 500;
                    }

                    @include Mobile {
                        font-size: 12px;
                        font-weight: 500;
                    }

                    & span {
                        font-weight: 400;
                    }
                }
            }

            & h3 {
                font-size: 30px;
                font-weight: 700;
                margin-bottom: 5px;

                @include Tablet {
                    font-size: 24px;
                }

                @include Mobile {
                    font-size: 24px;
                    margin-bottom: 10px;
                }

                @include sMobile {
                    font-size: 22px;
                }
            }

            & .price {
                font-size: 24px;
                font-weight: 600;
                color: $darkorange;
                margin-bottom: 30px;
                @include d-flex(nowrap);

                @include Ipad {
                    margin-bottom: 20px;
                }

                @include Tablet {
                    font-size: 18px;
                    margin-bottom: 10px;
                }

                @include Mobile {
                    font-size: 16px;
                    margin-bottom: 10px;
                }

                & span {
                    font-size: 14px;
                    color: $text-color;
                    font-weight: 400;
                    margin-left: 10px;
                }
            }

            & .products-star {
                font-size: 14px;
                font-weight: 400;
                margin-bottom: 40px;

                @include Ipad {
                    margin-bottom: 30px;
                }

                @include Tablet {
                    margin-bottom: 20px;
                }

                @include Mobile {
                    margin-bottom: 25px;
                }

                & i {
                    color: $yellow;
                    margin-right: 5px;

                    @include Tablet {
                        margin-right: 3px;
                    }
                }

                & span {
                    margin-left: 10px;

                    @include Tablet {
                        margin-right: 5px
                    }
                }
            }

            &_count {
                @include d-flex(wrap);
                margin: 0px -7px;
                margin-bottom: 20px;

                @include Tablet {
                    margin-bottom: 15px;
                }

                @include Mobile {
                    margin-bottom: 15px;
                }

                &_left {
                    padding: 0px 5px;

                    @include Tablet {
                        max-width: 100%;
                        flex: 0 0 100%;
                    }

                    @include sMobile {
                        max-width: 100%;
                        flex: 0 0 100%;
                    }
                }

                &_right {
                    padding: 0px 7px;

                    @include Tablet {
                        max-width: 100%;
                        flex: 0 0 100%;
                    }

                    @include Mobile {
                        padding: 0px 5px;
                    }

                    @include sMobile {
                        max-width: 100%;
                        flex: 0 0 100%;
                    }
                }

                & span {
                    font-family: 'Eudoxus Sans', sans-serif;
                    font-size: 14px;
                    font-weight: 600;
                    color: $naviblue;
                    margin-right: 10px;

                    @include Mobile {
                        font-weight: 500;
                    }
                }

                & a {
                    padding: 13px 51px;

                    @include Ipad {
                        padding: 13px 40px;
                    }

                    @include Tablet {
                        padding: 12px 40px;
                        display: block;
                        text-align: center;
                        margin-top: 10px;
                    }

                    @include sMobile {
                        display: block;
                        margin-top: 15px;
                        text-align: center;
                        padding: 10px;
                        margin-bottom: 5px;
                    }
                }
            }

            & .checkbox {
                margin-bottom: 30px;

                @include Ipad {
                    margin-bottom: 20px;
                }

                @include Tablet {
                    margin-bottom: 20px;
                }

                @include Mobile {
                    margin-bottom: 20px;
                }
            }

            & .site_btn {
                display: block;
                border-width: 2px;
                text-align: center;
                margin-bottom: 20px;

                @include Tablet {
                    margin-bottom: 15px;
                }

                @include Mobile {
                    border-width: 1px;
                    margin-bottom: 15px;
                }

                &::after {
                    border-radius: 0px;
                }
            }

            &_compair {
                margin-bottom: 50px;

                @include Ipad {
                    margin-bottom: 40px;
                }

                @include Ipad {
                    margin-bottom: 25px;
                }

                @include Mobile {
                    margin-bottom: 20px;
                }

                & a {
                    font-size: 14px;
                    font-weight: 600;
                    color: $blue;

                    &:hover {
                        color: $naviblue;
                    }

                    & i {
                        position: relative;
                        top: 1px;
                        margin-right: 7px;
                    }

                    &:last-child {
                        margin-left: 20px;
                    }
                }
            }

            &_methods_checkout {
                margin-bottom: 50px;

                @include Ipad {
                    margin-bottom: 40px;
                }

                @include Tablet {
                    margin-bottom: 30px;
                }

                @include Mobile {
                    margin-bottom: 25px;
                }

                & h4 {
                    font-size: 24px;
                    line-height: calc(24px / 24px);
                    font-weight: 700;
                    margin-bottom: 20px;

                    @include Tablet {
                        font-size: 20px;
                        margin-bottom: 10px;
                    }

                    @include Mobile {
                        font-size: 20px;
                        margin-bottom: 10px;
                    }
                }

                & ul {
                    & li {
                        &:first-child {
                            & a {
                                padding-left: 0px;
                            }
                        }

                        &:last-child {
                            & a {
                                padding-right: 0px;
                            }
                        }

                        & a {
                            display: block;
                            padding: 5px;

                            @include Ipad {
                                padding: 2px;
                            }

                            @include Mobile {
                                padding: 3px;
                            }
                        }
                    }
                }
            }

            & .padding_clearfix {
                padding: 30px 0px;

                @include Mobile {
                    padding: 20px 0px;
                }
            }

            &_item {
                border-top: 1px solid $border;
                padding: 50px 0px;

                @include Laptop {
                    padding: 40px 0px;
                }

                @include Ipad {
                    padding: 40px 0px;
                }

                @include Tablet {
                    padding: 30px 0px;
                }

                @include Mobile {
                    padding: 25px 0px;
                }

                & h5 {
                    font-size: 18px;
                    font-weight: 700;
                    line-height: calc(24px / 18px);
                    margin-bottom: 15px;

                    @include Tablet {
                        margin-bottom: 10px;
                    }
                }

                & p {
                    font-size: 14px;
                    font-weight: 400;
                    margin-bottom: 30px;

                    @include Ipad {
                        margin-bottom: 20px;
                    }

                    &:last-child {
                        margin-bottom: 0px;
                    }
                }

                & ul {
                    & li {
                        display: block;
                        font-size: 14px;
                        font-weight: 400;
                        color: $text-color;
                        margin-bottom: 10px;

                        &:last-child {
                            margin-bottom: 0px;
                        }

                        & span {
                            font-weight: 600;
                        }
                    }
                }

                &_color {
                    color: $naviblue;
                }

                &_review_info {
                    margin-top: 30px;
                    margin-bottom: 50px;

                    @include Ipad {
                        margin-top: 20px;
                        margin-bottom: 40px;
                    }

                    @include Tablet {
                        margin-top: 20px;
                        margin-bottom: 30px;
                    }

                    @include Mobile {
                        margin-top: 15px;
                        margin-bottom: 25px;
                    }

                    &:last-child {
                        margin-bottom: 0px;
                    }

                    & h5 {
                        margin-bottom: 10px !important;

                        @include Mobile {
                            font-size: 16px;
                            margin-bottom: 5px !important;
                        }
                    }

                    & .star {
                        margin-bottom: 25px;
                        font-size: 14px;
                        font-weight: 400;

                        @include Mobile {
                            margin-bottom: 10px;
                        }

                        & i {
                            color: $yellow;

                            &:not(:last-child) {
                                margin-right: 5px;
                            }
                        }

                        & span {
                            margin-left: 15px;
                        }
                    }
                }

                &_reveiw_wirte {
                    & p {
                        margin-bottom: 0px;

                        & i {
                            font-size: 20px;
                            color: $yellow;

                            @include Mobile {
                                font-size: 16px;
                            }

                            &:not(:last-child) {
                                margin-right: 5px;
                            }
                        }
                    }

                    & .input-control {
                        &-input {
                            @include Tablet {
                                padding: 12px 15px;
                            }
                        }

                        & textarea {
                            height: 100px;
                            resize: none;
                        }

                        & input[type=submit] {
                            font-weight: 600;
                        }
                    }
                }
            }
        }
    }

    // products load more btn
    .load_more {
        margin-top: 80px;

        @include Tablet {
            margin-top: 50px;
        }

        @include Mobile {
            margin-top: 30px;
        }

        & a {
            padding: 15px 50px;
            border-width: 2px;

            &::after {
                border-radius: 0px;
            }
        }
    }
}