/* Nafoods homepage — scoped tokens + sections (no Tailwind dump) */
/* Loading overlay styles live in chrome.css (site-wide capable). */

.nafoods-home,
.nafoods-home-main {
  /* Figma HOMEPAGE tokens */
  --nf-brand: #760f26; /* primary/500 */
  --nf-brand-bright: #f42f4c; /* Radical Red — hero accent */
  --nf-brand-secondary: #eb3345; /* secondary/500 */
  --nf-cream: #fffaf3; /* Bridal Heath */
  --nf-cream-deep: #fff5e4; /* Sazerac */
  --nf-gold: #f6c82f; /* Saffron */
  --nf-ink: #2b1311; /* Tamarind */
  --nf-muted: #645048; /* Kabul */
  --nf-serif: "NAF Passion Sans", "Georgia", "Times New Roman", serif;
  --nf-display: "NAF Passion Sans Wide", "NAF Passion Sans", "Georgia", "Times New Roman", serif;
  --nf-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nf-max: 1220px;
  --nf-radius: 8px;
  background: var(--nf-cream);
  color: var(--nf-ink);
  font-family: var(--nf-sans);
  overflow-x: clip;
}

.nafoods-home-main *,
.nafoods-home-main *::before,
.nafoods-home-main *::after {
  box-sizing: border-box;
}

.nf-container {
  /* Mobile/tablet: 20px (1.25rem) mỗi bên, full width section */
  width: min(100% - 2.5rem, var(--nf-max));
  margin-inline: auto;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .nf-container {
    width: min(100% - 5rem, var(--nf-max));
  }
}

.nf-serif {
  font-family: var(--nf-serif);
  letter-spacing: -0.01em;
}

.nf-accent {
  color: var(--nf-brand-bright);
}

.nf-ink {
  color: var(--nf-ink);
}

.nf-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--nf-brand) 70%, transparent);
}

.nf-eyebrow--light {
  color: color-mix(in srgb, var(--nf-cream-deep) 70%, transparent);
}

.nf-section-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  font-weight: 600;
}

.nf-section-title--brand {
  color: var(--nf-brand);
}

.nf-section-title--cream {
  color: var(--nf-cream-deep);
}

.nf-section-sub {
  margin: 1.25rem 0 0;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--nf-muted);
}

@media (min-width: 768px) {
  .nf-section-sub {
    font-size: 1.125rem;
  }
}

.nf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nf-btn:hover {
  transform: scale(1.02);
}

.nf-btn--brand {
  background: var(--nf-brand);
  color: var(--nf-cream-deep);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--nf-brand-bright) 40%, transparent);
}

/* Elementor/global a:hover often đổi màu — giữ nguyên text + icon */
.nf-btn--brand:hover,
.nf-btn--brand:focus,
.nf-btn--brand:active,
.nf-hero .nf-btn--brand:hover,
.nf-hero .nf-btn--brand:focus {
  color: var(--nf-cream-deep);
  background: var(--nf-brand);
}

.nf-btn--brand:hover svg,
.nf-btn--brand:focus svg {
  color: inherit;
  stroke: currentColor;
}

.nf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-family: var(--nf-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #900f21;
}

/* Hover: không đổi màu text/icon */
.nf-link:hover,
.nf-link:focus,
.nf-link:active {
  color: #900f21;
}

.nf-link--sm {
  margin-top: 1rem;
  font-size: 0.75rem;
}

/* Arrow buttons — sitewide: default + hover only; press = no extra color; disable = opacity */
.nf-icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #f1ebde;
  color: var(--nf-ink);
  line-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.nf-icon-btn svg {
  display: block;
  margin: 0;
  flex-shrink: 0;
}

/* Hover: nền brand + icon trắng (như design) */
.nf-icon-btn:hover:not(:disabled) {
  background: var(--nf-brand);
  color: var(--nf-cream-deep);
}

.nf-icon-btn:active:not(:disabled),
.nf-icon-btn:focus,
.nf-icon-btn:focus-visible {
  background: #f1ebde;
  color: var(--nf-ink);
  outline: none;
  box-shadow: none;
}

/* Press giữ hover — không màu press riêng */
.nf-icon-btn:hover:not(:disabled):active {
  background: var(--nf-brand);
  color: var(--nf-cream-deep);
}

/* Disabled: opacity thấp, vẫn có hover màu, cursor default, không click */
.nf-icon-btn:disabled,
.nf-icon-btn:disabled:focus {
  opacity: 0.4;
  background: #f1ebde;
  color: var(--nf-ink);
  cursor: default;
}

.nf-icon-btn:disabled:hover,
.nf-icon-btn:disabled:active {
  background: var(--nf-brand);
  color: var(--nf-cream-deep);
  cursor: default;
  opacity: 0.4;
}

/* Reveal (CSS + IO — no loader blocking LCP) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Hero —— */
.nf-hero {
  position: relative;
  min-height: 600px;
  height: 100svh;
  overflow: hidden;
  color: var(--nf-cream-deep);
}

.nf-hero__media,
.nf-hero__slide {
  position: absolute;
  inset: 0;
}

.nf-hero__slide {
  opacity: 0;
  transition: opacity 1s ease;
}

.nf-hero__slide.is-active {
  opacity: 1;
}

.nf-hero__img,
.nf-hero__video,
.nf-hero__poster,
.nf-hero__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nf-hero__placeholder {
  background: linear-gradient(135deg, #4a0a18, #760f26 50%, #2a0810);
}

.nf-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 50%);
  pointer-events: none;
}

.nf-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-top: 6rem;
}

