.pulse-shop { max-width: 1200px; margin: 0 auto; padding-bottom: 80px; }

/* Hero cards — responsive top margin that adapts to viewport height.
 * clamp(min, preferred, max): floor at 32px (tiny mobile, prevents
 * cramped feel) - preferred is 14% of viewport height (scales smoothly
 * with screen size) - ceiling at 220px so it doesn't look absurd on
 * ultra-tall displays. Build/Browse paths replace the hero and have
 * their own layout, so this only affects the landing view. */
.pulse-hero {
    display: flex; gap: 24px;
    margin: clamp(32px, 14vh, 220px) auto 48px;
    justify-content: center;
    flex-wrap: wrap;
}
.pulse-hero-card {
    flex: 1; min-width: 280px; max-width: 450px; padding: 40px 30px;
    text-align: center;
    border-width: 1px;
    border-style: solid;
}
.pulse-hero-card:hover {
    transform: translateY(-4px);
}
.pulse-hero-card h2 { margin: 0 0 12px; }
.pulse-hero-card p { margin: 0; }

/* Path visibility */
.pulse-path { display: none; }
.pulse-path.visible { display: block; }

/* Sticky header */
.pulse-sticky-header {
    position: sticky; top: 0; z-index: 100;
    padding: 16px 0 12px;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    margin-bottom: 24px;
}
.pulse-sticky-header .pulse-step-row {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.pulse-step-number {
    width: 36px; height: 36px;
    display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pulse-step-title { margin: 0; }
.pulse-step-subtitle { margin: 4px 0 0 52px; }

/* Tabs */
.pulse-tabs { display: flex; gap: 0; margin-left: auto; }
.pulse-tab {
    padding: 8px 20px;
    border-width: 2px;
    border-style: solid;
}
.pulse-tab:last-child { border-left: none; }
.pulse-tab-content { display: none; }
.pulse-tab-content.visible { display: block; }

/* Sticky footer */
.pulse-sticky-footer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    padding: 12px 24px;
    display: none; /* shown by JS */
    border-top-width: 2px;
    border-top-style: solid;
}
.pulse-sticky-footer.visible { display: block; }
.pulse-footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.pulse-nav-btn {
    padding: 12px 32px;
    border: none;
    display: inline-block;
}

/* Product card buttons */
.pulse-products .products .product {
    position: relative;
}
.pulse-products ul.products li.product a.button,
.pulse-products ul.products li.product a.add_to_cart_button,
.pulse-products ul.products li.product a.product_type_variable,
.pulse-products ul.products li.product a.product_type_simple,
.pulse-products ul.products li.product a.product_type_grouped {
    display: inline-block !important;
    visibility: visible !important;
    padding: 10px 20px !important;
    margin-top: 10px !important;
    text-align: center !important;
}

/* Section */
.pulse-section { margin-bottom: 48px; }
.pulse-section-title {
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom-width: 2px;
    border-bottom-style: solid;
}
.pulse-section-subtitle { margin-bottom: 24px; }

/* Mobile responsive */
@media (max-width: 600px) {
    .pulse-sticky-footer {
        padding: 10px 12px;
    }
    .pulse-footer-inner {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .pulse-cart-summary {
        order: -1; width: 100%; text-align: center; padding-bottom: 6px;
    }
    .pulse-nav-btn {
        padding: 10px 16px;
        flex: 1;
        text-align: center;
        min-width: 0;
    }
    .pulse-sticky-header .pulse-step-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .pulse-tabs {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* ==========================================================================
 * Sticky footer — anchor Astra's footer to the viewport bottom on the
 * landing view, where content is otherwise too short to fill the viewport.
 *
 * Astra (free + Pro) has no native "footer sticks to bottom of viewport"
 * setting; verified by inspecting all 238 sticky-* settings in astra-settings
 * — every one is header-related. The :has() selector below scopes this rule
 * to pages that render .pulse-shop (the package builder), so other Astra
 * pages keep their normal layout.
 *
 * 100dvh ("dynamic viewport height") is the modern unit that correctly
 * excludes mobile Safari's URL bar from the viewport calculation. We list
 * 100vh first as a fallback for browsers that don't understand dvh — the
 * second declaration silently overrides where supported.
 *
 * DOM hierarchy this targets (from Astra footer.php):
 *   #page > #content + .site-footer
 * ========================================================================== */
body:has(.pulse-shop) #page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
body:has(.pulse-shop) #page > #content {
    flex: 1 0 auto;
}
body:has(.pulse-shop) #page > .site-footer {
    flex-shrink: 0;
}

// Dont show add to cart on products that have the call to order tag
.call-to-order-product .woocommerce-variation-add-to-cart {
    display: none !important;
}
.woocommerce-js.call-to-order-product div.product form.cart .variations {
	display: none !important;
}
