/**
Theme Name: Laporte-Astra-Theme
Author: Benjamin Gaddy
Author URI: http://wpastra.com/about/
Description: Child Theme for Laporte Products, Inc. 
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: laporte-astra-theme
Template: astra
*/




/* Mobile: single column */
@media (max-width: 768px) {
    .mobile-full-width {
        width: 100%;
    }
}


a {
    text-decoration: none;
}

.nswiper-slide img {
    object-fit: cover;
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.starting-at {
    display: none;
}

.woocommerce-Price-amount.amount {
    margin-left: 10px;
}

.uagb-heading-text p {
    margin-bottom: 0;
}


.uagb-tabs__panel .uagb-tab .uagb-tabs-list {
    outline: none;
}

/* Remove the original border */
.uagb-tabs__hstyle5-desktop .uagb-tab,
.uagb-tabs__hstyle5-desktop .uagb-tab.uagb-tabs__active {
    border-bottom: none;
    position: relative;
    /* needed for the pseudo-element */
}

/* Create the animated border */
.uagb-tabs__hstyle5-desktop .uagb-tab::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--ast-global-color-1);
    transition: width 0.25s ease;
}

/* Animate on hover or active */
.uagb-tabs__hstyle5-desktop .uagb-tab:hover::after,
.uagb-tabs__hstyle5-desktop .uagb-tab.uagb-tabs__active::after {
    width: 100%;
}


#mc_embed_signup {
    clear: left;
}


#mc-embedded-subscribe-form {
    margin: 0 !important;
}

#mce-responses {
    margin: 0 !important;
    padding: 0 !important;
}

#mc_embed_signup div.response {
    margin: 0 !important;
    padding: 0 !important;
}

#mc_embed_signup div#mce-error-response {
    margin: 0 !important;
    padding: 0 !important;
}

#mc_embed_signup div#mce-success-response {
    margin: 0 !important;
    padding: 0 !important;
}

/* -------------------------------------------------- Modula Overrides -------------------------------------------------- */

/* Modula filters – typography */
.filters.horizontal-filters .modula_menu__link {
    font-family: Barlow, sans-serif;
    font-size: 1.75rem;
    font-style: normal;
    font-weight: 600;
    color: var(--ast-global-color-3);
    text-decoration: none;
    padding: 0 0 6px;
    position: relative;
    outline: none;
    text-transform: uppercase;
}


.filters.horizontal-filters {
    border: none;
}

.filters.horizontal-filters .modula_menu__item:hover {
    cursor: pointer;
}

/* Remove any existing borders */
.filters.horizontal-filters .modula_menu__link {
    border-bottom: none;
}

/* Animated underline */
.filters.horizontal-filters .modula_menu__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--ast-global-color-1);
    transition: width 0.25s ease;
}

/* Hover + active */
.filters.horizontal-filters .modula_menu__item:hover .modula_menu__link::after,
.filters.horizontal-filters .modula_menu__item--current .modula_menu__link::after {
    width: 100%;
}

/* Remove default focus ring (only if you provide another focus style elsewhere) */
.filters.horizontal-filters .modula_menu__link:focus {
    outline: none;
}

/* Optional: subtle focus state for keyboard users */
.filters.horizontal-filters .modula_menu__link:focus-visible::after {
    width: 100%;
}

/* Override Modula’s default selected background */
.filters.horizontal-filters .modula_menu__link.selected {
    background-color: transparent !important;
    color: inherit !important;
    /* keeps your text color */
    z-index: auto !important;
}

/* If you also want to ensure the underline shows on selected */
.filters.horizontal-filters .modula_menu__item.selected .modula_menu__link::after {
    width: 100%;
    /* matches your hover/active animation */
}

.filters.horizontal-filters .modula_menu__link {
    transition: color 0.2s ease;
}

.filters.horizontal-filters .modula_menu__item:hover .modula_menu__link,
.filters.horizontal-filters .modula_menu__item--current .modula_menu__link {
    color: var(--ast-global-color-1);
}

.filters.horizontal-filters .modula_menu__list {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 7rem !important;
    /* adjust to taste */
}


/* -------------------------------------------------- WooCommerce Account Page -------------------------------------------------- */

.woocommerce-form__input.woocommerce-form__input-radio.input-radio {
    margin-right: 10px;
}

