/*----------------------------------------------
    # Widget Sidebar style here
----------------------------------------------*/
.main-sidebar {
    .single-sidebar-widget {
        padding: 40px 30px;
        background-color: $white;
        margin-bottom: 30px;
        border-radius: 16px;
        -webkit-border-radius: 16px;
        -moz-border-radius: 16px;
        -ms-border-radius: 16px;
        -o-border-radius: 16px;
    }
}

.widget-title {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 5px;
    color: $title-color;
    font-family: $title-color;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
    text-transform: capitalize;

    &::before {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 2px;
        width: 83px;
        content: "";
        background-color: $theme-color;
    }
}

.search-widget {
    form {
        width: 100%;
        position: relative;

        input {
            background: $bg-color-2;
            font-size: 15px;
            padding: 12px 20px;
            width: 100%;
            border: none;
            color: $text-color;
            border-radius: 8px;
            -webkit-border-radius: 8px;
            -moz-border-radius: 8px;
            -ms-border-radius: 8px;
            -o-border-radius: 8px;
        }

        button {
            position: absolute;
            right: 0;
            top: 0;
            width: 70px;
            font-size: 18px;
            height: 100%;
            background: transparent;
            border: none;
            color: $title-color;
            text-align: center;
            transition: background .3s ease;
            -webkit-transition: background .3s ease;
            -moz-transition: background .3s ease;
            -ms-transition: background .3s ease;
            -o-transition: background .3s ease;
            border-radius: 0px;
            -webkit-border-radius: 0px;
            -moz-border-radius: 0px;
            -ms-border-radius: 0px;
            -o-border-radius: 0px;

            &:hover {
                background: $theme-color;
                color: $white;

            }
        }
    }
}


.tagcloud {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    h6 {
        font-size: 20px; 
    }
 
    a { 
        &.active{
            background: $theme-color!important;
            color: $white !important;
        }
    }

    li {
        margin-right: 5px;

        a {
            display: inline-flex;
            padding: 10px 16px;
            background: $bg-color-2;
            color: $title-color;
            font-family: $title-font;
            font-size: 14px;
            font-style: normal;
            font-weight: 400;
            line-height: 14px;
            text-transform: capitalize;
            margin-bottom: 10px;
            border: none;
            border-radius: 4px;
            @include transition;
            -webkit-border-radius: 4px;
            -moz-border-radius: 4px;
            -ms-border-radius: 4px;
            -o-border-radius: 4px;

            &:last-child {
                margin-right: 0;
            }

            &:hover {
                background: $theme-color!important;
                color: $white !important;
            }
        }
    }
}


.range__barcustom {

    // pricing range scale
    .price-input {
        margin-top: 10px;
        position: relative;

        @include breakpoint (max-xxxl) {
            flex-wrap: wrap;
        }
    }

    .price-input .field {
        display: flex;
        align-items: center;
        font-size: 18px;

        span {
            font-size: 18px;
            font-weight: 500;
            color: $title-color;
        }

        width: 16%;
    }

    .separators {
        margin-left: -12px;
        padding-right: 12px;
        font-size: 24px;
        line-height: 42px;
        font-weight: 500;
    }

    .field input {
        height: 100%;
        outline: none;
        background: transparent;
        border: unset;
        font-size: 16px;
        font-weight: 500;
        color: $title-color;

        span {
            font-weight: 500;
            color: $title-color;
            font-size: 16px;
        }

        padding: 0;
    }

    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

    .price-input .separator {
        font-size: 14px;
        font-weight: 400;
        color: $white;
    }

    .slider {
        height: 6.75px;
        position: relative;
        background: $title-color;
        border-radius: 5px;
    }

    .slider .progress {
        height: 100%;
        left: 25%;
        right: 25%;
        position: absolute;
        border-radius: 5px;
        background: $theme-color;
    }

    .range-input {
        position: relative;
        display: flex;
        justify-content: center;
    }

    .range-input input {
        position: absolute;
        width: 100%;
        height: 6.75px;
        top: -7px;
        background: none;
        pointer-events: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        padding: 0;
        outline: none;
    }

    input[type="range"]::-webkit-slider-thumb {
        height: 17px;
        width: 7px;
        border-radius: 5px;
        background: $theme-color;
        border: 1.125px solid $theme-color;
        pointer-events: auto;
        -webkit-appearance: none;
    }

    .price-input {
        .filter-btn {
            padding: 8px 30px;
            margin-left: 15px;
            background-color: transparent;
            color: $title-color; 
            font-family: $title-font;
            font-size: 16px;
            font-style: normal;
            font-weight: 700;
            line-height: normal;
            text-transform: uppercase;

            &:hover {
                background-color: $theme-color;
                color: $white!important;
            }
        }
    }
}

