:root {
  --ffi-primary: #0A2540;
  --ffi-secondary: #1F6FEB;
  --ffi-accent: #2EA043;
  --ffi-bg: #F8FAFC;
  --ffi-highlight: #E6F4EA;
  --ffi-sand: #f3eee6;
  --ffi-mint: #e9f6ef;
  --ffi-sky: #edf4ff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #334155;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.theme-home {
  --theme-surface: rgba(248, 250, 252, 0.95);
  --theme-header: rgba(241, 249, 246, 0.92);
  --hero-gradient:
    radial-gradient(850px 420px at 10% 15%, rgba(46, 160, 67, 0.24), transparent 70%),
    radial-gradient(900px 400px at 92% 12%, rgba(31, 111, 235, 0.2), transparent 72%),
    linear-gradient(180deg, #f2fbf6 0%, #f8fafc 55%);
  background:
    radial-gradient(1000px 420px at 12% -10%, rgba(46, 160, 67, 0.11), transparent 66%),
    radial-gradient(1200px 520px at 92% -18%, rgba(31, 111, 235, 0.16), transparent 72%),
    linear-gradient(180deg, #fafdff 0%, #f8fafc 30%);
}

body.theme-products {
  --theme-surface: rgba(255, 251, 245, 0.94);
  --theme-header: rgba(255, 247, 237, 0.92);
  --hero-gradient:
    radial-gradient(850px 420px at 12% 16%, rgba(217, 119, 6, 0.2), transparent 70%),
    radial-gradient(900px 400px at 88% 12%, rgba(31, 111, 235, 0.15), transparent 72%),
    linear-gradient(180deg, #fff7ed 0%, #f8fafc 58%);
  background:
    radial-gradient(900px 380px at 5% -12%, rgba(217, 119, 6, 0.08), transparent 66%),
    radial-gradient(1200px 450px at 90% -15%, rgba(31, 111, 235, 0.11), transparent 70%),
    linear-gradient(180deg, #fbfdff 0%, #f8fafc 40%);
}

body.theme-partnership {
  --theme-surface: rgba(250, 250, 255, 0.94);
  --theme-header: rgba(245, 246, 255, 0.92);
  --hero-gradient:
    radial-gradient(850px 420px at 10% 15%, rgba(46, 160, 67, 0.18), transparent 70%),
    radial-gradient(930px 420px at 90% 10%, rgba(139, 92, 246, 0.19), transparent 74%),
    linear-gradient(180deg, #f5f3ff 0%, #f8fafc 58%);
  background:
    radial-gradient(950px 430px at 8% -12%, rgba(46, 160, 67, 0.1), transparent 66%),
    radial-gradient(1100px 520px at 88% -16%, rgba(139, 92, 246, 0.08), transparent 74%),
    linear-gradient(180deg, #fcfdff 0%, #f8fafc 36%);
}

body.theme-contact {
  --theme-surface: rgba(245, 251, 255, 0.94);
  --theme-header: rgba(237, 246, 255, 0.92);
  --hero-gradient:
    radial-gradient(850px 420px at 10% 15%, rgba(31, 111, 235, 0.22), transparent 70%),
    radial-gradient(900px 400px at 90% 12%, rgba(46, 160, 67, 0.16), transparent 72%),
    linear-gradient(180deg, #edf7ff 0%, #f8fafc 58%);
  background:
    radial-gradient(900px 380px at 8% -10%, rgba(31, 111, 235, 0.11), transparent 65%),
    radial-gradient(1100px 450px at 92% -16%, rgba(46, 160, 67, 0.1), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #f8fafc 38%);
}

body.theme-home header,
body.theme-products header,
body.theme-partnership header,
body.theme-contact header {
  background: var(--theme-header) !important;
}

main > section:not(.page-hero) {
  background: var(--theme-surface) !important;
}

.page-hero {
  background: var(--hero-gradient);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ffi-primary);
}

::selection {
  background: rgba(46, 160, 67, 0.22);
}

.section-shell {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(46, 160, 67, 0.22);
  background: rgba(230, 244, 234, 0.9);
  color: #1f7e36;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.65rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 700;
}

.section-title {
  margin-top: 1rem;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.section-copy {
  margin-top: 1.2rem;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
}

.brand-grid {
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(circle at center, black 34%, transparent 90%);
  mask-image: radial-gradient(circle at center, black 34%, transparent 90%);
}

.organic-leaf {
  position: absolute;
  border-radius: 999px;
  opacity: 0.75;
  filter: blur(0.2px);
}

.brand-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 45px -36px rgba(10, 37, 64, 0.55);
  transition: transform 0.38s ease, box-shadow 0.38s ease, border-color 0.38s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 111, 235, 0.24);
  box-shadow: 0 28px 46px -30px rgba(10, 37, 64, 0.5);
}

.brand-card-soft {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(230, 244, 234, 0.68));
}

.brand-card-amber {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 238, 230, 0.85));
}

.brand-card-sky {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 255, 0.88));
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(10, 37, 64, 0.14);
  background: var(--ffi-primary);
  color: #ffffff;
  padding: 0.78rem 1.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
  background: var(--ffi-secondary);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(10, 37, 64, 0.2);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ffi-primary);
  padding: 0.78rem 1.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-secondary:hover {
  color: var(--ffi-accent);
  border-color: rgba(46, 160, 67, 0.5);
  transform: translateY(-1px);
}

.nav-link {
  color: #334155;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ffi-secondary);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 0.2rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  background: var(--ffi-primary);
  color: #fff;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu.is-open {
  max-height: 320px;
}

.logo-badge {
  border: 1px solid rgba(191, 219, 254, 0.55);
  background: linear-gradient(145deg, #0a2540, #10345a);
  border-radius: 0.95rem;
  padding: 0.38rem 0.72rem;
  box-shadow: 0 16px 32px -18px rgba(10, 37, 64, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.55) inset;
}

.logo-badge img {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.28));
}