/* Hero title — giảm fs so với Figma 60/72 */
.nf-hero__title {
  margin: 0;
  max-width: 64rem;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 28px;
  line-height: 34px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.nf-hero__title .nf-accent {
  color: var(--nf-brand-bright);
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

@media (min-width: 768px) {
  .nf-hero__title {
    font-size: 48px;
    line-height: 58px;
  }
}

.nf-hero__cta {
  margin-top: 1.75rem;
}

.nf-hero__dots {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 0.75rem;
}

/* Mobile: horizontal bottom */
.nf-hero__dots {
  bottom: 1.5rem;
  left: 50%;
  flex-direction: row;
  transform: translateX(-50%);
}

/* Desktop: vertical right */
@media (min-width: 768px) {
  .nf-hero__dots {
    top: 50%;
    bottom: auto;
    left: auto;
    right: 1.5rem;
    flex-direction: column;
    transform: translateY(-50%);
  }
}

.nf-hero__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 50%);
  color: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: width 0.25s, height 0.25s, background 0.25s;
}

.nf-hero__dot:hover,
.nf-hero__dot:focus {
  background: rgb(255 255 255 / 80%);
  color: transparent;
  box-shadow: none;
}

.nf-hero__dot.is-active,
.nf-hero__dot.is-active:hover,
.nf-hero__dot.is-active:focus {
  width: 2rem;
  background: #fff;
}

@media (min-width: 768px) {
  .nf-hero__dot.is-active,
  .nf-hero__dot.is-active:hover,
  .nf-hero__dot.is-active:focus {
    width: 0.5rem;
    height: 2rem;
  }
}

/* —— Stats —— */
.nf-stats {
  background: var(--nf-brand);
  padding: 3rem 0;
  color: var(--nf-cream-deep);
  overflow: visible;
}

.nf-stats > .nf-container {
  overflow: visible;
}

@media (min-width: 768px) {
  .nf-stats {
    padding: 6rem 0;
  }
}

/* Figma 107720:14217 — title left + 3 illustrated TOP badges */
.nf-stats__top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  overflow: visible;
}

@media (min-width: 1024px) {
  .nf-stats__top {
    flex-direction: row;
    align-items: center;
    gap: 2.25rem; /* Figma 36px */
  }
}

/* Figma heading col ~452px; title text 426px */
.nf-stats__heading {
  flex: 0 0 auto;
  width: min(100%, 452px);
  max-width: 452px;
}

/* Figma text/xs/Regular — Inter Regular 12/18, tracking 19% */
.nf-stats__heading .nf-eyebrow {
  font-family: var(--nf-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.19em;
}

/* Figma display/md/Bold — Wide Regular 500, 40/52, -1%, width 426px */
.nf-stats__title {
  margin: 0;
  width: 100%;
  max-width: 426px;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 32px;
  line-height: 42px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nf-cream-deep);
}

@media (min-width: 768px) {
  .nf-stats__title {
    font-size: 40px;
    line-height: 52px;
  }
}

.nf-stats__badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6rem;
  flex: 1 1 auto;
  min-width: 0;
  justify-items: center;
  overflow: visible;
}

@media (min-width: 640px) {
  .nf-stats__badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6rem;
  }
}

/* Figma: text center; badge 2–3 margin-right nhẹ; globe to hơn + hạ xuống */
.nf-stats__badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 210px;
  min-height: 91px;
  margin-inline: auto;
  padding-top: 2.75rem;
  text-align: center;
  overflow: visible;
}

.nf-stats__badge-art {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  transform: translate(-50%, -52%);
  pointer-events: none;
  opacity: 0.95;
}

/* Badge 2–3 globes */
.nf-stats__badge:nth-child(2) .nf-stats__badge-art,
.nf-stats__badge:nth-child(3) .nf-stats__badge-art {
  top: 67%;
  transform: translate(-50%, -48%) scale(1);
  transform-origin: center center;
}

@media (min-width: 1024px) {
  .nf-stats__badge:nth-child(2) .nf-stats__badge-inner,
  .nf-stats__badge:nth-child(3) .nf-stats__badge-inner {
    transform: translateX(-2rem);
  }
}

.nf-stats__badge-art--placeholder {
  width: 12rem;
  height: 8rem;
  background:
    radial-gradient(circle at 50% 40%, rgb(246 200 47 / 25%), transparent 65%),
    radial-gradient(circle at 70% 20%, rgb(255 245 228 / 12%), transparent 50%);
}

.nf-stats__badge-img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
}

.nf-stats__badge-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* TOP badges — text vàng, giảm fs nhẹ */
.nf-stats__badge-value {
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
  letter-spacing: -0.01em;
  color: var(--nf-gold);
}

.nf-stats__badge-label {
  margin: 0;
  max-width: 12rem;
  text-align: center;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
  color: var(--nf-gold);
}

.nf-stats__bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
}

