@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

/* Header layout and style enhancements */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.header .func-wrapper {
    padding: 14px 0;
    background-color: #303845;
}

.header .func-wrapper .container.box-justify {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-brand .logo img {
    max-height: 58px;
    width: auto;
    display: block;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.header-meta .hotline {
    color: #fff;
    font-size: 13px;
}

.header-meta .hotline a {
    color: #fda72f;
    text-decoration: none;
}

.header-hotline {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
}

.header-hotline i {
    color: #fda72f;
    font-size: 16px;
}

.header-hotline .hotline-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.header-hotline a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-hotline a:hover {
    color: #fda72f;
}

/* Footer logo */
.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.lang-switch__list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lang-switch__list li {
    display: inline-flex;
}

.lang-switch__list a {
    display: inline-flex;
    min-width: 32px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    transition: background-color 0.2s ease-in-out;
}

.lang-switch__list a:hover,
.lang-switch__list a:focus {
    background: rgba(255, 255, 255, 0.22);
}

.menu-toggle {
    display: none;
    background-color: #fff;
    border-color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    padding: 8px 10px;
}

.menu-toggle .stroke {
    width: 100%;
    height: 2px;
    background-color: #f26521;
    margin-bottom: 5px;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open-menu .stroke:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open-menu .stroke:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open-menu .stroke:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header .alt-search {
    display: none;
}

.header .menu-wrapper {
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.header-nav {
    flex: 1;
}

.slider-btn {
    top: 50%;
    position: absolute;
    z-index: 99;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background: rgba(242, 101, 33, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn i {
    font-size: 18px;
}

.slider-prev {
    left: -50px;
}

.slider-next {
    right: -50px;
}

@media only screen and (max-width: 768px) {
    .slider-btn {
        width: 38px;
        height: 38px;
    }
}

.header .menu-wrapper .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header .menu-wrapper .menu>li {
    margin: 0;
}

.header .menu-wrapper .menu>li a {
    text-decoration: none;
    color: #333;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.header .menu-wrapper .menu>li a:hover {
    color: #f26521;
    transform: translateY(-1px);
}

/* Active menu item */
.header .menu-wrapper .menu>li.current-menu-item>a,
.header .menu-wrapper .menu>li.current-menu-ancestor>a {
    color: #f26521;
}

.header .menu-wrapper .form-search {
    width: 260px;
    max-width: 100%;
    margin-top: 0;
    position: relative;
}

.header .form-search input[type=search] {
    border: 1px solid #e5e5e5;
    background-color: #fff;
    color: #333;
    outline: none;
    padding: 10px 44px 10px 16px;
    height: 40px;
    border-radius: 22px;
    width: 100%;
}

.header .form-search .button {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.header .form-search .button i:before,
.header .form-search .button .fa-solid {
    font-size: 16px;
}

@media only screen and (max-width: 1100px) {
    .header .func-wrapper .container.box-justify {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .header-meta {
        gap: 10px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header .menu-wrapper {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        padding-top: 0;
        padding-bottom: 0;
    }

    .header .menu-wrapper.active {
        max-height: 1200px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .header .menu-wrapper .menu {
        display: block;
    }

    .header .menu-wrapper .menu>li {
        display: block;
        border-bottom: 1px solid #f2f2f2;
    }

    .header .menu-wrapper .form-search {
        width: 100%;
        margin-top: 14px;
    }

    .header .alt-search {
        display: block;
    }

    /* Keep the search button aligned & sized to the input pill */
    .header .alt-search .form-search {
        position: relative;
    }

    .header .alt-search .form-search .button {
        top: 50%;
        right: 6px;
        bottom: auto;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
        line-height: 1;
        font-size: 16px;
    }

    .header .alt-search .form-search .button .icon-search-outline:before {
        font-size: 16px;
        line-height: 1;
    }
}

/* Homepage style enhancements */
.main .banner-home .banner {
    min-height: 520px;
    position: relative;
    overflow: hidden;
    background-color: #111;
}

.main .banner-home .banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 22, 32, 0.22) 0%, rgba(16, 22, 32, 0.76) 100%);
    pointer-events: none;
}

.main .banner-home .banner .mySwiper,
.main .banner-home .banner .mySwiper .swiper-wrapper,
.main .banner-home .banner .mySwiper .swiper-slide {
    min-height: 520px;
}

.main .banner-home .banner .mySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.main .banner-home .banner .mySwiper .swiper-button-prev,
.main .banner-home .banner .mySwiper .swiper-button-next {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.main .banner-home .banner .mySwiper .swiper-button-prev::after,
.main .banner-home .banner .mySwiper .swiper-button-next::after {
    font-size: 22px;
}

.main .banner-home .banner .mySwiper .swiper-button-prev {
    left: 24px;
}

.main .banner-home .banner .mySwiper .swiper-button-next {
    right: 24px;
}

@media only screen and (max-width: 840px) {

    .main .banner-home .banner,
    .main .banner-home .banner .mySwiper,
    .main .banner-home .banner .mySwiper .swiper-wrapper,
    .main .banner-home .banner .mySwiper .swiper-slide {
        min-height: 360px;
    }

    .main .banner-home .banner .mySwiper .swiper-button-prev {
        left: 12px;
    }

    .main .banner-home .banner .mySwiper .swiper-button-next {
        right: 12px;
    }
}

.main .cate-product .cat-home-box {
    background: linear-gradient(180deg, #0b1420 0%, #152033 100%);
    box-shadow: 0 30px 70px rgba(2, 12, 26, 0.22);
    padding: 70px 40px;
}

.main .cate-product .cat-home-box .text-content {
    max-width: 420px;
    padding: 24px 30px 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
}

.main .cate-product .cat-home-box .text-content h2 {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.main .cate-product .cat-home-box .text-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.84);
}

.main .cate-product .cat-home-box .text-content a {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    margin-top: 22px;
    background: #fff;
    color: #f26521;
    border-radius: 40px;
    box-shadow: 0 12px 24px rgba(242, 101, 33, 0.18);
    transition: background 0.25s ease, color 0.25s ease;
}

.main .cate-product .cat-home-box .text-content a:hover {
    background: #f26521;
    color: #fff;
}

.main .cate-product .cat-home-box #cate-home-slider {
    padding-top: 0;
    padding-bottom: 0;
}

.main .cate-product .cat-home-box #cate-home-slider .cate-home-item a {
    border: none;
    padding: 32px 24px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    color: #1f2a36;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(19, 27, 39, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.main .cate-product .cat-home-box #cate-home-slider .cate-home-item a:hover {
    transform: translateY(-5px);
    background: #f26521;
    color: #fff;
}

.main .cate-product .cat-home-box #cate-home-slider .cate-home-item a i {
    font-size: 42px;
    margin-bottom: 18px;
}

.main .cate-product .cat-home-box #cate-home-slider .cate-home-item a span {
    font-size: 16px;
    font-weight: 600;
}

@media only screen and (max-width: 849px) {
    .main .cate-product .cat-home-box {
        padding: 28px 18px 34px;
    }

    .main .cate-product .cat-home-box .text-content {
        padding: 20px;
        margin-bottom: 20px;
    }

    .main .cate-product .cat-home-box .text-content h2 {
        font-size: 28px;
    }

    .main .cate-product .cat-home-box #cate-home-slider .cate-home-item a {
        min-height: 220px;
        padding: 24px 18px;
    }
}

.main .supplier .section-head {
    gap: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.main .supplier .section-head .section-title {
    width: auto;
    margin-bottom: 0;
    font-size: 30px;
    color: #fff;
}

.main .supplier .section-head .underline-nav {
    font-size: 14px;
    color: #fff;
    letter-spacing: .08em;
}

.main .supplier .is-relative #logo-slider-5 .item {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    margin: 0 8px;
}

.main .supplier .is-relative #logo-slider-5 .item img {
    height: 110px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0);
    transition: transform 0.35s ease;
}

.main .supplier .is-relative #logo-slider-5 .item:hover img {
    transform: scale(1.05);
}

.main .promotion .section-head {
    gap: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.main .promotion .section-head .section-title {
    width: auto;
    font-size: 30px;
    color: #1f1f1f;
}

.main .promotion .section-body {
    margin-top: 2.5rem;
}

.main .promotion .section-body .sliderPromotion .swiper-wrapper {
    align-items: stretch;
}

.main .promotion .section-body .sliderPromotion .item {
    height: auto;
    display: flex;
}

.main .promotion .section-body .sliderPromotion .item .card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.main .promotion .section-body .sliderPromotion .item .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(20, 28, 45, 0.14);
}

