/* header .header-wrap: chỉ giảm padding-top (desktop lớn, >=1200px);
   dưới mốc này frontend.css đã có override riêng theo breakpoint,
   không đụng vào để giữ nguyên responsive gốc. */
@media only screen and (min-width: 1200px) {
    header .header-wrap {
        padding: .7rem 2.865rem 2.083rem 2.865rem;
    }
}

/* section.crea (mobile, khớp breakpoint gốc dòng ~7916 frontend.css) */
@media only screen and (max-width: 849px) {
    section.crea {
        padding: 1rem 0 !important;
    }
}

/* Card bài viết .post-item-2 (trang blog/tin tức) — bo góc nhỏ lại */
.post-item-2>.inner {
    background: #EDF3FA80;
    border: 1px solid #EBF2F8;
    padding: 0.625rem;
    border-radius: 1rem;
    overflow: hidden;
}

.post-item-2 .img-wrap {
    border-radius: 1rem;
    aspect-ratio: 414 / 233;
}

/* .home-content-6: templates/home.php giờ tách mỗi 2 item thành 1 div
   .home-content-6 riêng (yêu cầu đổi cấu trúc HTML), thay vì 1 container
   chung 4 item. Bù lại khoảng cách giữa 2 khối bằng margin-top trên
   sibling thứ 2, khớp với giá trị gap gốc của từng breakpoint. */
.home-content-6 + .home-content-6 {
    margin-top: 3.125rem;
}

@media only screen and (max-width: 1399px) {
    .home-content-6 + .home-content-6 {
        margin-top: 2.5rem;
    }
}

@media only screen and (max-width: 1199px) {
    .home-content-6 + .home-content-6 {
        margin-top: 1rem;
    }
}

@media only screen and (max-width: 767px) {
    .desc-sec {
        font-size: 1rem;
    }

    .item-banner-hero .cont-absolute {
        bottom: 3rem;
    }

    .title-home-2 {
        position: relative;
        z-index: 10;
    }

    .product_item .arrow {
        flex: 0 0 auto;
        margin-left: 1rem;
    }

    .about6_img:before {
        content: '';
        position: absolute;
        top: -2px;
        left: 0;
        width: 100%;
        height: 1rem;
        background: linear-gradient(180deg, #fff, transparent);
        z-index: 2;
    }

    .about6_img {
        position: relative;
    }

    .header-menu .current-menu-item>a {
        color: #09AEEA !important;
    }

    .submit-btn>input ~ .btn {
        min-height: 2.7rem;
    }

    .content-home-7 .wpcf7 form.wpcf7-form .wpcf7-response-output {
        position: unset !important;
    }

    /* .home-content-6 (mobile): mỗi container giờ chỉ chứa đúng 2 item
       (đã tách trong templates/home.php) — đóng khung cả cặp thành 1
       khối nền bo góc, item lẻ/chẵn ghép liền cạnh không có khe hở. */
    .home-content-6 {
        column-gap: 0;
        padding-top: 0;
    }

    .home-content-6:first-of-type {
        padding-top: 1.9rem;
    }

    .home-content-6 + .home-content-6 {
        margin-top: 1.5rem;
    }

    .home-content-6 > .item {
        background: #EDF3FA;
        padding: 0.9rem 0.5rem;
        box-sizing: border-box;
    }

    .home-content-6 > .item:nth-child(odd) {
        border-radius: 1rem 0 0 1rem;
    }

    .home-content-6 > .item:nth-child(even) {
        border-radius: 0 1rem 1rem 0;
    }

    /* Menu mobile (.header-menu): chỉ chiếm nửa màn hình, nửa còn lại
       blur nền phía sau (thay vì phủ đen mờ như mặc định). */
    .header-menu .inner {
        width: 50%;
    }

    .header-menu {
        backdrop-filter: blur(0.95rem);
        -webkit-backdrop-filter: blur(0.95rem);
    }

    /* Khi menu mở (body.menu-open do assets/js/header2.js gắn) — ẩn
       search/logo/ngôn ngữ ở header chính, chỉ còn nút Menu/Đóng. */
    body.menu-open .header-wrap > .box-search,
    body.menu-open .header-logo,
    body.menu-open .action-header {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* Ẩn breadcrumb nav trong khối "crea" (dùng chung mọi trang),
   giảm padding-top xuống sát header. */
section.crea nav {
    display: none;
}

section.crea {
    padding: 2rem 0 0 0 !important;
}

/* footer:after (frontend.css) — thu hẹp dải nền bo góc của footer
   ở khoảng 1200–1700px (giữa mức desktop mặc định 19.5rem và mức
   mobile 3rem đã có sẵn ở breakpoint 1199px, không đụng breakpoint đó). */
@media only screen and (min-width: 1200px) and (max-width: 1700px) {
    footer:after {
        width: calc(100vw - 12.5rem);
    }
}

.page-template-contact nav#breadcrumbs * {
    color: #fff;
}

/* .product-page padding-top (frontend.css dòng ~5140, breakpoint
   max-width:1699px đang là 5rem) — giảm xuống 2rem. Scope thêm
   min-width:1200px để không đụng breakpoint hẹp hơn (1199px: 3rem,
   767px: 1rem) đã có sẵn. */
@media only screen and (min-width: 1200px) and (max-width: 1699px) {
    .product-page {
        padding-top: 2rem;
    }
}

/* .sec-banner (banner trang con dùng chung: Liên hệ, Hệ thống phân phối...,
   template-parts/banner.php) KHÔNG có height cố định — ảnh banner co giãn
   theo tỉ lệ gốc của file ảnh nên trên MOBILE chiều cao lệch so với hero
   trang chủ (.item-banner-hero, cố định 27rem ở breakpoint 849px,
   frontend.css dòng ~6356). Chỉ chỉnh ở mobile theo đúng feedback, không
   đụng desktop (banner.php đang dùng ảnh/tỉ lệ khác hero trang chủ, ép
   height ở desktop có thể làm vỡ layout không ai yêu cầu). */
@media only screen and (max-width: 849px) {
    .sec-banner .banner-img {
        height: 27rem;
    }

    .sec-banner .banner-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