.woocommerce-account .woocommerce-EditAccountForm .woocommerce-Button {
    margin-top: 2em;
}

.material-symbols-outlined.inpage-icons {
    font-variation-settings:
        'FILL' 1,
        'wght' 0,
        'GRAD' 0,
        'opsz' auto;
    font-size: 5.5rem;
    color: var(--ast-global-color-1);

}

.icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* -------------------------------------------------- WooCommerce Product Grid -------------------------------------------------- */



/* ----------------------------- */
/* Product Images (keep your working code) */
/* ----------------------------- */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* crop if necessary */
}

/* ----------------------------- */
/* Product Grid & Gaps           */
/* ----------------------------- */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem 1.5rem;
    /* row-gap column-gap */
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ----------------------------- */
/* Product Card Cleanup          */
/* ----------------------------- */
.woocommerce ul.products li.product {
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    /* optional */
}

/* ----------------------------- */
/* Summary / Title / Price       */
/* ----------------------------- */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* pushes button down */
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    /* prevent content overflow */
    align-items: center;
    align-content: center;
}

/* ----------------------------- */
/* Buttons Styling               */
/* ----------------------------- */
.woocommerce ul.products li.product .astra-shop-summary-wrap .button,
.woocommerce ul.products li.product .astra-shop-summary-wrap .added_to_cart {
    /* width: 80%; */
    /* uniform button width */
    text-align: center;
    box-sizing: border-box;
    font-size: 1.2rem;
    padding: 10px 20px;
}

/* ----------------------------- */
/* Optional: Title/Text Styling  */
/* ----------------------------- */
.woocommerce ul.products li.product .astra-shop-summary-wrap h2 {
    margin: 0;
    /* font-size: 1rem; */
    /* adjust as needed */
    /* line-height: 1.2; */
}

.ast-woocommerce-container .products {
    display: flex;
    flex-wrap: wrap;
}

.ast-woocommerce-container .products li.product {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dddddd;
    border-radius: 0px;
}

.ast-woocommerce-container .products li.product .astra-shop-summary-wrap {
    flex-grow: 1;
    display: block;
}

.ast-woocommerce-container .products li.product .button {
    margin-top: auto;
}

.wapf-swatch-label .wapf-pricing-hint {
    display: block;
    /* force new line */
    margin: 0;
    /* remove default margin */
    line-height: .5;
    /* tighten vertical spacing */
}

.wapf-swatch-label .wapf-pricing-hint::before {
    content: "\A";
    white-space: pre;
}

.wapf-ttp a {
    color: #fff;
    text-decoration: underline;
    transition: opacity .3s ease;
    font-size: 0.8rem;
}

.fancybox__caption a {
    color: #fff;
    text-decoration: underline;
    transition: opacity .3s ease;
}

.fancybox__caption {
    margin: auto !important;
}

.wapf-ttp a:hover {
    color: #F5F7FA;
}

.starting-at {
    font-weight: normal;
    font-size: 0.9rem;
    margin-right: 0.2rem;
    color: #555;
}

:root {
    --ribbon-bg: var(--ast-global-color-1);
    --ribbon-font-size: .65rem;
    --ribbon-shadow: 0 7px 10px rgba(2, 4, 1, .5);
    --ribbon-font-weight: 600;
    --ribbon-letter-spacing: 2px;
    --ribbon-line-height: 13px;
}


/* ----------------------------- */
/* Astra Woo Sale Ribbon         */
/* ----------------------------- */
.ast-woocommerce-container .products .astra-shop-thumbnail-wrap .ast-on-card-button.ast-onsale-card.circle {
    position: absolute;
    top: 0.8rem;
    /* adjust vertical position */
    left: -32px;
    /* adjust horizontal position */
    transform: rotate(-45deg);
    width: 106px;
    padding: 6px 20px;
    z-index: 2;

    font-weight: var(--ribbon-font-weight);
    font-size: var(--ribbon-font-size);
    line-height: var(--ribbon-line-height);
    text-transform: uppercase;
    letter-spacing: var(--ribbon-letter-spacing);
    text-align: center;
    color: #ffffff;
    background-color: var(--ribbon-bg);
    box-shadow: var(--ribbon-shadow);
    pointer-events: none;
}