.main .promotion .section-body .sliderPromotion .item .card .card-img {
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main .promotion .section-body .sliderPromotion .item .card .card-img img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.main .promotion .section-body .sliderPromotion .item .card:hover .card-img img {
    transform: scale(1.02);
}

.main .promotion .section-body .sliderPromotion .item .card .badges-group {
    gap: 8px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
}

.main .promotion .section-body .sliderPromotion .item .card .badges-group>div {
    width: auto;
    min-width: 52px;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 12px;
    background-color: rgba(242, 101, 33, 0.95);
}

.main .promotion .section-body .sliderPromotion .item .card .card-body {
    padding: 24px 25px 28px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.main .promotion .section-body .sliderPromotion .item .card .card-body .entry-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 2.8em;
    height: auto;
}

.main .promotion .section-body .sliderPromotion .item .card .card-body p {
    color: #6d6d6d;
    margin-bottom: 1rem;
}

.main .promotion .section-body .sliderPromotion .item .card .card-body hr {
    margin-top: auto;
}

.main .promotion .section-body .sliderPromotion .item .card .card-body .box-justify {
    margin-top: 0;
}

.main .promotion .section-body .sliderPromotion .item .card .card-body .url {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.main .news .section-head {
    gap: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.main .news .section-head .section-title {
    width: auto;
    font-size: 30px;
    color: #fff;
}

.main .news .section-body .card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.main .news .section-body .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.16);
}

.main .news .section-body .card .card-img {
    overflow: hidden;
}

.main .news .section-body .card .card-img img {
    width: 100%;
    height: auto;
}

.main .news .section-body .card .card-img .overlay {
    background-color: rgba(242, 101, 33, 0.92);
    transition: height 0.25s ease;
}

.main .news .section-body .card .card-body {
    padding: 22px 24px;
}

.main .news .section-body .card .card-body .published {
    color: #f26521;
}

.main .news .section-body .card .card-body .entry-title {
    color: #1f1f1f;
}

.main .about .section-title {
    font-size: 32px;
    color: #1f1f1f;
}

.main .about .list-thumb.intro-home {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin : 0;
}

.main .about .list-thumb>li {
    padding-left: 90px;
    border-color: rgba(0, 0, 0, 0.06);
}

.main .about .list-thumb>li .thumb {
    width: 42px;
    height: 42px;
}

.main .about .list-thumb>li p {
    font-size: 15px;
    color: #404040;
}

.main .about .img img {
    border-radius: 24px;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.12);
}

@media screen and (max-width: 860px) {

    .main .promotion .section-head,
    .main .supplier .section-head,
    .main .news .section-head {
        justify-content: center;
        text-align: center;
    }

    .main .promotion .section-head .underline-nav,
    .main .supplier .section-head .underline-nav {
        margin-top: 12px;
    }
}

.main .cate-product .cat-home-box #cate-home-slider .cate-home-item a .cate-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 18px;
    display: block;
}

/* Card slider navigation */
.card-slider {
    position: relative;
}

.card-slider .slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.card-slider .slider-nav .slider-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.card-slider .slider-nav .slider-btn:hover {
    background: rgba(242, 101, 33, 0.9);
    transform: scale(1.05);
}

.card-slider .slider-nav .slider-btn i {
    font-size: 18px;
}

@media only screen and (max-width: 768px) {
    .card-slider .slider-nav {
        padding: 0 10px;
    }

    .card-slider .slider-nav .slider-btn {
        width: 38px;
        height: 38px;
    }
}

.decor-shape {
    width: 400px;
    height: 100%;
    transform: skew(-20deg);
    position: absolute;
    right: -130px;
    top: 0;
    background-color: #f26521;
    z-index: 1;
}

.decor-shape.overlay {
    z-index: 3;
    opacity: .2;
}

/* =========================================================
   ABOUT PAGE — responsive optimizations (all screens)
   ========================================================= */

/* ---- Page banner (shared banner-md) ---- */
.main .banner.banner-md h1 {
    font-size: 40px;
    line-height: 1.15;
}

@media only screen and (max-width: 992px) {
    .main .banner.banner-md {
        height: 320px;
    }

    .main .banner.banner-md h1 {
        font-size: 32px;
        margin-top: 60px;
    }
}

@media only screen and (max-width: 768px) {
    .main .banner.banner-md {
        height: 280px;
    }

    .main .banner.banner-md h1 {
        font-size: 26px;
    }

    .main .banner .pagi {
        left: 0;
        right: 0;
        text-align: left;
    }
}

@media only screen and (max-width: 480px) {
    .main .banner.banner-md {
        height: 220px;
    }

    .main .banner.banner-md h1 {
        font-size: 22px;
        margin-top: 40px;
    }
}

/* ---- Intro section (text + side image) ---- */
.main .about-page .row {
    align-items: center;
}

.main .about-page .side-img {
    max-width: 70%;
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.12);
}

@media only screen and (max-width: 992px) {
    .main .about-page .decor-shape {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .main .about-page {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .main .about-page .col-md-8.text-right {
        text-align: center;
        margin-top: 26px;
    }

    .main .about-page .side-img {
        max-width: 100%;
    }
}

/* ---- Video intro section ---- */
#about-video-intro {
    position: relative;
}

#about-video-intro[style*="background-image"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 28, 40, 0.55) 0%, rgba(20, 28, 40, 0.78) 100%);
    pointer-events: none;
}

#about-video-intro>.container {
    position: relative;
    z-index: 1;
}

#about-video-intro .wrapper-m {
    align-items: center;
}

#about-video-intro[style*="background-image"] .section-title,
#about-video-intro[style*="background-image"] p {
    color: #fff;
}

#about-video-intro .video-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

#about-video-intro .video-play:hover {
    transform: scale(1.06);
    background: rgba(242, 101, 33, 0.92);
    border-color: transparent;
}

#about-video-intro .video-play img {
    width: 30px;
    height: auto;
    margin: 0;
}

#about-video-intro .section-title {
    margin-top: 0;
}

@media only screen and (max-width: 768px) {
    #about-video-intro {
        padding-top: 48px;
        padding-bottom: 48px;
        text-align: center;
    }

    #about-video-intro .block-num.text-center {
        margin-bottom: 22px;
    }

    #about-video-intro .video-play {
        width: 78px;
        height: 78px;
    }
}

/* ---- Target / stats section ---- */
.main .target .section-title {
    color: #fff;
    margin-bottom: 44px;
}

.main .target .block-num {
    padding: 14px 16px;
}

.main .target .block-num .num {
    margin-bottom: 16px;
}

.main .target .block-num .num .thumb {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: inline-block;
}

.main .target .block-num>p:not(.num) {
    font-size: 16px;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

@media only screen and (max-width: 768px) {
    .main .target {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .main .target .section-title {
        margin-bottom: 28px;
    }

    .main .target .block-num {
        margin-bottom: 26px;
    }

    .main .target .row.wrapper-m>.block-num:last-child {
        margin-bottom: 0;
    }
}

/* ---- Partner logos ---- */
.main .partner .partner-list {
    align-items: stretch;
}

.main .partner .partner-list>div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.main .partner .partner-list img {
    width: auto;
    max-width: 100%;
    max-height: 70px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.main .partner .partner-list>div:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.06);
}

@media only screen and (max-width: 992px) {
    .main .partner .partner-list>div {
        width: 25%;
    }
}

@media only screen and (max-width: 768px) {
    .main .partner {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .main .partner .partner-list>div {
        width: 33.333%;
        padding: 14px;
    }
}

@media only screen and (max-width: 480px) {
    .main .partner .partner-list>div {
        width: 50%;
    }
}

/* =========================================================
   HOMEPAGE — responsive optimizations (all screens)
   ========================================================= */

/* ---- Hero banner heights for phones ---- */
@media only screen and (max-width: 576px) {

    .main .banner-home .banner,
    .main .banner-home .banner .mySwiper,
    .main .banner-home .banner .mySwiper .swiper-wrapper,
    .main .banner-home .banner .mySwiper .swiper-slide {
        min-height: 280px;
    }

    .main .banner-home .banner .mySwiper .swiper-button-prev,
    .main .banner-home .banner .mySwiper .swiper-button-next {
        width: 36px;
        height: 36px;
    }

    .main .banner-home .banner .mySwiper .swiper-button-prev::after,
    .main .banner-home .banner .mySwiper .swiper-button-next::after {
        font-size: 16px;
    }
}

/* ---- Section vertical rhythm on tablet / mobile ---- */
@media only screen and (max-width: 992px) {

    .main .supplier,
    .main .promotion,
    .main .news {
        padding-top: 54px;
        padding-bottom: 54px;
    }
}

@media only screen and (max-width: 768px) {

    .main .supplier,
    .main .promotion,
    .main .news,
    .main .about:not(.about-page) {
        padding-top: 44px;
        padding-bottom: 44px;
    }
}

/* ---- Category product box (tablet) ---- */
@media only screen and (min-width: 850px) and (max-width: 1100px) {
    .main .cate-product .cat-home-box {
        padding: 48px 30px;
    }

    .main .cate-product .cat-home-box .text-content {
        max-width: 100%;
    }
}

/* ---- Supplier logos on smaller screens ---- */
@media only screen and (max-width: 768px) {
    .main .supplier .is-relative #logo-slider-5 .item {
        padding: 14px;
    }

    .main .supplier .is-relative #logo-slider-5 .item img {
        height: 80px;
    }
}

/* ---- Promotion cards on phones ---- */
@media only screen and (max-width: 576px) {
    .main .promotion .section-body .sliderPromotion .item .card .card-img img {
        height: 220px;
    }

    .main .promotion .section-body .sliderPromotion .item .card .card-body {
        padding: 18px 18px 22px;
    }
}

/* ---- News cards on phones ---- */
@media only screen and (max-width: 576px) {
    .main .news .section-body .card .card-body {
        padding: 18px 20px;
    }
}

/* ---- Achievements / about block (homepage only) ---- */
@media only screen and (max-width: 1199px) {
    .main .about:not(.about-page) .decor-shape {
        display: none;
    }

    .main .about:not(.about-page) .col-xl-3.text-right {
        text-align: center;
        margin-bottom: 26px;
    }
}

@media only screen and (max-width: 480px) {
    .main .about:not(.about-page) .list-thumb>li {
        padding-left: 64px;
    }

    .main .about:not(.about-page) .list-thumb>li .thumb {
        width: 40px;
        height: 40px;
    }
}

/* =========================================================
   HEADER — responsive refinements (all screens)
   ========================================================= */
.header-brand .slogan {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}

