/* ==========================================================================
   Fresh Food Factory — Main Stylesheet
   Color palette derived from logo (green + orange, fresh food identity)
   ========================================================================== */

/* -----------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ----------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --fff-green:         #059d35;  /* Primary — nav, CTAs, headings */
  --fff-green-dark:    #047a29;  /* Hover state for primary */
  --fff-green-soft:    #6db97f;  /* Secondary — tags, badges, accents */
  --fff-green-light:   #bad8bc;  /* Backgrounds, borders */
  --fff-green-pale:    #e8f5e9;  /* Very light bg, section washes */

  --fff-orange:        #f7680d;  /* Accent — sale badges, highlights */
  --fff-orange-hover:  #f88752;  /* Lighter orange for hover */
  --fff-orange-pale:   #f9b394;  /* Soft orange for section BGs */
  --fff-orange-lightest:#f7c8b8; /* Lightest orange wash */

  /* Neutrals */
  --fff-white:         #ffffff;
  --fff-off-white:     #fafaf8;
  --fff-gray-50:       #f5f5f0;
  --fff-gray-100:      #eeeeea;
  --fff-gray-200:      #d8d8d0;
  --fff-gray-400:      #9e9e90;
  --fff-gray-600:      #666660;
  --fff-gray-800:      #333330;
  --fff-black:         #1a1a18;

  /* Semantic */
  --fff-text:          #1a1a18;
  --fff-text-muted:    #666660;
  --fff-text-light:    #9e9e90;
  --fff-border:        #e0e0d8;
  --fff-border-light:  #f0f0e8;
  --fff-bg:            #fafaf8;
  --fff-surface:       #ffffff;
  --fff-shadow:        0 2px 12px rgba(0,0,0,0.08);
  --fff-shadow-md:     0 4px 24px rgba(0,0,0,0.12);
  --fff-shadow-lg:     0 8px 40px rgba(0,0,0,0.16);

  /* Status */
  --fff-success:       #059d35;
  --fff-warning:       #f7680d;
  --fff-error:         #d32f2f;
  --fff-info:          #1976d2;

  /* Typography */
  --fff-font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fff-font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  --fff-text-xs:       0.75rem;   /* 12px */
  --fff-text-sm:       0.875rem;  /* 14px */
  --fff-text-base:     1rem;      /* 16px */
  --fff-text-lg:       1.125rem;  /* 18px */
  --fff-text-xl:       1.25rem;   /* 20px */
  --fff-text-2xl:      1.5rem;    /* 24px */
  --fff-text-3xl:      1.875rem;  /* 30px */
  --fff-text-4xl:      2.25rem;   /* 36px */
  --fff-text-5xl:      3rem;      /* 48px */
  --fff-text-6xl:      3.75rem;   /* 60px */

  --fff-leading-tight: 1.25;
  --fff-leading-snug:  1.375;
  --fff-leading-normal:1.6;
  --fff-leading-relaxed:1.75;

  /* Spacing */
  --fff-space-1:  0.25rem;
  --fff-space-2:  0.5rem;
  --fff-space-3:  0.75rem;
  --fff-space-4:  1rem;
  --fff-space-5:  1.25rem;
  --fff-space-6:  1.5rem;
  --fff-space-8:  2rem;
  --fff-space-10: 2.5rem;
  --fff-space-12: 3rem;
  --fff-space-16: 4rem;
  --fff-space-20: 5rem;
  --fff-space-24: 6rem;

  /* Layout */
  --fff-container:     1280px;
  --fff-container-sm:  960px;
  --fff-gutter:        clamp(1rem, 4vw, 2rem);
  --fff-radius:        8px;
  --fff-radius-md:     12px;
  --fff-radius-lg:     20px;
  --fff-radius-full:   9999px;

  /* Transitions */
  --fff-transition:    all 0.2s ease;
  --fff-transition-md: all 0.3s ease;

  /* Z-index */
  --fff-z-header:      100;
  --fff-z-mobile-menu: 200;
  --fff-z-overlay:     300;
  --fff-z-modal:       400;
}