/* Optional: make it responsive */
@media (max-width: 1024px) {
    .ast-woocommerce-container .products .astra-shop-thumbnail-wrap .ast-on-card-button.ast-onsale-card.circle {
        width: 90px;
        font-size: 9px;
        padding: 4px 16px;
        left: -28px;
        top: 0.6rem;
    }
}

/* Override the Woo Product Slider Plugin ribbon to match the Woo Shop Page */
.wpsp-slider-section #sp-woo-product-slider-pro1667.wpsp-product-section .wpsp-product .sale_text {
    font-size: var(--ribbon-font-size);
    background-color: var(--ribbon-bg);
    box-shadow: var(--ribbon-shadow);
    font-weight: var(--ribbon-font-weight);
    font-size: var(--ribbon-font-size);
    line-height: var(--ribbon-line-height);
    text-transform: uppercase;
    letter-spacing: var(--ribbon-letter-spacing);
}

/* -------------------------------------------------- Product Page Hooks (Astra Site Builder full-width) -------------------------------------------------- */
.single-product .ast-container>.astra-hfb-custom-layout {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.best-sellers-section ul.products li.product .astra-shop-summary-wrap a.button.product_type_simple.add_to_cart_button {
    font-size: .8rem !important;
}

.woocommerce nav.woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.woocommerce ul.products {
    transition: opacity 0.4s ease;
}

.woocommerce ul.products.loading {
    opacity: 0.3;
}

.woocommerce ul.products li.product {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.woocommerce ul.products li.product.hidden {
    opacity: 0;
    transform: translateY(20px);
}


/* -------------------------------------------------- Product Video Gallery (WAPF) – styling only -------------------------------------------------- */


/* Overlay for fallback */
.wapf-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    z-index: 99999;
}

/* Gallery inner container */
.wapf-gallery-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    max-width: 95%;
    max-height: 95%;
}

/* Gallery images */
.wapf-gallery-inner img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
    cursor: zoom-in;
}

/* Scrollbar hidden for modern browsers */
.wapf-gallery-inner::-webkit-scrollbar {
    display: none;
}


/* -------------------------------------------------- Accordion (APF) – styling only -------------------------------------------------- */
.wapf-field-label span {
    font-weight: 600;
}


.apf-accordion {
    width: 100%;
    /* margin-bottom: 1.5em;
     */
    display: block;
    border-radius: 4px;
}

.apf-accordion-panel {
    width: 100%;
    display: block;
    margin-bottom: .5em;
}

.apf-accordion-header {
    width: 100%;
    text-align: left;
    padding: .75em 1em;
    /* background: --ast-global-color-1; */
    background: #697074;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, .1);
    transition: background-color .5s ease, color .5s ease, border-color .5s ease;

}

.apf-accordion-title {
    flex: 1;
}

.apf-accordion-icon::before {
    content: '+';
    font-weight: 700;
}

.apf-accordion-panel.open .apf-accordion-icon::before {
    content: '–';
}

.apf-accordion-panel .wapf-section.step {
    padding: 1em;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-top: none;
    background: #fff;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, .1);
}

.apf-accordion-panel .wapf-field-container:first-child {
    display: none !important;
}

/* -------------------------------------------------- Buttons (Spectra) -------------------------------------------------- */
.uagb-button__link {
    transition: background-color .5s ease, color .5s ease, border-color .5s ease;
}

/* -------------------------------------------------- Flyout -------------------------------------------------- */
body.flyout-lock {
    overflow: hidden;
}

.laporte-flyout-links {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

:root {
    --flyout-font-weight: 600;
}

.laporte-flyout-links a.laporte-flyout-button {
    display: flex;
    padding: 12px 0;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    text-decoration: none;
    color: #222;
    font-size: 1.18rem;
    font-weight: var(--flyout-font-weight);
    text-transform: uppercase;
}

.laporte-flyout-links a.laporte-flyout-button .link {
    display: flex;
    padding: 12px 0;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    text-decoration: none;
    color: #222;
    font-size: 1.18rem;
    font-weight: var(--flyout-font-weight);
    text-transform: uppercase;
}

.laporte-flyout-links a.laporte-flyout-button:hover {
    background: #f9f9f9;
}

.laporte-flyout-links .icon {
    font-size: 1.75rem;
}

/* Lead time styled like flyout row, but not clickable */
.laporte-flyout-links .laporte-lead-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ccc;
    font-size: 1.18rem;
    font-weight: var(--flyout-font-weight);
    text-transform: uppercase;
    color: #222;
}

