export interface Product {
  id: number;
  name: string;
  slug: string;
  category: string;
  categorySlug: string;
  price: number;
  originalPrice?: number;
  rating: number;
  reviews: number;
  image: string;
  images?: string[];
  inStock: boolean;
  freeShipping: boolean;
  expertReview?: string;
  badge?: string;
  description: string;
  specs: { label: string; value: string }[];
  features: string[];
}

export interface BlogPost {
  id: number;
  title: string;
  slug: string;
  excerpt: string;
  image: string;
  date: string;
  readTime: string;
  category: string;
  content: string;
}

export const IMAGES = {
  hero: "https://mgx-backend-cdn.metadl.com/generate/images/478555/2026-03-31/78803361-fa9b-4a24-a07d-769e681aba59.png",
  ceramicGrill: "https://mgx-backend-cdn.metadl.com/generate/images/478555/2026-03-31/28891af2-4a2e-41ba-a683-ef7edbb1b271.png",
  gasBBQ: "https://mgx-backend-cdn.metadl.com/generate/images/478555/2026-03-31/ccc301be-bfd3-4e4a-b309-95b4d4b9dada.png",
  smoker: "https://mgx-backend-cdn.metadl.com/generate/images/478555/2026-03-31/b0173ef9-6a10-4f2c-8345-b890bb4197c8.png",
  knives: "https://mgx-backend-cdn.metadl.com/generate/images/478555/2026-03-31/17135c99-ae8e-4081-8f59-79f9d8c4bf12.png",
  castIron: "https://mgx-backend-cdn.metadl.com/generate/images/478555/2026-03-31/7379b1ab-f0c1-424a-a071-5a86b48b1d86.png",
  blogBrisket: "https://mgx-backend-cdn.metadl.com/generate/images/478555/2026-03-31/939c816e-1486-4351-9375-0f71c9904d39.png",
  blogCharcoalVsGas: "https://mgx-backend-cdn.metadl.com/generate/images/478555/2026-03-31/3172b06e-a5e1-4c74-b8f4-bafeb62797dd.png",
};

export const categories = [
  { name: "Ceramic Grills", slug: "ceramic-grills", image: IMAGES.ceramicGrill, count: 24 },
  { name: "Gas & Charcoal BBQs", slug: "gas-charcoal-bbqs", image: IMAGES.gasBBQ, count: 36 },
  { name: "Smoker Boxes", slug: "smoker-boxes", image: IMAGES.smoker, count: 18 },
  { name: "Premium Knives", slug: "premium-knives", image: IMAGES.knives, count: 42 },
  { name: "Cast Iron Cookware", slug: "cast-iron-cookware", image: IMAGES.castIron, count: 31 },
  { name: "Wood & Charcoal", slug: "wood-charcoal", image: IMAGES.smoker, count: 15 },
];

