/*MAX AND MIN*/
@media (min-width: 992px) and (max-width: 1199px) {
    .col-md-6:nth-child(2n + 1),
    .col-md-4:nth-child(3n + 1),
    .col-md-3:nth-child(4n + 1) {
        clear: both;
    }
}
@media (min-width: 769px) and (max-width: 991px) {
    .col-sm-6:nth-child(2n + 1),
    .col-sm-4:nth-child(3n + 1),
    .col-sm-3:nth-child(4n + 1) {
        clear: both;
    }
}

/*MIN*/
@media (min-width: 768px){

}
@media (min-width: 992px){
	.col-md-20 {
		width: 20%;
		float: left;
	}
	.col-md-20:nth-child(5n+1) {
	    clear: both;
	}

	[class *= product-] > .container-all .content-mid .col-md-3:nth-child(4n + 1),
	[class *= product-] > .container-all .content-mid .col-md-4:nth-child(3n + 1),
	[class *= product-] > .container-all .content-mid .col-md-6:nth-child(2n + 1)
	{
		clear: both;
	}

	/* header */	
	.header-contact a {
	    line-height: 39px;
	    padding: 0 16px 0 40px;
	    font-size: 16px;
	    min-height: 2.5em;
	    color: #fff;
	    background: var(--main-color);
	    display: inline-block;
	    border-radius: 99px;
	    font-weight: bold;
	    position: relative;
	}
	.header-contact a:hover {
	    box-shadow: inset 0 0 0 100px rgba(0,0,0,.2);
	}
	.header-contact a span:before {
	    content: "";
	    width: 22px;
	    height: 22px;
	    position: absolute;
	    left: 11px;
	    top: 9px;
	    background-image: url(../image/phone-header.png);
	}

	/* form search */
	.search-header-form {
	    padding-right: 30px;
	}

	/*heaer bottom*/
	.header-bottom {
	    background: var(--main-color);
	}
	.header-bottom-inner {
	    display: flex;
	    flex-flow: row nowrap;
	    align-items: center;
	}
	.header-cat {
	    line-height: 50px;
	    max-width: 275px;
	    color: #fff;
	    position: relative;
	}
	.header-cat-top {
	    align-items: center;
	    background-color: var(--bg-list-cat);
	    display: flex;
	    flex-direction: row;
	    font-size: .9em;
	    font-weight: 600;
	    height: 50px;
	    justify-content: space-between;
	    padding: 12px 15px;
	    width: 250px;
	}
	.header-cat-list {
	    box-shadow: 1px 1px 15px rgba(0, 0, 0, .15);
	    width: 250px;
	    background: #fff;
	    position: absolute;
	    top: 100%;
	    left: 0;
	    opacity: 0;
	    visibility: hidden;
	    transition: opacity .25s,visibility .25s;
	}
	.header-cat:hover .header-cat-list {
	    opacity: 1;
	    visibility: visible;
	}
	.header-cat-list a {
	    color: hsla(0,0%,40%,.85);
	}
	.header-cat-list a:hover {
	    color: hsl(0deg 0.18% 1.57%);
	}
	.header-cat-list ul {
	    position: relative;
	    margin-bottom: 0;
	}
	.header-cat-list > ul > li + li{
	    border-top: 1px solid #ececec;
	}
	.header-cat-list > ul > li > a {
	    align-items: center;
	    display: flex;
	    padding: 5px 15px;
	    text-transform: uppercase;
	    font-size: 13px;
	}
	.header-cat-list > ul > li > a > img {
	    width: 18px;
	    margin-right: 10px;
	}
	.header-cat-list > ul > li > a > i {
	    margin-left: auto;
	    margin-right: -.1em;
	    font-size: 16px;
	}
	.header-cat-list > ul > li > ul {
	    position: absolute;
	    background: #fff;
	    left: 100%;
	    top: 0;
	    min-width: 260px;
	    box-shadow: 1px 1px 15px rgba(0, 0, 0, .15);
	    border: 2px solid #ddd;
	    padding: 20px;
	    min-height: 100%;
	    opacity: 0;
	    visibility: hidden;
	    transition: opacity .25s,visibility .25s;
	}
	.header-cat-list > ul > li:hover > ul {
	    opacity: 1;
	    visibility: visible;
	}
	.header-cat-list > ul > li > ul a {
	    line-height: 1.6;
	    display: block;
	    margin: 0 10px;
	    padding: 10px 0;
	    border-bottom: 1px solid #ececec;
	}
	.header-cat-list > ul > li > ul > li:last-child a {
	    border-bottom: 0;
	}

	/* menu	*/
	#menu ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	#menu ul li {
		position: relative;
	}
	#menu > ul {
	    display: flex;
	    align-items: center;
	}
	#menu > ul > li {
		margin: 0 7px;
	}
	#menu > ul > li:last-child {
		margin-right: 0;
	}
	#menu > ul > li > a {
		display: inline-block;
		padding: 10px 20px;
		color: #fff;
		font-weight: bold;
		font-size: .8em;
		text-transform: uppercase;
	}
	#menu ul ul {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 260px;
		background: #fff;
		box-shadow: 1px 1px 15px rgba(0, 0, 0, .15);
	    opacity: 0;
	    visibility: hidden;
	    transition: opacity .25s,visibility .25s;
	}
	#menu ul li:hover > ul {
	    opacity: 1;
	    visibility: visible;
	}
	#menu ul ul a {
		white-space: nowrap;
		line-height: 1.6;
	    display: block;
	    margin: 0 10px;
	    padding: 10px 0;
	    border-bottom: 1px solid #ececec;
	    color: hsla(0,0%,40%,.85);
	}
	#menu ul ul li:last-child a {
	    border-bottom: 0;
	}
	#menu ul ul li:hover > a,
	#menu ul ul a:hover {
	    color: hsl(0deg 0.18% 1.57%);
	}
	#menu ul ul ul {
		top: 0;
		left: 100%;
	}
	
	/* end menu	*/

	/* footer */
	.column-footer-left {
		padding-bottom: 100px;
	}
}
@media (min-width: 1200px){
	.col-lg-6:nth-child(2n + 1),
    .col-lg-4:nth-child(3n + 1),
    .col-lg-3:nth-child(4n + 1) {
        clear: both;
    }

    .row-md-mar20 {
	    margin-right: -20px;
	    margin-left: -20px;
	}
	.row-md-mar20 > div[class*="col-"] {
	    padding-left: 20px;
	    padding-right: 20px;
	}
	.row-md-mar20 > .col-md-9 {
		width: 70%;
	}
	.row-md-mar20 > .col-md-3 {
		width: 30%;
	}

    #popup-quick-view .modal-dialog {
	    width: 875px;
	}

	.footer-newsletters {
		position: absolute;
		margin-bottom: 50px;
		left: 0;
	    bottom: 0;
	}
}