.filter-size {
    .input-save {
        &:not(:last-child) {
            margin-bottom: 20px;
        }

        input {
            width: 20px;
            height: 19px;
            background-color: $theme-color;
            outline: none;
            color: $theme-color;
            padding: 5px;
            border-radius: 4px;
        }

        label {
            margin-left: 20px;
            color: $title-color;
            text-transform: capitalize;
            font-weight: 600;
            text-transform: capitalize;
        }
    }
}


.recent-box {
    padding: 20px 30px;
    border: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 30px;
    border-radius: 10px;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -ms-transition: all 0.4s;
    -o-transition: all 0.4s;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;

    .recent-thumb {
        img {
            border-radius: 50%;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            -ms-border-radius: 50%;
            -o-border-radius: 50%;
        }
    }

    .recent-content {
        .star {
            margin-bottom: 10px;
            margin-top: 5px;
        } 
        .price {
            display: flex;
            gap: 10px;
            .regular-price {
                color: $theme-color; 
                font-family: $title-font;
                font-size: 16px;
                font-style: normal;
                font-weight: 700;
                line-height: normal;
                text-transform: uppercase;
            }

            .offer-price {
                color: $text-color; 
                font-family: $title-font;
                font-size: 16px;
                font-style: normal;
                font-weight: 700;
                line-height: normal;
                text-transform: uppercase;
            }
        }
    }

    a {

        color: $title-color; 
        font-family: $body-font;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 26px;  

        &:hover {
           color:  $theme-color;
        }
    }

    &:hover {
        border: 1px solid $theme-color;
        a {
            color: $theme-color;
        }
    }

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



.page-nav-wrap {
    margin-top: 50px;
    @include breakpoint (max-sm) {
       margin-bottom: 30px;
    }
    ul {
        @include flex;
        gap: 5px;
        justify-content: center;
  
        @include breakpoint (max-xl){
          flex-wrap: wrap;
        }
  
        li {
            .previous {
                display: inline-block;
                width: 56px;
                height: 56px; 
                line-height: 56px;
                text-align: center;
                margin-right: 10px;
                background-color: $white;
                border: 1px solid transparent;
                color: $title-color;
                border-radius: 30px;
                -webkit-border-radius: 30px;
                -moz-border-radius: 30px;
                -ms-border-radius: 30px;
                -o-border-radius: 30px;
                @include transition;
  
                &:hover {
                    background-color:  $theme-color;
                    color: $white!important;
                    border: 1px solid transparent;
                }

                @include breakpoint (max-sm) {
                    width: 35px;
                }
            }
  
            .next {
                display: inline-block;
                width: 56px;
                height: 56px; 
                line-height: 56px;
                text-align: center;
                margin-right: 10px;
                background-color: $white;
                color: $title-color;
                border: 1px solid transparent;
                border-radius: 30px;
                -webkit-border-radius: 30px;
                -moz-border-radius: 30px;
                -ms-border-radius: 30px;
                -o-border-radius: 30px;
                @include transition;
  
                &:hover {
                    background-color:  $theme-color;
                    color: $white!important;
                    border: 1px solid transparent;
                }
                
                @include breakpoint (max-sm) {
                    width: 35px;
                }
            }
  
            .page-numbers {
                    display: block;
                    width: 56px;
                    height: 56px; 
                    line-height: 56px;
                    text-align: center;
                    margin-right: 10px;
                    background-color: $white;
                    color: $title-color;
                    border-radius: 30px;
                    -webkit-border-radius: 30px;
                    -moz-border-radius: 30px;
                    -ms-border-radius: 30px;
                    -o-border-radius: 30px;
                &:hover,
                &.active {
                    background-color:  $theme-color;
                    color: $white!important;
                    border: 1px solid transparent;
                }

                
                @include breakpoint (max-sm) {
                    width: 36px;
                    height: 36px; 
                    line-height: 36px;
                    text-align: center;
                }
            }
        }
    }
  }
  


.sort-bar {
    padding: 0;
    margin: 0 0 10px 0;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
  }
  
  .sort-bar .woocommerce-result-count {
    margin-bottom: 0;
  }
  
  .sort-bar .single-select {
    height: 46px;
    line-height: 46px;
    border: 1px solid #E8E8E8;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    min-width: 209px;
    font-size: 16px;
    margin: 0;
    padding: 0 40px 0 20px;
  }
  
  .sort-bar {
    .nav-pills {
        margin-left: 10px;
        .nav-link.active, .nav-pills .show > .nav-link {
            color: $theme-color;
            background-color: transparent;
        }
    }

    .nav-link {
        color: $text-color;
        padding: 5px;
        margin-left: 5px;
    }
  }
  




  .sort-bar .nav a.active,
  .sort-bar .nav a:hover {
    color: $theme-color!important;
  }


  .categories-list {
    .checkbox-single {
        position: relative;
        padding-left: 18px;
        cursor: pointer;

        input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }

        &:not(:last-child) {
            margin-bottom: 10px;
        }

        .checkbox-area {
            .checkmark {
                position: absolute;
                left: 0;
                height: 20px;
                width: 20px;
                border: 1px solid rgba(229, 229, 229, 1);
                top: 5px;

                &::after {
                    content: "";
                }
            }

            input:checked~.checkmark {
                &::after {
                    content: "\f00c";
                    position: absolute;
                    font-family: $fa;
                    top: -5px;
                    left: 5px;
                    color: $theme-color;
                    font-size: 11px;
                }

                background-color: $theme-color;
            }

            input:checked~.checkmark:after {
                display: block;
                color: $white;
            }
        }

        .text-color {
            font-weight: 600;
            color: $title-color;

            .star {
                color: $theme-color;
                margin-right: 5px;
            }
        }
    }
}
 