/* Tablet / small laptop: tighten the top bar */
@media only screen and (max-width: 1100px) {
    .header .func-wrapper {
        padding: 12px 0;
    }

    .header .func-wrapper .container.box-justify {
        gap: 12px;
    }

    .header-meta {
        margin-left: auto;
    }
}

/* Phones */
@media only screen and (max-width: 576px) {
    .header .func-wrapper {
        padding: 10px 0;
    }

    .header-brand {
        gap: 10px;
    }

    .header-brand .logo img {
        max-height: 42px;
    }

    .header-meta {
        gap: 10px;
    }

    .header-hotline {
        font-size: 13px;
    }

    .header-hotline .hotline-label {
        display: none;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        padding: 9px 10px;
    }
}

/* =========================================================
   FOOTER — responsive refinements (all screens)
   ========================================================= */

/* Social icons (font-awesome <i>) → rounded buttons */
.footer .new-footer .footer-top-wrapper .footer-top .footer-social ul {
    gap: 12px;
}

.footer .new-footer .footer-top-wrapper .footer-top .footer-social ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    line-height: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 18px;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.footer .new-footer .footer-top-wrapper .footer-top .footer-social ul li a:hover {
    background: #f26521;
    color: #fff;
    transform: translateY(-2px);
}

/* Link hover states */
.footer .new-footer .footer-bottom-wrapper ul li a:hover,
.footer .new-footer .footer-column-3 .footer-menu li a:hover {
    color: #f26521;
}

/* Newsletter form: shrink-wrap the form box to the email input so the submit
   icon's anchor (right edge) always matches the input's right edge on every
   screen. The .wpcf7-spinner span (CF7 gives it width + margins ~72px even
   while hidden) is taken out of flow below so it no longer widens this box. */
.footer .new-footer .footer-top-wrapper .footer-top .news-letter-form {
    display: inline-block;
    position: relative;
    max-width: 100%;
}

/* Pin the submit (email icon) a consistent distance inside the input's right
   edge — replaces the fixed 96px that only lined up on desktop. */
.footer .new-footer .footer-top-wrapper .footer-top .news-letter-form input.wpcf7-submit {
    right: 18px;
}

/* Remove the CF7 spinner from normal flow so it stops stretching the form box
   past the input; overlay it on the submit icon during submission. */
.footer .new-footer .footer-top-wrapper .footer-top .news-letter-form .wpcf7-spinner {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

/* Footer link menu (LIÊN KẾT) */
.footer .new-footer .footer-column-3 .footer-menu li {
    margin-bottom: 14px;
}

.footer .new-footer .footer-column-3 .footer-menu li a {
    color: inherit;
    transition: color 0.2s ease;
}

/* Tablet: stacked newsletter + columns */
@media only screen and (max-width: 768px) {
    .footer .new-footer .footer-top-wrapper {
        padding: 24px 0;
    }

    .footer .new-footer .footer-top-wrapper .footer-top .display_flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer .new-footer .footer-top-wrapper .footer-top .news-letter-form-title,
    .footer .new-footer .footer-top-wrapper .footer-top .footer-social .title {
        margin-left: 0;
        margin-right: 0;
    }

    .footer .new-footer .footer-top-wrapper .footer-top .news-letter-form,
    .footer .new-footer .footer-top-wrapper .footer-top .news-letter-form .wpcf7-form-control-wrap {
        width: 100%;
    }

    .footer .new-footer .footer-top-wrapper .footer-top .news-letter-form input:not(.wpcf7-submit) {
        width: 100%;
    }

    .footer .new-footer .footer-bottom-wrapper {
        padding: 30px 0 10px;
    }

    .footer .new-footer .footer-column-3 {
        padding-left: 0;
    }

    .footer .new-footer .footer-bottom-wrapper .footer-column-1,
    .footer .new-footer .footer-bottom-wrapper .footer-column-2,
    .footer .new-footer .footer-bottom-wrapper .footer-column-3 {
        margin-bottom: 26px;
    }
}

/* Small phones */
@media only screen and (max-width: 480px) {
    .footer .new-footer .footer-bottom-wrapper ul li {
        font-size: 14px;
    }
}

/* =========================================================
   CONTACT PAGE — responsive optimizations (all screens)
   ========================================================= */

/* Contact info block spacing */
.dark-block address {
    margin-bottom: 36px;
}

.dark-block address .contact-line li {
    line-height: 1.6;
}

/* Social links → rounded buttons */
.dark-block .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    border-radius: 50%;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.dark-block .icon:hover {
    background: #f26521;
    color: #fff;
    transform: translateY(-2px);
}

/* Submit button — larger, comfortable touch target */
.form-contact .button-l {
    height: 46px;
    line-height: 44px;
    padding: 0 2.4rem;
}

/* ----- Contact Form 7 integration: giữ nguyên giao diện .form-contact -----
   CF7 bọc mỗi field trong <span class="wpcf7-form-control-wrap"> (inline) và
   chèn spinner/validation/response. Các rule dưới đây trung hoà để không vỡ layout. */
.form-contact .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.form-contact .wpcf7-not-valid-tip {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #e23b3b;
}

.form-contact .text-right {
    position: relative;
}

.form-contact .wpcf7-spinner {
    margin: 0 0 0 10px;
    vertical-align: middle;
}

/* Thông báo phản hồi của CF7 (là sibling sau .form-contact trong cùng <form>) */
.form-contact~.wpcf7-response-output {
    margin: 16px 0 0;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

/* Map */
.map-contact {
    line-height: 0;
}

.map-contact #map iframe,
.map-contact iframe {
    display: block;
    width: 100%;
}

/* ---- Align everything to a single breakpoint (840px) ----
   Columns use bootstrap col-md (side-by-side down to 768px), but the
   theme switches the dark panel to a light card at 840px. Stack the
   columns at 840px too so the panel never sits narrow-and-light. */
@media only screen and (max-width: 840px) {

    .section-light .row>.section.col-md-5,
    .section-light .row>.section.col-md-7 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    /* Light info card once stacked */
    .dark-block .icon {
        background: rgba(0, 0, 0, 0.06);
        color: #333;
    }

    .dark-block .icon:hover {
        background: #f26521;
        color: #fff;
    }

    /* Trim the big .section padding above the stacked form */
    .section.dark-block {
        padding-top: 32px;
        padding-bottom: 16px;
    }

    .section.dark-block+.section {
        padding-top: 8px;
        padding-bottom: 40px;
    }
}

@media only screen and (max-width: 767px) {

    .map-contact #map iframe,
    .map-contact iframe {
        height: 320px;
    }
}

@media only screen and (max-width: 480px) {
    .form-contact .text-right {
        text-align: center;
    }

    .form-contact .text-right .button-l {
        display: block;
        width: 100%;
    }

    .map-contact #map iframe,
    .map-contact iframe {
        height: 260px;
    }
}

/* =========================================================
   RECRUITMENT PAGE — responsive optimizations (all screens)
   ========================================================= */

/* Intro (why-section) */
.main .why-section .side-img {
    border-radius: 16px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.12);
}

@media only screen and (max-width: 767px) {
    .main .why-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .main .why-section .col-md-6:first-child {
        text-align: center;
        margin-bottom: 28px;
    }

    .main .why-section .note-reco .list-thumb {
        margin-top: 24px;
    }
}

@media only screen and (max-width: 480px) {
    .main .why-section .note-reco .list-thumb li {
        padding-left: 60px;
    }

    .main .why-section .note-reco .list-thumb li .thumb {
        width: 42px;
        height: auto;
    }
}

/* Accordions — apply button sits on the title row, far left */
.main .section-location .section-content .accordions .accordions_title {
    grid-template-columns: 1fr auto 20px;
    gap: 14px;
}

.main .section-location .section-content .accordions .accordions_title .btn-apply {
    height: 38px;
    line-height: 36px;
    padding: 0 1.4rem;
    font-size: 14px;
    white-space: nowrap;
}

/* Accordions — fix active state (JS toggles .active on .accordions_title) */
.main .section-location .section-content .accordions .accordions_title.active {
    background-color: #f26521;
}

.main .section-location .section-content .accordions .accordions_title.active .btn-apply {
    background-color: #fff;
    border-color: #fff;
    color: #f26521;
}

.main .section-location .section-content .accordions .accordions_title.active h3 {
    color: #fff;
}

.main .section-location .section-content .accordions .accordions_title.active span:after {
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
    color: #fff;
}

@media only screen and (max-width: 767px) {
    .main .section-location {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .main .section-location .section-content .accordions .accordions_content {
        padding: 18px 18px;
    }

    .main .section-location .section-content .accordions .accordions_title {
        gap: 10px;
        padding: 12px;
    }

    .main .section-location .section-content .accordions .accordions_title h3 {
        font-size: 16px;
    }

    .main .section-location .section-content .accordions .accordions_title .btn-apply {
        height: 34px;
        line-height: 32px;
        padding: 0 1rem;
        font-size: 13px;
    }
}

/* Apply button inside the accordion content */
.apply-action {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.apply-action .btn-apply {
    height: 44px;
    line-height: 42px;
    padding: 0 2.2rem;
}

/* Empty placeholder section should not add blank space */
.main .section-live:empty {
    padding: 0;
}

/* =========================================================
   APPLY POPUP (Fancybox inline) — application form
   ========================================================= */
.fancybox-apply .fancybox-content {
    padding: 30px 30px 34px;
    border-radius: 14px;
    max-width: 460px;
    width: 100%;
}

.apply-popup {
    width: 100%;
}

.apply-popup__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2a36;
}

.apply-popup__job {
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #f26521;
}

.apply-popup__job:empty {
    display: none;
}

.apply-field {
    margin-bottom: 14px;
}

.apply-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.apply-field label .req,
.apply-field__label .req {
    color: #e23b3b;
}

.apply-field label small {
    font-weight: 400;
    color: #8a8a8a;
}

.apply-form input[type="text"],
.apply-form input[type="tel"],
.apply-form input[type="email"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.apply-field__label .req {
    color: #e23b3b;
}

/* ---- Drag & drop file zone ---- */
.apply-dropzone {
    position: relative;
    display: block;
    min-height: 150px;
    margin-bottom: 0;
    border: 2px dashed #cdd3da;
    border-radius: 12px;
    background: #fafbfc;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.apply-dropzone:hover {
    border-color: #f26521;
    background: rgba(242, 101, 33, 0.04);
}

.apply-dropzone.is-dragover {
    border-color: #f26521;
    background: rgba(242, 101, 33, 0.08);
}

.apply-dropzone.has-file {
    border-style: solid;
    border-color: #1f9d55;
    background: rgba(31, 157, 85, 0.05);
}

/* The real control fills the whole zone so a click anywhere opens the file
   dialog and a drop anywhere is accepted natively. This also neutralises the
   <span class="wpcf7-form-control-wrap"> that Contact Form 7 generates, so
   swapping in a CF7 file tag later won't break the layout. */
.apply-dropzone .apply-dropzone__input,
.apply-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.apply-dropzone .wpcf7-form-control-wrap {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    padding: 0;
}

.apply-dropzone__ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    text-align: center;
    pointer-events: none;
}

.apply-dropzone__icon {
    margin-bottom: 4px;
    font-size: 32px;
    color: #f26521;
}

.apply-dropzone.has-file .apply-dropzone__icon {
    color: #1f9d55;
}

.apply-dropzone__text {
    font-size: 14px;
    color: #333;
}

.apply-dropzone__text strong {
    color: #f26521;
}

.apply-dropzone__hint {
    font-size: 12px;
    color: #8a8a8a;
}

.apply-dropzone__file {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #1f9d55;
    word-break: break-all;
}

.apply-dropzone__file:empty {
    display: none;
}

.apply-dropzone__remove {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    z-index: 3;
    transition: background-color 0.2s ease;
}

.apply-dropzone__remove:hover {
    background: #e23b3b;
}

.apply-dropzone.has-file .apply-dropzone__remove {
    display: inline-flex;
}

.apply-form input:focus {
    border-color: #f26521;
    box-shadow: 0 0 0 3px rgba(242, 101, 33, 0.12);
}

.apply-form__submit {
    width: 100%;
    height: 48px;
    line-height: 46px;
    margin-top: 8px;
}

.apply-form__msg {
    margin: 12px 0 0;
    font-size: 14px;
    min-height: 1em;
}

.apply-form__msg.is-error {
    color: #e23b3b;
}

.apply-form__msg.is-success {
    color: #1f9d55;
}

/* ----- Contact Form 7 integration cho form ứng tuyển (.apply-form) ----- */
.apply-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.apply-form .apply-dropzone .wpcf7-form-control-wrap {
    /* giữ lại định vị tuyệt đối cho ô file (đè rule chung ở trên) */
    position: absolute;
    inset: 0;
    width: auto;
}

.apply-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    color: #e23b3b;
}

.apply-form~.wpcf7-response-output {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.5;
}

@media only screen and (max-width: 480px) {
    .fancybox-apply .fancybox-content {
        padding: 22px 18px 26px;
    }

    .apply-popup__title {
        font-size: 20px;
    }
}

/* ===================== Product Listing Page (scoped under .pdp) ===================== */
.pdp {
    --pdp-primary: #f26521;
    /* màu cam chủ đạo của website */
    --pdp-primary-dark: #d9531a;
    --pdp-primary-soft: rgba(242, 101, 33, .10);
    --pdp-bg: #F8FAFC;
    --pdp-text: #1F2937;
    --pdp-muted: #6B7280;
    --pdp-border: #E5E7EB;
    --pdp-card: #FFFFFF;
    --pdp-radius: 12px;
    --pdp-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
    --pdp-shadow-hover: 0 12px 28px rgba(242, 101, 33, .16), 0 4px 10px rgba(16, 24, 40, .08);

    background: var(--pdp-bg);
    color: var(--pdp-text);
    padding: 36px 0 64px;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.pdp * {
    box-sizing: border-box;
}

/* ---------- Layout — category sidebar on the LEFT ---------- */
.pdp-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    position: relative;
}

.pdp-sidebar {
    grid-column: 1;
    grid-row: 1;
}

.pdp-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

/* ---------- Breadcrumb ---------- */
.pdp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--pdp-muted);
    margin-bottom: 14px;
}

