Retail sales records for restricted products, electronic or written, must be kept for a minimum of three years to ensure compliance with regulatory and legal requirements. This retention period allows for audits, inspections, and tracking of transactions for accountability.