/* =========================================================
   BoogiePetsLandia — Fallback PDP Nutrición v5.2.2
   Consolidated stylesheet: no historical patch layers.
   ========================================================= */

:root {
    --bpl-blue: #075fa8;
    --bpl-blue-2: #0b76c5;
    --bpl-green: #0aa64f;
    --bpl-green-dark: #07863f;
    --bpl-yellow: #ffc928;
    --bpl-red: #df153c;
    --bpl-navy: #09355a;
    --bpl-text: #17324d;
    --bpl-muted: #6c7f91;
    --bpl-line: #dbe8f1;
    --bpl-bg: #f5f9fc;
    --bpl-soft-blue: #eef7ff;
    --bpl-soft-green: #eefaf3;
    --bpl-soft-yellow: #fff7d9;
    --bpl-soft-pink: #fff0f5;
    --bpl-radius: 14px;
    --bpl-shadow: 0 8px 24px rgba(8, 62, 104, .07);
}

/* ---------- Base ---------- */
.bplfb-page {
    background: linear-gradient(#fff 0, #f8fbfd 100%);
    padding: 18px 0 42px;
}

.bplfb-shell {
    width: min(1480px, calc(100% - 32px));
    margin: auto;
}

.bplfb-pdp {
    color: var(--bpl-text);
    font-size: 16px;
    line-height: 1.5;
}

.bplfb-pdp * {
    box-sizing: border-box;
}

.bplfb-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.bplfb-card,
.bplfb-gallery-card,
.bplfb-summary-card,
.bplfb-secondary {
    background: #fff;
    border: 1px solid var(--bpl-line);
    border-radius: var(--bpl-radius);
    box-shadow: var(--bpl-shadow);
}

/* ---------- Hero / gallery ---------- */
.bplfb-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.bplfb-gallery-card {
    padding: 14px;
    min-height: 650px;
}

.bplfb-gallery {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    min-height: 620px;
}

.bplfb-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 610px;
    overflow: auto;
}

.bplfb-thumb {
    width: 72px;
    height: 72px;
    border: 1px solid var(--bpl-line);
    border-radius: 9px;
    background: #fff;
    padding: 4px;
    cursor: pointer;
}

.bplfb-thumb.is-active {
    border: 2px solid var(--bpl-green);
}

.bplfb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bplfb-gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: #fff;
    border-radius: 12px;
}

.bplfb-gallery-main {
    border: 0;
    background: transparent;
    width: 100%;
    height: 560px;
    padding: 16px;
    cursor: zoom-in;
}

.bplfb-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bplfb-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--bpl-line);
    background: #fff;
    color: var(--bpl-blue);
    font-size: 30px;
    box-shadow: var(--bpl-shadow);
}

.bplfb-prev { left: 8px; }
.bplfb-next { right: 8px; }

.bplfb-gallery-hint {
    position: absolute;
    bottom: 8px;
    color: var(--bpl-muted);
    font-size: 13px;
}

.bplfb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(4, 18, 31, .9);
    display: grid;
    place-items: center;
}

.bplfb-lightbox[hidden] { display: none; }
.bplfb-lightbox img { max-width: 92vw; max-height: 90vh; }

.bplfb-lightbox-close {
    position: absolute;
    right: 24px;
    top: 18px;
    color: #fff;
    background: none;
    border: 0;
    font-size: 42px;
}

/* ---------- Summary / title / actions ---------- */
.bplfb-summary-card {
    padding: 20px;
    position: relative;
}

