
/* Bio Family V39: cartridge catalog and owner-controlled product photography */
.bf39-breadcrumb{margin:0 0 15px;color:#566178;font-size:.86rem}.bf39-breadcrumb a{color:#203a71;font-weight:750}
.bf39-category-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 25px}
.bf39-category-tile{border:1px solid #cbd4e7;border-radius:17px;padding:18px 15px;text-decoration:none;color:#111c32;background:linear-gradient(136deg,#f7fdf9,#eff8f4);display:flex;flex-direction:column;gap:7px;min-width:0;transition:transform .15s,border-color .15s}
.bf39-category-tile:hover{transform:translateY(-2px);border-color:#274481}.bf39-category-tile.is-active{border:2px solid #203c74;background:#e2f4eb}
.bf39-category-tile span{font-weight:800;line-height:1.5}.bf39-category-tile small{color:#586175}
.bf39-intro-card,.bf39-hub-note,.bf39-bottom-note{border-radius:18px;padding:23px;background:linear-gradient(125deg,#eefaf2,#f9fdfb);border:1px solid #d7e8df;margin:0 0 22px}
.bf39-intro-card span{color:#203c74;font-weight:850;font-size:.83rem}.bf39-intro-card h2,.bf39-hub-note h2,.bf39-bottom-note h2{font-size:clamp(1.1rem,2vw,1.4rem);line-height:1.55;margin:8px 0}
.bf39-intro-card p,.bf39-hub-note p,.bf39-bottom-note p{line-height:1.85;color:#51596a;margin:8px 0}
.bf39-rec-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;flex-wrap:wrap;margin:0 0 20px}
.bf39-rec-heading h2{line-height:1.45;margin:6px 0}.bf39-rec-heading p{color:#5f697c;max-width:780px;line-height:1.8}
.bf39-rec-group{margin:18px 0 28px}.bf39-rec-group-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.bf39-rec-group-head h3{font-size:1.08rem;line-height:1.5;margin:0}.bf39-rec-group-head a{font-weight:750;color:#203b73;text-decoration:none;white-space:nowrap}
.bf39-rec-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.bf39-rec-grid .product-card h4{font-size:.95rem;line-height:1.5;margin:4px 0 10px}
.bf39-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bf39-admin-item{display:grid;grid-template-columns:130px 1fr;gap:18px;margin:0;min-width:0}.bf39-admin-thumb{display:flex;align-items:center;justify-content:center;min-width:0;background:#f4f9f6;border:1px solid #dfebdf;border-radius:14px;align-self:start;aspect-ratio:1}.bf39-admin-thumb img{width:100%;height:100%;object-fit:contain}.bf39-admin-info{min-width:0}.bf39-admin-info h2{font-size:1rem;line-height:1.7;margin:0 0 5px}.bf39-admin-info p{line-height:1.65}.bf39-admin-info code{font-size:.7rem;overflow-wrap:anywhere}.bf39-admin-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:9px 0}
@media(max-width:1000px){.bf39-admin-grid{grid-template-columns:1fr}}@media(max-width:740px){.bf39-category-tiles{grid-template-columns:1fr}.bf39-admin-item{grid-template-columns:90px minmax(0,1fr);gap:10px}.bf39-rec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.bf39-rec-grid{grid-template-columns:1fr}.bf39-admin-item{grid-template-columns:1fr}.bf39-admin-thumb{width:150px}}
@media(prefers-reduced-motion:reduce){.bf39-category-tile{transition:none}}

/* V39 final: genuine category hero slots and cartridge-only minimal product controls */
.bf39-category-hero{position:relative;min-height:355px;overflow:hidden;isolation:isolate;background:linear-gradient(125deg,#123b51,#294785);color:#fff;display:flex;align-items:center}
.bf39-category-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.bf39-category-hero-overlay{position:relative;width:100%;z-index:1;padding:50px 0;background:linear-gradient(90deg,rgba(11,20,39,.94),rgba(13,24,47,.80) 58%,rgba(13,24,47,.31));min-height:355px;display:flex;align-items:center}
[dir=rtl] .bf39-category-hero-overlay{background:linear-gradient(270deg,rgba(11,20,39,.94),rgba(13,24,47,.80) 58%,rgba(13,24,47,.31))}
.bf39-category-hero .container{width:100%}.bf39-hero-crumb,.bf39-hero-crumb a{color:#dbe4f9;font-weight:650;font-size:.9rem;text-decoration:none}
.bf39-category-eyebrow{font-weight:800;letter-spacing:.02em;color:#b4c6ed;margin:18px 0 7px}
.bf39-category-hero h1{font-size:clamp(1.5rem,3.5vw,2.5rem);line-height:1.55;max-width:850px;margin:8px 0 12px;text-wrap:balance;color:#fff}
.bf39-category-hero p{font-size:clamp(.95rem,1.35vw,1.12rem);line-height:1.85;max-width:880px;color:#e6f7f2;margin:0}
.bf39-cartridge-backgrounds{padding:17px 5px 4px;display:grid;gap:9px}
.bf39-cartridge-backgrounds>span{font-weight:750;color:#18243d;font-size:.92rem}
.bf39-cartridge-backgrounds small{font-size:.78rem;color:#5b6476;line-height:1.65}
.bf39-cartridge-color-choices{display:flex;gap:11px;align-items:center;flex-wrap:wrap}
.bf39-color-dot{appearance:none;display:inline-flex;width:36px;height:36px;cursor:pointer;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #c6d5d0,0 2px 8px rgba(0,0,0,.08);transition:box-shadow .15s,transform .15s}
.bf39-color-dot:focus-visible{outline:3px solid #213d76;outline-offset:4px}.bf39-color-dot[aria-pressed=true]{box-shadow:0 0 0 3px #244280,0 2px 8px rgba(0,0,0,.12);transform:scale(1.05)}
.bf39-color-mint{background:linear-gradient(135deg,#effbf4,#bec9e0)}.bf39-color-white{background:linear-gradient(135deg,#fff,#efeeec)}.bf39-color-blue{background:linear-gradient(135deg,#edf9ff,#c7d2ea)}.bf39-color-stone{background:linear-gradient(135deg,#f2f1ec,#b9bfbd)}.bf39-color-dark{background:linear-gradient(135deg,#345061,#162b3a)}
.gallery-main.bf39-bg-mint{background:linear-gradient(145deg,#f0fcf6,#c8d2e6)}.gallery-main.bf39-bg-white{background:linear-gradient(145deg,#fff,#f2f3f1)}.gallery-main.bf39-bg-blue{background:linear-gradient(145deg,#eff9ff,#c6d1e8)}.gallery-main.bf39-bg-stone{background:linear-gradient(145deg,#f7f6f4,#bec4c1)}.gallery-main.bf39-bg-dark{background:linear-gradient(145deg,#3a5769,#142b3a)}
.bf39-cartridge-function{border:1px solid #ccd5e8;border-radius:22px;background:linear-gradient(130deg,#f1fbf6,#fff);padding:clamp(18px,3vw,30px)}
.bf39-function-tag{font-size:.79rem;font-weight:850;color:#1f3a70;letter-spacing:.02em}
.bf39-cartridge-function h2{margin:8px 0 9px;font-size:clamp(1.2rem,2vw,1.65rem);color:#15223b}
.bf39-cartridge-function p{line-height:1.9;color:#444c5c;max-width:900px}
.bf39-cartridge-compat{border-top:1px solid #d6e8df;padding-top:14px;margin-bottom:0;font-size:.9rem}
.bf39-kit-table{max-width:860px;overflow:auto}.bf39-kit-table table{border-collapse:collapse;width:100%;min-width:370px}.bf39-kit-table th,.bf39-kit-table td{text-align:start;border-bottom:1px solid #d4e6de;padding:11px 12px;line-height:1.6}.bf39-kit-table thead{background:#e1f3e9}.bf39-kit-table th{font-weight:800}
@media(max-width:700px){.bf39-category-hero,.bf39-category-hero-overlay{min-height:300px}.bf39-category-hero-overlay{padding:30px 0;background:rgba(13,24,47,.83)}[dir=rtl] .bf39-category-hero-overlay{background:rgba(13,24,47,.83)}.bf39-category-hero h1{font-size:1.55rem}.bf39-category-hero p{font-size:.94rem}}
@media(prefers-reduced-motion:reduce){.bf39-color-dot{transition:none}}

/* V40: unified taxonomy layout, clean product merchandising, no category hero banners. */
.bf40-category-heading{background:linear-gradient(130deg,#f6fbf8,#edf8f2);border-bottom:1px solid #e3efe9}
.bf40-category-heading h1{max-width:1000px;line-height:1.42}
.bf40-products-cartridges{margin-bottom:30px;padding:22px;border-radius:22px;background:linear-gradient(135deg,#153867 0%,#1e4c87 58%,#275b97 100%);border:1px solid #2c5f97;box-shadow:0 20px 44px rgba(14,42,82,.16)}
.bf40-products-intro h2{margin:5px 0 10px;font-size:clamp(1.25rem,2vw,1.65rem);line-height:1.5;color:#fff}
.bf40-products-intro p{color:#e3edf9;line-height:1.8;margin:0 0 17px}
.bf40-products-cartridges .bf39-category-tiles{margin-bottom:0}
.bf39-category-tile b{font-size:.81rem;color:#203c74}
.bf40-after-sales-cartridges{background:#f6fbf8;border-top:1px solid #e1eee8;border-bottom:1px solid #e1eee8}
.bf40-after-heading{max-width:850px;margin-bottom:24px}.bf40-after-heading h2{margin:8px 0;font-size:clamp(1.5rem,2.3vw,2.05rem)}.bf40-after-heading p{line-height:1.85;color:#586175}
.bf40-afs-groups{display:grid;gap:18px}.bf40-afs-group{padding:24px;border:1px solid #dceae2;border-radius:22px;background:#fff}
.bf40-afs-group-head{display:flex;gap:10px 22px;align-items:baseline;flex-wrap:wrap;margin-bottom:16px}.bf40-afs-group-head h3{font-size:1.17rem;margin:0;color:#14213a;line-height:1.6}.bf40-afs-group-head p{margin:0;line-height:1.65;color:#5a6375;flex:1 1 320px}.bf40-afs-group-head a{font-weight:750;color:#203c74;text-decoration:none}
.bf40-afs-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.bf40-afs-product{display:flex;flex-direction:column;gap:9px;color:#17233a;text-decoration:none;border:1px solid #e0ebe5;border-radius:16px;padding:12px;background:#fbfdfb;transition:transform .15s,border-color .15s}
.bf40-afs-product:hover{transform:translateY(-2px);border-color:#254585}.bf40-afs-product-img{height:145px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f2f8f5,#e8f3ef);border-radius:12px;overflow:hidden}.bf40-afs-product-img img{max-width:100%;max-height:100%;height:100%;width:100%;object-fit:contain}.bf40-afs-product strong{line-height:1.65;font-size:.9rem;flex:1}.bf40-afs-product>span:last-child{font-weight:700;color:#223e78;font-size:.82rem}
.bf40-admin-guide{line-height:1.8}.bf40-admin-photo-list{display:grid;gap:18px}.bf40-admin-cartridge{scroll-margin-top:40px}.bf40-admin-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.bf40-admin-card-head h2{font-size:1.17rem;line-height:1.5;margin:5px 0}.bf40-admin-card-head p{margin:4px 0}.bf40-admin-card-head small{color:#223e78}.bf40-admin-card-head code{font-size:.75rem;overflow-wrap:anywhere}
.bf40-admin-split{display:grid;grid-template-columns:minmax(210px,290px) minmax(0,1fr);gap:22px;align-items:start}.bf40-admin-main h3{margin:0 0 10px}.bf40-admin-main-photo{height:265px;border-radius:16px;border:1px solid #d5e7dd;background:repeating-conic-gradient(#f2f6f3 0% 25%,#fff 0% 50%) 0 0/24px 24px;display:flex;align-items:center;justify-content:center;overflow:hidden}.bf40-admin-main-photo img{width:100%;height:100%;object-fit:contain}.bf40-admin-uploads .field-wrap{margin-bottom:14px}.bf40-admin-uploads input[type=file]{max-width:100%}.bf40-admin-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:10px}.bf40-admin-actions>a{font-size:.9rem}
.bf40-gallery-head{margin:24px 0 12px;display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}.bf40-gallery-head h3{margin:0;font-size:1.04rem}.bf40-gallery-head span{color:#646e82;font-size:.85rem}.bf40-gallery-empty{border:1px dashed #bdc5d7;border-radius:13px;padding:18px;background:#f8fcf9}
.bf40-admin-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(152px,1fr));gap:12px}.bf40-admin-gallery-card{border:1px solid #dceae2;border-radius:14px;padding:9px;background:#f9fcfa;min-width:0}.bf40-admin-gallery-thumb{height:120px;background:#fff;border-radius:10px;position:relative;overflow:hidden}.bf40-admin-gallery-thumb img{width:100%;height:100%;object-fit:contain}.bf40-admin-gallery-thumb span{position:absolute;right:4px;top:4px;background:#244280;color:#fff;padding:4px 8px;font-size:.7rem;border-radius:9px}.bf40-admin-gallery-card>small{display:block;margin:5px 2px}.bf40-admin-gallery-buttons{display:flex;flex-wrap:wrap;gap:5px}.bf40-admin-gallery-buttons form{margin:0}.bf40-admin-gallery-buttons button{cursor:pointer;border:1px solid #c8d0e3;border-radius:9px;padding:6px 7px;background:#e6f7ee;color:#1d3566;font:inherit;font-size:.76rem}.bf40-admin-gallery-buttons .bf40-remove-link{background:#fff1f2;border-color:#f5d3d9;color:#9c2a3c}
@media(max-width:940px){.bf40-afs-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.bf40-admin-split{grid-template-columns:1fr}.bf40-admin-main-photo{height:240px}.bf40-afs-group{padding:15px}.bf40-products-cartridges{padding:14px}}
@media(max-width:390px){.bf40-afs-products{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.bf40-afs-product{transition:none}}

/* V9 - Navy cartridge intro block on products/catalog pages */
.bf40-products-intro .eyebrow{color:#dbe7ff!important;background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.12)!important}
.bf40-products-cartridges .bf39-category-tiles{margin-bottom:0}
.bf40-products-cartridges .bf39-category-tiles a,
.bf40-products-cartridges .bf39-category-tile,
.bf40-products-cartridges .category-card,
.bf40-products-cartridges .bf39-category-tiles .tile{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18)!important;color:#fff!important;backdrop-filter:blur(4px)}
.bf40-products-cartridges .bf39-category-tile h3,
.bf40-products-cartridges .bf39-category-tile strong,
.bf40-products-cartridges .bf39-category-tile b{color:#fff!important}
.bf40-products-cartridges .bf39-category-tile span,
.bf40-products-cartridges .bf39-category-tile small,
.bf40-products-cartridges .bf39-category-tile p{color:#deebfb!important}
.bf40-products-cartridges .bf39-category-tile:hover{border-color:rgba(255,255,255,.36)!important;transform:translateY(-2px)}
.bf40-products-cartridges input[type=search],
.bf40-products-cartridges input[type=text],
.bf40-products-cartridges .search-input{background:#fff;border:1px solid #d3deed;color:#14325f}
.bf40-products-cartridges button,
.bf40-products-cartridges .btn-primary,
.bf40-products-cartridges .search-btn{background:#163a70;border-color:#163a70;color:#fff}
.bf40-products-cartridges button:hover,
.bf40-products-cartridges .btn-primary:hover,
.bf40-products-cartridges .search-btn:hover{background:#1f4b8b;border-color:#1f4b8b}
.bf40-products-cartridges .bf39-product-count,
.bf40-products-cartridges .bf39-results-count{color:#d9e7fa}
@media(max-width:720px){.bf40-products-cartridges{padding:14px}}