.category-bar {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.96));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.category-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.55rem 0;
  scrollbar-width: thin;
}

.category-scroll::-webkit-scrollbar {
  height: 6px;
}

.category-link {
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.82rem;
  transition: all 0.2s ease;
}

.category-link:hover {
  color: var(--ffi-secondary);
  border-color: rgba(31, 111, 235, 0.4);
  background: #fff;
}

.category-link.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--ffi-primary), var(--ffi-secondary));
  box-shadow: 0 10px 20px -14px rgba(10, 37, 64, 0.6);
}

#additives,
#flavors,
#extracts,
#ingredient,
#color,
#other {
  scroll-margin-top: 146px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.parallax {
  will-change: transform;
}

.map-line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: map-draw 2.8s ease forwards;
}

@keyframes map-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-split {
  display: grid;
  gap: 2rem;
}

.hero-media-stack {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 26px 45px -36px rgba(10, 37, 64, 0.62);
  background: #fff;
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.1), rgba(10, 37, 64, 0.02));
  pointer-events: none;
  z-index: 1;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.photo-frame:hover img {
  transform: scale(1.04);
}

.photo-frame-hero {
  min-height: 250px;
}

.photo-frame-lg {
  min-height: 340px;
}

.photo-frame-sm {
  min-height: 160px;
}

.photo-frame-combo {
  min-height: 160px;
}

.photo-frame-combo > img {
  display: block;
  min-height: 160px;
}

.photo-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 37, 64, 0.58);
  color: white;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.industry-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #e2e8f0;
  box-shadow: 0 20px 34px -28px rgba(10, 37, 64, 0.62);
}

.industry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.08) 20%, rgba(10, 37, 64, 0.7) 100%);
  z-index: 1;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.industry-card h3 {
  position: absolute;
  left: 0.95rem;
  bottom: 0.9rem;
  z-index: 2;
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
}

.industry-card:hover img {
  transform: scale(1.06);
}

.image-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-tag {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.85);
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
}

.logo-tile {
  border-radius: 1rem;
  border: 1px solid rgba(203, 213, 225, 0.72);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.logo-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 235, 0.3);
}

.logo-tile img {
  width: 122px;
  height: 34px;
  object-fit: contain;
  opacity: 0.88;
}

.partner-logo-tile {
  min-height: 0;
  aspect-ratio: 1.55 / 1;
  padding: 0;
  overflow: hidden;
}

.partner-logo-tile--vagrico {
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border-color: rgba(203, 213, 225, 0.72);
}

.partner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transform-origin: center;
  transform: scale(2.6);
}

.partner-logo-img--berrino {
  transform: scale(3.4);
}

.partner-logo-img--huu-nghi {
  transform: scale(3.1);
}

.partner-logo-img--van-duc {
  transform: scale(2.8);
}

.partner-logo-img--vagrico {
  transform: scale(3.2);
  filter: none;
}

.partner-logo-img--mane {
  transform: scale(3.5);
}

.partner-logo-img--hoa-doanh {
  transform: scale(3);
}

.content-slider {
  padding: 2rem;
}

