// ===== Data =====

const CATEGORIES = [
  { id: "gpu", label: "Graphics Cards", count: 184, icon: "gpu", img: "https://images.unsplash.com/photo-1591488320449-011701bb6704?w=400&q=80&auto=format" },
  { id: "cpu", label: "Processors", count: 96, icon: "cpu", img: "https://images.unsplash.com/photo-1555617981-dac3880eac6e?w=400&q=80&auto=format" },
  { id: "mb", label: "Motherboards", count: 142, icon: "mb", img: "https://images.unsplash.com/photo-1518770660439-4636190af475?w=400&q=80&auto=format" },
  { id: "ram", label: "Memory", count: 78, icon: "ram", img: "https://images.unsplash.com/photo-1562976540-1502c2145186?w=400&q=80&auto=format" },
  { id: "ssd", label: "Storage", count: 211, icon: "ssd", img: "https://images.unsplash.com/photo-1531492746076-161ca9bcad58?w=400&q=80&auto=format" },
  { id: "psu", label: "Power Supplies", count: 64, icon: "psu", img: "https://images.unsplash.com/photo-1587202372634-32705e3bf49c?w=400&q=80&auto=format" },
  { id: "case", label: "PC Cases", count: 89, icon: "case", img: "https://images.unsplash.com/photo-1587202372775-e229f172b9d7?w=400&q=80&auto=format" },
  { id: "cool", label: "Cooling", count: 124, icon: "cool", img: "https://images.unsplash.com/photo-1593640495253-23196b27a87f?w=400&q=80&auto=format" },
  { id: "mon", label: "Monitors", count: 156, icon: "mon", img: "https://images.unsplash.com/photo-1547082299-de196ea013d6?w=400&q=80&auto=format" },
  { id: "kb", label: "Keyboards", count: 198, icon: "kb", img: "https://images.unsplash.com/photo-1587829741301-dc798b83add3?w=400&q=80&auto=format" },
  { id: "ms", label: "Mice", count: 167, icon: "ms", img: "https://images.unsplash.com/photo-1527814050087-3793815479db?w=400&q=80&auto=format" },
  { id: "head", label: "Headsets", count: 134, icon: "head", img: "https://images.unsplash.com/photo-1599669454699-248893623440?w=400&q=80&auto=format" },
];

const NAV_LINKS = [
  { label: "New Arrivals" },
  { label: "Prebuilt PCs", hot: "HOT" },
  { label: "Components" },
  { label: "Peripherals" },
  { label: "Streaming" },
  { label: "Deals", hot: "-40%" },
  { label: "Support" },
];

const IMG = (id) => `https://images.unsplash.com/photo-${id}?w=720&h=720&fit=crop&q=80&auto=format`;

