/* Min-width */
@media (min-width: 576px) {}

@media (min-width: 768px) {

    .container,
    .container-sm {
        max-width: 100%;
    }
}

@media (min-width: 992px) {}

@media (min-width: 1200px) {
    .category-lists .col-xl-2 {
        width: 14.28%;
    }

    .category-lists span {
        max-width: 80%;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1215px;
    }
}


/* Max-width */
@media (max-width: 1299.98px) {
    .header-bottom .header-ul .line {
        margin: 0px 5px;
    }

    .search-wrapper.active {
        max-width: 547px;
    }
}

@media (max-width: 1199.98px) {
    .menu {
        display: none;
    }

    .menu-bar-res {
        display: flex;
        align-items: center;
    }
    .search-wrapper.active {
        max-width: 490px;
    }
    .wrap-product-list .title-main{
        align-items: center;
    } 
    .header-bottom.fixed {display: none;}
    .banner-top {
        position: sticky;
        top: 0;
        z-index: 998;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    }
}

@media (max-width: 991.98px) {
    .header-bottom .logo {max-width:200px ;}
    .menu-wrapper:before {
        display: none;
    }

    .search-wrapper.active {
        max-width: 450px;
    }

    .header-nav {
        padding: 5px 0;
    }

    .menu-wrapper {
        width: auto;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
        vertical-align: top;
    }

    .header-top {
        text-align: right;
    }

    .header-top marquee {
        width: calc(100% - 150px);
        margin-right: 0px;
    }

    .slideshow {
        width: 100%;
    }

    .footer-title {
        margin-bottom: 0px;
        margin-top: 15px;
    }

    /* .footer p {
        margin-bottom: 15px;
    } */
    
    .footer p {
        margin-bottom: 4px;
    }

    .footer-copyright {
        text-align: center;
        font-size: 16px;
    }

    .visao-item {
        margin: 0px 0px 20px 0px !important;
        max-width: 100%;
    }

    #product-title {
        width: 100%;
        -webkit-line-clamp: 3;
    }

    .left-pro-detail {
        width: 400px;
    }

    .right-pro-detail {
        width: calc(100% - 415px);
        padding: 0px;
    }

    .camket-pro-detail {
        width: 100%;
    }
    .category{background-image: none;background-color: var(--color-main);padding-block: 25px;}
    .sp-nb{margin-top: 25px;}
    .why-item{display: flex;flex-direction: row; margin-bottom: 20px !important;margin-right: 15px;}
    .why-title{font-size: 17px;} .why-desc{font-size: 15px;}
    .why-item .why-info{text-align: start;}
    .why-row-bottom .col-lg-4:last-child {padding-left: 8px;}
    .why-row-bottom .col-lg-4:first-child { padding-right: 0px;}
    .why-row-top {margin-bottom: 0px;}
    .why .why-item:nth-child(2) {margin-bottom: 0px !important;}
    /* .why .col-lg-4 .why-icon {margin-right: 25px;} */
    .why .col-lg-4 .why-item-left {align-items: start;}
    .wrap-why{display: flex; justify-content: center;}
    .title-sec{margin-block:15px  20px !important;font-size: 30px !important; line-height: normal !important;}
    .giatri-item .info {
        padding-left: 8px;
    }
    .post-sidebar-list {display: flex; gap: 20px;}
    .cart-pro-detail .addcart span{font-size: 16px !important;}
    .product-contact-actions a { font-size: 13px !important}
    .counter-item::after{content: none;}
    .giatri-item .info::before {content: none;}
}

