=== Lunfio 3D Configurator ===
Contributors: lunfio
Tags: 3d configurator, furniture configurator, product configurator, furniture planner, wardrobe configurator, wardrobe planner, cabinet configurator, closet planner, storage configurator, kitchen planner, room planner, shortcode
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed a hosted 3D configurator, furniture configurator, and wardrobe planner on WordPress with a shortcode.

== Description ==

Lunfio 3D Configurator helps WordPress sites add a hosted 3D configurator for furniture, wardrobes, cabinets, closets, kitchen furniture, and storage products.

The plugin connects WordPress to an approved Lunfio account, checks subscription status, creates the iframe token, and gives you a shortcode for placement.

Typical use cases include:

* Furniture configurators
* Wardrobe configurators and wardrobe planners
* Cabinet and storage configurators
* Closet planners
* Kitchen furniture planners
* TV cabinet and media storage configurators
* Product configurators for furniture manufacturers and web studios

Most product setup still belongs in the full Lunfio admin dashboard. Use this plugin for WordPress connection, shortcode placement, embed size, wrapper styling, and preview.

== External services ==

This plugin connects to the Lunfio hosted service at `https://lunf.io/` and to Lunfio's Supabase backend at `https://dzgwebloypxcnwyyrecv.supabase.co`.

The plugin sends the site administrator's Lunfio login details to Supabase only when the administrator connects the account. The password is used to create a session and is not stored in WordPress. The plugin stores the returned session token, refresh token, workspace status, and iframe token so it can sync access and render the configurator.

The public shortcode renders an iframe from `https://lunf.io/embed.html` with the iframe token. The full dashboard shortcode renders an iframe from the Lunfio admin URL.

Lunfio privacy policy: https://lunf.io/privacy.html

== Installation ==

1. Upload the plugin zip in WordPress admin, or install it from the WordPress Plugin Directory.
2. Activate the plugin.
3. Open the Lunfio menu in WordPress admin.
4. Sign in with the Lunfio login sent after setup approval.
5. Sync status and token.
6. Add `[lunfio_configurator]` to a page, post, or shortcode block.

== Setup ==

1. Request or approve a Lunfio setup for the furniture business.
2. Open the Lunfio menu in WordPress admin.
3. Sign in with the Lunfio login sent after setup approval.
4. Sync status and token.
5. Add `[lunfio_configurator]` to a page.

Optional shortcode:

`[lunfio_configurator height="1000" radius="12"]`

Dashboard wrapper shortcode:

`[lunfio_dashboard]`

== Frequently Asked Questions ==

= Do I need a Lunfio account? =

Yes. The plugin is an interface for the hosted Lunfio configurator service. A Lunfio account and approved workspace are required before the iframe token can sync.

= Does the plugin store my Lunfio password? =

No. The password is sent only when connecting the account. WordPress stores the returned session token and refresh token so the plugin can sync status and iframe access.

= Can I manage materials, pricing, colors, and 3D options in WordPress? =

No. Those settings are managed in the full Lunfio admin dashboard. The WordPress plugin is for connecting the site and placing the configurator.

= Which shortcode should I use? =

Use `[lunfio_configurator]` for the customer-facing configurator. Use `[lunfio_dashboard]` only if you want to embed the Lunfio dashboard inside a private WordPress admin or internal page.

== Notes ==

Materials, pricing, branding, product colors, and deep 3D configuration remain in the full Lunfio admin.

== Screenshots ==

1. Customer-facing Lunfio 3D furniture configurator embedded on a WordPress page.
2. Product options, pricing, room color, materials, and customer order controls.
3. Furniture feature controls for shelving, partitions, shoe storage, and cabinet options.

== Changelog ==

= 0.1.0 =
Initial plugin package.