.laporte-flyout-links .laporte-lead-time .laporte-flyout-button {
    display: inline;
    border: none;
    background: none;
    padding: 0;
    font-size: .8rem;
    font-weight: normal;
    color: #555;
    text-transform: capitalize;
    text-decoration: underline;
}

.laporte-flyout-links .laporte-lead-time .value {
    text-transform: capitalize;
    font-weight: 800;
    /* color: var(--ast-global-color-1); */
}

.laporte-flyout-links .laporte-white-glove {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* keep icon + link vertically centered */
    padding: 12px 0;
    border-bottom: 1px solid #ccc;
    font-size: 0.95rem;
    /* slightly smaller base font */
    /* gap: 1rem;
     */
}

.white-glove-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Icon sizing */
.laporte-flyout-links .laporte-white-glove .white-glove-icon img {
    width: 40px;
    /* bigger icon */
    height: auto;
    display: block;
}

.white-glove-icon img,
.laporte-flyup-trigger img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Middle text block */
.laporte-flyout-links .laporte-white-glove .label.white-glove {
    flex: 1;
    /* let it take the available space */
    min-width: 0;
    /* prevent flex overflow */
    margin: 0 0.75rem;
}

.laporte-flyout-links .laporte-white-glove .label.white-glove h5 {
    font-size: 1rem;
    /* reduced heading size */
    margin: 0 0 0.25rem;
    font-weight: 600;
    /* color: #222;
     */
    line-height: 1.3;
}

.laporte-flyout-links .laporte-white-glove .label.white-glove p {
    font-size: 0.85rem;
    /* smaller supporting text */
    margin: 0;
    /* color: #555;
     */
    line-height: 1.4;
}

/* Keep link on one line */
.laporte-flyout-links .laporte-white-glove .link {
    flex-shrink: 0;
    /* prevent shrinking */
    white-space: nowrap;
    /* force single line */
}

.laporte-flyout-links .laporte-white-glove .laporte-flyout-button {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.8rem;
    font-weight: normal;
    color: #555;
    text-transform: capitalize;
    text-decoration: underline;
}


:root {
    --panel-width: 35%;
}

.laporte-flyout-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: var(--panel-width);
    max-width: 90%;
    height: 100%;
    background: #F5F7FA;
    z-index: 1000;
    box-shadow: -4px 0 12px rgba(0, 0, 0, .15);
    transition: right .3s ease;
    overflow-y: auto;
    padding: 40px 20px 20px;
}

.laporte-flyout-panel.open {
    right: 0;
}

.laporte-flyout-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #333;
    z-index: 1001;
    box-shadow: none;
}

.laporte-flyout-content {
    padding: 20px;
    overflow-y: auto;
}

.laporte-flyout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 999;
}

.laporte-flyout-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Flyout Cards */
.flyout-product.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
    background: #fff;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, .1);
    padding: 5px;
    max-width: 100%;
}

/* Force 3-column grid on desktop */
.laporte-flyout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* always 3 columns */
    gap: 0.5rem;
    margin-top: 30px;
}

/* Equal height cards per row using flex inside each grid item */
.laporte-flyout-grid .flyout-product.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Make image, title, price stack correctly */
.laporte-flyout-grid .flyout-product.card img {
    width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.laporte-flyout-grid .flyout-product.card h2.woocommerce-loop-product__title {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    flex-grow: 0;
}

.laporte-flyout-grid .flyout-product.card .price {
    /* font-size: 0.85rem !important; */
    margin-top: auto;
    /* pushes price to bottom if title is short */
}

/* Mobile: single column */
@media (max-width: 768px) {
    .laporte-flyout-grid {
        grid-template-columns: 1fr;
    }
}

.flyout-quick-view-wrapper {
    margin-top: 0.5rem;
    width: 100%;
}

.flyout-quick-view {
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: center;
    cursor: pointer;
}

/* Rating */
.flyout-rating {
    font-size: 0.9rem;
    color: #f5c518;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.flyout-rating .star {
    font-size: 1rem;
    line-height: 1;
}

.flyout-rating .star.half::before {
    content: "\2605";
    position: absolute;
    width: 50%;
    overflow: hidden;
    display: inline-block;
    color: #f5c518;
}

.flyout-rating .rating-count {
    color: #555;
    font-size: 0.8rem;
}

.laporte-custom-atc-wrapper {
    flex-direction: row;
    display: flex;
    width: 100%;
}


/* Medium Devices  and below (<1024px) */
@media (max-width: 1024px) {

    .laporte-flyout-links a.laporte-flyout-button {
        font-size: 1rem;
    }

    .laporte-flyout-links .laporte-lead-time {
        font-size: 1rem;
    }

    .laporte-flyout-links .laporte-white-glove {
        font-size: 1rem;
    }

    .laporte-add-to-cart-row .laporte-flyup-trigger {
        display: none;
    }

    .laporte-add-to-cart-row {
        flex-direction: column;
    }

    .woocommerce div.product form.cart .button.single_add_to_cart_button {
        width: 100%;
    }

    .woocommerce-js .quantity .minus,
    .woocommerce-js .quantity .plus {
        width: 100%
    }

    .woocommerce-js .quantity .qty {
        font-size: 1.5rem !important;
    }

}


/* -------------------------------------------------- Nested Modal -------------------------------------------------- */
.quickview-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    max-width: 100%;
}

