
@media screen and (max-width: 1200px) {
   .selling-item a h3 {
    font-size: 15px;
  }
   .selling-item a p {
    font-size: 14px;
    margin-right: 5px;
  }
   .selling-item a p.price-item {
    font-size: 14px;
  }
  .footer .footer-social ul {
    width: 45%;
  }

  #cosmatic h2 {
    left: 20%;
    font-size: 30px;
  }


}





@media (min-width: 992px) and (max-width: 1065px) {

    .container,
    header,
    .navbar,
    .menu > ul {
        overflow: visible !important;
        position: static !important;
    }


        header .navbar .menu ul li ul.mega-menu {
            top: 130px !important;
            right: 50px;
            transform: translateY(150%);
            width: 90% !important;
        }

    .down-menu {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

        .down-menu .down-nav {
            gap: 25px;
        }


}





/* 992 */
@media screen and (max-width: 992px) {
/*@media screen and (max-width: 1065px) {*/

    header .navbar .menu > ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        display: none;
        background-color: #023131;
        overflow-y: auto;
        padding: 0;
        overflow-x: hidden;
    }

        header .navbar .menu > ul.show-navbar {
            display: block;
        }

        header .navbar .menu > ul.hide-navbar {
            display: none;
        }



    #main {
        display: flex;
        flex-direction: column;
    }

    .hamburger {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .hamburger div {
            width: 90%;
            height: 3px;
            border-radius: 5px;
            background: #fff;
            position: relative;
        }

        .hamburger:hover {
            color: #c00;
        }

        .hamburger div::after {
            content: "";
            position: absolute;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 5px;
            background: #fff;
            transform: translateY(-10px);
        }

        .hamburger div::before {
            content: "";
            position: absolute;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 5px;
            background: #fff;
            transform: translateY(10px);
        }

    header .navbar .menu > ul > li {
        margin: 30px 0;
    }

        header .navbar .menu > ul > li > a {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

    header .navbar .menu > ul > .close-icon {
        text-align: center;
        padding: 20px;
        border-bottom: 1px solid #D0F0C0;
        cursor: pointer;
        display: block;
    }

        header .navbar .menu > ul > .close-icon:hover {
            background-color: #C3E1B4;
            color: #023131;
        }

        header .navbar .menu > ul > .close-icon svg {
            font-size: 25px;
            color: #fff;
            cursor: pointer;
        }

    header .navbar .menu > ul > li > a > svg {
        width: auto;
        font-size: 25px;
        margin-top: 0;
        position: absolute;
        left: 60px;
    }

    header .navbar .menu ul li ul.mega-menu {
        top: 10px;
        display: none;
        position: relative;
        transform: translateY(0);
    }

    header .navbar .menu > ul > li:hover ul.mega-menu {
        /* opacity: 0;
    visibility: hidden;
    transform: translateY(0); */
    }

    header .navbar .menu ul li ul.mega-menu.fade {
        opacity: 1;
        visibility: visible;
        display: block;
    }

    header .navbar .menu ul li ul.mega-menu li {
        width: 100%;
    }

    header .navbar .social ul {
        width: 40%;
    }

    #main {
        flex-wrap: wrap;
    }

        #main #content {
            width: 100%;
        }

        #main #sidebar {
            width: 100%;
            margin-top: 30px;
        }

    .best-sell-men .selling-men-product .selling-item a p {
        font-size: 15px;
    }

        .best-sell-men .selling-men-product .selling-item a p.price-item {
            font-size: 15px;
        }

    .best-sell-men .selling-men-product .selling-item a h3 {
        font-size: 16px;
    }

    .footer .footer-about {
        width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }

    .footer .footer-social {
        width: 40%;
    }

        .footer .footer-social ul {
            width: 65%;
        }

    .footer .footer-news {
        width: 45%;
    }

    .footer .footer-customer-services {
        width: 20%;
    }

    .footer .footer-quick-access {
        width: 20%;
    }

    .footer .footer-license {
        width: 40%;
    }

    .footer .footer-logo {
        width: 100%;
        /* display: none; */
    }
    /* .footer .footer-logo img {
    width: 120px;
    padding: 130px 10px;
  } */

    #cosmatic h2 {
        left: 20%;
        font-size: 30px;
    }

    #cosmatic .sidebar-cosmatic {
        height: 220px;
    }



    .related-products .col-lg-4,
    .related-products .col-md-4 {
        width: 45%;
        margin: 10px 2.5%;
    }


    .down-menu .down-nav {
        gap: 15px;
        justify-content: center;
        padding: 0 10px;
    }

    .down-menu .nav-link {
        font-size: 14px;
        padding: 10px 8px;
    }

        .down-menu .nav-link img {
            width: 150px;
            height: 150px;
        }

    .down-menu h4 {
        font-size: 18px;
    }


    .down-menu-child .child-nav {
        gap: 10px;
        justify-content: center;
        /* padding: 0 10px; */
    }

    .down-menu-child .nav-link {
        font-size: 14px;
        padding: 10px 8px;
    }

        .down-menu-child .nav-link img {
            width: 120px;
            height: 120px;
        }

    .down-menu-child h4 {
        font-size: 14px;
    }

    .tab-pane .tab-item {
        flex: 1 1 calc(33.333% - 15px);
        max-width: calc(33.333% - 15px);
    }
}

