/* ═══════════════════════════════════════════════════════════════════
   BMPC DESIGN SYSTEM — JUNE 10 2026 MASTER CORRECTION
   Source of truth: June 10 Master Correction & QA Handoff
   ═══════════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────────── */
:root {
    --bmpc-max-width:  1200px;
    --bmpc-red:        #e42525;
    --bmpc-black:      #111111;
    --bmpc-white:      #ffffff;
    --bmpc-gray:       #f3f3f3;
    --bmpc-gray-dark:  #2b2b2b;
    --bmpc-border:     #d9d9d9;
    --bmpc-font:       Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
    border-radius: 0 !important;
    box-sizing: border-box;
}

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO — 2-column grid: 42% copy | 58% image
   Grid lives directly on .bmpc-hero per master doc §5
   ═══════════════════════════════════════════════════════════════════ */
.bmpc-hero {
    width: min(100% - 48px, var(--bmpc-max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 42%) minmax(420px, 58%);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    padding: clamp(48px, 6vw, 80px) 0;
    background: var(--bmpc-white);
    overflow: hidden;
}

/* ── HERO COPY (left column) ─────────────────────────────────────── */
.bmpc-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 460px;
    color: var(--bmpc-black);
    display: flex;
    flex-direction: column;
}

.bmpc-hero-kicker {
    display: block;
    font-family: var(--bmpc-font);
    font-size: clamp(15px, 1.3vw, 19px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--bmpc-black);
    margin: 0 0 14px;
}

/* No <br> tags — CSS line-height handles wrapping */
.bmpc-hero-copy h1 {
    font-family: var(--bmpc-font);
    font-weight: 700;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.0;
    letter-spacing: -0.035em;
    color: var(--bmpc-black);
    margin: 0 0 16px;
    text-transform: uppercase;
    word-wrap: break-word;
}

.bmpc-hero-copy p {
    font-family: var(--bmpc-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: #333333;
    margin: 0 0 3px;
}

/* ── VALUE CALLOUT — white bg, subtle border only (Apple-minimal) ── */
.bmpc-hero__value-callout {
    margin: 22px 0 0;
    padding: 14px 18px;
    background: var(--bmpc-white);
    border: 1px solid var(--bmpc-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.bmpc-hero__value-callout strong {
    font-family: var(--bmpc-font);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--bmpc-black);
    display: block;
}

.bmpc-hero__value-callout span {
    font-family: var(--bmpc-font);
    font-size: 0.8125rem;
    font-weight: 400;
    color: #555555;
    display: block;
}

/* ── HERO CTAs ───────────────────────────────────────────────────── */
.bmpc-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    align-items: center;
}

/* ── HERO IMAGE (right column) — dominant per June 10 addendum §3 ── */
.bmpc-hero__image-wrap {
    position: relative;
    z-index: 1;
    width: min(100%, 880px);
    min-width: 0;
}

.bmpc-hero__image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center right;
}

/* ── TABLET (≤1199px): drop to single column ─────────────────────── */
@media (max-width: 1199px) {
    .bmpc-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 0;
    }
    .bmpc-hero-copy        { max-width: 680px; }
    .bmpc-hero__image-wrap { max-width: 760px; margin-left: auto; margin-right: auto; }
}

/* ── MOBILE (≤767px) ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    .bmpc-hero {
        width: min(100% - 32px, var(--bmpc-max-width));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 36px 0;
        gap: 24px;
        overflow: visible;
    }
    .bmpc-hero-copy        { order: 1; max-width: 100%; }
    .bmpc-hero__image-wrap { order: 2; max-width: 100%; width: 100%; }

    .bmpc-hero-copy h1     { font-size: clamp(32px, 9vw, 44px); line-height: 1.0; }

    .bmpc-hero__value-callout { width: 100%; }

    .bmpc-hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .bmpc-hero-ctas .bmpc-btn {
        width: 100%;
        min-height: 56px;
        box-sizing: border-box;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.bmpc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    font-family: var(--bmpc-font);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    white-space: nowrap;
}

.bmpc-btn-primary {
    background: var(--bmpc-red);
    border: 1px solid var(--bmpc-red);
    color: var(--bmpc-white);
}
.bmpc-btn-primary:hover { background: #c01f1f; border-color: #c01f1f; color: var(--bmpc-white); }

.bmpc-btn-secondary-on-light {
    background: transparent;
    border: 1px solid var(--bmpc-black);
    color: var(--bmpc-black);
}
.bmpc-btn-secondary-on-light:hover { background: var(--bmpc-black); color: var(--bmpc-white); }

.bmpc-btn-secondary {
    background: transparent;
    border: 1px solid var(--bmpc-white);
    color: var(--bmpc-white);
}
.bmpc-btn-secondary:hover { background: var(--bmpc-white); color: var(--bmpc-black); }

/* ═══════════════════════════════════════════════════════════════════
   TRUST STRIP — 4-col grid, 26px icons per master doc §5 / §13
   ═══════════════════════════════════════════════════════════════════ */
.bmpc-trust-strip {
    width: min(100% - 48px, var(--bmpc-max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    background: #eeeeee;
    padding: 22px 40px;
    box-sizing: border-box;
}

.bmpc-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--bmpc-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bmpc-black);
}

.bmpc-trust-item img,
.bmpc-trust-item svg {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .bmpc-trust-strip {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 28px 36px;
        gap: 26px;
    }
    .bmpc-trust-item { font-size: 15px; }
    .bmpc-trust-item img,
    .bmpc-trust-item svg { width: 34px; height: 34px; flex-basis: 34px; }
}

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════ */
main .bmpc-section {
    padding: clamp(48px, 6vw, 80px) 5%;
    box-sizing: border-box;
    width: 100%;
}
.bmpc-section--light {
    background: var(--bmpc-white);
    border-top: 1px solid #eaeaea;
}

.bmpc-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.bmpc-section-title {
    font-family: var(--bmpc-font);
    font-weight: 700;
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: -0.02em;
    color: var(--bmpc-black);
    margin: 0 0 12px;
}