@media (max-width: 767.98px) {
    div#header {
        z-index: 1000;
        min-height: 46px;
    }

    .search-wrapper .btn {
        border-radius: 0;
        width: 36px;
    }

    .header-top marquee {
        width: calc(100%);
    }

    .search-wrapper.active {
        width: 100%;
        position: relative;
    }

    .slideshow .slider {
        width: 100%;
    }

    .title-main {
        margin-bottom: 0px !important; 
    }

    .wrap-cauhoi {
        background: none;
    }

    .wrap-cauhoi .accordion {
        max-width: 100%;
    }

    .doitac-item {
        padding: 10px;
    }

    .wrap-newsletter .hotline {
        min-height: 135px;
        padding-left: 120px;
    }

    .wrap-newsletter .hotline span {
        font-size: 20px;
        padding-bottom: 10px;
    }

    .wrap-newsletter .hotline a {
        font-size: 35px;
        line-height: 40px;
    }

    .footer {
        padding-bottom: 50px;
    }
    .footer-article{padding-inline: 15px;padding-bottom: 0 !important;}

    .footer-ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .footer-info-wrap {margin-bottom: 20px;}
    .col-12.col-lg-4.mb-2.mb-lg-0 {margin-bottom: 20px !important;}

    .footer-ul li.line {
        display: none;
    }

    .footer-ul li {
        width: 50%;
    }
    .footer-ul li a{
        font-size: 16px;
    }
    .footer-title {
        margin-bottom: 0px;
        margin-block:0 10px !important;
    }

    .wrap-product-list .slider-products,
    .wrap-product-list .slider-product-thumbs {
        width: 100%;
    }

    .wrap-product-list .slider-product-thumbs {
        margin-bottom: 30px;
    }

    .product-item .image,
    .product-item .info {
        width: 100%;
    }

    .footer-statistic,
    .footer-copyright {
        text-align: center;
    }

    .vanhoa-item {
        max-width: 100%;
    }

    #chuyenkhoaTabs .nav-item {
        width: 49.5%;
        margin-bottom: 3px;
    }

    #chuyenkhoaTabs .nav-link {
        font-size: 14px;
        width: 100%;
    }

    #chuyenkhoaTabs .nav-link img {
        width: 20px;
    }



    .news-item .name {
        min-height: auto;
    }

    .news-item .line {
        margin-top: 0px;
    }

    .wrap-history {
        background: #f8f8f8;
    }

    .wrap-history .slider-nav,
    .wrap-history .slider-for {
        width: 100%;
    }

    /* .year-item.slick-current span {
        padding-left: 20px;
    } */

    /* .year-item.slick-current::before {
        right: auto;
        left: 0px;
    } */

    .attr-pro-detail,
    .camket-pro-detail {
        width: 100%;
    }

    .left-pro-detail {
        margin: 0px auto;
    }

    .left-pro-detail {
        width: 100%;
    }

    .right-pro-detail {
        width: 100%;
        ;
    }

    .menu-wrapper .menu-toggle {
        width: 54px;
    }

    .menu-header {
        padding: 10px;
    }

    .menu-header .btn-close-menu {
        border: 1px solid #e0e0e0;
        color: #333;
        line-height: 21px;
        padding: 7px 5px 7px 0;
        position: relative;
        text-align: right;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background-color: #6e6e6e;
    }

    .menu-header .btn-close-menu::before,
    .menu-header .btn-close-menu::after {
        content: "";
        position: absolute;
        width: 1px;
        top: 4px;
        left: 8px;
        background-color: #fff;
        height: 8px;
    }

    .menu-header .btn-close-menu::before {
        transform: rotate(45deg);
    }

    .menu-header .btn-close-menu::after {
        transform: rotate(-45deg);
    }

    .menu-dropdown {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 100vw;
        /* toàn bộ chiều ngang */
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        border: none;
        border-radius: 0px;
        padding: 0px;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
    }

    .menu-dropdown.open {
        display: block !important;
        right: 0;
        z-index: 1002;
    }

    .menu-left {
        width: 100px;
        height: calc(100vh - 49px);
        border-right: 0px;
    }

    .menu-right {
        padding: 10px;
        background: #fff;
    }

    .menu-panel .category-item {
        width: calc(100% / 3);
        padding: 0px;
    }

    #thuong-hieu .category-item {
        width: calc(100% / 3 - 6px);
        padding: 0px;
    }

    .search-wrapper {
        height: 36px;
        border-radius: 5px;
    }
    .title-sec{font-size: 30px !important;}
    .search-wrapper input::placeholder {
        font-weight: 500;
        font-size: 14px !important;
        
    }
    .footer-copyright {
        font-size: 14px;
    }
    .wrap-why{display: flex; justify-content: center; flex-direction: column; margin-left: 20px;}
    .banner-top .logo {max-width:200px !important;}
    .gallery-tit {padding-bottom: 10px;}
}

