.fbi-section {
    clear: both;
    margin: 32px 0 10px;
}

.fbi-section__header {
    margin-bottom: 16px;
    text-align: center;
}

.fbi-section__title {
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

.fbi-carousel {
    position: relative;
}

.fbi-items {
    display: grid;
    gap: 16px;
}

.fbi-columns-4 .fbi-items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fbi-columns-6 .fbi-items {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.fbi-item {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Card hover like the category cards on /walk-in-tubs/: soft shadow + 1.5px lift (only where a mouse can hover). */
@media (hover: hover) {
    .fbi-item:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-1.5px);
    }

    .fbi-item:hover .fbi-item__title-link,
    .fbi-item .fbi-item__title-link:hover {
        color: #1754af;
    }
}

.fbi-item__thumb {
    aspect-ratio: 1 / 1;
    display: block;
    line-height: 0;
    overflow: hidden;
}

.fbi-item__thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.fbi-item__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.fbt-cart-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.fbi-item__title {
    font-size: 1rem;
    font-weight: 400 !important;
    line-height: 1.35;
    margin: 0;
    text-align: center;
}

/* Product name: black; the site link blue (#1754af) on hover (rule above). */
.fbi-item .fbi-item__title-link {
    color: #000;
    transition: color 0.25s ease;
}

.fbi-item .fbi-item__title-link:focus-visible {
    color: #1754af;
}

.fbi-item__title-link {
    display: -webkit-box;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    word-break: break-word;
    -webkit-box-orient: vertical;
}

.fbi-title-lines-2 .fbi-item__title-link {
    -webkit-line-clamp: 2;
}

.fbi-title-lines-3 .fbi-item__title-link {
    -webkit-line-clamp: 3;
}

.fbi-title-lines-full .fbi-item__title-link {
    display: block;
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
}

.fbi-item__price {
    font-weight: 600;
}

.fbi-item__actions {
    padding-top: 4px;
}

.fbi-item__button {
    background-color: #fff !important;
    border: #446084 3px solid !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    color: #000 !important;
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    padding: 10px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 100% !important;
}

.fbi-item__button:hover,
.fbi-item__button:focus {
    background-color: #446084 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.fbi-section__cta {
    margin-top: 0;
    text-align: center;
}

/* "View More Accessories" = the site's navy buttons (home page .new-learnmore): #114165, white 16px / 600,
   10px corners, soft shadow; hover shrinks a little and brightens. */
.fbi-section__cta-button {
    background: #114165 !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
    color: #fff !important;
    display: inline-block;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    margin-top: 1em;
    padding: 15.5px 48px;
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.3s ease, filter 0.3s ease;
    width: auto !important;
}

.fbi-section__cta-button:hover,
.fbi-section__cta-button:focus {
    color: #fff !important;
    filter: brightness(1.2);
    text-decoration: none !important;
    transform: scale(.97);
}

.fbi-carousel__arrow {
    display: none;
    margin-right: 0 !important;
}

@media (max-width: 1100px) {
    .fbi-columns-6 .fbi-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fbi-columns-4 .fbi-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 849px) {
    .fbi-mobile-grid .fbi-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fbi-mobile-slider .fbi-carousel {
        overflow: hidden;
        padding: 0 58px;
    }

    .fbi-mobile-slider .fbi-items {
        display: flex;
        gap: 0;
        margin: 0;
        overflow-x: auto;
        padding: 0 0 6px;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .fbi-mobile-slider .fbi-items::-webkit-scrollbar {
        display: none;
    }

    .fbi-mobile-slider .fbi-item {
        box-sizing: border-box;
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .fbi-mobile-slider .fbi-carousel__arrow {
        align-items: center;
        margin-right: 0 !important;
        background: #294f7a;
        border: 0;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
        color: #fff;
        cursor: pointer;
        display: flex;
        height: 116px;
        justify-content: center;
        line-height: 1;
        padding: 0;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        z-index: 4;
    }

    .fbi-mobile-slider .fbi-carousel__arrow--prev {
        left: 0;
    }

    .fbi-mobile-slider .fbi-carousel__arrow--next {
        right: 0;
    }

    .fbi-mobile-slider .fbi-carousel__arrow[disabled] {
        cursor: default;
        opacity: 0.45;
    }

    .fbi-carousel__arrow-icon {
        font-size: 42px;
        font-weight: 700;
        transform: translateY(-2px);
    }
}

@media (max-width: 520px) {
    .fbi-mobile-grid .fbi-items {
        grid-template-columns: 1fr;
    }

    .fbi-mobile-slider .fbi-carousel {
        padding: 0 52px;
    }

    .fbi-mobile-slider .fbi-carousel__arrow {
        height: 104px;
        width: 40px;
    }
}

/* Phones and tablets (up to 1000px): the section title = the product page's main title (h1) - 28px / 500, #140000,
   line-height 1.3; centered (owner 2026-10-21; was the "Description (...)" heading, 22.4px / 400 / #000000). The site
   font block in Global [CSS] draws it in Eloquia, like the h1. Desktop: Global [CSS] block "FBT ... title on desktop". */
@media (max-width: 1000px) {
    .fbi-section__title {
        font-family: "Open Sans", sans-serif;
        font-size: 28px;
        font-weight: 500;
        font-style: normal;
        color: #140000;
        line-height: 1.3;
        text-align: center;
    }
}

/* Phones (up to 849px, the phone slider layout): a title that starts with "Frequently Bought" shows in two lines,
   "Frequently Bought" / the rest (owner 2026-10-21). class-fbi-public.php wraps the two parts in these spans. */
@media (max-width: 849px) {
    .fbi-section__title-lead,
    .fbi-section__title-rest {
        display: block;
    }
}

/* Phone/tablet slider = the home page AWTSlide cards ("Version 1", owner 2026-10-05): the card fills the slider,
   14px corners + thin border, rounded picture, grey uppercase category line, product name inside a navy button;
   36x102 navy capsule arrows on the picture with thin chevrons, shown and active from the first paint like the AWTSlide
   arrows; the slider loops and autoplays (public.js, owner 2026-10-23). The category line shows only here. */
.fbi-item__eyebrow {
    display: none;
}

@media (max-width: 849px) {
    .fbi-mobile-slider .fbi-carousel {
        container-type: inline-size;
        padding: 0;
    }

    .fbi-mobile-slider .fbi-item {
        border: 1px solid rgba(17, 24, 39, 0.14);
        border-radius: 14px;
    }

    .fbi-mobile-slider .fbi-item__thumb {
        border-radius: 14px;
        margin: 1px;
    }

    .fbi-mobile-slider .fbi-item__content {
        gap: 14px;
        padding: 12px 15px 15px;
    }

    /* 13px like the home cards, down to 11px on narrow phones: a line up to ~356px wide at 13px stays on one line
       (100cqi - 32px = the card's text width); longer ones wrap, balanced. */
    .fbi-mobile-slider .fbi-item__eyebrow {
        color: #4b5563;
        display: block;
        font-size: 13px;
        font-size: clamp(11px, calc((100cqi - 32px) * 0.0365), 13px);
        font-weight: 700;
        letter-spacing: 0.08em;
        line-height: 1.15;
        margin-top: 4px;
        min-height: 1.15em;
        text-align: center;
        text-transform: uppercase;
        text-wrap: balance;
    }

    .fbi-mobile-slider .fbi-item__title {
        background: #114165;
        border-radius: 12px;
        padding: 18px 26px;
    }

    .fbi-mobile-slider .fbi-item .fbi-item__title-link {
        color: #fff;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.3;
    }

    /* Centered on the square picture: the picture is as wide as the carousel, so its middle is 50cqi down. */
    .fbi-mobile-slider .fbi-carousel__arrow {
        background: #114165;
        border-radius: 999px;
        box-shadow: none;
        height: 102px;
        top: 50%;
        top: 50cqi;
        width: 36px;
    }

    .fbi-mobile-slider .fbi-carousel__arrow--prev {
        left: 8px;
    }

    .fbi-mobile-slider .fbi-carousel__arrow--next {
        right: 8px;
    }

    /* The slider loops (owner 2026-10-23), so both arrows are active from the first paint; public.js disables them
       only for a single-item slider. */
    .fbi-mobile-slider .fbi-carousel__arrow[disabled] {
        opacity: 0.45;
    }

    .fbi-mobile-slider .fbi-carousel__arrow-icon {
        display: flex;
        transform: none;
    }

    .fbi-mobile-slider .fbi-carousel__arrow-icon svg {
        display: block;
        height: 23px;
        width: 23px;
    }
}

@media (max-width: 849px) and (hover: hover) {
    /* The card already fills the slider: no lift (the track would clip its rounded top edge). */
    .fbi-mobile-slider .fbi-item:hover {
        box-shadow: none;
        transform: none;
    }
}

/* 0.0.13-kit.2: the add-the-set button and the set saving's note. */
.fbi-add-set-wrap {
    margin-top: 16px;
    text-align: center;
}

.fbi-set-saving {
    font-weight: 600;
    margin: 16px 0 0;
    text-align: center;
}

.fbi-add-set__note,
.fbi-add-set__status {
    font-size: 0.875em;
    margin: 8px 0 0;
    text-align: center;
}

.fbi-add-set__status:empty {
    display: none;
}