.pdp-breadcrumb a {
    color: var(--pdp-muted);
    text-decoration: none;
    transition: color .15s;
}

.pdp-breadcrumb a:hover {
    color: var(--pdp-primary);
}

.pdp-breadcrumb i {
    font-size: 10px;
    opacity: .6;
}

.pdp-breadcrumb span {
    color: var(--pdp-text);
    font-weight: 600;
}

/* ---------- Page head ---------- */
.pdp-head {
    margin-bottom: 20px;
}

.pdp-title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--pdp-text);
    margin: 0 0 6px;
    letter-spacing: -.01em;
}

.pdp-count {
    font-size: 14px;
    color: var(--pdp-muted);
    margin: 0;
}

.pdp-count strong {
    color: var(--pdp-primary);
    font-weight: 700;
}

/* ---------- Toolbar ---------- */
.pdp-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--pdp-card);
    border: 1px solid var(--pdp-border);
    border-radius: var(--pdp-radius);
    padding: 12px;
    margin-bottom: 22px;
    box-shadow: var(--pdp-shadow);
}

.pdp-search {
    position: relative;
    flex: 1 1 240px;
    min-width: 200px;
}

.pdp-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pdp-muted);
    font-size: 14px;
    pointer-events: none;
}

.pdp-search input {
    padding-left: 35px !important;
    width: 100%;
    height: 44px;
    border: 1px solid var(--pdp-border);
    border-radius: 10px;
    padding: 0 14px 0 40px;
    font-size: 14px;
    color: var(--pdp-text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.pdp-search input::-webkit-search-decoration,
.pdp-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.pdp-search input:focus {
    outline: none;
    border-color: var(--pdp-primary);
    box-shadow: 0 0 0 3px var(--pdp-primary-soft);
}

.pdp-sort {
    position: relative;
    flex: 0 0 auto;
}

.pdp-sort select {
    appearance: none;
    -webkit-appearance: none;
    height: 44px;
    border: 1px solid var(--pdp-border);
    border-radius: 10px;
    background: #fff;
    color: var(--pdp-text);
    font-size: 14px;
    font-weight: 500;
    padding: 0 40px 0 16px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.pdp-sort select:focus {
    outline: none;
    border-color: var(--pdp-primary);
    box-shadow: 0 0 0 3px var(--pdp-primary-soft);
}

.pdp-sort i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pdp-muted);
    font-size: 13px;
    pointer-events: none;
}

.pdp-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--pdp-primary);
    background: var(--pdp-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
}

.pdp-filter-toggle:hover {
    background: var(--pdp-primary-dark);
}

/* ---------- Product grid — 3 sản phẩm / hàng (desktop) ---------- */
.pdp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ---------- Product card ---------- */
.pdp-card {
    display: flex;
    flex-direction: column;
    background: var(--pdp-card);
    border: 1px solid var(--pdp-border);
    border-radius: var(--pdp-radius);
    overflow: hidden;
    box-shadow: var(--pdp-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.pdp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pdp-shadow-hover);
    border-color: rgba(242, 101, 33, .35);
}

.pdp-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid var(--pdp-border);
    overflow: hidden;
}

.pdp-card__media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

.pdp-card:hover .pdp-card__media img {
    transform: scale(1.05);
}

.pdp-card__media::after {
    content: "Không có hình ảnh";
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    background: #f3f4f6;
    text-align: center;
    padding: 16px;
}

.pdp-card__media:not(:has(img))::after {
    display: flex;
}

.pdp-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--pdp-primary-soft);
    color: var(--pdp-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 5px 10px;
    border-radius: 999px;
}

.pdp-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.pdp-card__title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 12px;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdp-card__title a {
    color: var(--pdp-text);
    text-decoration: none;
    transition: color .15s;
}

.pdp-card__title a:hover {
    color: var(--pdp-primary);
}

.pdp-card__meta {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--pdp-muted);
}

.pdp-card__meta li {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.pdp-card__meta span {
    flex: 0 0 auto;
    color: #9ca3af;
}

.pdp-card__meta b {
    color: var(--pdp-text);
    font-weight: 600;
}

.pdp-card__meta a {
    color: var(--pdp-primary);
    font-weight: 600;
    text-decoration: none;
}

.pdp-card__meta a:hover {
    text-decoration: underline;
}

.pdp-card__btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border-radius: 10px;
    background: var(--pdp-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s, box-shadow .18s;
    border: none;
}

.pdp-card__btn:hover {
    background: var(--pdp-primary-dark);
    box-shadow: 0 6px 16px rgba(242, 101, 33, .3);
    color: #fff;
}

.pdp-card__btn i {
    font-size: 13px;
}

.pdp-empty {
    text-align: center;
    color: var(--pdp-muted);
    font-size: 15px;
    padding: 48px 16px;
    background: var(--pdp-card);
    border: 1px dashed var(--pdp-border);
    border-radius: var(--pdp-radius);
}

/* ---------- Service card extras (.pdp--service) ---------- */
.pdp-card__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--pdp-muted);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdp-card__actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.pdp-card__actions .pdp-card__btn {
    margin-top: 0;
    flex: 1 1 0;
    padding: 0 10px;
}

