/* WPForms fixes */
/* Initial field looks */
.wpforms-container input[type=date],
.wpforms-container input[type=datetime],
.wpforms-container input[type=datetime-local],
.wpforms-container input[type=email],
.wpforms-container input[type=month],
.wpforms-container input[type=number],
.wpforms-container input[type=password],
.wpforms-container input[type=range],
.wpforms-container input[type=search],
.wpforms-container input[type=tel],
.wpforms-container input[type=text],
.wpforms-container input[type=time],
.wpforms-container input[type=url],
.wpforms-container input[type=week],
.wpforms-container select,
.wpforms-container textarea {
    background: #fff;
    border-width: 0 0 1px 0;
    color: var(--ast-global-color-2);
    opacity: 0.5;
}
/* On focus */
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
    outline: none;
    opacity: 1;
    border-color: var(--ast-global-color-0);
}
/* Don't allow resizing the Message box */
.wpforms-container textarea {
    resize: none;
}
/* Message box fixed height */
.wpforms-container .wpforms-field-textarea textarea.wpforms-field-medium {
    height: 136px;
}
/* Button size & font size */
.wpforms-container button {
    padding: 15px 34px;
    font-size: 15px;
}
/* WPForms done */
/* Footer 2 big columns on sides and 1 small one in the middle */
.ast-builder-grid-row-3-equal .ast-builder-grid-row {
    grid-template-columns: 3fr 1fr 3fr;
}
@media (min-width: 992px) {
  .single-product .woocommerce-product-gallery img {
    max-height: 30vh;
    width: auto;
  }

  .single-product .woocommerce-product-gallery__image {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
/* ---------- Single Product Stacked Layout ---------- */
.single-product .product {
    display: block !important; /* Force vertical stacking */
}

/* Product image full width */
.single-product .woocommerce-product-gallery {
    width: 100% !important;
    margin: 0 auto !important;
}

/* Summary container: stack vertically and center all items */
.single-product .summary {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Center horizontally */
    gap: 20px; /* Space between items */
    width: 100% !important;
}

/* Ensure all direct children of summary are centered */
.single-product .summary > * {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Center WooCommerce variation dropdowns */
.single-product .variations_form .variations {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px;
}

/* Center Google Pay / alternative payment buttons */
.single-product .woocommerce-acceptance-mark {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Long description / tabs full width, left-aligned */
.single-product .woocommerce-tabs {
    width: 100% !important;
    text-align: left !important;
    margin-top: 50px; /* Space above tabs */
}

/* Optional: Keep responsive spacing on mobile */
@media (max-width: 768px) {
    .single-product .summary {
        align-items: center !important;
    }
}
/* Remove top gap above single product content */
.single-product div#primary .site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Also remove top padding/margin from WooCommerce container */
.single-product .ast-woocommerce-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Keep product title and summary intact */
.single-product .summary h1.product_title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Make WooCommerce Add to Cart buttons match your cyan glowing Elementor buttons */

/* Base styles (unchanged from before) */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce .products li.product .add_to_cart_button,
.woocommerce .products li.product .button.product_type_simple,
.woocommerce .products li.product .button.product_type_variable,
.elementor-widget-wc-products .woocommerce ul.products li.product .button,
.add_to_cart_button,
.single_add_to_cart_button,
.woocommerce div.product form.cart .single_add_to_cart_button
{
    background-color: #00FFC5 !important;
    color: #000000 !important;
    fill: #000000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    box-shadow: 0px 0px 10px 0px #00FFC5 !important;
    border-radius: 20px !important;
    padding: 15px 15px !important;
    border: none !important;
    transition-duration: 0s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
}

/* Hover: text to white + stronger glow with 15px blur & 2px spread */
.woocommerce ul.products li.product .button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:hover
{
    background-color: #00FFC5 !important;          /* stays the same */
    color: #ffffff !important;                     /* text changes to white */
    fill: #ffffff !important;                      /* for icons/SVGs */
    box-shadow: 0px 0px 15px 2px #00FFC5 !important;  /* 15px blur, 2px spread */
}
/* Fixed consolidated: Bottom-align buttons + uniform 25px vertical gaps (reset defaults to avoid unevenness) */

/* Product card setup (unchanged) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Grow link wrapper */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Title: Reset default margins + set exact 25px gap below */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    margin-top: 0 !important;
    margin-bottom: 25px !important;          /* exact gap to price */
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}

/* Price: Reset + exact 25px gap below */
.woocommerce ul.products li.product .price {
    margin-top: 0 !important;
    margin-bottom: 25px !important;          /* gap to description */
}

/* Short description: Reset inner/outer + exact 25px gap below (to button) */
.woocommerce ul.products li.product .ast-woo-shop-product-description {
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    flex-grow: 1 !important;                 /* helps push button if needed */
}

.woocommerce ul.products li.product .ast-woo-shop-product-description p {
    margin: 0 !important;                    /* no extra inner margins */
    min-height: 6em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
}

/* Button: Pushed to bottom */
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product a.button.add_to_cart_button.ajax_add_to_cart,
.woocommerce ul.products li.product .button.product_type_simple {
    margin-top: auto !important;
    margin-bottom: 1.5em !important;
    align-self: center !important;
}

/* Image spacing (unchanged) */
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 1em !important;           /* space after image before title */
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .woocommerce ul.products li.product {
        height: auto !important;
    }
    /* Smaller gaps on mobile if preferred */
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product .price,
    .woocommerce ul.products li.product .ast-woo-shop-product-description {
        margin-bottom: 15px !important;
    }
}
/* HappyAddons Product Grid - Perfect vertical alignment (titles, prices, desc tops, buttons) at ALL breakpoints */

/* Base: Each card is flex column, full height */
.hfe-product-item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Stronger min-height to handle 2-column rows (increase if needed) */
@media (min-width: 768px) and (max-width: 1440px) {
    .hfe-product-item {
        min-height: 520px !important;  /* Key fix: taller fallback for 2-col mode – test 500-580px */
    }
}

@media (min-width: 1441px) {
    .hfe-product-item {
        min-height: 480px !important;  /* Slightly shorter for 3-col desktop */
    }
}

/* Content grows to push button */
.hfe-product-item .hfe-product-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Title: fixed block height for alignment */
.hfe-product-item .hfe-product-title {
    min-height: 4em !important;            /* Ensures titles start at same vertical level */
    margin-bottom: 25px !important;
}

.hfe-product-item .hfe-product-title h2 {
    margin: 0 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}

/* Price: consistent position */
.hfe-product-item .hfe-product-price {
    margin-top: 0 !important;
    margin-bottom: 25px !important;
}

/* Description: fixed top + controlled height/lines for top-row alignment */
.hfe-product-item .hfe-product-description {
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    flex-grow: 1 !important;
    min-height: 11.1em !important;            /* Critical for top alignment in 2-col mode */
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 7 !important;      /* Adjust 6-9 lines to fit your longest desc */
    -webkit-box-orient: vertical !important;
}

/* Button: always bottom-aligned */
.hfe-product-item .hfe-product-add-to-cart {
    margin-top: auto !important;
    margin-bottom: 1.5em !important;
    align-self: center !important;
}

/* Image */
.hfe-product-item .hfe-product-image {
    margin-bottom: 0px !important;
}

/* Mobile (1 column): natural height */
@media (max-width: 767px) {
    .hfe-product-item {
        height: auto !important;
        min-height: unset !important;
    }
    .hfe-product-item .hfe-product-description {
        min-height: 7em !important;
        -webkit-line-clamp: 6 !important;
    }
    .hfe-product-item .hfe-product-title {
        min-height: 3.5em !important;
    }
}