// Mirrors `resources/images/product-thumb-placeholder.svg` (shipped alongside source).
const PRODUCT_THUMB_PLACEHOLDER_SVG = `<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" role="img" aria-hidden="true"><defs><linearGradient id="pdfdraft-ph-bg" x1="0" y1="0" x2="48" y2="48"><stop offset="0%" stop-color="#f8fafc"/><stop offset="100%" stop-color="#e2e8f0"/></linearGradient></defs><rect width="48" height="48" rx="4" fill="url(#pdfdraft-ph-bg)"/><rect x="10" y="12" width="28" height="22" rx="2" fill="#f1f5f9" stroke="#94a3b8" stroke-width="1.25"/><path d="M14 30l5.5-8 4.5 6 4-7 10.5 9H14z" fill="#cbd5e1" opacity="0.95"/><path d="M14 30l5.5-8 2.8 3.5" fill="none" stroke="#94a3b8" stroke-width="0.9" stroke-linecap="round" opacity="0.6"/><circle cx="29" cy="17" r="2.25" fill="#e2e8f0" stroke="#94a3b8" stroke-width="0.75"/></svg>`;

/**
 * 48×48 product thumbnail fallback: framed “no image” motif (local SVG, no network).
 * Safe for editor previews and PDF HTML (`<img src="…">`).
 */
export const PRODUCT_THUMB_PLACEHOLDER_DATA_URL = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(PRODUCT_THUMB_PLACEHOLDER_SVG)}`;
