/* AWA Round2 (dual-write hotfix)
   Homepage-only visual polish for product tabs + Owl controls. */

:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) {
    overflow: visible;
}

:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .list-tab-product .tab-title-container,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product .tab-title-list {
    gap: var(--awa-space-2);
    margin-bottom: var(--awa-space-6);
}

:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .list-tab-product .tab-title-link,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product .tab-title-item,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product ul.tabs li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-width: 2px;
    border-color: color-mix(in srgb, var(--primary-color) 16%, var(--awa-gray-200));
    color: var(--text-color);
    transition: background-color var(--awa-round2-transition), border-color var(--awa-round2-transition), color var(--awa-round2-transition), box-shadow var(--awa-round2-transition);
    text-align: center;
    line-height: 1.15;
}

:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .list-tab-product .tab-title-link.active,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .list-tab-product .tab-title-link:hover,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product .tab-title-item.active,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product .tab-title-item:hover,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product ul.tabs li.active,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product ul.tabs li:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-color) 24%, transparent);
}

:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .list-tab-product .tab-title-link:focus-visible,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product .tab-title-item:focus-visible,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product ul.tabs li:focus-visible {
    outline: none;
    box-shadow: var(--awa-round2-focus-ring);
}

:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) :is(.tab_container, .tab-content, .productTabContent, .tab_content) {
    overflow: visible;
}

/* Owl controls in tabs */
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) .owl-carousel .owl-nav button.owl-prev,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) .owl-carousel .owl-nav button.owl-next {
    background: var(--bg-white);
    border-color: color-mix(in srgb, var(--primary-color) 18%, var(--awa-gray-200));
    color: var(--text-color);
    box-shadow: 0 6px 18px rgb(0 0 0 / 10%);
}

:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) .owl-carousel .owl-nav button.owl-prev:hover,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) .owl-carousel .owl-nav button.owl-next:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--bg-white);
}

:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) .owl-carousel .owl-nav button.owl-prev:focus-visible,
:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) .owl-carousel .owl-nav button.owl-next:focus-visible {
    outline: none;
    box-shadow: var(--awa-round2-focus-ring);
}

:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) .owl-carousel .owl-dot span {
    background: color-mix(in srgb, var(--primary-color) 22%, white);
}

:is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) .owl-carousel .owl-dot.active span {
    background: var(--primary-color);
}

@media (width <= 767px) {
    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .list-tab-product .tab-title-container,
    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product .tab-title-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow: auto hidden;
        padding-bottom: 4px;
        margin-inline: -2px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .list-tab-product .tab-title-container > *,
    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product .tab-title-list > * {
        flex: 0 0 auto;
    }

    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .list-tab-product .tab-title-link,
    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product .tab-title-item,
    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper .tab_product ul.tabs li {
        padding: 10px 14px;
        font-size: var(--awa-text-xs);
    }

    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) .owl-carousel .owl-nav button.owl-prev,
    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) .owl-carousel .owl-nav button.owl-next {
        width: 40px;
        height: 40px;
    }

    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) .owl-carousel .owl-nav button.owl-prev {
        left: 6px;
    }

    :is(body.cms-index-index, body.cms-home, body.cms-homepage_ayo_home5) .page-wrapper :is(.list-tab-product, .tab_product) .owl-carousel .owl-nav button.owl-next {
        right: 6px;
    }
}
