@media (max-width: 992px) {
    .body-bg,
    .container {
        width:100%;
    }

    #sitemodal .modal-dialog {
        max-width: 100%;
    }

    #sitemodal .modal-content {
        width: 100%;
    }

    #header .header-right .block-cart {
        float: right;
    }

    #header .header-right .block-cart .btn-toggle-cart {
        width: 130px;
    }

    #header .header-right .block-cart .box-dropdown-menu {
        right: 40px;
    }

    #header .header-right .hotline {
        margin-top: 10px;
        font-size: 28px;
    }

    #header .header-right .btn-toggle-search {
        color: #ffffff;
        float: right;
        font-size: 22px;
        border-radius: 50%;
        margin-left: 20px;
        width: 44px;
        height: 44px;
        line-height: 40px;
        text-align: center;
        background: #1d1d94;
        border: 1px solid #13138c;
        display: block;
    }

    #header .header-right .btn-toggle-search.active:after {
        content: '';
        display: block;
        position: absolute;
        bottom: -14px;
        right: 16px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 10px;
        border-color: transparent transparent #000 transparent;
    }

    #header .header-right .search-bar {
        margin-top: 0;
        padding: 5px;
        background: #000;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        z-index: 1;
        display: none;
    }

    #header .header-right .search-bar.active {
        display: block;
    }

    #header .header-right .search-bar .input-group {
        display: block;
        width: 100%;
    }

    #header .header-right .search-bar input {
        width: 100%;
        display: block;
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
        padding-right: 30px;
        outline: none;
        box-shadow: none;
        border-color: #ddd;
    }

    #header .header-right .search-bar button {
        background: transparent;
        border: none;
        box-shadow: none;
        outline-style: none;
        position: absolute;
        top: 0;
        right: 0;
        line-height: 32px;
        padding: 0 5px;
        color: #333;
        z-index: 10;
    }
}

