/*
 Theme Name:   BabyHeart Child
 Theme URI:    https://baby-heart.cn
 Description:  BabyHeart 品牌官网子主题 - 基于 Astra
 Template:     hello-elementor
 Version:      1.0.0
*/
/* Language selector is a fixed overlay; it does not participate in page layout. */
.bh-language-menu {
    position: fixed;
    z-index: 9999;
    min-width: 168px;
    padding: 8px;
    background: #fff;
    border: 1px solid #f1eee9;
    border-radius: 10px;
    box-shadow: 0 14px 42px rgba(15, 15, 15, 0.14);
}

.bh-language-menu[hidden] { display: none; }

.bh-language-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: #0f0f0f;
    font-family: 'Figtree', 'Noto Sans SC', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.bh-language-menu a:hover,
.bh-language-menu a:focus-visible { background: #fcfaf7; outline: none; }
.bh-language-menu a[aria-current='page'] { font-weight: 600; }

/* Mobile stability fixes: preserve the design while containing long content. */
img {
    max-width: 100%;
    height: auto;
}

.article-content,
.article-content *,
.product-card,
.product-desc,
.product-title,
.mobile-menu-link {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-content img {
    display: block;
    width: 100%;
    height: auto;
}

.mobile-menu-link,
.bh-language-menu a {
    min-height: 44px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .mobile-menu-link {
        display: flex;
        align-items: center;
    }
}