export const products: Product[] = [
  {
    id: 1,
    name: "Kamado Pro XL 24\" Ceramic Grill",
    slug: "kamado-pro-xl-24",
    category: "Ceramic Grills",
    categorySlug: "ceramic-grills",
    price: 1899,
    originalPrice: 2199,
    rating: 4.9,
    reviews: 342,
    image: IMAGES.ceramicGrill,
    images: [IMAGES.ceramicGrill, IMAGES.hero],
    inStock: true,
    freeShipping: true,
    expertReview: "\"The best ceramic grill we've ever tested\" — BBQ Magazine",
    badge: "Editor's Choice",
    description: "The Kamado Pro XL 24\" is the pinnacle of ceramic grill engineering. With its thick-walled ceramic construction, this grill maintains precise temperatures from 200°F to 750°F, making it perfect for low-and-slow smoking, high-heat searing, and everything in between. The patented airflow system ensures consistent heat distribution while using minimal charcoal.",
    specs: [
      { label: "Cooking Area", value: "452 sq. in." },
      { label: "Weight", value: "198 lbs" },
      { label: "Material", value: "Premium Ceramic" },
      { label: "Temp Range", value: "200°F - 750°F" },
      { label: "Warranty", value: "Lifetime on ceramic" },
      { label: "Color", value: "Classic Green" },
    ],
    features: [
      "Thick-walled ceramic construction for superior heat retention",
      "Patented dual-zone airflow control system",
      "Stainless steel cooking grates with lifetime warranty",
      "Built-in temperature gauge with precision calibration",
      "Heavy-duty galvanized steel cart with locking casters",
      "Includes ash tool, grate lifter, and cover",
    ],
  },
  {
    id: 2,
    name: "Ironforge 6-Burner Gas Grill",
    slug: "ironforge-6-burner",
    category: "Gas & Charcoal BBQs",
    categorySlug: "gas-charcoal-bbqs",
    price: 2499,
    rating: 4.8,
    reviews: 218,
    image: IMAGES.gasBBQ,
    images: [IMAGES.gasBBQ, IMAGES.hero],
    inStock: true,
    freeShipping: true,
    expertReview: "\"Unmatched heat distribution and build quality\" — Grill World",
    badge: "Best Seller",
    description: "The Ironforge 6-Burner is a professional-grade gas grill built for serious outdoor cooks. With 60,000 BTUs of cooking power across six independently controlled burners, plus a dedicated infrared sear station, this grill handles everything from delicate fish to thick-cut steaks with ease.",
    specs: [
      { label: "Cooking Area", value: "780 sq. in." },
      { label: "BTU Output", value: "60,000 BTU" },
      { label: "Burners", value: "6 + Infrared Sear" },
      { label: "Material", value: "304 Stainless Steel" },
      { label: "Warranty", value: "10 years" },
      { label: "Ignition", value: "Electronic" },
    ],
    features: [
      "Six independently controlled stainless steel burners",
      "Dedicated infrared sear station (16,000 BTU)",
      "304 stainless steel construction throughout",
      "LED-lit control knobs for nighttime grilling",
      "Integrated rotisserie system with motor",
      "Double-walled hood for superior heat retention",
    ],
  },
  {
    id: 3,
    name: "Pitmaster Offset Smoker 20\"",
    slug: "pitmaster-offset-smoker-20",
    category: "Smoker Boxes",
    categorySlug: "smoker-boxes",
    price: 1299,
    originalPrice: 1499,
    rating: 4.7,
    reviews: 156,
    image: IMAGES.smoker,
    images: [IMAGES.smoker, IMAGES.hero],
    inStock: true,
    freeShipping: true,
    expertReview: "\"Perfect smoke ring every time\" — Smoke & Fire Journal",
    badge: "Top Rated",
    description: "The Pitmaster Offset Smoker is designed for authentic low-and-slow BBQ. The heavy-gauge steel firebox and reverse-flow design ensure even heat and smoke distribution across the entire cooking chamber. This is the smoker competition pitmasters trust.",
    specs: [
      { label: "Cooking Area", value: "620 sq. in." },
      { label: "Weight", value: "285 lbs" },
      { label: "Material", value: "1/4\" Steel" },
      { label: "Firebox", value: "Offset, heavy-gauge" },
      { label: "Warranty", value: "5 years" },
      { label: "Design", value: "Reverse Flow" },
    ],
    features: [
      "1/4\" heavy-gauge steel construction",
      "Reverse-flow smoke design for even cooking",
      "Oversized firebox with air damper controls",
      "Dual thermometers on cooking chamber",
      "Large front access door for easy wood loading",
      "Removable ash pan for easy cleanup",
    ],
  },
  {
    id: 4,
    name: "Damascus Steel Chef Knife Set",
    slug: "damascus-steel-knife-set",
    category: "Premium Knives",
    categorySlug: "premium-knives",
    price: 349,
    rating: 4.9,
    reviews: 487,
    image: IMAGES.knives,
    images: [IMAGES.knives],
    inStock: true,
    freeShipping: false,
    expertReview: "\"Razor-sharp precision for any pitmaster\" — Chef's Weekly",
    description: "This 7-piece Damascus steel knife set is hand-forged from 67 layers of VG-10 Japanese steel. Each blade features a stunning Damascus pattern and is honed to a 15-degree edge for exceptional sharpness. The ergonomic pakkawood handles provide a secure, comfortable grip.",
    specs: [
      { label: "Pieces", value: "7-piece set" },
      { label: "Steel", value: "67-layer VG-10 Damascus" },
      { label: "Edge Angle", value: "15° per side" },
      { label: "Handle", value: "Pakkawood" },
      { label: "Warranty", value: "Lifetime" },
      { label: "Hardness", value: "60±2 HRC" },
    ],
    features: [
      "67-layer VG-10 Japanese Damascus steel",
      "Hand-forged with traditional techniques",
      "15-degree edge for razor-sharp precision",
      "Ergonomic pakkawood handles",
      "Includes chef's, santoku, bread, utility, paring, and 2 steak knives",
      "Premium magnetic walnut knife block included",
    ],
  },
  {
    id: 5,
    name: "Heritage Cast Iron Skillet 12\"",
    slug: "heritage-cast-iron-skillet-12",
    category: "Cast Iron Cookware",
    categorySlug: "cast-iron-cookware",
    price: 129,
    rating: 4.8,
    reviews: 623,
    image: IMAGES.castIron,
    images: [IMAGES.castIron],
    inStock: true,
    freeShipping: false,
    expertReview: "\"Built to last generations\" — Outdoor Cooking Review",
    description: "The Heritage 12\" Cast Iron Skillet is crafted using traditional sand-casting methods, resulting in a smoother cooking surface than modern cast iron. Pre-seasoned with three coats of organic flaxseed oil, it's ready to use right out of the box. Perfect for searing steaks, baking cornbread, or cooking over an open campfire.",
    specs: [
      { label: "Diameter", value: "12 inches" },
      { label: "Weight", value: "7.5 lbs" },
      { label: "Material", value: "Cast Iron" },
      { label: "Seasoning", value: "3x Flaxseed Oil" },
      { label: "Warranty", value: "Lifetime" },
      { label: "Compatible", value: "All cooktops + campfire" },
    ],
    features: [
      "Traditional sand-cast construction for smoother surface",
      "Pre-seasoned with 3 coats of organic flaxseed oil",
      "Works on all cooktops including induction",
      "Oven safe to 500°F",
      "Helper handle for easy two-hand lifting",
      "Made in USA with recycled iron",
    ],
  },
  {
    id: 6,
    name: "Kamado Classic 18\" Ceramic Grill",
    slug: "kamado-classic-18",
    category: "Ceramic Grills",
    categorySlug: "ceramic-grills",
    price: 1199,
    originalPrice: 1399,
    rating: 4.6,
    reviews: 198,
    image: IMAGES.ceramicGrill,
    images: [IMAGES.ceramicGrill],
    inStock: true,
    freeShipping: true,
    badge: "New Arrival",
    description: "The Kamado Classic 18\" is the perfect entry into ceramic grilling. Compact yet powerful, it delivers the same heat retention and versatility as its larger siblings. Ideal for patios, balconies, and smaller outdoor spaces without compromising on cooking performance.",
    specs: [
      { label: "Cooking Area", value: "254 sq. in." },
      { label: "Weight", value: "145 lbs" },
      { label: "Material", value: "Premium Ceramic" },
      { label: "Temp Range", value: "200°F - 750°F" },
      { label: "Warranty", value: "Lifetime on ceramic" },
      { label: "Color", value: "Classic Green" },
    ],
    features: [
      "Compact 18\" design perfect for smaller spaces",
      "Same thick-walled ceramic as the XL model",
      "Precision airflow control for consistent temps",
      "Stainless steel cooking grate",
      "Includes nest stand with casters",
      "Cover and ash tool included",
    ],
  },
  {
    id: 7,
    name: "Smokewood Premium Hickory Chunks",
    slug: "smokewood-premium-hickory",
    category: "Wood & Charcoal",
    categorySlug: "wood-charcoal",
    price: 34,
    rating: 4.7,
    reviews: 891,
    image: IMAGES.smoker,
    images: [IMAGES.smoker],
    inStock: true,
    freeShipping: false,
    description: "Premium kiln-dried hickory wood chunks perfect for smoking brisket, ribs, and pork. These large chunks provide long-lasting, consistent smoke for hours of low-and-slow cooking. Sourced from sustainable American hardwood forests.",
    specs: [
      { label: "Weight", value: "20 lbs" },
      { label: "Wood Type", value: "Hickory" },
      { label: "Cut", value: "Large Chunks" },
      { label: "Moisture", value: "< 20%" },
      { label: "Source", value: "USA Hardwood" },
      { label: "Best For", value: "Brisket, Ribs, Pork" },
    ],
    features: [
      "Kiln-dried for consistent moisture content",
      "Large chunks for hours of steady smoke",
      "100% natural — no additives or chemicals",
      "Sourced from sustainable American forests",
      "Perfect for offset smokers and kamado grills",
      "Resealable bag for freshness",
    ],
  },
  {
    id: 8,
    name: "Pro Series BBQ Tool Set",
    slug: "pro-series-bbq-tool-set",
    category: "Premium Knives",
    categorySlug: "premium-knives",
    price: 189,
    originalPrice: 229,
    rating: 4.8,
    reviews: 334,
    image: IMAGES.knives,
    images: [IMAGES.knives],
    inStock: true,
    freeShipping: true,
    badge: "Best Value",
    description: "The Pro Series BBQ Tool Set includes everything a serious griller needs. Crafted from heavy-duty stainless steel with rosewood handles, this 12-piece set includes tongs, spatula, fork, basting brush, skewers, corn holders, and a premium carrying case.",
    specs: [
      { label: "Pieces", value: "12-piece set" },
      { label: "Material", value: "Stainless Steel" },
      { label: "Handles", value: "Rosewood" },
      { label: "Case", value: "Aluminum" },
      { label: "Warranty", value: "5 years" },
      { label: "Dishwasher", value: "Safe" },
    ],
    features: [
      "Heavy-duty 18/8 stainless steel construction",
      "Genuine rosewood handles with riveted tang",
      "Extra-long 18\" tools for safe grilling",
      "Premium aluminum carrying case",
      "Includes tongs, spatula, fork, brush, 4 skewers, 2 corn holders, knife",
      "Dishwasher safe for easy cleanup",
    ],
  },
  {
    id: 9,
    name: "Lodge Dutch Oven 6-Quart",
    slug: "lodge-dutch-oven-6qt",
    category: "Cast Iron Cookware",
    categorySlug: "cast-iron-cookware",
    price: 89,
    rating: 4.9,
    reviews: 1204,
    image: IMAGES.castIron,
    images: [IMAGES.castIron],
    inStock: true,
    freeShipping: false,
    expertReview: "\"The ultimate campfire companion\" — Outdoor Life",
    description: "This 6-quart cast iron Dutch oven is a campfire essential. With its tight-fitting flanged lid designed to hold coals on top, it creates an oven-like environment for stews, chili, baked beans, and even cobblers. Pre-seasoned and ready for adventure.",
    specs: [
      { label: "Capacity", value: "6 Quarts" },
      { label: "Weight", value: "12 lbs" },
      { label: "Material", value: "Cast Iron" },
      { label: "Lid", value: "Flanged for coals" },
      { label: "Warranty", value: "Lifetime" },
      { label: "Legs", value: "3 integrated legs" },
    ],
    features: [
      "Flanged lid holds hot coals for even top heat",
      "Three integrated legs for campfire stability",
      "Pre-seasoned with vegetable oil blend",
      "Wire bail handle for hanging over fire",
      "Works on all heat sources",
      "Made in USA",
    ],
  },
];