/* -----------------------------------------------------------------------
   2. CSS RESET & BASE
   ----------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fff-font);
  font-size: var(--fff-text-base);
  line-height: var(--fff-leading-normal);
  color: var(--fff-text);
  background-color: var(--fff-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--fff-green);
  text-decoration: none;
  transition: color var(--fff-transition);
}
a:hover { color: var(--fff-green-dark); }
a:focus-visible {
  outline: 3px solid var(--fff-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--fff-leading-tight);
  color: var(--fff-text);
}

h1 { font-size: var(--fff-text-5xl); }
h2 { font-size: var(--fff-text-4xl); }
h3 { font-size: var(--fff-text-3xl); }
h4 { font-size: var(--fff-text-2xl); }
h5 { font-size: var(--fff-text-xl); }
h6 { font-size: var(--fff-text-lg); }

p { margin-bottom: var(--fff-space-4); }
p:last-child { margin-bottom: 0; }

/* -----------------------------------------------------------------------
   3. ACCESSIBILITY
   ----------------------------------------------------------------------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: var(--fff-space-4);
  z-index: 9999;
  padding: var(--fff-space-2) var(--fff-space-4);
  background: var(--fff-green);
  color: var(--fff-white);
  border-radius: var(--fff-radius);
  font-weight: 600;
}
.skip-link:focus {
  top: var(--fff-space-4);
}

/* -----------------------------------------------------------------------
   4. LAYOUT UTILITIES
   ----------------------------------------------------------------------- */
.fff-container {
  width: 100%;
  max-width: var(--fff-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--fff-gutter);
  padding-right: var(--fff-gutter);
}

.fff-container--sm {
  max-width: var(--fff-container-sm);
}

.fff-section {
  padding-top: var(--fff-space-20);
  padding-bottom: var(--fff-space-20);
}

.fff-section--sm {
  padding-top: var(--fff-space-12);
  padding-bottom: var(--fff-space-12);
}

.fff-section--lg {
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* Section headings */
.fff-section-header {
  text-align: center;
  margin-bottom: var(--fff-space-12);
}
.fff-section-eyebrow {
  display: inline-block;
  font-size: var(--fff-text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fff-orange);
  margin-bottom: var(--fff-space-3);
}
.fff-section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--fff-text);
  margin-bottom: var(--fff-space-4);
}
.fff-section-subtitle {
  font-size: var(--fff-text-lg);
  color: var(--fff-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: var(--fff-leading-relaxed);
}

/* Grid utilities */
.fff-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--fff-space-6); }
.fff-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fff-space-6); }
.fff-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--fff-space-6); }

/* -----------------------------------------------------------------------
   5. BUTTONS
   ----------------------------------------------------------------------- */
.fff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fff-space-2);
  padding: 0.75rem 1.5rem;
  font-size: var(--fff-text-base);
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--fff-radius-full);
  cursor: pointer;
  transition: var(--fff-transition);
  text-decoration: none;
  white-space: nowrap;
}

