/* WC Bilingual — Frontend Language Switcher */

.wcbd-bilingual-wrap { margin-top: 0; }

/* Section tabs (Description / Ingredients / How to use / Key Features) */
.wcbd-section-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

/* Mobile: keep tabs on a single horizontal row and allow finger swipe scrolling */
@media (max-width: 600px) {
    .wcbd-section-switcher {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x proximity;
        padding-bottom: 4px;
    }
    .wcbd-section-switcher::-webkit-scrollbar { display: none; }
    .wcbd-section-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
    }
}
.wcbd-section-tab {
    background: #f1f3f4;
    border: 1px solid transparent;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-radius: 6px;
    transition: background .2s, color .2s, border-color .2s;
    line-height: 1.3;
}
.wcbd-section-tab:hover { background: #e4e7e9; color: #222; }
.wcbd-section-tab.active {
    background-color: #025E5B;
    color: #ffffff;
    border-color: #025E5B;
}
.woocommerce .wcbd-section-tab.active {
    background-color: #025E5B;
    color: #ffffff;
    border-color: #025E5B;
}

/* Section content panels */
.wcbd-section-content { display: none; animation: wcbd-in .2s ease; }
.wcbd-section-content.active { display: block; }

.wcbd-lang-switcher {
    display: flex;
    gap: 0;
    margin-bottom: 22px;
    border-bottom: 2px solid #e8e8e8;
}

.wcbd-lang-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 9px 22px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
    letter-spacing: .01em;
}
.wcbd-lang-btn:hover { color: #333; }
.wcbd-lang-btn.active,
.woocommerce .wcbd-lang-btn.active {
    background-color: #025E5B !important;
    color: #ffffff !important;
    border-bottom-color: #025E5B !important;
    border-radius: 4px;
}

/* Panels */
.wcbd-lang-content { display: none; animation: wcbd-in .2s ease; }
.wcbd-lang-content.active { display: block; }

@keyframes wcbd-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wcbd-bangla {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'SolaimanLipi', sans-serif;
    font-size: 1.05em;
    line-height: 1.9;
}
.wcbd-content-inner { line-height: 1.75; }
.wcbd-content-inner p:last-child { margin-bottom: 0; }
