/* Default magento ===================================================== */
/*
== MEDIA QUERY 1440px and more ==
*/
@media only screen and (min-width: 1440px) {

}
/*
== MEDIA QUERY 1024px and more ==
*/
@media only screen and (min-width: 1025px) {
    /* .page-layout-1column .block.widget .products-grid .product-item,  */
    .page-layout-1column .products-grid .product-items .product-item {
        margin-left: 2%;
        width: calc((100% - 6%)/4);
    }
    /* .page-layout-1column .block.widget .products-grid .product-item:nth-child(3n + 1), */
    .page-layout-1column .products-grid .product-items .product-item:nth-child(3n + 1) {
        margin-left: 2%;    
    }
    /* .page-layout-1column .block.widget .products-grid .product-item:nth-child(4n + 1), */
    .page-layout-1column .products-grid .product-items .product-item:nth-child(4n + 1) {
        margin-left: 0;
    }
    /**/
    .page-layout-2columns-left .products-grid .product-items .product-item {
        margin-left: 2%;
        width: calc((100% - 4%)/3);
    }
    .page-layout-2columns-left .products-grid .product-items .product-item:nth-child(2n + 1) {
        margin-left: 2%;    
    }
    .page-layout-2columns-left .products-grid .product-items .product-item:nth-child(3n + 1) {
        margin-left: 0;
    }
}
/*
==================================
=== MEDIA QUERY 780px and above ===
==================================
*/
@media only screen and (min-width: 779px) {
    .navigation .ves-megamenu{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
    }
    .loading .sw-flexslider {
        min-height: 527px;
    }
    .cat-summary{
        width: calc(27% - 20px);
    }
    .navigation .hidden-md{
        display: none !important;
    }
    .navigation .hidden-sm{
        display: flex !important;
    }
}
@media only screen and (min-width: 768px) and (max-width: 779px){
    .sections.nav-sections {
        width: calc(100% - 54px);
    }
    .navigation li.level0{
        width: 100%;
    }

}
/*
=== MEDIA QUERY 981px - 1024px ===
*/
@media only screen and (min-width: 981px) and (max-width: 1024px) {
    .page-layout-1column .block.widget .products-grid .product-item, 
    .page-layout-1column .products-grid .product-items .product-item {
        margin-left: 2%;
        width: calc((100% - 4% ) / 3);
    }
    .page-layout-1column .block.widget .products-grid .product-item:nth-child(3n + 1),
    .page-layout-1column .products-grid .product-items .product-item:nth-child(3n + 1) {
        margin-left: 0%;    
    }
    /**/
    .page-layout-2columns-left .products-grid .product-items .product-item {
        margin-left: 2%;
        width: calc((100% - 2%)/2);
    }
    .page-layout-2columns-left .products-grid .product-items .product-item:nth-child(2n + 1) {
        margin-left: 0;    
    }
}
/*
=== MEDIA QUERY 780px - 980px ===
*/
@media only screen and (min-width: 780px) and (max-width: 980px) {
    .page-layout-1column .block.widget .products-grid .product-item, 
    .page-layout-1column .products-grid .product-items .product-item {
        margin-left: 2%;
        width: calc((100% - 4% ) / 3);
    }
    .page-layout-1column .block.widget .products-grid .product-item:nth-child(3n + 1),
    .page-layout-1column .products-grid .product-items .product-item:nth-child(3n + 1) {
        margin-left: 0%;    
    }
    /**/
    .page-layout-2columns-left .products-grid .product-items .product-item {
        margin-left: 2%;
        width: calc((100% - 2%)/2);
    }
    .page-layout-2columns-left .products-grid .product-items .product-item:nth-child(2n + 1) {
        margin-left: 0;    
    }
    .catalog-category-view.page-layout-2columns-left .column.main {
        width: 70%;
    }
    .catalog-category-view.page-layout-2columns-left .sidebar-main{
        width: calc(30% - 20px);
        margin-right: 20px;
    }
    .header.content .block-search{
        width: 30%;
    }
}
/*
=== MEDIA QUERY 641px - 779px ==
*/
@media only screen and (min-width: 641px) and (max-width: 779px) {
    
    .page-layout-1column .block.widget .products-grid .product-item, 
    .page-layout-1column .products-grid .product-items .product-item {
        margin-left: 2%;
        width: calc((100% - 4% ) / 3);
    }
    .page-layout-1column .block.widget .products-grid .product-item:nth-child(3n + 1),
    .page-layout-1column .products-grid .product-items .product-item:nth-child(3n + 1) {
        margin-left: 0%;    
    }
    .page-layout-2columns-left .products-grid .product-items .product-item {
        margin-left: 2%;
        width: calc((100% - 4%)/3);
    }
    .page-layout-2columns-left .products-grid .product-items .product-item:nth-child(2n + 1) {
        margin-left: 2%;    
    }
    .page-layout-2columns-left .products-grid .product-items .product-item:nth-child(3n + 1) {
        margin-left: 0;
    }
    .block.upsell .products-grid .action.tocart.primary span,
    .block.related .products-grid .action.tocart.primary span{
        padding-right: 0px;
    }
    .page-with-filter .products-grid .action.tocart span:after,
    .block.upsell .products-grid .action.tocart.primary span:after,
    .block.related .products-grid .action.tocart.primary span:after{
        display: none;
    }
    ol.product-items input.qty{
        width: calc(20% - 5px);
        margin-right: 5px;
    }
}
/*
=== MEDIA QUERY 481px - 640px ==
*/
@media only screen and (min-width: 481px) and (max-width: 640px) {
    .product-item:nth-child(2n + 1){
        margin-left: 0px;
    }
    .page-layout-1column .block.widget .products-grid .product-item, 
    .page-layout-1column .products-grid .product-items .product-item {
        margin-left: 2%;
        width: calc((100% - 2% ) / 2);
    }
    .page-layout-1column .block.widget .products-grid .product-item:nth-child(3n + 1),
    .page-layout-1column .products-grid .product-items .product-item:nth-child(3n + 1) {
        margin-left: 2%;    
    }
    .page-layout-1column .block.widget .products-grid .product-item:nth-child(4n + 1),
    .page-layout-1column .products-grid .product-items .product-item:nth-child(4n + 1) {
        margin-left: initial;
    }
    .page-layout-1column .block.widget .products-grid .product-item:nth-child(2n + 1),
    .page-layout-1column .products-grid .product-items .product-item:nth-child(2n + 1) {
        margin-left: 0%;    
    }
    .page-layout-2columns-left .products-grid .product-items .product-item {
        margin-left: 2%;
        width: calc((100% - 2%)/2);
    }
    .page-layout-2columns-left .products-grid .product-items .product-item:nth-child(2n + 1) {
        margin-left: 0;    
    }
    .block.upsell .products-grid .action.tocart.primary span,
    .block.related .products-grid .action.tocart.primary span{
        padding-right: 0px;
    }
    .block.upsell .products-grid .action.tocart.primary span:after,
    .block.related .products-grid .action.tocart.primary span:after{
        display: none;
    }
}