@media (max-width: 575.98px) {
    .menu-left li {
        padding: 7px 5px;
    }

    .gird-images {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 238px);
        grid-gap: 5px 5px;
    }

    .box-images:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .gradient-title {
        width: 300PX;
    }
    .col-12.col-lg-4.mb-2.mb-lg-0 {margin-bottom: 10px !important;}
    /* .cart .text-start {
        display: NONE;
    } */

    .wrap-uudai {
        padding-top: 1rem;
        transform: translateY(0);
    }

    .wrap-counter .num {
        display: none
    }

    .banner h2 {
        font-size: 20px;
    }

    .btn-submain {
        font-size: 14px;
    }

    header#header.fixed {
        position: relative;
    }

    .title-main h2 {
        font-size: 22px;
    }

    .title-main::before {
        font-size: 5rem;
        line-height: 65px;
    }

    .wrap-diadiem-hot .service-list h2.name {
        font-size: 16px;
    }

    .wrap-counter .num {
        font-size: 4.5rem;
    }

    .wrap-counter .counter {
        font-size: 2.5rem;
    }

    .wrap-service-list .service-list .name {
        font-size: 17px;
    }

    .wrap-service-list .service-list .info h3 {
        font-size: 16px;
    }

    .wrap-service-list .service-list .info .line {
        margin: 5px auto;
    }

    .foot-content {
        font-size: 12px;
    }

    .news-item .desc {
        font-size: 16px;
    }

    .service-item .name {
        font-size: 18px;
    }

    .service-item .desc {
        font-size: 14px;
    }

    .item_history .name {
        font-size: 1.5rem;
    }

    .item_year {
        font-size: 17px;
    }

    #frm-newsletter {
        padding: 0px;
    }

    .notify-popup {
        bottom: 85px;
    }

    .news-item.list .image {
        width: 120px;
    }

    .news-item.list .info {
        width: calc(100% - 120px);
        padding: 0px 10px;
    }

    .title-main h2,
    .title-main h3,
    .title-main h4 {
        white-space: normal !important;
    }

    .choose-list button {
        font-size: 16px;
        margin-bottom: 5px;
        padding: 7px 15px 4px;
    }

    .left-pro-detail {
        width: 100%;
    }

    .khachhang-item {
        width: 300px;
    }

    .accordion-button {
        font-size: 16px;
    }

    .footer-ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .footer-ul li a{
        font-size: 14px;
    }
    .footer-title {
        margin-bottom: 0px;
        margin-block:0 8px !important;
    }

    .footer-payments {
        text-align: center;
    }

    .item_history .desc {
        margin-bottom: 0px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        -webkit-line-clamp: 3;
    }

    /* .category-item {
        padding: 5px;
        width: calc(100% / 3);
    } */

    .wrap-brand .brand-item,
    .wrap-doitac .brand-item {
        width: calc(100% / 3 - .5rem);
    }

    .filter-brand .filter-dropdown-item {
        width: calc(100% / 3 - .5rem);
    }

    .cart-fixed {
        bottom: 100px;
    }

    .wrap-about .about-img {
        position: relative;
        text-align: left;
        /* padding-bottom: 20%; */
    }

    .wrap-about .about-img img:nth-child(2) {
        margin-left: 0px;
        margin-top: 0px;
        position: absolute;
        right: 0px;
        top: 15%;
    }

    .gallery-pro-detail .gallery-pro-detail-left {
        width: 100%;
        margin: 0px;
        order: -1;
    }

    .gallery-pro-detail .slider-product-thumbs {
        width: calc(100% - 85px);
    }

    .gallery-pro-detail .slider-products {
        width: 100%;
    }
    .title-sec{font-size: 26px !important; line-height: normal !important;}
    .news-item .name a{ font-size: 18px; }
    .banner-top .logo {max-width:180px !important;}
}

@media (max-width: 380.98px) {
    .product-video {
        width: 60px;
        height: 60px;
    }
    .title-sec{font-size: 22px !important;}
    .search-wrapper input::placeholder {
        font-weight: 500;
        font-size: 11px !important;
    }
    .banner-top .logo {max-width:150px !important;}
}




/* ==========================
991
========================== */

@media (max-width:991px){

    .category .row{
        --bs-gutter-x:18px;
        --bs-gutter-y:22px;
    }

    .category-item .name{
        font-size:16px;
        margin-top:10px;
    }

    .btn-view{
        font-size:15px;
        padding:.6rem .5rem!important;
    }

}


/* ==========================
767
========================== */

@media (max-width:767px){

    .category .row{
        --bs-gutter-x:14px;
        --bs-gutter-y:20px;
    }

    .category .col{
        padding-left:7px;
        padding-right:7px;
    }

    .category-item .name{
        font-size:15px;
        line-height:1.35;
    }

    .btn-view{
        font-size:14px;
        padding:.55rem .5rem!important;
    }

}


/* ==========================
575
========================== */

@media (max-width:575px){

    .category{
        padding:40px 0;
    }

    .category .row{
        --bs-gutter-x:12px;
        --bs-gutter-y:18px;
    }

    .category .col{
        padding-left:6px;
        padding-right:6px;
    }

    .category-item .name{
        font-size:14px;
        margin-top:8px;
    }

    .btn-view{
        margin-top:10px!important;
        font-size:13px;
        padding:.5rem .4rem!important;
    }

}


/* ==========================
380
========================== */

