﻿
.nav-item.dropdown.depth2 .dropdown-menu, .nav-item.dropdown.depth1 .dropdown-menu {
    right: 0;
    left: auto;
    width: 100%;
}
@media(max-width :992px) {

    .btn-loadmore{
        margin-right:1rem;
    }

    .list-by-category .kala-list {
        width: 100% !important;
    }
    .list-by-category .btn-more {
        font-size: 13px;
    }
    .list-by-category .kala-list {
        padding: 0;
    }

  
  
}

/* Responsive adjustments */
    @media (max-width: 992px) {
        .product-gallery .gallery-main .swiper-button-prev {
            left: 18%;
        }
        .el-11 .icons-list .icon-item {
            padding: 1rem 1rem;
        }
            .el-11 .icons-list {
            display: flex;
            flex-direction: row;
            gap: 10px;
            justify-content: center;
        }





        .product-title {
            font-size: 21px;
        }
            .list-by-category .kala {
            flex-direction: column;
        }

            .list-by-category .kala .pad {
                width: 100%;
                flex-direction: row;
                justify-content: space-between;
                padding: 15px 0;
            }
        .list-by-category .name, .list-by-category .name span , .list-by-category .name span *{
            margin-bottom: 0 ;
        }
        .list-by-category .btn-more {
            padding: 5px 15px;
            background: white;
            margin-left: 1rem;
        }
        .list-by-category .image-holder {
            height: auto;
            margin-bottom: 0;
            margin-right: 5px;
        }

        .list-by-category .btn-loadmore {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }
        .footer-title {
            margin-bottom: 1rem;
        }
        .footer-item {
            margin-bottom: 2rem;
        }
        .site-footer {
            padding-bottom: 80px;
        }
    }



    @media(min-width :992px) {

        .el-11 .icons-list {
            display: flex;
            flex-direction: row;
            gap: 35px;
            justify-content: center;
        }



        .flickity-slide {
            padding-inline: 5rem;
        }

        .nav-item.dropdown.depth2, .nav-item.dropdown.depth1, .nav-item.dropdown.depth3, .nav-item.dropdown.with-separator, .depth3 .layer1 {
            border-bottom: solid 2px transparent;
            transition: opacity 0.3s ease-in-out, border-color 0.3s ease-in-out;
        }

            .nav-item.dropdown.depth2:hover, .nav-item.dropdown.depth1:hover, .nav-item.dropdown.depth3:hover, .nav-item.dropdown.with-separator:hover, .depth3 .layer1:hover {
                border-color: var(--color-primary);
            }
        .nav-item.dropdown.depth2, .nav-item.dropdown.depth1 {
            position: static;
        }
        .nav-item.dropdown.depth3 .dropdown-menu {
            transform: translateY(-4px);
        }
        .nav-item.dropdown.depth2 .dropdown-menu, .nav-item.dropdown.depth1 .dropdown-menu {
            transform: translateY(3px);
        }
        .nav-item.dropdown.depth2 .dropdown-menu, .nav-item.dropdown.depth1 .dropdown-menu, .nav-item.dropdown.depth3 .dropdown-menu {
            right: 0;
            left: auto;
            width: 100%;
        }

                .nav-item.dropdown.depth2 .dropdown-menu .card-body, .nav-item.dropdown.depth1 .dropdown-menu .card-body {
                    padding: 1.5rem 10rem 2.5rem 10rem;
                }

                    .nav-item.dropdown.depth2 .dropdown-menu .card-body .col, .nav-item.dropdown.depth1 .dropdown-menu .card-body .col {
                        max-width: 270px !important;
                        min-width: 200px;
                    }
    }

    @media (min-width: 1600px) {
        .container {
            max-width: 1560px;
        }
    }

    @media (min-width: 1430px ) {
        .nav-item.dropdown.depth2, .nav-item.dropdown.depth1 {
            position: static;
        }

            .nav-item.dropdown.depth2 .dropdown-menu .card-body .col, .nav-item.dropdown.depth3 .dropdown-menu .card-body .col {
                max-width: 270px !important;
                min-width: 200px;
            }
    }

    @media (min-width: 1200px) {
        .flickity-slide {
            padding-inline: 12rem;
        }

        .fs-auto {
            font-size: clamp(0.8125rem, 0.7768rem + 0.1786vw, 0.9375rem);
        }

        .fs-auto-small {
            font-size: clamp(0.6875rem, 0.6696rem + 0.0893vw, 0.75rem);
        }
    }

    @media (max-width: 1200px) {

        .prd-support {
            width: 100%;
            margin-top: 10px !important;
        }

            .prd-support > .prd-support-text {
                bottom: -50px;
                left: 23%;
                right: auto;
                top: auto;
                clip-path: polygon(50% 0%, 100% 20%, 100% 100%, 50% 100%, 0px 100%, 0px 20%);
                padding-top: 1rem;
            }
    }

    @media (max-width: 1060px) {
        .flickity-slide {
            padding-inline: 5rem;
        }

        .mob {
            display: block !important;
        }

        .tablet {
            display: none;
        }

        .desk {
            display: none;
        }
    }

    @media (min-width: 1061px) and (max-width:1399px) {
        .mob {
            display: none;
        }

        .tablet {
            display: block !important;
        }

        .desk {
            display: none;
        }
    }

    @media (min-width: 1400px) {
        .mob {
            display: none;
        }

        .tablet {
            display: none;
        }

        .desk {
            display: block !important;
        }
    }

    @media (max-width : 1499px) {
        #main-search-resault {
            width: 591px;
        }
    }
    /*--------Mobile------*/
    @media (max-width: 1199px) {
        .el-11-border:nth-child(2n) {
            border: none;
        }

        .row.justify-content-between > div:nth-child(3), .row.justify-content-between > div:nth-child(4) {
            margin-top: 10px; /* Adjust the value to your needs */
        }
    }

