.bzb-product-hub,
.bzb-product-hub *,
.bzb-product-hub *::before,
.bzb-product-hub *::after {
    box-sizing: border-box;
}

.bzb-product-hub {
    background: #000;
    color: #fff;
}

/* Filter bar */
.bzb-product-hub__filters-wrapper { 
    border-bottom: 1px solid #fff;
    margin-bottom: 40px;
}

.bzb-product-hub__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 16px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.bzb-product-hub__filter-group {
    display: flex;
}

.bzb-product-hub__filter-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bzb-product-hub__filter-cluster--sorting {
    margin-left: auto;
}

.bzb-product-hub__icon {
    display: inline-flex;
    flex-shrink: 0;
}

.bzb-product-hub__icon svg {
    display: block;
}

.bzb-product-hub__filters select {
    appearance: none;
    -webkit-appearance: none;
    background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23fff' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E") no-repeat right 16px center;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 36px 12px 16px;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    min-width: 140px;
}

.bzb-product-hub__filters select:focus {
    outline: 2px solid #de6a40;
    outline-offset: 2px;
}

.bzb-product-hub__apply {
    background: transparent;
    color: #fffdfa;
    border: 2px solid #de6a40;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
}

/* Grid */

.bzb-product-hub__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding: 24px 16px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.bzb-product-hub__empty {
    text-align: center;
    padding: 60px 0;
    font-size: 16px;
}

/* Card */

.bzb-product-hub__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bzb-product-hub__card-image {
    background: #101010;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bzb-product-hub__card-image img {
    max-width: 82%;
    max-height: 82%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bzb-product-hub__card-title {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.bzb-product-hub__card-price {
    font-weight: 700;
    font-size: 16px;
}

.bzb-product-hub__card-price .woocommerce-price-suffix {
    color: #808080;
    font-family: Inter;
    font-size: 12.8px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 187.5% */
}

.bzb-product-hub__card-price .woocommerce-Price-amount {
    color: #fff;
}

.bzb-product-hub__card-price s .woocommerce-Price-amount {
    color: #808080;
}

.bzb-product-hub__card-description {
    font-size: 12px;
    line-height: 20px;
    margin: 0;
    flex-grow: 1;
}

.bzb-product-hub__card-description p:first-child, 
.bzb-product-hub__card-description p:last-child {
    margin-bottom: 0;
}

.bzb-product-hub__card-actions {
    display: flex;
    gap: 20px;
    padding-bottom: 16px;
}

/* [ajax_add_to_cart] wraps its <a> in two extra divs
   (.elementor-widget-container > .elementor-button-wrapper), so the actual
   flex children of __card-actions are that wrapper and .bzb-product-hub__discover
   — both need to end up equal width despite only one of them carrying a
   border directly on the flex item itself. A plain `flex: 1 0 0` looks right
   but isn't: with box-sizing:border-box, `flex-basis: 0` is still resolved
   against the content box, so the item with its own border/padding (Discover)
   ends up visibly wider than the borderless wrapper div. A percentage basis
   sidesteps that quirk and gives genuinely equal widths. */
.bzb-product-hub__card-actions > * {
    flex: 0 0 calc(50% - 10px); /* 10px = half the 20px gap */
    min-width: 0;
}

.bzb-product-hub__card-actions .elementor-widget-container,
.bzb-product-hub__card-actions .elementor-button-wrapper {
    width: 100%;
}

.bzb-product-hub__card-actions .add_to_cart_button,
a.bzb-product-hub__discover,
a.bzb-product-hub__discover:hover {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: transparent;
    color: #fffdfa;
    border: 2px solid #de6a40;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.bzb-product-hub__card-actions .add_to_cart_button:hover,
.bzb-product-hub__card-actions .add_to_cart_button:focus,
a.bzb-product-hub__discover:hover,
a.bzb-product-hub__discover:focus {
    background: #de6a40;
    color: #fffdfa;
}

/* Responsive */

@media (max-width: 1024px) {
    .bzb-product-hub__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .bzb-product-hub__filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px 10px;
    }

    /* Icon stays beside its select(s) instead of wrapping onto its own line:
       the group(s) share the row with the icon and flex to fill it, rather
       than each forcing 100% width (which is what pushed the icon above). */
    .bzb-product-hub__filter-cluster,
    .bzb-product-hub__filter-cluster--sorting {
        width: 100%;
        margin-left: 0;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .bzb-product-hub__filter-group {
        flex: 1 1 0;
        min-width: 0;
    }

    .bzb-product-hub__filters select {
        width: 100%;
        min-width: 0;
        padding: 8px 22px 8px 10px;
        font-size: 10px;
        letter-spacing: 2px;
        background-position: right 8px center;
    }

    .bzb-product-hub__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 16px 10px;
    }
}