.fff-btn--primary {
  background: var(--fff-green);
  color: var(--fff-white);
  border-color: var(--fff-green);
}
.fff-btn--primary:hover {
  background: var(--fff-green-dark);
  border-color: var(--fff-green-dark);
  color: var(--fff-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(5,157,53,0.3);
}

.fff-btn--outline {
  background: transparent;
  color: var(--fff-green);
  border-color: var(--fff-green);
}
.fff-btn--outline:hover {
  background: var(--fff-green);
  color: var(--fff-white);
  transform: translateY(-1px);
}

.fff-btn--accent {
  background: var(--fff-orange);
  color: var(--fff-white);
  border-color: var(--fff-orange);
}
.fff-btn--accent:hover {
  background: #e05800;
  border-color: #e05800;
  color: var(--fff-white);
  transform: translateY(-1px);
}

.fff-btn--ghost {
  background: transparent;
  color: var(--fff-text);
  border-color: transparent;
}
.fff-btn--ghost:hover {
  color: var(--fff-green);
  background: var(--fff-green-pale);
}

.fff-btn--white {
  background: var(--fff-white);
  color: var(--fff-green);
  border-color: var(--fff-white);
}
.fff-btn--white:hover {
  background: var(--fff-off-white);
  color: var(--fff-green-dark);
}

/* Button sizes */
.fff-btn--sm  { padding: 0.5rem 1rem; font-size: var(--fff-text-sm); }
.fff-btn--lg  { padding: 1rem 2rem; font-size: var(--fff-text-lg); }
.fff-btn--xl  { padding: 1.125rem 2.5rem; font-size: var(--fff-text-xl); }
.fff-btn--full { width: 100%; }

/* -----------------------------------------------------------------------
   6. HEADER
   ----------------------------------------------------------------------- */
.fff-header {
  position: sticky;
  top: 0;
  z-index: var(--fff-z-header);
  background: var(--fff-white);
  border-bottom: 1px solid var(--fff-border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.fff-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fff-space-6);
  height: 72px;
}

.fff-header__logo img,
.fff-header__logo .custom-logo {
  height: 48px;
  width: auto;
}

.fff-text-logo {
  font-size: var(--fff-text-xl);
  font-weight: 800;
  color: var(--fff-green);
  text-decoration: none;
}

/* Primary nav */
.fff-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--fff-space-1);
  flex-wrap: wrap;
}

.fff-nav-menu li a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: var(--fff-text-sm);
  font-weight: 500;
  color: var(--fff-text);
  border-radius: var(--fff-radius);
  transition: var(--fff-transition);
}
.fff-nav-menu li a:hover,
.fff-nav-menu li.current-menu-item > a {
  color: var(--fff-green);
  background: var(--fff-green-pale);
}

/* Dropdown */
.fff-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--fff-white);
  border: 1px solid var(--fff-border);
  border-radius: var(--fff-radius-md);
  box-shadow: var(--fff-shadow-md);
  display: none;
  flex-direction: column;
  padding: var(--fff-space-2) 0;
  z-index: var(--fff-z-header);
}
.fff-nav-menu li:hover > .sub-menu { display: flex; }

.fff-header__actions {
  display: flex;
  align-items: center;
  gap: var(--fff-space-3);
  flex-shrink: 0;
}

.fff-header__cart {
  position: relative;
  font-size: 1.25rem;
  color: var(--fff-text);
  transition: color var(--fff-transition);
}
.fff-header__cart:hover { color: var(--fff-green); }

.fff-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  background: var(--fff-orange);
  color: var(--fff-white);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--fff-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 4px;
}

/* Mobile toggle */
.fff-mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--fff-radius);
  transition: background var(--fff-transition);
}
.fff-mobile-toggle:hover { background: var(--fff-gray-100); }

.fff-hamburger,
.fff-hamburger::before,
.fff-hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fff-text);
  border-radius: 2px;
  transition: var(--fff-transition);
}
.fff-hamburger { position: relative; }
.fff-hamburger::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 0;
  width: 100%;
}
.fff-hamburger::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 75%;
}

/* Mobile menu */
.fff-mobile-menu {
  background: var(--fff-white);
  border-top: 1px solid var(--fff-border);
  padding: var(--fff-space-4) 0;
}
.fff-mobile-nav-menu li a {
  display: block;
  padding: var(--fff-space-3) var(--fff-space-4);
  font-size: var(--fff-text-base);
  font-weight: 500;
  color: var(--fff-text);
  border-radius: var(--fff-radius);
}
.fff-mobile-nav-menu li a:hover { color: var(--fff-green); background: var(--fff-green-pale); }