@media (max-width:767px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 5px 0;
        border-bottom: 1px solid #bdbdbc;
        box-shadow: 0 1px 5px #bdbdbc;
        z-index: 998;
    }

    #header {
        padding: 0;
    }

    #header .btn-toggle-menu {
        display: inline-block;
        padding: 10px;
        color: #141494;
        border: 1px solid #141494;
        border-radius: 5px;
        line-height: 20px;
        margin-top: 10px;
    }

    #header .btn-toggle-menu .icon-bar {
        display: block;
        width: 26px;
        height: 3px;
        border-radius: 2px;
        background: #141494;
    }

    #header .btn-toggle-menu .icon-bar + .icon-bar {
        margin-top: 4px;
    }

    #header .logo {
        padding: 0;
        text-align: center;
    }

    #header .logo img {
        max-width: 100%;
        max-height: 60px;
        object-fit: contain;
    }

    #header .header-right .block-cart {
        margin-top: 12px;
    }

    #header .header-right .block-cart .btn-toggle-cart {
        width: auto;
    }

    #header .header-right .block-cart .btn-toggle-cart > em {
        font-size: 40px;
    }

    #header .header-right .block-cart .btn-toggle-cart .d1,
    #header .header-right .block-cart .btn-toggle-cart .d2 {
        display: none;
    }

    #header .header-right .block-cart .btn-toggle-cart .num {
        display: block;
    }

    #header .header-right .block-cart .box-dropdown-menu {
        right: 0;
    }

    #header .header-right .btn-toggle-search {
        background: transparent;
        border: none;
        color: #141494;
        font-size: 30px;
        margin-top: 14px;
        margin-left: 10px;
        width: auto;
        height: auto;
        padding: 0 5px;
        line-height: 1;
    }

    .bg-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, .5);
        z-index: 999;
        display: none;
    }

    #menusite {
        position: fixed;
        top: 0;
        left: -60%;
        width: 60%;
        height: 100%;
        overflow: auto;
        background: #fff;
        z-index: 1000;
        transition: all ease-in-out .5s;
        -webkit-transition: all ease-in-out .5s;
        -moz-transition: all ease-in-out .5s;
        -ms-transition: all ease-in-out .5s;
        -o-transition: all ease-in-out .5s;
    }

    #menusite.active {
        left: 0;
    }

    #menusite > .container {
        padding: 0;
    }

    #menusite .navbar-default {
        background: transparent;
        border: none;
    }

    #menusite .navbar-default .navbar-nav {
        margin: 0;
    }

    #menusite .navbar-default .navbar-nav > li {
        border-left: none!important;
        border-bottom: 1px solid rgba(0, 0, 0, .2);
    }

    #menusite .navbar-default .navbar-nav > li > a {
        padding: 15px 10px;
        text-transform: uppercase;
        font-weight: bold;
        color: #000;
    }

    #menusite .navbar-default .navbar-nav > li > a:hover,
    #menusite .navbar-default .navbar-nav > .active > a {
        color: #d02316;
    }

    #menusite .navbar-default .navbar-nav > li a .caret {
        display: none;
    }

    #menusite .navbar-default .navbar-nav > li .dropdown-menu {
        display: block;
        position: relative;
        width: 100%;
        background: transparent;
        float: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    #menusite .navbar-default .navbar-nav > li .dropdown-menu li {
        border-top: 1px solid rgba(255, 255, 255, .2);
    }

    #menusite .navbar-default .navbar-nav > li .dropdown-menu li a {
        color: #fff;
        font-size: 15px;
        padding-top: 10px;
        padding-bottom: 10px;
        line-height: 18px;
    }

    #menusite .navbar-default .navbar-nav > li .dropdown-menu li a:before {
        content: '\f0da';
        font-family: 'FontAwesome';
        margin-right: 5px;
    }

    #slider {
        margin-top: 90px;
    }

    .cart-info .input-number-button {
        position: relative;
        display: inline-block;
        width: 100px;
        margin-bottom: 30px;
    }

    .cart-info .input-number-button .input-group-btn {
        position: absolute;
        top: 100%;
        width: 50%;
        display: block;
    }

    .cart-info .input-number-button .input-group-btn:first-child {
        left: 0;
    }

    .cart-info .input-number-button .input-group-btn:last-child {
        right: 0;   
    }

    .cart-info .input-number-button .input-group-btn .btn {
        border-radius: 0;
        padding-top: 5px;
        padding-bottom: 2px;
        width: 100%;
        margin-left: 0;
        border-top: none;
    }

    .cart-info .input-number-button .form-control {
        display: block;
        float: none;
    }

    .cart-info ul.list-none li {
        margin-bottom: 5px;
    }

    .popup-cart {
        width: 100%;
    }

    footer {
        
    }

    #footer section {
        margin-bottom: 20px;
    }

    #copyright {
        border-top: 1px solid #ddd;
        padding-top: 10px;
    }
}

@media (max-width:499px) {
    .nv-infodie {
        width:100%;
    }
}

@media (max-width: 500px) {
    #header .btn-toggle-menu {
        margin-top: 22px;
        border: none;
        padding: 0;
    }

    #header .btn-toggle-menu .icon-bar {
        height: 4px;
    }

    #header .header-right .block-cart .btn-toggle-cart > em {
        font-size: 32px;
    }
    
    #header .header-right .block-cart .btn-toggle-cart .num {
        width: 16px;
        height: 16px;
        line-height: 16px;
    }

    #header .header-right .btn-toggle-search {
        font-size: 24px;
    }
    
    #header .header-right .btn-toggle-search.active:after {
        bottom: -15px;
        right: 10px;
    }
}

@media (max-width:400px) {
    .col-i {
        width: 100%;
    }

    #header .btn-toggle-menu {
        margin-top: 16px;
    }

    #header .logo img {
        max-height: 50px;
    }

    #header .header-right .block-cart .btn-toggle-cart > em {
        font-size: 28px;
    }

    #header .header-right .btn-toggle-search {
        margin-top: 12px;
        font-size: 23px;
        padding: 0;
    }
    
    #header .header-right .btn-toggle-search.active:after {
        bottom: -10px;
        right: 5px;
    }
    
    #header .header-right .search-bar {
        top: 60px;
    }
}

@media (max-width:350px) {
    #menusite .navbar-default .navbar-nav > li > a {
        white-space: normal;
    }
}

@media (min-width: 500px) {
    .nv-infodie {
        width:500px;
        left:50%;
        margin-left:-250px;
    }
}

@media (min-height:500px) {
    .nv-infodie {
        height:500px;
        top:50%;
        margin-top:-250px;
    }
}