.nf-pc-bc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 28px;
  color: inherit;
}

.nf-pc-bc a,
.nf-pc-bc a:hover,
.nf-pc-bc a:focus,
.nf-pc-bc a:active,
.nf-pc-bc__home,
.nf-pc-bc__home:hover,
.nf-pc-bc__home:focus,
.nf-pc-bc__home:active,
.nf-pc-bc__current {
  color: inherit;
  text-decoration: none;
}

.nf-pc-bc__home {
  display: inline-flex;
}

/* Product category — Why choose + Quy trình (Figma PRODUCT LISTING) */

.nf-pc-why,
.nf-pc-process {
  --nf-pc-max: 1220px;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--nf-pc-max);
  margin: 0 auto;
  padding: 0;
  color: var(--nf-brand, #760f26);
}

.nf-pc-why *,
.nf-pc-why *::before,
.nf-pc-why *::after,
.nf-pc-process *,
.nf-pc-process *::before,
.nf-pc-process *::after {
  box-sizing: border-box;
}

.nf-pc-why ul,
.nf-pc-why li,
.nf-pc-process ol,
.nf-pc-process li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* —— Why choose —— */
.nf-pc-why__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 16px;
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
}

@media (min-width: 640px) {
  .nf-pc-why__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .nf-pc-why__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.nf-pc-why__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 100px;
  padding: 32px 16px 20px;
  border-radius: 12px;
  background: var(--nf-cream-deep, #fff5e4);
}

.nf-pc-why__num {
  position: absolute;
  top: -12px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--nf-brand-secondary, #eb3345);
  color: #fff;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  transform: translateX(-50%);
}

.nf-pc-why__text {
  margin: 0;
  max-width: 100%;
  font-family: var(--nf-display, var(--nf-serif));
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
  color: #4a0918;
}

/* —— Quy trình —— */
.nf-pc-process__steps {
  display: grid;
  grid-template-columns: repeat(var(--nf-pc-process-cols, 7), minmax(0, 1fr));
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nf-pc-process__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.nf-pc-process__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: var(--nf-cream-deep, #fff5e4);
  overflow: hidden;
}

.nf-pc-process__icon img,
.nf-pc-process__img {
  display: block;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  object-fit: contain;
}

.nf-pc-process__rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 8px;
}

.nf-pc-process__step:not(:last-child) .nf-pc-process__rail::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #fce4e6;
  transform: translateY(-50%);
}

.nf-pc-process__fill {
  position: absolute;
  z-index: 1;
  top: calc(50% - 2px);
  left: 50%;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #eb3345;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.nf-pc-process__step:last-child .nf-pc-process__fill {
  display: none;
}

.nf-pc-process__dot {
  position: relative;
  z-index: 2;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--nf-brand, #760f26);
}