@media (max-width:380px){

    .category .row{
        --bs-gutter-x:10px;
        --bs-gutter-y:16px;
    }

    .category .col{
        padding-left:5px;
        padding-right:5px;
    }

    .category-item .name{
        font-size:13px;
    }

    .btn-view{
        font-size:12px;
        padding:.45rem .35rem!important;
    }

}



/*==========================
RESPONSIVE
===========================*/

@media(max-width:991.98px){

    .hero-category{
        margin-bottom:20px;
    }
    
    .hero-slider img,
    .hero-slider video{
        height:300px;
    }
    
    }
    
    @media(max-width:767.98px){
    
    .hero-slider img,
    .hero-slider video{
        height:220px;
    }
    
    .hero-category-title{
        font-size:16px;
    }
    
    .hero-category-btn{
        padding:14px 16px;
    }
    
    .hero-category-content a{
        padding:10px 28px;
    }
    
    }


/* /* =====================================================
   TABLET
   <= 991.98px
===================================================== */

@media (max-width: 991.98px) {

    .criteria-item {
        min-height: 60px;
    }

    .criteria-image {
        width: 55px;
        height: 55px;
        flex-basis: 55px;
    }

    .criteria-name {
        font-size: 15px;
    }

    .criteria-desc {
        font-size: 13px;
    }

}


/*====================================================
RESPONSIVE
====================================================*/

@media(max-width:991.98px){

    /* Ẩn ảnh */

    .why-center-img{
        display:none;
    }

    .why .title-main{
        margin-bottom:35px;
    }

    .why .col-lg-4:first-child,
    .why .col-lg-4:last-child{
        display:block;
    }

    .why .col-lg-4:first-child .why-item,
    .why .col-lg-4:last-child .why-item{
        justify-content:flex-start;
        text-align:left;
    }

    .why .col-lg-4:first-child .why-icon{
        order:0;
    }

    .why .col-lg-4:first-child .why-info{
        order:0;
    }

    .why-item{
        margin-bottom:28px;
    }

}

@media(max-width:767.98px){

    .why-item{
        gap:16px;
        margin-bottom:10px !important;
    }
    .giatri .col-lg-4:last-child {margin-top: 0 !important;}
    .why-icon{
        width:60px;
        min-width:60px;
        height:60px;
    }

    .why-title{
        font-size:16px;
        line-height:24px;
    }
    .giatri-title {font-size:22px !important;}
    .giatri-desc{font-size: 17px !important;}
    .year-item.slick-current span {font-size: 32px !important;}
    .history-item .year {font-size: 40px !important;}
    .why-desc{
        font-size:15px;
        line-height:22px;
        min-height: calc(1.5em * 3) !important;
    }
   
    .year-item.slick-current span {font-size: 32px !important;}
}

@media(max-width:575.98px){

    .why-title{
        font-size:15px;
        line-height:22px;
    }

    .why-desc{
        font-size:14px;
        line-height:21px;
    }

    .why-icon{
        width:54px;
        min-width:54px;
        height:54px;
    }
    .giatri-title {font-size:20px !important;}
    .giatri-desc{font-size: 15px !important;}
    .year-item.slick-current span {font-size: 28px !important;}
    .history-item .year {font-size: 36px !important;}
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:991.98px){

    .wrap-form{
        padding:40px 0;
    }

    .form-center-img{
        border-radius:8px;
        margin-bottom:25px;
        max-width:500px;
        margin-inline:auto;
    }

    .bg-form{
        border-radius:8px;
        padding:0 20px !important;
    }

    .wrap-form .title-main h2{
        font-size:28px;
    }

}

@media(max-width:767.98px){

    .wrap-form .title-main h2{
        font-size:24px;
    }

    .form-tuvan button{
        font-size:16px;
    }
    .wrap-form{
        padding:20px 0;
    }
}

@media(max-width:575.98px){

    .bg-form{
        padding:0 15px !important;
    }

    .form-center-img{
        margin-bottom:20px;
    }

}


@media (max-width:767.98px){.wrap-pro-detail{padding:0px 0 24px!important}.wrap-pro-detail .container>div.d-flex{gap:10px}.wrap-pro-detail .gallery-pro-detail .slider-products{width:100%}.wrap-pro-detail .gallery-pro-detail .gallery-pro-detail-left{width:100%;order:1}.wrap-pro-detail .gallery-pro-detail .slider-product-thumbs .item{padding:0 5px}.wrap-pro-detail .cart-pro-detail a{flex:1;min-width:145px}}