/* -----------------------------------------------------------------------
   7. FOOTER
   ----------------------------------------------------------------------- */
.fff-footer {
  background: #1a2e1a;
  color: rgba(255,255,255,0.85);
  margin-top: auto;
}

.fff-footer__top {
  padding: var(--fff-space-16) 0 var(--fff-space-12);
}

.fff-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--fff-space-10);
}

.fff-footer__site-name {
  font-size: var(--fff-text-2xl);
  font-weight: 800;
  color: var(--fff-white);
  display: block;
  margin-bottom: var(--fff-space-4);
}

.fff-footer__tagline {
  font-size: var(--fff-text-sm);
  color: rgba(255,255,255,0.65);
  line-height: var(--fff-leading-relaxed);
  margin-bottom: var(--fff-space-6);
}

.fff-footer__social {
  display: flex;
  gap: var(--fff-space-3);
  flex-wrap: wrap;
}

.fff-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: var(--fff-white);
  border-radius: var(--fff-radius-full);
  transition: var(--fff-transition);
  font-size: var(--fff-text-sm);
}
.fff-social-link:hover {
  background: var(--fff-green);
  color: var(--fff-white);
  transform: translateY(-2px);
}

.fff-footer__heading {
  font-size: var(--fff-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fff-white);
  margin-bottom: var(--fff-space-5);
}

.fff-footer-menu li + li { margin-top: var(--fff-space-3); }
.fff-footer-menu a {
  font-size: var(--fff-text-sm);
  color: rgba(255,255,255,0.65);
  transition: color var(--fff-transition);
}
.fff-footer-menu a:hover { color: var(--fff-white); }

.fff-footer__contact {
  margin-top: var(--fff-space-4);
  font-size: var(--fff-text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}
.fff-footer__contact a {
  color: rgba(255,255,255,0.65);
}
.fff-footer__contact a:hover { color: var(--fff-white); }

.fff-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--fff-space-5) 0;
}

.fff-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fff-space-4);
  flex-wrap: wrap;
}

.fff-footer__copyright {
  font-size: var(--fff-text-sm);
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.fff-footer__legal-links {
  display: flex;
  gap: var(--fff-space-4);
}
.fff-footer__legal-links a {
  font-size: var(--fff-text-sm);
  color: rgba(255,255,255,0.5);
}
.fff-footer__legal-links a:hover { color: var(--fff-white); }

/* -----------------------------------------------------------------------
   8. HERO SECTION
   ----------------------------------------------------------------------- */
.fff-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a2e1a 0%, #0a4020 50%, #1a2e1a 100%);
  overflow: hidden;
}

.fff-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.fff-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,157,53,0.2) 0%, rgba(247,104,13,0.1) 100%);
}

.fff-hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: var(--fff-space-24) 0;
}

.fff-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--fff-space-2);
  background: rgba(247,104,13,0.15);
  border: 1px solid rgba(247,104,13,0.3);
  color: var(--fff-orange-pale);
  font-size: var(--fff-text-sm);
  font-weight: 600;
  padding: var(--fff-space-2) var(--fff-space-4);
  border-radius: var(--fff-radius-full);
  margin-bottom: var(--fff-space-6);
}

.fff-hero__headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--fff-white);
  margin-bottom: var(--fff-space-5);
  letter-spacing: -0.02em;
}

.fff-hero__headline .fff-accent {
  color: var(--fff-orange);
}

.fff-hero__subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  line-height: var(--fff-leading-relaxed);
  margin-bottom: var(--fff-space-8);
  max-width: 580px;
}

.fff-hero__actions {
  display: flex;
  gap: var(--fff-space-4);
  flex-wrap: wrap;
  align-items: center;
}

/* -----------------------------------------------------------------------
   9. TRUST STATS BAR
   ----------------------------------------------------------------------- */
.fff-stats-bar {
  background: #1a2e1a;
  padding: var(--fff-space-6) 0;
}

