/**
 * Product Tabs - jl_magic_tabs custom template styles
 * Bootstrap 5 nav-tabs with custom styling for the /products page.
 */

/* Tab navigation bar */
.jl_magic_tabs_product_tabs .product-tabs-nav {
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0;
}

/* Tab items */
.jl_magic_tabs_product_tabs .nav-item {
    margin-bottom: -6px;
    flex: 1 1 0;
    text-align: center;
}

/* Tab links */
.jl_magic_tabs_product_tabs .nav-link,
.jl_magic_tabs_product_tabs .nav-link a {
    color: #1a202c !important;
    text-decoration: none;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.4px;
    text-align: center;
    padding: 0.85rem 1rem;
    border: none;
    border-bottom: 6px solid transparent;
    border-radius: 0;
    background: transparent;
    transition:
        font-weight 0.2s ease,
        border-color 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    display: block;
    width: 100%;
}

.jl_magic_tabs_product_tabs .nav-link:hover,
.jl_magic_tabs_product_tabs .nav-link a:hover {
    color: #1a202c !important;
    text-decoration: none;
    background: transparent;
    border-bottom-color: #adb5bd;
}

/* Active tab */
.jl_magic_tabs_product_tabs .nav-link.active,
.jl_magic_tabs_product_tabs .nav-link.active a {
    color: #1a202c !important;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    border-bottom: 6px solid #409df3;
}

/* Tab body content area */
.jl_magic_tabs_product_tabs_body {
    padding: 1.5rem 0;
}

.jl_magic_tabs_divider {
    opacity: 1;
    transition: opacity 0.2s ease;
}

html.product-tabs-preload .jl_magic_tabs_divider {
    opacity: 0 !important;
    pointer-events: none;
}

/* Responsive: horizontal scroll on small screens */
@media (max-width: 767.98px) {
    .jl_magic_tabs_product_tabs .product-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .jl_magic_tabs_product_tabs .nav-item {
        flex: 0 0 auto;
    }

    .jl_magic_tabs_product_tabs .nav-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}