.bmpc-section-subtitle {
    font-family: var(--bmpc-font);
    font-size: 1rem;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   RESEARCH SET CARDS — .bmpc-research-set-grid + .bmpc-research-card
   ═══════════════════════════════════════════════════════════════════ */
.bmpc-research-set-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: min(100% - 48px, 980px);
    margin: 0 auto;
    align-items: stretch;
}

.bmpc-research-card {
    border: 1px solid var(--bmpc-border);
    border-top: 3px solid var(--bmpc-red);
    background: var(--bmpc-white);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    cursor: pointer;
    transition: border-color 0.15s;
}
.bmpc-research-card:hover { border-color: var(--bmpc-black); border-top-color: var(--bmpc-red); }

.bmpc-card-callout {
    display: block;
    background: var(--bmpc-black);
    color: var(--bmpc-white);
    font-family: var(--bmpc-font);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    text-align: center;
}

.bmpc-card-element {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 16px 8px;
}

.bmpc-card-symbol {
    font-family: var(--bmpc-font);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bmpc-red);
    line-height: 1;
}

.bmpc-card-badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bmpc-gray-dark);
    border: 1px solid #c7c6c6;
    padding: 3px 7px;
    line-height: 1.4;
}

.bmpc-card-divider {
    display: block;
    height: 1px;
    background: var(--bmpc-border);
}

.bmpc-card-type {
    font-family: var(--bmpc-font);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--bmpc-gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bmpc-card-cta {
    display: block;
    background: var(--bmpc-white);
    color: var(--bmpc-black);
    font-family: var(--bmpc-font);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 16px;
    text-align: center;
    border-top: 1px solid #e2e3e4;
    margin-top: auto;
    transition: background 0.15s, color 0.15s;
}
.bmpc-research-card:hover .bmpc-card-cta { background: var(--bmpc-black); color: var(--bmpc-white); }

@media (max-width: 900px) {
    .bmpc-research-set-grid {
        grid-template-columns: 1fr;
        width: min(100% - 32px, 480px);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   RESEARCH INDEX SECTION — sharp edges, clean border, centered vars
   ═══════════════════════════════════════════════════════════════════ */
.bmpc-research-index {
    width: min(100% - 48px, var(--bmpc-max-width));
    margin: 0 auto clamp(48px, 6vw, 80px);
    border: 1px solid var(--bmpc-border);
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.15s;
}
.bmpc-research-index:hover { border-color: var(--bmpc-black); }

.bmpc-research-index__inner {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: var(--bmpc-black);
    min-height: 280px;
}

.bmpc-research-index__image-wrap {
    flex: 0 0 50%;
    overflow: hidden;
    background: #f8f8f8;
}

.bmpc-research-index__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.bmpc-research-index:hover .bmpc-research-index__image-wrap img { transform: scale(1.02); }

.bmpc-research-index__copy {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    border-left: 1px solid var(--bmpc-border);
    background: var(--bmpc-white);
}

.bmpc-research-index__label {
    font-family: var(--bmpc-font);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bmpc-red);
}

.bmpc-research-index__copy h2 {
    font-family: var(--bmpc-font);
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--bmpc-black);
    margin: 0;
    line-height: 1.1;
}

.bmpc-research-index__copy p {
    font-family: var(--bmpc-font);
    font-size: 0.9375rem;
    font-weight: 400;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

.bmpc-research-index__cta {
    display: inline-block;
    font-family: var(--bmpc-font);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bmpc-black);
    border-bottom: 1px solid var(--bmpc-black);
    padding-bottom: 2px;
    margin-top: 4px;
    width: fit-content;
    transition: color 0.15s, border-color 0.15s;
}
.bmpc-research-index:hover .bmpc-research-index__cta { color: var(--bmpc-red); border-color: var(--bmpc-red); }

@media (max-width: 767px) {
    .bmpc-research-index__inner { flex-direction: column; min-height: auto; }
    .bmpc-research-index__image-wrap { flex: none; height: 220px; }
    .bmpc-research-index__copy { padding: 2rem; border-left: none; border-top: 1px solid var(--bmpc-border); }
}

/* ═══════════════════════════════════════════════════════════════════
   CLARITY GRID
   ═══════════════════════════════════════════════════════════════════ */
.bmpc-clarity-grid-new {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: min(100% - 48px, var(--bmpc-max-width));
    margin: 0 auto;
}

.bmpc-clarity-card-new {
    border: 1px solid var(--bmpc-border);
    padding: 28px 20px;
    background: var(--bmpc-white);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bmpc-clarity-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.bmpc-clarity-num {
    font-family: var(--bmpc-font);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bmpc-red);
    letter-spacing: 0.04em;
}

.bmpc-clarity-card-new h3 {
    font-family: var(--bmpc-font);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bmpc-black);
    margin: 0;
}

