﻿
.nav-item.dropdown.depth2 .dropdown-menu, .nav-item.dropdown.depth1 .dropdown-menu {
    right: 0;
    left: auto;
    transform: none;
    width: 100%;
}
@media(min-width :992px) {
    .flickity-slide {
        padding-inline: 5rem;
    }
    .nav-item.dropdown.depth2  , .nav-item.dropdown.depth1 {
        position: static;
    }

        .nav-item.dropdown.depth2 .dropdown-menu , .nav-item.dropdown.depth1 .dropdown-menu {
            right: 0;
            left: auto;
            transform: none;
            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: 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: 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: 991px) {
        .flickity-slide {
            padding-inline: 4rem;
        }
        .pay-gw-footer-area {
            padding-bottom: 7rem;
        }
        .footer-about {
            display: flex;
        }

        .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: 2px solid var(--color-primary);
        }

            .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: 15px 0;
                border: 0.5px outset var(--color-primary);
            }

                .mob-nav .nav-item span {
                    font-size: clamp(12px, 3vw, 15px);
                    margin: auto;
                }
    }


    @media (max-width: 768px) {
        .flickity-slide {
            padding-inline: 2rem;
        }
        .el-11-border > div {
            margin-inline: 3px !important;
        }

        .specs .ch-103 .option-el {
            font-size: 37px !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------*/