/* ===================================================================== */
/* Custom queries ====================================================== */
/*
==================================
=== MEDIA QUERY 1440px and below ===
==================================
*/
@media only screen and (max-width: 1440px) {

}

/*
==================================
=== MEDIA QUERY 1024px and below ===
==================================
*/
@media only screen and (max-width: 1024px) {
    .category-full-width, .about-button-container{
        -ms-flex-pack: distribute;
        justify-content: space-around;
    }
    .about-button-container .widget.block{
        margin-right: 0px;
    }
    .header.content .block-search{
        margin: 35px auto 0px 200px;
    }
}

/*
==================================
=== MEDIA QUERY 780px and below ===
==================================
*/
@media only screen and (max-width: 779px) {
    .page-width{padding-left: 15px; padding-right: 15px;}
    /* Header */
    .logo{
        position: relative;
        left: 40px;
        margin-left: 0px;
        margin-right: 30px;
    }
    .nav-toggle{top: 60px;}
    .panel.header .links, 
    .panel.header .switcher{
        display: block;
        padding: 10px;
        margin-bottom: 0px;
        float: right;
    }
    .header.panel > .header.links > li{
        display: inline-block;
        margin-bottom: 0px;
        margin-left: 10px;
    }
    .page-header .header.panel:before, 
    .page-header .header.panel:after {
        content: '';
        display: table;
        clear: both;
    }
    .page-header .panel.header .authorization-link a::before,
    .page-header .panel.header li:first-of-type a:before{color: #a0a0a0;}
    .amquote-cart-wrapper.minicart-wrapper{
        margin-left: 13px;
    }
    .minicart-wrapper .pre-text{
        border: 0;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    /* Responsive menu */
    .navigation .level0 .submenu a.subitems-group{
        position: relative;
    }
    .navigation .level0.active > a:not(.ui-state-active),
    .navigation .level0.has-active > a:not(.ui-state-active){
        border: 0px;
        width: 100%;
    }
    .navigation .level0.active > a:not(.ui-state-active) span:not(.ui-menu-icon), 
    .navigation .level0.has-active > a:not(.ui-state-active) span:not(.ui-menu-icon){
        margin-left: 0px;
    }
    .navigation .level0 .submenu a{font-size: 18px;}
    .catalog-category-view .sidebar.sidebar-main .block.filter,
    .header.content .block-search,
    .block-search .label{
        display: none;
    }
    .products-grid .product-item{
        margin-bottom: 20px;
    }
    .nav-sections-item-title a.nav-sections-item-switch{
        color: #575757;
    }
    .nav-sections-item-title.active a.nav-sections-item-switch,
    .header.links li:first-of-type a:before,
    .header.links .authorization-link a::before,
    .nav-sections .header.links a{
        color: #fff;
    }
    .navigation{
        background-color: transparent;
    }
    .navigation > .block-search input{
        position: initial;
    }
    .block-search .action.search{
        display: block;
    }
    .nav-sections-item-content{
        padding: 25px 20px
    }
    .navigation,
    .ves-menu .navigation .ves-megamenu,
    .block-search .control{
        margin: 0;
        padding: 0;
        border: 0;
    }
    .field.search{
        width: 80%;
        display: inline-block;
    }
    .form.minisearch > .actions{
        width: 20%;
        display: inline-block;
    }
    .block-search .action.search{
        height: 45px;
        margin: 15px 0;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
        width: 100%;
    }
    input#search {
        -webkit-box-sizing: border-box;
                box-sizing: border-box;

        padding-right: 10px;
    }
    .form.minisearch{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .block-search .action.search{
        border-color: #6C2653;
        background-color: #6C2653;
        color: #fff;
    }
    .block-search .action.search:hover{
        border-color: #00A1C7;
        background-color: #00A1C7;
    }
    .level1.nav-dropdown > div{
        display: block;
    }
    /* Slider home */
    .slider-container{margin-bottom: 20px; margin-right: 0px;}
    .sw-flexslider .slides li{
        min-height: 350px;
    }
    .sw-flexslider .slides li img{
        max-width: none;
        max-height: none;
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
                transform: translate(-50%, -50%);
    }
    .flexslider-width, 
    .homepageslider-container, 
    .sw-flexslider-container, 
    .sw-flexslider, 
    .sw-flexslider-viewport .image, 
    .sw-flexslider .slides{height: auto;}
    .sw-flexslider .slides .slider-title .caption{padding: 15px;}
    .sw-flexslider .caption + a{
        height: 40px;
        width: 40px;
        bottom: -20px;
        font-size: 20px;
    }
    .sw-flexslider .slides .slider-title .caption h2,
    .text-banner h2{
        margin: 10px 0;
    }
    .sw-flexslider .caption p {
        font-weight: 200;
        font-size: 16px;
        margin-bottom: 0px;
    }
    .banner-bundle{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-flow: column nowrap;
        flex-flow: column nowrap;
        max-height: none;
    }
    .text-banner{padding: 15px;}
    .banner-container{
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
        width: 100%;
        max-width: none;
        max-height: none;
    }
    .banner-container > div{
        height: 200px;
        width: calc(50% - 5px);
    }
    .text-banner.hay{right: 20%;}
    .about-text-container tr > td{
        width: 100% !important;
        float: left;
        border: 0;
        border-top: 1px solid #d1d1d1;
        border-bottom: 1px solid #d1d1d1;
    }
    .category-full-width, .about-button-container{
        flex-flow: row wrap;
    }
    /* Footer */
    .footer-container-subscribe .footer-spacing{
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
        padding-right: 15px;
        padding-left: 15px;
    }
    footer .copyright .footer-spacing{
        padding-right: 15px;
        padding-left: 15px;
        -ms-flex-flow: wrap;
            flex-flow: wrap;
    }
    .page-footer p:first-child {margin-right: 20px;}
    .page-footer .footer.content{
        padding-top: 0px;
        padding-bottom: 0px;
        margin-bottom: 20px;
    }
    .page-footer .footer.content > .footer_block{width: 100%;}
    .footer.content ul{margin: 20px 0px; font-size: 18px;}
    .page-footer .footer_block > h3{margin-bottom: 10px;}
    .page-footer .footer_block:last-child > h3 {margin-bottom: 0px;}
    .page-footer .footer_block > h3::after {
        content: "+";
        float: right;
    }
    .footer-spacing > .subscribe.text{
        width: 100%;
        margin-bottom: 15px;
    }
    .footer-spacing > .subscribe.form{width: 100%;}
    /* Catalog page */
    .page-products .toolbar .limiter{
        float: none;
        text-align: right;
        margin-bottom: 10px;
    }
    .page-title-wrapper + .columns{top: 0;}
    button.action.primary.open-filter-model{margin-top: 0; margin-bottom: 10px;}
    .pages .items{margin-bottom: 20px;}
    /* Product page */
    .product.data.items .data.item{margin-bottom: 0px;}
    .product.data.items > .item.content{margin-top: -1px;}
    .product.data.items > .item.title > .switch:visited,
    .product.data.items > .item.title > .switch{border-bottom-color:#d1d1d1; }
    .page-layout-1column .product.media{width: 100%; padding-right: 0; margin-bottom: 20px}
    .page-layout-1column .product-info-wrapper{width: 100%; max-width: none;}
    .product.media .fotorama__stage{
        max-height: 300px;
    }
    .product-info-main .box-tocart .field.qty, 
    .product-options-bottom .box-tocart .field.qty{
        width: 15%;
        display: inline-block;
    }
    .product-info-main .box-tocart .actions, 
    .product-options-bottom .box-tocart .actions{
        width: 85%;
        display: inline-block;
    }
    /* Account */
    .block.block-new-customer{margin-bottom: 20px;}
    /* Cart */
    .block-minicart .block-content > .actions > .primary .action.primary.checkout{width: 100%;}
    .block-minicart .block-content > .actions > .primary,
    .block-minicart .subtotal{margin-right: 0px; margin-left: 0px;}
    .cart-container .form-cart .action.clear-quote{margin: 0 auto 10px;}
    .cart-container .form.form-cart .action.update,
    .cart-container .form-cart .action.clear,
    .cart-container .form-cart .action.continue,
    .cart-container .form-cart .action.clear-quote{
        float: none;
        display: inline-block;
        margin-left: 5px;
    }
    .cart-summary._sticky {
        margin-bottom: 20px;
    }
}

/*
==================================
=== MEDIA QUERY 768px and below ==
==================================
*/
@media only screen and (max-width: 768px) {
    .checkout-payment-method .payment-methods,
    .checkout-payment-method .payment-option{
        margin: 0;
    }
    .one-step-checkout-container > div {
        padding: 0;
    }
}
/*
==================================
=== MEDIA QUERY 640px and below ==
==================================
*/
@media only screen and (max-width: 640px) {
    .page-layout-1column .block.widget .products-grid .product-item, 
    .page-layout-1column .products-grid .product-items .product-item {
        margin-bottom: 10px;
    }
    .sw-flexslider .slides .slider-title .caption h2,
    .text-banner h2{
        font-size: 20px;
    }
    .text-banner.hay{right: 15%;}
    .sw-flexslider .slides .slider-title {
        width: 75%;
    }
    ol.product-items input.qty{
        width: calc(20% - 5px);
        margin-right: 5px;
        padding: 0 5px;
    }
    
}

/*
==================================
=== MEDIA QUERY 480px and below ===
==================================
*/
@media only screen and (max-width: 480px) {
    .logo{margin-top: 10px;}
    .minicart-wrapper{margin-bottom: 30px;}
    .banner-container > div{width: 100%;}
    .field.search{width: 70%;}
    .form.minisearch > .actions{width: 30%;}
    .minicart-wrapper .block-minicart{
        min-width: 290px;
    }
    .page-layout-2columns-left .products-grid .product-items .product-item {
        width: 100%;
        margin-left: 0;
    }
    .modal-slide .modal-header,
    .modal-slide .modal-content,
    .modal-slide .modal-footer {
        padding: 0 2.0rem 2.0rem;
    }
    .page-layout-1column .block.widget .products-grid .product-item, 
    .page-layout-1column .products-grid .product-items .product-item{
        width: 100%;
        margin: 0;
    }
    .product-info-main .box-tocart .field.qty, 
    .product-options-bottom .box-tocart .field.qty{
        width: 20%;
        display: inline-block;
    }
    .product-info-main .box-tocart .actions, 
    .product-options-bottom .box-tocart .actions{
        width: 80%;
        display: inline-block;
    }
    .form.create.account{max-height: none;}
    .form.create.account > fieldset.fieldset {
        width: 100%;
    }
    .form-create-account .fieldset.user-defined{
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
    }
    .form-create-account .fieldset.address{
        -webkit-box-ordinal-group: 4;
        -ms-flex-order: 3;
        order: 3;
    }
    .form-create-account .fieldset.create.account{
        -webkit-box-ordinal-group: 5;
        -ms-flex-order: 4;
        order: 4;
    }   
    .form.create.account .actions-toolbar .primary {
        float: left;
    }
    .footer-spacing .text .text-container{
        padding: 0px 0px 0px 10px;
    }
    .page-footer .subscribe h3, 
    .page-footer .subscribe p{padding: 0px;}
    .block.newsletter .action.subscribe {
        padding: 7px 10px;
    }
    .product-options-wrapper .control{max-width: none;}
    form:not(.amasty-quote-update) .cart.table-wrapper .item .col.item{position: static;}
    .cart.table-wrapper .col.item .item-actions{top: 10px; right: 10px;}
    .cart.table-wrapper .item-options, 
    .cart.table-wrapper .product-item-details{max-width: none;}
    form:not(.amasty-quote-update) .cart.table-wrapper .product-item-photo{
        display: block;
    }
    form:not(.amasty-quote-update) .cart.table-wrapper .items > .cart.item .item-info{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-flow: column;
        flex-flow: column;
    }
    .cart.table-wrapper .col.image{
        border-right: 0px; 
        border-bottom: 1px solid #C7C7C7;
    }
}
@media only screen and (max-width: 400px) {
    .amasty-quote-update .price-excluding-tax .price::after{
        display: block;
        margin-top: 5px;
    }
}


@media screen and (max-width: 768px) {

    .mobile-sticky-add-to-cart .box-tocart {
        margin-bottom: 0;
    }

    .mobile-sticky-add-to-cart .fieldset {
        display: grid !important;
        grid-template-areas: "Price Qty Button";
        align-items: center;
        justify-items: end;
    }  

    .mobile-sticky-add-to-cart .content-wrapper {
        display: block !important;
    }
    
    .mobile-sticky-add-to-cart .price-box {
        display: block !important;
        grid-area: Price;
        width: 100%;
    }
    
    .mobile-sticky-add-to-cart .box-tocart .field.qty {
        display: block !important;
        grid-area: Qty;
        margin-right: 0.5rem;
    }

    .mobile-sticky-add-to-cart .box-tocart .actions {
        display: block !important;
        grid-area: Button;
    }

}

/* ===================================================================== */