/* 768 */
@media screen and (max-width: 768px) {


    .container {
        width: 100vw;
        margin: auto;
        max-width: 100%;
        padding-left: 5px;
        padding-right: 5px;
    }



  header .navbar .social button {
    display: none;
  }
  header .navbar .social ul {
    width: 60%;
  }
  .ads .logo img {
    width: 90px;
  }
  .ads .logo {
    width: 30%;
  }
  .ads .banner {
    width: 70%;
  }
  .slide-item .item .caption {
    width: 80vw;
  }
  .slide-item .item .caption h1 {
    font-size: 30px;
  }
  .slide-item .item .caption p {
    font-size: 17px;
  }

  .footer .footer-news {
    width: 60%;
  }
  .footer .footer-social {
    width: 40%;
  }

  .footer .footer-customer-services {
    width: 60%;
  }
  .footer .footer-quick-access {
    width: 40%;
  }
  .footer .footer-license {
    width: 100%;
    margin-top: 60px;
  }
  .footer .footer-logo {
    width: 100%;
    /* display: flex; */
  }
  .footer .footer-logo img {
    /* padding: 160px 0; */
  }

  .best-sell-men .selling-men-product .selling-item .price {
    display: flex;
    flex-wrap: wrap;
  }

  #cosmatic h2 {
    font-size: 20px;
    left: 20%;
  }
  #cosmatic {
    height: 150px;
  }
  #cosmatic img {
    height: 150px;
  }
  #cosmatic .sidebar-cosmatic {
    /* height: 220px; */
    margin-top: 70px;
  }


  /* DETAIL==>MAIN */


  .related-products .col-lg-4,
  .related-products .col-md-4 {
    width: 100%;
    margin: 10px 0;
  }



  /* DETAIL==>DOWN_MENU */
  
  .down-menu {
    margin-top: 15px;
  }

  .down-nav {
    gap: 20px;
    padding: 0 10px;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .down-nav::-webkit-scrollbar {
    display: none;
  }

  .down-nav .nav-link {
    font-size: 15px;
    padding: 10px 0;
  }

  .tab-content {
    padding: 20px 0;
    font-size: 14px;
  }

  .specs-table td {
    padding: 8px 10px;
  }

  .specs-table td:first-child {
    font-size: 13px;
  }


  .didgah-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .didgah-badge {
    margin-right: 0;
    margin-top: 5px;
  }

  .didgah-date {
    align-self: flex-end;
    width: 100%;
    text-align: right;
    margin-top: 5px;
  }

  .add-didgah textarea {
    font-size: 14px;
  }



.down-menu,
.down-menu-child {
  width: 100%;
  position: static;
  top: 0; 
  z-index: 900;
  overflow: hidden;
}


 .down-menu .down-nav,
  .down-menu-child .child-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .down-menu .nav-link,
  .down-menu-child .nav-link {
    min-width: 100px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .down-menu .nav-link img{
    width: 280px;
    height: 280px;
  }
  .down-menu-child .nav-link img {
    width: 230px;
    height: 230px;
  }

  .down-menu h4,
  .down-menu-child h4 {
    font-size: 18px;
    margin: 0;
  }

  

    .tab-pane .mobile-item {
        display: none !important;
        width: 33.33%;
        float: right;
        padding: 8px;
        box-sizing: border-box;
    }

        /* --- ????? 9 ???? ??? (3 ???? × 3 ????) --- */
        .tab-pane .mobile-item:nth-child(-n+9) {
            display: block !important;
            width: 33.33% !important;
            float: right;
            padding: 8px;
            box-sizing: border-box;
            min-height: 180px;
        }

            .tab-pane .mobile-item:nth-child(-n+9) a {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                height: 100%;
                width: 100%;
                text-align: center;
            }

            .tab-pane .mobile-item:nth-child(-n+9) img {
                width: 80% !important;
                height: 110px !important;
                object-fit: cover;
                border-radius: 8px;
                margin: 0 auto 8px auto;
                display: block;
            }

            .tab-pane .mobile-item:nth-child(-n+9) h5 {
                font-size: 12px !important;
                margin: 0 !important;
                padding: 0 4px;
                line-height: 1.4;
                text-align: center;
                word-break: break-word;
                width: 100%;
            }

    /* --- ??? ???? float ??? ?? ??????? --- */
    .tab-pane .items::after {
        content: "";
        display: table;
        clear: both;
    }

    /* --- ?????? ???? ?????? ??? --- */
    .view-all-link {
        display: inline-block !important;
        margin: 20px auto 0 auto !important;
        padding: 8px 20px !important;
        font-size: 14px !important;
        clear: both;
        float: none;
        width: fit-content;
        background: #c00;
        color: white !important;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .view-all-link:hover {
            background: #a00;
            transform: translateY(-2px);
        }
    
  


        /*category-Index2*/
/*    .cat-content img {
        height: 120px;
        width: 120px;
        margin: 0 auto;
    }

    .category .cat-name {
        font-size: 16px;
    }*/



    .product .mobile-item {
        display: none !important;
        width: 33.33% !important;
        float: right;
        padding: 8px !important;
        box-sizing: border-box;
    }


        .product .mobile-item:nth-child(-n+9) {
            display: block !important;
        }

        /* ?????? ???? ??????? — ???? ????? ?? ???? */
        .product .mobile-item .product-item {
            width: 100%;
            margin: 0 auto;
        }

    /* ???? ?????? ??? */
    .product .view-all-link {
        display: inline-block !important;
        margin: 20px auto 0 auto !important;
        padding: 8px 20px !important;
        font-size: 14px !important;
        clear: both;
        float: none;
        width: fit-content;
        background: #c00;
        color: white !important;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .product .view-all-link:hover {
            background: #a00;
            transform: translateY(-2px);
        }

    /* ??? ???? float ??? ?? ??????? */
    .product .row::after {
        content: "";
        display: table;
        clear: both;
    }

    .product .product-item {
        min-height: 320px; /* ?????? ???? — ???? ?????? */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product .product-content-title h3 {
        font-size: 14px !important;
        padding: 5px 0 !important;
    }

    .product .product-content-price {
        font-size: 13px !important;
    }

        .product .product-content-price .old {
            font-size: 12px !important;
            margin-left: 20px !important;
        }

        .product .product-content-price .price {
            font-size: 14px !important;
        }




}

/* 576 */
@media screen and (max-width: 576px) {
  .header-title h2 {
    font-size: 18px;
  }

  #main #content .content-container .dress {
    flex-wrap: wrap;
  }
  #main #content .content-container .dress .dress-item {
    width: 49%;
    margin-top: 10px;
  }
  .best-sell-men .selling-men-product {
    flex-wrap: wrap;
  }
  .best-sell-men .selling-men-product .selling-item {
    width: 100%;
    margin: 10px 0;
  }

  .best-sell-men .selling-men-product .selling-item a p {
    font-size: 16px;
  }
  .best-sell-men .selling-men-product .selling-item a p.price-item {
    font-size: 16px;
  }
  .best-sell-men .selling-men-product .selling-item a h3 {
    font-size: 20px;
  }

  header .navbar .social ul {
    width: 80%;
  }

  #cosmatic h2 {
    font-size: 18px;
    left: 10%;
  }
  #cosmatic .sidebar-cosmatic {
    height: 200px;
  }

  .footer .footer-news {
    width: 100%;
    margin-top: 30px;
  }
  .footer .footer-social {
    width: 100%;
  }

  .down-menu .down-nav,
  .down-menu-child .child-nav {
    gap: 8px;
  }

  .down-menu .nav-link,
  .down-menu-child .nav-link {
    min-width: 80px;
    padding: 6px 8px;
  }

  .down-menu img,
  .down-menu-child img {
    width: 40px;
    height: 40px;
  }

  .down-menu h4,
  .down-menu-child h4 {
    font-size: 20px;
  }


    .product-image {
        height: 350px;
    }



    .details h1 {
        font-size: 20px;
    }

    .details h2 {
        font-size: 18px;
    }

    .description {
        font-size: 14px;
    }

    .product {
        flex-direction: column;
    }

    .product-gallery {
        order: 1;
    }

    .details {
        order: 2;
        width: 100%;
    }

  
  
}