.fff-stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fff-space-6);
  flex-wrap: wrap;
}

.fff-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fff-space-1);
  flex: 1;
  min-width: 140px;
}

.fff-stat-item__number {
  font-size: var(--fff-text-3xl);
  font-weight: 900;
  color: var(--fff-orange);
  line-height: 1;
}

.fff-stat-item__label {
  font-size: var(--fff-text-sm);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-align: center;
}

/* -----------------------------------------------------------------------
   10. CARDS
   ----------------------------------------------------------------------- */
.fff-card {
  background: var(--fff-white);
  border: 1px solid var(--fff-border);
  border-radius: var(--fff-radius-md);
  overflow: hidden;
  transition: var(--fff-transition-md);
}
.fff-card:hover {
  box-shadow: var(--fff-shadow-md);
  transform: translateY(-3px);
  border-color: var(--fff-green-light);
}

/* Product card */
.fff-product-card {}
.fff-product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.fff-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fff-product-card:hover .fff-product-card__image img {
  transform: scale(1.05);
}
.fff-product-card__badges {
  position: absolute;
  top: var(--fff-space-3);
  left: var(--fff-space-3);
  display: flex;
  gap: var(--fff-space-2);
  flex-wrap: wrap;
}
.fff-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--fff-radius-full);
}
.fff-badge--organic { background: var(--fff-green); color: var(--fff-white); }
.fff-badge--snap    { background: var(--fff-orange); color: var(--fff-white); }
.fff-badge--local   { background: var(--fff-green-soft); color: var(--fff-white); }
.fff-badge--sale    { background: var(--fff-error); color: var(--fff-white); }

.fff-product-card__body {
  padding: var(--fff-space-4);
}
.fff-product-card__vendor {
  font-size: var(--fff-text-xs);
  color: var(--fff-green-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--fff-space-1);
}
.fff-product-card__title {
  font-size: var(--fff-text-base);
  font-weight: 600;
  color: var(--fff-text);
  margin-bottom: var(--fff-space-2);
  line-height: var(--fff-leading-snug);
}
.fff-product-card__price {
  font-size: var(--fff-text-lg);
  font-weight: 700;
  color: var(--fff-green);
}
.fff-product-card__price del {
  font-size: var(--fff-text-sm);
  font-weight: 400;
  color: var(--fff-text-light);
  margin-right: var(--fff-space-2);
}

/* Vendor card */
.fff-vendor-card__image {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.fff-vendor-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fff-vendor-card:hover .fff-vendor-card__image img { transform: scale(1.04); }
.fff-vendor-card__body { padding: var(--fff-space-5); }
.fff-vendor-card__name { font-size: var(--fff-text-xl); font-weight: 700; margin-bottom: var(--fff-space-2); }
.fff-vendor-card__meta { font-size: var(--fff-text-sm); color: var(--fff-text-muted); }

/* Blog/Post card */
.fff-post-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.fff-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fff-post-card:hover .fff-post-card__image img { transform: scale(1.04); }
.fff-post-card__body { padding: var(--fff-space-5); }
.fff-post-card__category {
  font-size: var(--fff-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fff-orange);
  margin-bottom: var(--fff-space-3);
}
.fff-post-card__title { font-size: var(--fff-text-xl); font-weight: 700; margin-bottom: var(--fff-space-3); line-height: var(--fff-leading-snug); }
.fff-post-card__excerpt { font-size: var(--fff-text-sm); color: var(--fff-text-muted); line-height: var(--fff-leading-relaxed); margin-bottom: var(--fff-space-4); }
.fff-post-card__date { font-size: var(--fff-text-xs); color: var(--fff-text-light); }

/* -----------------------------------------------------------------------
   11. CATEGORY GRID
   ----------------------------------------------------------------------- */
.fff-category-card {
  position: relative;
  border-radius: var(--fff-radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.fff-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fff-category-card:hover img { transform: scale(1.08); }

.fff-category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,60,20,0.85) 0%, rgba(5,60,20,0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--fff-space-5);
}
.fff-category-card__name {
  color: var(--fff-white);
  font-size: var(--fff-text-xl);
  font-weight: 700;
}
.fff-category-card__count {
  color: rgba(255,255,255,0.7);
  font-size: var(--fff-text-sm);
  margin-top: var(--fff-space-1);
}

/* -----------------------------------------------------------------------
   12. HOW IT WORKS
   ----------------------------------------------------------------------- */
.fff-how-it-works { background: var(--fff-green-pale); }

.fff-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--fff-space-8);
  position: relative;
}

