export interface Product {
  slug: string
  name: string
  image: string
  formula?: string
  category: string
  categoryId: string
  shortDesc: string
  about: string
  benefits: string[]
  usageNotes: string[]
  guaranteedContent: { label: string; value: string }[]
  applicationDose?: { crop: string; dose: string; timing: string }[]
}

export interface Category {
  id: string
  title: string
  color: string
}

export const categories: Category[] = [
  { id: 'organomineral', title: 'Organomineral Gübreler', color: '#0A5F4E' },
  { id: 'sivi', title: 'Sıvı Gübreler', color: '#128B7E' },
  { id: 'npk', title: 'NPK Çözeltileri', color: '#E77F3A' },
  { id: 'toprak', title: 'Toprak Düzenleyiciler', color: '#6B4C8A' },
  { id: 'ozel', title: 'Özel Formülasyonlar', color: '#C9B896' },
]

export const products: Product[] = [
  // ─── Organomineral Gübreler ───
  {
    slug: 'macro-mgr',
    name: 'Macro-MGR',
    image: '/images/products/macro-mgr.svg',
    formula: '15-0-5+(10 MgO)+ME',
    category: 'Organomineral Gübreler',
    categoryId: 'organomineral',
    shortDesc: 'NK gübresi, magnezyum oksit ve mikro elementler içeren organomineral gübre.',
    about: 'Azot ve potasyum ihtiyacını karşılarken yüksek magnezyum oksit ile klorofil sentezini destekleyen organomineral gübre.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Toplam Azot (N)', value: '%15' },
      { label: 'Nitrat Azotu (NO₂)', value: '%2.8' },
      { label: 'Üre Azotu (NH₂)₂CO', value: '%12.2' },
      { label: 'Suda Çözünür Potasyum Oksit (K₂O)', value: '%5' },
      { label: 'Suda Çözünür Magnezyum Oksit (MgO)', value: '%9' },
      { label: 'Suda Çözünür Mangan (Mn)', value: '%5' },
      { label: 'Suda Çözünür Çinko (Zn)', value: '%4' },
    ],
    applicationDose: [
      { crop: 'Meyve Ağaçları', dose: '2-4 kg/ağaç', timing: 'Çiçeklenme öncesi ve meyve tutumu döneminde' },
      { crop: 'Sebzeler', dose: '30-50 kg/da', timing: 'Ekim/dikim öncesi taban gübresi olarak' },
      { crop: 'Tarla Bitkileri', dose: '25-40 kg/da', timing: 'Ekim öncesi ve ara çapalama döneminde' },
    ],
  },
  {
    slug: 'macrocrop',
    name: 'MacroCrop',
    image: '/images/products/macrocrop.svg',
    category: 'Organomineral Gübreler',
    categoryId: 'organomineral',
    shortDesc: 'Dengeli besin formülü ile verimli bitki gelişimine destek sağlayan organomineral gübre.',
    about: 'Organik ve mineral bileşenlerin sinerjisiyle hazırlanmış, kök gelişimini hızlandıran ve toprak yapısını iyileştiren organomineral gübre.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Suda Çözünür Demir (Fe)', value: '%3.0' },
      { label: 'Suda Çözünür Mangan (Mn)', value: '%1.0' },
      { label: 'Suda Çözünür Çinko (Zn)', value: '%2.0' },
    ],
    applicationDose: [
      { crop: 'Sebzeler', dose: '100-150 g/da', timing: 'Meyve dönemi başlangıcından hasat sonuna kadar 2-3 uygulama' },
      { crop: 'Narenciye', dose: '150-200 g/100L su', timing: 'Çiçeklenme öncesi ilk uygulama, 30 gün arayla 3 uygulama' },
      { crop: 'Meyve Ağaçları', dose: '150-200 g/100L su', timing: 'Meyve bağlama, büyütme ve hasat öncesine kadar 2-3 uygulama' },
      { crop: 'Hububat', dose: '150-200 g/da', timing: 'Meyve bağlama, büyütme ve renk yapma döneminde 2-3 uygulama' },
      { crop: 'Kavun, Karpuz', dose: '150-200 g/da', timing: 'Kol atımından sonra 15 gün ara ile 2-3 uygulama' },
    ],
  },
  {
    slug: 'magron',
    name: 'Magron',
    image: '/images/products/magron.svg',
    formula: '20-5-0+(3 MgO)+(6 SO3)',
    category: 'Organomineral Gübreler',
    categoryId: 'organomineral',
    shortDesc: 'Magnezyum ve kükürt içeriğiyle toprak yapısını düzenleyen granül gübre.',
    about: 'Yüksek azot ve fosfor oranıyla kritik büyüme dönemlerinde destek sağlayan, magnezyum ve kükürt katkılı granül gübre.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Toplam Azot (N)', value: '%20' },
      { label: 'Üre Azotu (NH₂)₂CO', value: '%20' },
      { label: 'Suda Çözünür Fosfor Pentaoksit (P₂O₅)', value: '%5' },
      { label: 'Suda Çözünür Magnezyum Oksit (MgO)', value: '%3' },
      { label: 'Suda Çözünür Kükürt Trioksit (SO₃)', value: '%6' },
    ],
    applicationDose: [
      { crop: 'Hububat', dose: '25-35 kg/da', timing: 'Ekim öncesi ve ilkbahar üst gübre' },
      { crop: 'Meyve Ağaçları', dose: '2-4 kg/ağaç', timing: 'Kış sonu - erken ilkbahar' },
      { crop: 'Sebzeler', dose: '30-50 kg/da', timing: 'Dikim öncesi toprak hazırlığında' },
    ],
  },

  // ─── Sıvı Gübreler ───
  {
    slug: 'macro-grower',
    name: 'Macro Grower',
    image: '/images/products/macro-grower-v4.png',
    category: 'Sıvı Gübreler',
    categoryId: 'sivi',
    shortDesc: 'Bitkisel menşeli sıvı organik gübre. Kök ve yaprak gelişimini destekler.',
    about: 'Bitkisel kaynaklı organik madde içeren, organik tarıma uygun sıvı gübre. Kök ve yaprak gelişimini destekler.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Organik Madde', value: '%25' },
      { label: 'Organik Karbon', value: '%10' },
      { label: 'Toplam Azot (N)', value: '%1' },
      { label: 'Suda Çözünür Potasyum Oksit (K₂O)', value: '%2' },
      { label: 'pH', value: '4-6' },
    ],
    applicationDose: [
      { crop: 'Sebzeler', dose: '150-200 g/da', timing: 'Bitki gelişim periyodu boyunca 2-3 uygulama' },
      { crop: 'Meyveler', dose: '150-250 g/100L su', timing: 'Tomurcuk, çiçeklenme ve meyve gelişim dönemlerinde' },
      { crop: 'Fidan ve Seralar', dose: '100-150 g/100L su', timing: 'Dikim sırasında ve 10-15 gün arayla' },
    ],
  },
  {
    slug: 'macrofos-n',
    name: 'MacroFos-N',
    image: '/images/products/macrofos-n.svg',
    formula: '5-25-0+ME',
    category: 'Sıvı Gübreler',
    categoryId: 'sivi',
    shortDesc: 'Fosfor ve azot ağırlıklı sıvı gübre. Çiçeklenme ve meyve tutumu döneminde etkili.',
    about: 'Yüksek fosfor ve azot içeriğiyle kök gelişimi, çiçeklenme ve meyve tutumunda kritik destek sağlayan sıvı gübre.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Toplam Azot (N)', value: '%5' },
      { label: 'Üre Azotu (NH₂)₂', value: '%5' },
      { label: 'Suda Çözünür Fosfor Pentaoksit (P₂O₅)', value: '%25' },
      { label: 'Suda Çözünür Çinko (Zn)', value: '%5' },
    ],
    applicationDose: [
      { crop: 'Sebzeler', dose: '200-300 cc/100L su', timing: 'Çiçeklenme öncesi ve meyve tutumunda' },
      { crop: 'Meyve Ağaçları', dose: '250-400 cc/100L su', timing: 'Çiçek öncesi ve meyve gelişiminde' },
      { crop: 'Tarla Bitkileri', dose: '200-300 cc/100L su', timing: 'Vejetatif gelişim döneminde' },
    ],
  },
  {
    slug: 'macroolive',
    name: 'MacroOlive',
    image: '/images/products/macroolive.svg',
    category: 'Sıvı Gübreler',
    categoryId: 'sivi',
    shortDesc: 'Zeytin ağaçları için özel geliştirilmiş sıvı gübre formülasyonu.',
    about: 'Zeytin ağaçlarının özel besin ihtiyaçlarına göre formüle edilmiş, verim ve kaliteyi artıran sıvı gübre.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Toplam Azot (N)', value: '%10' },
      { label: 'Nitrat Azotu (NO₂)', value: '%8.8' },
      { label: 'Üre Azotu (NH₂)₂CO', value: '%1.2' },
      { label: 'Suda Çözünür Potasyum Oksit (K₂O)', value: '%30' },
      { label: 'Suda Çözünür Bor (B)', value: '%2.5' },
      { label: 'Suda Çözünür Çinko (Zn)', value: '%4.5' },
    ],
    applicationDose: [
      { crop: 'Zeytin', dose: '250-500 cc/100L su', timing: 'Çiçeklenme öncesi, meyve tutumu ve yağ biriktirme dönemlerinde' },
    ],
  },
  {
    slug: 'nutrapot',
    name: 'Nutrapot',
    image: '/images/products/nutrapot.svg',
    category: 'Sıvı Gübreler',
    categoryId: 'sivi',
    shortDesc: 'Potasyum ağırlıklı sıvı gübre. Meyve kalitesi ve raf ömrünü artırır.',
    about: 'Yüksek potasyum içeriğiyle meyve rengi, şeker birikimi ve raf ömrünü olumlu etkileyen potasyum çözeltisi.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Suda Çözünür Potasyum Oksit (K₂O)', value: '%25' },
    ],
    applicationDose: [
      { crop: 'Meyve Ağaçları', dose: '300-500 cc/100L su', timing: 'Meyve büyüme ve olgunlaşma dönemlerinde' },
      { crop: 'Sebzeler', dose: '200-400 cc/100L su', timing: 'Meyve oluşumu ve hasat öncesi' },
      { crop: 'Bağ', dose: '300-500 cc/100L su', timing: 'Ben düşme ve olgunlaşma döneminde' },
    ],
  },

  // ─── NPK Çözeltileri ───
  {
    slug: 'fosfon',
    name: 'Fosfon',
    image: '/images/products/fosfon.svg',
    formula: '5-40-0+ME',
    category: 'NPK Çözeltileri',
    categoryId: 'npk',
    shortDesc: 'Yüksek fosfor içerikli NP gübre çözeltisi. Kök gelişimi ve çiçeklenme döneminde etkili.',
    about: '%40 fosfor pentaoksit içeriğiyle kök oluşumu, çiçeklenme ve meyve tutumunda destek sağlayan NP gübre çözeltisi.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Toplam Azot (N)', value: '%5' },
      { label: 'Üre Azotu (NH₂)', value: '%5' },
      { label: 'Suda Çözünür Fosfor Pentaoksit (P₂O₅)', value: '%40' },
      { label: 'Suda Çözünür Mangan (Mn)', value: '%0.2' },
      { label: 'Suda Çözünür Molibden (Mo)', value: '%0.02' },
      { label: 'Suda Çözünür Çinko (Zn)', value: '%0.5' },
    ],
    applicationDose: [
      { crop: 'Sebzeler (Domates, Biber, Patlıcan, Hıyar vb.)', dose: '75-125 g/da', timing: 'Meyve dönemi başlangıcından hasat sonuna kadar 2-3 uygulama' },
      { crop: 'Narenciye', dose: '100-150 g/100L su', timing: 'Çiçeklenme öncesi ilk uygulama, 30 gün arayla 3 uygulama' },
      { crop: 'Meyve Ağaçları', dose: '100-150 g/100L su', timing: 'Meyve bağlama, büyütme ve hasat öncesine kadar 2-3 uygulama' },
      { crop: 'Hububat', dose: '100-150 g/da', timing: 'Meyve bağlama ve renk yapma döneminde 2-3 uygulama' },
    ],
  },
  {
    slug: 'fosate',
    name: 'Fosate',
    image: '/images/products/fosate.svg',
    formula: '3-0-20',
    category: 'NPK Çözeltileri',
    categoryId: 'npk',
    shortDesc: 'Potasyum ağırlıklı NK gübre çözeltisi. Meyve kalitesi ve verimlilik artışı sağlar.',
    about: 'Azot ve yüksek potasyum içeriğiyle meyve gelişimi ve olgunlaşma dönemlerinde destek sağlayan NK gübre çözeltisi.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Toplam Azot (N)', value: '%3' },
      { label: 'Üre Azotu (NH₂)', value: '%3' },
      { label: 'Suda Çözünür Potasyum Oksit (K₂O)', value: '%20' },
    ],
    applicationDose: [
      { crop: 'Sebzeler (Domates, Biber, Patlıcan, Hıyar vb.)', dose: '75-125 g/da', timing: 'Meyve dönemi başlangıcından hasat sonuna kadar 2-3 uygulama' },
      { crop: 'Narenciye', dose: '100-150 g/100L su', timing: 'Çiçeklenme öncesi ilk uygulama, 30 gün arayla 3 uygulama' },
      { crop: 'Meyve Ağaçları', dose: '100-150 g/100L su', timing: 'Meyve bağlama, büyütme ve hasat öncesine kadar 2-3 uygulama' },
      { crop: 'Bağ (Üzüm)', dose: '100-150 g/100L su', timing: 'Meyve bağlama, büyütme ve renk yapma döneminde 2-3 uygulama' },
      { crop: 'Hububat', dose: '100-150 g/da', timing: 'Meyve bağlama ve renk yapma döneminde 2-3 uygulama' },
      { crop: 'Kavun, Karpuz', dose: '100-150 g/da', timing: 'Kol atımından sonra 15 gün ara ile 2-3 uygulama' },
    ],
  },
  {
    slug: 'potasate-n',
    name: 'Potasate-N',
    image: '/images/products/potasate-n.svg',
    formula: '3-0-30',
    category: 'NPK Çözeltileri',
    categoryId: 'npk',
    shortDesc: 'Yüksek potasyum içerikli NK gübre çözeltisi. Meyve olgunlaşması döneminde kullanılır.',
    about: 'Yüksek potasyum ve düşük azot içeriğiyle meyve olgunlaşması ve kalite artırma dönemlerinde kullanılan NK gübre çözeltisi.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Toplam Azot (N)', value: '%3' },
      { label: 'Üre Azotu (NH₂)', value: '%3' },
      { label: 'Suda Çözünür Potasyum Oksit (K₂O)', value: '%30' },
    ],
    applicationDose: [
      { crop: 'Meyve Ağaçları', dose: '200-400 cc/100L su', timing: 'Meyve olgunlaşma ve hasat öncesi dönemde' },
      { crop: 'Bağ', dose: '300-500 cc/100L su', timing: 'Ben düşme döneminde 2-3 uygulama' },
      { crop: 'Sebzeler', dose: '200-300 cc/100L su', timing: 'Meyve büyüme ve renk alma döneminde' },
    ],
  },

  // ─── Toprak Düzenleyiciler ───
  {
    slug: 'x-humiplus',
    name: 'X-HümiPlus',
    image: '/images/products/x-humiplus-v4.png',
    category: 'Toprak Düzenleyiciler',
    categoryId: 'toprak',
    shortDesc: 'Sıvı karışım toprak düzenleyici gübre. Hümik ve fulvik asit içerir.',
    about: 'Hümik ve fulvik asit içeriğiyle toprağın fiziksel yapısını iyileştiren ve besin tutma kapasitesini artıran toprak düzenleyici.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Toplam Organik Madde', value: '%24' },
      { label: 'Toplam (Hümik Asit+Fulvik Asit)', value: '%24' },
      { label: 'Toplam Azot (N)', value: '%1' },
      { label: 'Suda Çözünür Potasyum Oksit (K₂O)', value: '%3' },
      { label: 'pH', value: '5,9-7,9' },
    ],
    applicationDose: [
      { crop: 'Tarla Bitkileri', dose: '150-200 g/da', timing: '3-5 yapraklı iken, 15-20 gün arayla 2 uygulama' },
      { crop: 'Sebzeler', dose: '150-200 g/da', timing: 'Bitkilerin gelişim periyodu boyunca 2-3 uygulama' },
      { crop: 'Meyveler', dose: '150-250 g/100L su', timing: 'Tomurcuk, çiçeklenme ve meyve gelişim dönemlerinde' },
      { crop: 'Fidan ve Seralar', dose: '100-150 g/100L su', timing: 'Dikim sırasında ve 10-15 gün arayla' },
    ],
  },
  {
    slug: 'x-algaplus',
    name: 'X-AlgaPlus',
    image: '/images/products/x-algaplus.svg',
    category: 'Toprak Düzenleyiciler',
    categoryId: 'toprak',
    shortDesc: 'Deniz yosunu kaynaklı organik toprak düzenleyici. Alginik asit içerir.',
    about: 'Deniz yosunu kaynaklı, alginik asit ve giberallik asit ile bitki gelişimini doğal yollarla destekleyen toprak düzenleyici.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Organik Madde', value: '%15' },
      { label: 'Suda Çözünür Potasyum Oksit (K₂O)', value: '%5' },
      { label: 'Alginik Asit', value: '%0.4' },
      { label: 'Giberallik Asit', value: '%0,5 ppm' },
      { label: 'Max. EC', value: '%20,1 dS/m' },
      { label: 'pH', value: '6-8' },
    ],
    applicationDose: [
      { crop: 'Tarla Bitkileri', dose: '150-200 g/da', timing: '3-5 yapraklı iken, 15-20 gün arayla 2 uygulama' },
      { crop: 'Sebzeler', dose: '150-200 g/da', timing: 'Bitkilerin gelişim periyodu boyunca 2-3 uygulama' },
      { crop: 'Meyveler', dose: '150-250 g/100L su', timing: 'Tomurcuk, çiçeklenme ve meyve gelişim dönemlerinde' },
      { crop: 'Fidan ve Seralar', dose: '100-150 g/100L su', timing: 'Dikim sırasında ve 10-15 gün arayla' },
    ],
  },

  // ─── Özel Formülasyonlar ───
  {
    slug: 'x-aminoplus',
    name: 'X-AminoPlus',
    image: '/images/products/x-aminoplus.svg',
    category: 'Özel Formülasyonlar',
    categoryId: 'ozel',
    shortDesc: 'Amino asit içerikli biostimülant. Stres koşullarında bitki dayanıklılığını artırır.',
    about: 'Serbest amino asit içerikli biostimülant. Don, kuraklık ve tuzluluk gibi stres koşullarında bitki dayanıklılığını artırır.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Organik Madde', value: '%25' },
      { label: 'Organik Karbon', value: '%15' },
      { label: 'Organik Azot (N)', value: '%2.5' },
      { label: 'Suda Çözünür Potasyum Oksit (K₂O)', value: '%1' },
      { label: 'Serbest Aminoasitler', value: '%15' },
      { label: 'pH', value: '4-6' },
    ],
    applicationDose: [
      { crop: 'Sebzeler', dose: '150-200 cc/100L su', timing: 'Vejetatif gelişim ve stres dönemlerinde 2-3 uygulama' },
      { crop: 'Meyve Ağaçları', dose: '200-300 cc/100L su', timing: 'Çiçeklenme öncesi ve meyve gelişim döneminde' },
      { crop: 'Tarla Bitkileri', dose: '100-200 cc/da', timing: 'Bitki gelişim periyodunda' },
    ],
  },
  {
    slug: 'macrocal-b',
    name: 'MacroCal-B',
    image: '/images/products/macrocal-b.svg',
    category: 'Özel Formülasyonlar',
    categoryId: 'ozel',
    shortDesc: 'Kalsiyum ve bor içerikli yaprak gübresi. Meyve çatlamasını önler.',
    about: 'Kalsiyum ile hücre duvarını güçlendiren, bor ile tozlanma ve meyve tutumunu destekleyen yaprak gübresi.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Suda Çözünür Kalsiyum Oksit (CaO)', value: '%15' },
      { label: 'Suda Çözünür Bor (B)', value: '%0.2' },
    ],
    applicationDose: [
      { crop: 'Meyve Ağaçları', dose: '200-400 cc/100L su', timing: 'Meyve büyüme döneminde 15 gün arayla 3-4 uygulama' },
      { crop: 'Sebzeler', dose: '150-300 cc/100L su', timing: 'Meyve oluşum ve büyüme döneminde' },
      { crop: 'Bağ', dose: '200-300 cc/100L su', timing: 'Tane irileşme döneminde' },
    ],
  },
  {
    slug: 'faster-800',
    name: 'Faster 800',
    image: '/images/products/faster800.svg',
    category: 'Özel Formülasyonlar',
    categoryId: 'ozel',
    shortDesc: 'Karışım düzenleyici, şelatlayıcı ve pH düşürücü.',
    about: 'İlaçlama suyunun pH ve sertliğini düzenleyen, ilaç etkinliğini artıran karışım düzenleyici ve yapıştırıcı.',
    benefits: [],
    usageNotes: [],
    guaranteedContent: [
      { label: 'Alkylaryl polyoxyethylene glycol phosphate ester', value: '800 Gr/Lt' },
    ],
    applicationDose: [
      { crop: 'Yaprak İlaçlama', dose: '100 ml/100L su', timing: 'Her ilaçlama uygulamasında' },
      { crop: 'Herbisit Uygulaması', dose: '150 ml/da', timing: 'Herbisit uygulamalarında' },
      { crop: 'Damla Sulama Temizliği', dose: '200-800 ml/100L su', timing: 'Sistem temizliği gerektikçe' },
    ],
  },
]

export function getProductBySlug(slug: string): Product | undefined {
  return products.find(p => p.slug === slug)
}

export function getProductsByCategory(categoryId: string): Product[] {
  return products.filter(p => p.categoryId === categoryId)
}