.nf-pc-process__label {
  margin: 0;
  width: 100%;
  font-family: var(--nf-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 0.16px;
  text-align: center;
  color: var(--nf-brand, #760f26);
}

/* Tablet down — Figma 109253:29999 vertical timeline, no horizontal scroll */
@media (max-width: 1023px) {
  .nf-pc-process__steps {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    overflow: visible;
    gap: 0;
    width: min(280px, 100%);
    margin-inline: auto;
  }

  .nf-pc-process__step {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-rows: 80px auto;
    column-gap: 16px;
    row-gap: 0;
    align-items: center;
    justify-items: start;
  }

  .nf-pc-process__icon {
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
  }

  .nf-pc-process__label {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    text-align: left;
  }

  .nf-pc-process__rail {
    grid-column: 1;
    grid-row: 2;
    width: 80px;
    height: 54px;
  }

  .nf-pc-process__step:last-child .nf-pc-process__rail {
    display: none;
  }

  .nf-pc-process__dot {
    display: none;
  }

  .nf-pc-process__step:not(:last-child) .nf-pc-process__rail::before {
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
  }

  .nf-pc-process__fill {
    top: 0;
    left: calc(50% - 2px);
    width: 4px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: center top;
  }
}

/* —— Chứng nhận: full-width infinite ticker —— */
.nf-pc-certs {
  --nf-pc-certs-show: 2;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

@media (min-width: 640px) {
  .nf-pc-certs {
    --nf-pc-certs-show: 3;
  }
}

@media (min-width: 900px) {
  .nf-pc-certs {
    --nf-pc-certs-show: 4;
  }
}

@media (min-width: 1024px) {
  .nf-pc-certs {
    --nf-pc-certs-show: 6;
  }
}

.nf-pc-certs__ticker {
  overflow: hidden;
  width: 100%;
}

.nf-pc-certs__track {
  display: flex;
  width: max-content;
  animation: nf-pc-certs-ticker 30s linear infinite;
  will-change: transform;
}

.nf-pc-certs__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nf-pc-certs__item {
  display: flex;
  flex: 0 0 calc(100vw / var(--nf-pc-certs-show));
  align-items: center;
  justify-content: center;
  width: calc(100vw / var(--nf-pc-certs-show));
  padding: 0 12px;
  box-sizing: border-box;
}

.nf-pc-certs__media {
  position: relative;
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.nf-pc-certs__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

@keyframes nf-pc-certs-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-pc-certs__track {
    animation: none;
    transform: none;
  }
}

/* Video — YouTube / self-host */
.nf-pc-video {
  position: relative;
  width: 100%;
  aspect-ratio: 297 / 167;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
}

.nf-pc-video__play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.nf-pc-video__play,
.nf-pc-video__play:hover,
.nf-pc-video__play:focus,
.nf-pc-video__play:focus-visible,
.nf-pc-video__play:active {
  background: transparent;
  box-shadow: none;
  outline: none;
  filter: none;
  opacity: 1;
  color: inherit;
}

.nf-pc-video__play:hover .nf-pc-video__poster,
.nf-pc-video__play:hover img {
  opacity: 1;
  filter: none;
}

.nf-pc-video__poster,
.nf-pc-video iframe,
.nf-pc-video video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nf-pc-video iframe,
.nf-pc-video video {
  border: 0;
  background: transparent;
}

/* Product cards — cream box 1:1 before JS injects .nf-card-hover-media */
body.tax-product_cat .e-loop-item .elementor-widget-image .elementor-widget-container,
body.tax-product_cat .e-loop-item .elementor-widget-theme-post-featured-image .elementor-widget-container,
body.tax-product_cat .woocommerce ul.products li.product .nf-card-hover-media {
  aspect-ratio: 1 / 1;
  overflow: hidden !important;
  border-radius: 16px;
  background: var(--nf-cream-deep, #fff5e4);
}

body.tax-product_cat .e-loop-item .elementor-widget-image img,
body.tax-product_cat .e-loop-item .elementor-widget-theme-post-featured-image img,
body.tax-product_cat .woocommerce ul.products li.product .nf-card-hover-media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
}

/* Product grid — 2 columns from tablet down */
@media (max-width: 1023px) {
  body.tax-product_cat .elementor-widget-loop-grid .elementor-loop-container,
  body.tax-product_cat .elementor-widget-loop-grid .elementor-grid,
  body.tax-product_cat .elementor-widget-wc-archive-products .elementor-grid,
  body.tax-product_cat .elementor-widget-woocommerce-products .elementor-grid,
  body.tax-product_cat .elementor-widget-woocommerce-product-upsell .elementor-grid,
  body.tax-product_cat ul.products {
    --columns: 2 !important;
    --columns-tablet: 2 !important;
    --columns-mobile: 2 !important;
    --grid-columns: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.tax-product_cat ul.products {
    gap: 20px;
  }

  body.tax-product_cat ul.products::before,
  body.tax-product_cat ul.products::after {
    display: none !important;
    content: none !important;
  }

  body.tax-product_cat ul.products li.product,
  body.tax-product_cat .elementor-widget-loop-grid .e-loop-item {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
  }
}

/* Product list shortcode — 4×2 + IR-style AJAX pager */
.nf-pc-grid {
  --nf-pc-max: 1220px;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--nf-pc-max);
  margin: 0 auto;
  scroll-margin-top: 96px;
}

.nf-pc-grid *,
.nf-pc-grid *::before,
.nf-pc-grid *::after {
  box-sizing: border-box;
}

.nf-pc-grid__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nf-pc-grid__item {
  min-width: 0;
  margin: 0;
}

.nf-pc-grid .nf-card__media,
.nf-pc-grid .nf-card-hover-media {
  border-radius: 12px;
}

.nf-pc-grid .nf-card__title {
  letter-spacing: -0.4px;
}

.nf-pc-grid.is-loading .nf-pc-grid__list {
  opacity: 0.45;
  pointer-events: none;
}

.nf-pc-grid__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 48px;
}

.nf-pc-grid__pager[hidden] {
  display: none !important;
}

.nf-pc-grid__page,
.nf-pc-grid__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #090a0b;
  cursor: pointer;
}

.nf-pc-grid__page.is-active {
  background: var(--nf-brand, #760f26);
  color: #fff5e4;
  font-weight: 500;
  letter-spacing: 0.16px;
  cursor: default;
}

.nf-pc-grid__page:hover:not(:disabled):not(.is-active) {
  background: var(--nf-brand, #760f26);
  color: #fff5e4;
}

.nf-pc-grid__page:focus,
.nf-pc-grid__page:focus-visible,
.nf-pc-grid__page:active {
  background: transparent;
  color: #090a0b;
  outline: none;
  box-shadow: none;
}

.nf-pc-grid__page:hover:not(:disabled):not(.is-active):active {
  background: var(--nf-brand, #760f26);
  color: #fff5e4;
}

.nf-pc-grid__page.is-active:hover,
.nf-pc-grid__page.is-active:focus,
.nf-pc-grid__page.is-active:focus-visible,
.nf-pc-grid__page.is-active:active {
  background: var(--nf-brand, #760f26);
  color: #fff5e4;
}

.nf-pc-grid__page--dir {
  color: #090a0b;
}

.nf-pc-grid__page:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

.nf-pc-grid__ellipsis {
  cursor: default;
  padding-top: 8px;
  letter-spacing: 2px;
}

@media (max-width: 1023px) {
  .nf-pc-grid__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .nf-pc-grid__pager {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    margin-top: 32px;
  }

  .nf-pc-grid__page--dir {
    display: none;
  }

  .nf-pc-grid__page,
  .nf-pc-grid__ellipsis {
    flex: 0 1 44px;
    width: 44px;
    min-width: 0;
    height: 44px;
    padding: 0;
    font-size: 16px;
    line-height: 24px;
  }

  .nf-pc-grid__ellipsis {
    padding-top: 8px;
    letter-spacing: 2px;
  }
}