const PRODUCTS = [
  {
    id: 1, brand: "Vortex", name: "Phantom RTX 5080 OC 16GB GDDR7",
    cat: "GPU", price: 134900, was: 149900, currency: "DZD",
    rating: 4.8, reviews: 142, stock: 24,
    specs: ["RTX 5080", "16 GB GDDR7", "3-FAN"],
    badges: ["NEW", "-10%"], hot: true,
    img: IMG("1591488320449-011701bb6704"),
  },
  {
    id: 2, brand: "Apex", name: "Ryzen 9 9950X — 16-Core Unlocked",
    cat: "CPU", price: 89000, was: 99000, currency: "DZD",
    rating: 4.9, reviews: 318, stock: 12,
    specs: ["AM5", "16C / 32T", "5.7 GHz"],
    badges: ["BEST SELLER"],
    img: IMG("1555617981-dac3880eac6e"),
  },
  {
    id: 3, brand: "Helios", name: "Helios X670E Aurora Wi-Fi 7 Motherboard",
    cat: "MOBO", price: 54500, currency: "DZD",
    rating: 4.6, reviews: 87, stock: 18,
    specs: ["AM5", "DDR5-8000", "Wi-Fi 7"],
    badges: ["NEW"],
    img: IMG("1518770660439-4636190af475"),
  },
  {
    id: 4, brand: "Lumen", name: "Lumen Trident DDR5-6400 32GB CL30 RGB",
    cat: "RAM", price: 18500, was: 22000, currency: "DZD",
    rating: 4.7, reviews: 256, stock: 56,
    specs: ["2x16 GB", "DDR5-6400", "CL30"],
    badges: ["-16%"],
    img: IMG("1591488320449-011701bb6704"),
  },
  {
    id: 5, brand: "Stratus", name: "Stratus 990 Pro NVMe Gen5 2TB SSD",
    cat: "SSD", price: 24900, currency: "DZD",
    rating: 4.9, reviews: 412, stock: 41,
    specs: ["PCIe 5.0", "14 GB/s", "2 TB"],
    badges: ["HOT"], hot: true,
    img: IMG("1597338687665-c5f2a0aafd8d"),
  },
  {
    id: 6, brand: "Volt", name: "Volt Titanium 1000W ATX 3.1 PSU",
    cat: "PSU", price: 32000, was: 38000, currency: "DZD",
    rating: 4.8, reviews: 174, stock: 9,
    specs: ["1000 W", "80+ TITAN", "ATX 3.1"],
    badges: ["-16%"],
    img: IMG("1587202372634-32705e3bf49c"),
  },
  {
    id: 7, brand: "Cipher", name: "Cipher Mesh Pro Mid-Tower — Lilac",
    cat: "CASE", price: 16800, currency: "DZD",
    rating: 4.5, reviews: 198, stock: 33,
    specs: ["MID-TOWER", "MESH", "4×120mm"],
    badges: ["NEW"],
    img: IMG("1587202372775-e229f172b9d7"),
  },
  {
    id: 8, brand: "Cryo", name: "Cryo Liquid 360 ARGB AIO Cooler",
    cat: "COOLING", price: 22500, was: 26900, currency: "DZD",
    rating: 4.7, reviews: 221, stock: 27,
    specs: ["360 mm", "ARGB", "LGA1851"],
    badges: ["-16%"], hot: true,
    img: IMG("1593640495253-23196b27a87f"),
  },
  {
    id: 9, brand: "Aether", name: "Aether 27\" OLED 240Hz QHD Monitor",
    cat: "MONITOR", price: 78000, was: 89000, currency: "DZD",
    rating: 4.9, reviews: 92, stock: 7,
    specs: ["OLED", "240 Hz", "0.03 ms"],
    badges: ["HOT", "-12%"], hot: true,
    img: IMG("1547082299-de196ea013d6"),
  },
  {
    id: 10, brand: "Glyph", name: "Glyph TKL Magnetic Hall-Effect Keyboard",
    cat: "KEYBOARD", price: 21500, currency: "DZD",
    rating: 4.8, reviews: 264, stock: 48,
    specs: ["TKL", "MAG-HALL", "8000 Hz"],
    badges: ["NEW"],
    img: IMG("1587829741301-dc798b83add3"),
  },
  {
    id: 11, brand: "Halo", name: "Halo Wireless 4K Gaming Mouse — Ultralight",
    cat: "MOUSE", price: 13900, was: 16500, currency: "DZD",
    rating: 4.7, reviews: 387, stock: 64,
    specs: ["54 g", "4 K POLL", "60 H BATT"],
    badges: ["-15%"],
    img: IMG("1527814050087-3793815479db"),
  },
  {
    id: 12, brand: "Sonara", name: "Sonara Pro Wireless Headset — Studio Tuned",
    cat: "AUDIO", price: 28900, currency: "DZD",
    rating: 4.6, reviews: 156, stock: 19,
    specs: ["WIRELESS", "DUAL-DRIVER", "50 H"],
    badges: [],
    img: IMG("1599669454699-248893623440"),
  },
  // ===== Additional products =====
  {
    id: 13, brand: "Vortex", name: "Vortex Mirage RTX 5070 Ti 12GB",
    cat: "GPU", price: 89500, was: 99000, currency: "DZD",
    rating: 4.7, reviews: 92, stock: 18,
    specs: ["RTX 5070 Ti", "12 GB GDDR7", "2-FAN"],
    badges: ["-10%"],
    img: IMG("1587202372634-32705e3bf49c"),
  },
  {
    id: 14, brand: "Helios", name: "Helios Storm RTX 5070 OC 12GB",
    cat: "GPU", price: 74500, currency: "DZD",
    rating: 4.6, reviews: 167, stock: 22,
    specs: ["RTX 5070", "12 GB GDDR7", "OC"],
    badges: ["BEST SELLER"],
    img: IMG("1591488320449-011701bb6704"),
  },
  {
    id: 15, brand: "Apex", name: "Apex Radeon RX 8800 XT 16GB",
    cat: "GPU", price: 79000, was: 86000, currency: "DZD",
    rating: 4.5, reviews: 78, stock: 14,
    specs: ["RX 8800 XT", "16 GB", "3-FAN"],
    badges: ["-8%"],
    img: IMG("1587202372775-e229f172b9d7"),
  },
  {
    id: 16, brand: "Apex", name: "Ryzen 7 9700X — 8-Core Unlocked",
    cat: "CPU", price: 52000, was: 58000, currency: "DZD",
    rating: 4.8, reviews: 241, stock: 31,
    specs: ["AM5", "8C / 16T", "5.4 GHz"],
    badges: ["-10%"],
    img: IMG("1555617981-dac3880eac6e"),
  },
  {
    id: 17, brand: "Intel", name: "Core i9-15900K — 24-Core",
    cat: "CPU", price: 94000, currency: "DZD",
    rating: 4.7, reviews: 156, stock: 12,
    specs: ["LGA1851", "24C / 32T", "6.0 GHz"],
    badges: ["NEW"],
    img: IMG("1555617981-dac3880eac6e"),
  },
  {
    id: 18, brand: "Apex", name: "Ryzen 5 9600X — 6-Core",
    cat: "CPU", price: 32500, currency: "DZD",
    rating: 4.6, reviews: 304, stock: 48,
    specs: ["AM5", "6C / 12T", "5.2 GHz"],
    badges: [],
    img: IMG("1555617981-dac3880eac6e"),
  },
  {
    id: 19, brand: "Helios", name: "Helios B850 Pro WiFi 7",
    cat: "MOBO", price: 38000, currency: "DZD",
    rating: 4.5, reviews: 124, stock: 22,
    specs: ["AM5", "DDR5-6400", "Wi-Fi 7"],
    badges: [],
    img: IMG("1518770660439-4636190af475"),
  },
  {
    id: 20, brand: "Lumen", name: "Lumen Z890 Crystal Edge",
    cat: "MOBO", price: 62000, was: 69000, currency: "DZD",
    rating: 4.7, reviews: 87, stock: 11,
    specs: ["LGA1851", "DDR5-8000", "Thunderbolt"],
    badges: ["-10%"],
    img: IMG("1518770660439-4636190af475"),
  },
  {
    id: 21, brand: "Stratus", name: "Stratus 870 EVO NVMe Gen5 4TB",
    cat: "SSD", price: 48000, currency: "DZD",
    rating: 4.8, reviews: 198, stock: 26,
    specs: ["PCIe 5.0", "12 GB/s", "4 TB"],
    badges: ["NEW"],
    img: IMG("1597338687665-c5f2a0aafd8d"),
  },
  {
    id: 22, brand: "Volt", name: "Volt Stealth 850W ATX 3.1",
    cat: "PSU", price: 21500, was: 25000, currency: "DZD",
    rating: 4.7, reviews: 213, stock: 37,
    specs: ["850 W", "80+ GOLD", "ATX 3.1"],
    badges: ["-14%"],
    img: IMG("1587202372634-32705e3bf49c"),
  },
  {
    id: 23, brand: "Cipher", name: "Cipher Aurora Mesh — Onyx",
    cat: "CASE", price: 14500, currency: "DZD",
    rating: 4.6, reviews: 167, stock: 41,
    specs: ["MID-TOWER", "MESH", "3×140mm"],
    badges: [],
    img: IMG("1587202372775-e229f172b9d7"),
  },
  {
    id: 24, brand: "Cryo", name: "Cryo Air 240 Tower Cooler",
    cat: "COOLING", price: 12500, currency: "DZD",
    rating: 4.5, reviews: 312, stock: 58,
    specs: ["DUAL-TOWER", "AIR", "LGA1851"],
    badges: ["BEST SELLER"],
    img: IMG("1593640495253-23196b27a87f"),
  },
  {
    id: 25, brand: "Aether", name: "Aether 32\" 4K IPS 165Hz Monitor",
    cat: "MONITOR", price: 65000, was: 72000, currency: "DZD",
    rating: 4.7, reviews: 84, stock: 12,
    specs: ["IPS", "165 Hz", "4K UHD"],
    badges: ["-10%"],
    img: IMG("1547082299-de196ea013d6"),
  },
  {
    id: 26, brand: "Aether", name: "Aether 24\" Ultrawide 360Hz Esports",
    cat: "MONITOR", price: 42000, currency: "DZD",
    rating: 4.6, reviews: 121, stock: 18,
    specs: ["VA", "360 Hz", "1080p"],
    badges: ["NEW"],
    img: IMG("1547082299-de196ea013d6"),
  },
  {
    id: 27, brand: "Glyph", name: "Glyph Full-Size Hot-Swap Keyboard",
    cat: "KEYBOARD", price: 14500, currency: "DZD",
    rating: 4.7, reviews: 198, stock: 34,
    specs: ["FULL-SIZE", "HOT-SWAP", "RGB"],
    badges: [],
    img: IMG("1587829741301-dc798b83add3"),
  },
  {
    id: 28, brand: "Halo", name: "Halo Wired Esports Mouse — 8K",
    cat: "MOUSE", price: 8900, currency: "DZD",
    rating: 4.8, reviews: 412, stock: 76,
    specs: ["48 g", "8 K POLL", "WIRED"],
    badges: ["BEST SELLER"],
    img: IMG("1527814050087-3793815479db"),
  },
  {
    id: 29, brand: "Sonara", name: "Sonara Wired Pro Esports Headset",
    cat: "AUDIO", price: 11500, was: 14000, currency: "DZD",
    rating: 4.5, reviews: 234, stock: 28,
    specs: ["WIRED", "50 MM", "7.1"],
    badges: ["-18%"],
    img: IMG("1599669454699-248893623440"),
  },
  {
    id: 30, brand: "Lumen", name: "Lumen Fury DDR5-7200 64GB CL34",
    cat: "RAM", price: 36000, currency: "DZD",
    rating: 4.7, reviews: 89, stock: 17,
    specs: ["2x32 GB", "DDR5-7200", "CL34"],
    badges: ["NEW"],
    img: IMG("1591488320449-011701bb6704"),
  },
];

