/* BFW only: packaging captions, unit labels and category entry artwork. */
.product-image::after,
.category-image::after,
.product-image-thumbs .thumb-link::after,
.bfw-recommendation-details::before,
.bfw-order-product-details::after {
    content: "Image for illustration purposes only";
    display: block;
    margin: 5px 0 0;
    color: #65727c;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    text-transform: none;
}
/* Tiny sidebar photographs share a readable caption with their product details. */
.mini-products-list .product-image::after { display: none; }
.mini-products-list .product-details::after,
.product-images + .product-details::after {
    content: "Image for illustration purposes only";
    display: block;
    clear: both;
    margin-top: 7px;
    color: #65727c;
    font: italic 10px/1.35 Arial, sans-serif;
}
.bfw-recommendation-image::after { display: none; }
.bfw-recommendation-details::before,
.product-image-thumbs .thumb-link::after { font-size: 9px; }
.bfw-order-product-details::after { text-align: left; }
.bfw-product-image-note { display: block; flex: 0 0 auto; width: 100%; margin: 5px 0; color: #65727c; font: italic 10px/1.35 Arial, sans-serif; text-align: center; }
.products-grid .product-image,
.products-list .product-image,
.product-view .product-img-box > .product-image,
.cms-home .bfw-home-section.bfw-home-categories .category-image,
.bfw-hero-art,
.bfw-category-hero-art { position: relative; }
.products-grid .product-image::after,
.products-list .product-image::after,
.product-view .product-img-box > .product-image::after,
.cms-home .bfw-home-section.bfw-home-categories .category-image::after,
.bfw-hero-art::after,
.bfw-category-hero-art::after {
    content: "Image for illustration purposes only";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 6px;
    padding: 2px 0;
    color: #65727c;
    background: rgba(255,255,255,.95);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    text-transform: none;
    pointer-events: none;
}
.products-grid .product-image { padding: 2px 4px 28px; }
.products-grid .product-image > img { max-height: 100%; }
.products-list .product-image { padding-bottom: 34px; }
.product-view .product-img-box > .product-image { padding-bottom: 28px; }
.bfw-hero-art picture { padding-bottom: 24px; }
.bfw-single-unit-price { margin: 0 0 10px; }
.bfw-single-unit-price .price-box,
.bfw-single-unit-price .price-box p { display: inline; margin: 0; }
.bfw-price-unit { color: #0a2540; font-size: 14px; white-space: nowrap; }
.bfw-home-hero a.bfw-hero-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    border: 0;
    color: #526574;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}
.bfw-home-hero a.bfw-hero-dot:hover { background: #f0f5f3; color: #0a2540; }
/* Use more of the category card for the artwork, with room for the caption. */
.cms-home .bfw-home-section.bfw-home-categories .categories-grid > li.item { padding: 12px; }
.cms-home .bfw-home-section.bfw-home-categories .category-image { height: 232px; margin-bottom: 12px; padding: 0 0 28px; }
.cms-home .bfw-home-section.bfw-home-categories .category-image img { width: 100%; height: 100%; max-height: 204px; object-fit: contain; }
.bfw-category-hero {
    display: flex;
    align-items: stretch;
    clear: both;
    width: 100%;
    min-height: 340px;
    margin: 0 0 30px;
    overflow: hidden;
    border: 1px solid #e0e8e7;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(10,37,64,.05);
}
.bfw-category-hero-copy { display: flex; flex-direction: column; justify-content: center; width: 36%; padding: 36px; background: #f0f6f3; }
.bfw-category-hero-eyebrow { margin: 0 0 16px; color: #147a4b; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bfw-category-hero h2 { margin: 0 0 18px; color: #0a2540; font-size: clamp(28px,3.2vw,46px); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; text-transform: none; }
.bfw-category-hero-description { margin: 0; color: #526574; font-size: 16px; line-height: 1.65; }
.bfw-category-hero-art { width: 64%; padding-bottom: 25px; }
.bfw-category-hero-art img { display: block; width: 100%; height: 100%; max-height: 440px; object-fit: contain; }
@media (max-width: 1050px) {
    .bfw-home-hero a.bfw-hero-dot { font-size: 11px; }
    .bfw-category-hero-copy { padding: 26px; }
}
@media (max-width: 900px) {
    .bfw-category-hero { flex-direction: column; min-height: 0; border-radius: 16px; }
    .bfw-category-hero-copy, .bfw-category-hero-art { width: 100%; }
    .bfw-category-hero-copy { padding: 26px; }
    .bfw-category-hero h2 { font-size: 32px; }
    .bfw-category-hero-art img { height: clamp(200px,48vw,320px); }
}
@media (max-width: 600px) {
    .cms-home .bfw-home-section.bfw-home-categories .categories-grid > li.item { padding: 8px; }
    .cms-home .bfw-home-section.bfw-home-categories .category-image { height: 170px; margin-bottom: 10px; padding-bottom: 35px; }
    .cms-home .bfw-home-section.bfw-home-categories .category-image img { max-height: 135px; }
    .cms-home .bfw-home-section.bfw-home-categories .category-image::after { font-size: 9px; }
    .bfw-category-hero-description { font-size: 14px; }
}
/* Requested exceptions: homepage category tiles and recently viewed sidebars. */
.cms-home .bfw-home-section.bfw-home-categories .category-image::after,
.block-viewed .product-image::after,
.block-viewed .product-details::after,
.sidebar .widget-viewed .product-image::after,
.sidebar .widget-viewed .product-details::after {
    display: none;
    content: none;
}
.block-viewed .bfw-product-image-note,
.sidebar .widget-viewed .bfw-product-image-note { display: none; }
.cms-home .bfw-home-section.bfw-home-categories .category-image { padding-bottom: 0; }
.cms-home .bfw-home-section.bfw-home-categories .category-image img { max-height: 232px; }
@media (max-width: 600px) {
    .cms-home .bfw-home-section.bfw-home-categories .category-image img { max-height: 170px; }
}

/* RWD reserves this pseudo-element for its hidden loading overlay. Reset it
   explicitly so the packaging caption is visible and stays at the foot. */
.products-grid .product-image::after { display: block; top: auto; width: auto; height: auto; margin: 0; opacity: 1; background-image: none; }

/* Carousel artwork and its matching category-entry banners have no caption. */
.bfw-hero-art::after, .bfw-category-hero-art::after { content: none; display: none; }
.bfw-hero-art picture, .bfw-category-hero-art { padding-bottom: 0; }
