﻿/* Fix dropdown being cut off */
.woocommerce-ordering {
    overflow: visible !important;
    position: relative;
    z-index: 999;
}

    .woocommerce-ordering select {
        overflow: visible !important;
        position: relative;
        z-index: 1000;
    }

/* Make sure no parent clips it */
.btPostContentHolder,
.btPostSingleItemStandard,
.bt-content {
    overflow: visible !important;
}

/* Equal height cards */
ul.products.columns-4 li.product {
    display: flex;
    flex-direction: column;
}

.btWooShopLoopItemInner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Fix image container width */
.bt_bb_image {
    width: 100%;
    overflow: hidden;
}

/* Truncate item name inside the image block */
.item-card-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Truncate item name inside the h2 headline */
.bt_bb_headline_tag .bt_bb_headline_content span a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bt_bb_headline_tag .bt_bb_headline_content,
.bt_bb_headline_tag .bt_bb_headline_content span {
    display: block;
    overflow: hidden;
    width: 100%;
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
    ul.products.columns-4 li.product {
        width: 48% !important;
    }
}

/* Very small screens: 1 column */
@media (max-width: 480px) {
    ul.products.columns-4 li.product {
        width: 100% !important;
    }
}
