/**
 * Mix & Match bundle product cards in shop / category archives.
 * Woodmart uses .wd-entities-title; legacy site CSS set line-height: 16px on 20px titles.
 */

li.product.bb-mix-match-bundle {
    --bb-mix-match-title-line-height: 1.45;
    --bb-mix-match-title-gap: 14px;
}

/* Space between product image block and title */
li.product.bb-mix-match-bundle .product-element-bottom,
li.product.bb-mix-match-bundle .product-element-top + .wd-entities-title,
li.product.bb-mix-match-bundle .product-image-link + .wd-entities-title {
    margin-top: var(--bb-mix-match-title-gap);
}

li.product.bb-mix-match-bundle .wd-entities-title,
li.product.bb-mix-match-bundle h3.wd-entities-title,
li.product.bb-mix-match-bundle .woocommerce-loop-product__title {
    margin: 0;
    padding-top: var(--bb-mix-match-title-gap);
    line-height: var(--bb-mix-match-title-line-height) !important;
}

li.product.bb-mix-match-bundle .wd-entities-title a,
li.product.bb-mix-match-bundle h3.wd-entities-title a,
li.product.bb-mix-match-bundle .woocommerce-loop-product__title a {
    display: block;
    margin-top: 0 !important;
    padding-top: 0;
    line-height: var(--bb-mix-match-title-line-height) !important;
    font-size: inherit !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* Override legacy custom CSS: .product_cat-mix-match-cannabis h3 a { line-height: 16px } */
.tax-product_cat.term-mix-match-cannabis li.product.bb-mix-match-bundle h3.wd-entities-title a,
li.product.bb-mix-match-bundle.product_cat-mix-match-cannabis h3.wd-entities-title a {
    line-height: var(--bb-mix-match-title-line-height) !important;
    margin-top: 0 !important;
}

/* Card content rhythm: title → price → CTA */
li.product.bb-mix-match-bundle .wrap-price,
li.product.bb-mix-match-bundle .price {
    margin-top: 8px;
}

li.product.bb-mix-match-bundle .wd-add-btn,
li.product.bb-mix-match-bundle .add-to-cart-loop,
li.product.bb-mix-match-bundle .product-element-bottom .button {
    margin-top: 12px;
}

/* Hide redundant badge if old loop template markup is cached anywhere */
li.product.bb-mix-match-bundle .bb-bundle-info {
    display: none !important;
}
