/* Me2You - Sample data for 20+ listings, orders, users, driver jobs */

const CATEGORIES = [
 { slug:'all', name:'All', icon:'layout-grid' },
 { slug:'food', name:'Food & Meals', icon:'apple' },
 { slug:'crafts', name:'Arts & Crafts', icon:'star' },
 { slug:'resellers', name:'Resellers (Tupperware, Avon)', icon:'package' },
 { slug:'electronics', name:'Electronics', icon:'monitor' },
 { slug:'clothing', name:'Clothing', icon:'shirt' },
 { slug:'home-garden', name:'Home & Garden', icon:'sofa' },
 { slug:'household', name:'Household', icon:'home' },
 { slug:'gifts', name:'Gifts', icon:'heart' },
 { slug:'books', name:'Books', icon:'book-open' },
 { slug:'tools', name:'Tools', icon:'wrench' },
 { slug:'kids', name:'Kids & Baby', icon:'baby' },
 { slug:'sports', name:'Sports', icon:'dumbbell' },
];

const PRODUCTS = [
 { id:1, title:'Hisense 32" Smart TV', price:1850, condition:'Like new', location:'Soweto', seller:'Sipho M.', cat:'electronics', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#FFF6E9)', rating:4.8, reviews:23, laybye:true },
 { id:2, title:'School blazer, size 14', price:220, condition:'Good', location:'Pretoria', seller:'Lerato N.', cat:'clothing', emoji:'', bg:'linear-gradient(135deg,#ECE6F2,#FAF6EF)', rating:4.5, reviews:8 },
 { id:3, title:'Cast-iron pot, 4L', price:380, condition:'New', location:'Khayelitsha', seller:'Mama K.', cat:'home-garden', emoji:'', bg:'linear-gradient(135deg,#DDF1E4,#FAF6EF)', rating:4.9, reviews:31, sellerOnVacation:true, vacationUntil:'3 Jun 2026' },
 { id:4, title:'PS4 Slim + 2 controllers', price:2600, condition:'Good', location:'Sandton', seller:'Tumi B.', cat:'electronics', emoji:'', bg:'linear-gradient(135deg,#DCEAF8,#FFF6E9)', rating:4.6, reviews:15, laybye:true, auction:{ currentBid:2350, bids:7, topBidder:'Tumi B.', minIncrement:50, endsInMs: 2*3600*1000 + 14*60*1000 + 9*1000 } },
 { id:5, title:'Wedding shoes, size 6', price:180, condition:'Like new', location:'Mamelodi', seller:'Naledi S.', cat:'clothing', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#ECE6F2)', rating:4.7, reviews:5 },
 { id:6, title:'Drill set, cordless', price:950, condition:'Good', location:'Durban', seller:'Bongani T.', cat:'tools', emoji:'', bg:'linear-gradient(135deg,#FFF6E9,#FFE7C8)', rating:4.4, reviews:12 },
 { id:7, title:'Maths textbooks, gr 11', price:120, condition:'Fair', location:'Polokwane', seller:'Aya M.', cat:'books', emoji:'', bg:'linear-gradient(135deg,#ECE6F2,#FAF6EF)', rating:4.3, reviews:7 },
 { id:8, title:'Coffee table, wooden', price:450, condition:'Good', location:'Cape Town', seller:'Pieter V.', cat:'home-garden', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#FAF6EF)', rating:4.8, reviews:19 },
 { id:9, title:'Baby stroller, foldable', price:750, condition:'Like new', location:'Bloemfontein',seller:'Grace D.', cat:'kids', emoji:'', bg:'linear-gradient(135deg,#DDF1E4,#ECE6F2)', rating:4.9, reviews:14 },
 { id:10, title:'Samsung Galaxy A14', price:1400, condition:'Good', location:'Johannesburg',seller:'Mandla K.', cat:'electronics', emoji:'', bg:'linear-gradient(135deg,#DCEAF8,#FAF6EF)', rating:4.5, reviews:27 },
 { id:11, title:'Running shoes, Nike sz 10', price:320, condition:'Good', location:'Germiston', seller:'Thabo R.', cat:'sports', emoji:'', bg:'linear-gradient(135deg,#DDF1E4,#FFF6E9)', rating:4.6, reviews:9 },
 { id:12, title:'Blender, 1.5L Kenwood', price:290, condition:'New', location:'East London', seller:'Zintle M.', cat:'home-garden', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#DDF1E4)', rating:4.7, reviews:16 },
 { id:13, title:'Leather jacket, medium', price:480, condition:'Like new', location:'Stellenbosch',seller:'Jan D.', cat:'clothing', emoji:'', bg:'linear-gradient(135deg,#ECE6F2,#DCEAF8)', rating:4.4, reviews:3 },
 { id:14, title:'Cookbook - SA braai recipes', price:85, condition:'New', location:'Centurion', seller:'Nomsa T.', cat:'books', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#ECE6F2)', rating:4.8, reviews:22 },
 { id:15, title:'Camping tent, 4-person', price:680, condition:'Good', location:'Port Elizabeth',seller:'David L.', cat:'sports', emoji:'', bg:'linear-gradient(135deg,#DDF1E4,#FAF6EF)', rating:4.5, reviews:11 },
 { id:16, title:'Spaza snack box, assorted', price:95, condition:'New', location:'Alexandra', seller:'MaZulu S.', cat:'food', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#FFF6E9)', rating:4.9, reviews:42 },
 { id:17, title:'Bicycle, 26" mountain', price:1200, condition:'Fair', location:'Rustenburg', seller:'Chris N.', cat:'sports', emoji:'', bg:'linear-gradient(135deg,#DCEAF8,#DDF1E4)', rating:4.2, reviews:6 },
 { id:18, title:'Microwave, LG 30L', price:520, condition:'Good', location:'Nelspruit', seller:'Fatima A.', cat:'home-garden', emoji:'', bg:'linear-gradient(135deg,#ECE6F2,#FFF6E9)', rating:4.6, reviews:18 },
 { id:19, title:'Toddler clothes bundle', price:150, condition:'Good', location:'Soweto', seller:'Lindiwe P.', cat:'kids', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#DDF1E4)', rating:4.7, reviews:25 },
 { id:20, title:'Guitar, acoustic Yamaha', price:1350, condition:'Like new', location:'Pretoria', seller:'Kagiso M.', cat:'electronics', emoji:'', bg:'linear-gradient(135deg,#ECE6F2,#DCEAF8)', rating:4.8, reviews:10 },
 { id:21, title:'Fresh vetkoek, dozen', price:60, condition:'New', location:'Tembisa', seller:'Gogo B.', cat:'food', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#FFF6E9)', rating:5.0, reviews:38 },
 { id:22, title:'Angle grinder, Bosch', price:780, condition:'Good', location:'Midrand', seller:'Hennie V.', cat:'tools', emoji:'', bg:'linear-gradient(135deg,#DCEAF8,#ECE6F2)', rating:4.3, reviews:4 },
 { id:23, title:'Baby cot with mattress', price:900, condition:'Like new', location:'Roodepoort', seller:'Palesa M.', cat:'kids', emoji:'', bg:'linear-gradient(135deg,#DDF1E4,#FFE7C8)', rating:4.9, reviews:13 },
 { id:24, title:'Laptop bag, 15.6" padded', price:175, condition:'New', location:'Kempton Park',seller:'Sizwe D.', cat:'electronics', emoji:'', bg:'linear-gradient(135deg,#ECE6F2,#FAF6EF)', rating:4.5, reviews:20 },
 { id:25, title:'Tupperware reseller bundle - 12pc set', price:850, condition:'New', location:'Pretoria', seller:'Ouma T.', cat:'resellers', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#FFF6E9)', rating:4.9, reviews:34 },
 { id:26, title:'Avon Skin So Soft gift set', price:280, condition:'New', location:'Soweto', seller:'Lindiwe P.', cat:'resellers', emoji:'', bg:'linear-gradient(135deg,#ECE6F2,#FFE7C8)', rating:4.8, reviews:52 },
 { id:27, title:'Herbalife shake mix, vanilla 30 serv', price:520, condition:'New', location:'Sandton', seller:'Tumi B.', cat:'resellers', emoji:'', bg:'linear-gradient(135deg,#DDF1E4,#FFE7C8)', rating:4.6, reviews:18 },
 { id:28, title:'Beaded necklace, handmade Zulu design', price:180, condition:'New', location:'Durban', seller:'Bongiwe T.', cat:'crafts', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#ECE6F2)', rating:5.0, reviews:27 },
 { id:29, title:'Hand-knitted baby blanket', price:320, condition:'New', location:'Bloemfontein', seller:'Grace D.', cat:'crafts', emoji:'', bg:'linear-gradient(135deg,#ECE6F2,#FFF6E9)', rating:4.9, reviews:14 },
 { id:30, title:'Custom wood serving board', price:240, condition:'New', location:'Stellenbosch', seller:'Jan D.', cat:'crafts', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#DDF1E4)', rating:4.7, reviews:9 },
 { id:31, title:'Sunday lunch chicken curry, family-size', price:180, condition:'New', location:'Lenasia', seller:'Auntie M.', cat:'food', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#FFF6E9)', rating:4.9, reviews:67 },
 { id:32, title:'Homemade rusks, box of 24', price:75, condition:'New', location:'Bloemfontein', seller:'Tannie K.', cat:'food', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#FAF6EF)', rating:5.0, reviews:89 },
 { id:33, title:'Birthday gift hamper, R 350 budget', price:350, condition:'New', location:'Johannesburg', seller:'Chez Gifts', cat:'gifts', emoji:'', bg:'linear-gradient(135deg,#ECE6F2,#FFE7C8)', rating:4.8, reviews:23 },
 { id:34, title:'Personalised mug, customised name', price:120, condition:'New', location:'Pretoria', seller:'Print Studio', cat:'gifts', emoji:'', bg:'linear-gradient(135deg,#DCEAF8,#FFE7C8)', rating:4.7, reviews:41 },
 { id:35, title:'Bedding set, queen size, 4pc', price:420, condition:'New', location:'Cape Town', seller:'Linen Lane', cat:'household', emoji:'', bg:'linear-gradient(135deg,#DDF1E4,#FAF6EF)', rating:4.6, reviews:15 },
 { id:36, title:'Toaster, 2-slice Russell Hobbs', price:320, condition:'Good', location:'Durban', seller:'Mama K.', cat:'household', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#ECE6F2)', rating:4.5, reviews:11 },
];

const SAMPLE_ORDERS = [
 { id:'M2Y-2026-00248', product: PRODUCTS[0], status:'paid', buyer:'Nomsa M.', date:'28 Apr 2026', total:1910 },
 { id:'M2Y-2026-00245', product: PRODUCTS[2], status:'dispatched', buyer:'Thandi K.', date:'26 Apr 2026', total:440 },
 { id:'M2Y-2026-00241', product: PRODUCTS[9], status:'completed', buyer:'James R.', date:'22 Apr 2026', total:1460 },
 { id:'M2Y-2026-00238', product: PRODUCTS[4], status:'received', buyer:'Siya N.', date:'20 Apr 2026', total:240 },
 { id:'M2Y-2026-00232', product: PRODUCTS[15],status:'disputed', buyer:'Mbali D.', date:'18 Apr 2026', total:155 },
];

const ADMIN_USERS = [
 { id:1, name:'Marco Pretorius', email:'team@m2y.online', role:'admin', status:'active', joined:'15 Jan 2026', listings:0, orders:0 },
 { id:2, name:'Sipho Mthembu', email:'sipho@email.co.za', role:'seller', status:'active', joined:'2 Feb 2026', listings:3, orders:12 },
 { id:3, name:'Lerato Nkosi', email:'lerato@email.co.za', role:'seller', status:'active', joined:'10 Feb 2026', listings:2, orders:5 },
 { id:4, name:'Nomsa Mthembu', email:'nomsa@email.co.za', role:'buyer', status:'active', joined:'18 Feb 2026', listings:0, orders:8 },
 { id:5, name:'Thandi Khumalo', email:'thandi@email.co.za', role:'buyer', status:'active', joined:'25 Feb 2026', listings:0, orders:3 },
 { id:6, name:'Bongani Tshabalala',email:'bongani@email.co.za',role:'seller', status:'suspended',joined:'1 Mar 2026', listings:1, orders:0 },
 { id:7, name:'Grace Dlamini', email:'grace@email.co.za', role:'seller', status:'active', joined:'5 Mar 2026', listings:4, orders:18 },
 { id:8, name:'Pieter van Wyk', email:'pieter@email.co.za', role:'buyer', status:'active', joined:'12 Mar 2026', listings:0, orders:6 },
];

const DRIVER_JOBS = [
 { id:'DRV-0041', pickup:'42 Vilakazi St, Soweto', dropoff:'PEP Maponya Mall', item:'Hisense 32" TV', pay:45, distance:'3.2 km', status:'available', time:'10 min' },
 { id:'DRV-0042', pickup:'12 Church St, Pretoria', dropoff:'Pargo Menlyn Park', item:'School blazer', pay:30, distance:'5.1 km', status:'available', time:'15 min' },
 { id:'DRV-0043', pickup:'8 Main Rd, Khayelitsha', dropoff:'Buyer address, Mitchells Plain', item:'Cast-iron pot', pay:55, distance:'8.4 km', status:'in_progress', time:'22 min' },
 { id:'DRV-0044', pickup:'Sandton City pickup', dropoff:'15 Oxford Rd, Rosebank', item:'PS4 Slim bundle', pay:35, distance:'2.8 km', status:'available', time:'8 min' },
 { id:'DRV-0045', pickup:'Durban beachfront', dropoff:'Gateway Theatre pickup', item:'Drill set', pay:60, distance:'12 km', status:'completed', time:'30 min' },
];

/* Listings the signed-in buyer owns, used by the swap-offer flow */
const BUYER_LISTINGS = [
 { id:101, title:'Hand blender, 1.5L', price:320, condition:'Good', location:'Soweto', emoji:'', bg:'linear-gradient(135deg,#FFE7C8,#DDF1E4)' },
 { id:102, title:'School books, gr 11', price:180, condition:'Good', location:'Soweto', emoji:'', bg:'linear-gradient(135deg,#ECE6F2,#FAF6EF)' },
 { id:103, title:'Kettle, 1.7L', price:250, condition:'Like new', location:'Soweto', emoji:'', bg:'linear-gradient(135deg,#DCEAF8,#FFF6E9)' },
 { id:104, title:'Two-plate stove', price:400, condition:'Good', location:'Soweto', emoji:'', bg:'linear-gradient(135deg,#DDF1E4,#FFE7C8)' },
];

/* A simulated price-drop event, surfaced in the notifications list */
const PRICE_DROPS = [
 { id:'pd1', productId:11, title:'Running shoes, Nike sz 10', wasPrice:349, nowPrice:299, time:'2 days ago' },
];

window.CATEGORIES = CATEGORIES;
window.PRODUCTS = PRODUCTS;
window.BUYER_LISTINGS = BUYER_LISTINGS;
window.PRICE_DROPS = PRICE_DROPS;
window.SAMPLE_ORDERS = SAMPLE_ORDERS;
window.ADMIN_USERS = ADMIN_USERS;
window.DRIVER_JOBS = DRIVER_JOBS;