.bplfb-heading-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.bplfb-brand {
    padding-top: 4px;
    font-size: 14px;
    font-weight: 800;
    color: var(--bpl-green);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.bplfb-product-title {
    margin: 5px 0 10px !important;
    width: 100% !important;
    max-width: none !important;
    color: var(--bpl-navy) !important;
    font-size: clamp(27px, 1.8vw, 34px) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: -.02em !important;
    overflow-wrap: break-word;
}

.bplfb-actions {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.bplfb-pdp .bplfb-action {
    position: relative !important;
    appearance: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 2px 1px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--bpl-blue) !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    text-align: center !important;
    text-transform: none !important;
    cursor: pointer !important;
    overflow: hidden !important;
}

.bplfb-pdp .bplfb-action .bplfb-icon {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    color: currentColor !important;
}

.bplfb-pdp .bplfb-action > span,
.bplfb-action-visual > span {
    display: block !important;
    white-space: nowrap !important;
    color: inherit !important;
    font: inherit !important;
}

.bplfb-action-visual {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    color: inherit !important;
    pointer-events: none !important;
}

.bplfb-plugin-action { position: relative !important; }

.bplfb-action-hit {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    display: block !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bplfb-action-hit .woosw-btn,
.bplfb-action-hit .woosc-btn,
.bplfb-action-hit button,
.bplfb-action-hit a {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    opacity: 1 !important;
}

.bplfb-action-hit .woosw-btn-text,
.bplfb-action-hit .woosc-btn-text,
.bplfb-action-hit span {
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.bplfb-pdp .bplfb-action:hover,
.bplfb-pdp .bplfb-action:focus-visible,
.bplfb-plugin-action:has(.woosw-added),
.bplfb-plugin-action:has(.woosc-added) {
    background: var(--bpl-soft-blue) !important;
    color: var(--bpl-blue) !important;
    border-radius: 8px !important;
    outline: none !important;
}

.bplfb-rating {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 2px 0 10px;
}

.bplfb-rating a,
.bplfb-rating button {
    border: 0;
    background: transparent;
    color: var(--bpl-blue);
    font-size: 14px;
}

/* ---------- Badges / price / stock ---------- */
.bplfb-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.bplfb-badges > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.bplfb-badges .bplfb-icon { width: 16px; height: 16px; }
.bplfb-badges .is-yellow { background: var(--bpl-soft-yellow); color: #8b6200; }
.bplfb-badges .is-green { background: var(--bpl-soft-green); color: #087a3b; }
.bplfb-badges .is-blue { background: var(--bpl-soft-blue); color: var(--bpl-blue); }

.bplfb-price-stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 10px 0;
}

.bplfb-price {
    color: var(--bpl-red);
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.bplfb-price del {
    color: #81909e;
    font-size: 19px;
    font-weight: 500;
}

.bplfb-unit-price {
    margin-top: 6px;
    color: var(--bpl-muted);
    font-size: 14px;
}

.bplfb-sale-chip {
    display: inline-flex;
    margin-left: 8px;
    padding: 6px 10px;
    border-radius: 7px;
    background: var(--bpl-soft-pink);
    color: var(--bpl-red);
    font-weight: 800;
}

.bplfb-stock {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.bplfb-stock span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
}

.bplfb-stock .is-in { background: var(--bpl-soft-green); color: var(--bpl-green-dark); }
.bplfb-stock .is-out,
.bplfb-low { background: var(--bpl-soft-pink); color: var(--bpl-red); }

/* ---------- Highlights ---------- */
.bplfb-highlights {
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid #b9ddf7;
    border-radius: 11px;
    background: var(--bpl-soft-blue);
}

.bplfb-highlights h2 {
    margin: 0 0 10px;
    color: var(--bpl-blue);
    font-size: 14px;
}

.bplfb-highlights > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.bplfb-highlights article {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bplfb-highlights article > span {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dff5e8;
    color: var(--bpl-green);
}

.bplfb-highlights p {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
}

/* ---------- Shipping ---------- */
.bplfb-shipping {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 12px 0;
    overflow: hidden;
    border: 1px solid #bddded;
    border-radius: 11px;
}

.bplfb-shipping-form-wrap,
.bplfb-shipping-result { padding: 14px; }

.bplfb-shipping-result { border-left: 1px solid var(--bpl-line); }

.bplfb-shipping-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

.bplfb-shipping-title > span {
    display: grid;
    place-items: center;
    color: var(--bpl-green);
}

.bplfb-shipping-title .bplfb-icon { width: 28px; height: 28px; }
.bplfb-shipping-title strong { display: block; color: var(--bpl-blue); font-size: 14px; }
.bplfb-shipping-title small { display: block; color: var(--bpl-muted); font-size: 11px; }

.bplfb-shipping-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.bplfb-shipping-form input {
    height: 42px;
    padding: 0 12px;
    border: 1px solid #c9ddea;
    border-radius: 8px;
}

.bplfb-pdp .bplfb-shipping-form button {
    padding: 0 20px;
    border: 0 !important;
    border-radius: 8px;
    background: var(--bpl-blue-2) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-weight: 800;
}

.bplfb-pdp .bplfb-shipping-form button:hover,
.bplfb-pdp .bplfb-shipping-form button:focus-visible {
    background: var(--bpl-blue) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.bplfb-ship-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.bplfb-ship-top .bplfb-icon { width: 28px; height: 28px; color: var(--bpl-green); }
.bplfb-ship-top strong { display: block; color: var(--bpl-blue); }
.bplfb-ship-top small { color: var(--bpl-muted); }
.bplfb-ship-cost { color: var(--bpl-green); font-weight: 900; }
.bplfb-free-goal { margin-top: 10px; }

.bplfb-free-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.bplfb-progress {
    height: 7px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e3edf4;
}

.bplfb-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--bpl-green), #33c86c);
}

/* ---------- Purchase / quantity / CTAs ---------- */
.bplfb-purchase { margin: 12px 0; }

.bplfb-pdp .bplfb-buy-row {
    display: grid !important;
    grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: end !important;
    gap: 8px !important;
}

.bplfb-pdp .bplfb-qty { min-width: 0 !important; }

.bplfb-pdp .bplfb-qty > span {
    display: block !important;
    margin: 0 0 5px !important;
    color: var(--bpl-text) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.bplfb-pdp .bplfb-qty-control {
    display: grid !important;
    grid-template-columns: 36px 48px 36px !important;
    width: 120px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bplfb-pdp .bplfb-qty-control > button,
.bplfb-pdp .bplfb-qty-control > input.qty {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #c6dce9 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--bpl-navy) !important;
    -webkit-text-fill-color: var(--bpl-navy) !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 50px !important;
}

.bplfb-pdp .bplfb-qty-control > button {
    appearance: none !important;
    background: #f7fbfd !important;
    color: var(--bpl-blue) !important;
    -webkit-text-fill-color: var(--bpl-blue) !important;
    cursor: pointer !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.bplfb-pdp .bplfb-qty-control > button:first-child { border-radius: 9px 0 0 9px !important; }
.bplfb-pdp .bplfb-qty-control > button:last-child { border-radius: 0 9px 9px 0 !important; }

.bplfb-pdp .bplfb-qty-control > input.qty {
    border-left: 0 !important;
    border-right: 0 !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

.bplfb-pdp .bplfb-qty-control > input.qty::-webkit-outer-spin-button,
.bplfb-pdp .bplfb-qty-control > input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.bplfb-pdp .bplfb-qty-control > button:hover:not(:disabled),
.bplfb-pdp .bplfb-qty-control > button:focus-visible {
    background: var(--bpl-soft-blue) !important;
    color: var(--bpl-blue) !important;
    -webkit-text-fill-color: var(--bpl-blue) !important;
    outline: 2px solid rgba(11, 118, 197, .18) !important;
    outline-offset: -2px !important;
}

.bplfb-pdp .bplfb-qty-control > button:disabled {
    background: #f4f6f8 !important;
    color: #9babb7 !important;
    -webkit-text-fill-color: #9babb7 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.bplfb-pdp button.bplfb-atc,
.bplfb-pdp button.bplfb-buy-now {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-transform: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.bplfb-pdp button.bplfb-atc .bplfb-icon,
.bplfb-pdp button.bplfb-buy-now .bplfb-icon {
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
}

.bplfb-pdp button.bplfb-atc > span,
.bplfb-pdp button.bplfb-buy-now > span {
    display: block !important;
    white-space: nowrap !important;
    color: inherit !important;
    line-height: 1 !important;
}

.bplfb-pdp button.bplfb-atc {
    background: linear-gradient(180deg, #ffd84a, var(--bpl-yellow)) !important;
    color: #183049 !important;
    -webkit-text-fill-color: #183049 !important;
}

.bplfb-pdp button.bplfb-atc:hover,
.bplfb-pdp button.bplfb-atc:focus-visible {
    background: #f5bd10 !important;
    color: #183049 !important;
    -webkit-text-fill-color: #183049 !important;
}

.bplfb-pdp button.bplfb-atc.loading,
.bplfb-pdp button.bplfb-atc[aria-busy="true"] {
    cursor: wait !important;
    opacity: .72 !important;
}

.bplfb-pdp button.bplfb-buy-now {
    background: linear-gradient(180deg, #18b95a, var(--bpl-green)) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.bplfb-pdp button.bplfb-buy-now:hover,
.bplfb-pdp button.bplfb-buy-now:focus-visible {
    background: var(--bpl-green-dark) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Defensive only: no inline "Ver carrito" should enter the buy row. */
.bplfb-pdp .bplfb-purchase a.added_to_cart.wc-forward { display: none !important; }

/* ---------- Express payments / trust ---------- */
.bplfb-express {
    padding-top: 10px;
    border-top: 1px solid var(--bpl-line);
    text-align: center;
}

.bplfb-express-title {
    margin-bottom: 7px;
    color: var(--bpl-muted);
    font-size: 12px;
}

.bplfb-express-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
}

.bplfb-pay {
    min-width: 0 !important;
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 3px 6px !important;
}

.bplfb-pay > *,
.bplfb-pay iframe { max-width: 100% !important; }

.bplfb-express small {
    display: block;
    margin-top: 5px;
    color: var(--bpl-muted);
    font-size: 11px;
}

.bplfb-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.bplfb-trust article {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid var(--bpl-line);
    border-radius: 9px;
}

.bplfb-trust article > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.bplfb-trust .gold { background: #fff4d4; color: #bf8210; }
.bplfb-trust .sand { background: #fff0df; color: #c7772a; }
.bplfb-trust .pink { background: #fdeafa; color: #c35ea9; }
.bplfb-trust strong { display: block; color: var(--bpl-blue); font-size: 12px; }
.bplfb-trust small { display: block; color: var(--bpl-muted); font-size: 10px; }

/* ---------- Presentations / FBT ---------- */
.bplfb-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.bplfb-secondary-grid.is-single { grid-template-columns: 1fr; }
.bplfb-secondary { padding: 14px; }

.bplfb-minihead {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bplfb-minihead > span { color: var(--bpl-green); }
.bplfb-minihead h2 { margin: 0; color: var(--bpl-blue); font-size: 18px; }
.bplfb-minihead small { font-weight: 500; }

.bplfb-sibling-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.bplfb-sibling {
    padding: 10px;
    border: 1px solid var(--bpl-line);
    border-radius: 10px;
    color: var(--bpl-text);
    text-align: center;
    text-decoration: none;
}

.bplfb-sibling.is-current {
    border: 2px solid var(--bpl-green);
    background: var(--bpl-soft-green);
}

.bplfb-pdp .bplfb-sibling:hover,
.bplfb-pdp .bplfb-sibling:focus-visible {
    border-color: #a7d2ed !important;
    background: var(--bpl-soft-blue) !important;
    color: var(--bpl-text) !important;
    -webkit-text-fill-color: var(--bpl-text) !important;
}

.bplfb-sibling > div { height: 100px; }
.bplfb-sibling img { width: 100%; height: 100%; object-fit: contain; }
.bplfb-sibling strong,
.bplfb-sibling span,
.bplfb-sibling small { display: block; }
.bplfb-sibling strong { font-size: 13px; }
.bplfb-sibling span { font-size: 17px; font-weight: 900; }
.bplfb-sibling small { color: var(--bpl-muted); font-size: 11px; }

/* ---------- Shared content cards ---------- */
.bplfb-card {
    margin-top: 18px;
    padding: 18px;
}

.bplfb-kicker {
    color: var(--bpl-green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bplfb-card > h2 {
    margin: 2px 0 12px;
    color: var(--bpl-blue);
    font-size: 24px;
}

/* ---------- Product information tabs ---------- */
.bplfb-info-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bpl-line);
}

.bplfb-pdp .bplfb-info-tabs button,
.bplfb-pdp .bplfb-disc-tabs button,
.bplfb-pdp .bplfb-discovery-tabs button {
    border: 1px solid #c9ddea !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--bpl-blue) !important;
    -webkit-text-fill-color: var(--bpl-blue) !important;
    text-transform: none !important;
}

.bplfb-info-tabs button {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 700;
}

.bplfb-disc-tabs button,
.bplfb-discovery-tabs button {
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.bplfb-pdp .bplfb-info-tabs button:hover,
.bplfb-pdp .bplfb-disc-tabs button:hover,
.bplfb-pdp .bplfb-discovery-tabs button:hover,
.bplfb-pdp .bplfb-info-tabs button:focus-visible,
.bplfb-pdp .bplfb-disc-tabs button:focus-visible,
.bplfb-pdp .bplfb-discovery-tabs button:focus-visible {
    border-color: #8fc7ec !important;
    background: var(--bpl-soft-blue) !important;
    color: var(--bpl-blue) !important;
    -webkit-text-fill-color: var(--bpl-blue) !important;
}

.bplfb-pdp .bplfb-info-tabs button[aria-selected="true"],
.bplfb-pdp .bplfb-disc-tabs button[aria-selected="true"],
.bplfb-pdp .bplfb-discovery-tabs button[aria-selected="true"] {
    border-color: var(--bpl-blue-2) !important;
    background: #e7f4ff !important;
    box-shadow: inset 0 -2px 0 var(--bpl-blue-2) !important;
    color: var(--bpl-blue) !important;
    -webkit-text-fill-color: var(--bpl-blue) !important;
}

.bplfb-info-tabs .bplfb-icon { width: 17px; height: 17px; }
.bplfb-info-panel { padding: 12px 0 0; }
.bplfb-info-panel h3 { margin: 0 0 8px; color: var(--bpl-blue); font-size: 20px; }

.bplfb-richtext {
    max-width: 1200px;
    font-size: 16px;
    line-height: 1.65;
}

.bplfb-richtext p { margin: 0 0 10px; }
.bplfb-richtext li { margin: 5px 0; }

.bplfb-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bplfb-spec-grid > div {
    padding: 10px;
    border-radius: 8px;
    background: var(--bpl-bg);
}

.bplfb-spec-grid span,
.bplfb-spec-grid strong { display: block; }
.bplfb-spec-grid span { color: var(--bpl-muted); font-size: 11px; text-transform: uppercase; }

.bplfb-taxonomy {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    margin-top: 16px;
}

.bplfb-taxonomy > div {
    padding: 12px;
    border-radius: 10px;
    background: var(--bpl-soft-green);
}

.bplfb-taxonomy > div + div { background: var(--bpl-soft-blue); }
.bplfb-taxonomy > div > span { margin-right: 5px; color: var(--bpl-green); }
.bplfb-taxonomy strong { color: var(--bpl-blue); }

.bplfb-taxchips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.bplfb-taxchips a {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid #c8ddea;
    border-radius: 999px;
    background: #fff;
    color: var(--bpl-blue);
    font-size: 12px;
    text-decoration: none;
}

.bplfb-pdp .bplfb-taxchips a:hover,
.bplfb-pdp .bplfb-taxchips a:focus-visible {
    border-color: #9dcbed !important;
    background: var(--bpl-soft-blue) !important;
    color: var(--bpl-blue) !important;
    -webkit-text-fill-color: var(--bpl-blue) !important;
}

/* ---------- Community ---------- */
.bplfb-community > h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bplfb-community > h2 .bplfb-icon { color: var(--bpl-green); }
.bplfb-disc-tabs { display: flex; gap: 8px; }

.bplfb-empty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.bplfb-empty-grid article {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--bpl-line);
    border-radius: 10px;
}

.bplfb-empty-grid article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f4f7f9;
    color: var(--bpl-blue);
}

.bplfb-empty-grid strong,
.bplfb-empty-grid small { display: block; }

.bplfb-pdp .bplfb-empty-grid a,
.bplfb-pdp .bplfb-empty-grid button {
    display: inline-flex;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid var(--bpl-green) !important;
    border-radius: 7px;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--bpl-green-dark) !important;
    -webkit-text-fill-color: var(--bpl-green-dark) !important;
}

.bplfb-pdp .bplfb-empty-grid a:hover,
.bplfb-pdp .bplfb-empty-grid button:hover,
.bplfb-pdp .bplfb-empty-grid a:focus-visible,
.bplfb-pdp .bplfb-empty-grid button:focus-visible {
    background: var(--bpl-soft-green) !important;
    color: var(--bpl-green-dark) !important;
    -webkit-text-fill-color: var(--bpl-green-dark) !important;
}

/* ---------- Related / recently viewed ---------- */
.bplfb-discovery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bplfb-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.bplfb-product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bpl-line);
    border-radius: 10px;
    background: #fff;
}

.bplfb-product-img {
    display: block;
    height: 210px;
    padding: 12px;
}

.bplfb-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bplfb-card-wish {
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    z-index: 4 !important;
    width: 36px !important;
    height: 36px !important;
    overflow: hidden !important;
    border: 1px solid #d8e7f1 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 3px 10px rgba(8, 62, 104, .08) !important;
    color: var(--bpl-blue) !important;
}

.bplfb-card-wish-visual {
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    color: inherit !important;
    pointer-events: none !important;
}

.bplfb-card-wish-visual .bplfb-icon { width: 18px !important; height: 18px !important; }

.bplfb-card-wish-hit {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: block !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

.bplfb-card-wish-hit .woosw-btn,
.bplfb-card-wish-hit button,
.bplfb-card-wish-hit a {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
}

.bplfb-card-wish:hover,
.bplfb-card-wish:focus-within,
.bplfb-card-wish:has(.woosw-added) {
    border-color: #9ac9e8 !important;
    background: var(--bpl-soft-blue) !important;
    color: var(--bpl-blue) !important;
}

.bplfb-product-card .woosw-btn-text,
.bplfb-product-card .woosc-btn-text { display: none !important; }

.bplfb-product-body { padding: 0 12px 14px; }
.bplfb-product-body > small { color: var(--bpl-green); font-weight: 800; text-transform: uppercase; }

.bplfb-product-body > a {
    display: block;
    min-height: 44px;
    margin: 4px 0;
    color: var(--bpl-navy);
    font-weight: 700;
    text-decoration: none;
}

.bplfb-product-body > strong {
    display: block;
    margin: 6px 0;
    color: var(--bpl-navy);
    font-size: 19px;
}

.bplfb-product-body .star-rating { font-size: 12px; }
.bplfb-product-body div small { margin-left: 4px; color: var(--bpl-muted); }

/* ---------- Sticky: hidden desktop, active mobile only ---------- */
.bplfb-sticky { display: none; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1023px) {
    .bplfb-shell { width: min(calc(100% - 18px), 760px); }
    .bplfb-pdp { font-size: 17px; }
    .bplfb-hero { grid-template-columns: 1fr; }

    .bplfb-gallery-card { min-height: auto; padding: 8px; }
    .bplfb-gallery { grid-template-columns: 1fr; min-height: auto; }
    .bplfb-gallery-stage { min-height: 430px; order: 1; }
    .bplfb-gallery-main { height: 400px; }
    .bplfb-thumbs { order: 2; flex-direction: row; overflow: auto; max-height: none; }
    .bplfb-thumb { flex: 0 0 62px; width: 62px; height: 62px; }

    .bplfb-summary-card { padding: 14px; }
    .bplfb-heading-bar { align-items: center; }
    .bplfb-product-title { font-size: 30px !important; }
    .bplfb-actions { justify-content: flex-start !important; gap: 6px !important; }
    .bplfb-pdp .bplfb-action { width: 50px !important; min-width: 50px !important; }

    .bplfb-price { font-size: 34px; }
    .bplfb-price-stock { align-items: flex-start; }
    .bplfb-highlights > div { grid-template-columns: 1fr 1fr; }

    .bplfb-shipping { grid-template-columns: 1fr; }
    .bplfb-shipping-result { border-left: 0; border-top: 1px solid var(--bpl-line); }

    .bplfb-pdp .bplfb-buy-row { grid-template-columns: 1fr 1fr !important; }
    .bplfb-pdp .bplfb-qty { grid-column: 1 / -1 !important; }
    .bplfb-pdp .bplfb-qty-control { width: 120px !important; }

    .bplfb-express-grid { grid-template-columns: 1fr !important; }
    .bplfb-trust { grid-template-columns: 1fr; }

    .bplfb-secondary-grid { grid-template-columns: 1fr; }
    .bplfb-sibling-track { display: flex; overflow: auto; }
    .bplfb-sibling { flex: 0 0 42%; }

    .bplfb-info-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
    .bplfb-info-tabs button { flex: 0 0 auto; }
    .bplfb-taxonomy,
    .bplfb-empty-grid { grid-template-columns: 1fr; }

    .bplfb-product-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .bplfb-product-card { flex: 0 0 72%; scroll-snap-align: start; }

    .bplfb-sticky {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 74px;
        z-index: 9998;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px;
        border: 1px solid var(--bpl-line);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 10px 30px rgba(6, 39, 64, .22);
        opacity: 0;
        transform: translateY(140%);
        transition: .25s;
    }

    .bplfb-sticky.is-visible { opacity: 1; transform: none; }

    .bplfb-sticky-product {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .bplfb-sticky-product img { width: 42px; height: 42px; object-fit: contain; }
    .bplfb-sticky-product div { min-width: 0; }

    .bplfb-sticky-product strong {
        display: block;
        max-width: 48vw;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 12px;
    }

    .bplfb-sticky-product span { color: var(--bpl-red); font-weight: 900; }

    .bplfb-sticky > button {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 12px 14px;
        border: 0;
        border-radius: 9px;
        background: var(--bpl-yellow);
        color: #183049;
        font-weight: 900;
    }
}

@media (max-width: 560px) {
    .bplfb-pdp { font-size: 16px; }
    .bplfb-gallery-stage { min-height: 330px; }
    .bplfb-gallery-main { height: 310px; }

    .bplfb-heading-bar { display: block; }
    .bplfb-actions { justify-content: flex-start !important; margin-top: 6px !important; }
    .bplfb-product-title { font-size: 26px !important; }
    .bplfb-badges > span { font-size: 12px; }

    .bplfb-price-stock { display: block; }
    .bplfb-stock { justify-content: flex-start; margin-top: 8px; }
    .bplfb-highlights > div { grid-template-columns: 1fr; }
    .bplfb-shipping-form { grid-template-columns: 1fr auto; }

    .bplfb-pdp .bplfb-buy-row { grid-template-columns: 1fr !important; }
    .bplfb-pdp .bplfb-qty { grid-column: auto !important; }
    .bplfb-pdp button.bplfb-atc,
    .bplfb-pdp button.bplfb-buy-now { font-size: 16px !important; }

    .bplfb-secondary { padding: 12px; }
    .bplfb-sibling { flex-basis: 66%; }
    .bplfb-card { padding: 14px; }
    .bplfb-card > h2 { font-size: 21px; }
    .bplfb-richtext { font-size: 16px; }
    .bplfb-product-card { flex-basis: 82%; }
}
