/* Only the new [box_nem_foam] and [box_nem_da_tang] shortcodes. */
.nbd-fh-container { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
.nbd-fh { --fh-current-body: var(--fh-body); container: nbd-fh / inline-size; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; box-sizing: border-box; color: #112d60; background: #fff; font-family: var(--nbd-body-font, inherit); font-size: var(--fh-body) !important; line-height: 1.47; }
.nbd-fh *, .nbd-fh *::before, .nbd-fh *::after { box-sizing: border-box; }
.nbd-fh h2, .nbd-fh h3, .nbd-fh p, .nbd-fh ul { margin: 0; padding: 0; color: inherit; }
.nbd-fh h2, .nbd-fh h3 { font-family: var(--nbd-heading-font, var(--nbd-body-font, inherit)) !important; letter-spacing: -.025em; line-height: 1.17; text-transform: none; }
.nbd-fh h2 { font-size: var(--fh-title) !important; font-weight: 800 !important; }
.nbd-fh h3 { font-size: var(--fh-card) !important; font-weight: 800 !important; }
.nbd-fh p, .nbd-fh li { font-size: var(--fh-current-body) !important; line-height: 1.47; }
.nbd-fh a { color: inherit; text-decoration: none; }
.nbd-fh a:hover { color: #2469c2; }
.nbd-fh img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.nbd-fh__section { margin-top: 16px; min-width: 0; }
.nbd-fh__section-head { margin: 0 0 10px; min-width: 0; }
.nbd-fh__section-head h2 { font-size: var(--fh-title) !important; }
.nbd-fh__section-head p { margin-top: 2px; }
.nbd-fh__section-head--split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nbd-fh__section-head--center { text-align: center; }
.nbd-fh__section-head--center small { display: block; margin-bottom: 3px; color: #356fb8; font-size: var(--fh-small) !important; letter-spacing: .13em; }
.nbd-fh__section-head--center p { max-width: 60ch; margin: 4px auto 0; }
.nbd-fh__outline-button, .nbd-fh__button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 33px; padding: 6px 13px; border: 1px solid #82b0ed; border-radius: 7px; color: #1256ad !important; background: #fff; font-size: var(--fh-small) !important; font-weight: 800; line-height: 1.15; text-align: center; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.nbd-fh__outline-button:hover, .nbd-fh__button:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgb(20 80 150 / 15%); }
.nbd-fh__button { min-height: 39px; padding: 8px 23px; border: 0; border-radius: 22px; color: #fff !important; background: linear-gradient(105deg, #2e91d5, #1056c4); font-size: var(--fh-current-body) !important; }
.nbd-fh__script, .nbd-fh__hybrid-script { font-family: 'Great Vibes', 'Lovers Quarrel', cursive !important; font-size: var(--fh-script) !important; font-weight: 400; font-style: italic; line-height: 1.05; text-align: center; }
.nbd-fh__checks { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.nbd-fh__checks li { position: relative; list-style: none !important; margin: 0 0 3px !important; padding: 0 0 0 18px !important; }
.nbd-fh__checks li::before { content: '✓'; position: absolute; left: 0; top: .18em; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; color: white; background: #278f42; font: 700 10px/1 Arial,sans-serif; }

/* Nệm Foam — wide photographic hero, compact four-column merchandising. */
.nbd-fh__hero { position: relative; isolation: isolate; min-height: clamp(290px, 30cqw, 405px); overflow: hidden; border-radius: 10px; }
.nbd-fh__hero-image { position: absolute; z-index: -2; inset: 0; }
.nbd-fh__hero-image img { object-position: center; }
.nbd-fh__foam-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(255 255 255 / 97%) 0%, rgb(255 255 255 / 84%) 37%, transparent 62%); }
.nbd-fh__hero-copy { width: min(48%, 580px); min-width: 0; padding: 25px 30px; }
.nbd-fh__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.nbd-fh__brand-mark { display: grid; place-items: center; width: 28px; height: 28px; color: #1161b4; font-size: 28px; transform: rotate(-17deg); }
.nbd-fh__brand > span:last-child { display: grid; line-height: 1.13; }
.nbd-fh__brand strong { font-size: var(--fh-card) !important; font-weight: 850; }
.nbd-fh__brand small { font-size: var(--fh-small) !important; }
.nbd-fh__foam-hero h2 { color: #103469; font-size: var(--fh-hero) !important; font-weight: 900 !important; line-height: 1; }
.nbd-fh__foam-hero h3 { margin: 5px 0 7px; font-size: var(--fh-card) !important; }
.nbd-fh__foam-hero p { max-width: 46ch; }
.nbd-fh__hero-benefits { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin: 12px 0; }
.nbd-fh__hero-benefits span { display: grid; justify-items: center; gap: 3px; min-width: 0; font-size: var(--fh-small) !important; font-weight: 750; text-align: center; }
.nbd-fh__hero-benefits i { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #cfdef4; border-radius: 50%; color: #1665bc; background: #f6fbff; font-size: 18px; font-style: normal; }
.nbd-fh__script { position: absolute; right: 4%; top: 16%; color: #145aab; transform: rotate(-7deg); }
.nbd-fh__foam-products, .nbd-fh__cert-grid, .nbd-fh__service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.nbd-fh__product, .nbd-fh__cert-grid article, .nbd-fh__service-grid article { min-width: 0; overflow: hidden; border: 1px solid #d9e8fb; border-radius: 10px; background: #fff; box-shadow: 0 4px 15px rgb(35 91 150 / 7%); }
.nbd-fh__product-image { display: block; height: clamp(125px, 16cqw, 205px); overflow: hidden; }
.nbd-fh__product-image img, .nbd-fh__service-image img { transition: transform .3s ease; }
.nbd-fh__product:hover img, .nbd-fh__service-grid article:hover img { transform: scale(1.035); }
.nbd-fh__product-copy { display: flex; flex-direction: column; min-height: 190px; padding: 9px 11px 11px; }
.nbd-fh__product-copy h3 { margin-bottom: 6px; font-size: var(--fh-card) !important; }
.nbd-fh__product-copy .nbd-fh__checks { flex: 1; }
.nbd-fh__product-copy .nbd-fh__outline-button { align-self: center; width: min(85%, 160px); margin-top: 8px; }
.nbd-fh__certs { padding: 16px 14px; border-radius: 13px; background: #edf7ff; }
.nbd-fh__cert-grid article { display: flex; flex-direction: column; align-items: center; min-height: 235px; padding: 10px; text-align: center; }
.nbd-fh__cert-grid h3 { font-size: var(--fh-card) !important; }
.nbd-fh__cert-grid article > span { margin: 2px 0 7px; font-size: var(--fh-small) !important; }
.nbd-fh__cert-image { display: block; flex: 1; width: 100%; height: 125px; min-height: 0; overflow: hidden; }
.nbd-fh__cert-image img { object-fit: contain; }
.nbd-fh__cert-grid .nbd-fh__outline-button { margin-top: 8px; }
.nbd-fh__commitment { position: relative; isolation: isolate; min-height: 200px; overflow: hidden; border-radius: 12px; }
.nbd-fh__commitment-image { position: absolute; z-index: -2; inset: 0; }
.nbd-fh__commitment-image img { object-position: center; }
.nbd-fh__commitment::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(250 253 255 / 99%), rgb(250 253 255 / 88%) 44%, transparent 72%); }
.nbd-fh__commitment-copy { width: 64%; padding: 19px 25px; }
.nbd-fh__commitment-copy > small { color: #246bb5; font-size: var(--fh-small) !important; font-weight: 800; }
.nbd-fh__commitment-copy h2 { margin: 3px 0; font-size: var(--fh-title) !important; }
.nbd-fh__commitment-items { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.nbd-fh__commitment-items span { display: grid; justify-items: center; gap: 5px; min-width: 0; padding: 8px 5px; border-radius: 23px; background: rgb(255 255 255 / 85%); font-size: var(--fh-small) !important; font-weight: 800; text-align: center; }
.nbd-fh__commitment-items i { color: #1764bb; font-size: 25px; font-style: normal; }
.nbd-fh__service-image { height: clamp(115px, 15cqw, 180px); overflow: hidden; }
.nbd-fh__service-grid article > div:last-child { padding: 9px 10px 12px; }
.nbd-fh__service-grid h3 { margin-bottom: 3px; font-size: var(--fh-card) !important; }

/* Nệm đa tầng — layered cutaway hero, alternating material cards, benefits. */
.nbd-fh--hybrid { background: #f7fbff; }
.nbd-fh__hybrid-hero { position: relative; isolation: isolate; min-height: clamp(320px, 35cqw, 440px); overflow: hidden; border-radius: 18px; background: #f0f7ff; }
.nbd-fh__hybrid-image { position: absolute; z-index: -2; inset: 0; }
.nbd-fh__hybrid-image img { object-position: center; }
.nbd-fh__hybrid-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(248 252 255 / 98%), rgb(248 252 255 / 91%) 38%, transparent 64%); }
.nbd-fh__hybrid-copy { width: min(50%, 590px); padding: 30px 26px; }
.nbd-fh__badge { display: inline-block; margin-bottom: 17px; padding: 6px 14px; border-radius: 20px; color: #2165b9; background: #e3f0ff; font-size: var(--fh-small) !important; font-weight: 800; letter-spacing: .08em; }
.nbd-fh__hybrid-copy h2 { margin-bottom: 14px; font-size: var(--fh-hero) !important; font-weight: 850 !important; }
.nbd-fh__hybrid-copy p { max-width: 56ch; }
.nbd-fh__hybrid-script { position: absolute; top: 10%; right: 24%; color: #2d6fc2; transform: rotate(-6deg); }
.nbd-fh__hybrid-benefits { position: absolute; top: 29%; right: 1%; width: 18%; min-width: 140px; padding: 13px; border-radius: 28px; background: rgb(255 255 255 / 89%); box-shadow: 0 8px 28px rgb(80 140 200 / 9%); }
.nbd-fh__hybrid-benefits ul { list-style: none !important; }
.nbd-fh__hybrid-benefits li { position: relative; list-style: none !important; padding: 9px 0 9px 24px !important; font-size: var(--fh-small) !important; }
.nbd-fh__hybrid-benefits li::before { content: '✓'; position: absolute; left: 1px; top: 7px; color: #236dc3; font-weight: 900; }
.nbd-fh__material-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; position: relative; margin: -46px 14px 14px; }
.nbd-fh__material-tabs a { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 72px; padding: 8px 10px; border: 1px solid #e0edff; border-radius: 17px; background: #fff; box-shadow: 0 5px 20px rgb(28 80 153 / 9%); }
.nbd-fh__material-tabs i { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #2377d2; background: #edf5ff; font-size: 23px; font-style: normal; }
.nbd-fh__material-tabs span { display: grid; min-width: 0; }
.nbd-fh__material-tabs strong { font-size: var(--fh-card) !important; line-height: 1.2; }
.nbd-fh__material-tabs small { font-size: var(--fh-small) !important; }
.nbd-fh__materials-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.nbd-fh__material { display: grid; grid-template-columns: 45% minmax(0,1fr); min-width: 0; padding: 11px; border-radius: 17px; background: #fff; box-shadow: 0 7px 24px rgb(35 91 150 / 7%); }
.nbd-fh__material-image { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; border-radius: 12px; }
.nbd-fh__material-image img { position: absolute; inset: 0; transition: transform .3s ease; }
.nbd-fh__material:hover img { transform: scale(1.03); }
.nbd-fh__material-copy { display: flex; flex-direction: column; min-width: 0; padding: 12px 10px 9px 17px; }
.nbd-fh__material-copy h3 { margin-bottom: 8px; font-size: var(--fh-title) !important; }
.nbd-fh__material-copy p { flex: 0 1 auto; }
.nbd-fh__material-copy .nbd-fh__checks { margin-top: 12px !important; padding-top: 9px !important; border-top: 1px solid #cfe1f7; }
.nbd-fh__material-copy .nbd-fh__checks li::before { background: #408fe9; }
.nbd-fh__advantages { padding: 17px 14px 20px; border-radius: 18px; background: #e9f5ff; }
.nbd-fh__advantage-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.nbd-fh__advantage-grid article { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 155px; padding: 16px 12px; border-radius: 16px; background: #fff; text-align: center; }
.nbd-fh__advantage-grid i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 7px; border-radius: 50%; color: #2779d1; background: #ebf5ff; font-size: 29px; font-style: normal; }
.nbd-fh__advantage-grid h3 { margin-bottom: 4px; font-size: var(--fh-card) !important; }

@container nbd-fh (max-width: 850px) {
  .nbd-fh__foam-products, .nbd-fh__cert-grid, .nbd-fh__service-grid, .nbd-fh__material-tabs, .nbd-fh__advantage-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nbd-fh__hero-copy { width: 58%; }
  .nbd-fh__hybrid-copy { width: 56%; }
  .nbd-fh__hybrid-benefits { display: none; }
  .nbd-fh__materials-grid { grid-template-columns: 1fr; }
}
@container nbd-fh (max-width: 600px) {
  /* A container cannot style itself in its own query: set mobile body size on children. */
  .nbd-fh > * { --fh-current-body: var(--fh-body-mobile); font-size: var(--fh-body-mobile) !important; }
  .nbd-fh h2, .nbd-fh__section-head h2, .nbd-fh__commitment-copy h2, .nbd-fh__material-copy h3 { font-size: var(--fh-title-mobile) !important; }
  .nbd-fh__foam-hero h2, .nbd-fh__hybrid-copy h2 { font-size: var(--fh-hero-mobile) !important; }
  .nbd-fh__script, .nbd-fh__hybrid-script { font-size: var(--fh-script-mobile) !important; }
  .nbd-fh__foam-hero { min-height: 390px; }
  .nbd-fh__foam-hero::before { background: linear-gradient(90deg, rgb(255 255 255 / 97%), rgb(255 255 255 / 86%) 67%, transparent); }
  .nbd-fh__hero-copy { width: 75%; padding: 16px; }
  .nbd-fh__hero-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nbd-fh__script { display: none; }
  .nbd-fh__section-head--split { align-items: flex-start; }
  .nbd-fh__section-head--split > .nbd-fh__outline-button { flex: 0 0 auto; max-width: 120px; }
  .nbd-fh__cert-grid article { min-height: 215px; }
  .nbd-fh__commitment-copy { width: 80%; padding: 14px; }
  .nbd-fh__commitment-items { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nbd-fh__hybrid-hero { min-height: 360px; }
  .nbd-fh__hybrid-copy { width: 72%; padding: 17px; }
  .nbd-fh__hybrid-script { display: none; }
  .nbd-fh__material-tabs { margin: 10px 0; }
}
@container nbd-fh (max-width: 420px) {
  .nbd-fh__hero-copy, .nbd-fh__hybrid-copy { width: 90%; }
  .nbd-fh__foam-products, .nbd-fh__cert-grid, .nbd-fh__service-grid, .nbd-fh__material-tabs, .nbd-fh__advantage-grid { grid-template-columns: 1fr; }
  .nbd-fh__product-image { height: 190px; }
  .nbd-fh__service-image { height: 170px; }
  .nbd-fh__material { grid-template-columns: 1fr; }
  .nbd-fh__material-image { height: 190px; }
  .nbd-fh__material-copy { padding: 12px 4px 3px; }
  .nbd-fh__commitment-copy { width: 100%; }
  .nbd-fh__commitment::before { background: rgb(250 253 255 / 88%); }
}