.nf-stats__nav {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: 1px solid var(--nf-cream-deep);
  border-radius: 999px;
  background: transparent;
  color: var(--nf-cream-deep);
  line-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.nf-stats__nav svg {
  display: block;
  margin: 0;
  flex-shrink: 0;
}

.nf-stats__nav:hover:not(:disabled) {
  background: rgb(255 245 228 / 12%);
  color: rgb(255 245 228 / 85%);
  border-color: rgb(255 245 228 / 70%);
}

.nf-stats__nav:active:not(:disabled),
.nf-stats__nav:focus,
.nf-stats__nav:focus-visible {
  background: transparent;
  color: var(--nf-cream-deep);
  border-color: var(--nf-cream-deep);
  outline: none;
  box-shadow: none;
}

.nf-stats__nav:hover:not(:disabled):active {
  background: rgb(255 245 228 / 12%);
  color: rgb(255 245 228 / 85%);
  border-color: rgb(255 245 228 / 70%);
}

.nf-stats__nav:disabled,
.nf-stats__nav:disabled:focus {
  opacity: 0.4;
  background: transparent;
  color: var(--nf-cream-deep);
  border-color: var(--nf-cream-deep);
  cursor: default;
}

.nf-stats__nav:disabled:hover,
.nf-stats__nav:disabled:active {
  background: rgb(255 245 228 / 12%);
  color: rgb(255 245 228 / 85%);
  border-color: rgb(255 245 228 / 70%);
  cursor: default;
  opacity: 0.4;
}

.nf-stats__track-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* Divider giữa các item đang hiện — cố định theo viewport */
.nf-stats__track-wrap::before,
.nf-stats__track-wrap::after {
  content: none;
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 1px;
  height: 3rem;
  background: rgb(255 245 228 / 40%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Tablet 2 items — 1 border giữa */
.nf-stats.is-stats-2 .nf-stats__track-wrap::after {
  content: "";
  left: 50%;
}

/* Desktop 4 items — border tại 25% / 50% / 75% */
.nf-stats.is-stats-4 .nf-stats__track-wrap {
  background-image:
    linear-gradient(rgb(255 245 228 / 40%), rgb(255 245 228 / 40%)),
    linear-gradient(rgb(255 245 228 / 40%), rgb(255 245 228 / 40%)),
    linear-gradient(rgb(255 245 228 / 40%), rgb(255 245 228 / 40%));
  background-size: 1px 3rem;
  background-position: 25% center, 50% center, 75% center;
  background-repeat: no-repeat;
}

.nf-stats__track {
  display: flex;
  transition: transform 0.5s ease;
}

/* Slider Why Nafoods — mobile 1 / tablet 2 / desktop 4 */
.nf-stats__item {
  position: relative;
  flex: 0 0 100%;
  padding: 0 0.75rem;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .nf-stats__item {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .nf-stats__item {
    flex: 0 0 25%;
  }
}

/* Figma display/sm/Bold — Wide Regular 500, 32/38, -1% */
.nf-stats__value {
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.01em;
  color: var(--nf-cream-deep);
}

/* Figma text/sm/NAF — Wide Regular 500 */
.nf-stats__label {
  margin: 4px 0 0;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0;
  color: var(--nf-cream-deep);
}

@media (min-width: 768px) {
  .nf-stats__value {
    font-size: 32px;
    line-height: 38px;
  }
}

/* —— Products —— */
.nf-products {
  padding: 3rem 0;
  background: var(--nf-cream);
}

@media (min-width: 768px) {
  .nf-products {
    padding: 5rem 0;
  }
}

.nf-products__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .nf-products__head {
    margin-bottom: 2rem;
  }
}

.nf-products__nav {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
}

/* Figma display/md — Wide Regular 500, 40/52, accent brand #760F26 */
.nf-products__heading {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #0b0103;
  white-space: normal;
}

@media (min-width: 768px) {
  .nf-products__heading {
    font-size: 36px;
    line-height: 46px;
  }
}

@media (min-width: 1024px) {
  .nf-products__heading {
    font-size: 40px;
    line-height: 52px;
  }
}

.nf-products__heading .nf-accent {
  color: var(--nf-brand);
}

.nf-products__scroller {
  --nf-products-inset: max(1.25rem, calc(50% - (var(--nf-max) / 2)));
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Same left edge as .nf-container (use % not 100vw — tránh lệch scrollbar) */
  padding: 0 var(--nf-products-inset) 1.5rem;
  scroll-padding-left: var(--nf-products-inset);
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

@media (min-width: 1024px) {
  .nf-products__scroller {
    --nf-products-inset: max(2.5rem, calc(50% - (var(--nf-max) / 2)));
  }
}

.nf-products__scroller::-webkit-scrollbar {
  display: none;
}

.nf-products__scroller.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

/* Giải pháp — mobile 1 item 100%; desktop max 800px */
.nf-products__card {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scroll-snap-align: start;
  padding: 1.25rem;
  border-radius: var(--nf-radius);
  background: #fffdfa;
  transition: background 0.3s;
}

.nf-products__card:hover {
  background: var(--nf-cream-deep);
}

@media (min-width: 768px) {
  .nf-products__card {
    flex: 0 0 auto;
    flex-direction: row;
    width: min(800px, calc(100vw - 5rem));
    min-width: min(800px, calc(100vw - 5rem));
    max-width: 800px;
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .nf-products__card {
    width: 800px;
    min-width: 800px;
    max-width: 800px;
  }
}

.nf-products__media {
  aspect-ratio: 1;
  width: 100%;
  align-self: center;
  overflow: hidden;
  border-radius: var(--nf-radius);
}

@media (min-width: 768px) {
  .nf-products__media {
    width: 320px;
    flex: none;
  }
}

.nf-products__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.nf-products__card:hover .nf-products__img {
  transform: scale(1.05);
}

.nf-products__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 1.25rem;
}

@media (min-width: 768px) {
  .nf-products__body {
    padding: 0 0 0 2rem;
  }
}

/* Figma display/xs — Wide Regular 500, 24/32 */
.nf-products__title {
  margin: 0;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #0b0103;
}

@media (min-width: 768px) {
  .nf-products__title {
    font-size: 24px;
    line-height: 32px;
  }
}

/* Figma text/md/Regular — Inter 400, 16/24 */
.nf-products__desc {
  margin: 0.75rem 0 0;
  font-family: var(--nf-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--nf-muted);
}

.nf-products__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

/* Figma text/sm/Medium — Inter 500, 14/20 */
.nf-products__tags li {
  padding: 9px 17px;
  border: 1px solid var(--nf-brand);
  border-radius: 999px;
  font-family: var(--nf-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--nf-brand);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: default;
}

.nf-products__cta {
  margin-top: 1.5rem;
}

.nf-products__tags li:hover {
  background: var(--nf-brand-bright);
  border-color: var(--nf-brand-bright);
  color: #fff;
}

/* —— Value Chain (Figma tabs 1–5) —— */
.nf-vc {
  --nf-vc-brand: #760f26;
  --nf-vc-ink: #0b0103;
  --nf-vc-card: #fff5e4;
  position: relative;
  background: var(--nf-cream, #fffaf3);
  padding: 3rem 0;
  overflow: hidden;
}

.nf-vc__intro {
  margin-bottom: 1.5rem;
}

/* Wide Regular 500 — match Products / Partners headings */
.nf-vc__title {
  margin: 0;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 32px;
  line-height: 42px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nf-vc-ink);
}

.nf-vc__title-accent {
  color: var(--nf-vc-brand);
}

.nf-vc__sub {
  margin: 1rem 0 0;
  max-width: 44rem;
  font-family: var(--nf-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--nf-vc-ink);
}

@media (min-width: 768px) {
  .nf-vc__title {
    font-size: 40px;
    line-height: 52px;
  }

  .nf-vc__sub {
    font-size: 1.125rem;
    margin-top: 1.25rem;
  }
}

.nf-vc__shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nf-vc__tabs {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: none;
}

.nf-vc__tabs::-webkit-scrollbar {
  display: none;
}

.nf-vc__tab {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--nf-vc-brand);
  border-radius: 999px;
  background: transparent;
  color: var(--nf-vc-brand);
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Active + hover: cùng style đỏ fill / chữ trắng */
.nf-vc__tab.is-active,
.nf-vc__tab[aria-selected='true'],
.nf-vc__tab:hover {
  background: var(--nf-vc-brand);
  border-color: var(--nf-vc-brand);
  color: #fff;
}

.nf-vc__tab-line {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.5px;
  margin: 0 0.1rem;
  background: var(--nf-vc-brand);
  opacity: 0.7;
}

.nf-vc__viewport {
  position: relative;
  /* Full-bleed khỏi .nf-container để overview căn theo screen */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  height: auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
}

/* Tab detail cần khung để stage absolute */
.nf-vc.is-detail .nf-vc__viewport {
  min-height: 420px;
}

.nf-vc__overview {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 96vw;
  margin: -0.25rem auto 0;
  padding: 0 0 1rem;
  box-sizing: border-box;
}

/* Detail mode: overview không còn chiếm chiều cao */
.nf-vc.is-detail .nf-vc__overview {
  position: absolute;
  inset: 0;
  width: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.nf-vc__overview img,
.nf-vc__overview-placeholder {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center top;
}

.nf-vc__overview-placeholder {
  background:
    linear-gradient(180deg, transparent 0%, rgb(144 15 33 / 4%) 100%),
    radial-gradient(ellipse at 50% 80%, rgb(144 15 33 / 10%), transparent 55%);
}

.nf-vc__overview.is-empty {
  pointer-events: none;
}

.nf-vc__ground {
  --nf-vc-ground-h: 100px;
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/*
 * Cắt ngang 2 nửa — mỗi lớp nửa chiều cao dải đất (khớp mép, không hở trắng).
 * top z < cột số < bottom z
 */
.nf-vc__ground--top {
  bottom: calc(var(--nf-vc-ground-h) / 2);
  height: calc(var(--nf-vc-ground-h) / 2);
  z-index: 4;
}

.nf-vc__ground--bottom {
  bottom: 0;
  height: calc(var(--nf-vc-ground-h) / 2);
  z-index: 12;
}

/* Ép hiện từ tab 1 → 5 — không để GSAP đè */
.nf-vc.is-detail .nf-vc__ground {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none;
}

.nf-vc__ground-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  min-width: 0;
  object-fit: fill;
  object-position: left center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

/* Cùng 1 ảnh full ở cả 2 slot → crop nửa trên / nửa dưới trong khung */
.nf-vc__ground.is-full-src .nf-vc__ground-img {
  height: var(--nf-vc-ground-h);
  object-position: left top;
}

.nf-vc__ground--bottom.is-full-src .nf-vc__ground-img {
  margin-top: calc(var(--nf-vc-ground-h) / -2);
}

.nf-vc__stage {
  position: absolute;
  inset: 0;
  z-index: 15; /* content trên cả 2 lớp đất */
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nf-vc__stage.is-active {
  pointer-events: auto;
}

/* Cột số — giữa ground-top (4) và ground-bottom (12) */
.nf-vc__marker {
  display: none;
  position: absolute;
  z-index: 8;
  pointer-events: none;
}

/* Chưa vào tab detail → ẩn hết cột số */
.nf-vc:not(.is-detail) .nf-vc__marker {
  opacity: 0 !important;
  visibility: hidden !important;
}

.nf-vc__content {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  gap: 1.25rem;
  padding: 0 0 3.5rem;
}

.nf-vc__scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.nf-vc__art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 220px;
  overflow: hidden;
}

.nf-vc__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

.nf-vc__art.is-empty {
  background: rgb(118 15 38 / 4%);
  min-height: 140px;
}

/* Tab 2–5: illus 90% căn giữa (tab 1 giữ 100%) */
#nf-vc-stage-1 .nf-vc__art,
#nf-vc-stage-2 .nf-vc__art,
#nf-vc-stage-3 .nf-vc__art,
#nf-vc-stage-4 .nf-vc__art {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
}

.nf-vc__stage-title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--nf-vc-brand);
}

.nf-vc__highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.nf-vc__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nf-vc__group + .nf-vc__group {
  margin-top: 0.5rem;
}

/* Figma text/md/Regular — Inter 400, 16/24, #000 */
.nf-vc__group-label {
  display: block;
  font-family: var(--nf-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: none;
  color: #000;
}

.nf-vc__row {
  display: grid;
  gap: 0.75rem;
}

.nf-vc__row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nf-vc__row--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nf-vc__card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border: 0;
  border-radius: 12px;
  background: var(--nf-vc-card);
  text-align: left;
}

.nf-vc__card--full {
  grid-column: 1 / -1;
}

.nf-vc__num {
  font-family: var(--nf-display, var(--nf-serif));
  color: var(--nf-vc-brand);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nf-vc__text {
  margin: 0;
  font-family: var(--nf-sans);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--nf-vc-ink);
}

/* Tablet / mobile ≤1023 — ảnh trên, cards dưới; không cột số / Layer_1 */
@media (max-width: 1023px) {
  .nf-vc__viewport {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .nf-vc.is-detail .nf-vc__viewport {
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  /* Ẩn Layer_1 trên mobile/tablet */
  .nf-vc__ground,
  .nf-vc.is-detail .nf-vc__ground {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .nf-vc__stage {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 100%;
    height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0;
    gap: 0;
    pointer-events: none;
  }

  .nf-vc__stage.is-active {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0.5rem 0 2rem;
    pointer-events: auto;
  }

  .nf-vc__content {
    display: flex !important;
    flex: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem;
    max-width: none !important;
    width: 100% !important;
    padding: 0 0 1.5rem;
    margin-right: 0 !important;
    min-width: 0;
    min-height: 0;
  }

  /* Illus width 100% trong container — padding 20px 2 bên */
  .nf-vc__scene {
    display: flex !important;
    flex: none !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    align-self: stretch !important;
    padding-inline: 1.25rem;
    box-sizing: border-box;
  }

  .nf-vc__art {
    width: 100%;
    max-width: 100%;
    max-height: none;
    aspect-ratio: auto;
    box-sizing: border-box;
  }

  .nf-vc__art img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
  }

  .nf-vc__highlights {
    display: flex !important;
    flex: none !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    align-self: stretch !important;
    padding-inline: 1.25rem;
    box-sizing: border-box;
  }

  .nf-vc__marker {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .nf-vc__title {
    font-size: 32px;
    line-height: 40px;
  }

  .nf-vc__sub {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .nf-vc__stage-title {
    padding-inline: 1.25rem;
    font-size: 22px;
    line-height: 1.2;
    box-sizing: border-box;
  }

  .nf-vc__num {
    font-size: 18px;
    line-height: 1.15;
  }

  .nf-vc__text {
    font-size: 12px;
    line-height: 1.4;
  }

  .nf-vc__group-label {
    font-size: 13px;
    line-height: 18px;
  }

  .nf-vc__card {
    padding: 0.75rem 0.85rem;
    gap: 0.3rem;
  }

  .nf-vc__row--2,
  .nf-vc__row--3 {
    grid-template-columns: 1fr;
  }

  #nf-vc-stage-4 .nf-vc__content {
    margin-right: 0 !important;
  }
}

@media (min-width: 768px) {
  .nf-vc__tab {
    font-size: 0.9375rem;
    padding: 0.65rem 1.25rem;
  }

  .nf-vc__tab-line {
    width: 2.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .nf-vc__tab {
    font-size: 0.875rem;
    padding: 0.6rem 1.15rem;
  }

  .nf-vc__tab-line {
    width: 2.25rem;
  }

  .nf-vc__art {
    max-height: none;
  }

  .nf-vc__stage-title {
    font-size: 26px;
  }

  .nf-vc__num {
    font-size: 20px;
  }

  .nf-vc__text {
    font-size: 13px;
  }

  .nf-vc__row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nf-vc__row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nf-vc {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    padding: 0;
  }

  .nf-vc__intro {
    flex: 0 0 auto;
    padding-top: clamp(4rem, 7vh, 5.5rem);
    padding-bottom: 1.5rem;
    margin-bottom: 0;
  }

  .nf-vc__shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 2rem;
    padding-bottom: 0;
  }

  .nf-vc__tabs {
    justify-content: center;
    overflow: visible;
  }

  .nf-vc__tab {
    font-size: 1rem;
    padding: 0.7rem 1.4rem;
  }

  .nf-vc__tab-line {
    width: 3.75rem;
    margin: 0 0.15rem;
  }

  .nf-vc__viewport {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    /* Vùng dưới tabs — chiếm phần còn lại của 100vh */
    min-height: clamp(420px, 52vh, 640px);
    overflow: hidden;
  }

  .nf-vc.is-detail .nf-vc__viewport {
    flex: 1 1 auto;
    min-height: clamp(420px, 52vh, 640px);
  }

  /* Desktop overview: absolute trong viewport 100vh */
  .nf-vc__overview {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 5vw;
    width: 90vw;
    margin: 0;
    padding: 1.5rem 0 3rem;
    align-items: center;
    justify-content: center;
  }

  .nf-vc.is-detail .nf-vc__overview {
    position: absolute;
    inset: 0;
    width: auto;
    margin: 0;
    padding: 0;
  }

  .nf-vc__overview img,
  .nf-vc__overview-placeholder {
    width: 100%;
    max-height: min(52vh, 560px);
    object-position: center center;
  }

  .nf-vc__ground,
  .nf-vc.is-detail .nf-vc__ground {
    display: block;
  }

  .nf-vc__ground {
    --nf-vc-ground-h: 168px;
  }

  /* Desktop: stage absolute full viewport */
  .nf-vc__stage,
  .nf-vc__stage.is-active {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    overflow: visible;
    padding: 1rem 6vw 7.5rem;
    pointer-events: none;
  }

  .nf-vc__stage.is-active {
    pointer-events: auto;
  }

  /* Desktop: content center; trái hơi lên; sát Layer_1 */
  .nf-vc__stage {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }

  .nf-vc__content {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 2.75rem;
    max-width: 1080px;
    padding: 0;
    min-width: 0;
  }

  .nf-vc__scene {
    flex: 0 0 clamp(380px, 30vw, 480px);
    max-width: 480px;
    align-self: center;
    align-items: center;
    transform: translateY(-28px);
  }

  .nf-vc__art {
    max-height: none;
    width: 100%;
    aspect-ratio: 5 / 4;
  }

  .nf-vc__art img {
    object-position: center bottom;
  }

  .nf-vc__stage-title {
    font-size: 40px;
    line-height: 1.15;
    text-align: center;
  }

  .nf-vc__highlights {
    flex: 1 1 480px;
    max-width: 500px;
    align-self: center;
    gap: 1.1rem;
  }

  .nf-vc__row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Tab 1 — 4 box cùng width */
  .nf-vc__highlights--grid_2x2 .nf-vc__row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nf-vc__highlights--grid_2x2 .nf-vc__card {
    width: 100%;
    min-width: 0;
  }

  /*
   * Cột mốc — tip dừng trên sóng Layer_1 (không lòi dưới teal)
   * width / right / bottom: % theo stage; sink = 0
   */
  .nf-vc__marker {
    --nf-vc-marker-w: 9%;
    --nf-vc-marker-right: 8%;
    /* Hạ xuống gần đất hơn — tip bị Layer_1 che */
    --nf-vc-marker-bottom: 9%;
    position: absolute;
    right: var(--nf-vc-marker-right);
    bottom: var(--nf-vc-marker-bottom);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: var(--nf-vc-marker-w);
    z-index: 8; /* giữa ground-top và ground-bottom */
    transform-origin: bottom center;
  }

  .nf-vc__marker-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
  }

  .nf-vc__marker-pole {
    display: block;
    width: 14%;
    aspect-ratio: 1 / 9.5;
    height: auto;
    border-radius: 0 0 0.15em 0.15em;
    background: linear-gradient(180deg, var(--nf-vc-brand) 0%, #5c0c1a 100%);
  }

  .nf-vc__marker-sign {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 67%;
    aspect-ratio: 4 / 3;
    height: auto;
    margin-bottom: -5%;
    border-radius: 0.12em;
    background: var(--nf-vc-brand);
    color: #fff5e4;
    font-family: var(--nf-display, var(--nf-serif));
    font-size: 2.1em;
    font-weight: 500;
    line-height: 1;
  }

  /* 1 — nhỏ lại, nhích lên */
  .nf-vc__marker--1 {
    --nf-vc-marker-w: 9.5%;
    --nf-vc-marker-right: 6.5%;
    --nf-vc-marker-bottom: 16.5%;
  }

  /* 2 */
  .nf-vc__marker--2 {
    --nf-vc-marker-w: 8.2%;
    --nf-vc-marker-right: 7.5%;
    --nf-vc-marker-bottom: 9%;
  }

  /* 3 */
  .nf-vc__marker--3 {
    --nf-vc-marker-w: 9%;
    --nf-vc-marker-right: 7.2%;
    --nf-vc-marker-bottom: 9%;
  }

  /* 4 */
  .nf-vc__marker--4 {
    --nf-vc-marker-w: 9%;
    --nf-vc-marker-right: 7%;
    --nf-vc-marker-bottom: 9%;
  }

  /* 5 */
  .nf-vc__marker--5 {
    --nf-vc-marker-w: 11%;
    --nf-vc-marker-right: 3.5%;
    --nf-vc-marker-bottom: 16%;
  }

  /* Tab 5 — content (ảnh + text) cách mép phải */
  #nf-vc-stage-4 .nf-vc__content {
    margin-right: 3rem;
  }

  .nf-vc__marker--5 .nf-vc__marker-sign {
    font-size: 2.5em;
  }

  .nf-vc__marker--5 .nf-vc__marker-pole {
    aspect-ratio: 1 / 11;
  }

  .nf-vc__row {
    gap: 1rem;
  }

  .nf-vc__card {
    padding: 1.35rem 1.4rem;
    border-radius: 16px;
  }

  /* Tab 1 — equal 2×2 */
  .nf-vc__highlights--grid_2x2 .nf-vc__card--mid {
    min-height: 12.5rem;
  }

  /* Tab 2 — 2 tall + 1 full */
  .nf-vc__card--tall {
    min-height: 14.5rem;
  }

  .nf-vc__card--full {
    min-height: 7rem;
  }

  /* Tab 3 — capacity */
  .nf-vc__highlights--capacity .nf-vc__card--tall {
    min-height: 11.5rem;
  }

  .nf-vc__highlights--capacity .nf-vc__card--short {
    min-height: 6.5rem;
  }

  .nf-vc__highlights--capacity .nf-vc__group-label {
    margin-top: 0.25rem;
    margin-bottom: 0.1rem;
  }

  /* Tab 4 — stack full width */
  .nf-vc__highlights--stack {
    max-width: 520px;
  }

  .nf-vc__highlights--stack .nf-vc__card {
    width: 100%;
  }

  .nf-vc__highlights--stack .nf-vc__card--tall {
    min-height: 8.5rem;
  }

  .nf-vc__highlights--stack .nf-vc__card--short {
    min-height: 6.5rem;
  }

  /* Tab 5 — grouped */
  .nf-vc__highlights--grouped {
    max-width: 560px;
  }

  .nf-vc__highlights--grouped .nf-vc__card--mid {
    min-height: 8.5rem;
  }

  .nf-vc__num {
    font-size: 32px;
    line-height: 1.1;
  }

  .nf-vc__text {
    font-size: 16px;
    line-height: 1.45;
  }
}

/* —— Partners —— */
.nf-partners {
  padding: 3rem 0;
  background: var(--nf-cream);
}

@media (min-width: 768px) {
  .nf-partners {
    padding: 5rem 0;
  }
}

/* Figma 107720:14687 — Wide Regular 500, 40/52, tracking -1%, #760F26 */
.nf-partners__heading {
  margin: 0;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 32px;
  line-height: 42px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nf-brand);
}

@media (min-width: 768px) {
  .nf-partners__heading {
    font-size: 40px;
    line-height: 52px;
  }
}

.nf-partners__heading .nf-accent {
  color: var(--nf-brand-bright);
}

.nf-partners__sub {
  margin: 1.25rem 0 0;
  max-width: 48rem;
  font-family: var(--nf-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--nf-muted);
}

@media (min-width: 768px) {
  .nf-partners__sub {
    font-size: 1.125rem;
  }
}

.nf-partners__map-wrap {
  position: relative;
  width: min(100%, 1600px);
  margin: 2rem auto 0;
  padding: 0 0.5rem;
}

.nf-partners__panzoom {
  position: relative;
  aspect-ratio: 1273 / 519;
  overflow: hidden;
  border-radius: var(--nf-radius);
  touch-action: none;
  user-select: none;
  cursor: default;
}

.nf-partners__panzoom.is-zoomable {
  cursor: grab;
}

.nf-partners__panzoom.is-dragging {
  cursor: grabbing;
}

.nf-partners__map {
  position: absolute;
  inset: 0.75rem;
  transform-origin: center center;
  will-change: transform;
}

@media (min-width: 768px) {
  .nf-partners__map {
    inset: 1.25rem;
  }
}

.nf-partners__map-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.nf-partners__lines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: visible;
}


.nf-partners__fade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  box-shadow: inset 0 0 40px 20px var(--nf-cream);
}

/* top/left = center of red dot; hit area triggers popup (no visual hover/focus ring) */
.nafoods-home-main .nf-partners__bubble,
.nafoods-home-main .nf-partners__bubble:hover,
.nafoods-home-main .nf-partners__bubble:focus,
.nafoods-home-main .nf-partners__bubble:focus-visible,
.nafoods-home-main .nf-partners__bubble:active {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, 0);
  padding: 0.85rem 0 0;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  outline-offset: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: default;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  color: inherit;
}

.nf-partners__bubble.is-hub {
  z-index: 11;
}

.nf-partners__hit {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.nf-partners__bubble-label {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #fffaf3;
  box-shadow: 0 1px 3px rgb(118 15 38 / 10%);
  font-family: var(--nf-sans);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  color: #760f26;
  white-space: nowrap;
}

/* Mobile/tablet: chỉ hiện label Việt Nam; desktop giữ tên tất cả nước */
@media (max-width: 1023px) {
  .nf-partners__bubble:not(.is-hub) .nf-partners__bubble-label {
    display: none;
  }
}

.nafoods-home-main .nf-partners__bubble:hover .nf-partners__bubble-label,
.nafoods-home-main .nf-partners__bubble:focus .nf-partners__bubble-label,
.nafoods-home-main .nf-partners__bubble:focus-visible .nf-partners__bubble-label,
.nafoods-home-main .nf-partners__bubble:active .nf-partners__bubble-label {
  background: #fffaf3;
  color: #760f26;
  box-shadow: 0 1px 3px rgb(118 15 38 / 10%);
  outline: none;
}

@media (min-width: 768px) {
  .nf-partners__bubble {
    padding-top: 1rem;
  }

  .nf-partners__hit {
    width: 2.5rem;
    height: 2.5rem;
  }

  .nf-partners__bubble-label {
    font-size: 11px;
  }
}

/* Mobile: card nằm trên map, width theo content, căn giữa; desktop overlay góc phải */
.nf-partners__info {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 1rem);
  margin: 0 auto 0.65rem;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--nf-radius);
  background: rgb(255 250 243 / 95%);
  box-shadow: 0 4px 16px rgb(118 15 38 / 12%);
  backdrop-filter: blur(6px);
  pointer-events: none;
  box-sizing: border-box;
}