.pdp-card__btn--ghost {
    background: #fff;
    color: var(--pdp-primary) !important;
    border: 1.5px solid var(--pdp-primary);
}

.pdp-card__btn--ghost:hover {
    background: var(--pdp-primary-soft);
    color: var(--pdp-primary) !important;
    box-shadow: none;
}

/* ---------- Pagination ---------- */
.pdp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.pdp-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--pdp-border);
    border-radius: 10px;
    background: #fff;
    color: var(--pdp-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.pdp-page:hover {
    border-color: var(--pdp-primary);
    color: var(--pdp-primary);
}

.pdp-page.is-active {
    background: var(--pdp-primary);
    border-color: var(--pdp-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(242, 101, 33, .3);
}

.pdp-page.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.pdp-page--nav {
    color: var(--pdp-muted);
}

/* ---------- Sidebar ---------- */
.pdp-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pdp-sidebar__head {
    display: none;
    align-items: center;
    justify-content: space-between;
}

.pdp-sidebar__head h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.pdp-filter-close {
    width: 38px;
    height: 38px;
    border: none;
    background: #f3f4f6;
    border-radius: 10px;
    color: var(--pdp-text);
    font-size: 16px;
    cursor: pointer;
}

.pdp-filter {
    background: var(--pdp-card);
    border: 1px solid var(--pdp-border);
    border-radius: var(--pdp-radius);
    padding: 18px;
    box-shadow: var(--pdp-shadow);
}

.pdp-filter__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pdp-text);
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pdp-border);
}

.pdp-filter__list,
.pdp-filter__children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pdp-filter__list>li {
    margin: 0;
}

.pdp-filter__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-size: 14px;
    color: var(--pdp-text);
    text-decoration: none;
    border-radius: 8px;
    transition: color .15s, background .15s;
}

.pdp-filter__list a:hover {
    color: var(--pdp-primary);
    background: var(--pdp-primary-soft);
}

.pdp-filter__list .is-current>a,
.pdp-filter__list .is-current>.pdp-filter__row>a {
    color: var(--pdp-primary);
    font-weight: 700;
}

/* Accordion — parent row with caret toggle */
.pdp-filter__row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pdp-filter__row>a {
    flex: 1 1 auto;
    min-width: 0;
}

.pdp-filter__toggle {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--pdp-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: color .15s, background .15s;
}

.pdp-filter__toggle:hover {
    color: var(--pdp-primary);
    background: var(--pdp-primary-soft);
}

.pdp-filter__toggle i {
    transition: transform .25s ease;
}

.is-parent.is-open>.pdp-filter__row .pdp-filter__toggle i {
    transform: rotate(180deg);
}

/* Collapsible sub-list (smooth open/close) */
.pdp-filter__children {
    margin: 0;
    padding-left: 14px;
    border-left: 1px solid var(--pdp-border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .25s ease, margin .3s ease;
}

.is-parent.is-open>.pdp-filter__children {
    max-height: 420px;
    opacity: 1;
    margin: 2px 0 6px;
}

.pdp-filter__children a {
    font-size: 13.5px;
    color: var(--pdp-muted);
    padding: 6px 4px;
}

.pdp-filter__list--check a::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--pdp-border);
    border-radius: 5px;
    background: #fff;
    transition: all .15s;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 11px;
}

.pdp-filter__list--check a:hover::before {
    border-color: var(--pdp-primary);
}

.pdp-filter__list--check .is-active>a {
    color: var(--pdp-primary);
    font-weight: 700;
}

.pdp-filter__list--check .is-active>a::before {
    background-color: var(--pdp-primary);
    border-color: var(--pdp-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.5 3.5L13 4'/%3E%3C/svg%3E");
}

.pdp-count-pill {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--pdp-muted);
    background: #f3f4f6;
    border-radius: 999px;
    padding: 2px 9px;
}

/* Reset filters link */
.pdp-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: var(--pdp-primary);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--pdp-primary);
    border-radius: 999px;
    background: var(--pdp-primary-soft);
    transition: background .15s, color .15s;
}

.pdp-filter-reset:hover {
    background: var(--pdp-primary);
    color: #fff;
}

/* Promotion ribbon on card image */
.pdp-card__ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: var(--pdp-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(242, 101, 33, .35);
}

/* ---------- Mobile drawer plumbing ---------- */
.pdp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .5);
    z-index: 1040;
    opacity: 0;
    transition: opacity .25s;
    backdrop-filter: blur(1px);
}

.pdp-overlay.is-visible {
    opacity: 1;
}

.pdp .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ---------- Enquiry popup / form ---------- */
.pdp-popup {
    max-width: 480px;
    width: 100%;
}

.pdp-popup__inner {
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1F2937;
}

.pdp-popup__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1F2937;
}

.pdp-popup__desc {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 18px;
}

.pdp-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pdp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdp-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.pdp-field .req {
    color: #f26521;
}

.pdp-field input {
    height: 44px;
    width: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    color: #1F2937;
    background: #fff;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.pdp-field input:focus {
    outline: none;
    border-color: #f26521;
    box-shadow: 0 0 0 3px rgba(242, 101, 33, .12);
}

.pdp-form__submit {
    margin-top: 4px;
    height: 48px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: #f26521;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    transition: background .18s, box-shadow .18s;
}

.pdp-form__submit:hover {
    background: #d9531a;
    box-shadow: 0 6px 16px rgba(242, 101, 33, .3);
}

.pdp-form__msg {
    margin: 2px 0 0;
    font-size: 13px;
    min-height: 1em;
}

.pdp-form__msg.is-error {
    color: #e23b3b;
}

.pdp-form__msg.is-success {
    color: #1f9d55;
}

/* ----- Contact Form 7 integration cho form tư vấn (.pdp-form) ----- */
.pdp-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.pdp-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    color: #e23b3b;
}

.pdp-form~.wpcf7-response-output {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.5;
}

/* ===================== Product Listing — Responsive ===================== */
@media (max-width:1199.98px) {
    .pdp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:991.98px) {
    .pdp-layout {
        grid-template-columns: 1fr;
    }

    .pdp-main {
        grid-column: 1;
    }

    .pdp-filter-toggle {
        display: inline-flex;
    }

    .pdp-title {
        font-size: 26px;
    }

    .pdp-sidebar {
        position: fixed;
        top: 110px;
        left: 0;
        bottom: 0;
        z-index: 1050;
        width: 320px;
        max-width: 88vw;
        background: var(--pdp-bg);
        padding: 18px;
        margin: 0;
        overflow-y: auto;
        gap: 16px;
        transform: translateX(-100%);
        transition: transform .3s ease;
        box-shadow: 8px 0 30px rgba(16, 24, 40, .18);
    }

    .pdp-sidebar.is-open {
        transform: translateX(0);
    }

    .pdp-sidebar__head {
        display: flex;
    }
}

@media (max-width:767.98px) {
    .pdp {
        padding: 24px 0 48px;
    }

    .pdp-grid {
        grid-template-columns: 1fr;
    }

    .pdp-toolbar {
        padding: 10px;
    }

    .pdp-search {
        flex: 1 1 100%;
        order: 2;
    }

    .pdp-filter-toggle {
        order: 1;
        flex: 1 1 auto;
        justify-content: center;
    }

    .pdp-sort {
        order: 3;
        flex: 1 1 100%;
    }

    .pdp-sort select {
        width: 100%;
    }

    .pdp-card__media {
        height: 220px;
    }
}

/* ===================== Single Product (scoped under .psp) ===================== */
.psp {
    --psp-primary: #f26521;
    --psp-primary-dark: #d9531a;
    --psp-primary-soft: rgba(242, 101, 33, .10);
    --psp-bg: #F8FAFC;
    --psp-text: #1F2937;
    --psp-muted: #6B7280;
    --psp-border: #E5E7EB;
    --psp-radius: 14px;
    --psp-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);

    background: var(--psp-bg);
    color: var(--psp-text);
    padding: 28px 0 64px;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.psp * {
    box-sizing: border-box;
}

/* Breadcrumb */
.psp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--psp-muted);
    margin-bottom: 20px;
}

.psp-breadcrumb a {
    color: var(--psp-muted);
    text-decoration: none;
    transition: color .15s;
}

.psp-breadcrumb a:hover {
    color: var(--psp-primary);
}

.psp-breadcrumb i {
    font-size: 10px;
    opacity: .6;
}

.psp-breadcrumb span {
    color: var(--psp-text);
    font-weight: 600;
}

/* Layout: gallery + info */
.psp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--psp-border);
    border-radius: var(--psp-radius);
    padding: 28px;
    box-shadow: var(--psp-shadow);
}

/* Gallery */
.psp-gallery__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    background: #fff;
    border: 1px solid var(--psp-border);
    border-radius: 12px;
    overflow: hidden;
    padding: 24px;
}

.psp-gallery__main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform .35s ease;
}

.psp-gallery__main:hover img {
    transform: scale(1.04);
}

.psp-gallery__main--empty {
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
}

.psp-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--psp-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(242, 101, 33, .35);
}

.psp-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.psp-thumb {
    height: 74px;
    background: #fff;
    border: 1.5px solid var(--psp-border);
    border-radius: 10px;
    padding: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.psp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.psp-thumb:hover {
    border-color: var(--psp-primary);
}

.psp-thumb.is-active {
    border-color: var(--psp-primary);
    box-shadow: 0 0 0 3px var(--psp-primary-soft);
}

/* Info column */
.psp-info__cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--psp-primary);
    background: var(--psp-primary-soft);
    padding: 5px 12px;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 14px;
}