/*----------------------------------------------
    # Widget Sidebar style2 here
----------------------------------------------*/
.main-sidebar2 {
    .single-sidebar-widget {
        padding: 40px 30px;
        background-color: $white;
        margin-bottom: 30px;
        border-radius: 10px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        -ms-border-radius: 10px;
        -o-border-radius: 10px;

        .wid-title {
            margin-bottom: 25px;

            h3 {
                position: relative;
                padding-bottom: 15px;
                color: $title-color; 
                font-family: $title-font;
                font-size: 24px;
                font-style: normal;
                font-weight: 700;
                line-height: 30px;  
                text-transform: capitalize;
                &::before {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    height: 2px;
                    width: 83px;
                    content: "";
                    background-color: $theme-color;
                }
            }
        }

        .search-widget {
            form {
                width: 100%;
                position: relative;

                input {
                    background-color: $bg-color-2;
                    font-size: 15px;
                    padding: 20px;
                    width: 100%;
                    border: none;
                    color: $text-color;
                }

                button {
                    position: absolute;
                    right: 0;
                    top: 0;
                    width: 70px;
                    font-size: 18px;
                    height: 100%;
                    background: $theme-color;
                    border: none;
                    color: $white;
                    text-align: center;
                    transition: background .3s ease;
                    -webkit-transition: background .3s ease;
                    -moz-transition: background .3s ease;
                    -ms-transition: background .3s ease;
                    -o-transition: background .3s ease; 

                    &:hover {
                        background: $title-color;

                    }
                }
            }
        }

        .news-widget-categories {
            ul {
                padding-left: 0;
                list-style-type: none;

                li {
                    background-color: $bg-color-2;
                    font-weight: 500;
                    @include transition;
                    border-radius: 8px;
                    -webkit-border-radius: 8px;
                    -moz-border-radius: 8px;
                    -ms-border-radius: 8px;
                    -o-border-radius: 8px;

                    a {
                        display: flex;
                        align-items: center;
                        justify-content: space-between;

                        padding: 20px 24px;
                        color: $title-color;

                        span {
                            @include transition;
                            color: $title-color;
                        }
                    }



                    &:not(:last-child) {
                        margin-bottom: 12px;
                        border-radius: 8px;
                        -webkit-border-radius: 8px;
                        -moz-border-radius: 8px;
                        -ms-border-radius: 8px;
                        -o-border-radius: 8px;
                    }

                    &:hover {
                        background: $theme-color;
                        color: $white;

                        a {
                            color: $white!important;
                        }

                        span {
                            color: $white;
                        }
                    }


                    &.active {
                        background: $theme-color;
                        ;

                        a {
                            color: $white;
                        }

                        span {
                            color: $white;
                        }
                    }
                }
            }
        }

        .recent-post-area {
            .recent-items {
                display: flex;
                align-items: center;
                gap: 20px;

                &:not(:last-child) {
                    padding-bottom: 20px;
                    margin-bottom: 20px;
                    border-bottom: 1px solid #E6E5E5;
                }

                .recent-thumb {
                    img {
                        width: 78px;
                        height: 79px;
                        object-fit: cover;
                    }
                }

                .recent-content {
                    ul {
                        list-style-type: none;
                        padding-left: 0;
                        margin-bottom: 8px;

                        li {
                            color: $theme-color;
                            font-family: $title-font;
                            font-size: 14px;
                            font-style: normal;
                            font-weight: 400;
                            line-height: 22px;

                            i {
                                color: $theme-color-2;
                                margin-right: 5px;
                            }
                        }
                    }

                    h6 {
                        font-weight: 700;
                        margin-bottom: 0;

                        a {
                            color: $title-color;
                            font-family: $title-font;
                            font-size: 16px;
                            font-style: normal;
                            font-weight: 700;
                            line-height: 24px;

                            &:hover {
                                color: $theme-color-2;
                            }
                        }
                    }
                }
            }
        }

        .tagcloud {
            a {
                display: inline-flex;
                padding: 10px 16px;
                color: $title-color;
                font-family: $title-font;
                font-size: 14px;
                font-style: normal;
                font-weight: 400;
                line-height: 14px;
                text-transform: capitalize;
                background: $bg-color-2;
                margin-right: 10px;
                margin-bottom: 20px;
                border: none;
                border-radius: 4px;
                @include transition;
                -webkit-border-radius: 4px;
                -moz-border-radius: 4px;
                -ms-border-radius: 4px;
                -o-border-radius: 4px;

                &:last-child {
                    margin-right: 0;
                }

                &.active,
                &:hover {
                    background: $theme-color;
                    color: $white !important;
                }
            }
        }
    }
}

