/*
 * Product roles rendered on the storefront home page.
 *
 * IMPORTANT:
 * - Admin-configured product roles intentionally do NOT use Owl Carousel.
 * - This prevents global Owl/slider-navigation rules from creating duplicate
 *   prev/next controls.
 * - The role width follows .bb-home-role-shell. Hero RoleCode=5 is deliberately
 *   outside that shell so its admin-selected slider width remains authoritative.
 */
.bb-home-product-role {
    --bb-home-role-accent: #da3f3f;
    --bb-home-role-text: #1c1d1f;
    --bb-home-role-muted: #74777b;
    --bb-home-role-border: #e8e8e8;
    --bb-home-role-gap: 20px;
    display: flow-root !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 52px 0 64px !important;
    padding: 0 !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1;
}

.bb-home-product-role,
.bb-home-product-role * {
    box-sizing: border-box;
}

.bb-home-product-role__header {
    min-height: 56px;
    margin: 0 0 22px;
    padding: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid var(--bb-home-role-border);
}

.bb-home-product-role__heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.bb-home-product-role__accent {
    flex: 0 0 auto;
    width: 5px;
    height: 30px;
    border-radius: 99px;
    background: var(--bb-home-role-accent);
}

.bb-home-product-role__title {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--bb-home-role-text) !important;
    font-size: clamp(20px, 1.55vw, 26px) !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    letter-spacing: -.02em;
}

.bb-home-product-role__title::before,
.bb-home-product-role__title::after {
    display: none !important;
    content: none !important;
}

.bb-home-product-role__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bb-home-product-role__nav {
    display: flex;
    align-items: center;
    gap: 7px;
    direction: rtl;
}

.bb-home-product-role__nav-btn {
    position: static !important;
    inset: auto !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #dedede !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #202225 !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease !important;
}

.bb-home-product-role__nav-btn i {
    margin: 0 !important;
    color: inherit !important;
    font-size: 19px !important;
    line-height: 1 !important;
}

.bb-home-product-role__nav-btn:hover:not(:disabled),
.bb-home-product-role__nav-btn:focus-visible:not(:disabled) {
    border-color: var(--bb-home-role-accent) !important;
    background: var(--bb-home-role-accent) !important;
    color: #fff !important;
    outline: 0 !important;
    transform: translateY(-1px);
}

.bb-home-product-role__nav-btn:disabled {
    opacity: .32 !important;
    cursor: default !important;
}

.bb-home-product-role__all,
.bb-home-product-role__all:link,
.bb-home-product-role__all:visited {
    min-height: 40px;
    margin: 0 !important;
    padding: 8px 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    border: 1px solid #dedede !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #242629 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease !important;
}

.bb-home-product-role__all i {
    margin: 0 !important;
    color: var(--bb-home-role-accent) !important;
    font-size: 12px !important;
    transition: color .2s ease, transform .2s ease;
}

.bb-home-product-role__all:hover,
.bb-home-product-role__all:focus-visible {
    border-color: var(--bb-home-role-accent) !important;
    background: var(--bb-home-role-accent) !important;
    color: #fff !important;
    outline: 0 !important;
    transform: translateY(-1px);
}

.bb-home-product-role__all:hover i,
.bb-home-product-role__all:focus-visible i {
    color: #fff !important;
    transform: translateX(-2px);
}

.bb-home-product-role__slider-shell {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative;
}

/* Native role carousel. Keeping Owl classes off this element is deliberate. */
.bb-home-product-role__carousel {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 4px 2px 14px !important;
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc((100% - (var(--bb-home-role-gap) * 3)) / 4) !important;
    gap: var(--bb-home-role-gap) !important;
    align-items: stretch !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x pan-y;
}

