<?php

namespace Database\Seeders;

use App\Models\Category;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;

class CategorySeeder extends Seeder
{
    public function run(): void
    {
        $categories = [
            ['name' => 'Home', 'description' => 'Everything for your home'],
            ['name' => 'Baby Food', 'description' => 'Nutritious food for babies and toddlers'],
            ['name' => 'Beauty & Personal Care', 'description' => 'Skincare, makeup, and personal care products'],
            ['name' => 'Frozen Foods', 'description' => 'Frozen meats, vegetables, and ready meals'],
            ['name' => 'Food & Groceries', 'description' => 'Staples, pantry items, and everyday groceries'],
            ['name' => 'Health & Wellness', 'description' => 'Vitamins, supplements, and wellness products'],
            ['name' => 'Body & Bathing Accessories', 'description' => 'Towels, bath accessories, and body care tools'],
            ['name' => 'Skin Care', 'description' => 'Cleansers, moisturizers, and skin treatments'],
            ['name' => 'Oral Care', 'description' => 'Toothbrushes, toothpaste, and dental hygiene'],
            ['name' => 'Hair Care', 'description' => 'Shampoo, conditioner, and hair styling products'],
            ['name' => 'Frozen Meat', 'description' => 'Premium frozen meat selection'],
            ['name' => 'Fish & Seafood', 'description' => 'Fresh and frozen fish and seafood'],
            ['name' => 'Frozen Vegetables', 'description' => 'Flash-frozen vegetables for quick meals'],
            ['name' => 'Fruits', 'description' => 'Fresh and dried fruits'],
            ['name' => 'Produce & Vegetables', 'description' => 'Fresh farm produce and vegetables'],
            ['name' => 'Daily Milk', 'description' => 'Milk, yogurt, cheese, and dairy products'],
            ['name' => 'Breakfast & Cereals', 'description' => 'Start your day right with cereals and breakfast items'],
            ['name' => 'Drinks & Beverages', 'description' => 'Juices, teas, coffees, and soft drinks'],
            ['name' => 'Snacks', 'description' => 'Chips, nuts, and tasty snack treats'],
            ['name' => 'Pantry', 'description' => 'Essential pantry staples and cooking ingredients'],
            ['name' => 'Vitamins & Dietary Supplements', 'description' => 'Nutritional supplements and wellness vitamins'],
        ];

        foreach ($categories as $cat) {
            Category::create([
                'name' => $cat['name'],
                'slug' => Str::slug($cat['name']),
                'description' => $cat['description'],
                'status' => true,
            ]);
        }
    }
}