.psp-info__title {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--psp-text);
    margin: 0 0 18px;
}

.psp-info__intro {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
    margin: 0 0 22px;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--psp-border);
}

.psp-info__meta {
    list-style: none;
    margin: 0 0 22px;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--psp-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.psp-info__meta li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 15px;
}

.psp-info__meta span {
    flex: 0 0 130px;
    color: var(--psp-muted);
    font-size: 14px;
}

.psp-info__meta b {
    color: var(--psp-text);
    font-weight: 600;
}

.psp-info__meta a {
    color: var(--psp-primary);
    font-weight: 600;
    text-decoration: none;
}

.psp-info__meta a:hover {
    text-decoration: underline;
}

/* Promotion table */
.psp-promo {
    margin-bottom: 24px;
}

.psp-promo__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--psp-text);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.psp-promo__title i {
    color: var(--psp-primary);
}

.psp-promo__table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--psp-border);
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
}

.psp-promo__table th {
    background: var(--psp-primary-soft);
    color: var(--psp-primary);
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
}

.psp-promo__table td {
    padding: 10px 14px;
    border-top: 1px solid var(--psp-border);
    color: var(--psp-text);
}

.psp-promo__table tbody tr:nth-child(even) {
    background: #fafbfc;
}

/* Actions */
.psp-info__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.psp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .18s;
    border: 1.5px solid transparent;
}

.psp-btn--primary {
    background: var(--psp-primary);
    color: #fff !important;
    border-color: var(--psp-primary);
}

.psp-btn--primary:hover {
    background: var(--psp-primary-dark);
    border-color: var(--psp-primary-dark);
    box-shadow: 0 8px 20px rgba(242, 101, 33, .3);
    color: #fff;
}

.psp-btn--ghost {
    background: #fff;
    color: var(--psp-primary) !important;
    border-color: var(--psp-border);
}

.psp-btn--ghost:hover {
    border-color: var(--psp-primary);
    background: var(--psp-primary-soft);
}

/* Detail / description */
.psp-detail {
    background: #fff;
    border: 1px solid var(--psp-border);
    border-radius: var(--psp-radius);
    padding: 28px;
    margin-top: 28px;
    box-shadow: var(--psp-shadow);
}

.psp-detail__head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--psp-primary-soft);
}

.psp-detail__head h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: 14px;
}

.psp-detail__head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 2px;
    background: var(--psp-primary);
}

.psp-detail__body {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
}

.psp-detail__body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.psp-detail__body h2,
.psp-detail__body h3 {
    color: var(--psp-text);
}

.psp-detail__body a {
    color: var(--psp-primary);
}

/* Related */
.psp-related {
    margin-top: 44px;
}

.psp-related__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.psp-related__head h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: 14px;
}

.psp-related__head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 3px;
    background: var(--psp-primary);
}

/* Clear prev/next buttons in the header */
.psp-related__nav {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.psp-nav-btn {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--psp-border);
    border-radius: 50%;
    background: #fff;
    color: var(--psp-text);
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .12s;
}

.psp-nav-btn:hover {
    background: var(--psp-primary);
    color: #fff;
    border-color: var(--psp-primary);
    box-shadow: 0 8px 20px rgba(242, 101, 33, .35);
}

.psp-nav-btn:active {
    transform: scale(.94);
}

.psp-nav-btn.is-disabled {
    opacity: .35;
    cursor: default;
    box-shadow: none;
}

.psp-nav-btn.is-disabled:hover {
    background: #fff;
    color: var(--psp-text);
    border-color: var(--psp-border);
    box-shadow: none;
}

/* Related slider (Swiper) */
.psp-related-slider {
    position: relative;
    padding: 4px 2px 10px;
}

.psp-related-slider .swiper-slide {
    height: auto;
}

.psp-related-slider .swiper-slide .pdp-card {
    height: 100%;
    border: 1.5px solid #d7dce3;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.psp-related-slider .swiper-slide .pdp-card .pdp-card__body {
    background: transparent;
}

.psp-related-slider .swiper-slide .pdp-card:hover {
    border-color: var(--psp-primary);
    background: linear-gradient(180deg, #ffffff 0%, #fff3ec 100%);
}

/* "Xem chi tiết" — secondary (outline) button */
.psp-related-slider .pdp-card__btn {
    background: #fff;
    color: var(--psp-primary) !important;
    border: 1.5px solid var(--psp-primary);
}

.psp-related-slider .pdp-card__btn:hover {
    background: var(--psp-primary);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(242, 101, 33, .3);
}

/* Pagination dots */
.psp-related-pagi {
    position: static;
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.psp-related-pagi .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #cbd5e1;
    opacity: 1;
    border-radius: 999px;
    transition: width .2s, background .2s;
}

.psp-related-pagi .swiper-pagination-bullet-active {
    width: 26px;
    background: var(--psp-primary);
    border-radius: 999px;
}

@media (max-width:575.98px) {
    .psp-related__head {
        flex-wrap: wrap;
    }

    .psp-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* Responsive */
@media (max-width:991.98px) {
    .psp-layout {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 20px;
    }

    .psp-gallery__main {
        height: 340px;
    }

    .psp-info__title {
        font-size: 24px;
    }
}

@media (max-width:767.98px) {
    .psp {
        padding: 20px 0 48px;
    }

    .psp-gallery__main {
        height: 280px;
    }

    .psp-gallery__thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .psp-info__meta span {
        flex-basis: 110px;
    }

    .psp-info__actions .psp-btn {
        flex: 1 1 100%;
    }

    .psp-detail,
    .psp-detail__body {
        font-size: 14px;
    }
}

/* ===================== Supplier (scoped under .sup) ===================== */
.sup {
    --sup-primary: #f26521;
    --sup-primary-dark: #d9531a;
    --sup-primary-soft: rgba(242, 101, 33, .10);
    --sup-bg: #F8FAFC;
    --sup-text: #1F2937;
    --sup-muted: #6B7280;
    --sup-border: #E5E7EB;
    --sup-radius: 14px;
    --sup-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
    --sup-shadow-hover: 0 14px 30px rgba(242, 101, 33, .16), 0 6px 14px rgba(16, 24, 40, .08);

    background: var(--sup-bg);
    color: var(--sup-text);
    padding: 36px 0 64px;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.sup * {
    box-sizing: border-box;
}

/* ---- Listing head + search ---- */
.sup-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.sup-head__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -.01em;
}

.sup-head__count {
    font-size: 14px;
    color: var(--sup-muted);
    margin: 0;
}

.sup-head__count strong {
    color: var(--sup-primary);
}

.sup-search {
    position: relative;
    flex: 0 1 320px;
    min-width: 220px;
}

.sup-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sup-muted);
    font-size: 14px;
    pointer-events: none;
}

.sup-search input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--sup-border);
    border-radius: 12px;
    padding: 0 14px 0 40px;
    font-size: 14px;
    color: var(--sup-text);
    background: #fff;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.sup-search input:focus {
    outline: none;
    border-color: var(--sup-primary);
    box-shadow: 0 0 0 3px var(--sup-primary-soft);
}

/* ---- Listing grid + cards ---- */
.sup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.sup-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sup-border);
    border-radius: var(--sup-radius);
    overflow: hidden;
    box-shadow: var(--sup-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.sup-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sup-shadow-hover);
    border-color: rgba(242, 101, 33, .35);
}

.sup-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: #fff;
    padding: 24px;
    border-bottom: 1px solid var(--sup-border);
    overflow: hidden;
}

.sup-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

.sup-card:hover .sup-card__logo img {
    transform: scale(1.06);
}

.sup-card__noimg {
    font-size: 18px;
    font-weight: 700;
    color: var(--sup-primary);
    text-align: center;
}

.sup-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.sup-card__name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.sup-card__name a {
    color: var(--sup-text);
    text-decoration: none;
    transition: color .15s;
}

.sup-card__name a:hover {
    color: var(--sup-primary);
}

.sup-card__origin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sup-primary);
    background: var(--sup-primary-soft);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.sup-card__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--sup-muted);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sup-card__count {
    font-size: 12.5px;
    color: var(--sup-muted);
    margin-bottom: 14px;
}

.sup-card__btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 10px;
    background: var(--sup-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s, box-shadow .18s;
}

.sup-card__btn:hover {
    background: var(--sup-primary-dark);
    box-shadow: 0 6px 16px rgba(242, 101, 33, .3);
    color: #fff;
}

.sup-card__btn i {
    transition: transform .18s;
}

.sup-card__btn:hover i {
    transform: translateX(4px);
}

.sup-empty {
    text-align: center;
    color: var(--sup-muted);
    font-size: 15px;
    padding: 48px 16px;
    background: #fff;
    border: 1px dashed var(--sup-border);
    border-radius: var(--sup-radius);
}

/* ---- Detail ---- */
.sup-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--sup-muted);
    margin-bottom: 22px;
}

.sup-breadcrumb a {
    color: var(--sup-muted);
    text-decoration: none;
    transition: color .15s;
}

.sup-breadcrumb a:hover {
    color: var(--sup-primary);
}

.sup-breadcrumb i {
    font-size: 10px;
    opacity: .6;
}

.sup-breadcrumb span {
    color: var(--sup-text);
    font-weight: 600;
}

.sup-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--sup-border);
    border-radius: var(--sup-radius);
    padding: 28px;
    box-shadow: var(--sup-shadow);
    margin-bottom: 32px;
}