export const blogPosts: BlogPost[] = [
  {
    id: 1,
    title: "The Ultimate Brisket Guide: 12 Hours to Perfection",
    slug: "ultimate-brisket-guide",
    excerpt: "Master the art of smoking brisket with our step-by-step guide. From selecting the right cut to achieving the perfect smoke ring, we cover everything you need to know.",
    image: IMAGES.blogBrisket,
    date: "March 15, 2026",
    readTime: "8 min read",
    category: "Recipes",
    content: `## Choosing Your Brisket\n\nThe foundation of great BBQ starts at the butcher. Look for a whole packer brisket (point and flat) weighing 12-14 pounds. You want good marbling throughout the flat and a thick, even fat cap.\n\n### What to Look For:\n- **Grade**: USDA Choice or Prime\n- **Weight**: 12-14 lbs whole packer\n- **Marbling**: Even distribution throughout\n- **Fat Cap**: 1/4 inch thick, even coverage\n\n## The Trim\n\nTrim the fat cap to about 1/4 inch thickness. Remove any hard pieces of fat that won't render during cooking. Square off the edges of the flat for even cooking.\n\n## The Rub\n\nKeep it simple — the best Texas-style brisket uses only:\n- Coarse black pepper (16-mesh)\n- Kosher salt\n- Ratio: 50/50 by volume\n\nApply generously the night before and refrigerate uncovered.\n\n## The Cook\n\n1. **Preheat** your smoker to 250°F with hickory or oak wood\n2. **Place** brisket fat-side up on the grate\n3. **Spritz** with apple cider vinegar every hour after the first 3 hours\n4. **Wrap** in butcher paper when the bark sets (usually around 165°F internal)\n5. **Pull** at 203°F internal when the probe slides in like butter\n6. **Rest** for at least 1 hour in a cooler wrapped in towels\n\n## The Slice\n\nAlways slice against the grain. The flat and point have different grain directions, so separate them at the seam and slice each piece individually. Aim for pencil-thick slices.\n\nTotal time: approximately 12-14 hours at 250°F for a 13-pound brisket.`,
  },
  {
    id: 2,
    title: "Charcoal vs Gas: The Great BBQ Debate Settled",
    slug: "charcoal-vs-gas-debate",
    excerpt: "We put the two most popular grilling methods head-to-head. Discover which fuel source delivers better flavor, convenience, and value for your outdoor kitchen.",
    image: IMAGES.blogCharcoalVsGas,
    date: "March 8, 2026",
    readTime: "6 min read",
    category: "Tips & Guides",
    content: `## The Age-Old Question\n\nEvery backyard cook eventually faces this decision: charcoal or gas? Both have passionate advocates, and both produce excellent food. Let's break down the real differences.\n\n## Flavor\n\n**Charcoal** produces that unmistakable smoky flavor through the combustion of carbon and the drippings that vaporize on hot coals. This is the flavor most people associate with "real BBQ."\n\n**Gas** provides a cleaner, more neutral heat. While it won't produce the same smoky depth, it lets the natural flavor of your ingredients shine. You can add smoke boxes for extra flavor.\n\n**Winner**: Charcoal, for pure BBQ flavor.\n\n## Convenience\n\n**Gas** grills start with the push of a button and reach cooking temperature in 10-15 minutes. Temperature control is precise and easy.\n\n**Charcoal** requires 20-30 minutes to light and reach temperature. Managing heat zones takes practice and attention.\n\n**Winner**: Gas, by a wide margin.\n\n## Cost\n\n**Charcoal** grills are cheaper upfront but ongoing fuel costs add up. A bag of quality lump charcoal costs $15-25 and lasts 2-3 cooks.\n\n**Gas** grills cost more initially but propane is cheaper per cook. A $20 tank lasts 15-20 grilling sessions.\n\n**Winner**: Depends on frequency — gas wins for regular grillers.\n\n## Our Verdict\n\nThe best answer? **Both.** Serious outdoor cooks benefit from having a gas grill for weeknight convenience and a charcoal setup for weekend BBQ sessions. If you can only choose one, pick based on how you cook most often.`,
  },
  {
    id: 3,
    title: "5 Essential Accessories Every Pitmaster Needs",
    slug: "essential-pitmaster-accessories",
    excerpt: "Upgrade your grilling game with these must-have tools. From digital thermometers to premium tongs, these accessories will transform your outdoor cooking experience.",
    image: IMAGES.knives,
    date: "February 28, 2026",
    readTime: "5 min read",
    category: "Equipment",
    content: `## 1. Instant-Read Thermometer\n\nThis is the single most important tool in your BBQ arsenal. Stop guessing and start measuring. A quality instant-read thermometer like the ThermoWorks Thermapen gives you accurate readings in under 2 seconds.\n\n**Why it matters**: The difference between a perfect medium-rare steak (130°F) and an overcooked one (145°F) is just 15 degrees.\n\n## 2. Heavy-Duty Tongs\n\nInvest in 16-inch stainless steel tongs with a good spring mechanism. They should feel like an extension of your hand. Avoid tongs with sharp edges that pierce meat and release juices.\n\n## 3. Cast Iron Skillet\n\nA 12-inch cast iron skillet is incredibly versatile on the grill. Use it for smash burgers, sautéing vegetables, making sauces, or baking cornbread right on the grate.\n\n## 4. Chimney Starter\n\nIf you use charcoal, a chimney starter is non-negotiable. It lights charcoal evenly in 15 minutes without lighter fluid, which can leave chemical flavors on your food.\n\n## 5. Quality Cutting Board\n\nA large end-grain cutting board (at least 18x24 inches) gives you room to work when slicing brisket, carving chicken, or prepping vegetables. End-grain is gentler on your knives and self-healing.\n\n## Bonus: A Good Apron\n\nProtect yourself from grease splatter and hot embers with a heavy-duty leather or waxed canvas apron. It's not just practical — it puts you in the pitmaster mindset.`,
  },
];

export function getProductById(id: number): Product | undefined {
  return products.find((p) => p.id === id);
}

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

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

export function getBlogBySlug(slug: string): BlogPost | undefined {
  return blogPosts.find((p) => p.slug === slug);
}