/*MAX*/
@media (max-width: 1199px) {
	
}
@media (max-width: 991px) {
	.box-heading h2 {
		font-size: 20px;
	}

	/* header */
	.header-top .logo {
		margin: 0 auto;
	}
	.header-top .container {
		position: relative;
	}
	.nav-toggle-mb {
		position: absolute;
		top: 50%;
		left: 15px;
		margin-top: -20px;
	    border: 0;
	    height: 40px;
	    line-height: 38px;
	    width: 40px;
	    text-align: center;
	    font-size: 22px;
	    color: hsla(0,0%,40%,.85);
	    cursor: pointer;
	    z-index: 2;
	}

	/* menu mobile */
	.bg-mb {
	    position: fixed;
	    top: 0;
	    left: 0;
	    right: 0;
	    bottom: 0;
	    background: rgb(0 0 0 / 60%);
	    opacity: 0;
	    visibility: hidden;
	    z-index: 9999;
	}
	.bg-mb button {
	    background: transparent;
	    border: 0;
	    color: #fff;
	    width: 40px;
	    height: 40px;
	    text-align: center;
	    cursor: pointer;
	    position: absolute;
	    right: 5px;
	    top: 8px;
	}
	body.menu-mb-open .bg-mb {
		opacity: 1;
		visibility: visible;
	}
	.menu-mobi {
	    position: fixed;
        width: 260px;
        background-color: hsla(0, 0%, 100%, .95);
        top: 0;
        left: -270px;
        height: 100vh;
        padding: 30px 0;
        overflow: hidden auto;
        transition: all 0.5s;
        -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
	    z-index: 99999;
	}
	body.menu-mb-open .menu-mobi {
		left: 0;
	}
	.search-mb {
	    padding: 20px;
	    font-size: 14px;
	}
	.menu-mobi ul.menu-lv1, ul.menu-lv1 ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	.menu-mobi ul.menu-lv1 li {
		position: relative;
	}
	.menu-mobi ul.menu-lv1 > li {
		border-top: 1px solid #ececec;
	}
	.menu-mobi ul.menu-lv1 > li:hover {
		background: rgba(0,0,0,.05);
	}
	.menu-mobi ul.menu-lv1 > li > a {
		display: block;
        padding: 11px 45px 11px 20px;
        font-size: 13px;
        font-weight: 700;
        color: hsla(0, 0%, 40%, .85);
        text-transform: uppercase;
	}
	.menu-mobi ul.menu-lv1 ul {
		padding-bottom: 15px;
		display: none;
	}
	.menu-mobi ul.menu-lv1 ul li {
		padding-left: 8px;
	}
	.menu-mobi ul.menu-lv1 ul li a {
		display: block;
		padding: 8px 5px 8px 20px;
		font-size: 16px;
		color: hsla(0, 0%, 40%, .85);
	}
	.menu-mobi span.mb-toggle {
	    position: absolute;
	    width: 38px;
	    height: 42px;
	    line-height: 42px;
	    font-family: FontAwesome;
	    right: 0;
	    top: 0;
	    text-align: center;
	    color: hsla(0, 0%, 40%, .85);
	    cursor: pointer;
	    transition: all 0.3s;
	    font-size: 14px;
	}
	.menu-mobi span.mb-toggle.up{
		transform: rotate(180deg);
	}
	.menu-mobi span.mb-toggle:before {
	    content: "\f078";
	}
	ul.list-inline.header-contact {
	    border-right: 0;
	    border-top: 1px solid #ececec;
	    border-bottom: 1px solid #ececec;
	    padding: 5px 0;
	    margin: 0;
	}
	.header-contact>li {
		padding: 0;
		width: 100%;
	}
	.header-contact a {
		color: #666;
	    font-weight: 700;
	    font-size: 13px;
	    padding: 5px 0 5px 20px;
	}
	ul.list-inline.header-social {
	    padding: 20px;
	}
	.list-inline>li {
		padding-right: 3px;
    	padding-left: 3px;
	}
	.header-social a {
		width: 30px;
		height: 30px;
		line-height: 28px
	}

	/* module */
	.slideshow .owl-carousel .owl-nav button {
		opacity: 0;
	}
	
	.info-home .img-right {
		margin-bottom: 30px;
	}
	
	.md_project_latest {
		padding: 80px 0;
	}
	.md_project_latest h2.desc {
		font-size: 20px;
		line-height: 40px;
	}


	#popup-quick-view .modal-dialog {
	    margin: 40px auto;
	}

	.slide-image-news {
		margin: 0;
	}

	.product-info.row .description h1 {
		margin-top: 25px;
	}
}
@media (max-width: 767px){	
    .col-xs-6:nth-child(2n + 1),
    .col-xs-4:nth-child(3n + 1),
    .col-xs-3:nth-child(4n + 1){
        clear: both;
    }
    
	.image-additional.slick-slider {
		width: 100%;
		position: unset;
	}
	.image-additional.slick-slider .slick-list {
		display: none;
	}
	.image-product.slick-slider {
		width: 100%;
	}
	.image-additional.slick-slider button.slick-prev {
	    left: 10px;
	    z-index: 9;
	    width: auto;
	    height: auto;
	}
	.image-additional.slick-slider button.slick-next {
	    right: 10px;
	    z-index: 9;
	    width: auto;
	    height: auto;
	}
	.image-additional .slick-prev:before, .image-additional .slick-next:before {
	    font-size: 45px;
	    color: black;
	}

	/* category news */
	.box-news-content {
		flex-wrap: wrap;
	}
	.box-news-content .image {
		width: 100%;
	}
	.box-news-content .info-p {
		width: 100%;
		padding: 10px 0 0;
	}

	.breadcrumbs-search-page {
		font-size: 16px;
		text-align: center;
	}

	/* product detail */
	.tab-title span {
		padding: 0 30px;
	}

	/* contact page */
	h2.title-contact {
		font-size: 16px;
		margin: 20px 0;
	}
	.contact-page-desc {
	    margin-bottom: 30px;
	}

	.title-newsletters p {
		font-size: 12px;
	}

	#powered{ text-align: center; }
	#powered .pull-left, #powered .pull-right{ width: 100%; }

	/* about us page */
	section.about-us-row-3 .info-about-content {
		width: 100%;
	}
}
@media screen and (max-width: 480px){
	
}
@media screen and (max-width: 320px){
	
}

