/* Layout corrections verified at 320, 390, 768, 820, 1024 and 1440px. */
:root { --sub:#846568; --light:#947477; --t2:#715255; --t3:#947477; }
*, *::before, *::after { box-sizing:border-box; }
html { scroll-padding-top:90px; }
body { overflow-wrap:break-word; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline:3px solid var(--c1); outline-offset:3px;
}
button:disabled { cursor:not-allowed; }
input, textarea, select { max-width:100%; }
[hidden] { display:none!important; }
.native-limits, .native-limits small, .native-card-stock, .native-card-description { font-size:13px; line-height:1.8; color:var(--sub); }
.native-limits { font-weight:400; }
.native-retail-price { font-size:13px; color:var(--light); white-space:nowrap; }
.native-description { color:#664548; font-size:14px; line-height:1.9; }
.native-description :is(p, ul, ol) { margin:0 0 12px; }
.native-description h3 { font-size:18px; line-height:1.6; }
.native-description iframe { width:100%; max-width:100%; }
.native-description :is(img,video) { height:auto; max-width:100%; }
.native-description table { max-width:100%; overflow-x:auto; }
.native-methods { display:flex; flex-wrap:wrap; align-items:stretch; gap:8px; }
.native-methods .pay-item { min-height:44px; margin:0; padding:9px 10px; gap:6px; line-height:1.5; box-shadow:none; }
.native-methods .pay-item:has(input:checked) { border-color:var(--c1); background:#faf6f6; color:var(--c1); }
.native-methods .pay-item input { flex:0 0 16px; width:16px; height:16px; }
.native-quantity { display:inline-flex; height:44px; align-items:stretch; width:156px; max-width:100%; }
.native-quantity .native-qty-button { min-height:44px; height:44px; flex:0 0 44px; width:44px; min-width:44px; border-radius:0; }
.native-quantity .native-qty-button:first-child { border-radius:6px 0 0 6px; }
.native-quantity .native-qty-button:last-child { border-radius:0 6px 6px 0; }
.native-quantity input.form-control { flex:1 1 64px; width:64px!important; height:44px; min-height:44px; margin:0; padding:0 4px; border:1px solid #e9dcdd; border-left:0; border-right:0; font-size:16px; box-shadow:none; appearance:textfield; }
.native-quantity input::-webkit-inner-spin-button, .native-quantity input::-webkit-outer-spin-button { appearance:none; margin:0; }
.native-total { display:flex; align-items:baseline; gap:12px; padding:14px 0; margin:10px 0; border-top:1px solid #f2e7e8; }
.native-total strong { font-size:24px; font-variant-numeric:tabular-nums; }
.native-price-source p { margin:8px 0; }
.native-purchase-note { border:1px solid #f0e2e4; background:#fcfafa; padding:12px 14px; border-radius:6px; color:var(--sub); font-size:14px; line-height:1.7; margin:14px 0; }
.native-purchase-note a { color:var(--c1); text-decoration:underline; text-underline-offset:3px; margin-left:6px; }
.native-empty, .hm-empty-state, .native-query-empty { padding:32px 20px; text-align:center; line-height:1.9; font-size:14px; color:var(--sub); }
.native-empty a, .hm-empty-state a { color:var(--c1); text-decoration:underline; }
.native-query-empty { margin-top:18px; border:1px dashed #ecddde; border-radius:8px; background:#fff; }
.sale { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; }
.sale :is(.badge,.small-tips,.native-wholesale-item) { font-size:12px; padding:6px 9px; line-height:1.6; white-space:normal; }
.user-content .btn, .hm-auth-card .btn { display:inline-flex; justify-content:center; align-items:center; gap:6px; min-height:42px; padding:9px 14px; line-height:1.5; }
.user-content .btn-outline, .user-content .btn-ghost, .hm-auth-card .btn-outline { border:1px solid #e9d7d8; color:var(--sub); background:#fff; }
.user-content .btn-primary { color:#fff; border:1px solid transparent; }
.user-content .btn:disabled { opacity:.7; }
.user-content .card { min-width:0; }
.user-content .form-control, .hm-auth-card .form-control { min-height:44px; font-size:16px; }
.hm-account-heading :is(h1,h2) { margin:0; }
.hm-account-stats strong { font-variant-numeric:tabular-nums; }
.hm-membership-info { align-items:center; gap:10px; }
.hm-membership-info>div { min-width:0; flex:1 1 220px; }
.hm-membership-info .btn { flex:0 0 auto; }
.hm-user-identity .identity-logout { display:none; }
.account-section-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 14px; padding:16px 20px; border-bottom:1px solid var(--border); }
.account-section-heading>span:first-child { font-size:15px; font-weight:600; white-space:nowrap; flex-shrink:0; }
.account-section-heading>span:last-child { font-size:12px; color:var(--sub); line-height:1.8; }
.balance-card .card-body { flex-wrap:wrap; }
.balance-card .card-body>div { min-width:0; }
.member-balance .card-body { flex-wrap:wrap; }
.member-balance .card-body>div { flex:1 1 180px; min-width:0; }
.member-balance .btn { flex-shrink:0; }
.member-card .btn { white-space:normal; }
.front-modal { padding:16px; }
.front-modal .front-dialog { max-height:calc(100dvh - 32px); overflow:auto; overscroll-behavior:contain; border-radius:12px; box-shadow:0 24px 80px #14263d33; margin:auto; }
.front-modal .front-dialog>div:first-child { position:sticky; top:0; z-index:1; background:var(--card,#fff); }
.front-modal .front-dialog>div:first-child button { min-width:36px; min-height:36px; }
.front-modal .pay-grid { display:grid; grid-template-columns:1fr; gap:8px; }
.front-modal .pay-item { min-height:46px; padding:10px 12px; display:flex; align-items:center; gap:8px; border:1px solid #ecddde; border-radius:6px; }
.front-modal .pay-item:has(input:checked) { background:#faf6f6; border-color:var(--c1); }
.front-modal .amount-btn { min-height:44px; }
.front-modal .form-control { font-size:16px; min-height:44px; }
.front-modal .btn-full { min-height:46px; }
.hm-auth-card h1 { font-size:26px; line-height:1.5; }
.hm-auth-card>p, .hm-auth-card .form-label { color:var(--sub); }
.hm-auth-links { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 16px; }
.help-item-title { overflow-wrap:anywhere; }
.help-main-content, .help-item-body, .native-notice-content { overflow-wrap:anywhere; }
.native-result-layout .actions :is(a,button) { min-height:42px; }
.facts { line-height:1.8; }
#result { scroll-margin-top:85px; }
@media(max-width:768px) {
  :is(.native-main,.bole-main) input:not([type=radio]):not([type=checkbox]):not([type=submit]),
  :is(.native-main,.bole-main) select, .hm-checkout input { font-size:16px; }
  .native-methods { width:100%; max-width:100%; }
  .native-methods .pay-item { font-size:13px; flex:1 1 145px; }
  .native-quantity { width:160px; }
  .native-total { margin:14px 0 8px; padding:14px 0 8px; }
  .native-buy-form #submitBtn, .buy-form #submitBtn, .bole-buy-form #submitBtn { width:100%; min-height:46px; font-size:16px; }
  .user-wrap { margin:20px auto; }
  .user-shell .user-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; padding:4px; }
  .user-shell .user-nav a { min-height:44px; display:flex; align-items:center; justify-content:center; padding:8px 4px; font-size:13px; white-space:normal; border-radius:4px; }
  .user-shell .user-nav .logout { display:none; }
  .hm-user-identity { grid-template-columns:42px minmax(0,1fr) auto; }
  .hm-user-identity small { display:none; }
  .hm-user-identity .identity-logout { display:inline-flex; grid-column:3; grid-row:1/3; align-items:center; justify-content:center; min-height:44px; padding:6px; font-size:12px; color:var(--sub); }
  .hm-member-welcome { padding:18px; }
  .hm-member-welcome>div { flex:1 1 180px; }
  .hm-member-welcome h1 { font-size:20px; line-height:1.5; }
  .hm-membership-info>div { flex-basis:100%; margin-bottom:4px; }
  .hm-membership-info .btn { flex:1 1 110px; }
  .hm-account-stats a { padding:14px 8px; }
  .hm-account-stats strong { font-size:18px; line-height:1.4; }
  .hm-user-order { flex-wrap:wrap; gap:12px; }
  .hm-user-order>div:first-child { flex:1 1 160px; }
  .hm-user-order>div:last-child { min-width:100px; }
  .hm-user-order-actions { flex-direction:row; }
  .account-section-heading { padding:14px 16px; }
  .account-section-heading>span:last-child { flex-basis:100%; }
  .balance-card .card-body { padding:20px!important; }
  .member-grid { gap:12px; }
  .hm-profile-grid .card-body { padding:18px!important; }
  .help-shell { padding-top:26px; }
  .help-hero { padding:20px 16px; background:var(--card); border:1px solid var(--border); border-radius:var(--R); margin-bottom:24px; }
  .help-hero h1 { font-size:24px; }
  .help-side-card { max-height:220px; overflow:auto; }
  .help-main-head { flex-wrap:wrap; gap:10px; }
  .help-main-body { padding:20px 16px; }
  .help-main-title { font-size:22px; overflow-wrap:anywhere; }
  .hm-query-card { padding:18px 14px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

@media(max-width:768px){.theme-hongmeng .cate-list{display:flex;gap:8px;flex-wrap:wrap}.theme-hongmeng .cate-list .cate-box{width:calc(50% - 4px)!important;min-width:0;box-sizing:border-box;margin:0!important;overflow-wrap:anywhere}.theme-hongmeng .goods-img{height:auto;min-height:0}.theme-hongmeng .goods-img img{max-height:210px;object-fit:contain}.theme-hongmeng .hm-checkout .hm-qty input,.theme-hongmeng .hm-checkout .hm-qty button{min-height:44px}.theme-hongmeng .hm-checkout .layui-input{font-size:16px;min-height:44px}}

.theme-hongmeng .main-box.goods-detail .goods-img { height:auto; padding-bottom:0; }
.theme-hongmeng .main-box.goods-detail .goods-img img { position:static; display:block; width:100%; height:auto; object-fit:contain; }
.theme-hongmeng .order-number-box { display:inline-flex; align-items:stretch; width:160px; height:44px; }
.theme-hongmeng .order-number-box :is(.input-group-prepend,.input-group-append) { position:static; margin:0; flex:0 0 44px; }
.theme-hongmeng .order-number-box button { width:44px; height:44px; padding:0; display:block; margin:0; border-radius:4px; }
.theme-hongmeng .order-number-box input.order-number { position:static; width:72px; min-width:0; height:44px; line-height:44px; font-size:16px; padding:0; margin:0; text-align:center; border:1px solid #e9dcdd; }
@media(max-width:768px) { .theme-hongmeng .main-box.goods-detail .goods-img { margin-bottom:20px; } .theme-hongmeng .main-box.goods-detail .goods-img img { max-height:210px; } }

@media(max-width:480px) { .theme-hongmeng .cateBox { flex-wrap:wrap; gap:10px; } .theme-hongmeng .cateBox .cate-box { flex:1 1 calc(50% - 10px); width:auto; min-width:0; margin:0; } }

body { --sub:#846568; --light:#947477; }
.native-order-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:16px auto 28px; max-width:calc(100% - 28px); }
.native-order-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 20px; border:1px solid var(--c1); border-radius:var(--Rm,6px); background:#fff; color:var(--c1); font-size:14px; line-height:1.5; }

/* Storefront catalog facts: independent from product descriptions and category navigation. */
.catalog-card-tags { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin:6px 0; min-width:0; }
.catalog-card-tags:empty,.catalog-card-stats:empty { display:none; }
.catalog-card-tags .catalog-tag { display:inline-flex; align-items:center; width:auto; padding:2px 6px; border-radius:4px; font-size:11px; line-height:1.5; font-weight:400; white-space:nowrap; }
.catalog-card-tags .is-auto { color:#08784f; background:#e9f7ef; }
.catalog-card-tags .is-manual { color:#8a5c0c; background:#fff5df; }
.catalog-card-tags .hot-tag { color:#c23b24; background:#fff0e9; }
.catalog-card-stats { display:flex; flex-wrap:wrap; gap:4px 10px; font-size:11px; line-height:1.7; color:var(--sub); margin:6px 0 0; font-weight:400; }
.catalog-card-stats .catalog-stock,.catalog-card-stats .catalog-sales { width:auto; font-size:inherit; line-height:inherit; color:inherit; }
.catalog-bulletin { box-sizing:border-box; padding:16px 20px; margin-bottom:18px; font-size:13px; line-height:1.8; }
.catalog-bulletin strong { display:block; color:var(--c1); margin-bottom:5px; font-size:14px; overflow-wrap:anywhere; }
.catalog-bulletin-content { white-space:pre-wrap; overflow-wrap:anywhere; max-height:180px; overflow:auto; }
.catalog-bulletin-link { display:inline-block; margin-top:6px; color:var(--c1); }
@media(max-width:767px){.catalog-bulletin{padding:14px 16px}.catalog-card-stats{gap:3px 8px}}
 .theme-hongmeng .main .goods .goods-box .goods-name { margin:10px 0 6px; }
.theme-hongmeng .goodsItem .goodDesc { min-width:0; }
.theme-hongmeng .hm-buy-label { float:none; display:block; text-align:right; margin-top:6px; }
.theme-hongmeng .header .logo a { display:flex; align-items:center; gap:10px; min-width:0; }
.theme-hongmeng .header .hm-brand-text { display:block; margin-left:0; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:768px){.theme-hongmeng .header .logo img{width:72px;height:40px}.theme-hongmeng .header .hm-brand-text{max-width:150px;font-size:14px}}
@media(max-width:359px){.theme-hongmeng .header .logo img{width:55px}.theme-hongmeng .header .hm-brand-text{max-width:128px}}

.theme-hongmeng .catalog-bulletin{white-space:normal}

/* Optional home tagline uses this template's value, then the website setting. */
@media(max-width:767px){.theme-hongmeng .storefront-subtitle{font-size:13px;margin:12px auto;max-width:100%;padding:0 16px}}