.fff-step {
  text-align: center;
  position: relative;
}
.fff-step__number {
  width: 56px;
  height: 56px;
  border-radius: var(--fff-radius-full);
  background: var(--fff-green);
  color: var(--fff-white);
  font-size: var(--fff-text-xl);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--fff-space-4);
  box-shadow: 0 4px 16px rgba(5,157,53,0.3);
}
.fff-step__icon {
  font-size: 2rem;
  margin-bottom: var(--fff-space-3);
}
.fff-step__title {
  font-size: var(--fff-text-xl);
  font-weight: 700;
  margin-bottom: var(--fff-space-3);
}
.fff-step__desc {
  font-size: var(--fff-text-base);
  color: var(--fff-text-muted);
  line-height: var(--fff-leading-relaxed);
}

/* -----------------------------------------------------------------------
   13. PERSONA CARDS
   ----------------------------------------------------------------------- */
.fff-persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--fff-space-6);
}

.fff-persona-card {
  border-radius: var(--fff-radius-lg);
  padding: var(--fff-space-8);
  transition: var(--fff-transition-md);
  position: relative;
  overflow: hidden;
}
.fff-persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fff-shadow-lg);
}

.fff-persona-card--b2c      { background: var(--fff-green-pale); border: 2px solid var(--fff-green-light); }
.fff-persona-card--b2b      { background: #e8f0fe; border: 2px solid #c5d3f8; }
.fff-persona-card--b2g      { background: #fff3e0; border: 2px solid var(--fff-orange-pale); }
.fff-persona-card--supplier { background: var(--fff-orange-lightest); border: 2px solid #f7b8a0; }

.fff-persona-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--fff-space-4);
}
.fff-persona-card__role {
  font-size: var(--fff-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fff-green);
  margin-bottom: var(--fff-space-2);
}
.fff-persona-card__title {
  font-size: var(--fff-text-2xl);
  font-weight: 800;
  margin-bottom: var(--fff-space-3);
}
.fff-persona-card__desc {
  font-size: var(--fff-text-base);
  color: var(--fff-text-muted);
  line-height: var(--fff-leading-relaxed);
  margin-bottom: var(--fff-space-6);
}
.fff-persona-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--fff-space-2);
  margin-bottom: var(--fff-space-6);
}
.fff-persona-card__feature {
  font-size: var(--fff-text-sm);
  color: var(--fff-text);
  display: flex;
  align-items: center;
  gap: var(--fff-space-2);
}
.fff-persona-card__feature::before {
  content: '✓';
  color: var(--fff-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   14. CTA BANNER
   ----------------------------------------------------------------------- */
.fff-cta-banner {
  background: linear-gradient(135deg, var(--fff-green) 0%, #047a29 100%);
  color: var(--fff-white);
  text-align: center;
  padding: var(--fff-space-20) 0;
  position: relative;
  overflow: hidden;
}
.fff-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(247,104,13,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(109,185,127,0.2) 0%, transparent 60%);
}
.fff-cta-banner__content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.fff-cta-banner__title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 900; margin-bottom: var(--fff-space-4); color: var(--fff-white); }
.fff-cta-banner__text { font-size: var(--fff-text-lg); color: rgba(255,255,255,0.85); margin-bottom: var(--fff-space-8); line-height: var(--fff-leading-relaxed); }
.fff-cta-banner__actions { display: flex; gap: var(--fff-space-4); justify-content: center; flex-wrap: wrap; }

/* -----------------------------------------------------------------------
   15. FORMS
   ----------------------------------------------------------------------- */
.fff-form-group {
  margin-bottom: var(--fff-space-5);
}
.fff-label {
  display: block;
  font-size: var(--fff-text-sm);
  font-weight: 600;
  color: var(--fff-text);
  margin-bottom: var(--fff-space-2);
}
.fff-input,
.fff-select,
.fff-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--fff-text-base);
  color: var(--fff-text);
  background: var(--fff-white);
  border: 1.5px solid var(--fff-border);
  border-radius: var(--fff-radius);
  transition: border-color var(--fff-transition), box-shadow var(--fff-transition);
  line-height: 1.5;
}
.fff-input:focus,
.fff-select:focus,
.fff-textarea:focus {
  outline: none;
  border-color: var(--fff-green);
  box-shadow: 0 0 0 3px rgba(5,157,53,0.15);
}
.fff-input::placeholder,
.fff-textarea::placeholder {
  color: var(--fff-text-light);
}
.fff-textarea { resize: vertical; min-height: 120px; }
.fff-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.fff-form-error {
  font-size: var(--fff-text-xs);
  color: var(--fff-error);
  margin-top: var(--fff-space-1);
}
.fff-input--error { border-color: var(--fff-error); }