.nf-partners__info[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .nf-partners__info {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: max-content;
    margin: 0;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
  }
}

.nf-partners__info-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nf-partners__info-value {
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--nf-brand);
}

@media (min-width: 768px) {
  .nf-partners__info-value {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .nf-partners__info-value {
    font-size: 32px;
  }
}

.nf-partners__info-label {
  margin-top: 0.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--nf-brand) 70%, transparent);
}

@media (min-width: 768px) {
  .nf-partners__info-label {
    margin-top: 0.35rem;
    font-size: 0.7rem;
  }
}

.nf-partners__info-fruits {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nf-partners__info-fruits img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

@media (min-width: 768px) {
  .nf-partners__info-fruits img {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.nf-partners__logos {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .nf-partners__logos {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .nf-partners__logos {
    gap: 4rem;
  }
}

.nf-logo-carousel {
  width: 100%;
  min-width: 0;
}

.nf-logo-carousel__title {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nf-brand-bright);
}

@media (min-width: 768px) {
  .nf-logo-carousel__title {
    font-size: 0.875rem;
  }
}

.nf-logo-carousel__row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
}

@media (min-width: 768px) {
  .nf-logo-carousel__row {
    gap: 0.5rem;
  }
}

.nf-logo-carousel__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  min-width: 0;
}

.nf-logo-carousel__track {
  display: flex;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.nf-logo-carousel__item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 0.2rem;
  box-sizing: border-box;
  transition: transform 0.2s;
}

@media (min-width: 768px) {
  .nf-logo-carousel__item {
    height: 2.75rem;
    padding: 0 0.35rem;
  }
}

.nf-logo-carousel__item:hover:not(.is-pad) {
  transform: scale(1.03);
}

.nf-logo-carousel__item.is-pad {
  pointer-events: none;
  visibility: hidden;
}

/* Mobile: 3 logo/page — logo nhỏ hơn để cân khoảng trống */
.nf-logo-carousel__item img {
  max-width: 4.25rem;
  max-height: 1.85rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .nf-logo-carousel__item img {
    max-width: 6.5rem;
    max-height: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .nf-logo-carousel__item img {
    max-width: 7rem;
    max-height: 2.5rem;
  }
}

.nf-icon-btn--sm {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

@keyframes nf-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-achievements__track {
    animation: none !important;
    transform: none !important;
  }
}

/* —— Achievements / Awards —— */
.nf-achievements {
  background: var(--nf-brand);
  padding: 3rem 0;
  color: var(--nf-cream-deep);
  overflow: hidden;
}

@media (min-width: 768px) {
  .nf-achievements {
    padding: 5rem 0;
  }
}

/* Figma 107720:18240 — Wide Regular 500, 40/52, tracking -1%, #FFF5E4 */
.nf-achievements__heading {
  margin: 0;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 32px;
  line-height: 42px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nf-cream-deep);
}

@media (min-width: 768px) {
  .nf-achievements__heading {
    font-size: 40px;
    line-height: 52px;
  }
}

.nf-achievements__ticker {
  --nf-ach-gap: 20px;
  --nf-ach-show: 5.8;
  margin-top: 2.5rem;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  .nf-achievements__ticker {
    margin-top: 3.5rem;
  }
}

.nf-achievements__track {
  display: flex;
  width: max-content;
  animation: nf-ticker 45s linear infinite;
  will-change: transform;
}

/* Autoplay left; pause while hovered */
.nf-achievements__ticker:hover .nf-achievements__track {
  animation-play-state: paused;
}

.nf-achievements__group {
  display: flex;
  flex-shrink: 0;
  gap: var(--nf-ach-gap);
  padding-right: var(--nf-ach-gap);
}

/* Width only — height follows content (keeps cards even). Desktop ~5.8 in view. */
.nf-achievements__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-shrink: 0;
  width: 240px;
  height: auto;
  padding: 24px 12px;
  border-radius: 16px;
  background: var(--nf-cream-deep);
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .nf-achievements__card {
    width: calc((100vw - (var(--nf-ach-show) - 1) * var(--nf-ach-gap)) / var(--nf-ach-show));
  }
}

