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

@media (min-width: 768px) {

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

@media (min-width: 992px) {
    .loading-product .row > .col {
        width: 25%;
    }

    .wrap-giamgia .giamgia-title {
        height: 120px;
        border-radius: 0 0 50px 50px;
    }
    .px-lg-65{padding-right: 65px;padding-left: 65px;}
}

@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;
    }

    .wrap-giamgia .control-giamgia button.owl-prev {
        left: -37px;
    }

    .wrap-giamgia .control-giamgia button.owl-next {
        right: -37px;
    }

    .control-dmcap2 button.owl-next {
        right: -60px;
    }

    .control-danhgia button.owl-prev {
        left: 0;
    }

    .control-danhgia button.owl-next {
        right: 0;
    }
}


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

    .search-wrapper.active {
        width: 200px;
    }
}

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

    .menu-bar-res {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 991.98px) {
    /* Giảm giá sốc <992: nhãn co lại hẹp hơn 2 nêm đỏ góc (vẽ cố định 1440px) → 60px đầu trắng; bỏ nêm + viền, thân đỏ phủ từ đỉnh */
    /* section.: trangchu.css nạp SAU responsive.css (css.php) → cần nặng hơn .wrap-giamgia bên đó, không thì nền desktop (đỏ bắt đầu cách đỉnh 60px) đè lên */
    section.wrap-giamgia {
        background: url(../images/giamgia-bg.svg) center top / 100% 100% no-repeat;
    }


    /* Đánh giá <992: 2 nút prev/next đè lên card → hạ xuống dưới slider, xếp giữa hàng, không che nội dung */
    .control-danhgia {
        position: static;
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top:4px;
    }

    .wrap-vechungtoi,
    .wrap-vechungtoi.ve-full {
        background-image: none;
    }

    .control-danhgia button.owl-prev,
    .control-danhgia button.owl-next {
        position: static;
    }

    /* Tin lớn <992 (cột chia đôi chỉ từ lg, dưới đó card chiếm cả hàng): bỏ giới hạn 600px, ảnh tràn 100% chiều ngang card */
    .news-big {
        max-width: 100%;
    }

    .news-big .image img {
        width: 100%;
    }

    .footer { padding-bottom: 65px;} /* QA 05/10: chừa chỗ thanh nổi .toolbar2 (phone.php bật cho cả tablet ≤991) — trước bị che dòng copyright */
    .header-main .search { height: 40px;}
    .header-main .search .btn-search { width: 44px;}

    .thongso-list {
        border-left: 0;
    }

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

    .contact-btns .hotline-box {
        background:
            url(../images/hotline-plate.svg) left center / auto 100% no-repeat,
            linear-gradient(#b20205, #b20205) right center / calc(100% - 100px) 100% no-repeat;
        border-radius: 0 21px 21px 0;
        gap:8px;
    }


    .dangky-caption {
        position: static;
        width: 100%;
        height: auto;
        background: var(--color-main);
    }

    .dangky-form {
        position: static;
        width: 100%;
        border-radius: 0 0 8px 8px;
    }

    .header-bottom .logo {max-width:200px ;}
    .menu-wrapper:before {
        display: none;
    }

    .menu-wrapper {
        width: auto;
    }

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

    .slideshow {
        width: 100%;
    }

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

    .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%;
    }
}

/* header 576–991: logo | tìm kiếm | (hotline) | hamburger chung 1 hàng, cuộn thì giữ cả hàng. Bề rộng đặt ở a.logo vì core có img{max-width:100% !important} */
@media (min-width: 576px) and (max-width: 991.98px) {
    #header.is-stuck .header-main { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; box-shadow: 0 5px 8px rgba(0, 0, 0, .15);}
    .header-main .logo { width: 56px;}
}

@media (max-width: 767.98px) {
    /* Ảnh nhỏ gallery xếp ngang (slick vertical:false <768): chừa khe 8px giữa các ảnh; list kéo ra -4px để 2 mép khớp ảnh chính */
    .gallery-pro-detail .slider-product-thumbs .slick-list {
        margin: 0 -4px;
    }

    .gallery-pro-detail .slider-product-thumbs .slick-list .item {
        padding: 0 4px 8px;
    }

    /* 2 cột Tầm nhìn/Sứ mệnh xếp chồng → dây treo rèm sẽ cắt ngang chữ: cắt bỏ phần dây, chỉ giữ vạt rèm */
    .tamnhin-media .tamnhin-rem {
        clip-path: inset(calc(42% - 28px) 0 0 0);
    }

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

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

        /* Ảnh nhỏ gallery <768: khe hẹp lại 8px; list kéo ra -4px để 2 mép khớp ảnh chính */
        .gallery-pro-detail .slider-product-thumbs .slick-list {
            margin: 0 -4px;
        }
    
        .gallery-pro-detail .slider-product-thumbs .slick-list .item {
            padding: 0 4px;
        }

    .slideshow .slider {
        width: 100%;
    }

    .title-main {
        margin-bottom: 15px;
    }

    .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-ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

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

    .footer-ul li {
        width: 50%;
    }

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

    .taisao-bg { min-height: 220px; object-fit: cover;}
.taisao-legacy { display: none;}
.taisao-bottom, .taisao-list { margin-top: 0;}

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

    /* reset width 62%/35% ở style.css:111 — đã comment bên đó
    .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;
    }

    .giatri-item .info {
        min-height: auto;
    }

    .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;
    }
}

@media (max-width: 575.98px) {
    /* Chi tiết SP: Hotline + Zalo thu nhỏ, cùng 1 hàng (markup: flex-nowrap) — mỗi nút chiếm nửa hàng, cao 42 */
    .contact-btns .hotline-box,
    .contact-btns .btn-zalo {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        height: 42px;
    }

    .contact-btns .hotline-box .icon {
        width: 39px;
        height: 39px;
    }

    .contact-btns .hotline-box .icon svg {
        width: 16px;
        height: 16px;
    }

    .contact-btns .hotline-box .text {
        height: 42px;
    }

    .contact-btns .hotline-box .label {
        font-size: 12px !important;
        margin-bottom: 0 !important;
    }

    

    .contact-btns .hotline-box .number {
        font-size: 16px !important;
    }

    .contact-btns .btn-zalo {
        font-size: 14px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .contact-btns .btn-zalo svg {
        width: 18px;
        height: 18px;
    }

    /* header <576: logo 1 hàng giữa, dưới là tìm kiếm + hamburger; cuộn thì chỉ giữ .header-bar (apps.js) */
    #header.is-stuck .header-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; padding: 8px 12px; box-shadow: 0 5px 8px rgba(0, 0, 0, .15);}

    .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;
    }

    .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;
    }

    .news-item .name a {
        height: 42px;
    }

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

    .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%;
    }

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

    .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;
    }



    .slbannerhh .slick-arrow {
        width: 32px;
        height: 32px;
    }

    .gallery-pro-detail .slider-products {
        width: 100%;
    }
}

@media (max-width: 380.98px) {
    .product-video {
        width: 60px;
        height: 60px;
    }
}