=== Cozy Rental Catalog ===
Contributors:      smilekobo
Tags:              rental, catalog, inventory, booking, portfolio
Requires at least: 6.0
Tested up to:      7.0
Stable tag:        1.7
Requires PHP:      7.4
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

No shopping cart needed. Just beautiful rental catalogs. Perfect for photo studios, baby gear, outdoor gear, fashion rental, and more.

== Description ==

**Cozy Rental Catalog** lets you build a beautiful, mobile-friendly rental item catalog in minutes — without any e-commerce setup.

If you rent items but don't sell them online, this plugin is for you.

= Who is this for? =

* 📸 **Photo studios** — costume catalogs, kimono, dress, suit
* 👶 **Baby & child gear rental** — crib, stroller, car seat, bouncer
* ⛺ **Outdoor equipment rental** — tent, sleeping bag, lantern, chair
* 🏥 **Medical & care equipment rental** — wheelchair, hospital bed, walker
* 👗 **Fashion rental** — dress, suit, accessories
* 🎉 **Party & event rental** — table, chair, tent, sound system
* 📷 **Camera & gear rental** — camera body, lens, tripod

= No shopping cart. No complex setup. =

Many rental businesses don't need a checkout or payment system — they just want to show what they have and let customers get in touch.

Cozy Rental Catalog is built exactly for that:

* Show your rental inventory beautifully
* Let customers browse and filter items
* Direct them to contact you or book via your booking page
* No monthly fees. No payment gateway. No bloat.

= Quick Setup with Industry Presets =

Choose a preset and your catalog is configured in seconds:

* **📸 Photo Studio** — size labels, costume categories, color filter, gender filter
* **👶 Baby Gear** — age range labels, baby equipment categories
* **⛺ Outdoor Equipment** — capacity labels, gear categories
* **🏥 Medical & Care** — size/type labels, medical equipment categories
* **👗 Fashion Rental** — size labels, clothing categories, color filter
* **✏️ Custom** — start from scratch

= Key Features =

* **Beautiful 2-column mobile grid** — large images, easy to browse on a smartphone
* **Tap to open detail view** — modal with full description, tags, and booking button
* **Left/right navigation in modal** — swipe or click through all items and photos
* **Rental status** — mark items as Available / Rented / Under Maintenance
* **Flexible size system** — fully customizable per preset (S/M/L, age ranges, capacity, etc.)
* **Target note field** — free text for age range, weight limit, or any note
* **Color group filter** — 9 color groups with visual dot indicators
* **NEW badge** — set an arrival date and display period; disappears automatically
* **Smart filters** — rental price, stock status, gender, size, category, color
* **URL-based filters** — link from other pages with pre-selected filters
* **Multiple images per item** — swipe through photos in modal
* **Customizable gender options** — Girl/Boy, Woman/Man, or any labels you need
* **Multilingual preset support** — presets automatically switch by site language
* **Bilingual** — full English and Japanese support (translation-ready)

= Shortcode =

`[crcat_catalog]` — Display all published items
`[crcat_catalog category="Dress" columns="3"]` — Filter by category
`[crcat_catalog gender="girl"]` — Filter by gender

= URL Filters =

`/your-page/?crcat_category=Dress&crcat_size=M`

== Installation ==

1. Upload the `cozy-rental-catalog` folder to `/wp-content/plugins/`
2. Activate the plugin
3. Go to **Rental Catalog → Settings** and choose an industry preset
4. Add items via **Rental Catalog → Add New**
5. Add `[crcat_catalog]` to any page

== Frequently Asked Questions ==

= Do I need WooCommerce? =

No. This plugin has nothing to do with WooCommerce or any e-commerce system. It is a simple catalog display plugin.

= Can I add a booking button? =

Yes. Go to **Rental Catalog → Settings** and enter the URL of your booking or contact page. A button will appear at the bottom of each item's detail view.

= Can I show only available items? =

Yes. Use the "Available" filter on the catalog page, or add `?crcat_rental_status=available` to the page URL.