.nf-achievements__media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 96px;
}

.nf-achievements__media img {
  max-height: 96px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nf-achievements__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.nf-achievements__year {
  font-family: var(--nf-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--nf-brand-bright);
}

.nf-achievements__name {
  margin: 0;
  font-family: var(--nf-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 18px;
  color: #760f26;
}

/* —— News —— */
.nf-news {
  padding: 3rem 0;
  background: var(--nf-cream);
}

@media (min-width: 768px) {
  .nf-news {
    padding: 5rem 0;
  }
}

/* Same as Awards display: Wide Regular 500, 40/52 — brand + ink */
.nf-news__heading {
  margin: 0;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 32px;
  line-height: 42px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nf-brand);
}

@media (min-width: 768px) {
  .nf-news__heading {
    font-size: 40px;
    line-height: 52px;
  }
}

.nf-news__heading .nf-accent {
  color: var(--nf-brand);
  font-family: inherit;
  font-weight: inherit;
}

.nf-news__heading .nf-ink {
  color: #0b0103;
  font-family: inherit;
  font-weight: inherit;
}

.nf-news__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .nf-news__grid {
    margin-top: 4rem;
  }
}

@media (min-width: 1024px) {
  .nf-news__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}

.nf-news__media {
  display: block;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border-radius: var(--nf-radius);
  background: color-mix(in srgb, var(--nf-brand) 6%, var(--nf-cream));
}