/* rule cũ giữ lại để đối chiếu */
/* .wrap-pro-detail .gallery-pro-detail .slider-products { width: calc(100% - 122px); height: 424px; } */
.wrap-pro-detail .left-pro-detail{width:596px}.wrap-pro-detail .gallery-pro-detail{gap:12px}.wrap-pro-detail .gallery-pro-detail .gallery-pro-detail-left{width:108px}.wrap-pro-detail .gallery-pro-detail .slider-products{width:476px;height:466px;flex:none;border-color: var(--color-main);z-index: 1; }.wrap-pro-detail .gallery-pro-detail .slider-products .item{padding:0}.wrap-pro-detail .gallery-pro-detail .slider-products .item>a{width:100%;height:100%}.wrap-pro-detail .gallery-pro-detail .slider-products .item img{width:100%;height:100%;max-height:none;object-fit:contain}.wrap-pro-detail .gallery-pro-detail .slider-product-thumbs .item{width:108px;height:106px;padding:0;margin:0 0 12px}.wrap-pro-detail .gallery-pro-detail .slider-product-thumbs .item a,.wrap-pro-detail .gallery-pro-detail .slider-product-thumbs .item img{width: 100%;height:106px}.wrap-pro-detail .gallery-pro-detail .slider-product-thumbs .item a{overflow:hidden}.product-contact-actions{gap:6px;margin-top:12px}.product-contact-actions a{display:flex;align-items:center;justify-content:center;min-width:0;flex:1;height:34px;padding:22px 8px;border-radius:4px;color:#fff;font-size:17px;font-weight:600;text-decoration:none}.product-contact-actions a:nth-child(2){background:#1688e8}.product-contact-actions a:nth-child(3){background:#ef6b18}.product-contact-actions a:hover{color:#fff;filter:brightness(.92)}

@media (max-width:1199.98px){

    .wrap-pro-detail .left-pro-detail{
        width:48%;
    }

    .wrap-pro-detail .gallery-pro-detail{
        flex-direction:column !important;
        gap:15px;
    }

    .wrap-pro-detail .gallery-pro-detail .slider-products{
        width:100%;
        height:auto;
        flex:none;
    }

    .wrap-pro-detail .gallery-pro-detail .gallery-pro-detail-left{
        width:100%;
        order:2;
    }

    .wrap-pro-detail .gallery-pro-detail .slider-product-thumbs{
        width:100%;
    }

    .wrap-pro-detail .gallery-pro-detail .slider-product-thumbs .item{
        width:auto;
        height:auto;
        margin:0;
        padding:0 5px;
    }

    .wrap-pro-detail .gallery-pro-detail .slider-product-thumbs .item a,
    .wrap-pro-detail .gallery-pro-detail .slider-product-thumbs .item img{
        width:100%;
        height:auto;
    }

}
@media (max-width:767.98px){.wrap-pro-detail .left-pro-detail{width:100%}.wrap-pro-detail .gallery-pro-detail .slider-products{width:100%;height:auto}.wrap-pro-detail .gallery-pro-detail .slider-product-thumbs .item{width:auto;height:auto;margin:0;padding:0 5px}.wrap-pro-detail .gallery-pro-detail .slider-product-thumbs .item a,.wrap-pro-detail .gallery-pro-detail .slider-product-thumbs .item img{width:100%;height:auto}.product-contact-actions a{min-width:calc(50% - 3px)}}


@media (max-width:767.98px){

    .wrap-pro-detail .gallery-pro-detail{
        flex-direction:column!important;
    }

    .wrap-pro-detail .gallery-pro-detail-left{
        width:100%!important;
        margin-top:15px;
    }

    .wrap-pro-detail .slider-product-thumbs{
        width:100%!important;
    }
    .wrap-pro-detail .cart-pro-detail a {
        min-width: calc(50% - 3px);
    }
    .cart-pro-detail .addcart span {
        font-size: 17px !important;
    }
    .product-contact-actions a:nth-child(3) {
        padding-block: 20px;
        margin-top: 6px;
    }
    .right-pro-detail .product-contact-actions a {
        font-size: 16px !important;
        padding-block: 22px;
    }
    .ma-sp {margin-bottom: 7px;}
}



/*==============================
=          RESPONSIVE          =
==============================*/

@media(max-width:991px){
    .cart-pro-detail .addcart span{font-size: 15px !important;}
    .product-contact-actions a{font-size: 9px !important;}

    .cart-pro-detail .addcart{
        width:100%;
    }

    .product-contact-actions{
        grid-template-columns:1fr;
    }
}

@media(max-width:575px){

    .cart-pro-detail .addcart:first-child .fw-600{
        font-size:22px;
    }

    .cart-pro-detail .addcart.outline span{
        font-size:18px;
    }

    .product-contact-actions a{
        font-size:14px;
        height:40px;
    }
}