.bb-home-product-role__carousel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.bb-home-product-role__carousel > .bb-home-product-role__item {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-self: stretch !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.bb-home-product-role .bb-unified-product-card,
.bb-home-product-role .bb-home-product-card {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.bb-home-product-role .bb-product-card__content,
.bb-home-product-role .category-main-body {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    transform: none !important;
}

.bb-home-product-role .bb-product-card__media,
.bb-home-product-role .category-img-card-wrap,
.bb-home-product-role .bb-product-media-full {
    flex: 0 0 auto !important;
}

/* Belt-and-suspenders protection if a third-party script injects Owl markup. */
.bb-home-product-role .owl-nav,
.bb-home-product-role .owl-dots,
.bb-home-product-role button.owl-prev,
.bb-home-product-role button.owl-next {
    display: none !important;
}

@media (max-width: 1199px) {
    .bb-home-product-role__carousel {
        grid-auto-columns: calc((100% - (var(--bb-home-role-gap) * 2)) / 3) !important;
    }
}

@media (max-width: 899px) {
    .bb-home-product-role {
        margin-top: 44px !important;
        margin-bottom: 54px !important;
    }

    .bb-home-product-role__header {
        gap: 14px;
    }

    .bb-home-product-role__carousel {
        --bb-home-role-gap: 16px;
        grid-auto-columns: calc((100% - var(--bb-home-role-gap)) / 2) !important;
    }
}

@media (max-width: 575px) {
    .bb-home-product-role {
        margin-top: 36px !important;
        margin-bottom: 46px !important;
    }

    .bb-home-product-role__header {
        min-height: 0;
        margin-bottom: 17px;
        padding-bottom: 12px;
        align-items: flex-end;
    }

    .bb-home-product-role__accent {
        width: 4px;
        height: 25px;
    }

    .bb-home-product-role__title {
        font-size: 18px !important;
    }

    .bb-home-product-role__actions {
        gap: 7px;
    }

    .bb-home-product-role__nav {
        gap: 5px;
    }

    .bb-home-product-role__nav-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    .bb-home-product-role__all,
    .bb-home-product-role__all:link,
    .bb-home-product-role__all:visited {
        width: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0 !important;
        border-radius: 50% !important;
    }

    .bb-home-product-role__all span {
        display: none;
    }

    .bb-home-product-role__all i {
        font-size: 13px !important;
    }

    .bb-home-product-role__carousel {
        --bb-home-role-gap: 14px;
        grid-auto-columns: min(82vw, 300px) !important;
    }
}

/* v6 - deterministic native dragging and single navigation set */
.bb-home-product-role__carousel {
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.bb-home-product-role__carousel.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

.bb-home-product-role__carousel.is-dragging *,
.bb-home-product-role__carousel img,
.bb-home-product-role__carousel a {
    -webkit-user-drag: none;
}

.bb-home-product-role__nav.is-disabled {
    display: none !important;
}

/* Product roles own exactly one pair of controls in their header. Hide/remove
   every navigation surface that legacy Owl/Bootstrap/Slick/Swiper can inject. */
.bb-home-product-role__slider-shell .owl-nav,
.bb-home-product-role__slider-shell .owl-dots,
.bb-home-product-role__slider-shell button.owl-prev,
.bb-home-product-role__slider-shell button.owl-next,
.bb-home-product-role__slider-shell .carousel-control-prev,
.bb-home-product-role__slider-shell .carousel-control-next,
.bb-home-product-role__slider-shell .slick-prev,
.bb-home-product-role__slider-shell .slick-next,
.bb-home-product-role__slider-shell .swiper-button-prev,
.bb-home-product-role__slider-shell .swiper-button-next {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.bb-home-product-role__actions > .bb-home-product-role__nav ~ .bb-home-product-role__nav {
    display: none !important;
}


/* v7 - self-contained slider icons.
   Never rely on Font Awesome or legacy button pseudo-elements for role navigation. */
.bb-home-product-role__nav-btn,
.bb-home-product-role__nav-btn:hover,
.bb-home-product-role__nav-btn:focus,
.bb-home-product-role__nav-btn:focus-visible,
.bb-home-product-role__nav-btn:active {
    position: static !important;
    overflow: hidden !important;
    line-height: 0 !important;
    text-indent: 0 !important;
}

.bb-home-product-role__nav-btn::before,
.bb-home-product-role__nav-btn::after {
    content: none !important;
    display: none !important;
    position: static !important;
    inset: auto !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
}

.bb-home-product-role__nav-btn > .bb-home-product-role__nav-icon {
    position: static !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: inherit !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.1 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    transform: none !important;
    transition: none !important;
}

.bb-home-product-role__nav-btn:hover > .bb-home-product-role__nav-icon,
.bb-home-product-role__nav-btn:focus > .bb-home-product-role__nav-icon,
.bb-home-product-role__nav-btn:focus-visible > .bb-home-product-role__nav-icon,
.bb-home-product-role__nav-btn:active > .bb-home-product-role__nav-icon {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    color: inherit !important;
    transform: none !important;
}

/* Remove old icon-font nodes if stale markup is ever mixed with the new role. */
.bb-home-product-role__nav-btn > i,
.bb-home-product-role__nav-btn > .fa,
.bb-home-product-role__nav-btn > [class*="fa-"] {
    display: none !important;
}

.bb-home-product-role__all > .bb-home-product-role__all-icon {
    position: static !important;
    flex: 0 0 auto !important;
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    color: var(--bb-home-role-accent) !important;
    pointer-events: none !important;
    transform: none !important;
    transition: color .2s ease, transform .2s ease !important;
}

.bb-home-product-role__all:hover > .bb-home-product-role__all-icon,
.bb-home-product-role__all:focus-visible > .bb-home-product-role__all-icon {
    color: #fff !important;
    transform: translateX(-2px) !important;
}

@media (max-width: 575px) {
    .bb-home-product-role__nav-btn > .bb-home-product-role__nav-icon {
        width: 17px !important;
        height: 17px !important;
    }

    .bb-home-product-role__all > .bb-home-product-role__all-icon {
        width: 14px !important;
        height: 14px !important;
    }
}