@media (max-width: 850px) {
    .swiper-button-prev.mainbanner {
        right: 30px;
        left: auto;
    }

    .swiper-button-next.mainbanner {
        left: auto;
        right: 70px;
    }


}
    @media (max-width: 991px) {
        .flickity-slide {
            padding-inline: 4rem;
        }

        .pay-gw-footer-area {
            padding-bottom: 7rem;
        }

        .footer-about {
            text-align: center;
            
        }

        .footer-social-list {
            justify-content: center;
        }

        .footer-about img {
            margin-right: 10px;
        }

        .heart-div {
            display: none !important;
        }


        .content-hotspot {
            min-width: 400px;
        }

        .add-buttons {
            flex-wrap: wrap;
        }

        .el1-box .hotspot-label {
            visibility: visible !important;
            transition: all 0.3s ease-out;
            opacity: 1;
        }


        .content-hotspot {
            left: 5px !important;
            right: 5px !important;
            position: fixed !important;
        }

        .brand-container {
            display: grid;
            grid-template-rows: auto;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        }


            .brand-container .search-big-div {
                grid-column: 2 / 4; /* Span across all columns in the second row */
                grid-row: 1; /* Place it in the second row */
                width: 95% !important;
                background-color: var(--rgba-primary-9);
                padding: 2px 0px;
            }

                .brand-container .search-big-div div {
                    background-color: white;
                }

            .brand-container ul {
                grid-column: 4/5;
                grid-row: 1;
                justify-self: end;
                margin: 0.3rem 1rem;
                padding: 0;
            }

            .brand-container div {
                margin: 0.3rem 1rem;
            }

        .login-button {
            display: none;
        }

        .tinylogin-button {
            display: block;
        }







        .mob-nav {
            display: grid;
            grid-template-rows: auto; /* 1 row */
            grid-template-columns: repeat(4, 1fr); /* 5 columns, each taking 1 fraction of the available space */


            position: fixed;
            bottom: 0;
            width: 100%;
            text-align: center;
            background-color: white;
            z-index: 100;
            border-top: 1px solid #dfdddd;
        }

            .mob-nav .nav-item svg {
                font-size: 20px;
                margin-bottom: 2px
            }

            .mob-nav [data-cart-items] {
                width: fit-content;
                margin: auto;
            }

            .mob-nav .nav-item {
                display: flex;
                flex-direction: column;
                padding-block: 15px 6px;
                color: #5e5e5e;
            }

                .mob-nav .nav-item span {
                    font-size: 12px;
                    margin: auto;
                }
    }


    @media (max-width: 768px) {
        .el-11-border .title > * {
            line-height: 1.5;
        }

        .flickity-slide {
            padding-inline: 2rem;
        }

        .el-11-border > div {
            margin-inline: 3px !important;
        }

        .specs .ch-103 .option-el {
            font-size: 45px !important;
            margin-bottom: 0.5rem !important;
        }

        .ch-103 .heading-xxs * {
            font-size: 12px !important;
        }

        .ch-103 .text * {
            font-size: 12px !important;
        }

        .el-11-border {
            padding-inline: 0.1rem !important;
            border: none;
        }

            .el-11-border > div {
                margin-inline: 10%;
            }

        .row.justify-content-between > div:nth-child(2) {
            margin-top: 10px; /* Adjust the value to your needs */
        }

        #a_f_mob {
            display: block;
        }

        .sort-dropdown {
            display: none;
        }

        .sort-filter {
            margin-bottom: 0;
        }

        .shop-cat-title {
            display: flex;
            justify-content: space-between
        }

            .shop-cat-title i {
                font-size: 24px;
                display: block;
            }

        .sort-filter {
            display: flex;
            position: sticky;
            top: 57px;
            z-index: 99;
            background-color: white;
            padding: 10px 0;
            justify-content: space-evenly;
        }



            .sort-filter .sort-drop .mob-sort * {
                margin: auto;
            }

            .sort-filter .sort-drop .mob-sort {
                width: 100%;
                height: 100%;
                display: flex;
            }

                .sort-filter .sort-drop .mob-sort button {
                    background-color: transparent;
                    padding: 0;
                    display: inherit;
                    width: 100%;
                }


                    .sort-filter .sort-drop .mob-sort button::after {
                        float: none;
                    }

            .sort-filter .mob-sort {
                flex-grow: 1;
                box-shadow: 0px 0px 3px 1px #205e95;
            }


            .sort-filter .filter-drop button {
                width: 100%;
                display: flex;
                justify-content: space-evenly;
            }

                .sort-filter .filter-drop button * {
                    margin: auto;
                }

            .sort-filter .filter-drop {
                margin: auto 0 auto 1px;
                padding: 10px 0;
                cursor: pointer;
                box-shadow: 0px 0px 3px 1px #205e95;
            }

        .search-big-div {
            display: none;
        }


        .search-small-div {
            display: block;
            width: 100% !important;
            background-color: var(--rgba-primary-9);
            padding: 8px 12px;
            justify-content: center;
            position: sticky;
            top: 0;
            margin: auto;
            z-index: 99;
        }

        .offcanvas-header .search-small-div {
            position: static;
        }



        .search-small-div div {
            background-color: white;
        }

            .search-small-div div svg {
                font-size: 1.2rem;
                vertical-align: middle;
                opacity: 0.7;
            }

        .search-small-div input {
            border: none;
            width: 90%;
            background-color: initial;
            outline: none;
            padding: 10px 19px;
        }

        .specs {
            margin-top: 20px;
        }

        #filterNav {
            display: none;
        }

        .sort-filter .filter-drop {
            display: block;
            flex-grow: 1;
        }

        .sort-drop {
            flex-grow: 1;
        }

        .brand-container {
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            grid-template-rows: auto auto; /* Create a second row */
            margin: 0 auto;
        }


            .brand-container .search-big-div {
                grid-column: 1 / 4; /* Span across all columns in the second row */
                grid-row: 2; /* Place it in the second row */
                width: 95% !important;
                background-color: var(--rgba-primary-9);
                padding: 2px 0px;
            }

                .brand-container .search-big-div div {
                    background-color: white;
                }

            .brand-container ul {
                grid-column: 2/4;
                grid-row: 1;
                justify-self: end;
                margin: 0.3rem 1rem;
                padding: 0;
            }

            .brand-container div {
                margin: 0.3rem 1rem;
            }

        .topnav-container {
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive 2-column layout on mobile */
            grid-template-rows: auto auto; /* Two rows */
            width: 100%;
            padding: 0;
        }

            .topnav-container .top-text {
                grid-column: 1 / -1; /* Span across all columns */
                grid-row: 1; /* Place in the first row */
                justify-self: start; /* Align to the start of the row */
                padding: 10px 0;
                justify-self: center;
            }

            .topnav-container .top-links {
                grid-column: 1 / 3; /* Span across all columns */
                grid-row: 2; /* Place in the second row */
                justify-self: start; /* Align to the start of the column */
                display: inline-block;
                margin: 5px 0;
            }

                .topnav-container .top-links li {
                    margin: 0 5px;
                }

            .topnav-container .top-social {
                grid-column: 3; /* Span across all columns */
                grid-row: 2; /* Place in the second row */
                justify-self: end; /* Align to the end of the row */
                margin-left: 2px;
            }

                .topnav-container .top-social li {
                    margin: 0 5px !important;
                }

        .brand-container ul li {
            margin: auto 10px;
        }



        .search-big-div {
            width: 100%;
            padding: 12px 0;
        }
    }

    @media (max-width: 412px) {
        .flickity-slide {
            padding-inline: 0;
        }

        .sort {
            padding: 6px 14px;
        }

        #gallery-main img {
            pointer-events: none; /* جلوگیری از تعامل با تصاویر */
        }

        .swiper-gallery-hor .slider-wraper {
            display: flex;
            gap: 20px;
            width: 100%;
            overflow-x: scroll;
            scroll-snap-type: x mandatory;
        }


            .swiper-gallery-hor .slider-wraper .slide {
                scroll-snap-align: center;
                box-sizing: border-box;
                padding: 20px 10px;
                flex-shrink: 0;
                width: 100px;
                text-align: center;
            }







        .topnav-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Responsive columns */
            grid-template-rows: auto; /* Three rows */
            width: 100%;
            padding: 0;
        }

            .topnav-container .top-text {
                grid-column: 1; /* Span across all columns */
                grid-row: 1; /* Place in the first row */
                justify-self: start; /* Align to the start of the row */
                padding: 10px 0;
                margin-right: 6px;
            }

            .topnav-container .top-links {
                display: none;
            }



            .topnav-container .top-social {
                grid-column: 2; /* Span across all columns */
                grid-row: 1; /* Place in the second row */
                justify-self: start; /* Align to the end of the row */
                margin-left: 2px;
                padding: 0;
            }

                .topnav-container .top-social li {
                    margin: 0 5px !important;
                }
    }

    @media (max-width: 324px) {
        .flickity-slide {
            padding-inline: 0;
        }

        .add-button-container {
            padding: 1.25rem 0.1rem !important;
        }
    }

    @media (min-width: 768px) {

        .el46-title {
            display: flex;
            align-items: center;
            text-align: center;
            position: relative;
        }

            .el46-title::before,
            .el46-title::after {
                content: "";
                flex-grow: 1;
                height: 2px; /* ضخامت خط */
                background: linear-gradient(90deg, rgba(255,255,255,1) 0%, var(--rgba-primary-6) 47%, rgba(255,255,255,1) 100%); /* گرادینت */
                margin: 0 2rem; /* فاصله از دو طرف عنوان */
                border-radius: 2px; /* گوشه‌های نرم */
            }

        .offset-md-1 {
            margin-right: 8.33333%;
            margin-left: initial;
        }
    }


    @media (min-width: 1200px) {
        .offset-xl-3 {
            margin-right: 25%;
            margin-left: initial;
        }
    }

    /*--------Mobile End------*/
