/* COMERCIAL · SIMULADOR — dados mock dos 44 equipamentos (subset realista + agrupados).
 * Cada equipamento tem: nome, marca, categoria, preço, consumo/m², volume típico, garantia. */

const EQUIPAMENTOS = [
  // ─── MIMAKI · Rolo UV ───
  { id: 'ujv100-160',  brand: 'Mimaki', cat: 'Rolo UV',        name: 'UJV100-160',     width: '1,6m', price: 22000,  inkPerM2: 0.12, typicalVol: 400,  warranty: 24 },
  { id: 'ujv200-160',  brand: 'Mimaki', cat: 'Rolo UV',        name: 'UJV200-160',     width: '1,6m', price: 34000,  inkPerM2: 0.10, typicalVol: 600,  warranty: 24, popular: true },
  { id: 'ucjv150-160', brand: 'Mimaki', cat: 'Rolo UV · PC',   name: 'UCJV150-160',    width: '1,6m', price: 28000,  inkPerM2: 0.11, typicalVol: 500,  warranty: 24 },
  { id: 'ucjv330-160', brand: 'Mimaki', cat: 'Rolo UV · PC',   name: 'UCJV330-160',    width: '1,6m', price: 42000,  inkPerM2: 0.09, typicalVol: 800,  warranty: 24, popular: true },
  // ─── MIMAKI · Eco-solvente ───
  { id: 'cjv150-160',  brand: 'Mimaki', cat: 'Eco-solvente',   name: 'CJV150-160',     width: '1,6m', price: 18500,  inkPerM2: 0.08, typicalVol: 500,  warranty: 24 },
  { id: 'cjv330-160',  brand: 'Mimaki', cat: 'Eco-solvente',   name: 'CJV330-160',     width: '1,6m', price: 27000,  inkPerM2: 0.07, typicalVol: 700,  warranty: 24, popular: true },
  { id: 'jv100-160',   brand: 'Mimaki', cat: 'Eco-solvente',   name: 'JV100-160',      width: '1,6m', price: 15500,  inkPerM2: 0.08, typicalVol: 400,  warranty: 24 },
  { id: 'jv330-160',   brand: 'Mimaki', cat: 'Eco-solvente',   name: 'JV330-160',      width: '1,6m', price: 24500,  inkPerM2: 0.07, typicalVol: 650,  warranty: 24 },
  // ─── MIMAKI · Têxtil ───
  { id: 'tx300p-1800', brand: 'Mimaki', cat: 'Têxtil directo', name: 'Tx300P-1800',    width: '1,8m', price: 38000,  inkPerM2: 0.22, typicalVol: 450,  warranty: 24 },
  { id: 'ts55-1800',   brand: 'Mimaki', cat: 'Sublimação',     name: 'Ts55-1800',      width: '1,8m', price: 28500,  inkPerM2: 0.18, typicalVol: 800,  warranty: 24 },
  { id: 'tiger-1800b', brand: 'Mimaki', cat: 'Têxtil pigmentada', name: 'Tiger-1800B', width: '1,8m', price: 68000,  inkPerM2: 0.25, typicalVol: 1200, warranty: 24 },
  // ─── MIMAKI · Flatbed ───
  { id: 'jfx200-2513', brand: 'Mimaki', cat: 'Flatbed UV',     name: 'JFX200-2513',    width: '2,5×1,3m', price: 74000, inkPerM2: 0.14, typicalVol: 300, warranty: 24 },
  { id: 'jfx550-2513', brand: 'Mimaki', cat: 'Flatbed UV',     name: 'JFX550-2513',    width: '2,5×1,3m', price: 145000, inkPerM2: 0.12, typicalVol: 600, warranty: 24 },
  { id: 'ujf7151',     brand: 'Mimaki', cat: 'Flatbed UV · Objectos', name: 'UJF-7151 plus II', width: '710×510', price: 62000, inkPerM2: 0.18, typicalVol: 150, warranty: 24 },
  { id: 'ujf3042',     brand: 'Mimaki', cat: 'Flatbed UV · Objectos', name: 'UJF-3042 MkII EX', width: '300×420', price: 34000, inkPerM2: 0.16, typicalVol: 100, warranty: 24 },
  // ─── MIMAKI · Corte ───
  { id: 'cg-160fx2',   brand: 'Mimaki', cat: 'Plotter corte',  name: 'CG-160 FXII Plus', width: '1,6m', price: 8500, inkPerM2: 0, typicalVol: 0, warranty: 12 },
  { id: 'cg-100srIII', brand: 'Mimaki', cat: 'Plotter corte',  name: 'CG-100 SRIII',   width: '1,0m', price: 5900, inkPerM2: 0, typicalVol: 0, warranty: 12 },
];

// Planos de aquisição
const PLANOS_SIM = [
  { id: 'pronto',    label: 'Pronto Pagamento', short: 'Compra' },
  { id: 'printplan', label: 'PrintPlan',         short: 'All-inclusive' },
  { id: 'digirent',  label: 'DigiRent',          short: 'Renting' },
];

// Clientes autocomplete (re-usa CARTEIRA se já carregado)
const SIM_CLIENTES_SUGESTOES = [
  { id: 'olimpo',      name: 'Olimpo Lda',          volumeSugerido: 800 },
  { id: 'grafica-norte', name: 'Gráfica Norte Lda', volumeSugerido: 600 },
  { id: 'tekgraphic',  name: 'TekGraphic SA',       volumeSugerido: 1200 },
  { id: 'bannermax',   name: 'BannerMax',           volumeSugerido: 750 },
  { id: 'grupo-siena', name: 'Grupo Siena',         volumeSugerido: 650 },
];

window.EQUIPAMENTOS = EQUIPAMENTOS;
window.PLANOS_SIM = PLANOS_SIM;
window.SIM_CLIENTES_SUGESTOES = SIM_CLIENTES_SUGESTOES;