.sup-hero__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: #fff;
    border: 1px solid var(--sup-border);
    border-radius: 12px;
    padding: 24px;
    overflow: hidden;
}

.sup-hero__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sup-hero__noimg {
    font-size: 22px;
    font-weight: 700;
    color: var(--sup-primary);
    text-align: center;
}

.sup-hero__name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -.01em;
}

.sup-hero__meta {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.sup-hero__meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    color: var(--sup-text);
}

.sup-hero__meta i {
    color: var(--sup-primary);
}

.sup-hero__meta span {
    color: var(--sup-muted);
}

.sup-hero__desc {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
    margin: 0 0 20px;
}

.sup-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    background: var(--sup-primary);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .18s, box-shadow .18s;
}

.sup-hero__btn:hover {
    background: var(--sup-primary-dark);
    box-shadow: 0 8px 20px rgba(242, 101, 33, .3);
    color: #fff;
}

.sup-section {
    margin-bottom: 40px;
}

.sup-section__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    position: relative;
    padding-left: 14px;
}

.sup-section__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 5px;
    border-radius: 3px;
    background: var(--sup-primary);
}

/* Gallery */
.sup-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.sup-gallery__item {
    position: relative;
    display: block;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sup-border);
    background: #fff;
}

.sup-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.sup-gallery__item:hover img {
    transform: scale(1.06);
}

.sup-gallery__novid {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #1f2937;
    color: #fff;
    font-size: 30px;
}

.sup-gallery__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.sup-gallery__play i {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 101, 33, .92);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    padding-left: 3px;
    transition: transform .18s;
}

.sup-gallery__item.is-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .25);
}

.sup-gallery__item:hover .sup-gallery__play i {
    transform: scale(1.08);
}

/* WYSIWYG content */
.sup-content {
    background: #fff;
    border: 1px solid var(--sup-border);
    border-radius: var(--sup-radius);
    padding: 28px;
    box-shadow: var(--sup-shadow);
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
}

.sup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.sup-content h2,
.sup-content h3 {
    color: var(--sup-text);
}

.sup-content a {
    color: var(--sup-primary);
}

/* Reuse .pdp-grid/.pdp-card inside supplier detail */
.sup .pdp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sup .pdp-card {
    border: 1.5px solid #d7dce3;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.sup .pdp-card .pdp-card__body {
    background: transparent;
}

.sup .pdp-card:hover {
    border-color: var(--sup-primary);
    background: linear-gradient(180deg, #ffffff 0%, #fff3ec 100%);
}

.sup .pdp-card__btn {
    background: var(--sup-primary);
    color: #fff !important;
    border: none;
}

.sup .pdp-card__btn:hover {
    background: var(--sup-primary-dark);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(242, 101, 33, .3);
}

/* Responsive */
@media (max-width:1199.98px) {
    .sup-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sup-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .sup .pdp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:991.98px) {
    .sup-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 20px;
    }

    .sup-hero__logo {
        height: 200px;
    }

    .sup-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sup-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .sup .pdp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:575.98px) {
    .sup {
        padding: 24px 0 48px;
    }

    .sup-head {
        flex-direction: column;
        align-items: stretch;
    }

    .sup-search {
        flex-basis: auto;
    }

    .sup-grid {
        grid-template-columns: 1fr;
    }

    .sup-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .sup .pdp-grid {
        grid-template-columns: 1fr;
    }

    .sup-hero__name {
        font-size: 23px;
    }

    .sup-gallery__item {
        height: 150px;
    }
}

/* ===================== Toast thông báo (Contact Form 7) ===================== */
.mt-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    pointer-events: none;
}

.mt-toast__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    max-width: 360px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid #1f9d55;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .18);
    color: #1F2937;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;
    transform: translateX(120%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s;
}

.mt-toast__item.is-show {
    transform: translateX(0);
    opacity: 1;
}

.mt-toast__item--error {
    border-left-color: #e23b3b;
}

.mt-toast__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f9d55;
    color: #fff;
    font-size: 14px;
}

.mt-toast__item--error .mt-toast__icon {
    background: #e23b3b;
}

.mt-toast__msg {
    flex: 1;
}

@media (max-width:575.98px) {
    .mt-toast {
        top: auto;
        bottom: 84px;
        right: 12px;
        left: 12px;
    }

    .mt-toast__item {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}

/* ===================== Zalo floating contact button ===================== */
#button-contact-vr {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 99998;
}

#button-contact-vr .button-contact {
    position: relative;
}

/* Nhãn chữ trượt ra mỗi 30s */
#button-contact-vr .zalo-vr-label {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(-20px);
    white-space: nowrap;
    background: #0068ff;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 16px;
    border-radius: 30px;
    box-shadow: 0 6px 18px rgba(0, 104, 255, .4);
    opacity: 0;
    pointer-events: none;
    animation: zalo-vr-label 30s infinite;
}

#button-contact-vr .zalo-vr-label::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #0068ff;
    border-radius: 2px;
}

@keyframes zalo-vr-label {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
        pointer-events: none;
    }

    3% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
        pointer-events: auto;
    }

    15% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
        pointer-events: auto;
    }

    18% {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
        pointer-events: none;
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
        pointer-events: none;
    }
}

#button-contact-vr .phone-vr {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zalo-vr-shake 1.2s infinite;
    transform-origin: center bottom;
}

#button-contact-vr .phone-vr-circle-fill {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    background: rgba(0, 128, 255, .55);
    animation: zalo-vr-circle-fill 2.3s infinite ease-in-out;
}

#button-contact-vr .phone-vr-img-circle {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0068ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 104, 255, .45);
    animation: zalo-vr-img-circle 1s infinite ease-in-out;
}

#button-contact-vr .phone-vr-img-circle a {
    display: flex;
    width: 34px;
    height: 34px;
}

#button-contact-vr .phone-vr-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes zalo-vr-shake {

    0%,
    50%,
    100% {
        transform: rotate(0);
    }

    10%,
    30% {
        transform: rotate(-12deg);
    }

    20%,
    40% {
        transform: rotate(12deg);
    }
}

@keyframes zalo-vr-circle-fill {
    0% {
        transform: scale(1);
        opacity: .6;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes zalo-vr-img-circle {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@media (max-width:575.98px) {
    #button-contact-vr {
        left: 12px;
        bottom: 12px;
    }

    #button-contact-vr .phone-vr {
        width: 54px;
        height: 54px;
    }

    #button-contact-vr .phone-vr-circle-fill {
        width: 54px;
        height: 54px;
        margin: -27px 0 0 -27px;
    }

    #button-contact-vr .phone-vr-img-circle {
        width: 46px;
        height: 46px;
    }
}

/* ===================== Search results (scoped under .srch) ===================== */
.srch {
    --s-primary: #f26521;
    --s-primary-dark: #d9531a;
    --s-primary-soft: rgba(242, 101, 33, .10);
    --s-bg: #F8FAFC;
    --s-text: #1F2937;
    --s-muted: #6B7280;
    --s-border: #E5E7EB;
    --s-radius: 14px;
    --s-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
    --s-shadow-hover: 0 14px 30px rgba(242, 101, 33, .16), 0 6px 14px rgba(16, 24, 40, .08);

    background: var(--s-bg);
    color: var(--s-text);
    padding: 36px 0 64px;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.srch * {
    box-sizing: border-box;
}

/* Head + refine form */
.srch-head {
    background: #fff;
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius);
    padding: 24px;
    box-shadow: var(--s-shadow);
    margin-bottom: 30px;
}

.srch-head__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -.01em;
}

.srch-head__title span {
    color: var(--s-primary);
}

.srch-head__count {
    font-size: 14px;
    color: var(--s-muted);
    margin: 0 0 18px;
}

.srch-head__count strong {
    color: var(--s-primary);
}

.srch-form {
    position: relative;
    display: flex;
    align-items: center;
}

.srch-form i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--s-muted);
    font-size: 15px;
    pointer-events: none;
}

.srch-form input {
        padding-left: 35px !important;
    flex: 1;
    height: 52px;
    border: 1px solid var(--s-border);
    border-radius: 12px 0 0 12px;
    border-right: none;
    padding: 0 16px 0 44px;
    font-size: 15px;
    color: var(--s-text);
    background: #fff;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.srch-form input:focus {
    outline: none;
    border-color: var(--s-primary);
    box-shadow: 0 0 0 3px var(--s-primary-soft);
}

.srch-form button {
    height: 52px;
    padding: 0 26px;
    border: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    background: var(--s-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    transition: background .18s;
}

.srch-form button:hover {
    background: var(--s-primary-dark);
}

/* Sections */
.srch-section {
    margin-bottom: 36px;
}

.srch-section__title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
}

.srch-section__title i {
    color: var(--s-primary);
}

/* Grid + cards */
.srch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.srch-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius);
    overflow: hidden;
    box-shadow: var(--s-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.srch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--s-shadow-hover);
    border-color: rgba(242, 101, 33, .35);
}

.srch-card__media {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    background: #f3f4f6;
    border-bottom: 1px solid var(--s-border);
}

.srch-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.srch-card__media--contain {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.srch-card__media--contain img {
    object-fit: contain;
}

.srch-card:hover .srch-card__media img {
    transform: scale(1.05);
}

.srch-card__noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #cbd5e1;
    font-size: 34px;
}

.srch-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--s-primary-soft);
    color: var(--s-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
}

.srch-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.srch-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srch-card__title a {
    color: var(--s-text);
    text-decoration: none;
    transition: color .15s;
}

.srch-card__title a:hover {
    color: var(--s-primary);
}