/* 400 */
@media screen and (max-width: 400px) {
  header .navbar .menu {
    width: 40%;
  }
  header .navbar .social {
    width: 60%;
  }
  header .navbar .social ul {
    width: 100%;
  }

  .slide-item .item .caption {
    width: 80vw;
    top: 0;
  }
  .slide-item .item .caption h1 {
    font-size: 25px;
  }
  .slide-item .item .caption p {
    font-size: 15px;
  }

  #main #content .content-container .dress .dress-item {
    width: 100%;
    margin-top: 20px;
  }
  .best-sell-men .selling-men-product .selling-item {
    width: 100%;
    margin-top: 20px;
  }

  #cosmatic {
    height: 150px;
  }
  #cosmatic img {
    height: 150px;
  }
  #cosmatic h2 {
    font-size: 15px;
    left: 5%;
  }
  #cosmatic .sidebar-cosmatic {
    height: 150px;
  }

  .header-title h2 {
    width: 200px;
    font-size: 16px;
  }
  .header-title a {
    font-size: 14px;
  }
  #sidebar .sidebar-container .side-products .last-product-item {
    width: 49%;
    margin-top: 10px;
  }

  .footer .footer-news {
    width: 100%;
    margin-top: 30px;
  }
  .footer .footer-social {
    width: 100%;
  }

  .footer .footer-customer-services {
    width: 50%;
  }
  .footer .footer-quick-access {
    width: 50%;
  }

  .search {
    right: 5%;
  }
}




