const API = '/api/product-desc';
let currentProducts = [];
let currentPage = 0;
let currentDetail = null;
let currentDetailCode = null;
const PAGE_SIZE = 30;

// ═══ Utils ═══
function esc(str) {
  if (!str) return '';
  const d = document.createElement('div');
  d.textContent = String(str);
  return d.innerHTML;
}