.srch-card__date,
.srch-card__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--s-muted);
    margin-bottom: 10px;
}

.srch-card__desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--s-muted);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srch-card__btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--s-primary);
    text-decoration: none;
}

.srch-card__btn i {
    transition: transform .18s;
}

.srch-card__btn:hover i {
    transform: translateX(4px);
}

/* Empty */
.srch-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px dashed var(--s-border);
    border-radius: var(--s-radius);
}

.srch-empty i {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.srch-empty p {
    font-size: 17px;
    font-weight: 600;
    color: var(--s-text);
    margin: 0 0 6px;
}

.srch-empty span {
    font-size: 14px;
    color: var(--s-muted);
}

/* Pagination (paginate_links output) */
.srch-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.srch-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--s-border);
    border-radius: 10px;
    background: #fff;
    color: var(--s-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.srch-pagination a.page-numbers:hover {
    border-color: var(--s-primary);
    color: var(--s-primary);
}

.srch-pagination .page-numbers.current {
    background: var(--s-primary);
    border-color: var(--s-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(242, 101, 33, .3);
}

.srch-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* Responsive */
@media (max-width:1199.98px) {
    .srch-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:991.98px) {
    .srch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:575.98px) {
    .srch {
        padding: 24px 0 48px;
    }

    .srch-grid {
        grid-template-columns: 1fr;
    }

    .srch-form button {
        padding: 0 18px;
    }

    .srch-head__title {
        font-size: 20px;
    }
}

/* ===================== Single Tin tức (scoped under .tnd) ===================== */
.tnd {
    --t-primary: #f26521;
    --t-primary-dark: #d9531a;
    --t-primary-soft: rgba(242, 101, 33, .10);
    --t-bg: #F8FAFC;
    --t-text: #1F2937;
    --t-muted: #6B7280;
    --t-border: #E5E7EB;
    --t-radius: 14px;
    --t-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);

    background: var(--t-bg);
    color: var(--t-text);
    padding: 30px 0 64px;
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.tnd * {
    box-sizing: border-box;
}

.tnd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--t-muted);
    margin-bottom: 20px;
}

.tnd-breadcrumb a {
    color: var(--t-muted);
    text-decoration: none;
    transition: color .15s;
}

.tnd-breadcrumb a:hover {
    color: var(--t-primary);
}

.tnd-breadcrumb i {
    font-size: 10px;
    opacity: .6;
}

.tnd-breadcrumb span {
    color: var(--t-text);
    font-weight: 600;
}

.tnd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

/* Article */
.tnd-main {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    padding: 30px;
    box-shadow: var(--t-shadow);
    min-width: 0;
}

.tnd-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--t-muted);
}

.tnd-meta__cat {
    background: var(--t-primary-soft);
    color: var(--t-primary);
    font-weight: 600;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    text-decoration: none;
}

.tnd-meta__date,
.tnd-meta__view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tnd-title {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 22px;
    color: var(--t-text);
}

.tnd-thumb {
    margin: 0 0 24px;
    border-radius: 12px;
    overflow: hidden;
}

.tnd-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.tnd-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.tnd-content p {
    margin: 0 0 18px;
}

.tnd-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 8px 0;
}

.tnd-content h2,
.tnd-content h3,
.tnd-content h4 {
    color: var(--t-text);
    font-weight: 700;
    margin: 28px 0 12px;
}

.tnd-content h2 {
    font-size: 23px;
}

.tnd-content h3 {
    font-size: 20px;
}

.tnd-content a {
    color: var(--t-primary);
    text-decoration: underline;
}

.tnd-content ul,
.tnd-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.tnd-content li {
    margin-bottom: 8px;
}

.tnd-content blockquote {
    margin: 0 0 18px;
    padding: 14px 20px;
    border-left: 4px solid var(--t-primary);
    background: var(--t-primary-soft);
    border-radius: 0 10px 10px 0;
    color: #374151;
}

.tnd-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--t-border);
    font-size: 13px;
}

.tnd-tags__label {
    font-weight: 600;
    color: var(--t-muted);
}

.tnd-tags a {
    color: var(--t-primary);
    text-decoration: none;
    background: var(--t-primary-soft);
    padding: 4px 10px;
    border-radius: 999px;
    transition: background .15s;
}

.tnd-tags a:hover {
    background: var(--t-primary);
    color: #fff;
}

.tnd-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 14px;
}

.tnd-share span {
    font-weight: 600;
    color: var(--t-muted);
}

.tnd-share a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.tnd-share a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

.tnd-share__fb {
    background: #1877f2;
}

.tnd-share__zalo {
    background: #0068ff;
}

.tnd-share__copy {
    background: #6b7280;
    position: relative;
}

.tnd-share__copy.is-copied::after {
    content: "Đã sao chép!";
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
}

/* Sidebar */
.tnd-side {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tnd-widget {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    padding: 20px;
    box-shadow: var(--t-shadow);
}

.tnd-widget__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 16px;
    position: relative;
    padding-left: 13px;
}

.tnd-widget__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 2px;
    background: var(--t-primary);
}

.tnd-recent {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tnd-recent li {
    display: flex;
    gap: 12px;
}

.tnd-recent__thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 62px;
    border-radius: 9px;
    overflow: hidden;
    background: #f3f4f6;
    display: block;
}

.tnd-recent__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tnd-recent__noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #cbd5e1;
    font-size: 20px;
}

.tnd-recent__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.tnd-recent__text a {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--t-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}

.tnd-recent__text a:hover {
    color: var(--t-primary);
}

.tnd-recent__text span {
    font-size: 12px;
    color: var(--t-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tnd-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tnd-cats li+li {
    border-top: 1px solid var(--t-border);
}

.tnd-cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 2px;
    font-size: 14px;
    color: var(--t-text);
    text-decoration: none;
    transition: color .15s;
}

.tnd-cats a:hover {
    color: var(--t-primary);
}

.tnd-cats b {
    font-size: 12px;
    font-weight: 600;
    color: var(--t-muted);
    background: #f3f4f6;
    border-radius: 999px;
    padding: 2px 9px;
}

.tnd-cats .is-current>a {
    color: var(--t-primary);
    font-weight: 700;
}

/* Related */
.tnd-related {
    margin-top: 42px;
}

.tnd-related__head {
    margin-bottom: 22px;
}

.tnd-related__head h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: 14px;
}

.tnd-related__head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 3px;
    background: var(--t-primary);
}

.tnd-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.tnd-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    overflow: hidden;
    box-shadow: var(--t-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tnd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(242, 101, 33, .16), 0 6px 14px rgba(16, 24, 40, .08);
    border-color: rgba(242, 101, 33, .35);
}

.tnd-card__media {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    background: #f3f4f6;
}

.tnd-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.tnd-card:hover .tnd-card__media img {
    transform: scale(1.05);
}

.tnd-card__noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #cbd5e1;
    font-size: 34px;
}

.tnd-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--t-primary-soft);
    color: var(--t-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
}

.tnd-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.tnd-card__date {
    font-size: 12.5px;
    color: var(--t-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.tnd-card__title {
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tnd-card__title a {
    color: var(--t-text);
    text-decoration: none;
    transition: color .15s;
}

.tnd-card__title a:hover {
    color: var(--t-primary);
}

.tnd-card__desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--t-muted);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tnd-card__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--t-primary);
    text-decoration: none;
}

.tnd-card__more i {
    transition: transform .18s;
}

.tnd-card__more:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width:991.98px) {
    .tnd-layout {
        grid-template-columns: 1fr;
    }

    .tnd-side {
        position: static;
    }

    .tnd-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:767.98px) {
    .tnd {
        padding: 22px 0 48px;
    }

    .tnd-main {
        padding: 20px;
    }

    .tnd-title {
        font-size: 24px;
    }

    .tnd-content {
        font-size: 15px;
    }

    .tnd-related__grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== Taxonomy danh_muc (news category) — reuse .tnd ===================== */
.tnc-head {
    margin-bottom: 20px;
}

.tnc-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -.01em;
}

.tnc-count {
    font-size: 14px;
    color: var(--t-muted);
    margin: 0;
}

.tnc-count strong {
    color: var(--t-primary);
}

.tnc-desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--t-muted);
    margin: 8px 0 0;
    max-width: 760px;
}

.tnc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.tnc-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid var(--t-border);
    border-radius: 999px;
    background: #fff;
    color: var(--t-text);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.tnc-pill span {
    font-size: 11.5px;
    color: var(--t-muted);
    background: #f3f4f6;
    border-radius: 999px;
    padding: 1px 8px;
    transition: all .15s;
}

.tnc-pill:hover {
    border-color: var(--t-primary);
    color: var(--t-primary);
}

.tnc-pill.is-active {
    background: var(--t-primary);
    border-color: var(--t-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(242, 101, 33, .3);
}

.tnc-pill.is-active span {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

.tnc-grid {
    margin-bottom: 10px;
}

.tnc-empty {
    text-align: center;
    padding: 56px 20px;
    background: #fff;
    border: 1px dashed var(--t-border);
    border-radius: var(--t-radius);
}

.tnc-empty i {
    font-size: 38px;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.tnc-empty p {
    font-size: 16px;
    font-weight: 600;
    color: var(--t-text);
    margin: 0;
}

@media (max-width:575.98px) {
    .tnc-title {
        font-size: 23px;
    }
}

/* Ẩn hẳn gạch trang trí (:after) của tiêu đề mục Tin tức trên tablet & mobile */
@media (max-width:991.98px) {
    .main .news .section-head .section-title.stroke-bot:after,
    .main .news .section-head .section-title.stroke-top:after {
        display: none;
    }
}