/* Product content navigator — loaded only on eligible single-product pages. */
.thean-product-navigator {
    --thean-product-navigator-bottom: 14px;
    --thean-product-navigator-surface: var(--default-color-white, #fff);
    --thean-product-navigator-text: var(--default-color-navy-blue, #001f3f);
    --thean-product-navigator-primary: var(--default-color-green, #08e097);
    --thean-product-navigator-radius: var(--md-radius, 8px);
    --thean-product-navigator-shadow: var(--md-shadow-2, 0 3px 6px rgba(0,0,0,.16));
    --lw-green: #087a5a;
    color: var(--thean-product-navigator-text);
    margin: 0 auto 12px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.thean-product-navigator__sticky,
.thean-product-navigator__floating {
    display: none;
}

.thean-product-navigator__sticky {
    align-items: center;
    gap: 8px;
    max-width: min(1120px, calc(100vw - 24px));
    padding: 8px;
    background: var(--thean-product-navigator-surface);
    border: 1px solid var(--default-color-grey, #ededed);
    border-radius: var(--thean-product-navigator-radius);
    box-shadow: var(--thean-product-navigator-shadow);
}

.thean-product-navigator__list {
    display: flex;
    gap: 6px;
    min-width: 0;
}

.thean-product-navigator__sticky .thean-product-navigator__list {
    overflow-x: auto;
    scrollbar-width: thin;
    flex: 1 1 auto;
    padding: 1px;
}

.thean-product-navigator__item,
.thean-product-navigator__buy,
.thean-product-navigator__toggle {
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    text-decoration: none;
    transition: var(--md-transition, all .25s cubic-bezier(.4,0,.2,1));
}

.thean-product-navigator__item {
    background: var(--default-color-grey-2, #f8f4f2);
    border: 1px solid transparent;
    color: var(--thean-product-navigator-text);
    gap: 8px;
    padding: 8px 12px;
    white-space: nowrap;
}

.thean-product-navigator__item:hover,
.thean-product-navigator__item:focus-visible,
.thean-product-navigator__item.is-active {
    background: var(--thean-product-navigator-primary);
    border-color: var(--thean-product-navigator-primary);
    color: var(--default-color-navy-blue, #001f3f);
    outline: 0;
}

.thean-product-navigator__buy {
    border: 0;
    color: var(--default-color-white, #fff);
    flex: 0 0 auto;
    padding: 8px 16px;
    white-space: nowrap;
}

.thean-product-navigator__floating {
    position: relative;
}

.thean-product-navigator__backdrop {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: rgba(0, 31, 63, .28);
    inset: 0;
    position: fixed;
    z-index: 1002;
}

.thean-product-navigator__toggle {
    background: var(--thean-product-navigator-primary);
    border: 0;
    color: var(--default-color-white, #fff);
    gap: 7px;
    padding: 8px 16px;
}

.thean-product-navigator__popover {
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    background: rgba(255, 255, 255, .90);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: var(--thean-product-navigator-radius);
    bottom: calc(100% + 10px);
    box-shadow: 0 18px 40px rgba(0, 31, 63, .18), 0 3px 8px rgba(0, 31, 63, .10);
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 12px;
    position: absolute;
    right: 0;
    width: min(340px, calc(100vw - 24px));
    z-index: 1;
}

.thean-product-navigator__popover .thean-product-navigator__list {
    flex-direction: column;
}

.thean-product-navigator__popover .thean-product-navigator__item {
    background: rgba(248, 244, 242, .84);
    border-color: rgba(0, 31, 63, .05);
}

.thean-product-navigator__popover .thean-product-navigator__item:hover,
.thean-product-navigator__popover .thean-product-navigator__item:focus-visible,
.thean-product-navigator__popover .thean-product-navigator__item.is-active {
    background: var(--thean-product-navigator-primary);
    border-color: var(--thean-product-navigator-primary);
}

.thean-product-navigator__popover .thean-product-navigator__item,
.thean-product-navigator__popover .thean-product-navigator__buy {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    width: 100%;
}

.thean-product-navigator__popover .thean-product-navigator__buy {
    justify-content: center;
    margin-top: 12px;
    text-align: center;
}

/* Product details stay expanded; navigator buttons only move the viewport. */
.single-product .woocommerce-tabs .accordion_item .panel.entry-content {
    display: block !important;
    height: auto !important;
}

.single-product .woocommerce-tabs .accordion_item .tab-heading {
    cursor: default;
}

.single-product .woocommerce-tabs .accordion_item .heading {
    align-items: center;
    display: flex;
    gap: 8px;
}

.single-product .woocommerce-tabs .accordion_item .tab-heading {
    flex: 1 1 auto;
}

.single-product .woocommerce-tabs .accordion_item .tab-heading__icon {
    color: var(--default-color-navy-blue, #001f3f);
    font-size: 14px;
    text-align: center;
    width: 16px;
}

.single-product .woocommerce-tabs .accordion_item .heading::before,
.single-product .woocommerce-tabs .accordion_item .heading::after,
.single-product .woocommerce-tabs .accordion_item .tab-heading::before,
.single-product .woocommerce-tabs .accordion_item .tab-heading::after {
    content: none !important;
    display: none !important;
}

@media (min-width: 768px) {
    .thean-product-navigator[data-desktop-mode="sticky_bar"] {
        bottom: var(--thean-product-navigator-bottom);
        left: 50%;
        margin: 0;
        position: fixed;
        transform: translateX(-50%);
        width: 100vw;
        z-index: 1003;
    }
    .thean-product-navigator[data-desktop-mode="sticky_bar"] .thean-product-navigator__sticky {
        gap: 6px;
        display: flex;
        justify-content: center;
        max-width: none;
        padding: 6px 16px;
        width: 100%;
    }
    .thean-product-navigator[data-desktop-mode="sticky_bar"] .thean-product-navigator__list {
        flex: 0 1 auto;
        flex-wrap: wrap;
        justify-content: center;
        max-width: calc(100% - 106px);
        overflow: visible;
        scrollbar-width: auto;
    }
    .thean-product-navigator[data-desktop-mode="sticky_bar"] .thean-product-navigator__item {
        font-size: 13px;
        min-height: 38px;
        padding: 6px 10px;
    }
    .thean-product-navigator[data-desktop-mode="sticky_bar"] button.thean-product-navigator__buy {
        letter-spacing: 0;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
    }
    .thean-product-navigator[data-desktop-mode="floating_toc"] {
        bottom: var(--thean-product-navigator-bottom);
        left: auto;
        margin: 0;
        position: fixed;
        right: 20px;
        width: auto;
        z-index: 1003;
    }
    .thean-product-navigator[data-desktop-mode="floating_toc"] .thean-product-navigator__floating { display: block; }
}

@media (max-width: 767px) {
    .thean-product-navigator {
        bottom: var(--thean-product-navigator-bottom);
        left: 12px;
        margin: 0;
        position: fixed;
        right: 12px;
        width: auto;
        z-index: 1003;
    }
    .thean-product-navigator[data-mobile-mode="sticky_bar"] .thean-product-navigator__sticky { display: flex; }
    .thean-product-navigator[data-mobile-mode="floating_toc"] {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 100vw;
    }
    .thean-product-navigator[data-mobile-mode="floating_toc"] .thean-product-navigator__floating {
        align-items: center;
        display: flex;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }
    .thean-product-navigator__sticky { max-width: none; }
    .thean-product-navigator__sticky .thean-product-navigator__buy { padding-left: 12px; padding-right: 12px; }
    .thean-product-navigator__toggle { font-size: 14px; min-width: 0; padding: 8px 10px; }
    .thean-product-navigator__toggle i { font-size: 14px; line-height: 1; text-align: center; width: 14px; }
    .thean-product-navigator__popover {
        bottom: calc(100% + 8px);
        box-sizing: border-box;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(360px, calc(100vw - 28px));
    }
    .thean-lw-trigger.thean-product-navigator-neighbor {
        bottom: auto !important;
        border-radius: 5px;
        font-size: 14px;
        left: auto !important;
        position: static !important;
        right: auto !important;
        transform: none !important;
    }
}

.thean-product-purchase-modal[hidden] { display: none; }
.thean-product-purchase-modal { inset: 0; position: fixed; z-index: 1005; }
.thean-product-purchase-modal__backdrop {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: rgba(0, 31, 63, .55);
    inset: 0;
    position: absolute;
}
.thean-product-purchase-modal__dialog {
    background: var(--default-color-white, #fff);
    border-radius: var(--thean-product-navigator-radius, 8px);
    box-shadow: var(--default-box-shadow, 0 20px 50px rgba(0,0,0,.3));
    left: 50%; max-height: min(88vh, 720px); max-width: 560px; overflow: auto;
    padding: 28px; position: absolute; top: 50%; transform: translate(-50%, -50%); width: calc(100vw - 32px);
}
.thean-product-purchase-modal__dialog:focus { outline: 0; }
.thean-product-purchase-modal__dialog h2 { color: var(--default-color-navy-blue, #001f3f); font-size: 26px; margin: 0 34px 6px 0; }
.thean-product-purchase-modal__price { color: var(--default-color-pink, #ff8189); font-size: 20px; font-weight: 700; margin: 0 0 18px; }
.thean-product-purchase-modal__close { background: transparent; border: 0; color: var(--default-color-black, #323232); cursor: pointer; font-size: 32px; line-height: 1; position: absolute; right: 14px; top: 12px; }
.thean-product-purchase-modal__form .p-single-action { border: 0; padding-bottom: 0; }
.thean-product-purchase-modal-open { overflow: hidden; }

@media (max-width: 767px) {
    .thean-product-purchase-modal__dialog { border-radius: 12px 12px 0 0; bottom: 0; max-height: 86vh; padding: 24px 18px; top: auto; transform: translateX(-50%); width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .thean-product-navigator__item, .thean-product-navigator__buy, .thean-product-navigator__toggle { transition: none; }
}