const PREBUILT = [
  {
    id: 101, brand: "House Build", name: "Nightfall Tier-S — Ryzen 9 + RTX 5080",
    cat: "GAMING PC", price: 359000, was: 399000, currency: "DZD",
    rating: 4.9, reviews: 64, stock: 6,
    specs: ["RYZEN 9 9950X", "RTX 5080", "64 GB"],
    badges: ["HOT", "READY-2-SHIP"], hot: true,
    img: IMG("1587202372634-32705e3bf49c"),
  },
  {
    id: 102, brand: "House Build", name: "Lavender Core — Ryzen 7 + RTX 5070 Ti",
    cat: "GAMING PC", price: 224500, was: 249000, currency: "DZD",
    rating: 4.8, reviews: 112, stock: 11,
    specs: ["RYZEN 7 9700X", "RTX 5070 Ti", "32 GB"],
    badges: ["-10%"],
    img: IMG("1593640408182-31c70c8268f5"),
  },
  {
    id: 103, brand: "House Build", name: "Eventide Mini — Ryzen 5 + RTX 5060",
    cat: "MINI PC", price: 132000, currency: "DZD",
    rating: 4.7, reviews: 86, stock: 14,
    specs: ["RYZEN 5 9600", "RTX 5060", "16 GB"],
    badges: ["NEW"],
    img: IMG("1587202372775-e229f172b9d7"),
  },
  {
    id: 104, brand: "House Build", name: "Halo Streamer — Dual-monitor ready",
    cat: "STREAMER", price: 189000, currency: "DZD",
    rating: 4.8, reviews: 41, stock: 8,
    specs: ["i7-14700K", "RTX 5070", "32 GB"],
    badges: ["STREAM-KIT"],
    img: IMG("1593640408182-31c70c8268f5"),
  },
];

const BRANDS = ["NVIDIA", "AMD", "ASUS", "MSI", "CORSAIR", "LOGITECH", "RAZER"];

window.CATEGORIES = CATEGORIES;
window.NAV_LINKS = NAV_LINKS;
window.PRODUCTS = PRODUCTS;
window.PREBUILT = PREBUILT;
window.BRANDS = BRANDS;