= Can I change the size labels and options? =

Yes. Go to **Rental Catalog → Settings** and edit the size label name and size options. One item per line.

= Can I change the gender filter labels (e.g. Woman/Man instead of Girl/Boy)? =

Yes. In **Settings → Enable Features → Gender filter**, edit the options in `key=Label` format. For example:
`woman=👩 Woman`
`man=👨 Man`
`unisex=🌟 Unisex`

= Does it work on mobile? =

Yes. The catalog is fully responsive. The detail view is a center modal optimized for smartphones. Images support swipe gestures.

= Can I link to the catalog with a specific filter already selected? =

Yes. Add query parameters to the URL:
`/catalog/?crcat_category=Dress&crcat_size=M&crcat_gender=girl`

= Does this plugin make external requests? =

No. This plugin does not connect to any external servers. All data is stored locally in your WordPress database.

== Screenshots ==

1. Frontend catalog — mobile 2-column grid with filter bar
2. Item detail modal with image, tags, and booking button
3. Admin item list
4. Admin add/edit item form — single column, easy to use
5. Settings page with industry preset selector

== Changelog ==

= 1.7 =
* Changed prefix from crc_ to crcat_ (4+ character prefix required by WordPress.org)
* Changed shortcode from [rental_catalog] to [crcat_catalog]
* Updated SortableJS to 1.15.7 (latest stable)
* Fixed i18n: removed variable usage in gettext functions
* Preset labels now load directly from language-specific JSON files without gettext wrapping

= 1.6 =
* Moved inline styles and scripts to external asset files (crc-admin.css, crc-admin.js, crc-front.css)
* Added currency symbol and position settings (USD, EUR, GBP, JPY, KRW, Krona, custom)
* Added spec labels feature — define custom spec fields per item (shown below description in modal)
* Fixed wp_unslash() missing on spec-related POST inputs
* Updated admin item list to reflect currency settings

= 1.5 =
* Bundled SortableJS locally (removed external CDN dependency)
* Added translators comments for i18n compliance
* Improved PHPCS compliance with inline documentation
* Version bump for WordPress.org re-submission

= 1.4 =
* Fixed save redirect bug (switched to admin_init pattern)
* Changed "Display Order" field label for clarity
* Added automatic comma conversion for size and category input fields
* Added My Preset support (custom-ja.json for Japanese sites)
* Added safe preset folder in uploads directory (survives plugin updates)
* Added image drag-and-drop reordering via SortableJS
* Fixed filter + modal navigation bug (buildFlat rebuild after filtering)
* Improved responsive grid (SP: 2 cols → tablet: 3 cols → PC: 4 cols, max-width 1200px)

= 1.3 =
* Added multilingual preset support — presets automatically switch based on site language (e.g. photo-studio-ja.json for Japanese)
* Added Japanese preset files for all 7 industry types
* Added translation files (POT, ja.PO, ja.MO)
* Added update notification system via smiling-studio.net
* Added version and custom_attributes fields to preset JSON format
* Security hardening: capability checks on all admin pages, sanitize/escape audit, XSS fixes in modal

= 1.1.0 =
* Added size filter to the catalog filter bar
* Added customizable gender options (Woman/Man/etc.) via settings
* Reorganized item edit form to single column for easier input
* Color group moved directly after image selection
* Size field and target note field consolidated
* Added clear save/update success message with next-action buttons
* Fixed image upload display in admin

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.7 =
Prefix changed from crc_ to crcat_. Shortcode changed to [crcat_catalog]. Please update any shortcodes in your pages.

= 1.5 =
PHPCS compliance improvements and local asset bundling. Recommended for WordPress.org compatibility.

= 1.4 =
Drag-and-drop image reordering, improved responsive layout, and several bug fixes. Update recommended.

= 1.3 =
Multilingual preset support added. Japanese presets now available. Security improvements — update recommended.

= 1.1.0 =
Form layout improved. Size filter added to catalog. Gender options now customizable.