.bmpc-clarity-card-new p {
    font-family: var(--bmpc-font);
    font-size: 0.8125rem;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .bmpc-clarity-grid-new { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .bmpc-clarity-grid-new { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════════════════════════════ */
.bmpc-cta-band {
    background: var(--bmpc-black);
    color: var(--bmpc-white);
    text-align: center;
    padding: clamp(56px, 7vw, 100px) 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.bmpc-cta-band h2 {
    font-family: var(--bmpc-font);
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--bmpc-white);
    margin: 0;
}

.bmpc-cta-band p {
    font-family: var(--bmpc-font);
    font-size: 1rem;
    font-weight: 400;
    color: #bbbbbb;
    max-width: 520px;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   WOOCOMMERCE SALE BADGE OVERRIDES
   Kill default .onsale, then selectively re-enable .bmpc-savings-badge
   ═══════════════════════════════════════════════════════════════════ */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce-page span.onsale { display: none !important; }

span.onsale.bmpc-savings-badge {
    display: inline-block !important;
    background: #1f8f3a !important;
    color: #ffffff !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 4px 10px !important;
    border-radius: 0 !important;
    line-height: 1.4 !important;
    position: absolute;
    top: 12px;
    left: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   WOOCOMMERCE — suppress bloat
   ═══════════════════════════════════════════════════════════════════ */
/* woocommerce-tabs RESTORED — was incorrectly hidden here; tabs now visible */
.woocommerce #reviews,
.woocommerce .woocommerce-product-gallery__trigger,
.woocommerce img.zoomImg { display: none !important; }

/* Continue to Shop button in cart */
.bmpc-continue-shopping {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    font-family: var(--bmpc-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--bmpc-black);
    color: var(--bmpc-black);
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    margin-right: 12px;
}
.bmpc-continue-shopping:hover { background: var(--bmpc-black); color: var(--bmpc-white); }

/* =========================================================
   BMPC GLOBAL BRAND GREEN FUTURE-PROOFING SYSTEM
   Deployed: 2026-06-10c
   ========================================================= */
:root {
  --bmpc-green: #1f8f3a;

  /* Force-override native WooCommerce theme fallback variables globally */
  --woocommerce: var(--bmpc-green);
  --wd-primary-color: var(--bmpc-green); /* Targets theme accent skins */
  --wc-green: var(--bmpc-green);
  --product-accent: var(--bmpc-green);
}

/* 1. Global Price & Currency Future-Proofing (All current & new products) */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.amount,
bdi,
.woocommerce-Price-amount,
.woocommerce-Price-currencySymbol {
  color: var(--bmpc-green) !important;
}

/* 2. Global Stock Status Future-Proofing */
.woocommerce div.product .stock.in-stock,
.woocommerce p.stock.in-stock,
.product-type-simple .in-stock {
  color: var(--bmpc-green) !important;
}

/* 3. Future Product Layout & Accent Borders */
.woocommerce .related.products h2,
.woocommerce .upsells.products h2,
.woocommerce-tabs ul.tabs li.active a {
  border-color: var(--bmpc-green) !important;
}

/* 5. WooCommerce notice/alert green accents */
.woocommerce .woocommerce-message { border-top-color: var(--bmpc-green) !important; }
.woocommerce .woocommerce-message::before { color: var(--bmpc-green) !important; }

/* =========================================================
   MOBILE FIXES — 2026-06-10d
   1. Header logo centered, no cart overlap
   2. Research index image fits mobile viewport
   ========================================================= */

/* ── HEADER — mobile layout ──────────────────────────────── */
@media (max-width: 767px) {

    /* Switch header to 3-zone grid: hamburger | logo | cart */
    .frontend-header {
        display: grid !important;
        grid-template-columns: 36px 1fr 36px !important;
        align-items: center !important;
        padding: 12px 16px !important;
        flex-wrap: unset !important;
    }

    /* Hamburger — col 1, left-aligned */
    .mobile-menu-toggle {
        grid-column: 1;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
    }

    /* Logo — col 2, centered */
    .header-logo-block {
        grid-column: 2;
        width: 100% !important;
        max-width: 100% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header-logo-block a {
        display: flex;
        justify-content: center;
    }

    .header-logo-block img {
        width: auto !important;
        max-width: 200px !important;
        height: auto !important;
        transform: none !important;   /* kill the scale(1.3) on mobile */
        transform-origin: unset !important;
        display: block !important;
    }

    /* Nav — full width below grid row */
    .nav-wrapper {
        grid-column: 1 / -1;
        order: 4;
        width: 100%;
        display: none !important;      /* hidden until toggled */
        flex-direction: column;
        padding: 8px 0 16px;
        border-top: 1px solid #eee;
    }

    .nav-wrapper.mobile-active {
        display: flex !important;
    }

    .nav-wrapper ul {
        flex-direction: column !important;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .nav-wrapper ul li a {
        display: block;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #111;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Cart icon — col 3, right-aligned */
    .header-cart {
        grid-column: 3;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
    }

    /* Hide redundant text "CART" label on mobile — icon is enough */
    .header-cart .cart-text-label {
        display: none !important;
    }

    .header-cart img {
        height: 24px !important;
        width: auto;
    }
}

/* ── RESEARCH INDEX IMAGE — mobile containment ───────────── */
@media (max-width: 767px) {

    .bmpc-research-index__image-wrap {
        flex: none !important;
        height: auto !important;        /* override the fixed 220px */
        max-height: 260px;
        overflow: hidden;
        width: 100%;
    }

    .bmpc-research-index__image-wrap img {
        width: 100% !important;
        height: auto !important;
        max-height: 260px;
        object-fit: contain !important; /* show full image, no crop */
        object-position: center center;
        transform: none !important;     /* disable scale hover on mobile */
    }
}

/* SINGLE PRODUCT PAGE: Main price block */
.woocommerce div.product p.price .woocommerce-Price-amount,
.woocommerce div.product p.price .woocommerce-Price-currencySymbol,
.woocommerce div.product p.price bdi { color: #2b2b2b !important; }

.woocommerce div.product p.price ins .woocommerce-Price-amount,
.woocommerce div.product p.price ins .woocommerce-Price-currencySymbol,
.woocommerce div.product p.price ins bdi { color: #e42525 !important; }

.woocommerce div.product p.price del .woocommerce-Price-amount,
.woocommerce div.product p.price del .woocommerce-Price-currencySymbol,
.woocommerce div.product p.price del bdi { color: #9b9b9b !important; text-decoration: line-through !important; }


/* =======================================================================
   BMP LOOP CARD — TOP BORDER ACCENT COLORS  (v1.4.0)
   bmp_card_open() outputs bmp-loop-card--border-{slug}.
   Neutral = inherits default .bmpc-research-card border-top (red).
   Each named accent overrides border-top only; all other card styles
   remain inherited from .bmpc-research-card.
   Hover state mirrors the same slug so accent persists on hover.
   ======================================================================= */

/* Default / no slug — neutral, inherits existing card border-top:3px solid var(--bmpc-red) */
.bmp-loop-card--border-neutral {
    /* intentionally empty — falls through to .bmpc-research-card default */
}

/* Red (original, explicit class for parity) */
.bmp-loop-card--border-red         { border-top: 3px solid #e42525 !important; }
.bmp-loop-card--border-red:hover   { border-top-color: #e42525 !important; }

/* Blue */
.bmp-loop-card--border-blue        { border-top: 3px solid #2563EB !important; }
.bmp-loop-card--border-blue:hover  { border-top-color: #2563EB !important; }

/* Green */
.bmp-loop-card--border-green       { border-top: 3px solid #00C853 !important; }
.bmp-loop-card--border-green:hover { border-top-color: #00C853 !important; }

/* Teal */
.bmp-loop-card--border-teal        { border-top: 3px solid #14B8A6 !important; }
.bmp-loop-card--border-teal:hover  { border-top-color: #14B8A6 !important; }

/* Orange */
.bmp-loop-card--border-orange       { border-top: 3px solid #F97316 !important; }
.bmp-loop-card--border-orange:hover { border-top-color: #F97316 !important; }

/* Pink */
.bmp-loop-card--border-pink        { border-top: 3px solid #EC4899 !important; }
.bmp-loop-card--border-pink:hover  { border-top-color: #EC4899 !important; }

/* Purple */
.bmp-loop-card--border-purple       { border-top: 3px solid #7C3AED !important; }
.bmp-loop-card--border-purple:hover { border-top-color: #7C3AED !important; }

/* Charcoal */
.bmp-loop-card--border-charcoal       { border-top: 3px solid #2b2b2b !important; }
.bmp-loop-card--border-charcoal:hover { border-top-color: #2b2b2b !important; }


/* =======================================================================
   HOMEPAGE FEATURED GRID  (v1.4.0)
   Wrapper for [bmp_homepage_featured] shortcode output.
   Shares bmpc-research-set-grid layout (already defined above).
   Heading style matches existing section headings on the homepage.
   ======================================================================= */

.bmp-homepage-featured-grid {
    /* inherits bmpc-research-set-grid column/gap rules */
}

.bmp-homepage-grid__heading {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bmpc-black);
    margin: 0 0 1.5rem;
    padding: 0;
}


/* =======================================================================
   BMP v1.5.0 — #research-sets HIGH-SPECIFICITY PRICE OVERRIDES
   Fixes green price regression on homepage after shortcode migration.
   The theme's global green rule (.woocommerce-Price-amount, bdi { color: var(--bmpc-green) }

/* =======================================================================
   BMP v1.5.1 — GLOBAL SINGLE-PRICE COLOR LOCK
   Extends the #research-sets fix to ALL contexts (PDP, cross-sell, shop).
   The theme injects .woocommerce-Price-amount { color: var(--bmpc-green) }

/* =======================================================================
   BMP v1.5.2 — SINGLE PRODUCT PAGE PRICE: 22px / 700 LOCK
   The native WC p.price block renders on /product/* pages. Our card
   bmpc-card-price-single spans do not render there — the WC summary
   template outputs p.price directly. The global green rule at line 779
   (bare bdi, .woocommerce-Price-amount selectors) wins via source order.
   This block wins via higher specificity + !important on font-size.
   ======================================================================= */

/* Regular / single price on product page */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* Lock inner amount/bdi/currency to match — overrides bare global selectors */
.woocommerce div.product p.price .woocommerce-Price-amount,
.woocommerce div.product p.price bdi,
.woocommerce div.product p.price .woocommerce-Price-currencySymbol,
.woocommerce div.product span.price .woocommerce-Price-amount,
.woocommerce div.product span.price bdi,
.woocommerce div.product span.price .woocommerce-Price-currencySymbol {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2b2b2b !important;
}

/* Sale price: ins = final (red), del = strikethrough (gray) — keep colors correct */
.woocommerce div.product p.price ins .woocommerce-Price-amount,
.woocommerce div.product p.price ins bdi,
.woocommerce div.product span.price ins .woocommerce-Price-amount,
.woocommerce div.product span.price ins bdi {
    color: #e42525 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

.woocommerce div.product p.price del .woocommerce-Price-amount,
.woocommerce div.product p.price del bdi,
.woocommerce div.product span.price del .woocommerce-Price-amount,
.woocommerce div.product span.price del bdi {
    color: #9b9b9b !important;
    font-size: 16px !important;
    text-decoration: line-through !important;
}


/* HEADER - desktop responsive scaling */
@media (min-width: 768px) and (max-width: 1100px) {
    .header-logo-block {
        width: 280px !important;
        flex-shrink: 1;
    }
    .nav-wrapper ul {
        gap: 16px !important;
    }
    .nav-wrapper ul li a {
        font-size: 13px !important;
    }
}

@media (min-width: 1101px) and (max-width: 1280px) {
    .header-logo-block {
        width: 340px !important;
        flex-shrink: 1;
    }
    .nav-wrapper ul {
        gap: 22px !important;
    }
}

/* ==========================================================================
   BMP RESEARCH CARD — Final Authoritative Block (v1.9.2)
   ALL selectors scoped to .bmpc-research-card to prevent WC bleed.
   DO NOT ADD CARD RULES ANYWHERE ELSE IN THIS FILE.
   ========================================================================== */

/* ── Image wrap ─────────────────────────────────────────────────────── */
.bmpc-research-card .bmpc-card-img-wrap {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fafafa;
    overflow: hidden;
}
.bmpc-research-card .bmpc-card-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ── Discount badge — top-right, green rounded pill, white text ───── */
.bmpc-research-card .bmpc-card-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2d8a4e;
    color: #ffffff;
    font-family: var(--bmpc-font);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

/* ── Data block: title / subtitle / desc — centered ─────────────── */
.bmpc-research-card .bmpc-card-data {
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.bmpc-research-card .bmpc-card-title {
    font-family: var(--bmpc-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111111;
    margin: 0 0 3px;
    text-align: center;
}
.bmpc-research-card .bmpc-card-subtitle {
    font-family: var(--bmpc-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #444444;
    margin: 0 0 6px;
    display: block;
    text-align: center;
}
.bmpc-research-card .bmpc-card-desc {
    font-family: var(--bmpc-font);
    font-size: 11px;
    font-weight: 400;
    color: #888888;
    display: block;
    margin: 0;
    text-align: center;
}

/* ── Pricing block — centered ────────────────────────────────────── */
.bmpc-research-card .bmpc-card-pricing {
    padding: 12px 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

/* Crossed-out original price */
.bmpc-research-card .bmpc-card-price-original {
    font-size: 13px;
    font-weight: 400;
    color: #999999;
    text-decoration: line-through;
    display: block;
    text-align: center;
}
.bmpc-research-card .bmpc-card-price-original .woocommerce-Price-amount,
.bmpc-research-card .bmpc-card-price-original bdi,
.bmpc-research-card .bmpc-card-price-original .woocommerce-Price-currencySymbol {
    color: #999999 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

/* Sale price — large red */
.bmpc-research-card .bmpc-card-price-final {
    font-size: 26px;
    font-weight: 800;
    color: #bc3527;
    display: block;
    text-align: center;
    line-height: 1.1;
}
.bmpc-research-card .bmpc-card-price-final .woocommerce-Price-amount,
.bmpc-research-card .bmpc-card-price-final bdi,
.bmpc-research-card .bmpc-card-price-final .woocommerce-Price-currencySymbol {
    color: #bc3527 !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* Single (full price) — large dark */
.bmpc-research-card .bmpc-card-price-single {
    font-size: 26px;
    font-weight: 800;
    color: #111111;
    display: block;
    text-align: center;
    line-height: 1.1;
}
.bmpc-research-card .bmpc-card-price-single .woocommerce-Price-amount,
.bmpc-research-card .bmpc-card-price-single bdi,
.bmpc-research-card .bmpc-card-price-single .woocommerce-Price-currencySymbol {
    color: #111111 !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* YOU SAVE pill — green bg, white text, rounded */
.bmpc-research-card .bmpc-card-savings-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #2d8a4e;
    color: #ffffff;
    border: none;
    font-family: var(--bmpc-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Per-vial breakdown */
.bmpc-research-card .bmpc-card-savings-meta {
    font-family: var(--bmpc-font);
    font-size: 11px;
    font-weight: 400;
    color: #555555;
    display: block;
    text-align: center;
}

/* ===================================================================
   SHOP PAGE ENHANCEMENTS — Banner, Hero, Sidebar (bmp-shop-enhancements.php)
   Scope: .bmp-shop-banner / .bmp-shop-hero / .bmp-shop-layout / .bmp-shop-sidebar
   =================================================================== */

/* ── Promo Banner ─────────────────────────────────────────────── */
.bmp-shop-banner {
    width: 100%;
    padding: 12px 24px;
}
.bmp-shop-banner__inner {
    max-width: var(--bmpc-max-width);
    margin: 0 auto;
    text-align: center;
}
.bmp-shop-banner__text {
    font-family: var(--bmpc-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bmpc-white) !important;
    text-decoration: none;
}
a.bmp-shop-banner__text:hover { text-decoration: underline; }

/* ── Shop Hero ─────────────────────────────────────────────────── */
.bmp-shop-hero {
    width: 100%;
    max-width: var(--bmpc-max-width);
    margin: 0 auto;
    padding: 40px 0 32px;
    text-align: left;
}
.bmp-shop-hero__eyebrow {
    display: block;
    font-family: var(--bmpc-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bmpc-red);
    margin-bottom: 10px;
}
.bmp-shop-hero__title {
    font-family: var(--bmpc-font);
    font-size: 36px;
    font-weight: 800;
    color: var(--bmpc-black);
    margin: 0 0 12px 0;
    line-height: 1.15;
}
.bmp-shop-hero__desc {
    font-family: var(--bmpc-font);
    font-size: 15px;
    font-weight: 400;
    color: var(--bmpc-gray-dark);
    max-width: 640px;
    margin: 0;
    line-height: 1.5;
}

/* ── Layout: sidebar + grid ───────────────────────────────────────── */
.bmp-shop-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    max-width: var(--bmpc-max-width);
    margin: 0 auto;
}
.bmp-shop-layout__main {
    flex: 1 1 auto;
    min-width: 0;
}
.bmp-shop-sidebar {
    flex: 0 0 260px;
    width: 260px;
    position: sticky;
    top: 24px;
}

/* ── Sidebar: search ──────────────────────────────────────────────── */
.bmp-shop-search {
    display: flex;
    align-items: center;
    background: var(--bmpc-white);
    border: 1px solid var(--bmpc-border);
    border-radius: 6px;
    padding: 4px 6px 4px 14px;
    margin-bottom: 16px;
}
.bmp-shop-search__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--bmpc-font);
    font-size: 13px;
    color: var(--bmpc-black);
    padding: 8px 0;
}
.bmp-shop-search__input::placeholder { color: #999999; }
.bmp-shop-search__btn {
    background: transparent;
    border: none;
    color: var(--bmpc-gray-dark);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
}
.bmp-shop-search__btn:hover { color: var(--bmpc-red); }

/* ── Sidebar: category panel ─────────────────────────────────────── */
.bmp-shop-categories {
    background: var(--bmpc-white);
    border: 1px solid var(--bmpc-border);
    border-radius: 6px;
    padding: 18px 16px;
}
.bmp-shop-categories__label {
    display: block;
    font-family: var(--bmpc-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bmpc-red);
    margin-bottom: 12px;
}
.bmp-shop-categories__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bmp-shop-cat-pill {
    display: block;
    font-family: var(--bmpc-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--bmpc-gray-dark);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.bmp-shop-cat-pill:hover {
    background: var(--bmpc-gray);
    color: var(--bmpc-black);
}
.bmp-shop-cat-pill.is-active {
    background: var(--bmpc-black);
    color: var(--bmpc-white) !important;
    font-weight: 700;
}

/* ── Responsive: stack sidebar above grid on tablet/mobile ───────── */
@media (max-width: 900px) {
    .bmp-shop-layout {
        flex-direction: column;
    }
    .bmp-shop-sidebar {
        flex: 1 1 auto;
        width: 100%;
        position: static;
    }
    .bmp-shop-hero__title { font-size: 28px; }
}

/* Free shipping — red, truck icon, bordered top */
.bmpc-research-card .bmpc-card-shipping {
    font-family: var(--bmpc-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #bc3527;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 10px 16px;
    border-top: 1px solid #eeeeee;
    margin-top: 10px;
    box-sizing: border-box;
}
.bmpc-research-card .bmpc-card-shipping::before {
    content: "\1F69A";
    font-size: 13px;
    line-height: 1;
}

/* =======================================================================
   PDP SALE PRICE — kill green underline bleed (v1.9.2 fix)
   The global woocommerce-Price-amount green rule bleeds onto ins on PDPs.
   These rules win via source-order (appended last) + !important.
   ======================================================================= */
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: #e42525 !important;
}
.woocommerce div.product p.price ins .woocommerce-Price-amount,
.woocommerce div.product p.price ins .woocommerce-Price-currencySymbol,
.woocommerce div.product p.price ins bdi,
.woocommerce div.product span.price ins .woocommerce-Price-amount,
.woocommerce div.product span.price ins .woocommerce-Price-currencySymbol,
.woocommerce div.product span.price ins bdi {
    color: #e42525 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* =======================================================================
   PDP PRICE — kill green bleed on del strikethrough (v1.9.3 fix)
   The bare bdi/woocommerce-Price-amount green rule at line 678 bleeds
   into the del element color itself, making the strikethrough line green.
   These rules are appended last to win via source order.
   ======================================================================= */
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    color: #9b9b9b !important;
    text-decoration: line-through !important;
    text-decoration-color: #9b9b9b !important;
}
.woocommerce div.product p.price del *,
.woocommerce div.product span.price del * {
    color: #9b9b9b !important;
    text-decoration: none !important;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    color: #e42525 !important;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
.woocommerce div.product p.price ins *,
.woocommerce div.product span.price ins * {
    color: #e42525 !important;
    text-decoration: none !important;
}

/* =======================================================================
   PDP PRICE del — remove bottom underline, keep strikethrough only
   ======================================================================= */
.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
.woocommerce div.product p.price del *,
.woocommerce div.product span.price del * {
    text-decoration: line-through !important;
    text-underline-offset: unset !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   CART UPSELL — .bmp-cart-upsell-wrap + .bmp-cart-upsell-grid
   ═══════════════════════════════════════════════════════════════════ */

.bmp-cart-upsell-wrap {
    margin: 24px 0 0;
    width: 100%;
}

.bmp-cart-upsell-heading {
    font-family: var(--bmpc-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bmpc-gray-dark);
    margin: 0 0 14px;
    padding: 0;
}

.wp-block-woocommerce-cart-items-block .bmp-cart-upsell-grid,
.wc-block-cart .bmp-cart-upsell-grid,
.bmp-cart-upsell-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    align-items: stretch !important;
    flex-direction: unset !important;
}

.bmp-cart-upsell-card {
    font-size: 0.875em;
    min-width: 0 !important;
    width: auto !important;
    flex: unset !important;
    align-self: stretch !important;
}

.bmp-cart-upsell-card .bmpc-card-symbol  { font-size: 1.4rem; }
.bmp-cart-upsell-card .bmpc-card-title   { font-size: 0.8rem; }
.bmp-cart-upsell-card .bmpc-card-img-wrap img { max-height: 140px; object-fit: contain; }
.bmp-cart-upsell-card .bmpc-card-pricing { padding: 8px 14px; }
.bmp-cart-upsell-card .bmpc-card-data    { padding: 8px 14px; }
.bmp-cart-upsell-card .bmpc-card-cta     { font-size: 0.7rem; padding: 11px 12px; }

.bmp-cart-upsell-count-1 .bmp-cart-upsell-grid {
    grid-template-columns: minmax(min(100%, 180px), 320px) !important;
}

@media (max-width: 480px) {
    .bmp-cart-upsell-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =======================================================================
   BMP v2.0.0 — DYNAMIC CART BADGE
   Absolute-positioned count badge on header cart icon.
   Updates via woocommerce_add_to_cart_fragments (AJAX).
   Hidden at count 0.
   ======================================================================= */

/* Establish positioning context on the header cart container */
.header-cart {
    position: relative !important;
}

/* Cart link needs relative for tighter anchoring to icon */
.header-cart a {
    position: relative !important;
}

/* Badge pill — anchored top-right of the cart container */
.bmpc-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    background: var(--bmpc-red);
    color: #ffffff;
    font-family: var(--bmpc-font);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    border-radius: 8px;
    z-index: 10;
    pointer-events: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Hide badge when cart is empty */
.bmpc-cart-badge.bmpc-cart-badge--empty,
.bmpc-cart-badge:empty {
    display: none !important;
}

/* Subtle pop animation when count changes */
@keyframes bmpc-badge-pop {
    0%   { transform: scale(0.6); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}
.bmpc-cart-badge.bmpc-cart-badge--pop {
    animation: bmpc-badge-pop 0.2s ease-out;
}

/* =======================================================================
   BMP v2.2.0 — PAGE BANNER SYSTEM
   Responsive picture banners: Shop, Research, About, Cart.
   July 3 2026 — replaces v2.1.0 background-image approach.
   ======================================================================= */

/* Spacing tokens */
:root {
  --bmpc-space-mobile: 20px;
  --bmpc-space-tablet: 28px;
  --bmpc-space-desktop: 36px;
  --bmpc-page-max: 1280px;
}

/* Banner container */
.bmpc-page-banner {
  width: min(100%, var(--bmpc-page-max));
  margin: clamp(24px, 3vw, 44px) auto clamp(24px, 3vw, 40px);
  padding-inline: clamp(16px, 2.5vw, 28px);
}

/* Picture + image reset */
.bmpc-page-banner__picture,
.bmpc-page-banner__image {
  display: block;
  width: 100%;
}

.bmpc-page-banner__image {
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Banner-to-content spacing connectors */
.bmpc-page-banner + .bmpc-page-content,
.bmpc-page-banner + main,
.bmpc-page-banner + section {
  margin-top: 0;
  padding-top: clamp(20px, 2.5vw, 36px);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .bmpc-page-banner {
    margin-top: 16px;
    margin-bottom: 20px;
    padding-inline: 16px;
  }
}

/* =======================================================================
   BMP v2.2.0 — SHOP-ENHANCEMENTS spacing after banner removal
   The .bmpc-shop-hero block is removed. Ensure sidebar+grid start clean.
   ======================================================================= */
.bmp-shop-layout {
  margin-top: 0;
  padding-top: clamp(20px, 2.5vw, 36px);
}

/* Cart content spacing after banner */
.woocommerce-cart .wp-block-woocommerce-cart {
  margin-top: clamp(20px, 2.5vw, 36px);
}

/* REMOVE: old .bmpc-page-header / Research background-image rule below —
   replaced by the banner system above. Keep selector for non-banner pages
   that may still use it but strip the background. */
.bmpc-page-header {
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
/* No background-image, no min-height, no dark overlay */

.bmpc-page-header .bmpc-h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =======================================================================
   BMP v2.3.0 — MOBILE HEADER CLEARANCE FIX
   July 3 2026

   Problem: style.css stacks margin-top:100px + padding-top:40px = 140px
   on <main> globally. Desktop fixed header is ~80px → fine.
   Mobile fixed header is ~55px → leaves ~85px of dead white space.

   Fix: override to match actual mobile header height + minimal buffer.
   Desktop is untouched. Uses !important to win over style.css rules.
   ======================================================================= */

@media (max-width: 768px) {
  main.bmpc-container,
  main {
    margin-top: 64px !important;  /* clears ~55px fixed header + 9px buffer */
    padding-top: 0 !important;    /* remove stacked 40px from old safe-space rule */
  }
  /* Also cover WooCommerce wrapper on shop/cart */
  .woocommerce {
    padding-top: 0 !important;
  }
}

/* =======================================================================
}

/* ── Align quantity + button in one clean row ──────────────── */
.woocommerce div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 1.25rem;
}
.woocommerce div.product form.cart .quantity {
    margin-right: 0 !important;
    display: inline-flex;
    align-items: center;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
    height: 48px !important;
    min-height: 48px !important;
    line-height: 48px !important;
    padding: 0 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
}
/* =======================================================================
}

/* ── Align quantity + button in one clean row ──────────────── */
.woocommerce div.product form.cart {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 1.25rem;
}
.woocommerce div.product form.cart .quantity {
    margin-right: 0 !important;
    display: inline-flex;
    align-items: center;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
    height: 48px !important;
    min-height: 48px !important;
    line-height: 48px !important;
    padding: 0 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
}
/* =======================================================================
   BMPC v1.5.5 — SINGLE PRODUCT MOBILE FIX
   Fixes: image centering on mobile, iPad Mini gap, quantity sizing.
   ======================================================================= */

/* ── Mobile + iPad Mini (≤1024px): Stack layout + tighten gaps ─ */
@media (max-width: 1024px) {
    /* Gallery wrapper: full width, centered content */
    .woocommerce div.product div.images.woocommerce-product-gallery {
        margin-bottom: 0.75rem !important;
        width: 100% !important;
        text-align: center !important;
        float: none !important;
    }
    /* Force image link + wrapper to center inline children */
    .woocommerce div.product div.images.woocommerce-product-gallery > a,
    .woocommerce div.product div.images.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper,
    .woocommerce div.product div.images.woocommerce-product-gallery > .woocommerce-product-gallery__image {
        text-align: center !important;
        display: block !important;
    }
    /* Image itself: auto margins for horizontal center */
    .woocommerce div.product div.images.woocommerce-product-gallery img,
    .woocommerce div.product div.images.woocommerce-product-gallery .wp-post-image {
        margin: 0 auto !important;
        display: block !important;
        margin-bottom: 0 !important;
    }
    /* Summary area: full width, no float, tight top */
    .woocommerce div.product div.summary {
        margin-top: 0.5rem !important;
        padding-top: 0.25rem !important;
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }
    /* Product title: hug the image */
    .woocommerce div.product .product_title {
        margin-top: 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* ── Quantity selector: match Add to Cart button height ─────── */
.woocommerce div.product form.cart .quantity .qty {
    height: 48px !important;
    min-height: 48px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
    line-height: 48px !important;
    padding: 0 8px !important;
    border: 1px solid var(--bmpc-border) !important;
    border-radius: 4px !important;
    vertical-align: middle !important;
}

/* ── Align quantity + button in one clean row ──────────────── */
.woocommerce div.product form.cart {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 1.25rem;
}
.woocommerce div.product form.cart .quantity {
    margin-right: 0 !important;
    display: inline-flex;
    align-items: center;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
    height: 48px !important;
    min-height: 48px !important;
    line-height: 48px !important;
    padding: 0 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
}


/* =======================================================================
   BMPC v1.5.6 — HOMEPAGE SPACING REDUCTION (Desktop Only)
   Targets the 3 red-boxed whitespace areas per user request.
   Mobile (≤767px) is intentionally untouched.
   ======================================================================= */
@media (min-width: 768px) {
    /* Box 1 + 2: Hero vertical padding 48-80px → 20-32px (~50% reduction) */
    body.home main .bmpc-hero {
        padding: clamp(20px, 3vw, 32px) 0;
    }
    /* Tablet catch */
    @media (max-width: 1199px) {
        body.home main .bmpc-hero {
            padding: 24px 0;
        }
    }
    /* Box 3: Section vertical padding 48-80px → 32-48px (~40% reduction) */
    body.home main .bmpc-section {
        padding: clamp(32px, 4vw, 48px) 5%;
    }
}

/* =======================================================================
   BMPC RESEARCH GRID v2.0 OVERRIDE (Light Cards + Layout Fix)
   ======================================================================= */

.bmpc-research-layout {
    display: flex !important;
    gap: 48px !important;
    align-items: flex-start !important;
}
.bmpc-research-sidebar {
    width: 260px !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 40px !important;
}
.bmpc-research-main { flex: 1 !important; min-width: 0 !important; }

.bmpc-sidebar-search-input {
    width: 100% !important; padding: 12px 16px !important;
    border: 1.5px solid #d1d5db !important; background: #fff !important;
    color: #111 !important; border-radius: 8px !important; font-size: 14px !important;
    outline: none !important; box-shadow: none !important; font-family: inherit !important;
}
.bmpc-sidebar-search-input:focus { border-color: #E31B23 !important; box-shadow: 0 0 0 3px rgba(227,27,35,.08) !important; }

.bmpc-sidebar-heading {
    font-size: 12px !important; font-weight: 700 !important;
    letter-spacing: .08em !important; text-transform: uppercase !important;
    color: #6b7280 !important; margin-bottom: 16px !important; margin-top: 0 !important;
    font-family: inherit !important;
}

.bmpc-categories-list {
    list-style: none !important; padding: 0 !important; margin: 0 !important;
    display: flex !important; flex-direction: column !important; gap: 4px !important;
}
.bmpc-cat-item {
    font-size: 13px !important; font-weight: 500 !important; color: #4b5563 !important;
    padding: 8px 12px !important; cursor: pointer !important;
    transition: all .15s ease-in-out !important; border-radius: 6px !important;
    margin: 0 !important; display: flex !important; align-items: center !important;
    justify-content: space-between !important; line-height: 1.4 !important;
    border: 1px solid transparent !important; user-select: none !important;
}
.bmpc-cat-item:hover { color: #111 !important; background-color: #f3f4f6 !important; }
.bmpc-cat-item.active { background-color: #111 !important; color: #fff !important; font-weight: 600 !important; border-color: #111 !important; }
.bmpc-cat-count { font-size: 12px !important; color: #9ca3af !important; font-weight: 400 !important; }
.bmpc-cat-item.active .bmpc-cat-count { color: rgba(255,255,255,.6) !important; }

.bmpc-results-info { padding-top: 16px !important; border-top: 1px solid #e5e7eb !important; }
.bmpc-showing-text { font-size: 13px !important; color: #6b7280 !important; }
.bmpc-showing-count { color: #111 !important; font-weight: 700 !important; }

.bmpc-post-grid {
    display: grid !important; grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important; width: 100% !important; align-items: stretch !important;
}
.bmpc-card {
    background: #ffffff !important; border: 1px solid #e5e7eb !important;
    border-radius: 10px !important; overflow: hidden !important;
    display: flex !important; flex-direction: column !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
    height: auto !important; cursor: pointer !important;
}
.bmpc-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 24px -8px rgba(0,0,0,.1) !important;
    border-color: #d1d5db !important;
}
.bmpc-card.is-hidden { display: none !important; }

.bmpc-card .bmpc-card-img {
    width: 100% !important; height: 180px !important; overflow: hidden !important;
    background: #f9fafb !important;
}
.bmpc-card .bmpc-card-img img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
    display: block !important; transition: transform .4s ease !important;
}
.bmpc-card:hover .bmpc-card-img img { transform: scale(1.03) !important; }

.bmpc-card .bmpc-card-img-placeholder {
    width: 100% !important; height: 180px !important; background: #f3f4f6 !important;
    display: flex !important; flex-direction: column !important; align-items: center !important;
    justify-content: center !important; gap: 8px !important; color: #9ca3af !important;
}
.bmpc-card .bmpc-card-img-placeholder span {
    font-size: 12px !important; font-weight: 600 !important; text-transform: uppercase !important;
    letter-spacing: .05em !important;
}

.bmpc-card .bmpc-card-content {
    padding: 20px !important; display: flex !important; flex-direction: column !important;
    flex: 1 !important;
}
.bmpc-card .bmpc-card-content h3 {
    font-size: 15px !important; margin: 0 0 16px 0 !important; line-height: 1.4 !important;
    font-weight: 700 !important;
}
.bmpc-card .bmpc-card-content h3 a { color: #111 !important; text-decoration: none !important; transition: color .15s ease !important; }
.bmpc-card .bmpc-card-content h3 a:hover { color: #E31B23 !important; }

.bmpc-card .bmpc-read-btn {
    margin-top: auto !important; display: inline-flex !important; align-items: center !important;
    justify-content: center !important; gap: 6px !important; background: transparent !important;
    border: 1.5px solid #E31B23 !important; color: #E31B23 !important;
    text-align: center !important; padding: 10px 16px !important; border-radius: 6px !important;
    font-weight: 700 !important; text-decoration: none !important; transition: all .2s ease !important;
    text-transform: uppercase !important; font-size: 11px !important; letter-spacing: .04em !important;
    width: 100% !important;
}
.bmpc-card .bmpc-read-btn:hover { background: #E31B23 !important; color: #fff !important; }

.bmpc-no-results {
    display: none !important; width: 100% !important; grid-column: 1 / -1 !important;
    text-align: center !important; padding: 64px 20px !important;
    flex-direction: column !important; align-items: center !important; gap: 12px !important;
}
.bmpc-no-results.is-visible { display: flex !important; }
.bmpc-no-results p { color: #6b7280 !important; font-size: 15px !important; margin: 0 !important; }
.bmpc-clear-filters {
    margin-top: 8px !important; padding: 10px 20px !important; border: 1.5px solid #d1d5db !important;
    background: #fff !important; color: #374151 !important; border-radius: 6px !important;
    font-size: 13px !important; font-weight: 600 !important; cursor: pointer !important;
    transition: all .2s !important;
}
.bmpc-clear-filters:hover { border-color: #E31B23 !important; color: #E31B23 !important; }

@media(max-width:1100px) {
    .bmpc-post-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
    .bmpc-research-layout { gap: 36px !important; }
    .bmpc-research-sidebar { width: 220px !important; }
}
@media(max-width:900px) {
    .bmpc-research-layout { flex-direction: column !important; gap: 32px !important; }
    .bmpc-research-sidebar { width: 100% !important; position: static !important; }
    .bmpc-post-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .bmpc-sidebar-block { margin-bottom: 24px !important; }
}
@media(max-width:640px) {
    .bmpc-post-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .bmpc-research-container { padding: 0 16px !important; }
    .bmpc-card .bmpc-card-img { height: 160px !important; }
    .bmpc-research-sidebar { width: 100% !important; }
}

/* ===== BMPC RESEARCH GRID v2.1 FILTER UX IMPROVEMENTS ===== */

/* When actively filtering, add a temporary flash to the grid container */
.bmpc-research-main.bmpc-is-filtering .bmpc-post-grid {
    animation: bmpc-filter-flash 0.4s ease;
}

@keyframes bmpc-filter-flash {
    0% { opacity: 0.7; transform: scale(0.995); }
    100% { opacity: 1; transform: scale(1); }
}

/* When few results (< 4), show cards in a single column at larger size for clarity */
.bmpc-post-grid.bmpc-few-results {
    grid-template-columns: 1fr !important;
    max-width: 600px;
    margin: 0 auto;
    gap: 24px;
}

@media (min-width: 768px) {
    .bmpc-post-grid.bmpc-few-results {
        grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
        max-width: 100%;
    }
}

.bmpc-post-grid.bmpc-few-results .bmpc-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
}

/* Results counter highlight when filtering */
.bmpc-results-info.filtering-active {
    background: #f3f4f6;
    border-left: 3px solid #111;
}
