.nf-featured-products {
  padding: 80px 0;
  background: #f8fafc; /* Light futuristic background */
  position: relative;
}

.nf-featured-products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.nf-section-header {
  margin-bottom: 54px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  align-items: flex-start; /* Keeps everything left-aligned */
}

.nf-section-line--top-right {
  position: absolute;
  top: -12px; /* Positioned tightly above the text */
  right: 0; /* Aligned with the end of the last character */
  width: 50px; /* Short line to match the "last 3 characters" feel */
}

.nf-title-wrapper {
  position: relative;
  display: inline-block;
  padding: 0;
  width: auto; /* Shrink to fit text for precise alignment if needed */
}

.nf-title-tag {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--nf-brand-color, #d4af37);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 6px;
  opacity: 0.8;
}

.nf-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 34px; /* Increased for impact */
  font-weight: 900;
  color: var(--nf-heading-color, #0f172a);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  position: relative;
  z-index: 2;
  text-align: left; /* Keep title left aligned */
  margin-left: 15px;

}

.nf-title-glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--nf-brand-color, #d4af37) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(20px);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.nf-section-line {
  width: 80px;
  height: 3px;
  background: var(--nf-brand-color, #d4af37);
  position: relative;
  overflow: hidden;
}

.nf-section-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: nf-line-scan 3s infinite;
}

@keyframes nf-line-scan {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Scroll Reveal Animations */
.nf-scroll-reveal .nf-section-header {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nf-scroll-reveal .nf-featured-products__col {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: calc(var(--reveal-index) * 0.1s);
}

.nf-scroll-reveal.is-visible .nf-section-header,
.nf-scroll-reveal.is-visible .nf-featured-products__col {
  opacity: 1;
  transform: translateY(0);
}

.nf-featured-products__grid {
  display: grid;
  gap: 30px;
  /* Desktop: 4 columns */
  grid-template-columns: repeat(4, 1fr);
}

/* Medium size: 3 columns */
@media (max-width: 1200px) {
  .nf-featured-products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Tab size: 2 columns */
@media (max-width: 991px) {
  .nf-featured-products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile size: 1 column */
@media (max-width: 767px) {
  .nf-featured-products__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .nf-featured-products {
    padding: 60px 0;
  }

  .nf-section-title {
    font-size: 22px;
  }
}
