import type { MarketplaceCategory } from "@/types/marketplace";

export const MARKETPLACE_CATEGORIES: MarketplaceCategory[] = [
  {
    id: "electronics",
    slug: "electronics",
    label: "Electronics",
    icon: "📱",
    subcategories: [
      { id: "mobiles", slug: "mobiles", label: "Mobiles", icon: "📱" },
      { id: "laptops", slug: "laptops", label: "Laptops", icon: "💻" },
      { id: "tablets", slug: "tablets", label: "Tablets", icon: "📟" },
      { id: "cameras", slug: "cameras", label: "Cameras", icon: "📷" },
      { id: "audio", slug: "audio", label: "Audio", icon: "🎧" },
      { id: "tvs", slug: "tvs", label: "TVs & Monitors", icon: "🖥️" },
    ],
  },
  {
    id: "fashion",
    slug: "fashion",
    label: "Fashion",
    icon: "👗",
    subcategories: [
      { id: "mens", slug: "mens", label: "Men's", icon: "👔" },
      { id: "womens", slug: "womens", label: "Women's", icon: "👗" },
      { id: "kids", slug: "kids", label: "Kids'", icon: "👶" },
      { id: "accessories", slug: "accessories", label: "Accessories", icon: "👜" },
    ],
  },
  {
    id: "home",
    slug: "home",
    label: "Home & Garden",
    icon: "🏠",
    subcategories: [
      { id: "furniture", slug: "furniture", label: "Furniture", icon: "🪑" },
      { id: "appliances", slug: "appliances", label: "Appliances", icon: "🫙" },
      { id: "decor", slug: "decor", label: "Decor", icon: "🖼️" },
    ],
  },
  { id: "books", slug: "books", label: "Books & Media", icon: "📚" },
  { id: "sports", slug: "sports", label: "Sports & Fitness", icon: "⚽" },
  { id: "vehicles", slug: "vehicles", label: "Vehicles", icon: "🚗" },
  { id: "property", slug: "property", label: "Property", icon: "🏘️" },
  { id: "jobs", slug: "jobs", label: "Jobs", icon: "💼" },
  { id: "services", slug: "services", label: "Services", icon: "🛠️" },
];

export const CONDITION_LABELS: Record<string, string> = {
  new: "Brand New",
  like_new: "Like New",
  good: "Good",
  fair: "Fair",
  poor: "Poor",
};

export const CONDITION_COLORS: Record<string, string> = {
  new: "#22c55e",
  like_new: "#84cc16",
  good: "#f59e0b",
  fair: "#f97316",
  poor: "#ef4444",
};

export const SORT_OPTIONS = [
  { value: "relevance", label: "Relevance" },
  { value: "price_asc", label: "Price: Low to High" },
  { value: "price_desc", label: "Price: High to Low" },
  { value: "newest", label: "Newest First" },
  { value: "popular", label: "Most Popular" },
] as const;

export const DELIVERY_OPTIONS = [
  { value: "standard", label: "Standard (4–7 days)" },
  { value: "express", label: "Express (1–2 days)" },
  { value: "pickup", label: "Self Pickup" },
] as const;

export const MARKETPLACE_PLATFORM_FEE = 0.025; // 2.5%
export const MARKETPLACE_CURRENCY = "$";
export const MARKETPLACE_CURRENCY_CODE = "INR";

export const ITEMS_PER_PAGE = 24;
export const SEARCH_DEBOUNCE_MS = 350;