// .recent-post {
//     display: flex;
//     align-items: center;
//     margin-bottom: 25px;

//     &:last-child {
//         margin-bottom: 0;
//         padding-bottom: 0;
//         border: 0;
//     }

//     .media-img {
//         margin-right: 20px;
//         width: 95px;
//         overflow: hidden;
//         flex: none;

//         img {
//             width: 100%;
//             transition: 0.4s ease-in-out;
//         }
//     }

//     .post-title {
//         font-weight: 600;
//         font-size: 18px;
//         line-height: 1.25;
//         margin: 10px 0 0px;
//         font-family: $title-font;
//         text-transform: capitalize;
//     }

//     .recent-post-meta {
//         margin-bottom: -2px;

//         .price {
//             font-size: 18px;
//             font-weight: 700;
//             color: #c5c5c5;

//             del {
//                 margin-right: 10px;
//             }

//             strong {
//                 color: $theme-color;
//                 font-weight: 700;
//             }
//         }

//         a {
//             text-transform: capitalize;
//             font-size: 14px;
//             font-weight: 400;
//             color: $text-color;

//             i {
//                 margin-right: 9px;
//                 color: $theme-color-2;
//                 transition: 0.4s;
//             }

//             &:hover {
//                 color: $theme-color;

//                 i {
//                     color: $theme-color;
//                 }
//             }
//         }
//     }

//     &:hover {
//         .media-img {
//             img {
//                 transform: scale(1.1);
//             }
//         }
//     }
// }


// .widget_shopping_cart {
//     .widget_title {
//         margin-bottom: 30px;
//         border-bottom: none;
//     }

//     ul {
//         margin: 0;
//         padding: 0;

//         li {
//             list-style-type: none;
//         }
//     }

//     .mini_cart_item {
//         position: relative;
//         padding: 30px 30px 30px 90px;
//         border-bottom: 1px solid rgba(0, 0, 0, 0.1);
//         margin-bottom: 0;
//         text-align: left;

//         &:first-child {
//             border-top: 1px solid rgba(0, 0, 0, 0.1);
//         }
//     }

//     .cart_list {
//         a:not(.remove) {
//             display: block;
//             color: $text-color;
//             font-size: 16px;
//             font-weight: 500;
//             font-family: $title-font;
//             font-weight: 600;
//             color: $title-color;
//             margin-bottom: 6px;

//             &:hover {
//                 color: $theme-color;
//             }
//         }

//         a.remove {
//             position: absolute;
//             top: 50%;
//             left: 95%;
//             transform: translateY(-50%);
//             color: $text-color;

//             &:hover {
//                 color: $theme-color;
//             }
//         }

//         img {
//             width: 75px;
//             height: 75px;
//             position: absolute;
//             left: 0;
//             top: 18px;
//         }
//     }

//     .quantity {
//         display: inline-flex;
//         white-space: nowrap;
//         vertical-align: top;
//         margin-right: 20px;
//         font-size: 14px;
//         font-weight: 500;
//     }

//     .total {
//         margin-top: 20px;
//         font-size: 18px;
//         color: $title-color;
//         font-family: $body-font;

//         strong {
//             font-family: $title-font;
//         }
//     }

//     .amount {
//         padding-left: 5px;
//     }

//     .as-btn {
//         margin-right: 15px;

//         &:last-child {
//             margin-right: 0;
//         }
//     }
// }


@include breakpoint (max-xl) {
    .widget_title {
        font-size: 22px;
        margin: -0.12em 0 24px 0;
    }
}

@media (max-width: 330px) {
    .recent-post {
        .post-title {
            font-size: 16px;
            line-height: 24px;
        }

        .recent-post-meta a {
            font-size: 12px;
        }
    }
}