/*==========  Non-Mobile First Method  ==========*/

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1439px) {
    .container { max-width: 1180px; }

    #instagram .custom > div.insta { padding-left: calc((100% - 1130px)/2); }


}

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1239px) {
    .container { max-width: 1024px; }
    #instagram .custom > div.insta { padding-left: calc((100% - 964px)/2); }

    h2 { margin: 50px auto; }

    header .header_search { width: 340px; }
    header .header_search > form { width: 340px; }

    .productdetails .adv-block .adv { padding-right: 15px; }
    .productdetails .adv-block .adv-icon { margin-right: 15px; }

    .category .cat-img { min-height: auto; }

    .blog .items-row > div { margin: 0 -30px;}
    .blog .items-row .item { padding: 0 30px; }
    .blog .items-row:nth-child(2) .item { padding: 0 30px 0 0; }
    .blog .items-row:nth-child(2) .item-image { padding-right: 30px;}
    .blog .item { padding: 0 30px; height: 400px; }
    .blog .item-image { right: 30px; padding-left: 30px; max-height: 400px; }
    .blog .item-image img { height: 400px; }


}

/* Medium Devices, Desktops */
@media only screen and (max-width : 1023px) {
     .container { padding-left: 30px; padding-right: 30px; }

     #instagram .custom > div.insta { padding-left: 30px; }

     .breadcrumbs-wr { margin-top: 50px; }

     .category-view .category_description { margin-bottom: 50px; }

     .productdetails .vm-product-container { margin: 50px -30px; }

     .productdetails .vm-product-details-container { margin: 50px 0; }

     .productdetails h2 { margin-bottom: 40px; }

}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
     .container {   }

     body { font-size: 16px; }

     header { padding-bottom: 111px; }

     .topheader .container { position: relative; }
     .topheader .burger { display: block; position: absolute; right: 30px; }

     header .bottomheader { margin-top: 0px; display: flex; flex-direction: column-reverse; justify-content: space-between; }
     header .bottomheader .top_contacts { height: 30px; margin-top: 50px; }
     header .bottomheader .top_contacts a { font-size: 15px; }
     header .bottomheader > .container { flex-direction: column; }

     #lng_swch .open { bottom: -20px; }
     #lng_swch .dropdown-menu li > a { font-size: 16px; }


     .bottomheader { position: fixed; top: 0; width: 243px; right: -243px; overflow: hidden; z-index: 10000; background: #F3F1ED; padding: 30px; bottom: 0; margin: auto; overflow-y: auto; }
     .bottomheader .container { padding: 0; }

     header .bottomheader .header_currency:hover #currencies_dropdown > div { right: -50px; margin-top: -158px; width: 218px; font-size: 15px; }

     .header-menu { position:  relative; }
     .header-menu h2 { margin: 0; padding: 0; justify-content:  flex-start; font-size: 26px; line-height: 30px; }
     .header-menu h2::before { display: none; }
     .mobile-menu { display: block; }

     #login-form { min-width: 305px; text-align: center; }
     #login-form .icon-user { margin-right: 0; }

     .adap_catalog_cart #usermenu_dropdown { top: -130px; right: 60px; }

     .main_nav { margin-top: 14px; line-height: 21px; }
     .main_nav ul.catmenu { flex-direction: column; font-size: 14px; }
     .main_nav ul.catmenu > li { margin-right: 0; margin-bottom: 10px; }
     .main_nav ul.catmenu li.category, .main_nav ul.catmenu div.category { padding: 0; }
     .main_nav ul.catmenu div.category { width: 100%; }
     .main_nav li.category > div.category-title + div.category { display: block; padding-left: 14px; background: none; position: inherit; background: none; border: none; }
     .main_nav li.category > div.category-title + div.category > ul { margin-left: 10px; margin-top: 10px; }
     .main_nav li.category > div.category-title + div.category > ul li { font-size: 14px; line-height: 21px; position: relative; }
     .main_nav li.category > div.category-title + div.category > ul li::before { content:"\2022"; font-size: 15px;  left: -15px; line-height: 21px; position: absolute; top: 0; }


     .main_nav li.category:hover > div.category-title + div.category { margin-top: 0; background: none; position: unset; padding-left: 0; width: 214px; }
     .main_nav li.category:hover > div.category > ul { background: none; border: none; margin-top: 0; padding: 0; padding-left: 14px; }
     .main_nav li.category:hover > div.category-title + div.category > ul { margin-left: 10px; margin-top: 10px; }
     .main_nav li.category:hover > div.category-title + div.category > ul li { font-size: 14px; line-height: 21px; position: relative; }
      .main_nav li.category:hover > div.category-title + div.category > ul li::before { content:"\2022"; font-size: 15px;  left: -15px; line-height: 21px; position: absolute; top: 0; }

     header .bottomheader .adap_catalog_cart { width: auto; justify-content: center; margin-top: 20px; margin-left: 36px; }
     header .bottomheader a i:first-child { margin-right: 0px; }
     header .bottomheader .adap_catalog_cart div { margin 0; margin-right: 20px; }
     header .bottomheader i.icon-globe { position: absolute; bottom: -44px; left: 30px; }


     .collection { margin: 60px 0; }

    .about-foundation > div { margin-top: 60px; flex-direction: column; }
    .about-foundation > div img { width: 100%; padding-right: 0; }
    .about-foundation > div > div { width: 100%; padding-left: 0; margin-top: 40px; }

    .video-about { padding: 60px 0; flex-direction: column;}
    .video-about .text { width: 100%; padding-right: 0; }
    .video-about .video { width: 100%; padding-left: 0; margin-top: 30px; }

    .newsflash-wr {  margin: 40px -20px; }

    .about-foundation .lightbutton { margin: 0 auto; margin-top: 40px; }

    .video-about .text > p { margin-bottom: 0; }

    .newsflash-lastblog .lastblog-item-wr .newsflash-image { height: 200px; }
    .newsflash-lastblog .lastblog-item { width: 33.333333%; padding: 10px; }
    .newsflash-lastblog .lastblog-text { padding: 20px; }

    .productdetails .vm-product-topwrapper { display: flex; flex-direction: column; position: relative; }
    .productdetails h1 { position: absolute; top: 0; }
    .productdetails .vm-product-topwrapper > div { width: 100%; }
    .productdetails .vm-product-topwrapper > .vm-product-media-container { margin-top: 110px; }
    .productdetails .vm-product-topwrapper .product-description-wr { margin-top: 30px; }

    .productdetails .vm-product-details-container { flex-direction: column;}
    .productdetails .vm-product-details-container > div { width: 100%;}

    .productdetails .vm-product-details-prices-params .product-fields > div { width: 100%; }

    .productdetails .addtocart-bar { flex-direction: column; margin: 50px; align-items: center; }
    .productdetails .addtocart-bar > span { margin: 30px 15px 0 15px; }
    .productdetails .quantity-controls { justify-content: center; width: 100%; margin-bottom: 10px; }

    .productdetails .vm-product-prices  { flex-direction: column; width: 100%; align-items: center; }
    .productdetails .vm-product-prices > span { margin-right: 0; margin-bottom: 10px; }

    .productdetails .adv-block { flex-direction: column; }
    .productdetails .adv-block a { padding-right: 0; padding-left: 0px; width: 100%; margin-top: 30px;}
    .productdetails .adv-block a:first-child { margin-top: 0px; }

    #related { margin: 50px -13px; flex-wrap: wrap; }

    .prod { padding: 13px; width: 50%; }
    .prod .prod_name .prod_name_wr { min-height: 55px; }

    .category { padding: 13px; width: 50%; }

    .view-category h1 { margin-top: 20px; }

    .articleBody h1 { text-align: center; }

    .view-article .item-page .item-image { float: none; margin: 40px auto; width: 100%; max-height: 500px; }
    .view-article .item-page .item-image img { width: 100%; object-fit: cover; max-height: 500px; }

    .blog > h2 { margin: 60px 0; }
    .blog .page-header h2 > a { text-align: center; }
    .blog .item { width: 100%; height: auto; justify-content: center; }
    .blog .items-row { margin-bottom: 60px; }
    .blog .items-row .item { padding: 0; }
    .blog .items-row:nth-child(2) .item { margin-left: 0; padding: 0; }
    .blog .items-row > div { margin: 0; }
    .blog .page-header { height: auto; padding-top: 430px; width: 100%; margin-bottom: 10px; }
    .blog .page-header h2 { justify-content: center; }
    .blog .article-info { width: 100%; text-align: center; }
    .blog .item-image { right: 0; width: 100%; left: 0; padding-left: 0; top: 0; }
    .blog .items-row:nth-child(2) .item-image { padding-right: 0; }
    .blog .item .readmore { width: 100%; }
    .blog .item .readmore > a { margin: 0 auto; }
    .blog .ya-share2 { margin-top: 15px; }

    .view-user h1 { margin: 60px 0; }
    #userForm .user-details { width: 100%; }

    .orders-list-view h1 { margin: 60px 0; }

    .vm-orders-information .order-details-wr { display: flex; flex-direction: column; }
    .vm-orders-information .order-details-info { width: 100%; margin-right: 0px;  }
    .vm-orders-information .order-details-contacts { width: 100%; margin-left: 0px; margin-top: 30px; }


    #instagram .custom { flex-direction: column; }
    #instagram .custom > div.insta { width: 100%; padding: 60px 30px; }
    #instagram .custom > div.insta + div { width: 100%; }
    #instagram .brown-btn { margin: 0 auto; }

    footer .footer-top .footer-menu { flex-direction: column; }
    footer .footer-top .footer-menu > div { margin-top: 50px; }
    footer .footer-top .footer-menu > div:first-child { margin-top: 0; }

    footer .footer-top .footer-menu .contact_info { max-width: 100%; }
    footer .footer-top .footer-menu .contact_info p { text-align: left; }

}