/* -----------------------------------------------------------------------
   16. DASHBOARD LAYOUT
   ----------------------------------------------------------------------- */
.fff-dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}

.fff-dashboard__sidebar {
  background: var(--fff-white);
  border-right: 1px solid var(--fff-border);
  padding: var(--fff-space-6) 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}

.fff-dashboard__nav-item {
  display: flex;
  align-items: center;
  gap: var(--fff-space-3);
  padding: var(--fff-space-3) var(--fff-space-6);
  font-size: var(--fff-text-sm);
  font-weight: 500;
  color: var(--fff-text-muted);
  border-left: 3px solid transparent;
  transition: var(--fff-transition);
  cursor: pointer;
}
.fff-dashboard__nav-item:hover,
.fff-dashboard__nav-item.active {
  color: var(--fff-green);
  background: var(--fff-green-pale);
  border-left-color: var(--fff-green);
}

.fff-dashboard__main {
  padding: var(--fff-space-8);
  background: var(--fff-bg);
}

.fff-dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--fff-space-8);
}

.fff-dashboard__title {
  font-size: var(--fff-text-3xl);
  font-weight: 800;
}

/* Dashboard stat cards */
.fff-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--fff-space-5);
  margin-bottom: var(--fff-space-8);
}

.fff-stat-card {
  background: var(--fff-white);
  border: 1px solid var(--fff-border);
  border-radius: var(--fff-radius-md);
  padding: var(--fff-space-6);
}

.fff-stat-card__value {
  font-size: var(--fff-text-4xl);
  font-weight: 900;
  color: var(--fff-green);
  line-height: 1;
  margin-bottom: var(--fff-space-2);
}
.fff-stat-card__label {
  font-size: var(--fff-text-sm);
  color: var(--fff-text-muted);
}

/* -----------------------------------------------------------------------
   17. ALERTS / NOTICES
   ----------------------------------------------------------------------- */