.nf-news__media img,
.nf-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.nf-news__featured:hover .nf-news__media img,
.nf-news__item:hover .nf-news__thumb img {
  transform: scale(1.05);
}

.nf-news__date {
  margin: 1.5rem 0 0;
  font-family: var(--nf-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nf-muted);
}

.nf-news__title {
  margin: 0.75rem 0 0;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--nf-ink);
}

.nf-news__title a {
  color: inherit;
  text-decoration: none;
}

.nf-news__title a:hover {
  color: var(--nf-brand);
}

@media (min-width: 768px) {
  .nf-news__featured .nf-news__title {
    font-size: 1.5rem;
  }
}

.nf-news__excerpt {
  margin: 0.75rem 0 0;
  font-family: var(--nf-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--nf-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nf-link--news {
  margin-top: 8px;
  font-family: var(--nf-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #900f21;
}

.nf-link--news:hover,
.nf-link--news:focus,
.nf-link--news:active {
  color: #900f21;
}

.nf-news__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nf-news__item {
  display: flex;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8dfd2;
}

@media (min-width: 640px) {
  .nf-news__item {
    gap: 1.5rem;
  }
}

.nf-news__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.nf-news__thumb {
  display: block;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: var(--nf-radius);
  background: color-mix(in srgb, var(--nf-brand) 6%, var(--nf-cream));
}

@media (min-width: 640px) {
  .nf-news__thumb {
    width: 120px;
    height: 120px;
  }
}

.nf-news__item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nf-news__item .nf-news__date {
  margin-top: 0;
}

.nf-news__item .nf-news__title {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.35;
}

.nf-news__item .nf-link--sm {
  margin-top: 8px;
  font-size: 12px;
  line-height: 16px;
  font-family: var(--nf-sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #900f21;
}

/* —— Footer CTA —— */
.nf-footer-cta {
  background: var(--nf-brand);
  padding: 3rem 0;
  text-align: center;
  color: #fff5e4;
}

@media (min-width: 768px) {
  .nf-footer-cta {
    padding: 4rem 0 0.75rem;
  }
}

.nf-footer-cta__inner {
  max-width: 48rem;
}

.nf-footer-cta__title {
  margin: 0;
  font-family: var(--nf-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff5e4;
}

.nf-footer-cta__subtitle {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-family: var(--nf-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgb(255 245 228 / 85%);
}

@media (min-width: 768px) {
  .nf-footer-cta__subtitle {
    font-size: 1.0625rem;
  }
}

/* Lenis helpers */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