/* Small Devices, Tablets */
@media only screen and (max-width : 767px) {
    .container {  }

    body { font-size: 14px; line-height: 21px; }
    h1 { font-size: 26px; line-height: 30px; }
    h2 { font-size: 26px; line-height: 30px; padding: 0; }
    h3 { font-size: 9px; line-height: 11px; text-align: center; }

    input[type="text"]::placeholder { font-size: 13px; color: #000; }

    div .fancybox-content { min-width: auto; }

    header .bottomheader i.icon-globe { bottom: -40px; left: 36px; }

    #lng_swch .dropdown-menu li > a { font-size: 14px; }

    .adap_catalog_cart #usermenu_dropdown { top: -130px; }

    #WedalJoomlaSlider122 .slider .slide-container .slide-title { font-size: 26px; line-height: 30px; }
    #WedalJoomlaSlider122 .slider .slide-container .slide-desc { font-size: 14px; line-height: 21px; }

    .slick-dotted.slick-slider { margin-bottom: 0px; }

    .collection { flex-direction: column-reverse; }
    .collection:nth-child(2n) { flex-direction: column-reverse; }
    .collection .collection-desc {  width: 100%; padding-top: 40px; }
    .collection .collection-desc .collection-desc-text { margin-top: 30px; }
    .collection .collection-images-wr {  width: 100%;  }
    .collection .lightbutton { margin: 0 auto; }

    .newsflash-lastblog .lastblog-item { width: 100%; padding: 10px 25px; }

    .productdetails .add-image { margin-right: 16px; }
    .productdetails .product-price { font-size: 26px; }
    .productdetails .vm-product-details-container .vm-product-topparams .product-fields { padding: 20px; }
    .productdetails .vm-product-details-prices-params .product-fields > div {  margin-top: 30px;}
    .productdetails .vm-product-details-prices-params .product-fields > div:first-child {  margin-top: 0px;}
    .productdetails .chzn-container .chzn-results { width: 105% !important; }
    .productdetails .vm-product-details-container .product-fields { flex-direction: column; }
    .productdetails h2 { text-align: left; padding-left: 0; }
    h2::after { width: 20px; }
    .productdetails .advantades { margin: 0 30px;}
    .productdetails .adv-block { padding: 0px; }
    .productdetails .adv-block .adv { padding-left: 0px; }
    .productdetails .addtocart-bar { margin: 50px 0; }



    .prod .product_image { height: auto; }
    .prod .product_image img { height: auto; }

    .prod { padding: 13px; width: 100%; }
    .category { padding: 13px; width: 100%; }

    .blog .items-row { margin-bottom: 40px; }
    .blog .page-header { padding-top: 330px; }
    .blog .item-image img { height: 300px; }

    #editcell table { display: block;}
    #editcell table thead { display: none; }
    #editcell table tbody { display: block; }
    #editcell table tbody tr { display: block; border: 1px solid #000; padding: 25px; margin: 15px 0; }
    #editcell table tbody td { display: flex; }
    #editcell table tbody td::before {content: attr(data-title); width: 45%; }

    .fancybox-stage .vm-padded .vm-padded-wr { flex-direction: column; }
    .vm-padded .vm-padded-wr > a { width: 220px; }
    .vm-padded .vm-padded-wr > a.showcart { margin-top: 20px;}

    .vm-orders-information h3 { text-align: left; }
    .order-details-table .table-row:last-child { margin-bottom: 40px; }
    .vm-orders-information .order-details-info, .vm-orders-information .order-details-contacts, .order-details-table .table-products, .order-details-table .table-total { padding: 30px; }
    .order-details-table .prod-info-wr .prod-image { margin-right: 30px; }
    .order-details-table .table-total .table-row .table-col:first-child { width: 50%; }

    #member-registration .control-group, .form-validate .control-group { width: 100%; }


    .footer-menu .moduletable ul { text-align: center; }
    .footer-menu .moduletable:first-child ul { text-align: left; }

}

@media only screen and (max-width : 479px) {
    .container { padding-right: 20px; padding-left: 20px; }

    header .topheader .header-logo { max-width: 175px; }

    header .header_search { width: 270px; }
    header .header_search > form { width: 270px; }

    .collections { margin: 0 -20px; }
    .collection .collection-desc { padding: 0px 20px;}
    .collection .collection-images-wr { padding: 0px 20px; }
    .collection .collection-desc { padding: 40px 20px 0 20px; }

    .articleBody .custom h3 { margin-bottom: 30px; }
    .video-about { padding: 40px 0; }

    .newsflash-lastblog + .lightbutton { margin-bottom: 50px; }

    #instagram .custom > div.insta { width: 100%; padding: 60px 20px; }

    .productdetails .vm-product-container { margin: 50px -20px; }
    .productdetails .vm-product-topwrapper > div { padding: 0px 20px; }
    .productdetails .chzn-container .chzn-results { width: 100% !important; margin-left: 0; }

    .blog > h2 { margin: 50px 0; }
    .blog .item-image img { height: 250px; }
    .blog .page-header { padding-top: 280px; }

    #userForm .user-details { padding: 30px; }

    .orders-list-view h1 { margin: 50px 0; }

    #editcell table tbody td { flex-direction: column; margin-bottom: 10px; }
    #editcell table tbody td:last-child { margin-bottom: 0px; }
    #editcell table tbody td::before { width: 100%; font-weight: bold; }
    .orders-list-view .adminlist tbody > tr { line-height: 30px; }

    .vm-orders-information .order-details-row { display: flex; flex-direction: column; margin-bottom: 10px; }
    .vm-orders-information .order-details-label { width: 100%; font-weight: bold; }
    .vm-orders-information .order-details-value { width: 100%; }

    .order-details-table .table-row { flex-direction: column; }
    .order-details-table .prod-info-wr .prod-image { width: 100%; margin-right: 0; margin-bottom: 20px; height: auto; }

    .order-details-table .table-total .table-row .table-col:first-child { width: 100%; }

    .registration.fancybox-content { max-width: 305px; }

    footer { padding-top: 50px; padding-bottom: 50px; }
    footer .moduletable .nav li:last-child { margin-bottom: 0px; }

}


/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {
    .blog .item-image img { height: 200px; }
    .blog .page-header { padding-top: 230px; }
}

/*IE 10+ only */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  body {overflow-x: hidden;}
}