.slider-track {
  position: relative;
  min-height: 440px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slider-controls {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.52rem 0.92rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.slider-btn:hover {
  color: var(--ffi-secondary);
  border-color: rgba(31, 111, 235, 0.35);
  transform: translateY(-1px);
}

.slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.slider-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  border: 0;
  background: #cbd5e1;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.slider-dot.is-active {
  background: var(--ffi-secondary);
  transform: scale(1.15);
}

.form-field {
  width: 100%;
  margin-top: 0.45rem;
  border-radius: 0.85rem;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.8rem 0.95rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field:focus {
  border-color: var(--ffi-secondary);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

@media (min-width: 768px) {
  .section-shell {
    padding: 0 2rem;
  }

  .content-slider {
    padding: 2.4rem;
  }

  .section-copy {
    font-size: 1.06rem;
  }

  .photo-frame-hero {
    min-height: 330px;
  }

  .photo-frame-sm {
    min-height: 185px;
  }

  .photo-frame-combo {
    min-height: 210px;
  }

  .photo-frame-combo > img {
    min-height: 210px;
  }
}

@media (min-width: 1024px) {
  .section-shell {
    padding: 0 2.5rem;
  }

  .hero-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.1rem;
    align-items: center;
  }

  .hero-media-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .hero-media-stack .photo-frame:first-child {
    grid-column: span 2;
  }
}

/* Solution Finder + Product Detail */
.finder-shell {
  border-radius: 1.75rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 55px -36px rgba(10, 37, 64, 0.5);
  padding: clamp(1rem, 2.5vw, 1.8rem);
}

.finder-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.finder-title {
  margin-top: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ffi-primary);
}

.finder-subtitle {
  margin-top: 1rem;
  max-width: 60ch;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.75;
}

.finder-kpis {
  display: grid;
  gap: 0.6rem;
}

.finder-kpi-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.95);
  padding: 0.9rem;
  display: grid;
  gap: 0.22rem;
}

.finder-kpi-card strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  color: var(--ffi-primary);
}

.finder-kpi-card span {
  font-size: 0.9rem;
  color: #64748b;
}

.glass-card {
  margin-top: 1.2rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 0.9rem;
}

.finder-search-row {
  display: flex;
  gap: 0.6rem;
}

.finder-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #ff9a00, #ff7a00);
  color: #fff;
  padding: 0.85rem 1.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  min-width: 175px;
  box-shadow: 0 12px 24px -10px rgba(255, 122, 0, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.finder-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(255, 122, 0, 0.65);
}

#food-search {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  outline: 0;
  background: #fff;
}

#food-search:focus {
  border-color: rgba(31, 111, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1);
}

.finder-suggestions {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  border-radius: 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.2s ease;
}

.finder-suggestions.show {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
}

.suggestion-item {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: rgba(241, 245, 249, 0.95);
}

.finder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.8rem;
}

.finder-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.finder-tag {
  border: 1px solid rgba(148, 163, 184, 0.48);
  background: #fff;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #334155;
}

.finder-tag:hover {
  border-color: rgba(31, 111, 235, 0.35);
  color: var(--ffi-secondary);
}

.finder-tag:disabled {
  cursor: wait;
  opacity: 0.72;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.finder-state {
  grid-column: 1 / -1;
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: rgba(248, 250, 252, 0.95);
  color: #475569;
  padding: 1rem 1.1rem;
  line-height: 1.7;
}

.finder-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.finder-pagination[hidden] {
  display: none;
}

.finder-page-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: #fff;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0 0.9rem;
  transition: all 0.2s ease;
}

.finder-page-btn:hover {
  border-color: rgba(31, 111, 235, 0.35);
  color: var(--ffi-secondary);
}

.finder-page-btn.is-active {
  border-color: transparent;
  background: var(--ffi-primary);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(10, 37, 64, 0.75);
}

.finder-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.popular-products-anchor {
  margin-top: 1.5rem;
}

.popular-products-section {
  margin-top: 1.5rem;
}

.popular-products-section.hidden {
  display: none;
}

.ingredient-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.15rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 38px -34px rgba(10, 37, 64, 0.48);
  padding: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 44px -30px rgba(10, 37, 64, 0.48);
}

.ingredient-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.85rem;
}

.ingredient-card h3 {
  margin-top: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
}

.ingredient-card p {
  margin-top: 0.45rem;
  color: #475569;
  line-height: 1.65;
  min-height: 84px;
}

.ingredient-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a00, #ff6a00);
  color: #fff;
  padding: 0.38rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px -14px rgba(255, 122, 0, 0.8);
}

.card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(10, 37, 64, 0.14);
  background: var(--ffi-primary);
  color: #fff;
  padding: 0.66rem 1.05rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.card-btn.is-active {
  background: #64748b;
}

.ingredient-media-link {
  display: block;
  flex-shrink: 0;
  border-radius: 0.85rem;
}

.ingredient-title-link {
  color: inherit;
  transition: color 0.2s ease;
}

.ingredient-title-link:hover {
  color: var(--ffi-secondary);
}

