=== Bra Size Calculator ===
Contributors: sharifok
Tags: bra size calculator, bra size chart, international bra sizes, bra size converter, lingerie
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Estimate bra sizes from underbust and bust measurements with inch/cm input, country options, and regional size conversions.

== Description ==

Visitors enter underbust and bust measurements, choose inches or centimeters, select a country, and receive an estimated bra size with international size conversions.

Use the `[brasical_size_calculator]` shortcode to add a bra measurement calculator to a page or post. The plugin includes country and unit selectors, measurement validation, a result dialog, regional size conversions, and an admin live preview with appearance controls.

**Free features:**

* Estimate a bra size from underbust and bust measurements.
* Accept measurements in inches or centimeters.
* South Asia sizing: Bangladesh, India, Sri Lanka.
* Italy sizing.
* Show reference size conversions for included countries.
* Let site administrators set a default country, show or hide the country selector, and display country flags.
* Customize country selector colors and radius, unit button colors, border, font size, calculator button colors and hover colors, and button alignment.
* Preview appearance changes in the WordPress admin area.

**Pro features (requires Bra Size Calculator Pro):**

* All 31 countries across South Asia, North America, Europe, East Asia, and Oceania.
* Full regional size conversions for all 8 sizing systems.
* Global calculator font family (30+ web-safe fonts).

== How It Works ==

1. Measure snugly around the body directly under the bust for the underbust measurement.
2. Measure around the fullest part of the bust without compressing it.
3. Enter both measurements, select the measurement unit and country, then calculate.

== Add the Calculator ==

1. Install and activate Bra Size Calculator from the WordPress Plugins screen.
2. Open the Bra Calculator menu in WordPress admin to choose the default country and customize appearance.
3. Add `[brasical_size_calculator]` to a page or post.

== Sizing References and Fit ==

The calculator returns an estimated reference size, not a guaranteed fit. Bra sizing is not governed by one universal standard, and fit can vary by manufacturer, style, and body shape. Treat the result as a starting point and check the size chart for the brand being purchased.

== Privacy ==

Measurements are processed by the calculator in the visitor's browser. The plugin does not save submitted measurements to the WordPress database.

== Frequently Asked Questions ==

= Does the calculator guarantee that a bra will fit? =

No. It estimates a reference size. Brand charts and fit can differ, so check the specific product's size guide.

= Can visitors switch between inches and centimeters? =

Yes. The calculator includes inch and centimeter controls.

= Can I choose a default country? =

Yes. Set the default country in the Bra Calculator settings page.

= Does the shortcode accept styling parameters? =

No. Use the plugin settings page to customize supported appearance options.

= How do I unlock all countries? =

Install and activate the Bra Size Calculator Pro plugin available at https://codercreation.com/bra-size-calculator/

== Changelog ==

= 1.1.1 =
* Fixed: toggle settings (country switcher, flag, border) could not be saved as disabled.
* Fixed: Italy sizing validation — minimum underbust measurement now matches the EU standard correctly.
* Fixed: result display settings were not registered with WordPress Settings API.
* Fixed: border radius and border width settings now correctly accept 0 as a valid value.
* Fixed: dead CSS selector removed.
* Improved: admin live preview now shows all countries including Pro-locked ones with upgrade prompts.
* Improved: default country settings dropdown shows Pro countries with upgrade tooltip.
* Improved: "Show Country Flag" toggle now updates the live preview immediately.
* Improved: typography / font family feature moved to Pro with locked UI and upgrade CTA in free.
* Security: added double-wrap guard to custom dropdown builders.

= 1.1.0 =
* Added pro/free feature gating with upgrade prompts.
* Added custom country dropdown with PRO badge for locked countries.
* Added international sizing references and regional size conversions.
* Added country selection, inch/centimeter input, and measurement validation.
* Added admin live preview and calculator appearance settings.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.1.1 =
Bug fixes for toggle settings and Italy sizing. Improved admin upsell experience. Upgrade recommended.

= 1.1.0 =
Adds international sizing, country selection, and regional size conversions with Pro upgrade path.
