/* A shared, responsive price/availability row for classic and Blocksy product cards. */
ul.products li.product { --bleiz-stock-fallback-inset: 12px; }
@media (max-width: 767px) {
    ul.products li.product { --bleiz-stock-fallback-inset: 11px; }
}
ul.products li.product .bleiz-catalog-price-row {
    display: flex !important;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 6px;
    row-gap: 3px;
    min-width: 0;
    box-sizing: border-box;
    align-self: stretch;
    grid-column: 1 / -1;
    margin-inline: var(--card-inner-spacing, var(--bleiz-stock-fallback-inset, 12px));
    margin-block: 0 7px;
}
html body ul.products li.product .bleiz-catalog-price-row > .price {
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 1 auto;
    width: auto !important;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.bleiz-catalog-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.35;
    color: inherit;
    text-align: start;
}
html body ul.products li.product .bleiz-catalog-price-row > .bleiz-catalog-stock {
    margin: 0 0 0 auto !important;
    flex: 0 1 auto;
    max-width: 100%;
    align-self: center;
    white-space: normal;
}
.bleiz-catalog-stock__label { overflow-wrap: anywhere; }
.bleiz-catalog-stock__dot {
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.bleiz-catalog-stock--instock .bleiz-catalog-stock__dot { color: #4ade80; }
.bleiz-catalog-stock--outofstock .bleiz-catalog-stock__dot { color: #f87171; }
.bleiz-catalog-stock--onbackorder .bleiz-catalog-stock__dot { color: #fbbf24; }
/* Homepage's own 12px desktop and 10px mobile margins. */
html body.page-id-16044 .ba-products ul.products li.product .bleiz-catalog-price-row {
    margin-inline: 12px !important;
    margin-block: 0 10px !important;
}
@media (max-width: 767px) {
    html body.page-id-16044 .ba-products ul.products li.product .bleiz-catalog-price-row {
        margin-inline: 10px !important;
    }
}
/* Preserve aligned labels on any old cached markup until its HTML refreshes. */
ul.products li.product > .bleiz-catalog-stock,
ul.products li.product > .woocommerce-loop-product__link > .bleiz-catalog-stock {
    margin-inline: var(--card-inner-spacing, var(--bleiz-stock-fallback-inset, 12px));
    margin-block: 2px 3px;
}
/* Explicitly override the existing homepage's important price margins. */
html body.page-id-16044 .ba-products .woocommerce ul.products li.product .bleiz-catalog-price-row > .price {
    margin: 0 !important;
    padding: 0 !important;
}

/* 1.0.5: quieter availability chip and tighter price-to-action spacing. */
html body ul.products li.product .bleiz-catalog-price-row {
    column-gap: 5px;
    row-gap: 4px;
    margin-block-end: 0 !important;
}
html body.page-id-16044 .ba-products ul.products li.product .bleiz-catalog-price-row {
    margin-block: 0 0 !important;
}
html body ul.products li.product .bleiz-catalog-stock {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-height: 20px;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    max-width: 100%;
}
html body ul.products li.product .bleiz-catalog-stock--instock {
    color: #a4dfb7;
    background: rgba(74, 222, 128, .09);
}
html body ul.products li.product .bleiz-catalog-stock--outofstock {
    color: #f3a5a5;
    background: rgba(248, 113, 113, .09);
}
html body ul.products li.product .bleiz-catalog-stock--onbackorder {
    color: #e7c583;
    background: rgba(251, 191, 36, .09);
}
html body ul.products li.product .bleiz-catalog-stock__dot {
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
}
@media (max-width: 767px) {
    html body ul.products li.product .bleiz-catalog-stock {
        font-size: 10px !important;
        padding-inline: 5px;
    }
}

/* 1.0.6: keep price and action at the bottom of each equal-height card.
   The old price margin-top:auto no longer stretches the card after wrapping it. */
html body ul.products li.product:has(> .bleiz-catalog-price-row),
html body ul.products li.product:has(> .woocommerce-loop-product__link > .bleiz-catalog-price-row) {
    display: flex !important;
    flex-direction: column;
}
html body ul.products li.product > .woocommerce-loop-product__link:has(> .bleiz-catalog-price-row) {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}
html body ul.products li.product > .woocommerce-loop-product__link:has(> .bleiz-catalog-price-row) > :is(img, figure, .ct-media-container) {
    flex-shrink: 0;
}
html body ul.products li.product > .bleiz-catalog-price-row,
html body ul.products li.product > .woocommerce-loop-product__link > .bleiz-catalog-price-row,
html body.page-id-16044 .ba-products ul.products li.product .bleiz-catalog-price-row {
    margin-block-start: auto !important;
}
/* Make the bottom gap deterministic without changing button styling or actions. */
html body ul.products li.product:has(> .bleiz-catalog-price-row) > .ct-woo-card-actions,
html body ul.products li.product:has(> .bleiz-catalog-price-row) > .button,
html body ul.products li.product:has(> .woocommerce-loop-product__link > .bleiz-catalog-price-row) > :is(.button, .ct-woo-card-actions) {
    margin-block-start: 0 !important;
}
html body.page-id-16044 .ba-products .woocommerce ul.products li.product:has(.bleiz-catalog-price-row) > :is(.ct-woo-card-actions, .button) {
    margin-block-start: 12px !important;
}

/* 1.0.7: Blocksy desktop catalogue optical alignment. The theme renders the
   price glyphs slightly below the flex row's center. Move only the stock chip;
   leave mobile, homepage layout, price, action and row dimensions untouched. */
@media (min-width: 768px) {
    html body:not(.page-id-16044) ul.products li.product > .bleiz-catalog-price-row > .bleiz-catalog-stock {
        transform: translateY(4px);
    }
}