.quickview-col {
    box-sizing: border-box;
    padding: 0 10px;
}

.quickview-col.col-50 {
    width: 50%;
}

.small-quickview-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.quickview-product-title {
    font-size: 1.2rem;
    margin: 0.25em 0;
}

.quickview-price {
    font-size: 1rem;
    margin: 0.25em 0;
    font-weight: 600;
}

.quickview-short-description {
    width: 100%;
    margin-bottom: 1em;
}

.custom-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--panel-width);
    max-width: 90%;
    height: 100%;
    background: #fff;
    z-index: 9000;
    display: none;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.custom-modal.show {
    transform: translateX(0);
}

.custom-modal-inner {
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    padding-bottom: 40px;
}

.custom-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    z-index: 9001;
}

.custom-modal .modal-close:hover {
    color: #000;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 450px);
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 8999;
    cursor: pointer;
    display: block;
    transition: opacity .3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 768px) {

    .laporte-flyout-panel,
    .custom-modal {
        width: 100%;
    }

    .custom-modal-overlay {
        width: 100%;
    }
}

.quickview-product-image {
    text-align: center;
    margin-bottom: 20px;
}

.quickview-product-image img {
    max-width: 100%;
    height: auto;
}

/* Modal Add to Cart / Quickview Cart Row */
.quickview-customizer-row {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding-bottom: 20px;
}

/* Make QuickView ATC row match Laporte Add-to-Cart row */
.quickview-cart-row {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    flex-wrap: nowrap;
    /* gap: 0.5rem; */
    width: 100%;
    margin-top: 0.5rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.2);
}

/* Hide default Woo ATC inside QuickView */
.quickview-cart-form form.cart>.quantity,
.quickview-cart-form form.cart>.single_add_to_cart_button,
.quickview-cart-form form.cart>.wapf-product-totals {
    display: none !important;
}

/* Target the QuickView modal version only, but don’t mess with flex */
.quickview-cart-form .laporte-add-to-cart-row {
    box-shadow: none;
    /* only remove shadow */
    display: flex !important;
    /* ensure flex container stays intact */
    align-items: stretch;
    /* preserve row height alignment */
    justify-content: stretch;
    /* keep children spacing */
    flex-wrap: nowrap;
    /* no wrapping */
}

.quickview-cart-form .laporte-flyup-trigger {
    display: none;
}

.quickview-cart-form .laporte-current-total {
    font-size: 2rem;
}

.quickview-cart-row .quantity.buttons_added {
    display: inline-flex;
    /* align children horizontally */
    height: 100%;
    /* fill the cart row height */
}

/* Quantity input + +/- buttons */
.quickview-cart-row .quantity input.qty,
.quickview-cart-row .quantity .plus,
.quickview-cart-row .quantity .minus {
    background-color: #DFDFDF !important;
    border: 0.5px solid #BFBFBF !important;
    border-radius: 4px;
    padding: 0.5em;
    width: 100%;
    height: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
}


/* Price box */
.quickview-price-box {
    color: var(--ast-global-color-1);
    font-weight: bold;
    background: var(--ast-comment-inputs-background);
    min-width: 100px;
    text-align: center;
    font-size: 1.65rem;
    flex-grow: 1;
    /* Added to align with row height */
    display: flex;
    align-items: center;
    /* vertical center */
    justify-content: center;
    /* horizontal center */
    box-sizing: border-box;
}

