/*
Theme Name: Wellness Power
Author: Wellness Power
Description: Wellness Power 泰国商城主题，保留原有移动端布局，支持 WooCommerce 商品、相册、购物车与结账。第三方登录及短信需配置真实服务，代理与提现需后台审核。首页内容、公司信息、政策文字可在 WordPress 后台维护。
Version: 1.1.27
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wellness-power
Tags: e-commerce, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ========== SECTION: 设计变量 ========== */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --wp-cream: #FAF6EF;
  --wp-cream2: #F3ECE0;
  --wp-paper: #FFFFFF;
  --wp-ink: #2B2118;
  --wp-ink2: #5C4F42;
  --wp-ink3: #8C7E6E;
  --wp-gold: #B8863B;
  --wp-gold2: #D9AE63;
  --wp-goldsoft: #F4E7CF;
  --wp-green: #30a653;
  --wp-greensoft: #E6EFE6;
  --wp-blue: #3F6C8C;
  --wp-red: #B4462F;
  --wp-redsoft: #F6E4DF;
  --wp-line: #E5DCCB;
  --wp-line2: #EFE7D8;
  --wp-shadow: 0 6px 24px rgba(70,52,32,.10);
  --wp-shadow-lg: 0 18px 48px rgba(70,52,32,.18);
  --wp-r-s: 10px;
  --wp-r-m: 16px;
  --wp-r-l: 22px;
  --wp-maxw: 1120px;
  --wp-serif: "Songti SC","Noto Serif TC","Noto Serif SC",Georgia,serif;
  --wp-sans: "Noto Sans Thai","Kanit","PingFang SC","Microsoft JhengHei","Noto Sans TC","Hiragino Sans GB","Helvetica Neue",Arial,sans-serif;
  /* v8：价格专用字体 —— 方正无衬线 + 等宽数字，฿ 符号与金额位数清晰可辨 */
  --wp-num: "Inter","IBM Plex Sans","Noto Sans Thai","Kanit","Helvetica Neue",Arial,"PingFang SC",sans-serif;
  --wp-font-base: 14px;
  --wp-tabbar-h: 72px;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* 中文参照淘宝移动端：正文 14px 起；泰文字形较高，默认 16px 保证易认 */
html[lang="th"] { --wp-font-base: 16px; }
html[lang="zh_TW"] { --wp-font-base: 14px; }
html[lang="en_US"] { --wp-font-base: 14px; }
html[lang="zh_CN"] { --wp-font-base: 14px; }
body {
  margin: 0;
  font-family: var(--wp-sans);
  color: var(--wp-ink);
  background: var(--wp-cream);
  line-height: 1.65;
  font-size: var(--wp-font-base);
  overflow-x: hidden;
}
body.wp-admin-bar { padding-top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }
p { margin: 0 0 12px; }
.wp-container { width: 100%; max-width: var(--wp-maxw); margin: 0 auto; padding: 0 16px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ========== SECTION: 通用按钮 ========== */
.wp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 26px; font-size: 14.5px; font-weight: 600;
  letter-spacing: .5px; transition: transform .16s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap; border: 0; cursor: pointer; text-decoration: none;
}
.wp-btn:active { transform: scale(.97); }
.wp-btn:disabled, .wp-btn.is-disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.wp-btn-gold { background: linear-gradient(135deg, var(--wp-gold2), var(--wp-gold)); color: #2B2118; box-shadow: 0 8px 22px rgba(184,134,59,.32); }
.wp-btn-gold:hover { box-shadow: 0 12px 28px rgba(184,134,59,.44); transform: translateY(-1px); }
.wp-btn-dark { background: var(--wp-ink); color: #F7EFDF; }
.wp-btn-dark:hover { background: var(--wp-gold); color: #2B2118; }
.wp-btn-line { border: 1px solid var(--wp-line); color: var(--wp-ink2); background: var(--wp-paper); }
.wp-btn-line:hover { border-color: var(--wp-gold2); color: var(--wp-gold); background: var(--wp-goldsoft); }
.wp-btn-danger { background: var(--wp-redsoft); color: var(--wp-red); border: 1px solid rgba(180,70,47,.22); }
.wp-btn-block { width: 100%; }
.wp-btn-sm { padding: 8px 16px; font-size: 13px; }
.wp-btn svg { width: 16px; height: 16px; flex: none; }

/* ========== SECTION: 页头（不含分类导航行） ========== */
.wp-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,246,239,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wp-line);
}
.admin-bar .wp-header { top: 32px; }
.wp-header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.wp-logo { display: flex; align-items: center; gap: 9px; flex: none; text-decoration: none; }
.wp-logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
/* WordPress 自定义 logo 自带链接，需同样约束尺寸，避免大图撑破页头 */
.wp-logo .custom-logo-link { display: inline-flex; align-items: center; flex: none; }
.wp-logo .custom-logo-link img,
.wp-logo img.custom-logo { width: 54px; height: 54px; max-width: 54px; max-height: 54px; border-radius: 50%; object-fit: cover; }
.wp-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
a.wp-logo-text { display: block; text-decoration: none; }
/* 兜底：.custom-logo 是 WordPress 给站点 logo 图片的固定类名，
 * 无论页头结构如何变化，都保证其尺寸受控。 */
img.custom-logo { width: 54px; height: 54px; max-width: 54px; max-height: 54px; border-radius: 50%; object-fit: cover; }
a.custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.wp-logo-mark {
  width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #F2DCAE, var(--wp-gold) 68%, #8E6527);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.5), 0 3px 10px rgba(150,110,45,.26);
}
.wp-logo-mark svg { width: 30px; height: 30px; }
.wp-logo-text { line-height: 1.2; }
.wp-logo-text b { display: block; font-family: var(--wp-serif); font-size: 19px; letter-spacing: .4px; }
.wp-logo-text span { display: block; font-size: 15px; font-weight: 600; color: var(--wp-ink2); letter-spacing: 3px; margin-top: 1px; }
.wp-header-search { flex: 1; min-width: 0; }
.wp-search-box {
  display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 5px 0 14px;
  background: var(--wp-paper); border: 1px solid var(--wp-line); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.wp-search-box:focus-within { border-color: var(--wp-gold2); box-shadow: 0 0 0 3px var(--wp-goldsoft); }
.wp-search-box svg { width: 16px; height: 16px; flex: none; color: var(--wp-ink3); }
/* Keep the text field readable before focus; avoid focus-driven mobile zoom. */
.wp-search-box input { flex: 1; min-width: 0; max-width: 100%; border: 0; outline: 0; background: none; height: 100%; font-size: 16px; font-size: max(16px, var(--wp-font-base)); line-height: 1.4; }
.wp-search-box input::placeholder { color: #A99B89; }
.wp-search-box button {
  flex: none; height: 31px; padding: 0 14px; border-radius: 999px;
  background: var(--wp-ink); color: #F7EFDF; font-size: 13px;
}
.wp-search-box button:hover { background: var(--wp-gold); }
.wp-header-acts { display: flex; align-items: center; gap: 7px; flex: none; }
.wp-icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--wp-line); background: var(--wp-paper); transition: border-color .2s, background .2s, transform .15s;
}
.wp-icon-btn:hover { border-color: var(--wp-gold2); background: var(--wp-goldsoft); }
.wp-icon-btn:active { transform: scale(.94); }
.wp-icon-btn svg { width: 18px; height: 18px; color: var(--wp-ink2); }
.wp-count-badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--wp-red); color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; border: 2px solid var(--wp-cream);
}
.wp-count-badge[data-count="0"] { display: none; }
.wp-count-badge.is-pop { animation: wpPop .32s ease; }
@keyframes wpPop { 0% { transform: scale(1); } 45% { transform: scale(1.42); } 100% { transform: scale(1); } }

/* 桌面端顶部菜单（移动端隐藏，由底部导航替代） */
.wp-desktop-nav { display: none; background: var(--wp-paper); border-bottom: 1px solid var(--wp-line2); }
.wp-desktop-nav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.wp-desktop-nav a {
  display: block; padding: 12px 16px; font-size: 14px; color: var(--wp-ink2);
  position: relative; transition: color .2s;
}
.wp-desktop-nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 7px; height: 2px;
  border-radius: 2px; background: var(--wp-gold); transform: scaleX(0); transition: transform .25s;
}
.wp-desktop-nav a:hover { color: var(--wp-gold); }
.wp-desktop-nav .current-menu-item > a, .wp-desktop-nav .current_page_item > a { color: var(--wp-gold); font-weight: 600; }
.wp-desktop-nav .current-menu-item > a::after, .wp-desktop-nav .current_page_item > a::after { transform: scaleX(1); }

/* ========== SECTION: 轮播（可跳转） ========== */
.wp-banner { position: relative; overflow: hidden; background: #2E2418; }
.wp-banner-track { display: flex; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.wp-slide { flex: none; width: 100%; position: relative; min-height: 210px; display: flex; align-items: center; }
.wp-slide-bg { position: absolute; inset: 0; overflow: hidden; }
.wp-slide-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.05); transition: transform 7s ease-out; }
.wp-slide.is-active .wp-slide-bg img { transform: scale(1.14); }
.wp-slide-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30,22,14,.94) 0%, rgba(40,30,18,.8) 40%, rgba(40,30,18,.3) 72%, rgba(40,30,18,.2) 100%);
}
.wp-slide-inner { position: relative; z-index: 2; padding: 30px 16px; width: 100%; }
.wp-slide-link { display: block; color: #FBF5E9; text-decoration: none; }
.wp-slide-eyebrow {
  display: inline-block; font-size: 11px; letter-spacing: 2.4px; color: var(--wp-gold2);
  border: 1px solid rgba(217,174,99,.42); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
  background: rgba(217,174,99,.09);
}
.wp-slide-title { font-family: var(--wp-serif); font-size: clamp(22px, 5.6vw, 40px); line-height: 1.26; letter-spacing: .6px; margin-bottom: 9px; }
.wp-slide-desc { font-size: 13.5px; color: rgba(251,245,233,.82); margin-bottom: 18px; max-width: 430px; }
.wp-slide-cta {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--wp-gold2), var(--wp-gold)); color: #2B2118; font-size: 13.5px; font-weight: 600;
}
.wp-slide-cta svg { width: 15px; height: 15px; }
.wp-slide-link:hover .wp-slide-cta { box-shadow: 0 8px 20px rgba(184,134,59,.42); }
.wp-banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(250,246,239,.16); border: 1px solid rgba(250,246,239,.28);
  color: #FBF5E9; display: none; place-items: center; backdrop-filter: blur(6px);
}
.wp-banner-nav:hover { background: rgba(250,246,239,.3); }
.wp-banner-nav svg { width: 17px; height: 17px; }
.wp-banner-prev { left: 14px; } .wp-banner-next { right: 14px; }
.wp-banner-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 5; display: flex; justify-content: center; gap: 7px; }
.wp-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(250,246,239,.36); transition: width .3s, background .3s; cursor: pointer; }
.wp-dot.is-active { width: 22px; background: var(--wp-gold2); }

