/* Jeanettemai Length Stepper — engine-owned styles.
 *
 * The stepper VISUALS live in the theme: the engine renders fabricly's
 * .pdp__qty-* markup (donor: child-theme/single-product-v2.php) and the
 * pre-ported rules in system.css / v2-extras.css / mobile-sync.css style it.
 * This file only keeps what the theme cannot own:
 *   1. hiding WC's native quantity input,
 *   2. the per-meter price lines (PDP + shop loop),
 *   3. the engine-PDP CTA skin — WC's .single_add_to_cart_button dressed as
 *      the theme's .f-btn-primary/.pdp__cta (the WC template renders the
 *      button, so classes can't be added; body.jm-engine-pdp scopes it to
 *      meter products only).
 */

/* Hide default WooCommerce quantity */
.jm-hidden-qty,
.jm-length-stepper ~ .quantity {
    display: none !important;
}

/* CTA — fabricly pdp__cta parity: f-btn-primary look, full width, live total */
body.jm-engine-pdp form.cart .single_add_to_cart_button {
    /* Parent theme adds margin-left:40px to sit beside the (hidden) qty input
       — indented the CTA 40px and overflowed the column (measured, Marc x3). */
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    background: var(--jm-yellow, #C75B80);
    border: none;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-cta, 0 6px 24px rgba(226, 138, 87, 0.35));
    transition: all 200ms ease-out;
}
body.jm-engine-pdp form.cart .single_add_to_cart_button:hover {
    background: var(--jm-yellow-dark, #B14A6F);
    border: none;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-cta-hover, 0 8px 32px rgba(226, 138, 87, 0.45));
}

/* Per-meter price on product page */
.jm-grundpreis {
    font-size: 0.9em;
    color: #666;
    margin: 0.25em 0 0.75em;
}

.jm-grundpreis a {
    color: #E27297;
    text-decoration: underline;
}

/* Per-meter price in shop loop */
.jm-grundpreis-loop {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-top: -0.25em;
}