/* Ensure Woo price inside aligns vertically */
.quickview-price-box .woocommerce-Price-amount {
    display: inline-flex;
    /* respect parent flex alignment */
    align-items: center;
    /* vertical center */
    justify-content: center;
    /* horizontal center */
    line-height: 1;
    /* override Woo defaults */
    margin: 0;
    /* remove extra margins */
}

/* Add to cart button */
.quickview-cart-row .single_add_to_cart_button {
    flex-shrink: 0;
    height: 100%;
    padding: 0.5em 1em;
    text-transform: uppercase;
    background-color: #222;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quickview-cart-row .single_add_to_cart_button:hover {
    background-color: #444;
    transform: translateY(-1px);
}

.laporte-quickview-quantity {
    flex-direction: row;
    display: flex;
    width: 100%;
}

/* Responsive stacking */
@media (max-width: 768px) {
    .quickview-cart-row {
        flex-direction: column;
    }

    .quickview-cart-row .quantity {
        width: 100%;
        height: auto;
    }


    .laporte-quickview-quantity .quickview-cart-row .quantity.buttons_added {
        width: 100%;
        height: auto;
    }
}

/* Dimensions Table Styling */
.acf-dimensions {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 1rem;
    border-width: 1px;
}

.acf-dimensions th,
.acf-dimensions td {
    padding: 6px 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.acf-dimensions th {
    font-weight: bold;
    background-color: #f5f5f5;
}

.acf-dimensions td:first-child {
    font-weight: 600;
    width: 50%;
    /* Adjust label column width */
}

.product-details-image-container {
    padding-left: 5%;
    padding-right: 5%;
}

/*Custom Add to cart*/
/* Flex row for flyup button, orange total, and Woo buttons */
.laporte-add-to-cart-row {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    box-shadow: 0 0px 10px rgba(0, 0, 0, .2);
    flex-wrap: nowrap;
    margin-top: 0.5rem;
    position: relative;
    /* THIS is crucial */
    z-index: 10;
    /* make sure it’s above background elements */
}

/* Keep Woo quantity + button inline */
.laporte-add-to-cart-row .quantity,
.laporte-add-to-cart-row .single_add_to_cart_button {
    /* display: inline-block; */
    flex-shrink: 0;
    margin: 0;
}

/* Blue total styling */
.laporte-current-total {
    color: var(--ast-global-color-1);
    font-weight: bold;
    background: var(--ast-comment-inputs-background);
    min-width: 100px;
    text-align: center;
    font-size: 1.65rem;
    flex-grow: 1;
    /* Added to align with row height */
    display: flex;
    align-items: center;
    /* vertical center */
    justify-content: center;
    /* horizontal center */
    box-sizing: border-box;
    border: .5px solid #BFBFBF !important;
}

/* Ensure Woo price inside aligns vertically */
.laporte-current-total .woocommerce-Price-amount {
    display: inline-flex;
    /* respect parent flex alignment */
    align-items: center;
    /* vertical center */
    justify-content: center;
    /* horizontal center */
    line-height: 1;
    /* override Woo defaults */
    margin: 0;
    /* remove extra margins */
}

.laporte-flyup-trigger {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: .5px solid #BFBFBF !important;

}

.laporte-flyup-trigger:hover {
    background: transparent !important;
}

.laporte-flyup-trigger:focus {
    background: transparent !important;
}

.laporte-flyup-trigger .material-symbols-outlined {
    font-size: 40px;
    color: var(--ast-global-color-1, #333);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        color 0.08s cubic-bezier(0.4, 0, 0.2, 1),
        font-variation-settings 0.12s linear,
        transform 0.08s ease;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 40;
    background: transparent !important;
}

/* Hover / focus: fill in + subtle scale */
.laporte-flyup-trigger:hover .material-symbols-outlined,
.laporte-flyup-trigger:focus .material-symbols-outlined {
    color: var(--ast-global-color-0, #000);
    font-variation-settings:
        'FILL' 1,
        'wght' 500,
        'GRAD' 0,
        'opsz' 40;
    transform: scale(1.08);
    background: transparent !important;
}

/* Press feedback: slightly heavier + shrink */
.laporte-flyup-trigger:active .material-symbols-outlined {
    font-variation-settings:
        'FILL' 1,
        'wght' 600,
        'GRAD' 0,
        'opsz' 40;
    transform: scale(0.96);
    background: transparent !important;
}


.laporte-flyup-trigger img {
    width: 30px;
    height: auto;
    background: transparent !important;
    margin: 3px;
}

.laporte-flyup-panel {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    /* or fixed width */
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.laporte-flyup-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.flyup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin: 0.25rem 0;
    position: relative;
}

.flyup-row .flyup-label {
    flex: 1;
    margin-right: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
}

.flyup-row .flyup-price {
    flex-shrink: 0;
    margin-left: 0.5rem;
    text-align: right;
}

/* Dotted leader */
.flyup-row .flyup-label::after {
    content: '';
    flex: 1;
    border-bottom: 1px dotted #aaa;
    margin: 0 0.5rem;
    transform: translateY(0.3em);
    display: inline-block;
}

/* Included options style */
.flyup-included .flyup-price {
    color: #777;
    font-style: italic;
}

#laporte-flyup-panel ul li {
    display: flex;
    justify-content: space-between;
}

.flyup-msrp {
    color: #CB3A3A;
    text-decoration: line-through;
    font-size: 1.1em;
    /* styles for MSRP */
}

.flyup-discount {
    color: #A8DADC;
    font-weight: bold;
    font-size: 1.1em;
    /* styles for discount */
}

.flyup-total {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--ast-global-color-1);
    /* styles for total */
}

/* Container for each line */
.laporte-line {
    display: flex;
    justify-content: space-between;
    /* left and right alignment */
    align-items: center;
    margin: 0.25rem 0;
    font-family: inherit;
}

.laporte-line span.left {
    flex: 3 1 auto;
    /* grow more than right side */
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    /* in case text is too long */
}

.laporte-line span.left::after {
    content: "........................................................................";
    flex-grow: 1;
    margin-left: 0.5em;
    white-space: nowrap;
    overflow: hidden;
}

.laporte-line span.right {
    flex: 0 0 auto;
    /* minimal width, never grows */
    margin-left: 0.5em;
}

.laporte-flyup-panel strong {
    font-weight: bold;
}

.wapf-product-totals {
    display: none;
}

.woocommerce.js {
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.woocommerce-js .quantity .qty {
    height: 100%;
    /* fill parent flex container height */
    min-height: 0;
    /* prevent browser defaults from overriding */
    padding: 0 0.5rem;
    /* horizontal padding */
    box-sizing: border-box;
    /* include padding in height */
    display: flex;
    /* allow vertical centering */
    align-items: center;
    /* center the text inside */
    justify-content: center;
    /* optional: center horizontally */
    font-size: 1rem;
    /* match button/font size */
    border-radius: 4px;
    /* optional, to match other buttons */
    background: #DFDFDF;
}

.woocommerce-js .quantity .plus {
    margin-right: 0;
}

.woocommerce-js div.product form.cart .button {
    margin-bottom: 0;
    transition: background 0.3s ease;
}

.woocommerce-js div.product form.cart div.quantity {
    margin: 0;
    background: #DFDFDF;
}

/* Quantity input & plus/minus buttons in Laporte ATC row */
.laporte-add-to-cart-row .quantity input.qty,
.laporte-add-to-cart-row .quantity .plus,
.laporte-add-to-cart-row .quantity .minus {
    background-color: #DFDFDF !important;
    /* override theme background */
    border: .5px solid #BFBFBF !important;
    /* override theme border (change to desired color) */
    /* border-radius: 4px;
    /* optional: match ATC row styling */

}

/* Hover/focus states */
.laporte-add-to-cart-row .quantity input.qty:focus,
.laporte-add-to-cart-row .quantity .plus:hover,
.laporte-add-to-cart-row .quantity .minus:hover {
    border-color: #BFBFBF !important;
    /* keep consistent on hover/focus */
    background-color: #DFDFDF !important;
    /* ensure hover stays same bg */
}

/* Make each product card fill equal height */
ul.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Make the inner summary stretch and stack correctly */
ul.products li.product .astra-shop-summary-wrap {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* CATEGORY (may sit outside summary — just tighten spacing) */
ul.products li.product .ast-woo-product-category,
ul.products li.product .posted_in {
    margin-bottom: 0.25em;
    display: block;
}

/* RATING */
ul.products li.product .star-rating {
    order: 2;
    margin: 0.25em 0 0.4em;
}

/* TITLE */
ul.products li.product .woocommerce-loop-product__title {
    order: 3;
    margin: 0 0 0.4em;
}

/* PRICE — pinned near bottom */
ul.products li.product .price {
    order: 4;
    margin-top: auto;
    /* This is the key: pushes price + button to bottom */
    padding-top: 0 !important;
}

/* CTA BUTTON — directly below price */
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
    order: 5;
    margin-top: 0.5em;
}


.acf-gallery-video {
    position: relative;
    display: inline-block;
}

.acf-video-play-icon {
    pointer-events: none;
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

/* Sticky Nickx/Swiper Woo gallery container 
* Still working this, may need to change video plugin to get sticky to easily work	
*/


.product-hero-wrap {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Left column (gallery) sticky within wrapper */
.product-hero-wrap .images {
    position: sticky;
    top: 150px;
    /* header offset */
    height: fit-content;
    z-index: 1;
    transition: top 0.3s ease-in-out;
    /* smooth movement */

}

/* Strong, specific sticky rule for WCGS vertical gallery */
.single-product .product-hero-wrap>.wcgs-woocommerce-product-gallery {
    position: -webkit-sticky;
    /* Safari */
    position: sticky !important;
    top: 150px !important;
    /* adjust for header height */
    align-self: flex-start !important;
    height: auto !important;
    z-index: 60 !important;
    transition: top 0.3s ease-in-out;
}

/* Make sure no ancestor is clipping the sticky element */
.single-product .product-hero-wrap,
.single-product .product-hero-wrap>* {
    overflow: visible !important;
}

/* Extra very-specific selector in case the gallery sits inside other wrappers */
.single-product div.product-hero-wrap div.wcgs-woocommerce-product-gallery {
    position: sticky !important;
    top: 150px !important;
}

/* Reuse badge container styling */
.product-badge-wrap {
    display: flex;
    gap: 0.5rem;
    margin-bottom: .75em;
}

/* Sale bubble styling */
.product-badge-wrap .ast-onsale-card {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
}


/* Strong, specific sticky rule for the default Woo gallery element */
.single-product .product-hero-wrap>.woocommerce-product-gallery.images {
    position: -webkit-sticky;
    /* safari */
    position: sticky !important;
    top: 150px !important;
    /* adjust for your header height */
    align-self: flex-start !important;
    height: auto !important;
    z-index: 60 !important;
    transition: top 0.3s ease-in-out;
}

/* Make sure no ancestor is clipping the sticky element */
.single-product .product-hero-wrap,
.single-product .product-hero-wrap>* {
    overflow: visible !important;
}

/* Extra very-specific selector in case the gallery sits inside other wrappers */
.single-product div.product-hero-wrap div.woocommerce-product-gallery.images {
    position: sticky !important;
    top: 150px !important;
}

/* Container under breadcrumbs for badges */
.product-badge-wrap {
    display: flex;
    gap: 0.5rem;
    /* spacing between multiple badges */
    margin-bottom: .75em;
}

/* Sale bubble styling */
.product-badge-wrap .ast-onsale-card {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
}





/* Medium Devices  and below (<1024px) */
@media (max-width: 1024px) {
    .product-hero-wrap {
        flex-direction: column !important;
    }

    .product-hero-wrap .images {
        position: relative;
        top: auto;
    }

    .images.nickx_product_images_with_video {
        max-width: 100%;
    }

    .product-hero-wrap .summary {
        order: 2;
    }


}


/* -------------------------------------------------- WooCommerce Advanced Search -------------------------------------------------- */
.aws-container {
    width: 28rem;
}

@media (max-width: 768px) {
    .aws-container {
        width: auto;
    }
}



.aws-container .aws-search-field,
.aws-container .aws-suggest__keys {
    font-size: 15px;
}

.aws-search-result .aws_result_image img {
    width: 100px;
}

.aws-search-result .aws_result_content .aws_result_title {
    font-size: 20px;
    font-weight: 600;
}

.aws-search-result .aws_result_price {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
}

.aws-search-result .aws_result_excerpt {
    font-size: 13px;
}

.aws-search-result .aws_result_stock {
    font-size: 12px;
    font-weight: 700;
}

.aws-search-result .aws_onsale {
    background-color: var(--ast-global-color-1);
}