/* ---------- Base tab styles (apply to all devices) ---------- */
.pro-tabs .nav-link {
    border-bottom: 2px solid #dedede !important;
    background: #fff !important;
    color: black;
    transition: border-color 0.3s ease, color 0.3s ease, font-size 0.3s ease,
        line-height 0.3s ease;
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    border-radius: 0px !important;
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
    padding: 16px 22px;
    font-size: 1rem;
    line-height: 1.8rem;
}

.pro-tabs .nav-link.active,
.pro-tabs .nav-link:hover {
    border-bottom: 2px solid #8bc34a !important;
    color: #8bc34a !important;
    font-size: 1.6rem;
    line-height: 2.2rem;
    font-weight: 600;
    cursor: pointer;
}

/* ---------- Product layout ---------- */
.product_top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 20px;
}

.product_top img {
    width: 100% !important;
    height: 350px !important;
    border: 2px solid #8bc34a;
    border-radius: 10px;
    margin-right: 30px;
    object-fit: contain;
}

.product_info h2 {
    margin: 0 0 5px 0;
    font-size: 1.6rem;
    line-height: 2.2rem;
    font-weight: 600;
    color: #8bc34a;
    font-family: "notosans", Sans-serif;
    margin-top: 30px;
    text-align: left;
}

.product_desc {
    font-family: "notosans", Sans-serif;
    font-size: 1.1rem;
    line-height: 1.9rem;
}

.product_desc h4 {
    margin-top: 1.2rem;
    font-size: 1.3rem;
    line-height: 1.8rem;
    font-weight: 600;
}

.product_info p {
    font-size: 1rem;
    line-height: 1.6rem;
    font-weight: 600;
    font-family: "notosans", Sans-serif;
}

.product_info .product_category_name {
    font-size: 1rem;
    line-height: 1.35rem;
    font-weight: 500;
    font-family: "notosans", Sans-serif;
    color: #acacac;
    margin-top: 6px;
}

/* ---------- Responsive =786px ---------- */
@media (max-width: 786px) {
    .product_top {
        flex-direction: column;
        align-items: center;
    }

    .product_top img {
        width: 100%;
        max-width: 350px;
        height: auto;
        margin-right: 0;
    }

    .product_info h2 {
        margin-top: 0px;
        font-size: 1.2rem;
        line-height: 1.8rem;
    }

    .pro-tabs .nav-link {
        padding: 10px 14px;
    }

    .product_top img {
        width: 100% !important;
        height: 250px !important;
    }

    .pro-tabs .nav-link.active,
    .pro-tabs .nav-link:hover {
        font-size: 1.4rem;
        line-height: 2rem;
    }

    .product_info {
        text-align: center;
        margin-top: 10px;
    }

    /* For smaller screens, center-align nav links if needed */
    .pro-tabs .nav-link {
        text-align: left;
    }
}

/* ---------- Optional: Desktop-only hover-to-switch content ---------- */
@media (min-width: 787px) {
    .tab-content>.tab-pane {
        display: none;
    }

    #v-pills-tab1:hover~.tab-content #v-pills-content1,
    #v-pills-tab2:hover~.tab-content #v-pills-content2 {
        display: block !important;
    }

    .tab-content .active {
        display: block !important;
    }
}

.pro-tabs {
    font-family: "notosans", Sans-serif;
}

@media (min-width: 1025px) {
    .partner-product-tabs {
        display: flex;
        align-items: flex-start;
        position: relative;
        overflow: visible;
        /* required for sticky */
    }

    /* Left column: sticky */
    .partner-product-tabs .col-md-5 {
        position: sticky;
        top: calc(200px + var(--admin-bar, 0px));
        /* adjust for header height */
        align-self: flex-start;
        height: fit-content;
        z-index: 1;
        background: #fff;
        /* optional - prevents overlap flicker */
    }

    /* Right column: scrolls normally */
    .partner-product-tabs .col-md-7 {
        position: relative;
        z-index: 1;
    }
}