/*
Theme Name:   Astra Child - Miaplant
Theme URI:    https://miaplant.ee
Description:  Astra child theme for Miaplant with WooCommerce checkout optimizations
Author:       Villi
Author URI:   https://github.com/villivoll-prog
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* ==========================================================================
   WooCommerce Checkout Optimizations
   ========================================================================== */

/* Prevent scroll jump on checkout page */
.woocommerce-checkout {
    scroll-behavior: smooth;
}

/* Ensure checkout forms are stable */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
    position: relative;
    min-height: 0;
}

/* Fix for form field animations */
.woocommerce form .form-row {
    transition: none !important;
}

/* Prevent unwanted scrolling during validation */
.woocommerce-checkout .woocommerce-NoticeGroup {
    position: relative;
    z-index: 999;
}

/* Smooth error message display */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    position: relative;
    scroll-margin-top: 100px;
}

/* ==========================================================================
   Performance & Stability
   ========================================================================== */

/* Reduce layout shifts */
.woocommerce-checkout-review-order {
    min-height: 200px;
}

/* Prevent checkout button jumping */
#place_order {
    min-width: 200px;
    position: relative;
}

/* Loading state for place order button */
.woocommerce-checkout .processing #place_order::after {
    content: "...";
    position: absolute;
    right: 10px;
}

/* ==========================================================================
   Custom Styles
   ========================================================================== */

/* Add your custom styles below this line */
