/* V51 — compact replacement-cartridge recommendations on bottle and RO cooler product pages. */
.product-detail .bf51-related{margin-block:38px 28px;max-width:100%;min-width:0}
.product-detail .bf51-rec-heading{align-items:center;margin-bottom:14px}
.product-detail .bf51-rec-heading h2{font-size:clamp(1.25rem,2vw,1.65rem)}
.product-detail .bf51-rec-heading p{margin:0;max-width:790px;font-size:.85rem;line-height:1.85}
.product-detail .bf51-category-links{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.product-detail .bf51-category-links a{display:inline-flex;align-items:center;gap:6px;border:1px solid #d9e8e0;border-radius:999px;padding:7px 13px;background:#f7fbf8;color:#1f3769;font-size:.77rem;font-weight:750;line-height:1.5;transition:background .2s,border-color .2s}
.product-detail .bf51-category-links a:hover,.product-detail .bf51-category-links a:focus-visible{background:#e8f6ed;border-color:#90a2c6}
.product-detail .bf51-rec-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),205px));justify-content:start;gap:14px;align-items:stretch;max-width:100%;min-width:0}
.product-detail .bf51-rec-item{min-width:0;max-width:205px;border:1px solid #dce9e3;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 4px 15px rgba(19,33,61,.045);transition:transform .2s,box-shadow .2s,border-color .2s}
.product-detail .bf51-rec-item:hover{transform:translateY(-3px);border-color:#9eadcd;box-shadow:0 10px 24px rgba(19,33,61,.095)}
.product-detail .bf51-rec-link{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none;min-width:0}
.product-detail .bf51-rec-link:focus-visible{outline:3px solid #203b73;outline-offset:-3px}
.product-detail .bf51-rec-photo{height:158px;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:12px;background:linear-gradient(160deg,#f0f8f4,#e8f5ef)}
.product-detail .bf51-rec-photo img{display:block;width:100%;max-width:155px;height:100%;max-height:138px;object-fit:contain;object-position:center;transition:transform .2s;transform:none!important}
.product-detail .bf51-rec-item:hover .bf51-rec-photo img{transform:scale(1.03)!important}
.product-detail .bf51-rec-copy{display:flex;flex-direction:column;gap:7px;flex:1;min-width:0;padding:12px 13px 14px}
.product-detail .bf51-rec-copy small{font-size:.68rem;font-weight:750;line-height:1.4;color:#3c4f77}
.product-detail .bf51-rec-copy h3{font-size:.81rem;line-height:1.7;min-height:0;margin:0;overflow-wrap:anywhere;color:#1a2740;font-weight:750}
.product-detail .bf51-rec-copy>span{margin-top:auto;padding-top:3px;font-size:.76rem;font-weight:800;color:#203b73}
@media(max-width:760px){.product-detail .bf51-rec-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-detail .bf51-rec-item{max-width:none}.product-detail .bf51-rec-photo{height:148px}.product-detail .bf51-rec-photo img{max-height:128px}.product-detail .bf51-rec-copy{padding:11px}.product-detail .bf51-rec-copy h3{font-size:.78rem}}
@media(max-width:360px){.product-detail .bf51-rec-photo{height:130px}.product-detail .bf51-rec-photo img{max-height:110px}.product-detail .bf51-rec-copy{padding:9px}}
@media(prefers-reduced-motion:reduce){.product-detail .bf51-rec-item,.product-detail .bf51-rec-photo img{transition:none}.product-detail .bf51-rec-item:hover{transform:none}.product-detail .bf51-rec-item:hover .bf51-rec-photo img{transform:none!important}}