.fff-alert {
  padding: var(--fff-space-4) var(--fff-space-5);
  border-radius: var(--fff-radius);
  font-size: var(--fff-text-sm);
  border-left: 4px solid;
  margin-bottom: var(--fff-space-4);
}
.fff-alert--success { background: var(--fff-green-pale); border-color: var(--fff-green); color: #1b5e20; }
.fff-alert--error   { background: #ffebee; border-color: var(--fff-error); color: #b71c1c; }
.fff-alert--warning { background: #fff8e1; border-color: #f9a825; color: #e65100; }
.fff-alert--info    { background: #e3f2fd; border-color: var(--fff-info); color: #0d47a1; }

/* -----------------------------------------------------------------------
   18. 404 PAGE
   ----------------------------------------------------------------------- */
.fff-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--fff-space-20) var(--fff-space-4);
}
.fff-404__code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--fff-green-light);
  line-height: 1;
  display: block;
  margin-bottom: var(--fff-space-4);
}
.fff-404__title { font-size: var(--fff-text-4xl); margin-bottom: var(--fff-space-4); }
.fff-404__message { font-size: var(--fff-text-lg); color: var(--fff-text-muted); margin-bottom: var(--fff-space-8); max-width: 480px; margin-left: auto; margin-right: auto; }
.fff-404__actions { display: flex; gap: var(--fff-space-4); justify-content: center; flex-wrap: wrap; }

/* -----------------------------------------------------------------------
   19. RESPONSIVE
   ----------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .fff-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fff-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--fff-space-8); }
  .fff-dashboard { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  :root {
    --fff-space-20: 3rem;
    --fff-space-16: 2.5rem;
  }

  h1 { font-size: var(--fff-text-4xl); }
  h2 { font-size: var(--fff-text-3xl); }
  h3 { font-size: var(--fff-text-2xl); }

  .fff-header__nav,
  .fff-header__actions {
    display: none;
  }

  .fff-mobile-toggle {
    display: flex;
  }

  .fff-grid-2,
  .fff-grid-3,
  .fff-grid-4 {
    grid-template-columns: 1fr;
  }

  .fff-stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  .fff-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--fff-space-8);
  }

  .fff-dashboard {
    grid-template-columns: 1fr;
  }
  .fff-dashboard__sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--fff-border);
  }

  .fff-hero { min-height: auto; }
  .fff-hero__content { padding: var(--fff-space-16) 0; }
  .fff-hero__actions { flex-direction: column; }
  .fff-hero__actions .fff-btn { width: 100%; }

  .fff-persona-grid { grid-template-columns: 1fr; }
  .fff-steps-grid { grid-template-columns: 1fr; gap: var(--fff-space-6); }

  .fff-footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .fff-stat-cards { grid-template-columns: 1fr 1fr; }
  .fff-stats-bar__inner { grid-template-columns: 1fr 1fr; }
}

/* -----------------------------------------------------------------------
   20. UTILITY CLASSES
   ----------------------------------------------------------------------- */
.fff-text-center { text-align: center; }
.fff-text-left   { text-align: left; }
.fff-text-right  { text-align: right; }

.fff-text-green  { color: var(--fff-green); }
.fff-text-orange { color: var(--fff-orange); }
.fff-text-muted  { color: var(--fff-text-muted); }
.fff-text-white  { color: var(--fff-white); }

.fff-bg-green-pale   { background: var(--fff-green-pale); }
.fff-bg-orange-pale  { background: var(--fff-orange-pale); }
.fff-bg-white        { background: var(--fff-white); }
.fff-bg-dark         { background: #1a2e1a; }

.fff-mt-0  { margin-top: 0 !important; }
.fff-mb-0  { margin-bottom: 0 !important; }
.fff-mb-4  { margin-bottom: var(--fff-space-4); }
.fff-mb-8  { margin-bottom: var(--fff-space-8); }
.fff-mb-12 { margin-bottom: var(--fff-space-12); }

.fff-hidden { display: none !important; }
.fff-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.fff-flex { display: flex; }
.fff-flex-center { display: flex; align-items: center; justify-content: center; }
.fff-gap-4 { gap: var(--fff-space-4); }

/* -----------------------------------------------------------------------
   21. PAGE WRAP
   ----------------------------------------------------------------------- */
.fff-page-wrap {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
}