.product-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.1rem;
}

.sheet {
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.94);
  padding: clamp(1.1rem, 2vw, 1.7rem);
}

.sheet-head h1 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.sheet-head h2 {
  margin-top: 0.35rem;
  font-size: 1.18rem;
  color: #64748b;
}

.sheet-section {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  margin-top: 1rem;
  padding-top: 1rem;
}

.sheet-section h3 {
  font-size: 1.25rem;
}

.sheet-section p,
.sheet-section li {
  color: #475569;
  line-height: 1.7;
}

#product-info p + p,
#product-application p + p,
#product-source p + p {
  margin-top: 0.75rem;
}

#product-source {
  word-break: break-word;
}

.product-source-link {
  color: var(--ffi-secondary);
  font-weight: 600;
}

.product-source-link:hover {
  text-decoration: underline;
}

.sheet-richtext > * + * {
  margin-top: 0.85rem;
}

.sheet-richtext ul,
.sheet-richtext ol {
  padding-left: 1.2rem;
}

.sheet-richtext.is-collapsed {
  position: relative;
  max-height: var(--collapsed-height, 320px);
  overflow: hidden;
}

.sheet-richtext.is-collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 62%, rgba(255, 255, 255, 1));
  pointer-events: none;
}

.sheet-richtext-toggle {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  background: linear-gradient(135deg, #fff4df, #ffe4b5);
  color: #8a4208;
  padding: 0.76rem 1.26rem;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 16px 30px -22px rgba(180, 83, 9, 0.65);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sheet-richtext-toggle:hover {
  color: #9a3412;
  border-color: rgba(217, 119, 6, 0.34);
  box-shadow: 0 20px 34px -20px rgba(180, 83, 9, 0.5);
  transform: translateY(-2px);
}

.product-gallery {
  display: grid;
  gap: 0.6rem;
}

.product-main-image {
  width: 100%;
  border-radius: 0.9rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 0.5rem;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.product-thumb.is-active {
  border-color: rgba(31, 111, 235, 0.55);
}

.support-cta {
  border-radius: 1.4rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 1rem;
}

.support-cta h3 {
  font-size: 1.2rem;
}

.support-cta p {
  color: #475569;
  line-height: 1.72;
}

.support-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.support-actions .btn-primary,
.support-actions .btn-secondary {
  width: 100%;
}

.support-actions .btn-secondary {
  border-color: rgba(255, 122, 0, 0.35);
  background: linear-gradient(135deg, #ff9a00, #ff7a00);
  color: #fff;
}

.support-actions .btn-secondary:hover {
  border-color: rgba(255, 122, 0, 0.5);
  color: #fff;
}

.related-products {
  margin-top: 1.6rem;
}

.floating-contact-links {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: grid;
  gap: 0.75rem;
}

@keyframes floating-contact-attention {
  0%, 100% {
    transform: rotate(0deg) translateY(0);
  }
  4% {
    transform: rotate(-6deg) translateY(-1px);
  }
  8% {
    transform: rotate(6deg) translateY(0);
  }
  12% {
    transform: rotate(-5deg) translateY(-1px);
  }
  16% {
    transform: rotate(5deg) translateY(0);
  }
  20% {
    transform: rotate(0deg) translateY(0);
  }
}

.floating-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 132px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 0.78rem 1rem;
  box-shadow: 0 24px 44px -24px rgba(10, 37, 64, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform-origin: center;
  animation: floating-contact-attention 4.6s ease-in-out infinite;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-contact-btn:first-child {
  background: linear-gradient(135deg, rgba(255, 132, 0, 0.92), rgba(255, 94, 0, 0.92));
}

.floating-contact-btn:last-child {
  background: linear-gradient(135deg, rgba(0, 132, 255, 0.9), rgba(0, 92, 214, 0.92));
  animation-delay: 0.5s;
}

.floating-contact-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 30px 48px -20px rgba(10, 37, 64, 0.56);
}

.floating-contact-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.floating-contact-btn img {
  width: 1.28rem;
  height: 1.28rem;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.floating-contact-btn span {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

@media (max-width: 1024px) {
  .finder-hero-grid,
  .product-main {
    grid-template-columns: 1fr;
  }

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

  .support-cta {
    position: static;
  }
}

@media (max-width: 680px) {
  .finder-search-row {
    flex-direction: column;
  }

  .finder-cta {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .photo-frame-combo {
    min-height: 130px;
  }

  .photo-frame-combo > img {
    min-height: 130px;
  }

  .floating-contact-links {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .floating-contact-btn {
    min-width: 0;
    padding: 0.78rem 0.9rem;
  }

  .floating-contact-btn span {
    display: none;
  }
}
