=== Featured Products Carousel (Selector) ===
Contributors: deoboy
Tags: woocommerce, carousel, featured products
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.3.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Drag products from a live-search list into a selected board; chosen items render in a centered, touch-friendly carousel on the frontend.

== Description ==

Select up to 10 WooCommerce products in the admin (drag to reorder, auto-saves) and display them anywhere with the shortcode:

`[featured_products_carousel title="Featured Products"]`

== Changelog ==

= 1.3.1 =
* Fix: Active card is now mathematically centered inside the slider window on all devices, viewport widths, and browser/root font sizes.
  * Removed CSS positioning hacks on `.slider-track` (`width:90%`, `margin-right:2rem !important`, `position:relative; left:-2rem`) that offset the track relative to the window and made centering rem-dependent (device-dependent).
  * Carousel JS now applies active-card classes first, then measures the target slide's live layout position (`offsetLeft`/`offsetWidth`) on every move, so layout-affecting styles such as the active card's `margin-inline` are always accounted for.
  * Re-centers on window `load`, on container resize via `ResizeObserver` (with debounced `resize` fallback), and on `orientationchange`, guarding against late mobile layout shifts (fonts, scrollbars, address bar).
* Fix: `transitionend` loop-normalization now verifies the event target is the track and the property is `transform`; previously child card transitions could trigger a visible mid-slide jump.
* Improvement: `touch-action: pan-y` on the slider window — horizontal swipes drive the carousel without fighting vertical page scroll.
* Improvement: Double-initialization guard; clone slides marked `aria-hidden="true"`; dots receive `aria-label`s.
* Note: Mobile card flex-basis adjusted (82%→74% at ≤640px, 60%→54% at ≤900px) to preserve the exact previous visual card size after removing the track width hack.

= 1.3.0 =
* Previous release.
