/* Hoàng Phát Agro - responsive */
@media (max-width: 767px) {
    .figma-topbar {
        height: auto;
        min-height: 42px;
    }

    .figma-topbar-inner {
        width: 100%;
        height: auto;
        min-height: 42px;
        padding: 7px 12px;
        gap: 6px 16px;
        flex-wrap: wrap;
    }

    .figma-topbar-item {
        max-width: 100%;
        font-size: 11px;
        line-height: 16px;
    }

    .figma-topbar-item span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .figma-topbar-right {
        width: 100%;
        gap: 10px;
        justify-content: space-between;
    }

    .figma-topbar-email {
        flex: 1 1 auto;
        min-width: 0;
    }

    .figma-topbar-languages {
        gap: 5px;
        margin-left: auto;
    }

    .figma-language-btn {
        width: 30px;
        min-width: 30px;
        height: 26px;
        min-height: 26px;
        padding: 0;
        border-radius: 6px;
    }

    .figma-language-icon {
        min-width: 0;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        font-size: 10px;
        line-height: 1;
    }

    .figma-language-btn.is-active .figma-language-icon {
        background: transparent;
    }

    .figma-language-name {
        display: none;
    }
}


/* Figma Group 44 - hero responsive */
@media (max-width: 1199px) {
    .figma-hero-content {
        width: calc(100% - 48px);
    }

    .figma-hero-copy {
        width: 48%;
        top: 18%;
        gap: 16px;
    }

    .figma-hero-text h1,
    .figma-hero-text h2 {
        font-size: clamp(28px, 3.4vw, 42px);
        line-height: 1.35;
    }

    .figma-hero-text p {
        font-size: clamp(14px, 1.6vw, 18px);
        line-height: 1.5;
    }

    .figma-hero-btn {
        min-width: auto;
        min-height: 52px;
        padding: 13px 20px;
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 767px) {
    .figma-hero-image {
        aspect-ratio: 768 / 600;
    }

    .figma-hero-image img {
        object-position: center center;
    }

    .figma-hero-content {
        width: 100%;
        padding: 0 18px;
        display: flex;
        align-items: flex-start;
    }

    .figma-hero-copy {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 460px);
        margin-top: 8%;
        gap: 12px;
    }

    .figma-hero-subtitle {
        font-size: 14px;
        line-height: 20px;
    }

    .figma-hero-text h1,
    .figma-hero-text h2 {
        font-size: clamp(25px, 7vw, 36px);
        line-height: 1.25;
    }

    .figma-hero-text p {
        font-size: 14px;
        line-height: 21px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .figma-hero-btn {
        min-height: 46px;
        padding: 10px 16px;
        font-size: 15px;
        line-height: 22px;
    }
}

@media (max-width: 480px) {
    .figma-hero-copy {
        margin-top: 7%;
        width: 72%;
    }

    .figma-hero-text h1,
    .figma-hero-text h2 {
        font-size: clamp(22px, 6.5vw, 30px);
    }

    .figma-hero-text p {
        font-size: 13px;
        line-height: 19px;
        -webkit-line-clamp: 2;
    }

    .figma-hero-btn {
        min-height: 42px;
        padding: 9px 14px;
        font-size: 14px;
        line-height: 20px;
    }
}


/* Figma Frame 2071857932 - about responsive */
@media (min-width: 1600px) {
    .figma-about-agro__inner {
        left: -20.5px;
    }
}

@media (max-width: 1499px) {
    .figma-about-agro__inner {
        width: calc(100% - 64px);
        min-height: 0;
        gap: 36px;
    }

    .figma-about-agro__visual {
        width: calc(50% - 18px);
        height: auto;
        aspect-ratio: 1 / 1;
        flex: 0 1 calc(50% - 18px);
    }

    .figma-about-agro__content {
        width: calc(50% - 18px);
        flex: 0 1 calc(50% - 18px);
        gap: 42px;
    }

    .figma-about-agro__copy {
        width: 100%;
        gap: 18px;
    }

    .figma-about-agro__eyebrow {
        font-size: 28px;
        line-height: 42px;
    }

    .figma-about-agro__heading h2 {
        font-size: clamp(38px, 3.5vw, 53.2117px);
        line-height: 1.35;
    }

    .figma-about-agro__desc {
        font-size: 17px;
        line-height: 26px;
    }

    .figma-about-agro__criteria {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 30px;
        row-gap: 30px;
    }
}

@media (max-width: 991px) {
    .figma-about-agro {
        padding: 38px 0 72px;
    }

    .figma-about-agro__inner {
        width: calc(100% - 40px);
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .figma-about-agro__visual {
        width: min(100%, 689px);
        flex: none;
        margin: 0 auto;
    }

    .figma-about-agro__content {
        width: 100%;
        flex: none;
        gap: 36px;
    }

    .figma-about-agro__heading {
        max-width: none;
    }

    .figma-about-agro__criteria {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .figma-about-agro {
        padding: 28px 0 52px;
    }

    .figma-about-agro__inner {
        width: calc(100% - 28px);
        gap: 24px;
    }

    .figma-about-agro__content {
        gap: 28px;
    }

    .figma-about-agro__copy {
        gap: 12px;
    }

    .figma-about-agro__eyebrow {
        font-size: 22px;
        line-height: 32px;
    }

    .figma-about-agro__heading h2 {
        font-size: 34px;
        line-height: 44px;
    }

    .figma-about-agro__desc {
        font-size: 15px;
        line-height: 23px;
    }

    .figma-about-agro__criteria {
        grid-template-columns: 1fr;
        row-gap: 22px;
    }

    .figma-about-agro__criterion {
        gap: 14px;
    }

    .figma-about-agro__criterion-icon {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        padding: 9px;
    }

    .figma-about-agro__criterion-icon img {
        width: 28px !important;
        height: 28px !important;
    }
}

/* Figma Frame 2071857913 - Sản Phẩm Nổi Bật responsive */
@media (max-width: 1499px) {
    .figma-featured-products__inner {
        width: calc(100% - 64px);
    }

    .figma-featured-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .figma-featured-product__info h3 {
        font-size: clamp(19px, 1.65vw, 25px);
    }
}

@media (max-width: 991px) {
    .figma-featured-products {
        padding-bottom: 84px;
    }

    .figma-featured-products__inner {
        width: calc(100% - 40px);
    }

    .figma-featured-products__head h2 {
        font-size: 30px;
        line-height: 44px;
    }

    .figma-featured-products__grid {
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .figma-featured-products__carousel {
        min-height: 0;
    }

    .figma-featured-product {
        height: auto;
        min-height: 500px;
    }

    .figma-featured-product__photo {
        height: auto;
        flex-basis: auto;
        aspect-ratio: 440 / 335;
    }

    .figma-featured-product__body {
        min-height: 165px;
    }
}

@media (max-width: 575px) {
    .figma-featured-products {
        padding-bottom: 58px;
    }

    .figma-featured-products__inner {
        width: calc(100% - 28px);
        gap: 18px;
    }

    .figma-featured-products__head {
        min-height: 42px;
        gap: 14px;
    }

    .figma-featured-products__head h2 {
        font-size: 24px;
        line-height: 34px;
    }

    .figma-featured-products__all {
        gap: 6px;
        font-size: 13px;
        line-height: 20px;
    }

    .figma-featured-products__all svg {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .figma-featured-products__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .figma-featured-product {
        min-height: 0;
    }

    .figma-featured-product__body {
        min-height: 156px;
        padding: 10px 14px 18px;
        gap: 14px;
    }

    .figma-featured-product__info h3 {
        height: auto;
        min-height: 32px;
        font-size: 21px;
        line-height: 32px;
    }

    .figma-featured-product__price {
        min-height: 26px;
        font-size: 16px;
        line-height: 24px;
    }

    .figma-featured-product__button {
        min-height: 50px;
        padding: 12px 18px;
        font-size: 16px;
        line-height: 24px;
    }
}

/* Figma Frame 2071857879 - Các Giống Sầu Riêng responsive */
@media (max-width: 1499px) {
    .figma-durian-varieties__inner {
        width: calc(100% - 64px);
    }

    .figma-durian-variety__title {
        font-size: clamp(17px, 1.45vw, 22px);
    }

    .figma-durian-variety__meta {
        font-size: clamp(15px, 1.2vw, 18px);
    }
}

@media (max-width: 991px) {
    .figma-durian-varieties__inner {
        width: calc(100% - 40px);
    }

    .figma-durian-varieties__head h2 {
        font-size: 30px;
        line-height: 44px;
    }

    .figma-durian-variety__summary {
        min-height: 74px;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        grid-template-rows: auto auto;
        column-gap: 12px;
        padding: 8px 0;
    }

    .figma-durian-variety__number {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .figma-durian-variety__title {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        width: auto;
        padding-left: 0;
        align-self: end;
        font-size: 18px;
        line-height: 27px;
    }

    .figma-durian-variety__right {
        display: contents;
    }

    .figma-durian-variety__meta {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        font-size: 14px;
        line-height: 21px;
    }

    .figma-durian-variety__toggle {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .figma-durian-variety__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .figma-durian-variety__copy h3 {
        font-size: 18px;
        line-height: 27px;
    }

    .figma-durian-variety__copy p {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 575px) {
    .figma-durian-varieties__inner {
        width: calc(100% - 28px);
        gap: 12px;
    }

    .figma-durian-varieties__head {
        min-height: 42px;
        gap: 14px;
    }

    .figma-durian-varieties__head h2 {
        font-size: 24px;
        line-height: 34px;
    }

    .figma-durian-varieties__all {
        gap: 6px;
        font-size: 13px;
        line-height: 20px;
    }

    .figma-durian-varieties__all svg {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .figma-durian-variety__summary {
        min-height: 72px;
        grid-template-columns: 34px minmax(0, 1fr) 40px;
        column-gap: 8px;
    }

    .figma-durian-variety__number {
        font-size: 14px;
        line-height: 21px;
    }

    .figma-durian-variety__title {
        font-size: 16px;
        line-height: 23px;
    }

    .figma-durian-variety__meta {
        font-size: 12px;
        line-height: 18px;
    }

    .figma-durian-variety__toggle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .figma-durian-variety__details {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-bottom: 18px;
    }

    .figma-durian-variety__copy h3 {
        font-size: 17px;
        line-height: 25px;
    }

    .figma-durian-variety__copy p {
        font-size: 14px;
        line-height: 22px;
    }
}

/* Figma Group 30 - Vì Sao Chọn Hoàng Phát Agro responsive */
/*
 * Group 30 dùng khung nội dung Figma 1366px.
 * Không chuyển sang layout responsive khi màn hình desktop vẫn còn >= 1366px,
 * nếu không toàn bộ vị trí logo chứng nhận bị đổi sang flex và nhìn như bị section Dịch vụ che.
 */
@media (max-width: 1199px) {
    .figma-why-choose {
        /* Quan trọng: desktop gốc dùng height cố định 1420px. Ở breakpoint này
           nội dung chuyển sang flow/grid nên phải trả height về auto, nếu không
           cụm 4 logo chứng nhận sẽ tràn ra ngoài và bị overflow:hidden cắt mất. */
        height: auto !important;
        min-height: 0 !important;
        padding: 150px 32px 84px;
        overflow: hidden;
    }

    .figma-why-choose::before,
    .figma-why-choose::after {
        height: 100% !important;
    }

    .figma-why-choose__inner {
        width: 100%;
        max-width: 1366px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 54px;
    }

    .figma-why-choose__heading {
        position: relative;
        top: auto;
        left: auto;
        width: min(463px, 100%);
        height: 270px;
        transform: none;
        padding-top: 72px;
    }

    .figma-why-choose__burst {
        width: 268px;
        height: 270px;
    }

    .figma-why-choose__eyebrow {
        font-size: 30px;
        line-height: 45px;
    }

    .figma-why-choose__heading h2 {
        font-size: 44px;
        line-height: 66px;
    }

    .figma-why-choose__stage {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(230px, 1fr) minmax(380px, 676px) minmax(230px, 1fr);
        align-items: center;
        gap: 18px;
    }

    .figma-why-choose__criteria,
    .figma-why-choose__center {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
    }

    .figma-why-choose__criteria {
        width: 100%;
        min-height: 0;
        gap: 44px;
    }

    .figma-why-choose__criterion,
    .figma-why-choose__criterion p {
        width: 100%;
    }

    .figma-why-choose__criterion h3 {
        font-size: clamp(20px, 2vw, 28px);
        line-height: 1.45;
    }

    .figma-why-choose__criterion p {
        font-size: clamp(15px, 1.35vw, 20px);
        line-height: 1.5;
    }

    .figma-why-choose__center {
        width: 100%;
        height: auto;
        aspect-ratio: 676 / 817;
    }

    .figma-why-choose__certificates {
        position: relative;
        top: auto;
        left: auto;
        width: min(1223px, 100%);
        height: auto;
        min-height: 260px;
        transform: none;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
    }

    .figma-why-choose__certificate {
        position: relative;
        top: auto;
        left: auto;
        width: min(22%, 281px);
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 991px) {
    .figma-why-choose {
        padding: 96px 20px 68px;
    }

    .figma-why-choose__inner {
        gap: 40px;
    }

    .figma-why-choose__heading {
        height: 220px;
        padding-top: 58px;
    }

    .figma-why-choose__burst {
        width: 220px;
        height: 220px;
    }

    .figma-why-choose__eyebrow {
        font-size: 26px;
        line-height: 39px;
    }

    .figma-why-choose__heading h2 {
        margin-top: -4px;
        font-size: 38px;
        line-height: 56px;
    }

    .figma-why-choose__stage {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .figma-why-choose__center {
        grid-column: 1 / -1;
        grid-row: 1;
        width: min(560px, 100%);
        justify-self: center;
    }

    .figma-why-choose__criteria--left {
        grid-column: 1;
        grid-row: 2;
    }

    .figma-why-choose__criteria--right {
        grid-column: 2;
        grid-row: 2;
    }

    .figma-why-choose__criteria--right,
    .figma-why-choose__criteria--right .figma-why-choose__criterion {
        align-items: flex-start;
    }

    .figma-why-choose__criteria--right .figma-why-choose__criterion-head {
        justify-content: flex-start;
    }

    .figma-why-choose__criteria--right .figma-why-choose__criterion h3,
    .figma-why-choose__criteria--right .figma-why-choose__criterion p {
        text-align: left;
    }

    .figma-why-choose__certificates {
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: end;
    }

    .figma-why-choose__certificate {
        width: 100%;
        max-width: 180px;
        justify-self: center;
    }
}

@media (max-width: 575px) {
    .figma-why-choose {
        padding: 64px 14px 52px;
    }

    .figma-why-choose__inner {
        gap: 30px;
    }

    .figma-why-choose__heading {
        height: 170px;
        padding-top: 44px;
    }

    .figma-why-choose__burst {
        width: 170px;
        height: 170px;
    }

    .figma-why-choose__eyebrow {
        font-size: 21px;
        line-height: 32px;
    }

    .figma-why-choose__heading h2 {
        font-size: 30px;
        line-height: 44px;
    }

    .figma-why-choose__stage {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .figma-why-choose__center {
        order: 0;
        width: min(440px, 100%);
    }

    .figma-why-choose__criteria {
        order: 1;
        width: 100%;
        gap: 22px;
    }

    .figma-why-choose__criterion {
        min-height: 0;
        gap: 4px;
    }

    .figma-why-choose__criterion-head {
        min-height: 34px;
        gap: 9px;
    }

    .figma-why-choose__criterion-head img {
        width: 30px !important;
        height: 30px !important;
        flex-basis: 30px;
    }

    .figma-why-choose__criterion h3 {
        font-size: 19px;
        line-height: 30px;
    }

    .figma-why-choose__criterion p {
        min-height: 0;
        font-size: 14px;
        line-height: 22px;
    }

    .figma-why-choose__certificates {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .figma-why-choose__certificate {
        max-width: 150px;
    }
}

/* HOANG PHAT AGRO - FIGMA SERVICES RESPONSIVE */
@media (max-width: 991px) {
    .figma-services {
        margin-top: 0;
        padding-top: 72px;
        padding-bottom: 100px;
    }

    .figma-services__inner {
        width: min(100% - 32px, 720px);
        gap: 24px;
    }

    .figma-services__title {
        font-size: 30px;
        line-height: 44px;
    }

    .figma-services__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        min-height: 0;
    }

    .figma-service--featured {
        grid-column: 1 / -1;
        gap: 16px;
    }

    .figma-service__featured-head {
        height: auto;
        gap: 14px;
    }

    .figma-service__featured-title {
        height: auto;
        align-items: center;
    }

    .figma-service__featured-title h3,
    .figma-service__card-copy strong {
        font-size: 26px;
        line-height: 38px;
    }

    .figma-service__featured-desc {
        min-height: 0;
        margin: 0;
        font-size: 17px;
        line-height: 27px;
    }

    .figma-service--card {
        min-height: 470px;
    }
}

@media (max-width: 575px) {
    .figma-services {
        margin-top: 0;
        padding-top: 48px;
        padding-bottom: 70px;
    }

    .figma-services__inner {
        width: calc(100% - 24px);
        gap: 20px;
    }

    .figma-services__title {
        font-size: 27px;
        line-height: 40px;
    }

    .figma-services__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .figma-service__number {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 22px;
    }

    .figma-service__featured-title {
        gap: 12px;
    }

    .figma-service__featured-title h3,
    .figma-service__card-copy strong {
        font-size: 24px;
        line-height: 34px;
    }

    .figma-service__featured-desc {
        font-size: 16px;
        line-height: 25px;
    }

    .figma-service--card {
        height: 500px;
        min-height: 0;
    }

    .figma-service__number--card {
        left: 18px;
        top: 22px;
    }

    .figma-service__card-copy {
        left: 18px;
        right: 18px;
        bottom: 22px;
    }

    .figma-service__detail {
        font-size: 16px;
        line-height: 24px;
    }
}

/* =========================================================
   HOANG PHAT AGRO - FIGMA PROCESS RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
    .figma-process {
        height: 900px;
        margin-top: 0;
    }

    .figma-process__inner {
        height: 900px;
    }

    .figma-process__heading div,
    .figma-process__heading h2 {
        font-size: 30px;
        line-height: 44px;
        min-height: 44px;
    }

    .figma-process__ring--outer {
        top: 175px;
        width: 720px;
        height: 720px;
    }

    .figma-process__ring--inner {
        top: 275px;
        width: 520px;
        height: 520px;
    }

    .figma-process__step {
        width: 160px;
        height: 160px;
    }

    .figma-process__step-core {
        width: 132px;
        height: 132px;
    }

    .figma-process__step-core strong {
        font-size: 25px;
        line-height: 36px;
    }

    .figma-process__step-core span {
        width: calc(100% - 20px);
        max-width: 112px;
        font-size: 14px;
        line-height: 18px;
    }

    .figma-process__step--1 {
        top: 425px;
        left: calc(50% - 445px);
    }

    .figma-process__step--2 {
        top: 160px;
        left: calc(50% - 280px);
    }

    .figma-process__step--3 {
        top: 160px;
        left: calc(50% + 120px);
    }

    .figma-process__step--4 {
        top: 425px;
        left: calc(50% + 285px);
    }

    .figma-process__fruit {
        top: 350px;
        left: calc(50% - 190px);
        width: 360px;
        height: 360px;
    }

    .figma-process__veil {
        top: 410px;
        width: 1300px;
        height: 520px;
    }
}

@media (max-width: 767px) {
    .figma-process {
        height: 690px;
        margin-top: 0;
    }

    .figma-process__inner {
        height: 690px;
    }

    .figma-process__heading {
        top: 0;
        max-width: calc(100% - 30px);
    }

    .figma-process__heading div,
    .figma-process__heading h2 {
        min-height: 0;
        font-size: 22px;
        line-height: 32px;
    }

    .figma-process__ring--outer {
        top: 130px;
        width: 420px;
        height: 420px;
    }

    .figma-process__ring--inner {
        top: 190px;
        width: 300px;
        height: 300px;
    }

    .figma-process__step {
        width: 92px;
        height: 92px;
    }

    .figma-process__step-core {
        width: 76px;
        height: 76px;
    }

    .figma-process__step-core strong {
        font-size: 17px;
        line-height: 24px;
    }

    .figma-process__step-core span {
        width: calc(100% - 10px);
        max-width: 66px;
        font-size: 11px;
        line-height: 14px;
        white-space: normal;
    }

    .figma-process__step--1 {
        top: 330px;
        left: calc(50% - 205px);
    }

    .figma-process__step--2 {
        top: 125px;
        left: calc(50% - 145px);
    }

    .figma-process__step--3 {
        top: 125px;
        left: calc(50% + 53px);
    }

    .figma-process__step--4 {
        top: 330px;
        left: calc(50% + 112px);
    }

    .figma-process__fruit {
        top: 280px;
        left: 50%;
        width: 230px;
        height: 230px;
        transform: translateX(-50%);
    }

    .figma-process__veil {
        top: 315px;
        width: 760px;
        height: 390px;
    }
}

@media (max-width: 479px) {
    .figma-process__ring--outer {
        width: 360px;
        height: 360px;
    }

    .figma-process__ring--inner {
        top: 185px;
        width: 255px;
        height: 255px;
    }

    .figma-process__step--1 { left: 6px; }
    .figma-process__step--2 { left: calc(50% - 130px); }
    .figma-process__step--3 { left: calc(50% + 38px); }
    .figma-process__step--4 { right: 6px; left: auto; }
}

/* =========================================================
   HOANG PHAT AGRO - FIGMA REAL GALLERY RESPONSIVE
   ========================================================= */
@media (max-width: 1439px) {
    .figma-real-gallery {
        margin-top: -110px;
    }

    .figma-real-gallery__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: calc(100% - 48px);
        max-width: 1365px;
        gap: 16px;
    }

    .figma-real-gallery__item {
        width: 100%;
        height: auto;
        aspect-ratio: 327 / 468;
    }
}

@media (max-width: 991px) {
    .figma-real-gallery {
        margin-top: -80px;
    }

    .figma-real-gallery__inner {
        min-height: 1180px;
    }

    .figma-real-gallery__heading {
        top: 28px;
        height: auto;
    }

    .figma-real-gallery__heading div {
        min-height: 42px;
        font-size: 28px;
        line-height: 42px;
    }

    .figma-real-gallery__heading h2 {
        min-height: 60px;
        font-size: 40px;
        line-height: 60px;
    }

    .figma-real-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 40px);
        padding-top: 120px;
        gap: 16px;
    }

    .figma-real-gallery__column:nth-child(even) {
        padding-top: 80px;
    }

    .figma-real-gallery__fade--top {
        height: 300px;
    }

    .figma-real-gallery__fade--bottom {
        height: 300px;
    }
}

@media (max-width: 575px) {
    .figma-real-gallery {
        margin-top: -45px;
    }

    .figma-real-gallery__inner {
        min-height: 920px;
    }

    .figma-real-gallery__heading {
        top: 22px;
    }

    .figma-real-gallery__heading div {
        min-height: 34px;
        font-size: 22px;
        line-height: 34px;
    }

    .figma-real-gallery__heading h2 {
        min-height: 44px;
        font-size: 30px;
        line-height: 44px;
    }

    .figma-real-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 24px);
        max-width: none;
        padding-top: 104px;
        gap: 8px;
    }

    .figma-real-gallery__column {
        gap: 8px;
    }

    .figma-real-gallery__column:nth-child(even) {
        padding-top: 42px;
    }

    .figma-real-gallery__fade--top {
        height: 210px;
    }

    .figma-real-gallery__fade--bottom {
        height: 220px;
    }

    .figma-real-gallery__more {
        bottom: 22px;
        min-width: 138px;
        height: 46px;
        padding: 0 20px;
        font-size: 15px;
    }
}

/* =========================================================
   HOANG PHAT AGRO - FIGMA NEWS RESPONSIVE
   ========================================================= */
@media (max-width: 1439px) {
    .figma-news__inner {
        width: min(1365px, calc(100% - 48px));
    }

    .figma-news__layout {
        grid-template-columns: minmax(250px, .95fr) minmax(480px, 1.96fr) minmax(250px, .95fr);
        gap: 18px;
    }

    .figma-news__side,
    .figma-news__main,
    .figma-news__featured,
    .figma-news__hero {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .figma-news {
        padding-bottom: 72px;
    }

    .figma-news__layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        grid-template-areas:
            "main featured"
            "side featured";
        align-items: start;
        min-height: 0;
    }

    .figma-news__main {
        grid-area: main;
        height: 580px;
    }

    .figma-news__hero {
        height: 580px;
    }

    .figma-news__side {
        grid-area: side;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
        gap: 18px;
    }

    .figma-news__small-card {
        min-height: 290px;
        height: 290px;
        flex-basis: auto;
    }

    .figma-news__featured {
        grid-area: featured;
        width: 320px;
        height: auto;
        min-height: 580px;
    }
}

@media (max-width: 767px) {
    .figma-news {
        padding-bottom: 48px;
    }

    .figma-news__inner {
        width: calc(100% - 28px);
    }

    .figma-news__heading {
        min-height: 44px;
        margin-bottom: 20px;
        font-size: 30px;
        line-height: 44px;
    }

    .figma-news__layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .figma-news__main {
        order: 1;
        height: 500px;
    }

    .figma-news__hero {
        height: 500px;
        padding: 24px 22px;
    }

    .figma-news__nav {
        top: 20px;
        right: 20px;
        gap: 10px;
    }

    .figma-news__prev,
    .figma-news__next {
        width: 42px;
        height: 42px;
    }

    .figma-news__hero-copy h3 {
        font-size: 25px;
        line-height: 36px;
    }

    .figma-news__hero-copy p {
        font-size: 15px;
        line-height: 23px;
    }

    .figma-news__meta {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 16px;
        font-size: 12px;
        line-height: 18px;
    }

    .figma-news__side {
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .figma-news__small-card {
        height: 260px;
        min-height: 260px;
    }

    .figma-news__small-content h3 {
        font-size: 17px;
        line-height: 25px;
    }

    .figma-news__featured {
        order: 3;
        width: 100%;
        min-height: 0;
        height: auto;
    }

    .figma-news__featured-lead {
        height: 300px;
        padding-top: 190px;
    }

    .figma-news__featured-list {
        width: calc(100% - 40px);
    }

    .figma-news__featured-row {
        grid-template-columns: 30px 1fr;
        gap: 18px;
    }
}

@media (max-width: 479px) {
    .figma-news__heading {
        font-size: 25px;
        line-height: 38px;
    }

    .figma-news__main,
    .figma-news__hero {
        height: 460px;
    }

    .figma-news__hero {
        padding: 20px 18px;
    }

    .figma-news__hero-copy {
        margin-bottom: 16px;
    }

    .figma-news__hero-copy h3 {
        font-size: 22px;
        line-height: 31px;
    }

    .figma-news__hero-copy p {
        font-size: 14px;
        line-height: 21px;
    }

    .figma-news__meta span {
        white-space: normal;
    }

    .figma-news__side {
        grid-template-columns: 1fr;
    }

    .figma-news__small-card {
        height: 300px;
        min-height: 300px;
    }

    .figma-news__featured-lead {
        height: 250px;
        padding-top: 145px;
    }
}

/* Khi bấm Xem thêm gallery, cho section tự nở để Tin tức luôn nằm phía dưới. */
@supports selector(:has(*)) {
    .figma-real-gallery__inner:has(.figma-real-gallery__toggle:checked) {
        min-height: auto;
        padding-bottom: 120px;
    }
}

/* =============================================================
 * FOOTER FIGMA RESPONSIVE
 * ============================================================= */
@media (max-width: 1439px) {
    .footer-figma__inner {
        width: calc(100% - 48px);
        max-width: 1365px;
    }

    .footer-figma__columns {
        grid-template-columns: minmax(300px, 1.5fr) minmax(230px, 1fr) minmax(190px, .8fr) minmax(260px, 1.1fr);
        gap: 30px;
    }

    .footer-figma__brand,
    .footer-figma__brand-main,
    .footer-figma__brand-description,
    .footer-figma__contact,
    .footer-figma__contact-lines,
    .footer-figma__policy,
    .footer-figma__map-block,
    .footer-figma__map,
    .footer-figma__map-placeholder {
        width: 100%;
    }
}

@media (max-width: 1199px) {
    .figma-news {
        padding-bottom: 72px;
    }

    .footer-figma {
        min-height: 0;
        margin-top: 0;
        padding: 110px 0 42px;
    }

    .footer-figma__inner {
        width: calc(100% - 48px);
        height: auto;
        min-height: 0;
    }

    .footer-figma__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 48px;
        min-height: 0;
    }

    .footer-figma__brand {
        min-height: 0;
    }

    .footer-figma__copyright {
        margin-top: 64px;
    }
}

@media (max-width: 767px) {
    .figma-news {
        padding-bottom: 48px;
    }

    .footer-figma {
        padding: 82px 0 34px;
    }

    .footer-figma::after {
        height: 24px;
        background-size: 60px 24px;
    }

    .footer-figma__inner {
        width: calc(100% - 32px);
    }

    .footer-figma__columns {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .footer-figma__brand,
    .footer-figma__brand-main,
    .footer-figma__brand-description,
    .footer-figma__connect,
    .footer-figma__contact,
    .footer-figma__contact-lines,
    .footer-figma__policy,
    .footer-figma__map-block,
    .footer-figma__map,
    .footer-figma__map-placeholder {
        width: 100%;
    }

    .footer-figma__brand-description {
        min-height: 0;
    }

    .footer-figma__map,
    .footer-figma__map-placeholder {
        height: 190px;
    }

    .footer-figma__copyright {
        margin-top: 50px;
        font-size: 12px;
        line-height: 19px;
    }
}

@media (max-width: 479px) {
    .footer-figma__heading h3 {
        font-size: 17px;
        line-height: 25px;
    }

    .footer-figma__brand-description,
    .footer-figma__contact-lines,
    .footer-figma__policy li,
    .footer-figma__policy a,
    .footer-figma__policy li span {
        font-size: 13px;
        line-height: 20px;
    }
}

/* =========================================================
   HP TEMPLATE NORMALIZATION - SHARED RESPONSIVE
   Loaded after per-template CSS so mobile typography is consistent.
   ========================================================= */
@media (max-width: 767px) {
    .about-template .about-template-heading > h1,
    .about-template .about-layout-main > h1,
    .about-template .about-company-copy > h1,
    .about-template .about-stats-hero h1,
    .about-template .about-template-3-title h1,
    .news-template .news-template-title h1,
    .news-template .news-template-title-3 h1,
    .news-template .news-template-title-4 h1,
    .news-detail-template .news-template-detail-title,
    .news-detail-template .news-template-detail-title-center,
    .product-list-template .product-list-heading,
    .product-related-section .product-list-heading,
    .product-detail-template .title-detail h1 {
        font-size: 28px;
        line-height: 1.4;
    }

    .about-template .about-template-content,
    .about-template .about-template-content p,
    .about-template .about-template-content li,
    .news-detail-template .news-template-detail-desc,
    .news-detail-template .news-detail-desc p,
    .news-detail-template .news-detail-content,
    .news-detail-template .news-detail-content p,
    .news-detail-template .news-detail-content li,
    .product-detail-template .product-detail-desc {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
}

@media (max-width: 767px) {
    .news-template .news-template-list1-name,
    .news-template .news-template-list2-name,
    .news-template .news-template-list3-name,
    .news-template .news-template-list4-name,
    .news-template .news-template-list5-name,
    .product-list-template .product-list-name,
    .product-list-template-product2 .product-list-name,
    .product-list-template-product3 .product-list-name,
    .product-list-template-product4 .product-list-name {
        font-size: 17px;
        line-height: 1.4;
    }
}


/* =========================================================
   GROUP 30 - HARD DESKTOP GUARD (>= 1200px)
   Giữ nguyên hình học Figma dù trình duyệt/Windows có zoom hoặc DPR khác nhau.
   Block này nằm cuối media.css để thắng mọi rule responsive cũ của Group 30.
   ========================================================= */
@media (min-width: 1200px) {
    .figma-why-choose {
        height: 1420px !important;
        min-height: 1420px !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .figma-why-choose::before {
        height: 1313.79px !important;
    }

    .figma-why-choose::after {
        height: 1320px !important;
    }

    .figma-why-choose__inner {
        position: relative !important;
        width: 1366px !important;
        max-width: 100% !important;
        height: 1420px !important;
        margin: 0 auto !important;
        display: block !important;
        gap: 0 !important;
    }

    .figma-why-choose__heading {
        position: absolute !important;
        top: 222px !important;
        left: 50% !important;
        width: 463px !important;
        height: 357px !important;
        transform: translateX(-50%) !important;
        padding-top: 96px !important;
    }

    .figma-why-choose__burst {
        width: 354px !important;
        height: 357px !important;
    }

    .figma-why-choose__eyebrow {
        font-size: 34px !important;
        line-height: 51px !important;
    }

    .figma-why-choose__heading h2 {
        font-size: 53.2117px !important;
        line-height: 80px !important;
    }

    .figma-why-choose__stage {
        display: contents !important;
    }

    .figma-why-choose__criteria {
        position: absolute !important;
        top: 498px !important;
        width: 350px !important;
        min-height: 474px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 75px !important;
    }

    .figma-why-choose__criteria--left {
        left: 10px !important;
        right: auto !important;
        align-items: flex-start !important;
    }

    .figma-why-choose__criteria--right {
        left: auto !important;
        right: -11px !important;
        align-items: flex-end !important;
    }

    .figma-why-choose__criterion,
    .figma-why-choose__criterion p {
        width: 350px !important;
    }

    .figma-why-choose__criterion h3 {
        font-size: 28px !important;
        line-height: 42px !important;
    }

    .figma-why-choose__criterion p {
        font-size: 20px !important;
        line-height: 30px !important;
    }

    .figma-why-choose__criteria--right .figma-why-choose__criterion-head {
        justify-content: flex-end !important;
    }

    .figma-why-choose__criteria--right .figma-why-choose__criterion h3,
    .figma-why-choose__criteria--right .figma-why-choose__criterion p {
        text-align: right !important;
    }

    .figma-why-choose__center {
        position: absolute !important;
        top: 472px !important;
        left: 365px !important;
        right: auto !important;
        width: 676px !important;
        height: 817px !important;
        aspect-ratio: auto !important;
    }

    .figma-why-choose__certificates {
        position: absolute !important;
        left: 82px !important;
        /* Group 2 trong Group 30: y = 1082px, đúng theo artboard 1366 x 1420. */
        top: auto !important;
        bottom: 0 !important;
        width: 1223px !important;
        height: 338px !important;
        min-height: 338px !important;
        transform: none !important;
        display: block !important;
    }

    .figma-why-choose__certificate {
        position: absolute !important;
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
        aspect-ratio: auto !important;
    }

    .figma-why-choose__certificate--1 {
        left: 0 !important;
        top: 35px !important;
        width: 204px !important;
        height: 183px !important;
    }

    .figma-why-choose__certificate--2 {
        left: 326px !important;
        top: 127px !important;
        width: 235px !important;
        height: 211px !important;
    }

    .figma-why-choose__certificate--3 {
        left: 675px !important;
        top: 136px !important;
        width: 218px !important;
        height: 197px !important;
    }

    .figma-why-choose__certificate--4 {
        left: 942px !important;
        top: 0 !important;
        width: 281px !important;
        height: 253px !important;
    }

    .figma-why-choose__certificate img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: contain !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .figma-process {
        height: 900px;
        padding-top: 105px;
    }

    .figma-process__inner {
        height: 760px;
    }

    .figma-process__step {
        width: 145px;
    }

    .figma-process__fruit {
        top: 410px;
        width: 400px;
    }
}

/* =========================================================
   FIX 2026-10-05 - Group 29 / DTS shine conflict
   apps.js injects .dts-shine-host { position: relative !important; }
   which overrides the absolute positioning required by Figma for
   the center artwork and certificate badges on desktop.
   Keep the shine effect, but restore the intended Figma geometry.
   ========================================================= */
@media (min-width: 1200px) {
    .figma-why-choose .figma-why-choose__center.dts-shine-host {
        position: absolute !important;
    }

    .figma-why-choose .figma-why-choose__certificate.dts-shine-host {
        position: absolute !important;
    }
}

/* Certificate reveal is isolated from the global image-shine effect so the
   desktop Figma coordinates on each absolute-positioned badge stay untouched. */
.figma-why-choose.has-certificate-reveal .figma-why-choose__certificate {
    --certificate-reveal-delay: 0ms;
    opacity: 0;
    transform: translateY(25px) scale(.9);
    pointer-events: auto;
    transition:
        opacity 600ms cubic-bezier(.22, 1, .36, 1) var(--certificate-reveal-delay),
        transform 600ms cubic-bezier(.22, 1, .36, 1) var(--certificate-reveal-delay),
        filter 300ms ease;
    will-change: opacity, transform;
}

.figma-why-choose.has-certificate-reveal .figma-why-choose__certificate--1 {
    --certificate-reveal-delay: 0ms;
}

.figma-why-choose.has-certificate-reveal .figma-why-choose__certificate--2 {
    --certificate-reveal-delay: 120ms;
}

.figma-why-choose.has-certificate-reveal .figma-why-choose__certificate--3 {
    --certificate-reveal-delay: 240ms;
}

.figma-why-choose.has-certificate-reveal .figma-why-choose__certificate--4 {
    --certificate-reveal-delay: 360ms;
}

.figma-why-choose.is-visible .figma-why-choose__certificate {
    opacity: 1;
    transform: translateY(0) scale(1);
    will-change: auto;
}

.figma-why-choose.is-visible .figma-why-choose__certificate.is-certificate-swapping {
    opacity: 0;
    transform: translateY(-15px) scale(.96);
}

.figma-why-choose.is-visible .figma-why-choose__certificate.is-certificate-entering {
    opacity: 0;
    transform: translateY(15px) scale(.96);
}

.figma-why-choose__certificates.has-certificate-controls {
    cursor: grab;
    touch-action: pan-y;
}

.figma-why-choose__certificates.has-certificate-controls.is-certificate-dragging {
    cursor: grabbing;
}

@media (hover: hover) and (pointer: fine) {
    .figma-why-choose.is-visible .figma-why-choose__certificate:hover {
        transform: translateY(0) scale(1.05);
        filter: drop-shadow(0 8px 12px rgba(42, 90, 36, .16));
    }
}

@media (prefers-reduced-motion: reduce) {
    .figma-why-choose.has-certificate-reveal .figma-why-choose__certificate,
    .figma-why-choose.is-visible .figma-why-choose__certificate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================================
   RESPONSIVE POLISH 2026-10-06
   Chỉ bổ sung cho tablet/mobile. Desktop >= 1026px giữ nguyên Figma.
   ========================================================= */
@media (max-width: 1025px) {
    /* Mobile/tablet dùng utility header; desktop navigation được ẩn ở navigation.css. */
    .above-nav {
        position: relative;
        z-index: 10020;
    }

    .above-nav .figma-header-utility {
        position: relative;
        display: block !important;
        width: 100%;
        height: 76px;
        margin: 0;
        padding: 0;
        background: #fffcf1;
        border-bottom: 1px solid rgba(37, 79, 7, .10);
    }

    .figma-header-utility__inner {
        position: relative;
        width: min(100% - 32px, 994px);
        height: 76px;
        margin: 0 auto;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .figma-header-mobile-brand {
        width: 160px;
        height: 60px;
        min-width: 0;
        flex: 0 1 160px;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
    }

    .figma-header-mobile-brand picture,
    .figma-header-mobile-brand img {
        display: block;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        object-position: left center;
    }

    .figma-header-actions {
        min-width: 0;
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .figma-header-hotline,
    .figma-header-quote {
        min-height: 40px;
        padding: 8px 12px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-family: var(--hp-font);
        font-size: 12px;
        font-weight: 600;
        line-height: 18px;
        text-decoration: none !important;
        white-space: nowrap;
    }

    .figma-header-hotline,
    .figma-header-hotline:hover,
    .figma-header-hotline:focus {
        color: var(--hp-primary);
        border: 1px solid rgba(37, 79, 7, .22);
        background: #fff;
    }

    .figma-header-quote,
    .figma-header-quote:hover,
    .figma-header-quote:focus {
        color: #fff;
        background: var(--hp-primary);
    }

    .header-menu-mobile-btn,
    .mobile-header-search-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        flex: 0 0 44px;
        padding: 0;
        border: 1px solid rgba(37, 79, 7, .18);
        border-radius: 8px;
        background: #fff;
        color: var(--hp-primary);
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .header-menu-mobile-btn {
        flex-direction: column;
        gap: 5px;
    }

    .header-menu-mobile-btn span {
        display: block;
        width: 21px;
        height: 2px;
        border-radius: 99px;
        background: currentColor;
    }

    .mobile-header-search-toggle {
        font-size: 18px;
        line-height: 1;
    }

    /* Khung tìm kiếm mobile mở theo class .search-open do apps.js điều khiển. */
    .figma-header-search {
        position: absolute;
        z-index: 10060;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        width: 100%;
        padding: 8px;
        border: 1px solid rgba(37, 79, 7, .16);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 12px 30px rgba(16, 38, 0, .14);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    .figma-header-utility.search-open .figma-header-search {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .figma-header-search > div:first-child {
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid rgba(37, 79, 7, .22);
        border-radius: 7px;
        background: #fff;
        gap: 10px;
    }

    .figma-header-search > div:first-child > p {
        margin: 0;
        color: var(--hp-primary);
        cursor: pointer;
    }

    .figma-header-search input {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--hp-text);
        font-family: var(--hp-font);
        font-size: 14px;
    }

    .figma-header-search .show-search {
        position: absolute;
        z-index: 2;
        top: calc(100% + 4px);
        right: 0;
        left: 0;
        max-height: min(55vh, 420px);
        overflow-y: auto;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 12px 30px rgba(16, 38, 0, .14);
    }

    /* apps.js chuyển header sang fixed sau khi scroll; giữ chỗ để trang không giật. */
    body.mobile-header-sticky .above-nav {
        padding-bottom: var(--mobile-header-sticky-height, 76px);
    }

    body.mobile-header-sticky .figma-header-utility {
        position: fixed;
        z-index: 10050;
        top: 0;
        right: 0;
        left: 0;
        box-shadow: 0 6px 20px rgba(16, 38, 0, .10);
    }

    .figma-navigation {
        z-index: 10070;
    }

    .header-left-fixwidth {
        width: min(86vw, 320px);
        transform: translateX(-105%);
    }

    .header-left-fixwidth .wrap-header {
        width: 100%;
        padding: 14px 16px 24px;
        background: #fffdf5;
    }

    .header-left-fixwidth .wrap-header .logos-menu {
        width: min(170px, 70%);
        margin: 0 auto 8px;
    }

    .header-left-fixwidth .wrap-header .logos-menu img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .header-left-fixwidth .wrap-header .nav-menu ul a {
        min-height: 46px;
        padding: 12px 10px;
        display: flex;
        align-items: center;
        color: var(--hp-text);
        font-family: var(--hp-font);
        font-size: 15px;
        line-height: 21px;
    }

    .header-left-fixwidth .wrap-header .nav-menu ul a.active {
        color: var(--hp-primary);
    }

    .opacity-menu.open-opacity {
        z-index: 10060;
    }
}

@media (min-width: 768px) and (max-width: 1025px) {
    .figma-topbar-inner {
        width: calc(100% - 32px);
    }

    .figma-topbar-item {
        font-size: 11px;
    }

    .figma-header-hotline span {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 767px) {
    .figma-header-utility__inner {
        width: calc(100% - 24px);
        height: 70px;
        gap: 8px;
    }

    .above-nav .figma-header-utility {
        height: 70px;
    }

    .figma-header-mobile-brand {
        width: min(145px, calc(100vw - 132px));
        height: 54px;
        flex: 0 1 min(145px, calc(100vw - 132px));
    }

    .figma-header-actions {
        display: none;
    }

    .header-menu-mobile-btn {
        margin-left: auto;
    }

    .header-menu-mobile-btn,
    .mobile-header-search-toggle {
        width: 42px;
        height: 42px;
        min-width: 42px;
        flex-basis: 42px;
        border-radius: 7px;
    }

    .figma-header-search {
        right: 0;
        left: 0;
    }

    body.mobile-header-sticky .above-nav {
        padding-bottom: var(--mobile-header-sticky-height, 70px);
    }

    /* Nội dung dài trên trang trong không được làm vỡ viewport. */
    .site-main img,
    .site-main video,
    .site-main iframe {
        max-width: 100%;
    }

    .site-main iframe,
    .site-main video {
        width: 100%;
    }

    .news-detail-content table,
    .about-template-content table,
    .product-detail-template table,
    .inner-service-detail-content table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .breadCrumbs .wrap-content {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .breadCrumbs .wrap-content::-webkit-scrollbar {
        display: none;
    }

    .inner-service-detail-gallery {
        gap: 12px;
    }

    .figma-featured-products__all,
    .figma-durian-varieties__all,
    .figma-news__all,
    .figma-real-gallery__more {
        min-height: 44px;
    }
}

@media (max-width: 479px) {
    .figma-topbar-inner {
        padding-right: 10px;
        padding-left: 10px;
    }

    .figma-topbar-right {
        gap: 8px;
    }

    .figma-topbar-email span {
        max-width: calc(100vw - 160px);
    }

    .figma-header-utility__inner {
        width: calc(100% - 20px);
    }

    .figma-header-mobile-brand {
        width: min(132px, calc(100vw - 124px));
        height: 50px;
        flex-basis: min(132px, calc(100vw - 124px));
    }

    .header-menu-mobile-btn,
    .mobile-header-search-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        flex-basis: 40px;
    }

    .figma-header-search {
        padding: 7px;
    }

    .header-left-fixwidth {
        width: min(88vw, 310px);
    }
}

/* =========================================================
   HOANG PHAT AGRO - MOBILE REDESIGN PASS 2026-10-06
   Muc tieu: mobile la giao dien doc that su, khong phai desktop thu nho.
   Chi override responsive, giu nguyen desktop >= 768px.
   ========================================================= */
@media (max-width: 767px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    body {
        font-size: 15px;
        line-height: 1.6;
    }

    .site-main {
        width: 100%;
        overflow: hidden;
    }

    .wrap-content,
    .max-width,
    .figma-about-agro__inner,
    .figma-featured-products__inner,
    .figma-durian-varieties__inner,
    .figma-services__inner,
    .figma-news__inner,
    .footer-figma__inner {
        width: calc(100% - 24px) !important;
        max-width: none !important;
    }

    /* Header: gon, de bam va uu tien logo. */
    .figma-topbar-time {
        display: none;
    }

    .figma-topbar-inner {
        min-height: 36px;
        padding: 5px 12px;
        flex-wrap: nowrap;
    }

    .figma-topbar-right {
        width: 100%;
        min-width: 0;
    }

    .figma-topbar-email {
        min-width: 0;
        font-size: 10px;
    }

    .figma-header-utility__inner {
        width: calc(100% - 20px);
        height: 66px;
    }

    .above-nav .figma-header-utility {
        height: 66px;
    }

    .figma-header-mobile-brand {
        width: min(156px, calc(100vw - 118px));
        height: 50px;
        flex-basis: min(156px, calc(100vw - 118px));
    }

    .header-menu-mobile-btn,
    .mobile-header-search-toggle {
        width: 40px;
        height: 40px;
        min-width: 40px;
        flex-basis: 40px;
    }

    /* Về chúng tôi: anh rong, noi dung doc theo chieu doc. */
    .figma-about-agro {
        padding: 24px 0 44px;
    }

    .figma-about-agro__inner {
        gap: 20px;
    }

    .figma-about-agro__visual {
        width: 100%;
        aspect-ratio: 4 / 3;
        border-radius: 12px;
        overflow: hidden;
    }

    .figma-about-agro__visual img {
        object-fit: cover;
    }

    .figma-about-agro__content {
        gap: 22px;
    }

    .figma-about-agro__eyebrow {
        font-size: 18px;
        line-height: 1.4;
    }

    .figma-about-agro__heading h2 {
        font-size: 29px;
        line-height: 1.28;
    }

    .figma-about-agro__desc {
        font-size: 14px;
        line-height: 1.7;
    }

    .figma-about-agro__criteria {
        gap: 10px;
    }

    .figma-about-agro__criterion {
        padding: 12px;
        border: 1px solid rgba(37, 79, 7, .12);
        border-radius: 10px;
        background: rgba(255, 255, 255, .65);
    }

    .figma-about-agro__criterion-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        padding: 7px;
    }

    /* Sản phẩm nổi bật trang chủ: card gọn, ảnh không quá cao. */
    .figma-featured-products {
        padding-bottom: 46px;
    }

    .figma-featured-products__head,
    .figma-durian-varieties__head {
        align-items: flex-end;
    }

    .figma-featured-products__head h2,
    .figma-durian-varieties__head h2,
    .figma-services__title,
    .figma-news__heading {
        font-size: 25px;
        line-height: 1.3;
    }

    .figma-featured-product {
        border-radius: 10px;
        background: #fff;
    }

    .figma-featured-product__photo {
        aspect-ratio: 4 / 3;
    }

    .figma-featured-product__body {
        min-height: 0;
        padding: 13px 14px 14px;
        gap: 10px;
    }

    .figma-featured-product__info h3 {
        min-height: 0;
        font-size: 18px;
        line-height: 1.4;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .figma-featured-product__price {
        font-size: 14px;
        line-height: 1.45;
    }

    .figma-featured-product__button {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 14px;
        line-height: 1.4;
        border-radius: 7px;
    }

    /* Các giống sầu riêng: summary giống danh sách mobile thay vì hàng desktop co nhỏ. */
    .figma-durian-variety__summary {
        min-height: 68px;
        grid-template-columns: 30px minmax(0, 1fr) 38px;
        padding: 10px 0;
    }

    .figma-durian-variety__title {
        font-size: 15px;
        line-height: 1.45;
    }

    .figma-durian-variety__meta {
        font-size: 12px;
        line-height: 1.45;
    }

    .figma-durian-variety__toggle {
        width: 36px;
        height: 36px;
    }

    /* Vì sao chọn: bo layout orbit/absolute trên mobile, chuyển thành khối đọc rõ. */
    .figma-why-choose {
        height: auto !important;
        min-height: 0 !important;
        padding: 44px 12px 42px !important;
        overflow: hidden;
    }

    .figma-why-choose__inner {
        width: 100% !important;
        gap: 22px;
    }

    .figma-why-choose__heading {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 0;
    }

    .figma-why-choose__burst {
        display: none;
    }

    .figma-why-choose__heading-copy {
        position: static;
        width: 100%;
        transform: none;
        text-align: center;
    }

    .figma-why-choose__eyebrow {
        font-size: 18px;
        line-height: 1.35;
    }

    .figma-why-choose__heading h2 {
        margin-top: 4px;
        font-size: 28px;
        line-height: 1.25;
    }

    .figma-why-choose__stage {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .figma-why-choose__center {
        order: 0;
        width: min(100%, 420px);
        aspect-ratio: 4 / 3;
        border-radius: 14px;
        overflow: hidden;
    }

    .figma-why-choose__center img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .figma-why-choose__criteria {
        order: 1;
        width: 100%;
        gap: 10px;
    }

    .figma-why-choose__criterion {
        gap: 8px;
        padding: 13px 14px;
        border: 1px solid rgba(37, 79, 7, .12);
        border-radius: 10px;
        background: rgba(255, 255, 255, .82);
    }

    .figma-why-choose__criteria--right,
    .figma-why-choose__criteria--right .figma-why-choose__criterion,
    .figma-why-choose__criteria--right .figma-why-choose__criterion-head {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .figma-why-choose__criteria--right .figma-why-choose__criterion h3,
    .figma-why-choose__criteria--right .figma-why-choose__criterion p {
        text-align: left;
    }

    .figma-why-choose__criterion-head img {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px;
    }

    .figma-why-choose__criterion h3 {
        font-size: 16px;
        line-height: 1.45;
    }

    .figma-why-choose__criterion p {
        font-size: 13px;
        line-height: 1.6;
    }

    .figma-why-choose__certificates {
        width: min(100%, 360px);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        align-items: center;
    }

    .figma-why-choose__certificate {
        max-width: 76px;
    }

    /* Dịch vụ: tránh card cao 500px trên màn hình nhỏ. */
    .figma-services {
        padding-top: 42px;
        padding-bottom: 54px;
    }

    .figma-service--featured,
    .figma-service--card {
        border-radius: 12px;
        overflow: hidden;
    }

    .figma-service--card {
        height: 330px;
    }

    .figma-service__featured-title h3,
    .figma-service__card-copy strong {
        font-size: 21px;
        line-height: 1.35;
    }

    .figma-service__featured-desc {
        font-size: 14px;
        line-height: 1.65;
    }

    /* Quy trình: trên mobile dùng 2x2 card, bỏ vòng cung tuyệt đối gây co chữ. */
    .figma-process {
        height: auto;
        min-height: 0;
        padding: 44px 12px 48px;
        overflow: hidden;
    }

    .figma-process__inner {
        height: auto;
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .figma-process__heading {
        position: static;
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        margin-bottom: 6px;
        transform: none;
    }

    .figma-process__heading div,
    .figma-process__heading h2 {
        font-size: 25px;
        line-height: 1.3;
        text-align: center;
    }

    .figma-process__orbit,
    .figma-process__veil {
        display: none;
    }

    .figma-process__step,
    .figma-process__step--1,
    .figma-process__step--2,
    .figma-process__step--3,
    .figma-process__step--4,
    .figma-process__step--5 {
        position: static;
        width: 100%;
        height: auto;
        min-height: 118px;
        transform: none;
    }

    .figma-process__step-core {
        width: 100%;
        height: 100%;
        min-height: 118px;
        padding: 14px 10px;
        border: 1px solid rgba(37, 79, 7, .16);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(37, 79, 7, .07);
    }

    .figma-process__step-core strong {
        font-size: 24px;
        line-height: 1.2;
    }

    .figma-process__step-core span {
        width: 100%;
        max-width: none;
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.45;
    }

    .figma-process__fruit {
        position: static;
        grid-column: 1 / -1;
        width: min(72vw, 250px);
        height: auto;
        aspect-ratio: 1 / 1;
        margin: 4px auto 0;
        transform: none;
    }

    /* Hình ảnh thực tế: bỏ hiệu ứng fade lớn, dùng gallery 2 cột đúng mobile. */
    .figma-real-gallery {
        margin-top: 0;
        padding: 42px 0 32px;
        overflow: visible;
    }

    .figma-real-gallery__inner {
        width: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0;
    }

    .figma-real-gallery__heading {
        position: static;
        width: calc(100% - 24px);
        max-width: none;
        height: auto;
        margin: 0 auto;
        transform: none;
    }

    .figma-real-gallery__heading div {
        min-height: 0;
        font-size: 18px;
        line-height: 1.4;
    }

    .figma-real-gallery__heading h2 {
        min-height: 0;
        margin-top: 2px;
        font-size: 28px;
        line-height: 1.3;
    }

    .figma-real-gallery__grid {
        width: calc(100% - 24px);
        max-width: none;
        padding-top: 0;
        gap: 8px;
    }

    .figma-real-gallery__column,
    .figma-real-gallery__column:nth-child(even) {
        gap: 8px;
        padding-top: 0;
    }

    .figma-real-gallery__column:nth-child(even) {
        padding-top: 26px;
    }

    .figma-real-gallery__item {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        border-radius: 10px;
    }

    .figma-real-gallery__fade {
        display: none;
    }

    .figma-real-gallery__more {
        position: static;
        min-width: 132px;
        height: 44px;
        margin: 2px auto 0;
        transform: none;
        font-size: 14px;
        border-radius: 7px;
    }

    /* Tin tức: ưu tiên tin chính, sau đó card nhỏ và bài nổi bật. */
    .figma-news {
        padding: 34px 0 50px;
    }

    .figma-news__heading {
        margin-bottom: 16px;
    }

    .figma-news__layout {
        gap: 14px;
    }

    .figma-news__main,
    .figma-news__hero {
        height: 370px;
        border-radius: 12px;
    }

    .figma-news__hero {
        padding: 18px;
    }

    .figma-news__hero-copy h3 {
        font-size: 21px;
        line-height: 1.38;
    }

    .figma-news__hero-copy p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.55;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .figma-news__nav {
        top: 14px;
        right: 14px;
    }

    .figma-news__prev,
    .figma-news__next {
        width: 36px;
        height: 36px;
    }

    .figma-news__meta {
        font-size: 11px;
        line-height: 1.4;
    }

    .figma-news__side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .figma-news__small-card {
        height: 220px;
        min-height: 220px;
        border-radius: 10px;
    }

    .figma-news__small-link {
        padding: 12px;
    }

    .figma-news__small-content h3 {
        font-size: 15px;
        line-height: 1.4;
    }

    .figma-news__small-content p {
        display: none;
    }

    .figma-news__featured {
        border-radius: 12px;
    }

    .figma-news__featured-title {
        margin: 14px 16px 10px;
        font-size: 18px;
        line-height: 1.4;
    }

    .figma-news__featured-lead {
        height: 210px;
        padding: 126px 14px 14px;
    }

    .figma-news__featured-list {
        width: calc(100% - 28px);
    }

    .figma-news__featured-row {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 10px;
        padding: 12px 0;
    }

    .figma-news__featured-row strong {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Trang sản phẩm: nội dung chính trước, sidebar xuống dưới. */
    .product-list-template {
        padding-top: 26px !important;
        padding-bottom: 44px !important;
    }

    .product-list-template > .wrap-content {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .product-list-layout,
    .product-list-layout-right-sidebar {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .product-list-main {
        order: 1;
        width: 100%;
    }

    .product-list-sidebar {
        order: 2;
        width: 100%;
        max-width: none;
        margin-top: 4px;
    }

    .product-list-heading,
    .product-list-page-san-pham .product-list-heading {
        margin-bottom: 18px;
        font-size: 26px;
        line-height: 1.3;
        text-align: center !important;
    }

    .product-list-template-product1 > .wrap-content > .product-list-main .product-list-grid,
    .product-list-template-product2 > .wrap-content > .product-list-main .product-list-grid,
    .product-list-template-product3 .product-list-grid,
    .product-list-template-product4 .product-list-grid,
    .product-list-page-san-pham .product-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-list-card,
    .product-list-page-san-pham .product-list-card--home {
        min-height: 0;
        border-radius: 10px;
        background: #fff;
    }

    .product-list-photo a,
    .product-list-page-san-pham .product-list-card--home .product-list-photo a {
        height: auto !important;
        min-height: 0;
        padding: 0 !important;
        aspect-ratio: 1 / 1;
        background: #f6f3e9;
    }

    .product-list-photo img,
    .product-list-template-product2 .product-list-photo img,
    .product-list-template-product3 .product-list-photo img,
    .product-list-template-product4 .product-list-photo img,
    .product-list-page-san-pham .product-list-card--home .product-list-photo img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
    }

    .product-list-info,
    .product-list-page-san-pham .product-list-info--home {
        display: flex;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }

    .product-list-name,
    .product-list-template-product2 .product-list-name,
    .product-list-template-product3 .product-list-name,
    .product-list-template-product4 .product-list-name,
    .product-list-page-san-pham .product-list-card--home .product-list-name {
        display: -webkit-box;
        overflow: hidden;
        min-height: 39px;
        margin: 0;
        font-size: 14px !important;
        line-height: 1.4 !important;
        text-transform: none;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .product-list-price,
    .product-list-page-san-pham .product-list-card--home .product-list-price {
        width: 100%;
        margin: 0;
        font-size: 13px;
        line-height: 1.4;
        text-align: left;
    }

    .product-list-contact,
    .product-list-page-san-pham .product-list-contact {
        min-height: 40px;
        padding: 9px 8px;
        border-radius: 7px;
        font-size: 13px;
        line-height: 1.35;
    }

    .product-list-sidebar-block,
    .product-list-page-san-pham .product-list-sidebar-block {
        margin-bottom: 12px;
        border-radius: 10px;
        box-shadow: none;
    }

    .product-list-sidebar-title,
    .product-list-page-san-pham .product-list-sidebar-title {
        padding: 13px 14px;
        font-size: 15px;
    }

    .product-list-category,
    .product-list-filter,
    .product-list-featured,
    .product-list-page-san-pham .product-list-category,
    .product-list-page-san-pham .product-list-filter,
    .product-list-page-san-pham .product-list-featured {
        padding-right: 14px;
        padding-left: 14px;
    }

    .product-small-card {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
    }

    .product-small-photo {
        width: 64px !important;
        height: 64px !important;
    }

    .product-small-name {
        font-size: 13px;
    }

    /* Floating contact: nho hon de khong de len card/noi dung. */
    .social-template-4 {
        right: 8px !important;
        bottom: 14px !important;
        width: 40px;
        max-width: 40px;
        gap: 4px;
    }

    .social-template-4__item {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 50%;
    }

    .social-template-4__icon {
        width: 26px;
        height: 26px;
    }

    .social-template-4__item img {
        max-width: 25px;
        max-height: 25px;
    }

    #social {
        transform: scale(.82);
        transform-origin: right bottom;
    }

    #hotline.btn-frame {
        transform: scale(.72);
    }
}

@media (max-width: 420px) {
    .wrap-content,
    .max-width,
    .figma-about-agro__inner,
    .figma-featured-products__inner,
    .figma-durian-varieties__inner,
    .figma-services__inner,
    .figma-news__inner,
    .footer-figma__inner {
        width: calc(100% - 20px) !important;
    }

    .figma-featured-products__head h2,
    .figma-durian-varieties__head h2,
    .figma-services__title,
    .figma-news__heading,
    .figma-process__heading div,
    .figma-process__heading h2 {
        font-size: 23px;
    }

    .figma-news__main,
    .figma-news__hero {
        height: 340px;
    }

    .figma-news__side {
        grid-template-columns: 1fr;
    }

    .figma-news__small-card {
        height: 210px;
        min-height: 210px;
    }

    .figma-real-gallery__grid {
        width: calc(100% - 20px);
        gap: 7px;
    }

    .figma-real-gallery__column,
    .figma-real-gallery__column:nth-child(even) {
        gap: 7px;
    }

    .product-list-template-product1 > .wrap-content > .product-list-main .product-list-grid,
    .product-list-template-product2 > .wrap-content > .product-list-main .product-list-grid,
    .product-list-template-product3 .product-list-grid,
    .product-list-template-product4 .product-list-grid,
    .product-list-page-san-pham .product-list-grid {
        gap: 8px;
    }
}

@media (max-width: 340px) {
    .product-list-template-product1 > .wrap-content > .product-list-main .product-list-grid,
    .product-list-template-product2 > .wrap-content > .product-list-main .product-list-grid,
    .product-list-template-product3 .product-list-grid,
    .product-list-template-product4 .product-list-grid,
    .product-list-page-san-pham .product-list-grid {
        grid-template-columns: 1fr;
    }

    .figma-process__inner {
        grid-template-columns: 1fr;
    }

    .figma-process__heading,
    .figma-process__fruit {
        grid-column: 1;
    }
}

/* =========================================================
   ABOUT CRITERIA - COMPACT MOBILE PASS 2026-10-06
   Giu du noi dung, rut ngan chieu cao bang luoi 2 cot.
   ========================================================= */
@media (max-width: 767px) {
    .figma-about-agro {
        padding-bottom: 30px;
    }

    .figma-about-agro__content {
        gap: 16px;
    }

    .figma-about-agro__criteria {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 8px;
        align-items: stretch;
    }

    .figma-about-agro__criterion {
        min-width: 0;
        min-height: 72px;
        padding: 9px 10px;
        gap: 7px;
        align-items: flex-start;
        border-radius: 9px;
    }

    .figma-about-agro__criterion-icon {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        padding: 5px;
        border-width: 1px;
    }

    .figma-about-agro__criterion-icon img {
        width: 17px !important;
        height: 17px !important;
    }

    .figma-about-agro__criterion-copy {
        min-width: 0;
        gap: 2px;
    }

    .figma-about-agro__criterion-copy h3 {
        font-size: 12px;
        line-height: 1.35;
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .figma-about-agro__criterion-copy p {
        font-size: 11px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 359px) {
    .figma-about-agro__criteria {
        gap: 6px;
    }

    .figma-about-agro__criterion {
        min-height: 68px;
        padding: 8px;
        gap: 6px;
    }

    .figma-about-agro__criterion-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        padding: 4px;
    }

    .figma-about-agro__criterion-icon img {
        width: 15px !important;
        height: 15px !important;
    }

    .figma-about-agro__criterion-copy h3 {
        font-size: 11px;
    }

    .figma-about-agro__criterion-copy p {
        font-size: 10.5px;
    }
}

/* =========================================================
   MOBILE FIX V4 - 2026-10-06
   Fix 1: chan horizontal overflow / trang bi lech trai-phai.
   Fix 2: hero mobile gon, text khong bi cat.
   Fix 3: "Vi sao chon" 6 tieu chi => 2 cot x 3 hang.
   ========================================================= */
@media (max-width: 767px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }

    .site-main,
    .figma-hero,
    .figma-hero-swiper,
    .figma-hero-swiper .swiper-wrapper,
    .figma-hero-slide,
    .figma-about-agro,
    .figma-why-choose,
    .figma-services,
    .figma-process,
    .figma-real-gallery,
    .figma-news {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Hero: bo transform center cua desktop de khong bi crop khi viewport hep. */
    .figma-hero,
    .figma-hero-slide {
        overflow: hidden !important;
    }

    .figma-hero-image {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 3 / 4 !important;
        overflow: hidden !important;
    }

    .figma-hero-image--mobile {
        aspect-ratio: 768 / 600 !important;
    }

    .figma-hero-image picture,
    .figma-hero-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
    }

    .figma-hero-image img {
        object-fit: cover !important;
        object-position: center center !important;
    }

    .figma-hero-content {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        padding: 12px !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    .figma-hero-copy {
        top: auto !important;
        left: auto !important;
        width: min(68%, 250px) !important;
        max-width: 250px !important;
        margin-top: 8px !important;
        padding: 10px 24px 10px 10px !important;
        gap: 8px !important;
        border-radius: 9px !important;
        background: linear-gradient(90deg,
            rgba(255, 252, 241, .96) 0%,
            rgba(255, 252, 241, .86) 72%,
            rgba(255, 252, 241, .12) 100%) !important;
        box-sizing: border-box !important;
    }

    .figma-hero-text h1,
    .figma-hero-text h2 {
        display: -webkit-box;
        overflow: hidden;
        margin: 0 !important;
        font-size: clamp(20px, 6.1vw, 27px) !important;
        line-height: 1.18 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .figma-hero-text p {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 4px !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2 !important;
    }

    .figma-hero-btn {
        min-width: 0 !important;
        min-height: 38px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        line-height: 18px !important;
        border-radius: 6px !important;
    }

    /* WHY CHOOSE: 2 nhom 3 item dat song song => 2 cot x 3 hang. */
    .figma-why-choose {
        padding: 30px 10px 30px !important;
    }

    .figma-why-choose__inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        gap: 16px !important;
    }

    .figma-why-choose__heading {
        width: 100% !important;
        margin: 0 auto !important;
    }

    .figma-why-choose__eyebrow {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    .figma-why-choose__heading h2 {
        margin-top: 2px !important;
        font-size: 24px !important;
        line-height: 1.25 !important;
    }

    .figma-why-choose__stage {
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto auto !important;
        column-gap: 8px !important;
        row-gap: 10px !important;
        align-items: start !important;
    }

    .figma-why-choose__center {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        order: initial !important;
        width: 100% !important;
        max-width: 420px !important;
        aspect-ratio: 16 / 10 !important;
        margin: 0 auto 2px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .figma-why-choose__center img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 42% !important;
    }

    .figma-why-choose__criteria {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        order: initial !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-rows: 1fr !important;
        gap: 8px !important;
        align-items: stretch !important;
    }

    .figma-why-choose__criteria--left {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .figma-why-choose__criteria--right {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    .figma-why-choose__criterion,
    .figma-why-choose__criteria--right .figma-why-choose__criterion {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 82px !important;
        margin: 0 !important;
        padding: 8px 9px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    .figma-why-choose__criterion-head,
    .figma-why-choose__criteria--right .figma-why-choose__criterion-head {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 5px !important;
    }

    .figma-why-choose__criteria--right .figma-why-choose__criterion-head img {
        order: -1;
    }

    .figma-why-choose__criterion-head img {
        width: 21px !important;
        height: 21px !important;
        flex: 0 0 21px !important;
        object-fit: contain !important;
    }

    .figma-why-choose__criterion h3,
    .figma-why-choose__criteria--right .figma-why-choose__criterion h3 {
        display: -webkit-box !important;
        overflow: hidden !important;
        min-width: 0 !important;
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        text-align: left !important;
        word-break: break-word !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .figma-why-choose__criterion p,
    .figma-why-choose__criteria--right .figma-why-choose__criterion p {
        display: -webkit-box !important;
        overflow: hidden !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        font-size: 10.5px !important;
        line-height: 1.4 !important;
        text-align: left !important;
        word-break: break-word !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .figma-why-choose__certificates {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: min(100%, 320px) !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 2px auto 0 !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
        align-items: center !important;
        overflow: hidden !important;
        transform: none !important;
    }

    .figma-why-choose__certificate {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 58px !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 380px) {
    .figma-hero-content {
        padding: 9px !important;
    }

    .figma-hero-copy {
        width: min(72%, 225px) !important;
        padding: 8px 20px 8px 8px !important;
    }

    .figma-hero-text h1,
    .figma-hero-text h2 {
        font-size: clamp(18px, 6vw, 23px) !important;
    }

    .figma-why-choose {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    .figma-why-choose__stage {
        column-gap: 6px !important;
    }

    .figma-why-choose__criterion,
    .figma-why-choose__criteria--right .figma-why-choose__criterion {
        min-height: 78px !important;
        padding: 7px !important;
    }

    .figma-why-choose__criterion h3,
    .figma-why-choose__criteria--right .figma-why-choose__criterion h3 {
        font-size: 11.5px !important;
    }

    .figma-why-choose__criterion p,
    .figma-why-choose__criteria--right .figma-why-choose__criterion p {
        font-size: 10px !important;
    }
}

/* =========================================================
   MOBILE FIX V5 - 2026-10-06
   Can lai hero + phan Ve chung toi tren mobile.
   - Hero fallback gon 16:9; neu co anh mobile rieng thi giu dung ty le 768x600.
   - Noi dung hero neo xuong duoi de nut/chu khong nam sat header.
   - Ve chung toi: dua tieu de len truoc anh, thu gon anh, giu tron qua sau rieng.
   ========================================================= */
@media (max-width: 767px) {
    /* HERO: fallback desktop tren mobile dung 16:9; anh mobile rieng giu 768x600. */
    .figma-hero-image {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }

    .figma-hero-image--mobile {
        aspect-ratio: 768 / 600 !important;
    }

    .figma-hero-image picture,
    .figma-hero-image img {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }

    .figma-hero-image img {
        object-fit: cover !important;
        object-position: center center !important;
    }

    .figma-hero-content {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        display: block !important;
        transform: none !important;
        pointer-events: none !important;
    }

    .figma-hero-copy {
        position: absolute !important;
        top: auto !important;
        right: auto !important;
        bottom: 14px !important;
        left: 12px !important;
        width: min(68%, 250px) !important;
        max-width: calc(100% - 24px) !important;
        margin: 0 !important;
        padding: 9px 22px 9px 10px !important;
        gap: 7px !important;
        border-radius: 9px !important;
        background: linear-gradient(90deg,
            rgba(255, 252, 241, .96) 0%,
            rgba(255, 252, 241, .84) 74%,
            rgba(255, 252, 241, .08) 100%) !important;
        box-sizing: border-box !important;
        pointer-events: auto !important;
    }

    .figma-hero-text h1,
    .figma-hero-text h2 {
        font-size: clamp(18px, 5.8vw, 25px) !important;
        line-height: 1.18 !important;
        -webkit-line-clamp: 2 !important;
    }

    .figma-hero-text p {
        margin-top: 2px !important;
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 2 !important;
    }

    .figma-hero-btn {
        min-height: 34px !important;
        padding: 7px 11px !important;
        font-size: 11.5px !important;
        line-height: 18px !important;
    }

    /* ABOUT: tren mobile doc theo thu tu Tieu de -> Anh -> Mo ta -> Tieu chi. */
    .figma-about-agro {
        padding: 22px 0 30px !important;
    }

    .figma-about-agro__inner {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
    }

    .figma-about-agro__content,
    .figma-about-agro__copy {
        display: contents !important;
    }

    .figma-about-agro__heading {
        order: 1 !important;
        width: 100% !important;
        margin: 0 0 12px !important;
        text-align: center !important;
    }

    .figma-about-agro__eyebrow {
        margin: 0 0 1px !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
        font-weight: 500 !important;
    }

    .figma-about-agro__heading h2 {
        margin: 0 !important;
        font-size: clamp(22px, 6.2vw, 28px) !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .figma-about-agro__visual {
        order: 2 !important;
        width: min(92%, 360px) !important;
        max-width: 360px !important;
        height: auto !important;
        max-height: 220px !important;
        aspect-ratio: 16 / 10 !important;
        flex: none !important;
        margin: 0 auto 14px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background: #FFFCF1 !important;
    }

    .figma-about-agro__visual img {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .figma-about-agro__desc {
        order: 3 !important;
        width: 100% !important;
        margin: 0 0 14px !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
        text-align: left !important;
    }

    .figma-about-agro__criteria {
        order: 4 !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .figma-hero-copy {
        bottom: 10px !important;
        left: 10px !important;
        width: min(72%, 235px) !important;
        max-width: calc(100% - 20px) !important;
        padding: 8px 18px 8px 9px !important;
    }

    .figma-about-agro {
        padding-top: 18px !important;
    }

    .figma-about-agro__inner {
        width: calc(100% - 20px) !important;
    }

    .figma-about-agro__heading {
        margin-bottom: 9px !important;
    }

    .figma-about-agro__visual {
        width: 90% !important;
        max-height: 185px !important;
        margin-bottom: 12px !important;
    }
}

/* =========================================================
   MOBILE FIX V6 - 2026-10-06
   Tinh gon "Vi sao chon" + thiet ke lai "Quy trinh" tren mobile.
   - Khong sua HTML/JS/desktop.
   - 6 tieu chi van 2 cot x 3 hang nhung gon hon.
   - Quy trinh 2x2 card, sua loi chu trang tren nen trang.
   ========================================================= */
@media (max-width: 767px) {
    /* WHY CHOOSE: giam chieu cao tong the, van giu du noi dung. */
    .figma-why-choose {
        padding: 24px 10px 22px !important;
    }

    .figma-why-choose__inner {
        gap: 11px !important;
    }

    .figma-why-choose__eyebrow {
        font-size: 13px !important;
        line-height: 1.25 !important;
    }

    .figma-why-choose__heading h2 {
        margin-top: 2px !important;
        font-size: 20px !important;
        line-height: 1.2 !important;
    }

    .figma-why-choose__stage {
        column-gap: 7px !important;
        row-gap: 7px !important;
    }

    .figma-why-choose__center {
        width: min(100%, 360px) !important;
        max-height: 168px !important;
        aspect-ratio: 16 / 7.6 !important;
        margin-bottom: 0 !important;
        border-radius: 10px !important;
        background: #fffdf5 !important;
    }

    .figma-why-choose__center img {
        object-fit: cover !important;
        object-position: center 48% !important;
    }

    .figma-why-choose__criteria {
        gap: 6px !important;
    }

    .figma-why-choose__criterion,
    .figma-why-choose__criteria--right .figma-why-choose__criterion {
        min-height: 70px !important;
        padding: 7px 8px !important;
        gap: 3px !important;
        border-radius: 7px !important;
        background: rgba(255, 255, 255, .88) !important;
        box-shadow: 0 2px 8px rgba(37, 79, 7, .045) !important;
    }

    .figma-why-choose__criterion-head,
    .figma-why-choose__criteria--right .figma-why-choose__criterion-head {
        min-height: 19px !important;
        gap: 4px !important;
    }

    .figma-why-choose__criterion-head img {
        width: 18px !important;
        height: 18px !important;
        flex: 0 0 18px !important;
    }

    .figma-why-choose__criterion h3,
    .figma-why-choose__criteria--right .figma-why-choose__criterion h3 {
        font-size: 11px !important;
        line-height: 1.25 !important;
        -webkit-line-clamp: 2 !important;
    }

    .figma-why-choose__criterion p,
    .figma-why-choose__criteria--right .figma-why-choose__criterion p {
        font-size: 9.5px !important;
        line-height: 1.32 !important;
        -webkit-line-clamp: 2 !important;
    }

    .figma-why-choose__certificates {
        width: min(100%, 270px) !important;
        gap: 4px !important;
        margin-top: 0 !important;
    }

    .figma-why-choose__certificate {
        max-width: 46px !important;
    }

    /* PROCESS: bo hinh tron desktop, dung card 2x2 de doc duoc tren dien thoai. */
    .figma-process {
        height: auto !important;
        min-height: 0 !important;
        padding: 28px 12px 26px !important;
        overflow: hidden !important;
    }

    .figma-process__inner {
        width: 100% !important;
        max-width: 420px !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .figma-process__heading {
        position: static !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 7px !important;
        padding: 0 6px !important;
        transform: none !important;
    }

    .figma-process__heading div,
    .figma-process__heading h2 {
        min-height: 0 !important;
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;
        color: #254F07 !important;
        text-align: center !important;
        text-wrap: balance !important;
    }

    .figma-process__orbit,
    .figma-process__veil {
        display: none !important;
    }

    .figma-process__step,
    .figma-process__step--1,
    .figma-process__step--2,
    .figma-process__step--3,
    .figma-process__step--4,
    .figma-process__step--5 {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 88px !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 10px !important;
        background: transparent !important;
        transform: none !important;
    }

    .figma-process__step-core {
        width: 100% !important;
        height: 100% !important;
        min-height: 88px !important;
        padding: 10px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        border: 1px solid rgba(85, 117, 58, .18) !important;
        border-radius: 10px !important;
        background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%) !important;
        color: #254F07 !important;
        box-shadow: 0 4px 12px rgba(37, 79, 7, .06) !important;
        box-sizing: border-box !important;
    }

    .figma-process__step-core strong {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: #55753A !important;
        color: #ffffff !important;
        font-size: 13px !important;
        line-height: 1 !important;
        font-weight: 700 !important;
    }

    .figma-process__step-core span {
        width: 100% !important;
        max-width: 145px !important;
        margin: 0 !important;
        display: -webkit-box !important;
        overflow: hidden !important;
        color: #254F07 !important;
        font-size: 11px !important;
        line-height: 1.32 !important;
        font-weight: 600 !important;
        text-align: center !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
    }

    .figma-process__fruit {
        position: static !important;
        grid-column: 1 / -1 !important;
        width: min(48vw, 178px) !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        margin: 3px auto -3px !important;
        transform: none !important;
    }

    .figma-process__fruit img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    /* Keo section gallery ke tiep len gon hon sau anh trai. */
    .figma-real-gallery {
        padding-top: 28px !important;
    }
}

@media (max-width: 380px) {
    .figma-why-choose__center {
        max-height: 150px !important;
    }

    .figma-why-choose__criterion,
    .figma-why-choose__criteria--right .figma-why-choose__criterion {
        min-height: 67px !important;
        padding: 6px 7px !important;
    }

    .figma-why-choose__criterion h3,
    .figma-why-choose__criteria--right .figma-why-choose__criterion h3 {
        font-size: 10.5px !important;
    }

    .figma-why-choose__criterion p,
    .figma-why-choose__criteria--right .figma-why-choose__criterion p {
        font-size: 9px !important;
    }

    .figma-process {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .figma-process__inner {
        gap: 7px !important;
    }

    .figma-process__step-core {
        min-height: 84px !important;
        padding: 9px 6px !important;
    }

    .figma-process__step-core span {
        font-size: 10.5px !important;
    }
}
