.bsfc-section{--bsfc-blue:#0754cc;max-width:100%;min-width:0;box-sizing:border-box; margin:12px 0 28px;}
.bsfc-heading{margin:0 0 19px;}
.bsfc-section .bsfc-heading h2{font-size:clamp(25px,5.5vw,36px);line-height:1.2;font-weight:800;color:#10213d;margin:0 0 9px;letter-spacing:-.025em;}
.bsfc-heading p{font-size:15px;line-height:1.55;color:#53637b;margin:0;}
.bsfc-section .bsfc-filters{display:flex;gap:9px;overflow-x:auto;max-width:100%;padding:4px 2px 12px;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
.bsfc-filters::-webkit-scrollbar{display:none;}
.bsfc-section .bsfc-filters button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;white-space:nowrap;min-height:44px;padding:10px 15px;border:1px solid #dce7fa;border-radius:15px;background:#f2f6fd;color:#304967;font-size:14px;font-weight:650;line-height:1.2;cursor:pointer;box-shadow:none;transition:background .18s,color .18s,transform .18s;}
.bsfc-section .bsfc-filters button[aria-pressed=true]{background:var(--bsfc-blue);border-color:var(--bsfc-blue);color:#fff;box-shadow:0 4px 10px #0754cc26;}
.bsfc-section .bsfc-filters button:active{transform:scale(.96);}
.bsfc-section .bsfc-filters button:focus-visible{outline:2px solid var(--bsfc-blue);outline-offset:2px;}
.bsfc-section .bsfc-count{font-size:13px;color:#53637b;margin:0 0 16px;}
.bsfc-section [hidden],.bsfc-section li.bsfc-filtered-out{display:none!important;}
.bsfc-section .bsfc-products ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch;margin:0!important;padding:0!important;}
.bsfc-section .bsfc-products ul.products:before,.bsfc-section .bsfc-products ul.products:after{display:none!important;content:none!important;}
.bsfc-section .bsfc-products ul.products li.product{width:auto!important;min-width:0;max-width:none!important;float:none!important;clear:none!important;margin:0!important;}
.bsfc-section .bsfc-products ul.products li.product .button{white-space:normal;max-width:100%;box-sizing:border-box;}
@media(max-width:900px){.bsfc-section .bsfc-products ul.products{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:767px){.bsfc-section .bsfc-products ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.bsfc-section .bsfc-filters button{font-size:13px;padding:10px 13px;}.bsfc-section .bsfc-products ul.products li.product .button{font-size:clamp(11px,3.3vw,14px);padding:10px 6px;}}
@media(prefers-reduced-motion:reduce){.bsfc-section .bsfc-filters button{transition:none;transform:none!important;}}

/* V1.2: centered, consistent catalogue cards, without changing product data. */
.bsfc-section .bsfc-products ul.products > li.product {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    padding: 12px 8px !important;
    text-align: center !important;
    min-width: 0 !important;
    gap: 0 !important;
    --bsfc-name-size: 17px;
    --bsfc-image-height: clamp(100px, 30vw, 170px);
}
.bsfc-section .bsfc-products ul.products > li.product[hidden],
.bsfc-section .bsfc-products ul.products > li.product.bsfc-filtered-out {
    display: none !important;
}
.bsfc-section .bsfc-products ul.products > li.product > :is(a.woocommerce-LoopProduct-link, a.woocommerce-loop-product__link) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 1 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}
.bsfc-section .bsfc-products ul.products > li.product img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: var(--bsfc-image-height) !important;
    object-fit: contain !important;
    object-position: center !important;
    aspect-ratio: auto !important;
    box-sizing: border-box !important;
    margin: 0 auto 10px !important;
}
.bsfc-section .bsfc-products ul.products > li.product :is(.woocommerce-loop-product__title, h2.woocommerce-loop-product__title, .wc-block-grid__product-title) {
    width: 100% !important;
    min-height: 2.6em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: var(--bsfc-name-size) !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
    margin: 0 0 5px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.bsfc-section .bsfc-products ul.products > li.product .price {
    display: block !important;
    width: 100% !important;
    min-height: 2.7em !important;
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere;
}
.bsfc-section .bsfc-products ul.products > li.product :is(.button, .add_to_cart_button, .added_to_cart) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 240px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    margin: auto auto 0 !important;
    padding: 10px 6px !important;
    float: none !important;
}
.bsfc-section .bsfc-products ul.products > li.product .added_to_cart {margin: 6px auto 0 !important;}
@media(max-width:767px){
    .bsfc-section .bsfc-products ul.products > li.product {--bsfc-name-size:clamp(14px,4.1vw,17px);padding:10px 4px !important;}
    .bsfc-section .bsfc-products ul.products > li.product .price {font-size:clamp(12px,3.6vw,15px) !important;}
    .bsfc-section .bsfc-products ul.products > li.product :is(.button,.add_to_cart_button,.added_to_cart) {font-size:clamp(11px,3.4vw,14px) !important;}
}

/* V1.3: the offer banner opens the catalogue packs filter. */
.bsfc-old-packs-hidden{display:none!important;}
#busy-store-offres{scroll-margin-top:150px;}
@media(max-width:767px){#busy-store-offres{scroll-margin-top:160px;}}

/* V1.4: dedicated offers page, preserving the existing WooCommerce grid. */
.bsfc-offers-page{max-width:1120px;margin:20px auto 40px;}
.bsfc-offers-page .bsfc-offers-hero{background:linear-gradient(135deg,#073c9b,#0878df);color:#fff;padding:clamp(20px,5vw,46px);border-radius:22px;text-align:center;margin-bottom:26px;}
.bsfc-offers-page .bsfc-offers-hero span{font-size:13px;font-weight:750;letter-spacing:.04em;}
.bsfc-offers-page .bsfc-offers-hero h2{color:#fff;margin:12px 0;font-size:clamp(25px,5vw,38px);}
.bsfc-offers-page .bsfc-offers-hero p{color:#fff;max-width:650px;margin:0 auto;}
.bsfc-offers-page .bsfc-back{text-align:center;margin-top:28px;}
.bsfc-offers-page .bsfc-back a{color:#0754cc;font-weight:650;}
.bsfc-offers-page .bsfc-products ul.products{grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:767px){.bsfc-offers-page .bsfc-products ul.products{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* V1.5: the legacy carousel is removed from the homepage layout only. */
body.bsfc-home-separate-offers .busy-packs:not(:has(.bsfc-section)):not(:has(.busy-subscriptions)){display:none!important;}