/* ========== SECTION: 三个特色方框（无标题，直接展示） ========== */
.wp-features { padding: 20px 0 6px; }
.wp-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wp-feature {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px;
  background: var(--wp-paper); border: 1px solid var(--wp-line2); border-radius: var(--wp-r-m);
  padding: 16px 10px; transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative; overflow: hidden; text-decoration: none; color: inherit;
}
.wp-feature::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--wp-fc, var(--wp-gold)); opacity: .9; }
.wp-feature.is-linked:hover { transform: translateY(-4px); box-shadow: var(--wp-shadow); border-color: var(--wp-line); }
.wp-feature:not(.is-linked) { cursor: default; }
.wp-feature[data-accent="gold"]   { --wp-fc: linear-gradient(90deg, var(--wp-gold2), var(--wp-gold)); --wp-chip: var(--wp-goldsoft); --wp-chipc: var(--wp-gold); }
.wp-feature[data-accent="green"]  { --wp-fc: linear-gradient(90deg, #30a653, var(--wp-green)); --wp-chip: var(--wp-greensoft); --wp-chipc: var(--wp-green); }
.wp-feature[data-accent="blue"]   { --wp-fc: linear-gradient(90deg, #7FA6C0, var(--wp-blue)); --wp-chip: #E4EDF3; --wp-chipc: var(--wp-blue); }
.wp-feature[data-accent="violet"] { --wp-fc: linear-gradient(90deg, #9C86B8, #6B5488); --wp-chip: #EDE7F4; --wp-chipc: #6B5488; }
.wp-feature-ico {
  width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--wp-chip, var(--wp-goldsoft));
}
.wp-feature-ico svg { width: 21px; height: 21px; color: var(--wp-chipc, var(--wp-gold)); }
.wp-feature b { font-family: var(--wp-serif); font-size: 14.5px; letter-spacing: .4px; line-height: 1.35; }
.wp-feature span { font-size: 11.5px; color: var(--wp-ink3); line-height: 1.55; }

/* ========== SECTION: All Categories 类目导航（4 x 2） ========== */
.wp-cats { padding: 26px 0 6px; }
.wp-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.wp-sec-title { font-family: var(--wp-serif); font-size: 18px; letter-spacing: .5px; }
.wp-sec-more { font-size: 12.5px; color: var(--wp-gold); display: inline-flex; align-items: center; gap: 4px; flex: none; }
.wp-sec-more svg { width: 13px; height: 13px; }
.wp-cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wp-cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--wp-paper); border: 1px solid var(--wp-line2); border-radius: var(--wp-r-m);
  padding: 16px 8px; text-align: center; transition: transform .22s, box-shadow .22s, border-color .22s;
  text-decoration: none; color: inherit; min-height: 96px;
}
.wp-cat-card:hover { transform: translateY(-4px); box-shadow: var(--wp-shadow); border-color: var(--wp-goldsoft); }
.wp-cat-thumb {
  width: 46px; height: 46px; flex: none; border-radius: 13px; overflow: hidden;
  background: var(--wp-cream2); display: grid; place-items: center;
}
.wp-cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wp-cat-thumb svg { width: 23px; height: 23px; color: var(--wp-gold); }
.wp-cat-name { font-size: 12.5px; font-weight: 600; line-height: 1.4; }

/* ========== SECTION: 商品网格（爆款 2 列 / 桌面 4 列） ========== */
.wp-products { padding: 26px 0 8px; }
.wp-pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wp-pcard {
  background: var(--wp-paper); border: 1px solid var(--wp-line2); border-radius: var(--wp-r-m);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .24s, box-shadow .24s, border-color .24s; text-decoration: none; color: inherit;
}
.wp-pcard:hover { transform: translateY(-4px); box-shadow: var(--wp-shadow-lg); border-color: var(--wp-goldsoft); }
.wp-pcard-media { position: relative; aspect-ratio: 1 / 1; background: var(--wp-cream2); overflow: hidden; }
.wp-pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wp-pcard:hover .wp-pcard-media img { transform: scale(1.07); }
.wp-pcard-flag {
  position: absolute; left: 8px; top: 8px; font-size: 10.5px; letter-spacing: .4px; padding: 3px 9px;
  border-radius: 999px; background: linear-gradient(135deg, #E8674A, var(--wp-red)); color: #fff; font-weight: 600;
  box-shadow: 0 3px 9px rgba(180,70,47,.28);
}
.wp-pcard-flag.is-blue { background: linear-gradient(135deg, #5E8FAF, var(--wp-blue)); box-shadow: 0 3px 9px rgba(63,108,140,.28); }
.wp-pcard-add {
  position: absolute; right: 8px; bottom: 8px; width: 33px; height: 33px; border-radius: 50%;
  background: rgba(250,246,239,.93); border: 1px solid var(--wp-line); display: grid; place-items: center;
  transition: background .2s, border-color .2s, transform .15s; z-index: 3;
}
.wp-pcard-add:hover { background: var(--wp-gold); border-color: var(--wp-gold); transform: scale(1.06); }
.wp-pcard-add:hover svg { color: #fff; }
.wp-pcard-add svg { width: 16px; height: 16px; color: var(--wp-ink2); }
.wp-pcard-body { padding: 11px 12px 13px; display: flex; flex-direction: column; flex: 1; }
.wp-pcard-cat { font-size: 10.5px; letter-spacing: 1px; color: var(--wp-gold); margin-bottom: 4px; }
.wp-pcard-name {
  font-size: 13.6px; font-weight: 600; line-height: 1.45; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px;
}
.wp-pcard-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.wp-price { font-family: var(--wp-num); font-variant-numeric: tabular-nums; color: var(--wp-red); font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.wp-price small { font-size: 11.5px; font-weight: 600; margin-right: 1px; }
.wp-price-origin { font-size: 11.5px; color: #B0A391; text-decoration: line-through; }
.wp-pcard-meta { font-size: 11px; color: var(--wp-ink3); margin-top: 4px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.wp-rate { display: inline-flex; align-items: center; gap: 3px; color: var(--wp-gold); }
.wp-rate svg { width: 11px; height: 11px; fill: currentColor; }
.wp-load-more { display: flex; justify-content: center; padding: 22px 0 6px; }
.wp-empty {
  grid-column: 1 / -1; text-align: center; padding: 54px 20px; background: var(--wp-paper);
  border: 1px dashed var(--wp-line); border-radius: var(--wp-r-m);
}
.wp-empty-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--wp-cream2); display: grid; place-items: center; }
.wp-empty-ico svg { width: 25px; height: 25px; color: var(--wp-ink3); }
.wp-empty b { display: block; font-family: var(--wp-serif); font-size: 16px; margin-bottom: 6px; }
.wp-empty p { font-size: 13px; color: var(--wp-ink3); margin-bottom: 16px; line-height: 1.8; }

/* ========== SECTION: 分类页（左导航 + 右商品 2 列） ========== */
.wp-cat-layout { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 16px 0 24px; align-items: start; }
.wp-cat-side {
  position: sticky; top: 76px; background: var(--wp-paper); border: 1px solid var(--wp-line2);
  border-radius: var(--wp-r-m); overflow: hidden; max-height: calc(100vh - 150px); overflow-y: auto;
}
.wp-cat-side a, .wp-cat-side button {
  display: block; width: 100%; padding: 13px 8px; font-size: 12.5px; color: var(--wp-ink2);
  border-bottom: 1px solid var(--wp-line2); text-align: center; transition: background .18s, color .18s;
  text-decoration: none; cursor: pointer; line-height: 1.45; position: relative;
}
.wp-cat-side a:last-child, .wp-cat-side button:last-child { border-bottom: 0; }
.wp-cat-side a:hover, .wp-cat-side button:hover { background: var(--wp-goldsoft); color: var(--wp-gold); }
/* 选中态：金色文字 + 浅金底 + 左侧金色指示条，与底部导航同一色系 */
.wp-cat-side .is-active, .wp-cat-side .current-cat {
  background: var(--wp-goldsoft); color: var(--wp-gold); font-weight: 700;
}
.wp-cat-side .is-active::before, .wp-cat-side .current-cat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--wp-gold);
}
.wp-cat-side .is-active:hover { background: var(--wp-goldsoft); color: var(--wp-gold); }
.wp-cat-main { min-width: 0; }
.wp-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.wp-cat-head h1 { font-family: var(--wp-serif); font-size: 18px; }
.wp-cat-count { font-size: 12px; color: var(--wp-ink3); }
.wp-cat-sort select {
  height: 34px; padding: 0 28px 0 11px; border-radius: 999px; border: 1px solid var(--wp-line);
  background-color: var(--wp-paper); font-size: 12.5px; color: var(--wp-ink2); appearance: none; outline: 0; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238C7E6E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

/* ========== SECTION: 购物车 / 我的 / 账号页 ========== */
.wp-page { padding: 18px 0 26px; }
.wp-panel {
  background: var(--wp-paper); border: 1px solid var(--wp-line2);
  border-radius: var(--wp-r-m); padding: 16px; margin-bottom: 14px;
}
.wp-panel-h {
  display: flex; align-items: center; gap: 8px; font-family: var(--wp-serif);
  font-size: 15.5px; margin-bottom: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--wp-line2);
}
.wp-panel-h svg { width: 17px; height: 17px; color: var(--wp-gold); flex: none; }
.wp-panel-h .wp-panel-h-extra { margin-left: auto; font-family: var(--wp-sans); font-size: 12px; color: var(--wp-ink3); font-weight: 400; }

/* 购物车条目 */
.wp-cart-item {
  display: flex; gap: 11px; background: var(--wp-paper); border: 1px solid var(--wp-line2);
  border-radius: var(--wp-r-s); padding: 11px; margin-bottom: 11px; position: relative;
}
.wp-ci-img { width: 68px; height: 68px; flex: none; border-radius: 9px; overflow: hidden; background: var(--wp-cream2); position: relative; }
.wp-ci-img img { width: 100%; height: 100%; object-fit: cover; }
.wp-ci-main { flex: 1; min-width: 0; padding-right: 22px; }
.wp-ci-name {
  font-size: 13.2px; font-weight: 600; line-height: 1.45; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wp-ci-spec { font-size: 11.2px; color: var(--wp-ink3); margin-bottom: 8px; }
.wp-ci-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.wp-qty { display: inline-flex; align-items: center; border: 1px solid var(--wp-line); border-radius: 999px; overflow: hidden; background: var(--wp-cream); }
.wp-qty button { width: 27px; height: 27px; display: grid; place-items: center; color: var(--wp-ink2); transition: background .18s, color .18s; }
.wp-qty button:hover:not(:disabled) { background: var(--wp-goldsoft); color: var(--wp-gold); }
.wp-qty button:disabled { opacity: .35; cursor: not-allowed; }
.wp-qty svg { width: 11px; height: 11px; }
.wp-qty span { min-width: 26px; text-align: center; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wp-ci-price { font-family: var(--wp-num); font-variant-numeric: tabular-nums; color: var(--wp-red); font-size: 15.5px; font-weight: 700; }
.wp-ci-price small { font-size: 11px; margin-right: 1px; }
.wp-ci-del { position: absolute; right: 8px; top: 8px; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; color: #B0A391; transition: color .2s, background .2s; }
.wp-ci-del:hover { color: var(--wp-red); background: rgba(180,70,47,.09); }
.wp-ci-del svg { width: 12px; height: 12px; }
.wp-sum-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--wp-ink3); margin-bottom: 8px; gap: 10px; }
.wp-sum-row.is-total { font-size: 14px; color: var(--wp-ink); font-weight: 600; padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--wp-line); margin-bottom: 13px; align-items: baseline; }
.wp-sum-row b { font-family: var(--wp-num); font-variant-numeric: tabular-nums; color: var(--wp-red); font-size: 21px; font-weight: 700; }
.wp-sum-row b small { font-size: 12px; margin-right: 1px; }
.wp-sum-save { color: var(--wp-green); font-size: 12px; }
.wp-cart-tip { font-size: 11.3px; color: var(--wp-ink3); line-height: 1.7; background: var(--wp-cream2); border-radius: 8px; padding: 9px 12px; margin: 11px 0; }

/* 我的：头部 + 佣金小模块 + 菜单 */
.wp-acc-head {
  display: flex; align-items: center; gap: 13px; border-radius: var(--wp-r-m); padding: 18px;
  background: linear-gradient(125deg, #2A2015, #4A371F 58%, #2A2015); color: #F6EBD5;
  position: relative; overflow: hidden; margin-bottom: 14px;
}
.wp-acc-head::before { content: ""; position: absolute; inset: 0; opacity: .2; background: radial-gradient(400px 180px at 88% 0%, rgba(217,174,99,.9), transparent 60%); }
.wp-acc-head > * { position: relative; z-index: 2; }
.wp-acc-avatar {
  width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--wp-serif); font-size: 22px; font-weight: 700; color: #2B2118;
  background: radial-gradient(circle at 32% 28%, #F6E3B8, var(--wp-gold2) 70%, #C08F3C); overflow: hidden;
}
.wp-acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wp-acc-info { flex: 1; min-width: 0; }
.wp-acc-hi { font-family: var(--wp-serif); font-size: 17px; letter-spacing: .4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wp-acc-vip {
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--wp-sans); font-size: 10.5px;
  font-weight: 700; letter-spacing: .3px; color: #2B2118;
  background: linear-gradient(135deg, var(--wp-gold2), var(--wp-gold)); border-radius: 999px; padding: 2px 9px;
}
.wp-acc-vip svg { width: 11px; height: 11px; }
.wp-acc-id { font-size: 11.5px; color: rgba(246,235,213,.7); margin-top: 4px; word-break: break-all; }
.wp-acc-logout { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(246,235,213,.28); transition: background .2s; }
.wp-acc-logout:hover { background: rgba(246,235,213,.14); }
.wp-acc-logout svg { width: 15px; height: 15px; color: #F0E2C8; }
.wp-cm-mini {
  display: block; width: 100%; text-align: left; background: var(--wp-paper); border: 1px solid var(--wp-line2);
  border-radius: var(--wp-r-m); padding: 15px 16px; margin-bottom: 14px; text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .16s;
}
.wp-cm-mini:hover { border-color: var(--wp-gold2); box-shadow: var(--wp-shadow); transform: translateY(-1px); }
.wp-cm-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wp-cm-mini-title { display: flex; align-items: center; gap: 7px; font-family: var(--wp-serif); font-size: 14.5px; }
.wp-cm-mini-title svg { width: 16px; height: 16px; color: var(--wp-gold); }
.wp-cm-mini-more { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--wp-gold); }
.wp-cm-mini-more svg { width: 13px; height: 13px; }
.wp-cm-mini-nums { display: flex; align-items: stretch; }
.wp-cm-mini-num { flex: 1; text-align: center; }
.wp-cm-mini-num b { display: block; font-family: var(--wp-num); font-variant-numeric: tabular-nums; font-size: 17px; color: var(--wp-red); margin-bottom: 2px; }
.wp-cm-mini-num span { font-size: 11px; color: var(--wp-ink3); }
.wp-cm-mini-div { width: 1px; background: var(--wp-line); flex: none; margin: 2px 0; }
.wp-invite-code {
  font-family: var(--wp-serif); font-size: 21px; font-weight: 700; letter-spacing: 2.5px;
  background: var(--wp-goldsoft); border: 1px dashed var(--wp-gold2); border-radius: var(--wp-r-s);
  padding: 8px 18px; text-align: center;
}
.wp-invite-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.wp-invite-btns .wp-btn { flex: 1; }
.wp-acc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.wp-acc-stat { background: var(--wp-paper); border: 1px solid var(--wp-line2); border-radius: var(--wp-r-s); padding: 12px 14px; }
.wp-acc-stat span { display: block; font-size: 11.5px; color: var(--wp-ink3); margin-bottom: 5px; }
.wp-acc-stat b { font-family: var(--wp-serif); font-size: 16px; }
.wp-menu { background: var(--wp-paper); border: 1px solid var(--wp-line2); border-radius: var(--wp-r-m); overflow: hidden; }
.wp-menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--wp-line2); transition: background .18s; text-decoration: none; color: inherit;
}
.wp-menu-item:last-child { border-bottom: 0; }
.wp-menu-item:hover { background: var(--wp-cream2); }
.wp-menu-ico { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--wp-goldsoft); display: grid; place-items: center; }
.wp-menu-ico svg { width: 16px; height: 16px; color: var(--wp-gold); }
.wp-menu-label { flex: 1; font-size: 13.8px; font-weight: 500; }
.wp-menu-extra { font-size: 12px; color: var(--wp-ink3); }
.wp-menu-arrow svg { width: 15px; height: 15px; color: var(--wp-ink3); }
.wp-kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--wp-line); font-size: 13px; }
.wp-kv:last-child { border-bottom: 0; }
.wp-kv span { color: var(--wp-ink3); }
.wp-kv b { color: var(--wp-ink); font-weight: 600; text-align: right; word-break: break-all; }
.wp-guest-box { text-align: center; padding: 54px 20px; background: var(--wp-paper); border: 1px dashed var(--wp-line); border-radius: var(--wp-r-m); }
.wp-guest-ico { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; background: var(--wp-cream2); display: grid; place-items: center; }
.wp-guest-ico svg { width: 31px; height: 31px; color: var(--wp-ink3); }
.wp-guest-box h2 { font-family: var(--wp-serif); font-size: 19px; margin-bottom: 9px; }
.wp-guest-box p { font-size: 13px; color: var(--wp-ink3); line-height: 1.8; margin: 0 auto 20px; max-width: 320px; }

/* 佣金明细 / 提现 */
.wp-cm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.wp-cm-card { border-radius: var(--wp-r-m); padding: 15px; color: #fff; position: relative; overflow: hidden; }
.wp-cm-card.is-pending { background: linear-gradient(135deg, #C0873A, #9A6A28); }
.wp-cm-card.is-settled { background: linear-gradient(135deg, #30a653, #30a653); }
.wp-cm-card span { font-size: 12px; opacity: .9; }
.wp-cm-card b { display: block; font-family: var(--wp-serif); font-size: 25px; margin: 6px 0 5px; }
.wp-cm-card i { font-style: normal; font-size: 10.8px; line-height: 1.55; opacity: .85; display: block; }
.wp-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 13px; }
/* 注意：药丸样式必须限定在 .wp-tabs 内，避免与底部导航的 .wp-tab 撞名 */
.wp-tabs .wp-tab { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--wp-line); background: var(--wp-paper); color: var(--wp-ink2); font-size: 12.5px; transition: all .2s; text-decoration: none; }
.wp-tabs .wp-tab:hover { border-color: var(--wp-gold2); color: var(--wp-gold); }
.wp-tabs .wp-tab.is-active { background: var(--wp-ink); border-color: var(--wp-ink); color: #F7EFDF; }
.wp-list { display: flex; flex-direction: column; gap: 9px; }
.wp-row {
  display: flex; align-items: center; gap: 11px; background: var(--wp-paper);
  border: 1px solid var(--wp-line2); border-radius: var(--wp-r-s); padding: 12px 14px;
}
.wp-row-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wp-row-l b { font-family: var(--wp-serif); font-size: 15px; }
.wp-row-l span { font-size: 11.8px; color: var(--wp-ink2); }
.wp-row-time { font-size: 10.8px; color: var(--wp-ink3); }
.wp-row-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.wp-row-amt { font-family: var(--wp-num); font-variant-numeric: tabular-nums; font-size: 15px; color: var(--wp-red); }
.wp-status { font-size: 10.8px; font-weight: 700; letter-spacing: .2px; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.wp-status.is-pending { color: #9A6A28; background: #F6E9D2; }
.wp-status.is-settled, .wp-status.is-paid, .wp-status.is-completed { color: #30a653; background: var(--wp-greensoft); }
.wp-status.is-cancelled, .wp-status.is-rejected, .wp-status.is-refunded { color: var(--wp-red); background: var(--wp-redsoft); }
.wp-status.is-review, .wp-status.is-processing { color: var(--wp-blue); background: #E4EDF3; }
.wp-rule-box { background: var(--wp-cream2); border-radius: var(--wp-r-s); padding: 13px 15px; margin-bottom: 14px; }
.wp-rule-box b { display: block; font-family: var(--wp-serif); font-size: 13.5px; margin-bottom: 9px; }
.wp-rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.wp-rule { display: flex; flex-direction: column; gap: 2px; }
.wp-rule span { font-size: 11px; color: var(--wp-ink3); }
.wp-rule b { font-family: var(--wp-sans); font-size: 12.5px; color: var(--wp-ink); margin: 0; }
.wp-balance-bar { display: flex; align-items: center; justify-content: space-between; background: var(--wp-goldsoft); border: 1px solid var(--wp-line2); border-radius: var(--wp-r-s); padding: 12px 15px; margin-bottom: 12px; }
.wp-balance-bar span { font-size: 12.2px; color: var(--wp-ink2); }
.wp-balance-bar b { font-family: var(--wp-num); font-variant-numeric: tabular-nums; font-size: 20px; color: var(--wp-red); }
.wp-note { font-size: 11.3px; color: var(--wp-ink3); line-height: 1.7; background: rgba(244,231,207,.42); border: 1px solid var(--wp-goldsoft); border-radius: 8px; padding: 9px 12px; margin-top: 12px; }
.wp-empty-sm { text-align: center; padding: 34px 18px; background: var(--wp-paper); border: 1px dashed var(--wp-line); border-radius: var(--wp-r-m); }
.wp-empty-sm b { display: block; font-family: var(--wp-serif); font-size: 15px; margin-bottom: 6px; }
.wp-empty-sm p { font-size: 12.3px; color: var(--wp-ink3); line-height: 1.7; margin: 0; }

/* ========== SECTION: 表单 ========== */
.wp-field { margin-bottom: 15px; }
.wp-field > label { display: block; font-size: 13px; color: var(--wp-ink2); margin-bottom: 6px; font-weight: 600; letter-spacing: .3px; }
.wp-field > label i { color: var(--wp-red); font-style: normal; margin-left: 2px; }
.wp-field input[type=text], .wp-field input[type=tel], .wp-field input[type=email],
.wp-field input[type=password], .wp-field input[type=number], .wp-field input[type=url],
.wp-field select, .wp-field textarea {
  width: 100%; background: var(--wp-paper); border: 1px solid var(--wp-line); border-radius: var(--wp-r-s);
  padding: 11px 13px; font-size: 14px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.wp-field textarea { resize: vertical; min-height: 88px; line-height: 1.7; }
.wp-field input:focus, .wp-field select:focus, .wp-field textarea:focus { border-color: var(--wp-gold2); box-shadow: 0 0 0 3px var(--wp-goldsoft); }
.wp-field.has-error input, .wp-field.has-error select, .wp-field.has-error textarea { border-color: var(--wp-red); box-shadow: 0 0 0 3px rgba(180,70,47,.1); }
.wp-field-tip { font-size: 11.3px; color: var(--wp-ink3); margin-top: 5px; line-height: 1.6; }
.wp-field-err { display: none; font-size: 11.5px; color: var(--wp-red); margin-top: 5px; }
.wp-field.has-error .wp-field-err { display: block; }
.wp-phone-field { display: flex; align-items: stretch; border: 1px solid var(--wp-line); border-radius: var(--wp-r-s); background: var(--wp-paper); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.wp-phone-field:focus-within { border-color: var(--wp-gold2); box-shadow: 0 0 0 3px var(--wp-goldsoft); }
.wp-field.has-error .wp-phone-field { border-color: var(--wp-red); box-shadow: 0 0 0 3px rgba(180,70,47,.1); }
.wp-phone-code {
  display: flex; align-items: center; gap: 5px; padding: 0 11px; font-size: 13.2px; color: var(--wp-ink2);
  background: var(--wp-cream2); border-right: 1px solid var(--wp-line); flex: none; white-space: nowrap;
}
.wp-phone-code-display { display: none; }
select.wp-phone-code {
  appearance: none; -webkit-appearance: none; border: 0; background: var(--wp-cream2);
  padding: 0 24px 0 11px; font-size: 13.2px; color: var(--wp-ink2); cursor: pointer; outline: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238C7E6E'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 10px 6px;
}
.wp-phone-field input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent; padding: 11px 13px; font-size: 14px; outline: 0; }
.wp-code-field { display: flex; gap: 9px; }
.wp-code-field input { flex: 1; min-width: 0; }
.wp-send-code {
  flex: none; min-width: 106px; height: auto; padding: 0 14px; border-radius: var(--wp-r-s);
  border: 1px solid var(--wp-gold2); background: var(--wp-goldsoft); color: var(--wp-gold);
  font-size: 12.5px; font-weight: 600; transition: background .2s, color .2s, opacity .2s;
}
.wp-send-code:hover:not(:disabled) { background: var(--wp-gold); color: #2B2118; }
.wp-send-code:disabled { opacity: .55; cursor: not-allowed; }

/* 国家/地区选择 */
.wp-country-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 4px; }
.wp-country {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid var(--wp-line);
  border-radius: var(--wp-r-s); background: var(--wp-paper); cursor: pointer; transition: all .2s; position: relative;
}
.wp-country:hover { border-color: var(--wp-gold2); }
.wp-country input { position: absolute; opacity: 0; width: 0; height: 0; }
.wp-country-flag { font-size: 21px; line-height: 1; flex: none; }
.wp-country-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.wp-country-code { font-size: 11px; color: var(--wp-ink3); }
.wp-country.is-selected { border-color: var(--wp-gold); background: var(--wp-goldsoft); box-shadow: 0 0 0 2px rgba(184,134,59,.13); }
.wp-country input:checked ~ .wp-country-check { opacity: 1; }
.wp-country-check { position: absolute; right: 9px; top: 9px; opacity: 0; transition: opacity .2s; color: var(--wp-gold); }
.wp-country-check svg { width: 14px; height: 14px; }

/* 第三方注册方式 */
.wp-divider { display: flex; align-items: center; gap: 11px; margin: 19px 0 15px; color: var(--wp-ink3); font-size: 12px; }
.wp-divider::before, .wp-divider::after { content: ""; flex: 1; height: 1px; background: var(--wp-line); }
.wp-social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.wp-social {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 11px 10px;
  border: 1px solid var(--wp-line); border-radius: var(--wp-r-s); background: var(--wp-paper);
  font-size: 12.8px; color: var(--wp-ink2); transition: border-color .2s, background .2s, transform .16s; text-decoration: none;
}
.wp-social:hover { border-color: var(--wp-gold2); background: var(--wp-goldsoft); transform: translateY(-1px); }
.wp-social svg { width: 17px; height: 17px; flex: none; }

/* 协议勾选 */
.wp-agree { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; margin: 5px 0 16px; }
.wp-agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.wp-agree-box {
  width: 18px; height: 18px; flex: none; border-radius: 5px; border: 1.6px solid var(--wp-line);
  background: var(--wp-paper); display: grid; place-items: center; transition: all .18s; margin-top: 1px;
}
.wp-agree-box::after {
  content: ""; width: 9px; height: 5px; border-left: 2px solid #2B2118; border-bottom: 2px solid #2B2118;
  transform: rotate(-45deg) scale(0); transition: transform .18s; margin-top: -2px;
}
.wp-agree input:checked + .wp-agree-box { background: var(--wp-gold2); border-color: var(--wp-gold2); }
.wp-agree input:checked + .wp-agree-box::after { transform: rotate(-45deg) scale(1); }
.wp-agree input:focus-visible + .wp-agree-box { box-shadow: 0 0 0 3px var(--wp-goldsoft); }
.wp-agree-text { font-size: 12.2px; color: var(--wp-ink2); line-height: 1.6; }
.wp-agree-text a { color: var(--wp-gold); font-weight: 600; text-decoration: underline; }
.wp-agree.has-error .wp-agree-box { border-color: var(--wp-red); box-shadow: 0 0 0 3px rgba(180,70,47,.1); }

/* 注册/登录卡片 */
.wp-auth-wrap { padding: 20px 0 30px; }
.wp-auth-card { max-width: 460px; margin: 0 auto; background: var(--wp-paper); border: 1px solid var(--wp-line2); border-radius: var(--wp-r-l); overflow: hidden; box-shadow: var(--wp-shadow); }
.wp-auth-head { background: linear-gradient(125deg, #2A2015, #43321D 60%, #2A2015); color: #F6EBD5; padding: 26px 24px 22px; position: relative; overflow: hidden; }
.wp-auth-head::before { content: ""; position: absolute; inset: 0; opacity: .22; background: radial-gradient(420px 200px at 82% 4%, rgba(217,174,99,.9), transparent 62%); }
.wp-auth-head > * { position: relative; z-index: 2; }
.wp-auth-head h1 { font-family: var(--wp-serif); font-size: 21px; letter-spacing: .6px; margin-bottom: 8px; }
.wp-auth-head p { font-size: 12.5px; line-height: 1.75; color: rgba(246,235,213,.82); margin: 0; }
.wp-auth-body { padding: 22px 22px 26px; }
.wp-auth-switch { font-size: 12.6px; color: var(--wp-ink3); text-align: center; margin-top: 15px; }
.wp-auth-switch a { color: var(--wp-gold); font-weight: 600; cursor: pointer; text-decoration: underline; }
.wp-alert { padding: 11px 14px; border-radius: var(--wp-r-s); font-size: 12.8px; line-height: 1.7; margin-bottom: 14px; }
.wp-alert.is-error { background: var(--wp-redsoft); color: var(--wp-red); border: 1px solid rgba(180,70,47,.2); }
.wp-alert.is-ok { background: var(--wp-greensoft); color: var(--wp-green); border: 1px solid rgba(78,122,85,.2); }
.wp-alert.is-info { background: var(--wp-goldsoft); color: #8A6420; border: 1px solid rgba(184,134,59,.22); }

/* ========== SECTION: 商品详情 ========== */
.wp-single { padding: 18px 0 26px; }
.wp-single-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.wp-single-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--wp-r-m); overflow: hidden; background: var(--wp-cream2); }
.wp-single-media img { width: 100%; height: 100%; object-fit: cover; }
.wp-single-gallery { position: relative; min-width: 0; }
.wp-single-gallery .woocommerce-product-gallery { width: 100%; margin: 0; }
.woocommerce div.product .wp-single-gallery div.images { float: none; width: 100%; margin: 0; }
.wp-single-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.wp-single-gallery .flex-viewport { border-radius: var(--wp-r-m); background: var(--wp-cream2); }
.wp-single-gallery .woocommerce-product-gallery__image,
.wp-single-gallery .woocommerce-product-gallery__image--placeholder { aspect-ratio: 1 / 1; background: var(--wp-cream2); overflow: hidden; border-radius: var(--wp-r-m); }
.wp-single-gallery .woocommerce-product-gallery__image > a { display: block; width: 100%; height: 100%; }
.woocommerce div.product .wp-single-gallery .woocommerce-product-gallery__image > a > img,
.woocommerce div.product .wp-single-gallery .woocommerce-product-gallery__image--placeholder img { width: 100%; height: 100%; object-fit: cover; }
.woocommerce div.product .wp-single-gallery .flex-control-thumbs { display: flex; gap: 8px; margin: 0; padding: 12px 2px 4px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
.woocommerce div.product .wp-single-gallery .flex-control-thumbs li { float: none; width: calc((100% - 32px) / 5); min-width: 54px; flex: 0 0 calc((100% - 32px) / 5); scroll-snap-align: start; }
.woocommerce div.product .wp-single-gallery .flex-control-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; border: 2px solid transparent; border-radius: 8px; opacity: .7; }
.woocommerce div.product .wp-single-gallery .flex-control-thumbs img.flex-active { border-color: var(--wp-gold); opacity: 1; }
.wp-single-gallery .flex-control-thumbs img:focus-visible { outline: 2px solid var(--wp-ink); outline-offset: 2px; }
.woocommerce div.product .wp-single-info.summary { float: none; width: auto; min-width: 0; margin: 0; }
.wp-single-cat { font-size: 11.3px; letter-spacing: 1.6px; color: var(--wp-gold); margin-bottom: 7px; }
.wp-single-title { font-family: var(--wp-serif); font-size: 23px; line-height: 1.36; margin-bottom: 5px; }
.wp-single-en { font-size: 12.3px; color: #A99B89; letter-spacing: .6px; margin-bottom: 15px; }
.wp-single-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: var(--wp-paper); border: 1px solid var(--wp-line2); border-radius: var(--wp-r-s); padding: 13px 15px; margin-bottom: 16px; }
.wp-single-price .wp-price { font-size: 26px; }
.wp-single-meta { font-size: 12.2px; color: var(--wp-ink3); background: var(--wp-cream2); border-radius: 8px; padding: 8px 12px; display: inline-block; margin-bottom: 15px; }
.wp-single-desc { font-size: 13.6px; color: var(--wp-ink2); line-height: 1.9; margin-bottom: 17px; }
.wp-single-sec { margin-bottom: 16px; }
.wp-single-sec h5 { font-family: var(--wp-serif); font-size: 13.8px; letter-spacing: .8px; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.wp-single-sec h5::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--wp-gold); flex: none; }
.wp-single-sec ul li { font-size: 12.8px; color: var(--wp-ink2); line-height: 1.85; padding-left: 14px; position: relative; }
.wp-single-sec ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--wp-gold2); }
.wp-single-sec p { font-size: 12.8px; color: var(--wp-ink2); line-height: 1.85; margin: 0; }
.wp-single-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--wp-line2); flex-wrap: wrap; }
.wp-single-actions .wp-btn { flex: 1; min-width: 130px; }

/* ========== SECTION: 五项底部导航 ========== */
.wp-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: block;
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px); border-top: 1px solid var(--wp-line);
  padding: 5px 4px calc(6px + env(safe-area-inset-bottom));
}
.wp-tabbar-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 560px; min-height: 60px; margin: 0 auto; }
.wp-tabbar .wp-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; padding: 7px 1px 3px;
  min-width: 0; min-height: 60px; color: var(--wp-ink2); font-size: 11px; line-height: 1.35; letter-spacing: 0; position: relative;
  transition: color .2s; text-decoration: none;
}
.wp-tabbar .wp-tab-icon { display: grid; place-items: center; flex: none; width: 24px; height: 24px; }
.wp-tabbar .wp-tab-icon svg { width: 23px; height: 23px; }
.wp-tabbar .wp-tab-label { display: block; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.wp-tabbar .wp-tab.is-active { color: var(--wp-gold); font-weight: 700; }
.wp-tabbar .wp-tab:hover { color: var(--wp-gold); }
.wp-tabbar .wp-tab:focus-visible { outline: 2px solid var(--wp-gold); outline-offset: -2px; border-radius: 10px; }
.wp-tabbar .wp-tab--invite { padding-top: 46px; color: var(--wp-ink); font-weight: 600; }
.wp-tabbar .wp-tab--invite .wp-tab-icon {
  position: absolute; top: -31px; left: 50%; transform: translateX(-50%); width: 74px; height: 74px;
  border: 4px solid var(--wp-cream); border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 32% 26%, #EBC98A, var(--wp-gold) 62%, #8E6527);
  box-shadow: 0 6px 18px rgba(119, 81, 28, .32); transition: transform .18s, box-shadow .2s;
}
.wp-tabbar .wp-tab--invite .wp-tab-icon svg { width: 37px; height: 37px; }
.wp-tabbar .wp-tab--invite:hover .wp-tab-icon,
.wp-tabbar .wp-tab--invite.is-active .wp-tab-icon { transform: translateX(-50%) scale(1.04); box-shadow: 0 8px 22px rgba(119, 81, 28, .4); }
.wp-tab-badge {
  position: absolute; top: 5px; right: calc(50% - 22px); min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--wp-red); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.wp-tab-badge[data-count="0"] { display: none; }
body.has-tabbar { padding-bottom: calc(var(--wp-tabbar-h) + 24px + env(safe-area-inset-bottom)); }
@media (max-width: 359px) {
  .wp-tabbar .wp-tab { font-size: 10px; }
  .wp-tabbar .wp-tab--invite .wp-tab-icon { width: 68px; height: 68px; top: -27px; }
}

/* ========== SECTION: 提示气泡 ========== */
.wp-toast {
  position: fixed; left: 50%; bottom: calc(var(--wp-tabbar-h) + 20px); z-index: 130; transform: translate(-50%, 16px);
  background: rgba(43,33,24,.95); color: #F6EDDC; padding: 11px 20px; border-radius: 999px;
  font-size: 13.2px; letter-spacing: .4px; box-shadow: 0 12px 32px rgba(40,28,14,.3);
  opacity: 0; visibility: hidden; transition: all .3s; display: flex; align-items: center; gap: 8px; max-width: 90vw;
}
.wp-toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.wp-toast svg { width: 15px; height: 15px; color: var(--wp-gold2); flex: none; }

/* ========== SECTION: 页脚（公司信息） ========== */
.wp-footer { background: #241B12; color: #C9BBA6; padding: 26px 0 0; margin-top: 18px; }
.wp-footer-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 16px; }
.wp-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wp-footer-brand .wp-logo-mark { width: 34px; height: 34px; }
.wp-footer-brand .wp-logo-mark svg { width: 19px; height: 19px; }
.wp-footer-brand .custom-logo-link { flex: none; max-width: 100px; }
.wp-footer-brand img.custom-logo { width: auto; height: auto; max-width: 100px; max-height: 48px; object-fit: contain; border-radius: 0; }
.wp-footer-brand > a:last-child { min-width: 0; overflow-wrap: anywhere; }
.wp-footer-grid > div { min-width: 0; }
.wp-footer-brand b { font-family: var(--wp-serif); font-size: 16px; color: #F2E6CF; letter-spacing: .5px; }
.wp-footer-about { font-size: 12.5px; line-height: 1.7; color: #A2917C; margin-bottom: 10px; }
.wp-footer-certs { display: flex; gap: 7px; flex-wrap: wrap; }
.wp-cert { font-size: 10.8px; letter-spacing: .8px; color: #D9C7A6; border: 1px solid rgba(217,174,99,.28); border-radius: 6px; padding: 4px 10px; background: rgba(217,174,99,.06); }
.wp-footer-col h4 { font-family: var(--wp-serif); font-size: 14px; color: #F2E6CF; letter-spacing: .8px; margin-bottom: 9px; padding-bottom: 7px; border-bottom: 1px solid rgba(217,174,99,.18); }
.wp-footer-col li { margin-bottom: 6px; }
.wp-footer-col a, .wp-footer-col span { font-size: 12.6px; color: #A2917C; transition: color .2s; }
.wp-footer-col a:hover, .wp-footer-col span:hover { color: var(--wp-gold2); }
.wp-company-info { display: flex; flex-direction: column; gap: 8px; }
.wp-company-row { display: flex; gap: 9px; font-size: 12.4px; color: #A2917C; line-height: 1.7; }
.wp-company-row svg { width: 15px; height: 15px; flex: none; color: var(--wp-gold2); margin-top: 2px; }
.wp-footer-bottom { border-top: 1px solid rgba(217,174,99,.16); padding: 16px 0 20px; }
.wp-footer-copy { font-size: 11.6px; color: #8A7A66; letter-spacing: .3px; text-align: center; margin-bottom: 8px; }
.wp-footer-disc { font-size: 11px; color: #7E6F5D; line-height: 1.8; text-align: center; }
.wp-footer-menu { padding: 0 0 15px; font-size: 12.6px; }
.wp-footer-menu ul { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.wp-footer-menu a:hover { color: var(--wp-gold2); }

/* ========== SECTION: 图片加载失败占位 ========== */
.wp-img-ph {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 12px;
  font-size: 11.5px; color: var(--wp-ink3); background: linear-gradient(150deg, var(--wp-cream2), var(--wp-goldsoft));
}
.wp-img-failed .wp-img-ph { display: grid; }
.wp-img-failed img { display: none; }

/* ========== SECTION: WordPress 默认内容样式 ========== */
.wp-content h1, .wp-content h2, .wp-content h3 { font-family: var(--wp-serif); margin: 20px 0 12px; }
.wp-content h1 { font-size: 24px; } .wp-content h2 { font-size: 20px; } .wp-content h3 { font-size: 17px; }
.wp-content p { margin-bottom: 13px; }
.wp-content ul, .wp-content ol { margin: 0 0 14px 20px; }
.wp-content ul { list-style: disc; } .wp-content ol { list-style: decimal; }
.wp-content li { margin-bottom: 6px; font-size: 14px; }
.wp-content a { color: var(--wp-gold); text-decoration: underline; }
.wp-content img { border-radius: var(--wp-r-s); margin: 12px 0; }
.wp-content blockquote { border-left: 3px solid var(--wp-gold2); margin: 14px 0; padding: 4px 0 4px 16px; color: var(--wp-ink2); background: var(--wp-cream2); border-radius: 0 var(--wp-r-s) var(--wp-r-s) 0; }
.wp-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.wp-content th, .wp-content td { border: 1px solid var(--wp-line); padding: 9px 11px; text-align: left; }
.wp-content th { background: var(--wp-cream2); font-weight: 600; }
.wp-content code { background: var(--wp-cream2); border: 1px solid var(--wp-line); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }
.alignleft { float: left; margin: 6px 16px 10px 0; }
.alignright { float: right; margin: 6px 0 10px 16px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-pagination { display: flex; justify-content: center; gap: 8px; padding: 22px 0 6px; flex-wrap: wrap; }
.wp-pagination a, .wp-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--wp-line); background: var(--wp-paper); font-size: 13px; color: var(--wp-ink2); text-decoration: none; }
.wp-pagination .current, .wp-pagination a:hover { background: var(--wp-ink); border-color: var(--wp-ink); color: #F7EFDF; }

/* ========== SECTION: 版块副标题 ========== */
.wp-sec-sub { font-size: 12.8px; color: var(--wp-ink3); margin-top: 5px; letter-spacing: .4px; }
.wp-home { display: block; }
.wp-wellness-commission { display: block; }

/* 文章/归档列表与侧边栏 */
.wp-post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.wp-post-list > * { margin: 0; }
.wp-sidebar { display: block; }

/* 商品详情：右侧信息列 */
.wp-single-info { min-width: 0; }

/* ========== SECTION: 遮罩与抽屉（购物车） ========== */
.wp-mask {
  position: fixed; inset: 0; z-index: 90; background: rgba(30,22,14,.5); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.wp-mask.is-open { opacity: 1; visibility: visible; }
.wp-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(430px, 100%);
  background: var(--wp-cream); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .34s cubic-bezier(.22,.61,.36,1);
  box-shadow: -14px 0 44px rgba(40,28,14,.22); visibility: hidden;
}
.wp-drawer.is-open { transform: translateX(0); visibility: visible; }
.wp-dr-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--wp-line); background: var(--wp-paper); flex: none;
}
.wp-dr-head h3 {
  font-family: var(--wp-serif); font-size: 17px; letter-spacing: .6px;
  display: flex; align-items: center; gap: 9px;
}
.wp-dr-head h3 i {
  font-style: normal; font-family: var(--wp-sans); font-size: 12px; color: var(--wp-gold);
  background: var(--wp-goldsoft); border-radius: 999px; padding: 2px 9px; letter-spacing: 0;
}
.wp-dr-head h3 i[data-count="0"] { display: none; }
.wp-dr-close {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--wp-line); flex: none; transition: background .2s, border-color .2s;
}
.wp-dr-close:hover { background: var(--wp-cream2); border-color: var(--wp-ink3); }
.wp-dr-close svg { width: 15px; height: 15px; color: var(--wp-ink2); }
.wp-dr-body { flex: 1; overflow-y: auto; padding: 16px 20px; -webkit-overflow-scrolling: touch; }
.wp-dr-foot {
  flex: none; border-top: 1px solid var(--wp-line); background: var(--wp-paper);
  padding: 15px 20px calc(15px + env(safe-area-inset-bottom));
}
.wp-dr-foot:empty { display: none; }
.wp-dr-empty { text-align: center; padding: 52px 16px; }
.wp-dr-empty .wp-empty-ico { width: 64px; height: 64px; }
.wp-dr-empty b { display: block; font-family: var(--wp-serif); font-size: 16.5px; margin-bottom: 7px; }
.wp-dr-empty p { font-size: 12.8px; color: var(--wp-ink3); margin-bottom: 18px; line-height: 1.8; }
body.wp-drawer-open { overflow: hidden; }
body.wp-modal-open { overflow: hidden; }

/* ========== SECTION: 页头搜索栏（位于页头下方、banner 上方） ========== */
.wp-searchbar { padding: 10px 0 12px; background: var(--wp-cream); border-bottom: 1px solid var(--wp-line2); }
.wp-searchbar .wp-search-box { height: 40px; }
.wp-header-acts { margin-left: auto; }
.wp-hide-mobile { display: grid; }

/* ========== SECTION: 语言切换器 ========== */
.wp-lang-switcher { position: relative; flex: 0 0 auto; }
/* Language is a full-size pill control, independent of circular icon buttons. */
.wp-lang-switcher .wp-lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 104px; height: 42px; padding: 0 12px; gap: 7px;
  flex: 0 0 auto; border: 1.5px solid var(--wp-gold); border-radius: 999px;
  color: var(--wp-ink); background: var(--wp-goldsoft); white-space: nowrap;
  cursor: pointer; box-shadow: 0 2px 6px rgba(80, 58, 29, .08);
}
.wp-lang-switcher .wp-lang-btn:hover { background: var(--wp-cream2); }
.wp-lang-switcher .wp-lang-btn:focus-visible { outline: 2px solid var(--wp-gold); outline-offset: 3px; }
.wp-lang-switcher .wp-lang-btn > svg { width: 18px; height: 18px; flex: none; }
.wp-lang-switcher .wp-lang-btn .wp-lang-caret { width: 12px; height: 12px; }
.wp-lang-switcher .wp-lang-cur { display: inline; font-size: 14px; line-height: 1.2; font-weight: 600; }
.wp-lang-cur { font-size: 11px; font-weight: 700; color: var(--wp-ink2); letter-spacing: .3px; }
.wp-lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 150px;
  background: var(--wp-paper); border: 1px solid var(--wp-line); border-radius: 12px;
  box-shadow: var(--wp-shadow-lg); padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.wp-lang-switcher.is-open .wp-lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.wp-lang-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: 8px; font-size: 13px; color: var(--wp-ink2);
  transition: background .16s, color .16s; text-align: left;
}
.wp-lang-item:hover { background: var(--wp-cream2); color: var(--wp-gold); }
.wp-lang-item.is-active { background: var(--wp-goldsoft); color: var(--wp-gold); font-weight: 600; }
.wp-lang-check svg { width: 14px; height: 14px; color: var(--wp-gold); }
.wp-lang-feedback { padding: 8px 10px 5px; border-top: 1px solid var(--wp-line2); margin-top: 5px; max-width: 240px; }
.wp-lang-menu[hidden], .wp-lang-feedback[hidden], .wp-lang-retry[hidden] { display: none; }
.wp-lang-status { margin: 0; font-size: 12px; line-height: 1.6; color: var(--wp-ink2); overflow-wrap: anywhere; }
.wp-lang-feedback.is-error .wp-lang-status { color: var(--wp-red); }
.wp-lang-retry { margin-top: 6px; padding: 8px 12px; min-height: 36px; border: 1px solid var(--wp-gold); border-radius: 8px; color: var(--wp-ink); background: var(--wp-goldsoft); font-size: 12px; font-weight: 600; }
.wp-lang-item:disabled { opacity: .65; cursor: progress; }
.wp-lang-item:focus-visible, .wp-lang-retry:focus-visible { outline: 2px solid var(--wp-gold); outline-offset: -2px; }

/* ========== SECTION: 内页页头（返回键 + 居中标题） ========== */
.wp-sub-head {
  position: sticky; top: 0; z-index: 60; background: var(--wp-cream);
  border-bottom: 1px solid var(--wp-line);
}
.admin-bar .wp-sub-head { top: 32px; }
.wp-sub-head-in { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.wp-back-btn {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--wp-line); background: var(--wp-paper); color: var(--wp-ink2);
  transition: background .18s, border-color .18s, color .18s; text-decoration: none;
}
.wp-back-btn:hover { background: var(--wp-goldsoft); border-color: var(--wp-gold2); color: var(--wp-gold); }
.wp-back-btn svg { width: 17px; height: 17px; }
.wp-sub-title {
  flex: 1; min-width: 0; text-align: center; font-family: var(--wp-serif);
  font-size: 17px; letter-spacing: .6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wp-sub-title b { color: var(--wp-gold); font-family: var(--wp-sans); font-size: 12.5px; margin-left: 6px; }
.wp-sub-head-spacer { flex: none; width: 36px; }

/* ========== SECTION: 我的账户中心 ========== */
.wp-acc-hero {
  display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: var(--wp-r-m);
  background: linear-gradient(125deg, #2A2015, #4A371F 58%, #2A2015); color: #F6EBD5;
  position: relative; overflow: hidden; margin-bottom: 14px; text-align: left; width: 100%;
  border: 0; cursor: pointer; text-decoration: none;
}
.wp-acc-hero::before { content: ""; position: absolute; inset: 0; opacity: .2; background: radial-gradient(400px 180px at 88% 0%, rgba(217,174,99,.9), transparent 60%); }
.wp-acc-hero > * { position: relative; z-index: 2; }
.wp-acc-hero-arrow { flex: none; color: rgba(246,235,213,.6); }
.wp-acc-hero-arrow svg { width: 16px; height: 16px; }
.wp-acc-hero-main { flex: 1; min-width: 0; }
.wp-acc-hero-name { font-family: var(--wp-serif); font-size: 18px; letter-spacing: .4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wp-acc-hero-phone { font-size: 12px; color: rgba(246,235,213,.72); margin-top: 4px; letter-spacing: .3px; }
.wp-acc-tip { font-size: 11.5px; color: rgba(246,235,213,.55); margin-top: 3px; }

.wp-acc-block { background: var(--wp-paper); border: 1px solid var(--wp-line2); border-radius: var(--wp-r-m); padding: 15px 16px; margin-bottom: 13px; }
.wp-acc-block-h {
  display: flex; align-items: center; gap: 8px; font-family: var(--wp-serif);
  font-size: 15.5px; margin-bottom: 14px;
}
.wp-acc-block-h svg { width: 17px; height: 17px; color: var(--wp-gold); flex: none; }
.wp-acc-block-h .wp-acc-h-extra { margin-left: auto; font-family: var(--wp-sans); font-size: 11.5px; color: var(--wp-ink3); font-weight: 400; }

/* 订单五宫格：待付款/待发货/待收货/待评价/退款售后 */
.wp-order-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wp-order-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px;
  border-radius: var(--wp-r-s); color: var(--wp-ink2); text-decoration: none; position: relative;
  transition: background .18s, color .18s;
}
.wp-order-cell:hover { background: var(--wp-goldsoft); color: var(--wp-gold); }
.wp-order-cell svg { width: 22px; height: 22px; color: var(--wp-gold); }
.wp-order-cell span { font-size: 11.5px; line-height: 1.35; text-align: center; }
.wp-order-cell i {
  position: absolute; top: 3px; right: calc(50% - 20px); min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--wp-red); color: #fff; font-size: 10px; font-style: normal;
  font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.wp-order-cell i[data-count="0"] { display: none; }

/* 推广记录：已推广订单 + 佣金三项 */
.wp-promo-orders {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px;
  background: var(--wp-goldsoft); border: 1px solid rgba(184,134,59,.2); border-radius: var(--wp-r-s);
  margin-bottom: 12px; text-decoration: none; color: inherit; text-align: left; transition: border-color .18s, transform .16s;
}
.wp-promo-orders:hover { border-color: var(--wp-gold2); transform: translateY(-1px); }
.wp-promo-orders-ico { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--wp-paper); display: grid; place-items: center; }
.wp-promo-orders-ico svg { width: 19px; height: 19px; color: var(--wp-gold); }
.wp-promo-orders-main { flex: 1; min-width: 0; }
.wp-promo-orders-main b { display: block; font-size: 13.8px; font-weight: 600; }
.wp-promo-orders-main span { display: block; font-size: 11.5px; color: var(--wp-ink3); margin-top: 2px; line-height: 1.5; }
.wp-promo-orders-num { flex: none; font-family: var(--wp-num); font-variant-numeric: tabular-nums; font-size: 21px; font-weight: 700; color: var(--wp-red); }

.wp-cm-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.wp-cm-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 13px 6px; border-radius: var(--wp-r-s); border: 1px solid var(--wp-line2);
  background: var(--wp-paper); text-decoration: none; color: inherit; transition: border-color .18s, transform .16s;
}
.wp-cm-cell:hover { border-color: var(--wp-gold2); transform: translateY(-2px); }
.wp-cm-cell b { font-family: var(--wp-num); font-variant-numeric: tabular-nums; font-size: 17px; color: var(--wp-red); line-height: 1.2; }
.wp-cm-cell span { font-size: 11.3px; color: var(--wp-ink3); }
.wp-cm-cell.is-cta { background: linear-gradient(135deg, var(--wp-gold2), var(--wp-gold)); border-color: transparent; }
.wp-cm-cell.is-cta b, .wp-cm-cell.is-cta span { color: #2B2118; }

/* 个人信息行 */
.wp-info-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 2px;
  border-bottom: 1px solid var(--wp-line2); background: none; border-left: 0; border-right: 0; border-top: 0;
  text-align: left; text-decoration: none; color: inherit; cursor: pointer;
}
.wp-info-row:last-child { border-bottom: 0; }
.wp-info-row-ico { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--wp-goldsoft); display: grid; place-items: center; }
.wp-info-row-ico svg { width: 17px; height: 17px; color: var(--wp-gold); }
.wp-info-row-main { flex: 1; min-width: 0; }
.wp-info-row-main b { display: block; font-size: 13.8px; font-weight: 600; }
.wp-info-row-main span {
  display: block; font-size: 12px; color: var(--wp-ink3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wp-info-row-arrow { flex: none; color: var(--wp-ink3); }
.wp-info-row-arrow svg { width: 15px; height: 15px; }

/* ========== SECTION: 账户主页容器 ========== */
.wp-acc-home { max-width: 620px; margin: 0 auto; }
.wp-acc-home .wp-acc-block { margin-bottom: 13px; }

/* Account-wide navigation and card layout live in assets/css/account-layout.css. */

/* ========== SECTION: 修改昵称 / 手机号弹层 ========== */
.wp-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; background: rgba(30,22,14,.5); }
.wp-modal.is-open { opacity: 1; visibility: visible; }
.wp-modal-box { width: min(440px, 100%); max-height: min(88vh, 720px); overflow-y: auto; background: var(--wp-cream); border-radius: var(--wp-r-l); box-shadow: var(--wp-shadow-lg); transform: translateY(14px) scale(.98); transition: transform .28s cubic-bezier(.22,.61,.36,1); }
.wp-modal.is-open .wp-modal-box { transform: translateY(0) scale(1); }
.wp-modal-sm { width: min(400px, 100%); }
.wp-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--wp-line2); }
.wp-modal-head h3 { font-family: var(--wp-serif); font-size: 17px; }
.wp-modal-close { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--wp-line); background: var(--wp-paper); }
.wp-modal-close:hover { background: var(--wp-ink); }
.wp-modal-close:hover svg { color: #F7EFDF; }
.wp-modal-close svg { width: 15px; height: 15px; color: var(--wp-ink2); }
.wp-modal-body { padding: 20px; }

/* ========== SECTION: 页脚小工具 ========== */
.wp-footer-widgets { border-top: 1px solid rgba(217,174,99,.16); padding-top: 20px; }
.wp-footer-widget { margin-bottom: 16px; }
.wp-footer-widget h4 { font-family: var(--wp-serif); font-size: 14px; color: #F2E6CF; letter-spacing: .8px; margin-bottom: 11px; }
.wp-footer-widget, .wp-footer-widget p, .wp-footer-widget li { font-size: 12.5px; color: #A2917C; line-height: 1.8; }
.wp-footer-widget a { color: #A2917C; transition: color .2s; }
.wp-footer-widget a:hover { color: var(--wp-gold2); }

/* ========== SECTION: 响应式 ========== */
@media (max-width: 600px) {
  /* 手机端底部导航已有购物车，页头不再重复显示购物车图标 */
  .wp-header-acts .wp-hide-mobile { display: none; }
  .wp-logo-mark, .wp-logo img,
  .wp-logo .custom-logo-link img, .wp-logo img.custom-logo, img.custom-logo { width: 46px; height: 46px; max-width: 46px; max-height: 46px; }
  .wp-logo-mark svg { width: 26px; height: 26px; }
  .wp-logo-text b { font-size: 16px; }
  .wp-logo-text span { font-size: 13px; letter-spacing: 2.4px; }
  .wp-header-inner { min-height: 60px; }
  .wp-order-grid { grid-template-columns: repeat(5, 1fr); gap: 2px; }
  .wp-order-cell { padding: 8px 1px; }
  .wp-order-cell span { font-size: 10.5px; }
  .wp-cm-cells { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .wp-lang-menu { min-width: 140px; }
}
@media (min-width: 601px) {
  .wp-container { padding: 0 20px; }
  .wp-slide { min-height: 280px; }
  .wp-slide-inner { padding: 40px 20px; }
  .wp-pgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .wp-footer-grid { grid-template-columns: 1fr 1fr; }
  .wp-footer-copy, .wp-footer-disc { text-align: left; }
  .wp-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .wp-footer-copy { margin-bottom: 0; }
  .wp-footer-disc { max-width: 620px; }
}
@media (min-width: 900px) {
  body.has-tabbar { padding-bottom: 0; }
  .wp-tabbar { display: none; }
  .wp-desktop-nav { display: block; }
  .wp-header-inner { min-height: 72px; gap: 18px; }
  .wp-logo-mark, .wp-logo img { width: 60px; height: 60px; }
  .wp-logo .custom-logo-link img,
  .wp-logo img.custom-logo { width: 60px; height: 60px; max-width: 60px; max-height: 60px; }
  .wp-logo-mark svg { width: 33px; height: 33px; }
  .wp-logo-text b { font-size: 21px; }
  .wp-logo-text span { font-size: 16px; letter-spacing: 3.4px; }
  .wp-searchbar { padding: 12px 0 14px; }
  .wp-searchbar .wp-search-box { height: 44px; }
  .wp-icon-btn { width: 42px; height: 42px; }
  .wp-icon-btn svg { width: 19px; height: 19px; }
  .wp-banner-nav { display: grid; }
  .wp-slide { min-height: 380px; }
  .wp-slide-inner { padding: 56px 20px; }
  .wp-slide-title { font-size: clamp(30px, 4.4vw, 48px); }
  .wp-slide-desc { font-size: 15px; }
  .wp-features { padding: 30px 0 8px; }
  .wp-features-grid { gap: 16px; }
  .wp-feature { flex-direction: row; align-items: center; text-align: left; padding: 20px 20px; gap: 14px; }
  .wp-feature-ico { width: 46px; height: 46px; }
  .wp-feature-txt { flex: 1; min-width: 0; }
  .wp-feature b { font-size: 16px; }
  .wp-feature span { font-size: 12.3px; }
  .wp-cats { padding: 34px 0 8px; }
  .wp-cats-grid { gap: 14px; }
  .wp-cat-card { min-height: 112px; padding: 18px 10px; }
  .wp-cat-thumb { width: 52px; height: 52px; }
  .wp-cat-name { font-size: 13px; }
  .wp-products { padding: 34px 0 10px; }
  .wp-pgrid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .wp-pcard-body { padding: 13px 14px 15px; }
  .wp-pcard-name { font-size: 14.4px; }
  .wp-sec-title { font-size: 24px; }
  .wp-cat-layout { grid-template-columns: 150px 1fr; gap: 18px; padding: 24px 0 34px; }
  .wp-cat-side { top: 150px; }
  .wp-cat-side a, .wp-cat-side button { padding: 14px 10px; font-size: 13.2px; text-align: left; }
  .wp-single-grid { grid-template-columns: .95fr 1.05fr; gap: 34px; align-items: start; }
  .wp-single-media, .wp-single-gallery { position: sticky; top: 100px; }
  .wp-single-title { font-size: 28px; }
  .wp-toast { bottom: 40px; }
  .wp-acc-head { padding: 22px; }
  .wp-footer { padding-top: 30px; }
  .wp-footer-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 26px; padding-bottom: 22px; }
}
@media (min-width: 1200px) {
  .wp-cat-layout { grid-template-columns: 190px 1fr; }
}

/* ========== SECTION: 打印 ========== */
@media print {
  .wp-header, .wp-tabbar, .wp-footer, .wp-banner, .wp-marquee, .wp-single-actions, .wp-load-more { display: none !important; }
  body { background: #fff; }
}

/* ========== SECTION: 登录/注册页语言切换器 ========== */
.wp-auth-lang-switcher {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 14px;
  padding: 12px 16px; background: var(--wp-cream2); border-radius: var(--wp-r-s);
  border: 1px solid var(--wp-line);
}
.wp-auth-lang-label { font-size: 13.5px; color: var(--wp-ink2); font-weight: 600; white-space: nowrap; }
.wp-auth-lang-switcher select {
  flex: 1; padding: 8px 12px; border: 1px solid var(--wp-line); border-radius: var(--wp-r-s);
  background: var(--wp-paper); font-size: 14px; color: var(--wp-ink); outline: 0; cursor: pointer;
}
.wp-auth-lang-switcher select:focus { border-color: var(--wp-gold2); box-shadow: 0 0 0 3px var(--wp-goldsoft); }

/* ========== SECTION: 降低动效偏好 ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ========== SECTION: 字号档位 ========== */
.wellness-fs-normal { --wp-font-base: 14px; }
.wellness-fs-large  { --wp-font-base: 16px; }
.wellness-fs-xlarge { --wp-font-base: 18px; }

/* ========== SECTION: 首页评价 ========== */
.wp-reviews { padding: 36px 0; }
.wp-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
@media (max-width: 899px) { .wp-reviews-grid { grid-template-columns: 1fr; gap: 14px; } }
.wp-review-card {
  background: var(--wp-paper); border: 1px solid var(--wp-line); border-radius: var(--wp-r-m);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.wp-review-head { display: flex; align-items: center; gap: 12px; }
.wp-review-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: var(--wp-goldsoft); display: flex; align-items: center; justify-content: center; }
.wp-review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wp-review-avatar-ph { font-size: 18px; font-weight: 700; color: var(--wp-gold); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.wp-review-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wp-review-info b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-review-stars { display: flex; gap: 1px; color: var(--wp-line); font-size: 13px; }
.wp-review-stars i.is-filled { color: var(--wp-gold); font-style: normal; }
.wp-review-text { font-size: 13px; color: var(--wp-ink2); line-height: 1.7; margin: 0; }
.wp-review-tag {
  display: inline-block; font-size: 11px; color: var(--wp-green, #30a653); background: rgba(42,157,92,.08);
  padding: 2px 8px; border-radius: 99px; align-self: flex-start;
}

/* ========== SECTION: 评论头像 ========== */
.wp-comment-avatar { flex: none; margin-right: 12px; }
.wp-comment-avatar .wp-avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* ========== SECTION: 社媒图标 ========== */
.wp-footer-social { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.wp-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; transition: opacity .2s;
}
.wp-footer-social a:hover { opacity: .8; }
.wp-footer-social svg { width: 20px; height: 20px; }

/* ========== SECTION: 悬浮健康顾问 ========== */
.wp-fab {
  position: fixed; right: 18px; bottom: 80px; z-index: 55;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.has-tabbar .wp-fab { bottom: calc(var(--wp-tabbar-h) + 18px); }
.wp-fab-btn {
  width: 54px; height: 54px; border-radius: 50%; background: var(--wp-gold); color: #2B2118;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(184,134,59,.35); cursor: pointer; border: 0;
  transition: transform .2s, box-shadow .2s;
}
.wp-fab-btn:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(184,134,59,.45); }
.wp-fab-btn svg { width: 26px; height: 26px; }
.wp-fab-label {
  font-size: 12px; background: var(--wp-ink); color: #F7EFDF; padding: 4px 10px;
  border-radius: 99px; white-space: nowrap; pointer-events: none;
}
.wp-fab-menu {
  display: none; flex-direction: column; gap: 8px; align-items: flex-end;
}
.wp-fab.is-open .wp-fab-menu { display: flex; }
.wp-fab-link {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--wp-paper); border: 1px solid var(--wp-line); border-radius: 99px;
  font-size: 13px; font-weight: 600; color: var(--wp-ink); text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .16s;
}
.wp-fab-link:hover { transform: translateX(-4px); }
.wp-fab-link svg { width: 20px; height: 20px; flex: none; }

/* ========== SECTION: VAT 信息块 ========== */
.wp-vat-info {
  margin-top: 12px; padding: 10px 14px; background: var(--wp-goldsoft);
  border-radius: var(--wp-r-s); font-size: 13px; color: var(--wp-ink2); line-height: 1.6;
}
.wp-vat-row { display: flex; justify-content: space-between; align-items: center; }

/* ========== SECTION: 字号切换控件 ========== */
.wp-font-switcher { display: flex; gap: 8px; margin-top: 8px; }
.wp-font-btn {
  padding: 6px 14px; border: 1px solid var(--wp-line); border-radius: 99px;
  background: var(--wp-paper); font-size: 13px; cursor: pointer; transition: all .2s;
}
.wp-font-btn.is-active { background: var(--wp-gold); border-color: var(--wp-gold); color: #2B2118; font-weight: 600; }

/* ========== SECTION: 国家修改弹层 ========== */
.wp-country-select-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
/* v10 国家/地区选择弹层里的选项（按钮形式，复用 wp-country 的视觉） */
.wp-country-opt {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid var(--wp-line);
  border-radius: var(--wp-r-s); background: var(--wp-paper); cursor: pointer; transition: all .2s;
  position: relative; width: 100%; text-align: left; font: inherit; color: inherit;
}
.wp-country-opt:hover { border-color: var(--wp-gold2); }
.wp-country-opt:disabled { opacity: .55; cursor: progress; }
.wp-country-opt.is-selected { border-color: var(--wp-gold); background: var(--wp-goldsoft); box-shadow: 0 0 0 2px rgba(184,134,59,.13); }
.wp-country-opt .wp-country-check { color: var(--wp-gold); opacity: 1; }

/* v10 账号资料面板里的块级行（标签在上、控件在下，用于字号切换） */
.wp-kv.wp-kv-block { display: block; }
.wp-kv.wp-kv-block > span { display: block; margin-bottom: 7px; }


/* ========== SECTION: 原 HTML 版式适配（保留配色、比例、横向商品卡片） ========== */
.wp-source-header { display: grid; grid-template-columns: minmax(0,1fr) auto; min-height: 68px; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.wp-source-header .wp-header-acts { justify-self: end; gap: 6px; }
.wp-brand-lockup { display: inline-flex; align-items: center; justify-self: start; gap: 10px; min-width: 0; max-width: 100%; min-height: 48px; text-decoration: none; }
.wp-brand-lockup:focus-visible { outline: 2px solid var(--wp-gold); outline-offset: 4px; border-radius: 6px; }
.wp-source-header .wp-logo { min-width: 0; flex: 0 0 auto; }
.wp-source-header .wp-logo .custom-logo-link img,
.wp-source-header .wp-logo img.custom-logo,
.wp-source-header img.wp-source-logo { width: auto; height: 56px; max-width: 84px; max-height: 56px; border-radius: 0; object-fit: contain; }
.wp-source-header .wp-logo-mark { width: 56px; height: 56px; }
.wp-source-header .wp-logo-mark svg { width: 31px; height: 31px; }
.wp-source-brand { text-align: left; min-width: 0; max-width: none; }
.wp-source-brand b { font-size: 22px; letter-spacing: .2px; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.wp-searchbar { padding: 10px 0 2px; }
.wp-searchbar .wp-search-box { height: 42px; }
.wp-home .wp-banner { margin: 12px 0 4px; }
.wp-home .wp-slide { min-height: 180px; }
.wp-home .wp-slide-inner { padding: 26px 0; }
.wp-home .wp-slide-link { max-width: 80%; }
.wp-home .wp-slide-bg img { transform: none; opacity: .5; }
.wp-home .wp-slide-bg::after { background: linear-gradient(100deg,rgba(30,22,14,.92),rgba(40,30,18,.6) 60%,rgba(40,30,18,.28)); }
.wp-home .wp-slide-eyebrow { font-size: 10.5px; letter-spacing: 2px; padding: 3px 11px; margin-bottom: 10px; }
.wp-home .wp-slide-title { font-size: 20px; line-height: 1.26; margin-bottom: 7px; }
.wp-home .wp-slide-desc { font-size: 12.5px; margin-bottom: 14px; max-width: none; }
.wp-home .wp-slide-cta { padding: 8px 16px; font-size: 12.5px; }
.wp-home .wp-banner-nav { display: none; }
.wp-home .wp-sec-head { align-items: flex-end; margin-bottom: 14px; gap: 12px; }
.wp-home .wp-sec-title { font-size: 20px; }
.wp-home .wp-sec-sub { font-size: 12.5px; color: var(--wp-ink3); margin: 4px 0 0; }
.wp-home .wp-home-categories { padding: 22px 0 8px; }
.wp-home-cat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.wp-home-cat { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 8px; background: var(--wp-paper); border: 1px solid var(--wp-line2); border-radius: var(--wp-r-m); cursor: default; }
.wp-home-cat.is-linked { cursor: pointer; transition: transform .2s,box-shadow .2s,border-color .2s; }
.wp-home-cat.is-linked:hover { transform: translateY(-3px); box-shadow: var(--wp-shadow); border-color: var(--wp-goldsoft); }
.wp-home-cat-icon { display: grid; place-items: center; position: relative; width: 52px; height: 52px; border-radius: 16px; flex: none; overflow: hidden; background: linear-gradient(150deg,var(--wp-goldsoft),#FBF3E2); }
.wp-home-cat-icon > span { font-size: 27px; line-height: 1; }
.wp-home-cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.wp-home-cat-name { font-size: 13px; font-weight: 600; color: var(--wp-ink2); line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.wp-home .wp-home-hot, .wp-home-story, .wp-home .wp-home-reviews { padding: 22px 0; }
.wp-hot-list { display: flex; flex-direction: column; gap: 12px; }
.wp-home-hot .wp-hot-list { gap: 12px; }
.wp-hrow { position: relative; display: flex; min-width: 0; width: 100%; isolation: isolate; gap: 13px; background: var(--wp-paper); border: 1px solid var(--wp-line2); border-radius: var(--wp-r-m); padding: 12px; transition: box-shadow .2s,border-color .2s; }
.wp-hrow:hover { box-shadow: var(--wp-shadow); border-color: var(--wp-goldsoft); }
.wp-hrow-detail-link { position: absolute; inset: 0; z-index: 1; display: block; border-radius: inherit; }
.wp-hrow-detail-link:focus-visible { outline: 2px solid var(--wp-gold, #b8863b); outline-offset: 3px; }
.wp-hrow-img { position: relative; z-index: 0; width: 100px; height: 100px; flex: none; border-radius: 12px; overflow: hidden; background: var(--wp-cream2); }
.wp-hrow-img img { width: 100%; height: 100%; object-fit: cover; }
.wp-hrow-rank { position: absolute; left: 0; top: 0; z-index: 2; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; font-family: var(--wp-serif); font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg,var(--wp-gold2),var(--wp-gold)); border-bottom-right-radius: 12px; }
.wp-hrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wp-hrow-name { font-family: var(--wp-sans); font-size: 14.5px; font-weight: 600; line-height: 1.45; margin: 0 28px 3px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wp-hrow-desc { font-size: 12px; color: var(--wp-ink3); line-height: 1.6; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.wp-hrow-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.wp-hrow-foot > div { min-width: 0; }
.wp-hrow-foot .wp-btn { position: relative; z-index: 2; padding: 8px 16px; flex: none; }
.wp-hrow-price { font-family: var(--wp-sans); font-variant-numeric: normal; color: var(--wp-red); font-size: 16px; font-weight: 600; line-height: 1.45; letter-spacing: normal; overflow-wrap: anywhere; }
.wp-hrow-price del { color: #B0A391; font-size: 11.5px; }
.wp-hrow-price ins { text-decoration: none; background: none; }
.wp-hrow-sold { font-size: 11px; color: var(--wp-ink3); margin-top: 3px; }
.wp-hrow-share { position: absolute; right: 10px; top: 10px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; background: rgba(250,246,239,.92); border: 1px solid var(--wp-line); display: grid; place-items: center; }
.wp-hrow-share svg { width: 16px; height: 16px; color: var(--wp-ink2); }
.wp-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wp-story-card { background: var(--wp-paper); border: 1px solid var(--wp-line2); border-radius: var(--wp-r-m); padding: 13px 15px; }
.wp-story-card b { font-family: var(--wp-serif); font-size: 14px; color: var(--wp-gold); display: block; margin-bottom: 4px; }
.wp-story-card span { font-size: 11.8px; color: var(--wp-ink3); line-height: 1.6; }
.wp-review-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.wp-home-reviews .wp-review-card { flex: none; width: 250px; scroll-snap-align: start; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.wp-review-top, .wp-review-who { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.wp-home-reviews .wp-review-text { margin: 0; }
.wp-home-reviews .wp-review-avatar { position: relative; width: 30px; height: 30px; }
.wp-home-reviews .wp-review-avatar-ph { font-size: 14px; }
.wp-home-reviews .wp-review-avatar-backup { display: none; }
.wp-home-reviews .wp-img-failed .wp-review-avatar-backup { display: grid; }
.wp-home-reviews .wp-review-name { font-size: 12px; color: var(--wp-ink2); }
.wp-home-reviews .wp-review-tag { font-size: 10.5px; padding: 2px 9px; }
.wp-footer-brand img.wp-source-logo { width: auto; height: 34px; max-width: 80px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px 7px; }
.wp-single-gallery .woocommerce-product-gallery__image,
.wp-single-gallery .woocommerce-product-gallery__image--placeholder { aspect-ratio: 16 / 10; }
@media (min-width:760px) {
  .wp-container { padding-left: 22px; padding-right: 22px; }
  .wp-home .wp-slide-title { font-size: 23px; }
  .wp-home-cat-grid { max-width: 640px; }
  .wp-hot-list { gap: 14px; }
  .wp-hrow-img { width: 150px; height: 150px; }
  .wp-home-reviews .wp-review-card { width: 290px; }
  .wp-single-grid { grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
  .wp-single-gallery { position: sticky; top: 70px; }
  .admin-bar .wp-single-gallery { top: 102px; }
  .wp-single-gallery .woocommerce-product-gallery__image,
  .wp-single-gallery .woocommerce-product-gallery__image--placeholder { aspect-ratio: 1; }
}
@media screen {
  .wp-tabbar { display: block; }
  body.has-tabbar { padding-bottom: calc(var(--wp-tabbar-h) + 24px + env(safe-area-inset-bottom)); }
  .wp-toast { bottom: calc(var(--wp-tabbar-h) + 26px); }
}
/* ========== SECTION: 1.1.3 core storefront layout ========== */
/* An old child template must not bring the removed announcement feature back. */
.wp-topbar, .wp-marquee, .js-wp-marquee { display: none !important; }
.wp-source-header .wp-header-acts { min-width: 0; }
@media (max-width: 759px) {
  .wp-source-header { gap: 8px; min-height: 64px; }
  .wp-brand-lockup { gap: 8px; }
  .wp-source-header .wp-source-brand b { font-size: 18px; line-height: 1.25; }
  .wp-source-header .wp-logo img { height: 48px; max-height: 48px; max-width: 72px; object-fit: contain; }
  .wp-source-header .wp-logo-mark { width: 48px; height: 48px; }
  .wp-source-header .wp-logo-mark svg { width: 28px; height: 28px; }
  .wp-source-header .wp-header-acts { flex-wrap: wrap; justify-content: flex-end; max-width: 128px; }
}
@media (max-width: 359px) {
  .wp-source-header { gap: 6px; }
  .wp-brand-lockup { gap: 6px; }
  .wp-source-header .wp-logo img { max-width: 60px; }
  .wp-source-header .wp-source-brand b { font-size: 17px; }
}
/* Core footer layout: each semantic pair has its own two-column row. */
.wp-footer--compact .wp-footer-grid--compact {
  grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr);
  gap: 24px;
}
.wp-footer--compact .wp-footer-links {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wp-footer--compact .wp-footer-link-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; align-items: start; min-width: 0; }
.wp-footer--compact .wp-footer-col { min-width: 0; }
.wp-footer--compact .wp-footer-col h4 a { font: inherit; color: inherit; letter-spacing: inherit; }
.wp-footer--compact .wp-company-row > span,
.wp-footer--compact .wp-company-row > a { min-width: 0; overflow-wrap: anywhere; }
.wp-footer--compact .wp-company-info:empty { display: none; }
/* Also cover legacy directory widgets rendered by another block wrapper. */
.wp-footer--compact .widget_archive,
.wp-footer--compact .widget_archives,
.wp-footer--compact .widget_categories { display: none; }

@media (max-width: 899px) {
  /* 1.1.3: brand above two fixed pairs, including on narrow phones. */
  .wp-footer--compact { padding-top: 10px; margin-top: 10px; font-size: 12px; line-height: 1.45; }
  .wp-footer--compact .wp-footer-grid--compact { display: block; padding-bottom: 8px; }
  .wp-footer--compact .wp-footer-brand-block { margin-bottom: 8px; }
  .wp-footer--compact .wp-footer-brand { gap: 8px; margin-bottom: 0; }
  .wp-footer--compact .wp-footer-brand b { font-size: 14px; line-height: 1.4; }
  .wp-footer--compact .wp-footer-brand img.custom-logo,
  .wp-footer--compact .wp-footer-brand img.wp-source-logo { width: auto; height: auto; max-height: 26px; max-width: 62px; object-fit: contain; }
  .wp-footer--compact .wp-footer-brand .wp-logo-mark { width: 26px; height: 26px; }
  /* Stored company text remains in the desktop footer and the Customizer. */
  .wp-footer--compact .wp-footer-about,
  .wp-footer--compact .wp-footer-certs,
  .wp-footer--compact .wp-footer-social { display: none; }
  .wp-footer--compact .wp-footer-links { gap: 8px; }
  .wp-footer--compact .wp-footer-link-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
  .wp-footer--compact .wp-footer-col h4 { font-size: 13px; line-height: 1.4; margin-bottom: 4px; padding-bottom: 0; border-bottom: 0; letter-spacing: .3px; }
  /* Size the line box itself, so the larger Thai body font cannot inflate each row. */
  .wp-footer--compact .wp-footer-col li { margin: 0; font-size: 12px; line-height: 1.5; }
  .wp-footer--compact .wp-footer-col a,
  .wp-footer--compact .wp-footer-col span { font-size: 12px; line-height: 1.5; }
  .wp-footer--compact .wp-footer-col h4 a { font: inherit; }
  .wp-footer--compact .wp-footer-col li > a,
  .wp-footer--compact .wp-footer-col li > span { display: block; min-height: 24px; padding: 3px 0; overflow-wrap: anywhere; }
  .wp-footer--compact .wp-company-info { display: grid; gap: 3px; }
  .wp-footer--compact .wp-company-row { margin: 0; gap: 6px; font-size: 12px; line-height: 1.5; }
  .wp-footer--compact .wp-company-row > a { display: block; min-height: 24px; padding: 3px 0; }
  .wp-footer--compact .wp-company-row svg { width: 12px; height: 12px; margin-top: 2px; flex: none; }
  .wp-footer--compact .wp-company-row--address,
  .wp-footer--compact .wp-company-row--hours,
  .wp-footer--compact .wp-company-row--regno { display: none; }
  .wp-footer--compact .wp-footer-menu { padding-bottom: 6px; font-size: 12px; }
  .wp-footer--compact .wp-footer-menu ul { gap: 5px 14px; }
  .wp-footer--compact .wp-footer-bottom { display: block; padding: 8px 0; }
  .wp-footer--compact .wp-footer-copy { display: block; text-align: left; font-size: 10.5px; line-height: 1.5; margin: 0; }
  .wp-footer--compact .wp-footer-disc { max-width: none; text-align: left; font-size: 10.5px; line-height: 1.5; margin: 4px 0 0; }
  .wp-footer--compact .wp-footer-widgets { padding-top: 8px; }
  .wp-footer--compact .wp-footer-widget { margin-bottom: 8px; }
}

/* 1.1.21 selected cart, address book and six account entrances. */
.wpt-cart-check{display:flex;align-items:center;flex:0 0 22px}.wpt-cart-check input,.wpt-cart-all input{width:19px;height:19px;accent-color:var(--wp-gold)}
.wpt-cart-all{display:flex;align-items:center;gap:8px;margin:8px 0 16px}.wpt-full-cart .wp-dr-body{max-height:none;padding:12px}.wpt-full-cart .wp-dr-foot{padding:16px}
.wpt-address-card{padding:16px 0;border-bottom:1px solid #e5dfd5;overflow-wrap:anywhere}.wpt-address-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.wpt-address-book input,.wpt-address-book select{max-width:100%;width:100%;padding:10px}.wp-original-account .wp-order-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.wp-account-overview{background-position:center}.wpt-full-cart .wp-cart-item{min-width:0}
@media(max-width:600px){.wp-original-account .wp-order-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wpt-full-cart .wp-dr-body{padding:4px}.wpt-address-actions .wp-btn{padding:8px 12px}}

/* Nextend Google link: retain existing Wellness Power social-button appearance. */
.wp-social-grid a.wp-social-nextend { text-decoration: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }


/* ========== 1.1.27 UI fine tuning: auth inputs / social grid / lang switcher ========== */
/* 1) Login & register fields: keep border stable on tap, no focus frame or glow. */
body.wellness-auth-screen .wp-field input:focus,
body.wellness-auth-screen .wp-field select:focus,
body.wellness-auth-screen .wp-field textarea:focus,
body.wellness-auth-screen .wp-field input:focus-visible,
body.wellness-auth-screen .wp-field select:focus-visible,
body.wellness-auth-screen .wp-field textarea:focus-visible {
  border-color: var(--wp-line);
  box-shadow: none;
  outline: none;
}
body.wellness-auth-screen .wp-phone-field:focus-within,
body.wellness-auth-screen .wp-input-control:focus-within,
body.wellness-auth-screen .wp-code-field:focus-within {
  border-color: var(--wp-line);
  box-shadow: none;
  outline: none;
}
body.wellness-auth-screen .wp-phone-field input,
body.wellness-auth-screen .wp-code-field input,
body.wellness-auth-screen .wp-input-control input {
  box-shadow: none !important;
  outline: none !important;
}
body.wellness-auth-screen .wp-input-control button:focus-visible,
body.wellness-auth-screen .wp-send-code:focus-visible,
body.wellness-auth-screen .wp-social:focus-visible,
body.wellness-auth-screen .wp-lang-switcher .wp-lang-btn:focus-visible,
body.wellness-auth-screen .wp-lang-item:focus-visible {
  outline: none;
  box-shadow: none;
}

/* 2) Third-party login: 2 rows x 3 columns, larger icons, no boxed cards. */
body.wellness-auth-screen .wp-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
  align-items: start;
}
body.wellness-auth-screen .wp-social,
body.wellness-auth-screen .wp-social-grid a.wp-social-nextend {
  min-height: 0;
  padding: 2px 4px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--wp-ink);
  transform: none !important;
}
body.wellness-auth-screen .wp-social:hover,
body.wellness-auth-screen .wp-social-grid a.wp-social-nextend:hover {
  border: 0 !important;
  background: transparent !important;
  color: var(--wp-gold);
}
body.wellness-auth-screen .wp-social svg,
body.wellness-auth-screen .wp-social-grid a.wp-social-nextend svg {
  width: 28px;
  height: 28px;
}
body.wellness-auth-screen .wp-social span,
body.wellness-auth-screen .wp-social-grid a.wp-social-nextend span {
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}
body.wellness-auth-screen .wp-social small { display: none; }

/* 3) Language button: dark capsule button + richer dropdown list. */
body.wellness-auth-screen .wp-auth-language { max-width: none; }
.wp-lang-switcher { position: relative; }
.wp-lang-switcher .wp-lang-btn {
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: #1e1e1f;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.wp-lang-switcher .wp-lang-btn:hover { background: #242425; }
.wp-lang-switcher .wp-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.wp-lang-switcher .wp-lang-cur {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: .02em;
}
.wp-lang-switcher .wp-lang-btn .wp-lang-caret {
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,.88);
}
.wp-lang-menu {
  min-width: 240px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15,23,42,.15);
}
.wp-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--wp-ink);
}
.wp-lang-item:hover { background: #f5f5f4; color: var(--wp-ink); }
.wp-lang-item.is-active {
  background: #f5f5f4;
  color: var(--wp-ink);
  font-weight: 600;
}
.wp-lang-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.wp-lang-item-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
  flex: none;
}
.wp-lang-item-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}
.wp-lang-item-native {
  font-size: 15px;
  line-height: 1.25;
  color: #111827;
}
.wp-lang-item-english {
  font-size: 14px;
  line-height: 1.25;
  color: #8b8b8b;
}
.wp-lang-check svg { width: 16px; height: 16px; color: #111827; }

@media (max-width: 600px) {
  body.wellness-auth-screen .wp-social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
  }
  body.wellness-auth-screen .wp-social svg,
  body.wellness-auth-screen .wp-social-grid a.wp-social-nextend svg {
    width: 30px;
    height: 30px;
  }
  body.wellness-auth-screen .wp-social span,
  body.wellness-auth-screen .wp-social-grid a.wp-social-nextend span {
    font-size: 12px;
  }
  .wp-lang-switcher .wp-lang-btn {
    height: 40px;
    padding: 0 12px;
  }
  .wp-lang-menu {
    right: 0;
    min-width: min(260px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }
  .wp-lang-item-copy { display: grid; gap: 2px; }
  .wp-lang-item-native { font-size: 14px; }
  .wp-lang-item-english { font-size: 12px; }
}

/* 1.1.27 language button refinement (2026-10-26): light desktop background,
   dark legible mobile label. Applies on the auth and general page headers. */
body .wp-lang-switcher .wp-lang-btn.wp-lang-btn--pill,
body .wp-auth-card .wp-auth-hero .wp-lang-switcher .wp-lang-btn.wp-lang-btn--pill {
  background: #f6eedf;
  border: 1px solid #d8c49d;
  color: #241e18;
  box-shadow: 0 2px 6px rgba(80, 58, 29, .07);
}
body .wp-lang-switcher .wp-lang-btn.wp-lang-btn--pill:hover,
body .wp-auth-card .wp-auth-hero .wp-lang-switcher .wp-lang-btn.wp-lang-btn--pill:hover {
  background: #f2e5cd;
}
body .wp-lang-switcher .wp-lang-btn .wp-lang-cur,
body .wp-auth-card .wp-auth-hero .wp-lang-switcher .wp-lang-btn .wp-lang-cur {
  color: #241e18;
}
body .wp-lang-switcher .wp-lang-btn .wp-lang-caret,
body .wp-auth-card .wp-auth-hero .wp-lang-switcher .wp-lang-btn .wp-lang-caret {
  color: #241e18;
}
@media (max-width: 600px) {
  body .wp-lang-switcher .wp-lang-btn .wp-lang-cur,
  body .wp-auth-card .wp-auth-hero .wp-lang-switcher .wp-lang-btn .wp-lang-cur {
    color: #171717;
  }
}


/* ========== 1.1.27 auth mobile polish v2 ========== */
/* Keep auth fields visually unchanged on focus/tap, especially on mobile Safari. */
body.wellness-auth-screen .wp-field input:focus,
body.wellness-auth-screen .wp-field input:active,
body.wellness-auth-screen .wp-field select:focus,
body.wellness-auth-screen .wp-field select:active,
body.wellness-auth-screen .wp-field textarea:focus,
body.wellness-auth-screen .wp-field textarea:active,
body.wellness-auth-screen .wp-field input:focus-visible,
body.wellness-auth-screen .wp-field select:focus-visible,
body.wellness-auth-screen .wp-field textarea:focus-visible,
body.wellness-auth-screen .wp-phone-field:focus-within,
body.wellness-auth-screen .wp-code-field:focus-within,
body.wellness-auth-screen .wp-input-control:focus-within,
body.wellness-auth-screen .wp-phone-field input:focus,
body.wellness-auth-screen .wp-code-field input:focus,
body.wellness-auth-screen .wp-input-control input:focus,
body.wellness-auth-screen .wp-phone-field input:active,
body.wellness-auth-screen .wp-code-field input:active,
body.wellness-auth-screen .wp-input-control input:active {
  border-color: var(--wp-line) !important;
  border-width: 1px !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-box-shadow: none !important;
}
body.wellness-auth-screen .wp-phone-field,
body.wellness-auth-screen .wp-code-field,
body.wellness-auth-screen .wp-input-control,
body.wellness-auth-screen .wp-field input,
body.wellness-auth-screen .wp-field select,
body.wellness-auth-screen .wp-field textarea {
  transition: none !important;
}
body.wellness-auth-screen .wp-phone-field,
body.wellness-auth-screen .wp-input-control,
body.wellness-auth-screen .wp-code-field {
  box-shadow: none !important;
}

@media (max-width: 600px) {
  /* Wider language switch button on mobile auth pages */
  .wellness-auth-screen .wp-auth-language .wp-lang-btn {
    min-width: 104px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    justify-content: center;
    gap: 8px;
  }
  .wellness-auth-screen .wp-auth-language .wp-lang-cur {
    font-size: 14px;
  }
}

/* Three support channels on one row, including mobile. */
.wp-agent-actions { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 10px; }
.wp-agent-actions .wp-agent-contact { min-width: 0; width: 100%; max-width: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; text-align: center; }
.wp-agent-actions .wp-agent-contact.is-zalo { border-color: rgba(0,104,255,.45); }
@media (max-width: 600px) { .wp-agent-actions { gap: 6px; } .wp-agent-actions .wp-agent-contact { padding: 10px 3px; font-size: 12px; gap: 4px; } .wp-agent-actions .wp-agent-contact svg { width: 18px; height: 18px; } }

/* 1.1.27 Zalo visible even before its optional contact URL is configured. */
.wp-fab-menu .wp-fab-link.is-unconfigured,
.wp-agent-actions .wp-agent-contact.is-unconfigured { opacity: .52; cursor: not-allowed; text-decoration: none; pointer-events: none; }
.wp-agent-actions { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; }
.wp-agent-actions .wp-agent-contact { min-width: 0; max-width: none; width: 100%; padding: 12px 4px; text-align: center; white-space: nowrap; }
@media (max-width: 600px) { .wp-agent-actions .wp-agent-contact { font-size: 12px; gap: 4px; padding: 10px 2px; } .wp-agent-actions .wp-agent-contact svg { width: 17px; height: 17px; } }

/* 1.1.27 support, edge-to-edge details and fullscreen product image */
.wp-fab { display: flex !important; visibility: visible !important; opacity: 1 !important; }
.wp-fab-btn { display: grid !important; visibility: visible !important; opacity: 1 !important; }
.wp-fab-menu .is-unconfigured { opacity: .55; cursor: default; pointer-events: none; }
.wp-agent-actions { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 7px !important; }
.wp-agent-actions .wp-agent-contact { min-width: 0 !important; width: 100% !important; padding: 11px 3px !important; white-space: nowrap; font-size: clamp(10px,2.7vw,13px); }
.wp-agent-actions .wp-agent-contact svg { width: 18px; height: 18px; flex: none; }
@media(max-width:767px) {
 body.single-product .wp-product-detail .wp-product-tabs { margin-left: -10px; margin-right: -10px; width: calc(100% + 20px); }
 body.single-product .wp-product-detail .woocommerce-tabs .panel { width:100%; padding: 0 12px !important; }
 body.single-product .wp-product-detail .woocommerce-tabs .panel img,
 body.single-product .wp-product-detail .woocommerce-tabs .panel iframe { max-width:100%; height:auto; }
 body.single-product .wp-product-detail .woocommerce-tabs .panel p { font-size: 15px; line-height:1.85; }
}
.wp-product-zoom[hidden] { display:none !important; }
.wp-product-zoom { position:fixed; inset:0; z-index:100000; background:#111; color:#fff; display:flex; flex-direction:column; padding-top:env(safe-area-inset-top); padding-bottom:env(safe-area-inset-bottom); }
.wp-product-zoom-back { position:absolute; top:calc(14px + env(safe-area-inset-top)); left:16px; z-index:2; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.17); color:white; font-size:29px; display:grid; place-items:center; }
.wp-product-zoom-counter { text-align:right; padding:21px 22px 10px; font-size:13px; color:#eee; }
.wp-product-zoom-stage { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; padding:12px; }
.wp-product-zoom-stage img { display:block; max-width:100%; max-height:100%; object-fit:contain; }
.wp-product-zoom-controls { display:flex; justify-content:space-between; position:absolute; left:0; right:0; top:48%; pointer-events:none; }
.wp-product-zoom-controls button { pointer-events:auto; width:42px; height:58px; font-size:22px; color:#fff; background:rgba(0,0,0,.2); }
.wp-product-zoom-footer { display:grid; grid-template-columns:minmax(75px,.9fr) 1fr 1fr; gap:7px; align-items:center; padding:12px 12px 16px; background:#1c1c1c; }
.wp-product-zoom-price { font-weight:700; font-size:20px; min-width:0; }
.wp-product-zoom-buy { border:0; border-radius:999px; padding:13px 4px; font-weight:700; font-size:13px; color:#fff; }
.wp-product-zoom-buy.is-add { background:#e9a936; }
.wp-product-zoom-buy.is-now { background:#30a653; }
.wp-product-zoom-buy:disabled { opacity:.45; }
body.wp-zoom-open { overflow:hidden !important; }

/* 1.1.27 targeted regression fixes: support, account, agents, reviews, full-width description. */
body.home .wp-fab { position:fixed !important; display:flex !important; right:18px !important; bottom:calc(var(--wp-tabbar-h, 65px) + 20px) !important; z-index:9998 !important; opacity:1 !important; visibility:visible !important; }
body.home .wp-fab-btn { display:grid !important; opacity:1 !important; visibility:visible !important; }
@media(max-width:600px) {
 body.wellness-account #wp-main, body.wellness-account .wp-container, body.wellness-account .wp-original-account, body.wellness-account .woocommerce-MyAccount-content { width:100% !important; max-width:100% !important; min-width:0 !important; }
 body.wellness-account .wp-original-account { margin:0 !important; transform:none !important; zoom:1 !important; }
 .wp-agent-actions { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:8px !important; }
}
.wp-agent-actions .wp-agent-contact { display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:center !important; white-space:normal !important; gap:7px !important; padding:12px 2px !important; line-height:1.25 !important; }
.wp-agent-actions .wp-agent-contact svg { width:28px !important; height:28px !important; flex:none !important; }
.wp-agent-actions .wp-agent-contact span { display:block; font-size:12px; text-align:center; white-space:nowrap; }
.wp-product-review-preview { margin:22px 0 12px; padding:17px 15px; background:#fff; border-top:1px solid #ebe4d7; border-bottom:1px solid #ebe4d7; }
.wp-product-review-preview-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.wp-product-review-preview-head h2 { margin:0; font-size:17px; font-weight:700; }
.wp-product-review-preview-head a { font-size:13px; color:#96743e; text-decoration:none; }
.wp-product-review-preview-body { margin-top:13px; }
.wp-product-review-preview-meta { display:flex; gap:9px; align-items:center; font-size:13px; }
.wp-product-review-avatar { border-radius:50%; }
.wp-product-review-stars { margin-left:auto; }
.wp-product-review-preview-body p { margin:11px 0 0; font-size:14px; line-height:1.75; }
.wp-product-review-empty { font-size:13px; color:#877b6b; }
@media(max-width:767px) {
 body.single-product .wp-single.wp-single--reference { width:100% !important; max-width:none !important; padding-left:0 !important; padding-right:0 !important; }
 body.single-product .wp-single-grid, body.single-product .wp-product-review-preview, body.single-product .wp-product-recommendations { margin-left:14px; margin-right:14px; }
 body.single-product .wp-product-tabs { width:100% !important; max-width:100% !important; margin-left:0 !important; margin-right:0 !important; }
 body.single-product .wp-product-tabs .woocommerce-tabs, body.single-product .woocommerce-tabs .panel, body.single-product .wp-product-description-intro { width:100% !important; max-width:none !important; margin-left:0 !important; margin-right:0 !important; padding-left:0 !important; padding-right:0 !important; }
 body.single-product .woocommerce-tabs .panel img, body.single-product .woocommerce-tabs .panel figure img, body.single-product .woocommerce-tabs .panel .wp-block-image img { display:block !important; width:100% !important; max-width:100% !important; height:auto !important; margin-left:0 !important; margin-right:0 !important; object-fit:contain; }
 body.single-product .woocommerce-tabs .panel figure, body.single-product .woocommerce-tabs .panel .wp-block-image { width:100% !important; max-width:none !important; margin-left:0 !important; margin-right:0 !important; }
 body.single-product .woocommerce-tabs .panel > :not(figure):not(.wp-block-image) { padding-left:14px; padding-right:14px; }
}

/* 1.1.27 final account width and avatar editor */
.wp-avatar-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.wp-avatar-upload-label{cursor:pointer}
.wp-avatar-upload-label .wp-info-row-ico img{width:35px;height:35px;object-fit:cover;border-radius:50%}
body.wellness-account-home #wp-main{width:100%;max-width:none;min-width:0}
body.wellness-account-home .wp-original-account{width:100%;max-width:720px;margin-inline:auto;transform:none;zoom:normal}
@media(max-width:600px){body.wellness-account-home #wp-main,body.wellness-account-home .wp-container{padding-inline:0!important;width:100%!important;max-width:100%!important}body.wellness-account-home .wp-original-account{width:100%!important;max-width:100%!important;padding:0 16px!important;margin:0 auto!important;box-sizing:border-box}body.wellness-account-home .wp-account-overview,body.wellness-account-home .wp-account-menu{width:100%;box-sizing:border-box}body.wellness-account-home .wp-original-account .wp-order-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
