/* Lightweight inline icon set (stroke icons), Lucide-style. */
const Ic = (paths, opts={}) => (props) => (
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
       strokeWidth={opts.sw||1.8} strokeLinecap="round" strokeLinejoin="round"
       width={props.size||20} height={props.size||20} style={props.style} className={props.className}>
    {paths}
  </svg>
);

const Icons = {
  cart: Ic(<><circle cx="9" cy="20" r="1.4"/><circle cx="18" cy="20" r="1.4"/><path d="M2 3h2.2l2.3 12.4a1.5 1.5 0 0 0 1.5 1.2h8.4a1.5 1.5 0 0 0 1.5-1.2L20.5 7H6"/></>),
  box: Ic(<><path d="M21 8 12 3 3 8v8l9 5 9-5Z"/><path d="m3 8 9 5 9-5"/><path d="M12 13v8"/></>),
  users: Ic(<><circle cx="9" cy="8" r="3.2"/><path d="M2.5 20a6.5 6.5 0 0 1 13 0"/><path d="M16 5.2a3.2 3.2 0 0 1 0 6"/><path d="M17.5 14.4A6.5 6.5 0 0 1 21.5 20"/></>),
  truck: Ic(<><path d="M3 6h11v9H3z"/><path d="M14 9h4l3 3v3h-7z"/><circle cx="7" cy="18" r="1.6"/><circle cx="17.5" cy="18" r="1.6"/></>),
  wallet: Ic(<><path d="M3 7a2 2 0 0 1 2-2h12v4"/><path d="M3 7v10a2 2 0 0 0 2 2h14a1 1 0 0 0 1-1v-3"/><path d="M21 9v4h-5a2 2 0 0 1 0-4Z"/></>),
  chart: Ic(<><path d="M3 3v18h18"/><path d="M7 14l3-4 3 3 4-6"/></>),
  receipt: Ic(<><path d="M5 3v18l2-1.4L9 21l2-1.4L13 21l2-1.4L17 21l2-1.4V3l-2 1.4L15 3l-2 1.4L11 3 9 4.4 7 3Z"/><path d="M8 8h8M8 12h8"/></>),
  bolt: Ic(<><path d="M13 2 4 14h7l-1 8 9-12h-7z"/></>),
  barcode: Ic(<><path d="M4 5v14M7 5v14M10 5v14M14 5v14M17 5v14M20 5v14"/></>),
  shield: Ic(<><path d="M12 3 5 6v5c0 4.4 3 7.7 7 9 4-1.3 7-4.6 7-9V6Z"/><path d="m9 12 2 2 4-4"/></>),
  layers: Ic(<><path d="m12 3 9 5-9 5-9-5Z"/><path d="m3 13 9 5 9-5"/></>),
  check: Ic(<><path d="M20 6 9 17l-5-5"/></>),
  arrow: Ic(<><path d="M5 12h14M13 6l6 6-6 6"/></>),
  arrowUR: Ic(<><path d="M7 17 17 7M9 7h8v8"/></>),
  play: Ic(<><circle cx="12" cy="12" r="9"/><path d="m10 9 5 3-5 3Z"/></>),
  phone: Ic(<><path d="M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z"/></>),
  mail: Ic(<><rect x="3" y="5" width="18" height="14" rx="2"/><path d="m3 7 9 6 9-6"/></>),
  pin: Ic(<><path d="M12 21s7-5.6 7-11a7 7 0 1 0-14 0c0 5.4 7 11 7 11Z"/><circle cx="12" cy="10" r="2.4"/></>),
  clock: Ic(<><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></>),
  refresh: Ic(<><path d="M21 12a9 9 0 1 1-2.6-6.4"/><path d="M21 4v5h-5"/></>),
  menu: Ic(<><path d="M4 7h16M4 12h16M4 17h16"/></>),
  close: Ic(<><path d="M6 6 18 18M18 6 6 18"/></>),
  plus: Ic(<><path d="M12 5v14M5 12h14"/></>),
  minus: Ic(<><path d="M5 12h14"/></>),
  search: Ic(<><circle cx="11" cy="11" r="7"/><path d="m20 20-3.2-3.2"/></>),
  warn: Ic(<><path d="M12 3 2 20h20Z"/><path d="M12 10v4M12 17h.01"/></>),
  star: Ic(<><path d="m12 3 2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9 6.8 19.2l1-5.8L3.5 9.2l5.9-.9Z"/></>, {sw:1.4}),
  grid: Ic(<><rect x="3" y="3" width="7.5" height="7.5" rx="1.5"/><rect x="13.5" y="3" width="7.5" height="7.5" rx="1.5"/><rect x="3" y="13.5" width="7.5" height="7.5" rx="1.5"/><rect x="13.5" y="13.5" width="7.5" height="7.5" rx="1.5"/></>),
  settings: Ic(<><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.6 1.6 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.6 1.6 0 0 0-2.7 1.1V21a2 2 0 0 1-4 0v-.1A1.6 1.6 0 0 0 7 19.4a1.6 1.6 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1A1.6 1.6 0 0 0 2.6 14H2.5a2 2 0 0 1 0-4h.1A1.6 1.6 0 0 0 4 7.6l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1A1.6 1.6 0 0 0 10 4.6V4.5a2 2 0 0 1 4 0v.1a1.6 1.6 0 0 0 2.7 1.1l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.6 1.6 0 0 0 1.1 2.7h.1a2 2 0 0 1 0 4h-.1a1.6 1.6 0 0 0-1.1.9Z"/></>, {sw:1.5}),
  doc: Ic(<><path d="M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8Z"/><path d="M14 3v5h5M9 13h6M9 17h6"/></>),
  trend: Ic(<><path d="M3 17 9 11l4 4 8-8"/><path d="M15 7h6v6"/></>),
  globe: Ic(<><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3a14 14 0 0 1 0 18 14 14 0 0 1 0-18Z"/></>),
  headset: Ic(<><path d="M4 13v-1a8 8 0 0 1 16 0v1"/><path d="M4 13a2 2 0 0 1 2 2v2a2 2 0 0 1-4 0v-2a2 2 0 0 1 2-2Z"/><path d="M20 13a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1a3 3 0 0 1-3 3h-2"/></>),
  database: Ic(<><ellipse cx="12" cy="5" rx="8" ry="3"/><path d="M4 5v6c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 11v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6"/></>),
  lock: Ic(<><rect x="4" y="10" width="16" height="11" rx="2"/><path d="M8 10V7a4 4 0 0 1 8 0v3"/></>),
  rocket: Ic(<><path d="M5 15c-1 1-1.5 4-1.5 4s3-.5 4-1.5"/><path d="M14.5 4.5c3 0 5 2 5 5 0 4-5 8-5 8l-4-4s4-9 4-9Z"/><circle cx="14" cy="9.5" r="1.4"/></>),
};
window.Icons = Icons;
