"""Product-type knowledge: business equipment, audio/gadgets, cables/networking, accessories, CCTV."""

TYPES_C = [
    # ---------------- Business equipment ----------------
    {
        "key": "money_counter", "cats": ["business-equipment"], "match": lambda n: "money count" in n or "bill counter" in n,
        "label": "money counting machine",
        "what": ("A money counting machine counts banknotes quickly and accurately, saving hours of manual counting and "
                 "reducing costly errors. Models with counterfeit detection check UV, magnetic (MG/MT) and size "
                 "features to flag suspect notes. Value counters and multi-currency models add up mixed "
                 "denominations and handle currencies such as KES, USD and EUR."),
        "features": ["Fast note counting (typically 1,000+ notes per minute)", "Counterfeit detection (UV/MG/IR) on detector models",
                     "Batch counting for bundling", "Add mode for running totals", "Multi-currency value counting on advanced models"],
        "uses": ["Banks, SACCOs and microfinance", "Supermarkets and petrol stations", "Forex bureaus and M-Pesa agents",
                 "Churches, schools and hospitals handling cash"],
        "choose": ["<strong>Counterfeit detection:</strong> essential for businesses that accept large notes.",
                   "<strong>Value counting:</strong> mixed-denomination value counters total a bundle without sorting.",
                   "<strong>Portable models</strong> suit small shops and agents; desktop models suit banks and cashiers."],
        "setup": ["Place on a stable surface.", "Select mode (count, batch, add, value).", "Load notes flat and aligned in the hopper."],
        "care": ["Clean dust from sensors and rollers weekly with a soft brush.", "Don't feed wet, taped or badly damaged notes.",
                 "Update currency firmware when new notes are issued."],
        "compat": "Supports Kenyan shilling notes; multi-currency models support major foreign currencies.",
        "faqs": [("Can it detect fake notes?", "Models with counterfeit detection check UV, magnetic and size features and alert on suspect notes."),
                 ("Does it count new-generation Kenyan notes?", "Yes. Keep the firmware updated when the Central Bank issues new note series.")],
    },
    {
        "key": "queue", "cats": ["business-equipment"], "match": lambda n: any(k in n for k in ["queue", "qms", "calling pad", "ticket machine", "ticket dispenser"]),
        "label": "queue management system component",
        "what": ("A queue management system (QMS) replaces physical lines with numbered tickets. Customers take a "
                 "ticket, sit and wait, and are called to the next free counter by number on an LED or TV display "
                 "and by voice announcement. It reduces crowding and disputes and gives managers data on waiting "
                 "and service times."),
        "features": ["Ticket dispenser or self-service kiosk", "Counter calling pads for staff", "LED counter displays and main display",
                     "Voice announcements", "Service-time reports on full systems"],
        "uses": ["Hospitals and clinics", "Banks, SACCOs and insurance offices", "Government service centres (Huduma-style)", "Telecom and utility customer centres"],
        "choose": ["Count your counters and services.", "Choose a kiosk for multiple services, or a simple ticket machine for one queue.",
                   "Plan displays for both counters and the waiting area."],
        "setup": ["Install the kiosk/dispenser at the entrance.", "Mount displays above counters and in the waiting area.",
                  "Configure services and counters in the software and train staff."],
        "care": ["Keep ticket paper stocked.", "Back up configuration and reports."],
        "compat": "Components work together as a system; we supply, install and configure full QMS solutions.",
        "faqs": [("Do you install complete queue systems?", "Yes. We supply kiosks, calling pads, displays and software, and install them on site.")],
    },
    {
        "key": "label_maker", "cats": ["business-equipment"], "match": lambda n: "label maker" in n or "label printer" in n,
        "label": "label maker",
        "what": ("A handheld label maker prints neat, durable labels for files, shelves, cables, equipment and storage. "
                 "Industrial models print tough laminated labels for electrical, network and asset labelling."),
        "features": ["Portable, battery or rechargeable", "Built-in keyboard and display", "Durable laminated tapes on industrial models"],
        "uses": ["Office filing and shelves", "Network and electrical cable labelling", "Asset and equipment labelling", "Home organisation"],
        "choose": ["Choose tape widths you need.", "Industrial models for cables and harsh environments."],
        "setup": ["Insert batteries and tape cassette.", "Type text, choose size and print."],
        "care": ["Use compatible tape cassettes.", "Remove batteries if storing for long periods."],
        "compat": "Uses the manufacturer's compatible tape cassettes.",
        "faqs": [("Are labels waterproof?", "Laminated tapes resist water and fading, making them suitable for cables and equipment.")],
    },
    {
        "key": "price_labeler", "cats": ["business-equipment"], "match": lambda n: "labeler" in n or "price tagging" in n,
        "label": "price labeler",
        "what": ("Price guns (labelers) print and stick price labels in one squeeze, while tagging guns attach price "
                 "tags to clothing with plastic fasteners. Both speed up pricing new stock in shops."),
        "features": ["Fast one-handed pricing", "Adjustable digits/characters", "Uses standard label or fastener refills"],
        "uses": ["Supermarkets and minimarts", "Clothing and fashion stores", "Hardware and stationery shops"],
        "choose": ["Choose the number of digits/lines you need.", "Tagging guns for clothing; label guns for packaged goods."],
        "setup": ["Load labels or fasteners.", "Set the price wheels and test on a scrap label."],
        "care": ["Clean the ink roller and replace as needed.", "Use matching label refills."],
        "compat": "Uses standard price label rolls (we stock 22×12 mm labels) or tag fasteners.",
        "faqs": [("Which labels fit this price gun?", "Standard single-line 22×12 mm price labels fit most single-line labelers.")],
    },
    {
        "key": "card_printer", "cats": ["business-equipment"], "match": lambda n: "card printer" in n,
        "label": "ID card printer",
        "what": ("An ID card printer prints professional plastic cards in-house: staff and student IDs, membership and "
                 "loyalty cards, access cards and event badges, in full colour with photos, logos and barcodes."),
        "features": ["Full-colour dye-sublimation printing on PVC cards", "Photos, logos, barcodes and QR codes",
                     "Optional magnetic stripe or smart-card encoding"],
        "uses": ["Schools and universities", "Companies and hospitals", "SACCOs, gyms and clubs", "Events and conferences"],
        "choose": ["Single-sided or dual-sided printing.", "Encoding options for access or loyalty cards."],
        "setup": ["Load the ribbon and blank cards.", "Install the driver and card design software.", "Design a template and print."],
        "care": ["Clean with the cleaning kit regularly.", "Store cards and ribbons dust-free."],
        "compat": "Uses standard CR80 PVC cards and the manufacturer's ribbons.",
        "faqs": [("Can I print student IDs with photos?", "Yes, in full colour, including photos, logos and barcodes.")],
    },
    {
        "key": "batch_coder", "cats": ["business-equipment"], "match": lambda n: "expiry" in n or "batch coding" in n,
        "label": "batch coding printer",
        "what": ("A batch coding printer prints expiry dates, manufacturing dates, batch numbers and barcodes directly "
                 "onto packaging, which is required for food, beverage, cosmetic and pharmaceutical products sold in "
                 "Kenya."),
        "features": ["Prints dates, batch numbers, text, logos and barcodes", "Works on cartons, plastic, glass and metal with suitable ink",
                     "Handheld or inline use"],
        "uses": ["Food and beverage producers", "Bakeries and dairies", "Cosmetics and chemical manufacturers", "Pharmaceutical packers"],
        "choose": ["Choose ink for your packaging surface.", "Handheld for low volume; inline for production lines."],
        "setup": ["Insert the ink cartridge.", "Program the date/batch message.", "Print a test and adjust distance and speed."],
        "care": ["Cap the cartridge when not in use.", "Clean the nozzle plate regularly."],
        "compat": "Uses compatible solvent or water-based ink cartridges (see our POS supplies range).",
        "faqs": [("Does it print automatic dates?", "Yes. It can print the current date, expiry offsets and running batch numbers.")],
    },
    {
        "key": "projector", "cats": ["business-equipment"], "match": lambda n: "projector" in n,
        "label": "projector",
        "what": ("A projector turns any wall or screen into a large display for presentations, training, classrooms and "
                 "events. 3LCD projectors produce bright, colourful images, and 3,000 lumens is bright enough for "
                 "rooms with some ambient light."),
        "features": ["Large-screen projection", "HDMI input for laptops and media players", "Adjustable focus and keystone correction"],
        "uses": ["Boardrooms and training rooms", "Classrooms and churches", "Events and home cinema"],
        "choose": ["Brightness (lumens) for your room's lighting.", "Resolution (WXGA/Full HD) for detail.", "Inputs to match your laptops."],
        "setup": ["Place the projector and connect HDMI.", "Adjust zoom, focus and keystone for a sharp rectangle."],
        "care": ["Keep vents clear and dust-free.", "Let it cool before moving."],
        "compat": "Connects to laptops via HDMI; use our USB-C or VGA adapters for other ports.",
        "faqs": [("Is 3,000 lumens bright enough?", "For most meeting rooms and classrooms with curtains or moderate light, yes.")],
    },
    {
        "key": "office_tool", "cats": ["business-equipment", "cables-networking"], "match": lambda n: any(k in n for k in ["laminating", "tally counter", "crimping"]),
        "label": "office tool",
        "what": ("Practical tools for offices, shops and technicians: laminators protect documents and certificates, "
                 "tally counters count visitors or stock, and crimping tools terminate network cables with RJ45 "
                 "connectors."),
        "features": ["Simple, durable operation", "Designed for everyday business use"],
        "uses": ["Offices, schools and print shops", "Shops, events and churches (counters)", "IT technicians and installers (crimpers)"],
        "choose": ["Choose the size or capacity you need (e.g. A3 vs A4 laminator)."],
        "setup": ["Follow the included instructions; warm-up is needed for laminators."],
        "care": ["Keep clean and store safely."],
        "compat": "Laminators take standard pouches; crimpers fit standard RJ45 connectors.",
        "faqs": [("What can I laminate with an A3 laminator?", "Any document up to A3 size: certificates, menus, signs, IDs and posters.")],
    },
    # ---------------- Audio & gadgets ----------------
    {
        "key": "speaker", "cats": ["audio-gadgets"], "match": lambda n: "speaker" in n or "subwoofer" in n,
        "label": "Bluetooth speaker",
        "what": ("A wireless Bluetooth speaker plays music from your phone, laptop or TV without cables. Party "
                 "speakers add deep bass, LED lights and karaoke microphone inputs, and rechargeable batteries let "
                 "you take the sound outdoors."),
        "features": ["Bluetooth wireless connection", "Rechargeable battery", "Extra inputs on many models (USB, memory card, AUX, mic)",
                     "LED lighting effects on party models"],
        "uses": ["Home and party music", "Outdoor events and picnics", "Karaoke", "Shops and salons"],
        "choose": ["Power (watts) for room size.", "Battery capacity for outdoor use.", "Karaoke/mic support if needed."],
        "setup": ["Charge fully.", "Turn on and pair from your phone's Bluetooth settings.", "Adjust volume on both phone and speaker."],
        "care": ["Avoid water unless the speaker is water-resistant.", "Charge regularly to protect the battery."],
        "compat": "Works with any Bluetooth phone, tablet, laptop or TV.",
        "faqs": [("How do I pair it?", "Turn it on, open Bluetooth on your phone and select the speaker's name.")],
    },
    {
        "key": "earphones", "cats": ["audio-gadgets"], "match": lambda n: any(k in n for k in ["earbud", "earphone", "headphone"]),
        "label": "wireless earphones",
        "what": ("Wireless earphones connect to your phone or laptop by Bluetooth for calls, music and online "
                 "meetings. True-wireless earbuds charge in a pocket case, neckband models rest around your neck "
                 "for all-day use, and open-ear or bone-conduction designs keep you aware of traffic and "
                 "surroundings."),
        "features": ["Bluetooth wireless connection", "Built-in microphone for calls", "Rechargeable battery", "Noise reduction on ENC models"],
        "uses": ["Calls and online meetings", "Music and podcasts", "Workouts and commuting"],
        "choose": ["Earbuds for portability; neckband for long battery and secure fit; open-ear for awareness while walking or running."],
        "setup": ["Charge fully.", "Put in pairing mode and select them in your phone's Bluetooth settings."],
        "care": ["Keep dry and clean the ear tips.", "Store earbuds in their case."],
        "compat": "Works with Android, iPhone, laptops and any Bluetooth device.",
        "faqs": [("Can I use them for Zoom calls?", "Yes. They have a built-in microphone and work with laptops and phones over Bluetooth.")],
    },
    {
        "key": "tablet", "cats": ["audio-gadgets"], "match": lambda n: "tablet" in n,
        "label": "Android tablet",
        "what": ("An Android tablet gives you a large touchscreen for video, reading, online learning and browsing at a "
                 "lower price than a laptop. Models with SIM support connect to mobile data anywhere, without Wi-Fi."),
        "features": ["Large touchscreen", "Android with Google Play apps", "SIM card slot for calls and mobile data on cellular models", "Front and rear cameras"],
        "uses": ["Children's learning and entertainment", "Online classes and reading", "Video streaming", "Field data collection"],
        "choose": ["Screen size, storage and RAM for your use.", "SIM support if you need data away from Wi-Fi.", "Check the brand's update and warranty support."],
        "setup": ["Charge fully.", "Sign in to a Google account and install apps from Play Store.", "Set up parental controls for children."],
        "care": ["Use a case and screen protector.", "Avoid charging overnight on cheap chargers."],
        "compat": "Runs Android apps from Google Play.",
        "faqs": [("Does it take a SIM card?", "Models listed with SIM or 5G/4G support take a SIM card for calls and mobile data.")],
    },
    {
        "key": "tv_stick", "cats": ["audio-gadgets"], "match": lambda n: "tv stick" in n or "tv box" in n,
        "label": "smart TV streaming device",
        "what": ("A streaming stick or box turns any TV with an HDMI port into a smart TV. Connect it to Wi-Fi and you "
                 "get YouTube, Netflix, Showmax, Prime Video and thousands of Google Play apps, with a remote that "
                 "supports Google Assistant voice search on most models."),
        "features": ["Google TV / Android TV interface", "Plugs into HDMI", "Remote with voice search on most models", "Chromecast built-in for casting from phones"],
        "uses": ["Upgrading an older TV to smart", "Hotel rooms and Airbnbs", "Streaming in waiting areas"],
        "choose": ["Choose 4K models for 4K TVs.", "A stable Wi-Fi connection is essential."],
        "setup": ["Plug into the TV's HDMI and power.", "Connect to Wi-Fi and sign in with a Google account.", "Install your streaming apps."],
        "care": ["Keep the device ventilated behind the TV.", "Install updates when prompted."],
        "compat": "Works with any TV that has an HDMI port.",
        "faqs": [("Will it work with my old TV?", "Yes, if the TV has an HDMI port.")],
    },
    {
        "key": "creator", "cats": ["audio-gadgets"], "match": lambda n: any(k in n for k in ["controller", "dualshock", "dualsense", "vlogging", "lavalier", "fan with", "turbine fan"]),
        "label": "gadget",
        "what": ("Gadgets for gamers, content creators and everyday convenience: wireless controllers for PlayStation and "
                 "PC gaming, compact vlogging cameras and wireless lapel microphones for YouTube and TikTok creators, "
                 "and rechargeable mini fans for Nairobi's hot afternoons."),
        "features": ["Wireless connectivity", "Rechargeable batteries", "Compact and portable"],
        "uses": ["Gaming", "Content creation and interviews", "Travel and daily convenience"],
        "choose": ["Check compatibility with your console, phone or camera.", "Battery life for your typical session length."],
        "setup": ["Charge fully and pair or connect as described in the manual."],
        "care": ["Charge regularly and store in a dry place."],
        "compat": "Ask us to confirm compatibility with your specific console, phone or camera.",
        "faqs": [("Does it come charged?", "Partially. Charge fully before first use for best battery life.")],
    },
    # ---------------- Cables & networking ----------------
    {
        "key": "video_cable", "cats": ["cables-networking"], "match": lambda n: ("hdmi" in n or "vga" in n or "display" in n or "dvi" in n),
        "label": "video cable or adapter",
        "what": ("Video cables and adapters connect laptops and PCs to monitors, TVs and projectors. HDMI carries "
                 "high-definition video and audio on one cable; VGA is the older analogue standard still found on "
                 "many projectors and office monitors; DisplayPort is common on business PCs. Converters bridge the "
                 "gap when your computer and screen use different ports."),
        "features": ["Plug-and-play: no drivers needed", "Shielded cables for a stable picture", "Range of lengths for desks, boardrooms and installations"],
        "uses": ["Connecting a laptop to a projector or TV", "Adding a second monitor", "Running video across a room or hall", "Connecting CCTV DVRs to screens"],
        "choose": ["<strong>Check both ports</strong>: the computer's output and the screen's input.",
                   "<strong>Direction matters for converters:</strong> HDMI-to-VGA converts from an HDMI computer to a VGA screen, not the other way round.",
                   "<strong>Length:</strong> measure, then add a little slack; for HDMI over 15 m, choose a quality cable.",
                   "<strong>Audio:</strong> VGA carries no sound; choose a converter 'with audio' if needed."],
        "setup": ["Connect the cable or adapter between computer and screen.", "Select the right input on the screen.", "On Windows press Win + P to choose Duplicate or Extend."],
        "care": ["Don't bend cables sharply near connectors.", "Unplug by the connector, not the cable."],
        "compat": "Works with Windows laptops, MacBooks (with the right port), projectors, TVs, monitors and DVRs.",
        "faqs": [("Will this work with my projector?", "Check the projector's input (HDMI or VGA) and your laptop's output, then choose the matching cable or converter."),
                 ("Does HDMI to VGA carry sound?", "Only converters marked 'with audio', which add a 3.5 mm audio output.")],
    },
    {
        "key": "usbc_hub", "cats": ["cables-networking"], "match": lambda n: "type c to" in n or "in 1" in n,
        "label": "USB-C hub",
        "what": ("A USB-C hub (multiport adapter) adds the ports that modern thin laptops leave out: HDMI for a monitor "
                 "or TV, USB-A for flash drives and mice, card readers, Ethernet and USB-C charging pass-through, all "
                 "from a single USB-C port."),
        "features": ["HDMI output for monitors and TVs", "Extra USB-A ports", "Power delivery pass-through on most models", "SD/microSD card readers and Ethernet on larger models"],
        "uses": ["MacBooks and thin Windows laptops", "Presentations and hot-desking", "Connecting phones that support video out"],
        "choose": ["Count the ports you need (5-, 8-, 11- and 13-in-1 options).", "Ensure your laptop's USB-C port supports video (DisplayPort Alt Mode) for HDMI output."],
        "setup": ["Plug into the USB-C port.", "Connect HDMI, USB devices and the charger if using pass-through."],
        "care": ["Avoid pulling on the cable.", "Let it cool; hubs get warm during heavy use."],
        "compat": "Works with USB-C laptops, MacBooks, tablets and phones that support USB-C video and data.",
        "faqs": [("Why doesn't HDMI work on my laptop?", "Your USB-C port may not support video output. Check for a DisplayPort or Thunderbolt symbol next to the port.")],
    },
    {
        "key": "network", "cats": ["cables-networking"], "match": lambda n: any(k in n for k in ["rj45", "poe", "lan", "wifi", "ethernet"]),
        "label": "networking accessory",
        "what": ("Networking accessories connect computers, cameras, access points and internet routers. RJ45 "
                 "connectors terminate Ethernet cables, PoE injectors send power and data down one cable to IP "
                 "cameras and Wi-Fi access points, USB network adapters add wired or wireless connectivity, and the "
                 "Starlink Ethernet adapter adds a wired port to Starlink routers that lack one."),
        "features": ["Standard Ethernet compatibility", "Plug-and-play on most devices", "PoE models power devices over the network cable"],
        "uses": ["Office and home networks", "IP CCTV and access points", "Starlink installations", "Fixing laptops with broken Wi-Fi or no LAN port"],
        "choose": ["Match PoE voltage (24V or 48V) to your device.", "Use Cat6 connectors with Cat6 cable.", "Check your Starlink router version before buying the adapter."],
        "setup": ["Connect according to the device type; PoE injectors go between the switch and the powered device."],
        "care": ["Protect outdoor connections from water.", "Label cables during installation."],
        "compat": "Works with standard Ethernet equipment; tell us your device model for PoE and Starlink compatibility.",
        "faqs": [("Which PoE injector do I need?", "Check the voltage your device requires (commonly 24V or 48V) and choose the matching injector.")],
    },
    {
        "key": "storage_adapter", "cats": ["cables-networking"], "match": lambda n: "enclosure" in n or "sata adapter" in n or "pcie" in n,
        "label": "storage adapter",
        "what": ("Storage adapters let you reuse and access drives: a USB enclosure turns an SSD or hard disk into a "
                 "portable external drive, a USB-to-SATA cable lets you recover files from an old drive, and a PCIe "
                 "NVMe card adds an NVMe SSD to a desktop without an M.2 slot."),
        "features": ["Plug-and-play USB on enclosures and adapters", "Fast USB 3.0/3.1 transfer on supported models", "Tool-free or simple installation"],
        "uses": ["Recovering files from an old laptop drive", "Making a portable backup drive", "Adding NVMe speed to an older desktop"],
        "choose": ["Match the drive type: 2.5\"/3.5\" SATA or M.2 NVMe.", "3.5\" desktop drives need an enclosure with its own power supply."],
        "setup": ["Insert the drive into the enclosure or connect the adapter.", "Plug into USB; format in Disk Management if new."],
        "care": ["Eject safely before unplugging.", "Keep portable drives in a padded case."],
        "compat": "Works with Windows, macOS and Linux.",
        "faqs": [("Can I recover files from my old laptop's hard disk?", "Yes. Connect it with a USB-to-SATA adapter or enclosure and copy the files.")],
    },
    # ---------------- Accessories ----------------
    {
        "key": "bag", "cats": ["accessories"], "match": lambda n: "bag" in n or "backpack" in n,
        "label": "laptop bag",
        "what": ("A good laptop bag protects your computer from knocks, rain and dust on matatus, boda bodas and long "
                 "commutes. Padded laptop compartments absorb shocks, separate pockets keep chargers and documents "
                 "organised, and anti-theft designs hide zips against the back."),
        "features": ["Padded laptop compartment", "Pockets for charger, phone and documents", "Comfortable straps or handles", "Anti-theft and USB-charging designs on selected models"],
        "uses": ["Daily commuting", "University and college", "Business meetings and travel"],
        "choose": ["Match the bag to your laptop size (14\" or 15.6\").", "Backpacks spread weight for long walks; handbags and messengers look smarter for meetings."],
        "setup": ["Place the laptop in the padded section, screen facing your back on backpacks."],
        "care": ["Wipe clean with a damp cloth; avoid soaking leather.", "Don't overload pockets."],
        "compat": "Fits laptops up to the size stated in the listing.",
        "faqs": [("Will my 15.6-inch laptop fit?", "Check the size in the product name; most of our backpacks fit up to 15.6\".")],
    },
    {
        "key": "charger", "cats": ["accessories", "cables-networking"], "match": lambda n: "charger" in n or "power bank" in n or "flower cable" in n,
        "label": "charger",
        "what": ("A reliable charger or power bank keeps your laptop and phone working through long days and power "
                 "cuts. Replacement laptop chargers must match the voltage and connector of your laptop, while "
                 "power banks store energy to charge phones (and USB-C laptops on PD models) on the go."),
        "features": ["Correct output for safe charging", "Over-charge and short-circuit protection", "Fast-charging (PD/QC) on supported models"],
        "uses": ["Replacing a lost or faulty laptop charger", "A spare charger for work", "Power banks for commuting and travel"],
        "choose": ["Match the laptop brand, connector and wattage (check your old charger's label).", "For power banks, choose capacity (mAh) and fast-charge support."],
        "setup": ["Connect and confirm the charging light on your device."],
        "care": ["Don't wrap cables tightly around the brick.", "Use surge protection during unstable power."],
        "compat": "Send us a photo of your laptop's charger label and we'll confirm compatibility.",
        "faqs": [("Will this charger work on my laptop?", "Check the brand, connector and wattage. Share your laptop model or old charger label and we'll confirm.")],
    },
    {
        "key": "keyboard_repl", "cats": ["accessories"], "match": lambda n: "keyboard replacement" in n,
        "label": "replacement laptop keyboard",
        "what": ("A replacement keyboard restores a laptop with missing, sticky or dead keys, often after a liquid "
                 "spill. Fitting the exact keyboard for your model makes the laptop feel like new for a fraction of "
                 "the cost of replacing it."),
        "features": ["Exact fit for the listed models", "Standard layout", "New, tested keys"],
        "uses": ["Repairing spill damage", "Fixing dead or sticky keys", "Refreshing worn keyboards"],
        "choose": ["Match your exact model number (e.g. 840 G3 vs G5); keyboards differ between generations."],
        "setup": ["We fit keyboards in-store; DIY fitting involves removing the bottom panel and the keyboard connector."],
        "care": ["Keep drinks away from the laptop.", "Clean keys with a soft brush."],
        "compat": "Fits only the models listed in the name.",
        "faqs": [("Do you fit the keyboard?", "Yes, we can fit it in our shop, usually while you wait.")],
    },
    {
        "key": "webcam", "cats": ["accessories"], "match": lambda n: "webcam" in n,
        "label": "webcam",
        "what": ("An external webcam gives you a sharper picture, better low-light performance and clearer audio than "
                 "most built-in laptop cameras. It's the simplest upgrade for professional Zoom and Teams meetings, "
                 "online teaching, interviews and streaming."),
        "features": ["HD or Full HD video", "Built-in microphone(s)", "Clip mount for monitors and laptops", "Plug-and-play USB"],
        "uses": ["Zoom, Teams and Google Meet", "Online classes and interviews", "Streaming and recording"],
        "choose": ["720p for basic calls; 1080p for a sharper, professional image.", "Business models (e.g. 'e' series) add wide fields of view and certifications for Teams/Zoom."],
        "setup": ["Clip onto the monitor and plug into USB.", "Select it as the camera in your meeting app."],
        "care": ["Clean the lens with a microfibre cloth."],
        "compat": "Works with Windows, macOS and Chromebooks.",
        "faqs": [("Does it need drivers?", "No. It's plug-and-play on Windows and macOS.")],
    },
    {
        "key": "presenter", "cats": ["accessories"], "match": lambda n: "presentation remote" in n,
        "label": "wireless presenter",
        "what": ("A wireless presenter lets you move through PowerPoint, Google Slides or PDF slides from anywhere in "
                 "the room and highlight points with a laser pointer, so you can engage the audience instead of "
                 "standing behind a laptop."),
        "features": ["Slide forward/back buttons", "Built-in laser pointer", "Plug-and-play USB receiver", "Long wireless range"],
        "uses": ["Business presentations", "Lectures and training", "Church and event presentations"],
        "choose": ["Range and battery life.", "Some models add a timer or Bluetooth."],
        "setup": ["Plug the receiver into USB and start your slideshow."],
        "care": ["Never shine the laser into eyes.", "Store the receiver inside the presenter."],
        "compat": "Works with PowerPoint, Google Slides, Keynote and PDF viewers on Windows and macOS.",
        "faqs": [("Does it work with Google Slides?", "Yes. It sends standard keyboard arrow keys.")],
    },
    {
        "key": "ergonomic", "cats": ["accessories"], "match": lambda n: "stand" in n or "bracket" in n,
        "label": "monitor or laptop stand",
        "what": ("Stands and mounts raise screens to eye level, which reduces neck and back strain during long work "
                 "days, and free up desk space. Dual-monitor arms hold two screens side by side for multitasking, "
                 "and laptop stands lift your laptop to a comfortable height while improving airflow."),
        "features": ["Adjustable height and angle", "VESA 75/100 mm mounting on monitor arms", "Sturdy aluminium or steel construction"],
        "uses": ["Home offices and workstations", "Dual-monitor setups", "Laptop users who type with an external keyboard"],
        "choose": ["Check your monitors' VESA holes and weight.", "Measure desk thickness for clamp-mount arms."],
        "setup": ["Clamp or place the stand, attach screens and adjust height so the top of the screen is at eye level."],
        "care": ["Re-tighten joints occasionally."],
        "compat": "Monitor arms fit VESA-compatible screens within the stated size and weight range.",
        "faqs": [("Will my monitor fit this arm?", "If it has VESA 75 or 100 mm holes and is within the size/weight limits, yes.")],
    },
    {
        "key": "input", "cats": ["accessories"], "match": lambda n: "mouse" in n or "keyboard" in n,
        "label": "keyboard or mouse",
        "what": ("A comfortable keyboard and mouse make long work sessions easier and faster than using a laptop "
                 "touchpad. Refurbished USB sets are a low-cost choice for offices and cyber cafés, and wireless "
                 "mice cut cable clutter."),
        "features": ["Plug-and-play USB or wireless receiver", "Full-size layout on keyboards", "Comfortable ergonomic shape"],
        "uses": ["Office desktops and cyber cafés", "Laptop users at a desk", "School computer labs"],
        "choose": ["Wired for reliability; wireless for a tidy desk."],
        "setup": ["Plug into USB; wireless mice need the receiver and a battery."],
        "care": ["Clean regularly with a slightly damp cloth.", "Replace batteries in wireless models."],
        "compat": "Works with Windows, macOS, Linux and Chromebooks.",
        "faqs": [("Is it plug-and-play?", "Yes. No drivers are needed.")],
    },
    # ---------------- CCTV ----------------
    {
        "key": "cctv_cam", "cats": ["cctv"], "match": lambda n: "camera" in n,
        "label": "security camera",
        "what": ("A Wi-Fi security camera lets you watch your home, shop, farm or gate live on your phone from anywhere. "
                 "Solar and battery-powered models need no power cable, which makes them ideal for gates, farms and "
                 "sites without electricity. Dual-lens models show a wide view and a zoomed view at the same time."),
        "features": ["Live view and playback on your phone", "Motion detection alerts", "Night vision", "Two-way audio on many models",
                     "Battery with solar charging on solar models"],
        "uses": ["Homes and gates", "Shops and stalls", "Farms and construction sites", "Remote properties without power"],
        "choose": ["Wi-Fi or 4G connectivity depending on the site.", "Solar models for places without power.", "Resolution for the detail you need."],
        "setup": ["Charge the battery.", "Install the app and add the camera via Wi-Fi.", "Mount in a spot with good sun (solar) and Wi-Fi signal.", "Set up motion zones and alerts."],
        "care": ["Clean the lens and solar panel occasionally.", "Keep the app and firmware updated."],
        "compat": "Works with Android and iPhone via the manufacturer's app.",
        "faqs": [("Can I watch it on my phone?", "Yes, live and recorded, through the camera's app."),
                 ("Does it work without electricity?", "Solar models charge from sunlight and need no power cable.")],
    },
]

FALLBACK = {
    "key": "general", "label": "product",
    "what": ("This product is part of our range of business and technology equipment, sourced for reliability and "
             "value and backed by local support from our Nairobi shop."),
    "features": ["Quality-checked before dispatch", "Backed by local after-sales support"],
    "uses": ["Homes, offices and businesses"], "choose": ["Contact us to confirm it suits your needs."],
    "setup": ["Follow the manufacturer's instructions or ask us for help."], "care": ["Keep it clean and dry."],
    "compat": "Ask us to confirm compatibility with your existing equipment.", "faqs": [],
}
