/* Wagport B2B catalog markers: wholesale tier badge on product cards + intro band.
   Tokens: primary #3452ef, dark #17203f, gold #faba5b, radius 8px. */

/* ---- Wholesale tier badge under each product card price ---- */
.wagport-bulk-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 6px 0 2px;
    line-height: 1.25;
}

.wagport-bulk-badge__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #3452ef;
    background: rgba(52, 82, 239, .08);
    border: 1px solid rgba(52, 82, 239, .18);
    border-radius: 999px;
    padding: 2px 9px;
    white-space: nowrap;
}

.wagport-bulk-badge__tiers {
    font-size: 11px;
    font-weight: 600;
    color: #5a6377;
    white-space: nowrap;
}

/* WooDmart centers some loop layouts; keep the badge aligned with the price. */
.products .product-grid-item.text-center .wagport-bulk-badge,
.wd-products.text-center .wagport-bulk-badge {
    justify-content: center;
}

/* ---- B2B intro band above the product grid ---- */
.wagport-catalog-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 26px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(52, 82, 239, .05), rgba(52, 82, 239, .02));
    border: 1px solid rgba(52, 82, 239, .12);
    border-radius: 10px;
}

/* The B2B band is injected (via before_main_content — the only hook WooDmart's
   block archive fires) as a sibling ABOVE the page-title section inside
   .wd-content-area, so it read in reversed order (band above the "Shop / breadcrumb"
   bar). They are direct siblings, so flex-order swaps them: title/breadcrumb (order 1)
   → band (order 2) → product grid (order 3). Also zero the section's margin-top:-40px
   (meant to overlap a hero) so it doesn't ride up under the header. Catalog archives only. */
.archive .wd-content-area:has(> .wagport-catalog-band),
.post-type-archive-product .wd-content-area:has(> .wagport-catalog-band),
.woocommerce-shop .wd-content-area:has(> .wagport-catalog-band) {
    display: flex;
    flex-direction: column;
}
.wd-content-area:has(> .wagport-catalog-band) > * { order: 3; }
/* Title/breadcrumb first; keep its natural -40px margin-top so it sits flush under the
   header (the band is below it now, so no collision). Tighten the gap down to the band. */
.wd-content-area:has(> .wagport-catalog-band) > .wp-block-wd-section:has(.wd-woo-page-title) { order: 1; margin-bottom: 16px; }
.wd-content-area:has(> .wagport-catalog-band) > .wagport-catalog-band { order: 2; }

.wagport-catalog-band__item {
    position: relative;
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wagport-catalog-band__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    border-radius: 3px;
    background: #faba5b;
}

.wagport-catalog-band__title {
    font-size: 14px;
    font-weight: 700;
    color: #17203f;
}

.wagport-catalog-band__desc {
    font-size: 12.5px;
    color: #5a6377;
    line-height: 1.35;
}

/* The demo "Shop by Brand" carousel is removed from the shop-archive layouts
   at the block level; this is a defensive fallback in case any catalog view
   still renders a brands widget (Wagport carries no brand line). */
.wd-brands.brands-widget {
    display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .wagport-catalog-band {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 16px;
        margin-bottom: 18px;
    }

    .wagport-bulk-badge__tiers {
        font-size: 10px;
        white-space: normal;
    }
}
