<?php
/**
 * Plugin Name: Lean Cart Share and Save for WooCommerce
 * Plugin URI: https://leanplugins.com/
 * Description: Lightweight cart sharing and saving for WooCommerce. Fully compatible with FSE themes and WooCommerce Cart Blocks.
 * Version: 1.1.4
 * Author: LeanPlugins
 * Author URI: https://leanplugins.com/
 * License: GPLv2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: lean-cart-share-and-save
 * Domain Path: /languages
 * Requires Plugins:  woocommerce
 */

// Prevent direct access
if (!defined('ABSPATH')) {
    exit;
}

// Free and pro folders can both be loaded in one request (mid free<->pro swap).
// Whichever loads first defines the constants AND bootstraps; the sibling sees
// LEAN_CSNS_VERSION already defined and stays fully inert (no double bootstrap,
// no wrong-folder constants). Dual_Activation_Preventer then deactivates the loser.
if (!defined('LEAN_CSNS_VERSION')) {
    define('LEAN_CSNS_VERSION', '1.1.4');
    define('LEAN_CSNS_DB_VERSION', '1.0.0');
    define('LEAN_CSNS_PL_FILE', __FILE__);
    define('LEAN_CSNS_PL_DIR', plugin_dir_path(__FILE__));
    define('LEAN_CSNS_PL_URL', plugin_dir_url(__FILE__));
    define('LEAN_CSNS_MODE_SWITCH', '');

    // Load and bootstrap plugin (only for the first-loaded version).
    require_once LEAN_CSNS_PL_DIR . '/includes/class-base.php';
    \Lean_CSNS\Base::bootstrap(__FILE__);
}