/* =====================================================================
   Youzhen Skin — Skincare & Cosmetic Store
   Design system + components (shared by static preview & WP theme)
   ===================================================================== */

:root {
  /* Brand palette — natural, clean, luxe */
  --sage:        #7C9082;
  --sage-dark:   #5E7268;
  --sage-soft:   #E7EDE9;
  --cream:       #F0E9DE;
  --cream-2:     #FBF9F5;
  --blush:       #E8C9C1;
  --blush-soft:  #F5E4DF;
  --ink:         #2B2B28;
  --ink-soft:    #5C5C55;
  --line:        #E5E0D8;
  --gold:        #C2774E;   /* sale / accent */
  --gold-soft:   #EAD9C9;
  --white:       #FFFFFF;

  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   28px;
  --shadow:      0 10px 30px rgba(43,43,40,.08);
  --shadow-sm:   0 4px 14px rgba(43,43,40,.06);
  --shadow-lg:   0 24px 60px rgba(43,43,40,.14);

  --maxw:        1200px;
  --maxw-narrow: 920px;

  --ff-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --t:  .3s cubic-bezier(.2,.7,.3,1);
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }

/* WordPress / WooCommerce accessibility helper — hide visually but keep for screen readers */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
h1,h2,h3,h4,h5 { font-family: var(--ff-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 1em; color: var(--ink-soft); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: var(--maxw-narrow); }
.section { padding: clamp(66px, 9vw, 132px) 0; }
/* 节奏感：在色块屏之间加一道极细分隔线，强化换屏的呼吸 */
.section.bg-cream, .section.bg-sage, .section.bg-ink { border-top: 1px solid var(--line); }
.bg-cream { background: var(--cream); }
.bg-sage  { background: var(--sage-soft); }
.bg-ink   { background: var(--ink); color: #fff; }
.bg-ink h1,.bg-ink h2,.bg-ink h3,.bg-ink p { color:#fff; }
.text-center { text-align: center; }
.eyebrow { font-family: var(--ff-head); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600; color: var(--sage); margin-bottom: .9rem; }
.lead { font-size: 1.1rem; max-width: 60ch; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
  padding: .85em 1.7em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: var(--t); white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.15); color:#fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background:#fff; color: var(--ink); }
.btn-block { display:flex; width:100%; justify-content:center; }

/* ---------- Header (高级简约 · 纯透明) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  backdrop-filter: saturate(150%) blur(6px);
  -webkit-backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid rgba(43,43,40,.07);
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
}
.site-header.scrolled {
  box-shadow: 0 12px 30px -24px rgba(43,43,40,.4);
  border-bottom-color: rgba(43,43,40,.1);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display:flex; align-items:center; gap:11px; font-family: var(--ff-head); font-weight: 600; font-size: 1.16rem; letter-spacing: .05em; color: var(--ink); -webkit-font-smoothing: antialiased; text-shadow: 0 1px 12px rgba(255,255,255,.5); }
.brand .logo-mark { width:32px; height:32px; opacity:.92; }
.brand small { display:block; font-size:.56rem; letter-spacing:.44em; color: var(--sage); font-weight:600; text-transform:uppercase; }
.nav-links { display:flex; align-items:center; gap: 40px; list-style:none; margin:0; padding:0; }
.nav-links a {
  font-family: var(--ff-head); font-weight:500; font-size:.8rem;
  text-transform: uppercase; letter-spacing: .2em;
  color: rgba(43,43,40,.74); position:relative; padding: 8px 0;
  transition: color var(--t); -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 10px rgba(255,255,255,.5);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::before {
  content:""; position:absolute; left:50%; top:-9px; transform:translateX(-50%);
  width:5px; height:5px; border-radius:50%; background: var(--gold);
  opacity:0; transition: opacity var(--t);
}
.nav-links a:hover::before { opacity:.45; }
.nav-links a.active,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a { color: var(--ink); }
.nav-links a.active::before,
.nav-links li.current-menu-item > a::before,
.nav-links li.current_page_item > a::before { opacity:1; }
.nav-links a::after { content:""; position:absolute; left:50%; bottom:0; transform: translateX(-50%); width:0; height:1.5px; background: var(--sage); transition: width var(--t); }
.nav-links a:hover::after { width:18px; }
.nav-actions { display:flex; align-items:center; gap:14px; }
.icon-btn { position:relative; background:none; border:none; cursor:pointer; color: rgba(43,43,40,.78); padding:7px; border-radius:50%; display:grid; place-items:center; transition: color var(--t), background var(--t); }
.icon-btn:hover { color: var(--ink); background: rgba(43,43,40,.05); }
.icon-btn svg { width:21px; height:21px; filter: drop-shadow(0 1px 6px rgba(255,255,255,.5)); }
.cart-count { position:absolute; top:-2px; right:-2px; background: var(--gold); color:#fff; font-size:.62rem; font-weight:700; min-width:17px; height:17px; border-radius:99px; display:grid; place-items:center; padding:0 4px; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.menu-toggle { display:none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow:hidden; }
.hero-inner {
  display:grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items:center;
  padding: clamp(40px,7vw,90px) 0 clamp(50px,7vw,90px);
}
.hero h1 { margin-bottom: .5em; }
.hero .lead { margin-bottom: 1.8em; }
.hero-cta { display:flex; gap:14px; flex-wrap:wrap; }
.hero-visual { position: relative; }
.hero-visual .blob { position:absolute; inset: -6% -8% -6% -8%; background: radial-gradient(circle at 40% 35%, var(--sage-soft), transparent 70%); border-radius: 50%; z-index:0; }
.hero-card { position: relative; z-index:1; background:#fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px; display:flex; gap:18px; align-items:center; }
.hero-card + .hero-card { margin-top:18px; }
.hero-card .hc-img { width:84px; height:84px; border-radius:14px; object-fit:cover; background: var(--sage-soft); flex:none; }
.hero-card h4 { margin:0 0 4px; font-size:1.02rem; }
.hero-card .price { color: var(--gold); font-weight:700; font-family:var(--ff-head); }
.hero-stats { display:flex; gap: 34px; margin-top: 34px; }
.hero-stats .num { font-family:var(--ff-head); font-size:1.9rem; font-weight:700; color:var(--sage-dark); }
.hero-stats .lbl { font-size:.85rem; color: var(--ink-soft); }

/* ---------- Features (Why choose us) ---------- */
.features { display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.feature { text-align:center; padding: 30px 22px; background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: var(--t); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .ic { width:58px; height:58px; border-radius:50%; background: var(--sage-soft); display:grid; place-items:center; margin:0 auto 16px; color: var(--sage-dark); }
.feature .ic svg { width:28px; height:28px; }
.feature h4 { margin:0 0 6px; font-size:1.05rem; }
.feature p { margin:0; font-size:.92rem; }

/* ---- 滚动入场动画：为什么选择 卡片错落淡入 ---- */
.no-js .reveal { opacity: 1 !important; transform: none !important; }
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.features .feature.reveal { transition-delay: calc(var(--i, 0) * .1s); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Section heading ---------- */
.sec-head { max-width: 640px; margin: 0 auto 48px; text-align:center; }
.sec-head .eyebrow { display:block; }
.sec-head p { margin-top:.4em; }

/* ---------- Product grid ---------- */
.product-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.product-card { background:#fff; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); transition: var(--t); display:flex; flex-direction:column; position:relative; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { position:relative; aspect-ratio: 1/1; background: linear-gradient(160deg, var(--cream), var(--sage-soft)); display:grid; place-items:center; overflow:hidden; }
.product-media img { width:72%; height:auto; transition: transform var(--t); }
.product-card:hover .product-media img { transform: scale(1.07); }
.badge { position:absolute; top:14px; left:14px; background: var(--gold); color:#fff; font-family:var(--ff-head); font-weight:700; font-size:.72rem; padding:5px 11px; border-radius:99px; letter-spacing:.04em; }
.badge.b-new { background: var(--sage); }
.product-body { padding: 18px 18px 20px; display:flex; flex-direction:column; gap:6px; flex:1; }
.product-cat { font-size:.74rem; text-transform:uppercase; letter-spacing:.14em; color: var(--sage); font-weight:600; }
.product-title { font-size:1.02rem; font-weight:600; margin:0; }
.product-title a:hover { color: var(--sage); }
.product-price { font-family:var(--ff-head); font-weight:700; font-size:1.05rem; margin-top:auto; }
.product-price .old { color: var(--ink-soft); text-decoration: line-through; font-weight:500; font-size:.86rem; margin-right:8px; }
.product-price .now { color: var(--gold); }
.add-cart { margin-top:12px; }
.add-cart .btn { width:100%; justify-content:center; font-size:.9rem; padding:.7em 1em; }

/* ---------- Concern cards ---------- */
.concern-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.concern { position:relative; border-radius: var(--radius-lg); overflow:hidden; min-height: 280px; display:flex; align-items:flex-end; padding: 26px; color:#fff; transition: var(--t); }
.concern::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(43,43,40,0) 30%, rgba(43,43,40,.78) 100%); z-index:0; }
.concern > * { position:relative; z-index:1; }
.concern .c-emoji { font-size:2rem; margin-bottom:8px; }
.concern h3 { color:#fff; margin:0 0 4px; }
.concern p { color: rgba(255,255,255,.85); margin:0 0 14px; font-size:.9rem; }
.concern:hover { transform: translateY(-6px); }
.concern.c1 { background: linear-gradient(150deg,#9DB3A4,#6E8B7A); }
.concern.c2 { background: linear-gradient(150deg,#E0C3A8,#C99A6F); }
.concern.c3 { background: linear-gradient(150deg,#E6C2BC,#C98E86); }
.concern.c4 { background: linear-gradient(150deg,#A9BED0,#7E97AE); }

/* ---------- Collections split ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:center; }
.split.reverse .split-media { order:2; }
.split-media { border-radius: var(--radius-lg); overflow:hidden; background: var(--sage-soft); aspect-ratio: 4/3; display:grid; place-items:center; }
.split-media img { width:78%; }
.split .eyebrow { display:block; }
.split ul { list-style:none; padding:0; margin: 18px 0 24px; }
.split li { display:flex; gap:10px; align-items:flex-start; padding:7px 0; }
.split li svg { width:20px; height:20px; color: var(--sage); flex:none; margin-top:3px; }

/* ---------- Skin quiz / promo band ---------- */
.promo-band { border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--sage), var(--sage-dark)); color:#fff; padding: clamp(40px,6vw,72px); text-align:center; position:relative; overflow:hidden; }
.promo-band::after { content:""; position:absolute; right:-60px; top:-60px; width:240px; height:240px; border-radius:50%; background: rgba(255,255,255,.12); }
.promo-band h2 { color:#fff; }
.promo-band p { color: rgba(255,255,255,.9); max-width:52ch; margin-left:auto; margin-right:auto; }
.promo-band .btn { background:#fff; color: var(--sage-dark); margin-top: 10px; }
.promo-band .btn:hover { background: var(--cream); }

/* ---------- Journal / blog ---------- */
.post-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post-card { background:#fff; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); transition: var(--t); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-media { aspect-ratio: 16/10; background: linear-gradient(150deg, var(--blush-soft), var(--sage-soft)); display:grid; place-items:center; }
.post-media .tag { position:absolute; }
.post-body { padding: 20px 22px 24px; }
.post-meta { font-size:.78rem; color: var(--sage); text-transform:uppercase; letter-spacing:.12em; font-weight:600; margin-bottom:8px; }
.post-body h3 { font-size:1.12rem; margin:0 0 8px; }
.post-body p { font-size:.9rem; margin:0; }
.read-more { display:inline-block; margin-top:12px; font-family:var(--ff-head); font-weight:600; color: var(--sage-dark); font-size:.9rem; }
.read-more::after { content:" →"; }

/* ---------- Testimonials ---------- */
.review-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.review { background:#fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.stars { color: var(--gold); letter-spacing:2px; margin-bottom:10px; }
.review p { font-size:.96rem; color: var(--ink); }
.reviewer { display:flex; align-items:center; gap:12px; margin-top:16px; }
.avatar { width:44px; height:44px; border-radius:50%; display:grid; place-items:center; font-family:var(--ff-head); font-weight:700; color:#fff; flex:none; }
.reviewer .name { font-weight:600; font-family:var(--ff-head); font-size:.95rem; }
.reviewer .role { font-size:.8rem; color: var(--ink-soft); }

/* ---------- Newsletter ---------- */
.newsletter { display:grid; grid-template-columns: 1fr 1fr; gap:40px; align-items:center; background:#fff; border-radius: var(--radius-lg); padding: clamp(34px,5vw,60px); box-shadow: var(--shadow); }
.newsletter h2 { margin-bottom:.3em; }
.news-form { display:flex; gap:10px; margin-top:8px; }
.news-form input { flex:1; padding:.95em 1.2em; border:1.5px solid var(--line); border-radius:99px; font-family:var(--ff-body); font-size:1rem; background: var(--cream-2); }
.news-form input:focus { outline:none; border-color: var(--sage); }
.form-note { font-size:.82rem; color: var(--ink-soft); margin-top:10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 70px 0 30px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color:#fff; font-size:1rem; margin-bottom:18px; }
.site-footer .brand { color:#fff; margin-bottom:14px; }
.site-footer .brand small { color: var(--blush); }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:10px; }
.footer-links a:hover { color:#fff; }
.footer-about p { font-size:.9rem; }
.footer-social { display:flex; gap:12px; margin-top:16px; }
.footer-social a { width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,.1); display:grid; place-items:center; transition: var(--t); }
.footer-social a:hover { background: var(--sage); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:50px; padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.84rem; color: rgba(255,255,255,.6); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--sage-soft); padding: clamp(50px,7vw,90px) 0; text-align:center; }
.page-hero h1 { margin-bottom:.2em; }
.breadcrumb { font-size:.85rem; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--sage); }

/* ---------- Shop / product detail ---------- */
.shop-layout { display:grid; grid-template-columns: 260px 1fr; gap: 40px; align-items:start; }
.shop-sidebar { background:#fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position:sticky; top: 100px; }
.shop-sidebar h4 { font-size:.95rem; margin: 0 0 14px; }
.filter-group { margin-bottom:24px; }
.filter-group ul { list-style:none; padding:0; margin:0; }
.filter-group li { padding:7px 0; font-size:.92rem; }
.filter-group input { margin-right:8px; accent-color: var(--sage); }
.shop-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; flex-wrap:wrap; gap:12px; }
/* ---------- Unified theme-styled <select> dropdowns ----------
   Custom chevron + appearance reset so every select on the site matches the
   form language: cream field, sage focus ring, 12px radius, 1.5px line border. */
select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: .82em 2.9em .82em 1.1em;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background-color: var(--cream-2);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%235C5C55'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05em center;
  background-size: 14px 14px;
  font-family: var(--ff-body);
  font-size: .96rem;
  color: var(--ink);
  line-height: 1.4;
  cursor: pointer;
  transition: var(--t);
}
select:not([multiple]):not([size]):hover { border-color: var(--sage); }
select:not([multiple]):not([size]):focus {
  outline: none;
  border-color: var(--sage);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(124, 144, 130, .15);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%237C9082'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'/%3E%3C/svg%3E");
}
select:not([multiple]):not([size]):disabled {
  background-color: #f4f2ee;
  color: var(--ink-soft);
  cursor: not-allowed;
  opacity: .7;
}
/* Force the custom arrow + right padding where WooCommerce plugin rules set a
   plain padding shorthand and higher specificity (checkout / myaccount / address). */
.woocommerce form .form-row select,
.woocommerce-account .woocommerce-form-row select,
.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper select,
.woocommerce form.checkout .form-row select,
.checkout-form select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-right: 2.9em !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%235C5C55'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1.05em center !important;
  background-size: 14px 14px !important;
}
.woocommerce form .form-row select:focus,
.woocommerce-account .woocommerce-form-row select:focus,
.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper select:focus,
.woocommerce form.checkout .form-row select:focus,
.checkout-form select:focus {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%237C9082'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'/%3E%3C/svg%3E") !important;
}
.pagination { display:flex; gap:8px; justify-content:center; margin-top:50px; }
.pagination a, .pagination span { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:#fff; box-shadow: var(--shadow-sm); font-family:var(--ff-head); font-weight:600; transition: var(--t); }
.pagination a:hover, .pagination .current { background: var(--ink); color:#fff; }

.search-empty { text-align:center; font-size:1.05rem; color: var(--ink-soft); padding: 50px 0; }
.page-hero h1 span { color: var(--gold); }

/* ---------- Privacy Policy / legal document layout ---------- */
.legal-doc { font-size: 1rem; line-height: 1.85; color: var(--ink); }
.legal-doc .legal-updated { color: var(--ink-soft); font-size: .92rem; margin: 0 0 26px; }
.legal-doc .legal-toc { background: var(--sage-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 34px; }
.legal-doc .legal-toc strong { display: block; margin-bottom: 8px; font-family: var(--ff-head); }
.legal-doc .legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.legal-doc .legal-toc li { margin: 4px 0; break-inside: avoid; }
.legal-doc .legal-toc a { color: var(--ink); text-decoration: none; }
.legal-doc .legal-toc a:hover { color: var(--gold); text-decoration: underline; }
.legal-doc h2 { font-family: var(--ff-head); font-size: 1.3rem; line-height: 1.4; margin: 38px 0 12px; scroll-margin-top: 90px; }
.legal-doc h2:first-of-type { margin-top: 6px; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ul { margin: 0 0 16px; padding-left: 22px; }
.legal-doc ul li { margin: 6px 0; }
.legal-doc a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc a:hover { color: var(--ink); }
@media (max-width: 600px) { .legal-doc .legal-toc ol { columns: 1; } }

.product-detail { display:grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items:start; }
.gallery-main { border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--cream), var(--sage-soft)); aspect-ratio: 1/1; display:grid; place-items:center; overflow:hidden; }
.gallery-main img { width:70%; }
.gallery-thumbs { display:flex; gap:12px; margin-top:14px; }
.gallery-thumbs .thumb { width:80px; height:80px; border-radius:12px; background: var(--sage-soft); cursor:pointer; display:grid; place-items:center; border:2px solid transparent; }
.gallery-thumbs .thumb.active { border-color: var(--sage); }
.gallery-thumbs .thumb img { width:64%; }
.pd-title { font-size:2rem; margin-bottom:6px; }
.pd-rate { display:flex; align-items:center; gap:10px; margin-bottom:14px; color: var(--ink-soft); font-size:.9rem; }
.pd-price { font-family:var(--ff-head); font-size:1.8rem; font-weight:700; margin:14px 0; }
.pd-price .old { color: var(--ink-soft); text-decoration:line-through; font-weight:500; font-size:1.1rem; margin-right:10px; }
.pd-price .now { color: var(--gold); }
.pd-desc { margin-bottom:22px; }
.qty-row { display:flex; align-items:center; gap:16px; margin-bottom:22px; }
.qty { display:inline-flex; align-items:center; border:1.5px solid var(--line); border-radius:99px; overflow:hidden; }
.qty button { width:42px; height:46px; background: var(--cream-2); border:none; font-size:1.2rem; cursor:pointer; color: var(--ink); }
.qty input { width:46px; text-align:center; border:none; font-family:var(--ff-head); font-weight:600; font-size:1rem; }
.pd-meta { border-top:1px solid var(--line); margin-top:26px; padding-top:20px; font-size:.9rem; }
.pd-meta div { display:flex; gap:10px; padding:5px 0; }
.pd-meta svg { width:18px; height:18px; color: var(--sage); flex:none; }

/* ---------- About / Contact ---------- */
.about-values { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.value { background:#fff; border-radius: var(--radius); padding:28px; box-shadow: var(--shadow-sm); }
.value h4 { margin:0 0 8px; }
.team-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:24px; }
.member { text-align:center; }
.member .m-photo { aspect-ratio:1/1; border-radius: var(--radius); background: linear-gradient(150deg, var(--blush-soft), var(--sage-soft)); display:grid; place-items:center; margin-bottom:14px; font-family:var(--ff-head); font-weight:700; color: var(--sage-dark); font-size:2rem; }
.member h4 { margin:0 0 2px; font-size:1.02rem; }
.member .role { font-size:.85rem; color: var(--ink-soft); }

.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap:50px; align-items:start; }
.contact-info h3 { margin-top:0; }
.info-item { display:flex; gap:14px; margin-bottom:20px; }
.info-item .ic { width:46px; height:46px; border-radius:12px; background: var(--sage-soft); display:grid; place-items:center; color: var(--sage-dark); flex:none; }
.info-item h4 { margin:0 0 2px; font-size:.98rem; }
.info-item p { margin:0; font-size:.9rem; }
.form-card { background:#fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom:18px; }
.field label { display:block; font-family:var(--ff-head); font-weight:600; font-size:.88rem; margin-bottom:7px; }
.field input, .field textarea { width:100%; padding:.85em 1.1em; border:1.5px solid var(--line); border-radius:12px; font-family:var(--ff-body); font-size:.96rem; background: var(--cream-2); }
.field input:focus, .field textarea:focus { outline:none; border-color: var(--sage); }
.field textarea { min-height:130px; resize:vertical; }

/* ---------- Cart drawer ---------- */
.cart-drawer { position:fixed; top:0; right:0; height:100%; width:380px; max-width:90vw; background:#fff; z-index:100; box-shadow: -10px 0 40px rgba(0,0,0,.18); transform: translateX(100%); transition: transform var(--t); display:flex; flex-direction:column; }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display:flex; justify-content:space-between; align-items:center; padding:22px; border-bottom:1px solid var(--line); }
.cart-head h3 { margin:0; }
.cart-items { flex:1; overflow:auto; padding:18px 22px; }
.cart-item { display:flex; align-items:center; gap:14px; padding:16px 0; border-bottom:1px solid var(--line); }
.cart-item .ci-img { width:64px; height:64px; border-radius:12px; background:var(--sage-soft); flex:none; overflow:hidden; display:grid; place-items:center; }
.cart-item .ci-img img { width:100%; height:100%; object-fit:cover; }
.cart-item .ci-info { flex:1; min-width:0; }
.cart-item h5 { margin:0 0 6px; font-size:.95rem; font-weight:600; line-height:1.3; color:var(--ink); }
.cart-item .ci-price { color:var(--gold); font-weight:700; font-family:var(--ff-head); font-size:.95rem; }
.cart-item .ci-actions { display:inline-flex; align-items:center; gap:6px; margin-top:10px; }
.ci-qty-btn { width:28px; height:28px; border-radius:50%; border:1.5px solid var(--line); background:#fff; color:var(--ink); display:grid; place-items:center; font-size:1rem; line-height:1; cursor:pointer; transition:var(--t); }
.ci-qty-btn:hover { border-color:var(--sage); background:var(--sage-soft); }
.ci-qty-val { min-width:26px; text-align:center; font-weight:600; font-size:.95rem; color:var(--ink); }
.cart-item .ci-remove { flex:none; align-self:flex-start; margin-left:auto; background:none; color:var(--ink-soft); font-size:.8rem; text-decoration:underline; cursor:pointer; transition:var(--t); }
.cart-item .ci-remove:hover { color:var(--gold); }
.cart-foot { padding:22px; border-top:1px solid var(--line); }
.cart-foot .total { display:flex; justify-content:space-between; font-family:var(--ff-head); font-weight:700; font-size:1.1rem; margin-bottom:14px; }
.overlay { position:fixed; inset:0; background: rgba(43,43,40,.45); z-index:90; opacity:0; pointer-events:none; transition: opacity var(--t); }
.overlay.open { opacity:1; pointer-events:auto; }
body.menu-open { overflow:hidden; }

/* ---------- Search modal ---------- */
.search-modal { position:fixed; inset:0; z-index:200; display:none; }
.search-modal.open { display:block; }
.search-overlay { position:absolute; inset:0; background:rgba(43,43,40,.55); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.search-panel { position:absolute; top:22%; left:50%; transform:translate(-50%,-22%); width:min(640px,92vw); background:#fff; border-radius:var(--radius); padding:38px 34px 34px; box-shadow:var(--shadow-lg); animation:searchIn .28s ease; }
@keyframes searchIn { from{opacity:0; transform:translate(-50%,-30%);} to{opacity:1; transform:translate(-50%,-22%);} }
.search-close { position:absolute; top:12px; right:16px; background:none; border:none; font-size:1.8rem; line-height:1; color:var(--ink-soft); cursor:pointer; transition:var(--t); }
.search-close:hover { color:var(--ink); }
.search-form { display:flex; gap:12px; }
.search-form input[type=search] { flex:1; padding:.95em 1.2em; border:1.5px solid var(--line); border-radius:99px; font:inherit; color:var(--ink); background:var(--cream-2); transition:var(--t); }
.search-form input[type=search]:focus { outline:none; border-color:var(--sage); box-shadow:0 0 0 3px rgba(124,144,130,.15); background:#fff; }
.search-form .btn { flex:none; }
@media (max-width:560px){
  .search-panel { padding:34px 22px 28px; }
  .search-form { flex-direction:column; }
  .search-form .btn { width:100%; justify-content:center; }
}

/* ---------- Toast ---------- */
.toast { position:fixed; bottom:26px; left:50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color:#fff; padding:14px 22px; border-radius:99px; box-shadow: var(--shadow-lg); z-index:120; opacity:0; pointer-events:none; transition: var(--t); font-family:var(--ff-head); font-weight:500; }
.toast.show { opacity:1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid, .concern-grid { grid-template-columns: repeat(2,1fr); }
  .post-grid, .review-grid, .team-grid, .about-values { grid-template-columns: repeat(2,1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .hero-inner, .split, .newsletter, .contact-grid, .product-detail { grid-template-columns: 1fr; }
  .split.reverse .split-media { order:0; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position:static; }
}
.mobile-menu { display:none; }
@media (max-width: 760px) {
  .nav-links, .nav-actions .cart-label { display:none; }
  .menu-toggle { display:grid; place-items:center; background:none; border:none; cursor:pointer; }
  .menu-toggle svg { width:26px; height:26px; }
  .mobile-menu { display:block; position:fixed; inset:0 0 0 auto; width:300px; max-width:84vw; max-height:100dvh; background:#fff; z-index:100; transform: translateX(100%); transition: transform var(--t); box-shadow: var(--shadow-lg); padding:80px 28px 28px; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu ul, .mobile-menu .mobile-nav-links { list-style:none; margin:0; padding:0; }
  .mobile-menu li { margin:0; padding:0; }
  .mobile-menu a { display:block; padding:14px 0; font-family:var(--ff-head); font-weight:600; color:var(--ink); border-bottom:1px solid var(--line); }
  .menu-close { display:none; position:fixed; top:14px; right:14px; z-index:130; width:44px; height:44px; border:none; border-radius:50%; background:var(--cream); color:var(--ink); cursor:pointer; place-items:center; box-shadow:var(--shadow-sm); }
  .mobile-menu.open .menu-close { display:grid; }
  .product-grid, .concern-grid, .post-grid, .review-grid, .team-grid, .about-values, .features { grid-template-columns: 1fr; }
  .hero-stats { gap:22px; }
  .news-form { flex-direction:column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- WooCommerce compatibility ---------- */
.woocommerce ul.products { display:grid; grid-template-columns: repeat(4,1fr); gap:26px; padding:0; margin:0 0 40px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display:none; }
.woocommerce ul.products li.product { margin:0; width:100%; float:none; clear:none; }
.woocommerce .product-cat a { color: var(--sage); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:1.02rem; font-weight:600; margin:.2em 0; }
.woocommerce ul.products li.product .price { font-family:var(--ff-head); font-weight:700; font-size:1.05rem; color:var(--gold); margin:.4em 0 0; }
.woocommerce ul.products li.product .price del { color:var(--ink-soft); font-weight:500; font-size:.86rem; }
.woocommerce nav.woocommerce-pagination { margin-top:30px; }
.woocommerce nav.woocommerce-pagination ul { display:flex; gap:8px; justify-content:center; border:none; }
.woocommerce nav.woocommerce-pagination ul li { border:none; }
.woocommerce nav.woocommerce-pagination ul li span, .woocommerce nav.woocommerce-pagination ul li a { width:42px; height:42px; display:grid; place-items:center; background:#fff; border-radius:12px; box-shadow:var(--shadow-sm); font-family:var(--ff-head); font-weight:600; }
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background:var(--ink); color:#fff; }
.woocommerce .button, .woocommerce a.button, .woocommerce button.button { border-radius:999px; font-family:var(--ff-head); font-weight:600; padding:.85em 1.7em; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background:var(--ink); color:#fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background:var(--sage-dark); color:#fff; }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-family:var(--ff-head); font-weight:700; font-size:1.4rem; color:var(--gold); }
.woocommerce div.product .product_title { font-size:2rem; margin-bottom:.2em; }
.woocommerce .quantity .qty { width:64px; padding:.6em; border:1.5px solid var(--line); border-radius:12px; }
.woocommerce-MyAccount-navigation ul { list-style:none; padding:0; }
.woocommerce-MyAccount-navigation li { padding:8px 0; border-bottom:1px solid var(--line); }
.woocommerce form .form-row input, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border:1.5px solid var(--line); border-radius:12px; padding:.8em 1em; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color:var(--sage); }
@media (max-width:1024px){ .woocommerce ul.products { grid-template-columns: repeat(2,1fr); } }
@media (max-width:760px){ .woocommerce ul.products { grid-template-columns: 1fr; } }

/* ============================================================
   Product detail page — reference layout: image left, info right
   ============================================================ */

/* Two-column product page.
   The grid is applied to BOTH containers that can hold the gallery + summary:
   - .youzhen-product-main    -> when this theme's single-product.php override is used
   - .woocommerce div.product -> WooCommerce's DEFAULT single-product markup, which is
     what actually renders on the live site (the override is not always picked up).
   Targeting the always-present .product wrapper makes the side-by-side layout robust
   no matter which template renders — gallery and title stay bound in one view. */
.youzhen-product-main,
.woocommerce div.product {
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 60px);
  align-items:start;
}
/* Explicit placement: gallery in column 1, summary in column 2. Any other direct
   child WooCommerce injects (sale flash, tabs, upsells, related, highlights) is
   forced full-width, so it can never push the summary onto a new row. */
.youzhen-product-main > .woocommerce-product-gallery,
.woocommerce div.product > .woocommerce-product-gallery { grid-column: 1; }
.youzhen-product-main > .summary.entry-summary,
.woocommerce div.product > .summary.entry-summary { grid-column: 2; }
.youzhen-product-main > *:not(.woocommerce-product-gallery):not(.summary),
.woocommerce div.product > *:not(.woocommerce-product-gallery):not(.summary) { grid-column: 1 / -1; }
/* Neutralise WooCommerce's own float/width so the grid tracks control sizing. */
.youzhen-product-main > .woocommerce-product-gallery,
.youzhen-product-main > .summary.entry-summary,
.woocommerce div.product > .woocommerce-product-gallery,
.woocommerce div.product > .summary.entry-summary {
  width:auto;
  float:none;
  min-width:0;
}

/* Right-side summary: clean, flat look like the reference, and NEVER sticky
   (it must scroll with the page, not overlap the sections below). The bare
   `.summary` rule near the checkout styles would otherwise re-apply
   position:sticky to this element because it shares the class name. */
.youzhen-product-main .summary.entry-summary,
.woocommerce div.product .summary.entry-summary {
  position:static;
  background:transparent;
  box-shadow:none;
  border-radius:0;
  padding:0;
}

/* Gallery: horizontal flex — vertical thumbnails on the left, main stage on the right */
.youzhen-product-gallery {
  position:relative;
  display:flex;
  gap:16px;
  align-items:stretch;
  align-self:start;
}
.youzhen-gallery-stage {
  position:relative;
  flex:1;
  min-width:0;
  max-width:460px;
  margin-right:auto;
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:#f2f2f2;
  aspect-ratio:1/1;
  padding:28px;
}
.youzhen-gallery-main-img {
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* Pagination dots (bottom center of main image) */
.youzhen-gallery-dots {
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  align-items:center;
}
.youzhen-gallery-dot {
  width:22px;
  height:4px;
  border:none;
  border-radius:99px;
  background:rgba(0,0,0,.18);
  padding:0;
  cursor:pointer;
  transition:var(--t);
}
.youzhen-gallery-dot.is-active { background:rgba(0,0,0,.65); }

/* Vertical thumbnail rail */
.youzhen-gallery-thumbs {
  display:flex;
  flex-direction:column;
  gap:8px;
  width:60px;
  flex:none;
  max-height:100%;
  overflow-y:auto;
  padding-right:2px;
}
.youzhen-gallery-thumbs::-webkit-scrollbar { width:3px; }
.youzhen-gallery-thumbs::-webkit-scrollbar-thumb { background:var(--line); border-radius:99px; }
.youzhen-gallery-thumb {
  flex:none;
  width:60px;
  height:60px;
  border-radius:8px;
  overflow:hidden;
  border:1px solid #e5e5e5;
  background:#fff;
  padding:0;
  cursor:pointer;
  opacity:.7;
  transition:var(--t);
}
.youzhen-gallery-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.youzhen-gallery-thumb:hover { opacity:1; border-color:#d0d0d0; }
.youzhen-gallery-thumb.is-active { border-color:var(--ink); opacity:1; }

/* Prev/Next arrows: hidden on desktop (thumbnails replace them), shown on mobile */
.youzhen-gallery-nav { display:none; }

/* Mobile: stack columns and put thumbnails below the main image */
@media (max-width:860px){
  .youzhen-product-main { grid-template-columns:1fr; gap:28px; }
  .youzhen-product-main > .woocommerce-product-gallery,
  .youzhen-product-main > .summary.entry-summary { grid-column: 1 / -1; }
  .woocommerce div.product { grid-template-columns:1fr; gap:28px; }
  .woocommerce div.product > .woocommerce-product-gallery,
  .woocommerce div.product > .summary.entry-summary { grid-column: auto; }
  .youzhen-product-gallery { flex-direction:column-reverse; gap:12px; }
  .youzhen-gallery-stage { padding:20px; max-width:100%; margin-right:0; }
  .youzhen-gallery-thumbs {
    flex-direction:row; width:100%; overflow-x:auto; overflow-y:hidden;
    padding-right:0; padding-bottom:2px;
  }
  .youzhen-gallery-thumb { width:56px; height:56px; }
  .youzhen-gallery-nav {
    display:grid; width:36px; height:36px; font-size:1.3rem;
    background:rgba(255,255,255,.92);
  }
  .youzhen-gallery-dots { bottom:12px; gap:6px; }
  .youzhen-gallery-dot { width:18px; height:3px; }
}

/* ---- Product reviews summary + list (enhanced) ---- */
.youzhen-reviews-summary {
  display:grid;
  grid-template-columns: auto 1fr;
  gap: 24px 44px;
  align-items:center;
  padding: 22px 24px;
  margin-bottom: 26px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.yrs-score { display:flex; flex-direction:column; gap:6px; align-items:center; text-align:center; }
.yrs-average { font-size:2.6rem; font-weight:700; line-height:1; color:var(--ink); }
.yrs-stars { font-size:1rem; letter-spacing:2px; color:var(--gold); }
.yrs-count { font-size:.9rem; color:var(--ink-soft); }
.yrs-bars { display:flex; flex-direction:column; gap:7px; }
.yrs-bar { display:grid; grid-template-columns: 42px 1fr 28px; align-items:center; gap:10px; font-size:.85rem; color:var(--ink-soft); }
.yrs-bar-label { white-space:nowrap; }
.yrs-bar-track { height:8px; background:var(--line); border-radius:99px; overflow:hidden; }
.yrs-bar-fill { display:block; height:100%; background:var(--gold); border-radius:99px; }
.yrs-bar-count { text-align:right; color:var(--ink-soft); }
.yrs-cta { grid-column:1 / -1; }
.youzhen-write-review {
  display:inline-block; padding:11px 22px; border-radius:99px;
  background:var(--sage); color:#fff; font-weight:600; text-decoration:none;
  border:1px solid var(--sage); transition:var(--t);
}
.youzhen-write-review:hover { background:var(--sage-dark); }

/* Hide the default duplicate title / empty notice; our summary replaces them */
.youzhen-psection-inner .woocommerce-Reviews-title,
.youzhen-psection-inner .woocommerce-noreviews { display:none; }

/* Review list polish */
.youzhen-psection-inner #reviews ol.commentlist { padding:0; margin:0 0 10px; }
.youzhen-psection-inner #reviews .review {
  padding:18px 0; border-bottom:1px solid var(--line); list-style:none;
}
.youzhen-psection-inner #reviews .review:last-child { border-bottom:none; }
.youzhen-psection-inner #reviews .comment_container { display:flex; gap:14px; }
.youzhen-psection-inner #reviews .avatar {
  width:46px; height:46px; border-radius:50%; flex:none; object-fit:cover;
}
.youzhen-psection-inner #reviews .comment-text { flex:1; }
.youzhen-psection-inner #reviews .star-rating { margin-bottom:6px; }
.youzhen-psection-inner #reviews .meta { font-size:.82rem; color:var(--ink-soft); margin-bottom:8px; }
.youzhen-psection-inner #reviews .woocommerce-review__author { font-weight:600; color:var(--ink); }
.youzhen-psection-inner #reviews .description { color:var(--ink-soft); line-height:1.7; }
.youzhen-psection-inner #reviews .verified { color:var(--sage); font-weight:600; }

/* Make the review form reachable when the "写评价" button scrolls to it */
#review_form_wrapper { scroll-margin-top: 100px; }

/* Below-the-fold sections must span BOTH grid columns (otherwise they get
   dropped into a single column next to the summary). */
.woocommerce div.product > .youzhen-product-sections,
.woocommerce div.product > .youzhen-highlights,
.woocommerce div.product > .related,
.woocommerce div.product > .up-sells,
.woocommerce div.product > .woocommerce-tabs { grid-column: 1 / -1; }

/* Breadcrumb (WooCommerce default, muted + clean like the reference) */
.woocommerce .woocommerce-breadcrumb {
  font-size: .85rem; color: var(--ink-soft); margin: 0 0 22px;
}
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--sage); }
.woocommerce .woocommerce-breadcrumb .delimiter { color: var(--line); margin: 0 6px; }

/* Back button — returns to the previous page (listing / homepage / source page).
   Semantic <a data-back>; main.js calls history.back() when possible and falls
   back to the href. Ghost-pill with a circular arrow chip that fills on hover. */
.youzhen-back-btn {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 22px; padding: 9px 18px 9px 13px;
  font: inherit; font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  line-height: 1; color: var(--ink); text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 99px;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: var(--t);
}
.youzhen-back-btn .youzhen-back-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage-dark);
  font-size: 1.05rem; line-height: 1; transition: var(--t);
}
.youzhen-back-btn:hover {
  color: var(--ink); border-color: var(--sage);
  box-shadow: var(--shadow); transform: translateY(-1px);
}
.youzhen-back-btn:hover .youzhen-back-arrow {
  background: var(--sage); color: #fff; transform: translateX(-3px);
}
.youzhen-back-btn:active { transform: translateY(0); }
.youzhen-back-btn:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

/* Right column — compact, aligned, polished */
.woocommerce div.product .summary.entry-summary .product_title,
.youzhen-product-main .summary.entry-summary .product_title {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 0 0 .18em;
  line-height: 1.2;
}
.woocommerce div.product .summary.entry-summary .price,
.youzhen-product-main .summary.entry-summary .price {
  font-size: 1.7rem; font-weight: 700; color: var(--ink); margin: .1em 0 .45em;
}
.woocommerce div.product .summary.entry-summary .price del,
.youzhen-product-main .summary.entry-summary .price del {
  color: var(--ink-soft); font-weight: 400; font-size: .98rem; margin-right: 8px;
}
.woocommerce div.product .summary.entry-summary .price ins,
.youzhen-product-main .summary.entry-summary .price ins {
  color: var(--gold); text-decoration: none;
}
.woocommerce div.product .summary.entry-summary .woocommerce-product-details__short-description,
.youzhen-product-main .summary.entry-summary .woocommerce-product-details__short-description {
  color: var(--ink-soft); line-height: 1.7; margin: 0 0 14px;
  font-size: .96rem;
}

/* Add to cart — quantity + button ALWAYS side by side.
   Compact grid layout. Variation rows sit above the quantity+button pair and
   span the full width. The !important on display beats aggressive cache/plugin
   styles that keep resetting the cart form to display:block.
   Scope with BOTH .woocommerce div.product AND .youzhen-product-main because
   the live wrapper sometimes renders without the `.product` class. */
.woocommerce div.product .summary.entry-summary form.cart,
.youzhen-product-main .summary.entry-summary form.cart {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 2px;
}
.woocommerce div.product .summary.entry-summary form.cart .variations,
.woocommerce div.product .summary.entry-summary form.cart .woocommerce-variation-price,
.woocommerce div.product .summary.entry-summary form.cart .woocommerce-variation-availability,
.woocommerce div.product .summary.entry-summary form.cart .woocommerce-variation-description,
.woocommerce div.product .summary.entry-summary form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product .summary.entry-summary form.cart .reset_variations,
.woocommerce div.product .summary.entry-summary form.cart .single_variation_wrap,
.youzhen-product-main .summary.entry-summary form.cart .variations,
.youzhen-product-main .summary.entry-summary form.cart .woocommerce-variation-price,
.youzhen-product-main .summary.entry-summary form.cart .woocommerce-variation-availability,
.youzhen-product-main .summary.entry-summary form.cart .woocommerce-variation-description,
.youzhen-product-main .summary.entry-summary form.cart .woocommerce-variation-add-to-cart,
.youzhen-product-main .summary.entry-summary form.cart .reset_variations,
.youzhen-product-main .summary.entry-summary form.cart .single_variation_wrap {
  grid-column: 1 / -1;
}
.woocommerce div.product .summary.entry-summary form.cart .quantity,
.youzhen-product-main .summary.entry-summary form.cart .quantity {
  margin: 0 !important;
  grid-column: 1;
  width: auto !important;
  float: none !important;
  display: inline-flex !important;
}
.woocommerce div.product .summary.entry-summary form.cart .quantity .qty,
.youzhen-product-main .summary.entry-summary form.cart .quantity .qty {
  width: 56px; padding: 11px 6px; border: 1px solid var(--line);
  border-radius: 99px; text-align: center; font-size: .95rem; color: var(--ink);
  height: 46px;
}
.woocommerce div.product .summary.entry-summary form.cart .quantity .qty::-webkit-outer-spin-button,
.youzhen-product-main .summary.entry-summary form.cart .quantity .qty::-webkit-outer-spin-button,
.woocommerce div.product .summary.entry-summary form.cart .quantity .qty::-webkit-inner-spin-button,
.youzhen-product-main .summary.entry-summary form.cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.woocommerce div.product .summary.entry-summary form.cart .quantity .qty[type=number],
.youzhen-product-main .summary.entry-summary form.cart .quantity .qty[type=number] {
  -moz-appearance: textfield;
}
.woocommerce div.product .summary.entry-summary form.cart .single_add_to_cart_button,
.youzhen-product-main .summary.entry-summary form.cart .single_add_to_cart_button {
  grid-column: 2;
  width: 100%; height: 46px;
  background: var(--sage-dark); color: #fff; border: none;
  border-radius: 99px; padding: 0 24px; font-weight: 600; font-size: .96rem;
  cursor: pointer; transition: var(--t); white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
}
.woocommerce div.product .summary.entry-summary .single_add_to_cart_button:hover,
.youzhen-product-main .summary.entry-summary .single_add_to_cart_button:hover {
  background: #4A5A53; color: #fff;
}
.woocommerce div.product .summary.entry-summary .single_add_to_cart_button:disabled,
.youzhen-product-main .summary.entry-summary .single_add_to_cart_button:disabled {
  opacity: .55; cursor: not-allowed;
}

/* ===== Variation selector — compact "label over swatches" stacked layout ===== */
.woocommerce div.product .variations,
.youzhen-product-main .variations {
  display: block; width: 100%; border: none; margin: 0; border-collapse: collapse;
}
.woocommerce div.product .variations tbody,
.youzhen-product-main .variations tbody { display: block; }
.woocommerce div.product .variations tr,
.youzhen-product-main .variations tr { display: block; margin-bottom: 14px; }
.woocommerce div.product .variations tr:last-child,
.youzhen-product-main .variations tr:last-child { margin-bottom: 0; }
.woocommerce div.product .variations .label,
.youzhen-product-main .variations .label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 600; color: var(--ink); font-size: .88rem; margin-bottom: 8px;
}
.woocommerce div.product .variations .label label,
.youzhen-product-main .variations .label label { font-weight: 600; }
.woocommerce div.product .variations .value,
.youzhen-product-main .variations .value {
  display: inline-block; width: auto; border: none; padding: 0;
  /* Hug the swatch content tightly; the hidden native <select> and Clear link
     must not leave stray line boxes that expand the white background. */
  height: auto; min-height: 0; font-size: 0; line-height: 0;
}
/* Hide the native <select> (kept for a11y + WooCommerce sync); swatches replace it. */
.woocommerce div.product .variations select,
.youzhen-product-main .variations select {
  position: absolute !important; width: 1px !important; height: 1px !important;
  opacity: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; pointer-events: none !important;
}

/* Swatch pills */
.youzhen-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.youzhen-swatch {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 99px; padding: 7px 14px; font-size: .85rem; cursor: pointer; transition: var(--t);
  line-height: 1.3; min-height: 32px; display: inline-flex; align-items: center; justify-content: center;
}
.youzhen-swatch:hover { border-color: var(--sage); }
.youzhen-swatch.is-selected {
  border-color: var(--sage); background: var(--sage); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(94,114,104,.28);
}

/* "Clear" / reset variations is intentionally hidden — swatches are toggled directly.
   Universal selector first: live wrapper classes are sometimes missing, so never
   let the link show regardless of ancestor classes. */
a.reset_variations,
.variations .reset_variations,
.woocommerce .reset_variations,
.woocommerce div.product .reset_variations,
.youzhen-product-main .reset_variations {
  display: none !important;
  height: 0 !important; overflow: hidden !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
  visibility: hidden !important;
}

/* Theme-styled replacement for the removed WooCommerce "Clear" link. */
.youzhen-variation-actions {
  display: flex; justify-content: flex-end;
  margin: -4px 0 12px;
}
.youzhen-reset-variations {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; font-size: .78rem; font-weight: 500;
  color: var(--sage); border: 1px solid var(--sage);
  border-radius: 99px; background: transparent; text-decoration: none;
  transition: var(--t); cursor: pointer;
}
.youzhen-reset-variations:hover {
  background: var(--sage); color: #fff;
}

/* Quantity + add-to-cart inside variable products */
.woocommerce div.product .summary.entry-summary form.cart .woocommerce-variation-add-to-cart,
.youzhen-product-main .summary.entry-summary form.cart .woocommerce-variation-add-to-cart {
  display: grid !important; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 10px;
}
.woocommerce div.product .summary.entry-summary form.cart .woocommerce-variation-add-to-cart .quantity,
.youzhen-product-main .summary.entry-summary form.cart .woocommerce-variation-add-to-cart .quantity {
  margin: 0 !important; grid-column: 1; width: auto !important; float: none !important; display: inline-flex !important;
}

/* Product meta + utility links under the buy box */
.woocommerce div.product .summary.entry-summary .product_meta,
.youzhen-product-main .summary.entry-summary .product_meta {
  font-size: .8rem; color: var(--ink-soft); margin-top: 14px;
  border-top: 1px solid var(--line); padding-top: 12px;
}
.woocommerce div.product .summary.entry-summary .product_meta a:hover,
.youzhen-product-main .summary.entry-summary .product_meta a:hover { color: var(--sage); }
.youzhen-util-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; }
.youzhen-util-link {
  font-size: .85rem; color: var(--ink-soft);
  border-bottom: 1px solid transparent; transition: var(--t);
}
.youzhen-util-link:hover { color: var(--sage); border-bottom-color: var(--sage); }

/* ---- Highlights band (joco-style editorial grid) ---- */
.youzhen-highlights {
  background: var(--cream-2);
  padding: clamp(48px, 7vw, 90px) 0;
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.yh-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 46px); }
.yh-eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  color: var(--sage); font-weight: 600; margin: 0 0 10px;
}
.yh-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.yh-lead { max-width: 760px; margin: 0 auto clamp(30px, 4vw, 48px); text-align: center; color: var(--ink-soft); line-height: 1.9; }
.yh-lead p { margin: 0 0 1em; }
.yh-lead p:last-child { margin-bottom: 0; }
.yh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.yh-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: var(--t);
}
.yh-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.yh-card-eyebrow {
  display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
.yh-card--promise .yh-card-eyebrow { color: var(--sage); }
.yh-card-body { margin: 0; color: var(--ink-soft); line-height: 1.8; font-size: .96rem; }
@media (max-width: 900px) { .yh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .yh-grid { grid-template-columns: 1fr; } }

/* Hide any PayPal express / smart payment button on the SINGLE PRODUCT page.
   Primary removal is server-side (PayPal Payments filters strip the 'product'
   location); this hides any cached or JS-injected remnant. Checkout & cart
   PayPal are intentionally NOT targeted here. */
.single-product .wc-ppcp-product-express-button,
.single-product .wc-ppcp-product-express-button--regular,
.single-product .wc-ppcp-smart-button__container,
.single-product .ppcp-product-page-express-button,
.single-product .wc-ppcp-product-paylater-message,
.single-product .ppcp-message-product,
.single-product [data-ppcp-smart-button-product],
.single-product .paypal-buttons { display:none !important; }

/* ---- Product info typography (clean, studioproper-like) ---- */
.woocommerce div.product .product_title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height:1.2; margin:0 0 .35em;
}
.woocommerce div.product .woocommerce-product-rating { margin:0 0 1em; }
.woocommerce div.product .price {
  font-size:1.55rem; margin:.1em 0 1.1em; color:var(--ink);
}
.woocommerce div.product .woocommerce-product-details__short-description {
  color:var(--ink-soft); line-height:1.75; margin:0 0 1.6em;
}
.woocommerce div.product form.cart { margin-bottom: 1.2em; }
.woocommerce div.product .stock { margin:.4em 0 1.2em; }

/* ---- Lower sections: clean accordion (Description / Additional / Reviews) ---- */
.youzhen-product-sections {
  margin-top: clamp(40px, 6vw, 80px);
  border-top:1px solid var(--line);
  clear:both;
}
.youzhen-psection { border-bottom:1px solid var(--line); }
.youzhen-psection-head {
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:22px 2px;
  background:none; border:none; cursor:pointer;
  text-align:left; color:var(--ink); font-family:inherit;
  font-size:1.12rem; font-weight:600; letter-spacing:.01em;
  transition:var(--t);
}
.youzhen-psection-head:hover { color:var(--sage); }
.youzhen-psection-title { flex:1; }
.youzhen-psection-icon { position:relative; flex:none; width:18px; height:18px; }
.youzhen-psection-icon::before,
.youzhen-psection-icon::after {
  content:""; position:absolute; top:50%; left:50%;
  width:14px; height:2px; background:currentColor; border-radius:2px;
  transform:translate(-50%,-50%);
  transition:transform .25s ease, opacity .25s ease;
}
.youzhen-psection-icon::after { transform:translate(-50%,-50%) rotate(90deg); }
.youzhen-psection.is-open .youzhen-psection-icon::after { opacity:0; transform:translate(-50%,-50%) rotate(0deg); }

.youzhen-psection-body { display:none; }
.youzhen-psection.is-open .youzhen-psection-body { display:block; }
.youzhen-psection-inner {
  padding:2px 2px 36px;
  max-width:780px; color:var(--ink-soft); line-height:1.78;
  animation:youzhenFade .3s ease both;
}
.youzhen-psection-inner > *:first-child { margin-top:0; }
.youzhen-psection-inner > *:last-child { margin-bottom:0; }
@keyframes youzhenFade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* Keep WooCommerce reviews tidy inside the section */
.youzhen-psection-inner .woocommerce-Tabs-panel--reviews { margin:0; }
.youzhen-psection-inner #reviews h2,
.youzhen-psection-inner #reviews .woocommerce-Reviews-title { font-size:1.3rem; margin:0 0 .6em; }
.youzhen-psection-inner .comment-form-rating { margin-bottom:14px; }
.youzhen-psection-inner .comment-form-comment textarea { min-height:120px; }

/* Right-side summary scrolls with the page (instead of sticking).
   This matches the user's request: the buy box should move together with the
   main gallery, not float on its own and cover the lower sections. */
.youzhen-product-main .summary.entry-summary {
  position:static;
  align-self:start;
}

/* ============================================================
   My Account page (账户中心美化)
   ============================================================ */
.woocommerce-account .page-hero.account-hero { background: linear-gradient(160deg, var(--sage-soft), var(--cream)); padding: clamp(46px,7vw,86px) 0; }
.woocommerce-account .page-hero.account-hero h1 { margin: 0 0 .18em; }
.woocommerce-account .youzhen-account-wrap { padding-top: clamp(34px,5vw,60px); padding-bottom: clamp(50px,7vw,100px); }
.woocommerce-account .youzhen-account-wrap > .container > .woocommerce { display: contents; }

.youzhen-account-grid {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.youzhen-account-grid > * { min-width: 0; }

.youzhen-account-nav {
  flex: 0 0 260px;
  width: 260px;
  max-width: 100%;
}

/* Sidebar nav card */
.youzhen-account-nav {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  position: sticky;
  top: 96px;
}

.account-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  min-width: 0;
}

.youzhen-account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: none;
  background: var(--sage-soft);
}

.account-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-greeting {
  font-size: .78rem;
  color: var(--ink-soft);
  margin-bottom: 2px;
  white-space: nowrap;
}

.account-name {
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youzhen-account-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.youzhen-account-nav li {
  border-bottom: none;
  padding: 0;
}

.youzhen-account-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: .92rem;
  white-space: nowrap;
  transition: var(--t);
}

.youzhen-account-nav li a:hover {
  background: var(--cream);
  color: var(--ink);
}

.youzhen-account-nav li.is-active a,
.youzhen-account-nav li.woocommerce-MyAccount-navigation-link--active a {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.account-nav-icon {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
}

.account-nav-icon svg {
  width: 100%;
  height: 100%;
}

/* Content area */
.youzhen-account-content {
  flex: 1 1 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px,4vw,38px);
  min-height: 420px;
  min-width: 0;
}

.youzhen-account-content > *:first-child { margin-top: 0; }
.youzhen-account-content > *:last-child { margin-bottom: 0; }

/* Dashboard welcome */
.youzhen-dashboard-welcome {
  margin-bottom: 18px;
}

.youzhen-dashboard-welcome h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  margin: 0 0 .35em;
  font-weight: 600;
  word-break: break-word;
}

.youzhen-dashboard-welcome h2 strong {
  font-weight: 700;
  color: var(--sage-dark);
}

.account-email {
  color: var(--ink-soft);
  font-size: .92rem;
  margin: 0;
}

.account-email .sep {
  margin: 0 8px;
  color: var(--line);
}

.account-email a {
  color: var(--sage-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-email a:hover { color: var(--ink); }

.dashboard-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 62ch;
}

/* Tables (orders, downloads) */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  border: none;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 24px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .92rem;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th {
  background: var(--cream-2);
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tr:last-child td { border-bottom: none; }

.woocommerce-account .woocommerce-MyAccount-content table.shop_table td a.button {
  padding: .55em 1.1em;
  font-size: .82rem;
}

.woocommerce-account .woocommerce-MyAccount-content mark {
  background: transparent;
  font-weight: 600;
  color: var(--sage-dark);
}

/* Addresses */
.woocommerce-account .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px;
  margin-top: 22px;
}

.woocommerce-account .woocommerce-Address {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 22px;
  border: 1px solid var(--line);
  min-width: 0;
  box-shadow: var(--shadow-sm);
}

.woocommerce-account .woocommerce-Address-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.woocommerce-account .woocommerce-Address-title h3 {
  font-size: 1.05rem !important;
  margin: 0 !important;
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: var(--ink);
}

.woocommerce-account .woocommerce-Address-title a.edit {
  flex: none;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 600;
  color: var(--sage-dark);
  background: var(--sage-soft);
  padding: .45em .9em;
  border-radius: 99px;
  text-decoration: none;
  line-height: 1;
}

.woocommerce-account .woocommerce-Address-title a.edit:hover {
  background: var(--sage);
  color: #fff;
}

.woocommerce-account .woocommerce-Address address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: .92rem;
  margin: 0;
}

/* ---------- Address edit form ---------- */
.youzhen-address-edit {
  max-width: 680px;
}

.youzhen-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 20px;
  transition: var(--t);
}

.youzhen-back-link svg { width: 18px; height: 18px; }

.youzhen-back-link:hover {
  color: var(--ink);
  transform: translateX(-2px);
}

.youzhen-address-edit-head {
  margin-bottom: 24px;
}

.youzhen-address-edit-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 .25em;
  font-weight: 600;
  line-height: 1.2;
}

.youzhen-address-edit-head p {
  color: var(--ink-soft);
  font-size: .92rem;
  margin: 0;
}

.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin-bottom: 8px;
}

.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper > p {
  margin: 0;
}

.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper .form-row-wide,
.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper .address-field.form-row-wide {
  grid-column: 1 / -1;
}

.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper label {
  display: block;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 7px;
  color: var(--ink);
}

.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper label .required {
  color: #c46a5a;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper input,
.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper textarea,
.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper select {
  width: 100%;
  padding: .85em 1.1em;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--ff-body);
  font-size: .96rem;
  background: var(--cream-2);
  color: var(--ink);
  transition: var(--t);
}

.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper input:focus,
.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper textarea:focus,
.woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(124, 144, 130, .12);
}

.youzhen-address-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px !important;
}

.youzhen-address-actions .button {
  margin: 0;
}

/* Forms inside account */
.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-address-fields__field-wrapper,
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  margin: 8px 0 0;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset legend {
  font-family: var(--ff-head);
  font-weight: 600;
  padding: 0 8px;
  color: var(--ink);
}

.woocommerce-account .woocommerce-form-row label {
  display: block;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 7px;
  color: var(--ink);
}

.woocommerce-account .woocommerce-form-row input,
.woocommerce-account .woocommerce-form-row textarea,
.woocommerce-account .woocommerce-form-row select,
.woocommerce-account .woocommerce-Input {
  width: 100%;
  padding: .85em 1.1em;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--ff-body);
  font-size: .96rem;
  background: var(--cream-2);
  color: var(--ink);
  transition: var(--t);
}

.woocommerce-account .woocommerce-form-row input:focus,
.woocommerce-account .woocommerce-form-row textarea:focus,
.woocommerce-account .woocommerce-form-row select:focus,
.woocommerce-account .woocommerce-Input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(124, 144, 130, .12);
}

.woocommerce-account .woocommerce-Button,
.woocommerce-account .button {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .9em 2em;
  font-family: var(--ff-head);
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  width: fit-content;
}

.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account .button:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.woocommerce-account .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  cursor: pointer;
}

/* Notices */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
  border-radius: 12px;
  padding: 14px 18px 14px 48px;
  margin-bottom: 22px;
  font-size: .92rem;
  position: relative;
}

.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-message::before {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.woocommerce-account .woocommerce-info .button,
.woocommerce-account .woocommerce-message .button {
  float: none;
  margin-left: auto;
}

.woocommerce-account .woocommerce-error { background: #FDF2F0; border: 1px solid #E8C9C1; color: #8B3A2B; }

/* Responsive */
@media (max-width: 980px) {
  .youzhen-account-grid { flex-direction: column; }
  .youzhen-account-nav {
    position: static;
    width: 100%;
    flex-basis: auto;
    padding: 16px;
  }
  .youzhen-account-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .youzhen-account-nav li { flex: 1 1 auto; }
  .youzhen-account-nav li a { justify-content: center; }
  .account-user-card { margin-bottom: 16px; }
  .woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
  .youzhen-account-content { padding: 22px 18px; }
  .youzhen-account-nav { padding: 12px; }
  .youzhen-account-nav ul { gap: 6px; }
  .youzhen-account-nav li a { padding: 10px 12px; font-size: .82rem; gap: 8px; }
  .account-nav-icon { width: 18px; height: 18px; }
  .woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
  .woocommerce-account .woocommerce-MyAccount-content table.shop_table td { padding: 12px 10px; font-size: .82rem; }
  .woocommerce-account .youzhen-address-edit .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* ---------- Account / Auth modal ---------- */
.icon-btn.is-account { position:relative; }
.auth-modal { position:fixed; inset:0; z-index:200; display:none; }
.auth-modal.open { display:block; }
.auth-modal .auth-overlay { position:absolute; inset:0; background:rgba(42,52,46,.45); backdrop-filter:blur(3px); }
.auth-card {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-46%);
  width:min(420px,92vw); background:#fff; border-radius:var(--radius,22px);
  padding:34px 32px 28px; box-shadow:var(--shadow-lg);
  animation:authIn .28s ease; max-height:92vh; overflow:auto;
}
@keyframes authIn { from{opacity:0; transform:translate(-50%,-40%);} to{opacity:1; transform:translate(-50%,-46%);} }
.auth-close { position:absolute; top:12px; right:16px; background:none; border:none; font-size:1.7rem; line-height:1; color:var(--ink-soft); cursor:pointer; transition:var(--t); }
.auth-close:hover { color:var(--ink); }
.auth-brand { display:flex; align-items:center; gap:10px; justify-content:center; font-family:var(--ff-head); font-weight:700; color:var(--ink); }
.auth-brand .logo-mark { height:30px; width:auto; }
.auth-tabs { display:flex; gap:6px; background:var(--cream); padding:5px; border-radius:99px; margin:18px 0 22px; }
.auth-tab { flex:1; border:none; background:none; padding:10px; border-radius:99px; font-family:var(--ff-head); font-weight:600; color:var(--ink-soft); cursor:pointer; transition:var(--t); }
.auth-tab.active { background:#fff; color:var(--ink); box-shadow:var(--shadow-sm); }
.auth-form { display:none; flex-direction:column; gap:14px; }
.auth-form.active { display:flex; }
.auth-form label { display:flex; flex-direction:column; gap:6px; font-size:.86rem; font-weight:600; color:var(--ink); }
.auth-form input[type=email], .auth-form input[type=password] { border:1.5px solid var(--line); border-radius:12px; padding:.8em 1em; font:inherit; color:var(--ink); background:#fff; transition:var(--t); }
.auth-form input:focus { outline:none; border-color:var(--sage); box-shadow:0 0 0 3px rgba(124,144,130,.15); }
.auth-row { display:flex; align-items:center; justify-content:space-between; font-size:.82rem; }
.auth-row .remember, .auth-form .remember { flex-direction:row; align-items:center; gap:6px; font-weight:500; font-size:.82rem; }
.auth-link { color:var(--sage-dark); text-decoration:none; font-weight:600; }
.auth-link:hover { text-decoration:underline; }
.auth-error { color:#c0432b; font-size:.82rem; margin:0; min-height:1em; }
.auth-foot { text-align:center; font-size:.8rem; color:var(--ink-soft); margin:18px 0 0; }

/* ---------- Language switcher ---------- */
.lang-switcher { position:relative; }
.lang-toggle { display:flex; align-items:center; gap:5px; font-size:.82rem; font-family:var(--ff-head); font-weight:600; color:var(--ink); }
.lang-toggle svg { width:20px; height:20px; }
.lang-current { line-height:1; }
.lang-menu { position:absolute; top:calc(100% + 10px); right:0; background:#fff; border-radius:14px; box-shadow:var(--shadow-lg); padding:6px; min-width:120px; display:none; z-index:120; }
.lang-switcher.open .lang-menu { display:block; }
.lang-menu button, .lang-menu a { display:block; width:100%; text-align:left; border:none; background:none; padding:9px 12px; border-radius:10px; font-family:var(--ff-head); font-weight:600; color:var(--ink); cursor:pointer; text-decoration:none; }
.lang-menu button:hover, .lang-menu a:hover { background:var(--cream); }

/* ============================================================
   Hero carousel (新款 / 爆款 轮播图)
   ============================================================ */
.hero-slider { position:relative; overflow:hidden; }
.hero-track { display:flex; will-change:transform; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.hero-slide { flex:0 0 100%; min-width:100%; }
.hero-slide .hero-inner { padding: clamp(40px,7vw,90px) 0 clamp(50px,7vw,90px); }
.hero-slide[data-theme="brand"] { background: var(--cream-2); }
.hero-slide[data-theme="sage"]  { background: linear-gradient(160deg,#E9F0EB,#F4F0E7); }
.hero-slide[data-theme="blush"] { background: linear-gradient(160deg,#F6E7E1,#FBF3EE); }
.hero-slide[data-theme="gold"]  { background: linear-gradient(160deg,#F3E7D7,#FBF4EB); }
.hero-slide[data-theme="mist"]  { background: linear-gradient(160deg,#E7EDF2,#F1F2F4); }
.slide-tag { display:inline-block; background:var(--gold); color:#fff; font-family:var(--ff-head); font-weight:700; font-size:.74rem; letter-spacing:.04em; padding:5px 13px; border-radius:99px; margin-bottom:1rem; }
.hero-slide[data-theme="blush"] .slide-tag,
.hero-slide[data-theme="mist"]  .slide-tag { background:var(--sage); }
.hero-slide .hero-visual .hero-card.big { max-width:360px; margin-left:auto; }
.hero-slide .hero-visual .hero-card.big .hc-img { width:128px; height:128px; }
.hero-price { display:flex; align-items:baseline; gap:12px; margin:10px 0 26px; font-family:var(--ff-head); }
.hero-price .now { font-size:2.1rem; font-weight:700; color:var(--gold); }
.hero-price .old { color:var(--ink-soft); text-decoration:line-through; font-weight:500; font-size:1rem; }
.hero-arrow { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; background:rgba(255,255,255,.85); border:1px solid var(--line); color:var(--ink); cursor:pointer; display:grid; place-items:center; font-size:1.5rem; line-height:1; z-index:6; box-shadow:var(--shadow-sm); transition:var(--t); }
.hero-arrow:hover { background:#fff; box-shadow:var(--shadow); }
.hero-arrow.prev { left:16px; }
.hero-arrow.next { right:16px; }
.hero-dots { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); display:flex; gap:9px; z-index:6; }
.hero-dots button { width:9px; height:9px; border-radius:50%; border:none; background:rgba(43,43,40,.22); cursor:pointer; padding:0; transition:var(--t); }
.hero-dots button.active { background:var(--gold); width:26px; border-radius:99px; }
@media (max-width:760px){ .hero-arrow{ display:none; } .hero-dots{ bottom:12px; } }

/* Product slide — price from WooCommerce, quick "加入购物车" + "查看商品" */
.hero-slide[data-type="product"] .hero-price .now { color:var(--gold); }
.hero-slide[data-type="product"] .add_to_cart_button { cursor:pointer; }

/* Consultation slide — CTA card with icon */
.hero-slide[data-type="consultation"] .hero-cta { margin-top:8px; }
.hero-card.consultation-card { flex-direction:column; align-items:flex-start; gap:14px; max-width:360px; margin-left:auto; text-align:left; }
.hero-card.consultation-card .consult-icon { font-size:2.4rem; line-height:1; }
.hero-card.consultation-card h4 { margin:0; font-size:1.15rem; }
.hero-card.consultation-card .btn { margin-top:4px; }

/* Slides CPT meta box — conditionally shown fields by slide type */
.youzhen-slide-fields { border-left:3px solid var(--sage); padding-left:14px; margin:10px 0; }
.youzhen-slide-fields .description { color:var(--ink-soft); font-style:italic; }

/* ============================================================
   Checkout / payment page (适配 WordPress / WooCommerce 支付)
   ============================================================ */
.checkout-hero { background:var(--sage-soft); padding:clamp(40px,6vw,70px) 0; text-align:center; }
.checkout-hero h1 { margin:0 0 .2em; }
.checkout-layout { display:grid; grid-template-columns:1.45fr 1fr; gap:40px; align-items:start; margin:clamp(40px,6vw,70px) 0; }
.checkout-col h2 { font-size:1.4rem; margin:0 0 22px; }
.checkout-block { background:#fff; border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-sm); margin-bottom:22px; }
.checkout-block h3 { font-size:1.05rem; margin:0 0 16px; display:flex; align-items:center; gap:10px; }
.checkout-block h3 .step { width:26px; height:26px; border-radius:50%; background:var(--sage); color:#fff; display:grid; place-items:center; font-size:.82rem; flex:none; }
.checkout-form .field { margin-bottom:16px; }
.checkout-form .field.two { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.checkout-form label { display:block; font-family:var(--ff-head); font-weight:600; font-size:.88rem; margin-bottom:7px; }
.checkout-form input, .checkout-form select, .checkout-form textarea { width:100%; padding:.85em 1.1em; border:1.5px solid var(--line); border-radius:12px; font-family:var(--ff-body); font-size:.96rem; background:var(--cream-2); }
.checkout-form input:focus, .checkout-form select:focus, .checkout-form textarea:focus { outline:none; border-color:var(--sage); }
.pay-methods { display:flex; flex-direction:column; gap:12px; }
.pay-method { display:flex; align-items:center; gap:14px; padding:15px 18px; border:1.5px solid var(--line); border-radius:14px; cursor:pointer; transition:var(--t); background:var(--cream-2); }
.pay-method:hover { border-color:var(--sage); }
.pay-method.active { border-color:var(--sage); background:var(--sage-soft); box-shadow:0 0 0 3px rgba(124,144,130,.16); }
.pay-method input { accent-color:var(--sage); width:18px; height:18px; flex:none; }
.pay-method .pm-ic { width:42px; height:42px; border-radius:10px; display:grid; place-items:center; flex:none; color:#fff; font-family:var(--ff-head); font-weight:700; font-size:.82rem; }
.pay-method .pm-ic.wx { background:#1AAD19; }
.pay-method .pm-ic.ali { background:#1677FF; }
.pay-method .pm-ic.card { background:var(--ink); }
.pay-method .pm-ic.cod { background:var(--gold); }
.pay-method .pm-text { flex:1; }
.pay-method .pm-text strong { display:block; font-family:var(--ff-head); font-size:.98rem; }
.pay-method .pm-text span { font-size:.8rem; color:var(--ink-soft); }
.summary { background:#fff; border-radius:var(--radius); padding:26px; box-shadow:var(--shadow); position:sticky; top:100px; }
.summary h3 { font-size:1.1rem; margin:0 0 16px; }
.sum-item { display:flex; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); }
.sum-item .si-img { width:52px; height:52px; border-radius:10px; background:var(--sage-soft); flex:none; display:grid; place-items:center; }
.sum-item .si-img img { width:70%; }
.sum-item .si-name { font-size:.9rem; font-weight:600; }
.sum-item .si-meta { font-size:.78rem; color:var(--ink-soft); }
.sum-item .si-price { margin-left:auto; font-family:var(--ff-head); font-weight:700; color:var(--gold); }
.sum-row { display:flex; justify-content:space-between; padding:9px 0; font-size:.92rem; }
.sum-row.total { border-top:1px solid var(--line); margin-top:6px; padding-top:14px; font-family:var(--ff-head); font-weight:700; font-size:1.15rem; }
.secure-note { display:flex; align-items:center; gap:8px; font-size:.82rem; color:var(--sage-dark); margin-top:14px; }

/* ---------- WooCommerce checkout adaptation ---------- */
.woocommerce form.checkout .form-row label { font-family:var(--ff-head); font-weight:600; font-size:.88rem; }
.woocommerce form.checkout .form-row input, .woocommerce form.checkout .form-row textarea, .woocommerce form.checkout .form-row select { border:1.5px solid var(--line); border-radius:12px; padding:.85em 1.1em; background:var(--cream-2); }
.woocommerce form.checkout .form-row input:focus, .woocommerce form.checkout .form-row textarea:focus, .woocommerce form.checkout .form-row select:focus { outline:none; border-color:var(--sage); }
.woocommerce #place_order { background:var(--ink); color:#fff; border:none; border-radius:99px; padding:1em 2em; font-family:var(--ff-head); font-weight:600; cursor:pointer; transition:var(--t); }
/* ---------- 结账支付方式：卡片式 UI（主题定制，不依赖插件） ---------- */
.woocommerce #payment ul.payment_methods { padding:0; border:0; }
.woocommerce #payment .wc_payment_method {
  display:flex; flex-wrap:wrap; align-items:center; gap:12px 14px;
  background:var(--cream-2); border:1.5px solid var(--line); border-radius:14px;
  padding:14px 16px; margin-bottom:12px; cursor:pointer; transition:var(--t);
}
.woocommerce #payment .wc_payment_method:hover { border-color:var(--sage); }
.woocommerce #payment .wc_payment_method.is-selected,
.woocommerce #payment .wc_payment_method:has(input:checked) {
  border-color:var(--sage); background:var(--sage-soft);
  box-shadow:0 0 0 3px rgba(124,144,130,.16);
}
.woocommerce #payment .wc_payment_method > input[type="radio"] {
  accent-color:var(--sage); width:18px; height:18px; flex:none; margin:0;
}
.woocommerce #payment .wc_payment_method > label {
  flex:1 1 auto; display:flex; align-items:center; gap:12px;
  font-family:var(--ff-head); font-weight:600; margin:0; cursor:pointer;
}
/* JS 注入的网关图标 */
.woocommerce #payment .wc_payment_method .pm-ic {
  width:42px; height:42px; border-radius:10px; display:grid; place-items:center;
  flex:none; color:#fff; font-family:var(--ff-head); font-weight:700; font-size:.82rem;
}
.woocommerce #payment .wc_payment_method .pm-ic.pp     { background:#003087; }
.woocommerce #payment .wc_payment_method .pm-ic.paypal { background:#009CDE; }
.woocommerce #payment .wc_payment_method .pm-ic.card   { background:var(--ink); }
.woocommerce #payment .wc_payment_method .pm-ic.bank   { background:#1677FF; }
.woocommerce #payment .wc_payment_method .pm-ic.cod    { background:var(--gold); }
.woocommerce #payment .wc_payment_method .pm-ic.wallet { background:#1AAD19; }
.woocommerce #payment .wc_payment_method .pm-ic.wx     { background:#1AAD19; }
.woocommerce #payment .wc_payment_method .pm-ic.ali    { background:#1677FF; }
.woocommerce #payment .wc_payment_method .pm-ic.other  { background:var(--sage-dark); }
/* 选中方法的详情框融入卡片，去掉默认小箭头 */
.woocommerce #payment .wc_payment_method .payment_box {
  flex-basis:100%; background:transparent; border:0; padding:8px 0 0; margin:0;
}
.woocommerce #payment .wc_payment_method .payment_box:before,
.woocommerce #payment .wc_payment_method .payment_box:after { display:none; }
.woocommerce #place_order:hover { background:var(--sage-dark); }
.woocommerce-checkout .woocommerce-info, .woocommerce-checkout .woocommerce-message { border-radius:12px; }

/* ---------- WooCommerce PayPal Payments 兼容 (仅购物车/结账) ---------- */
/* 让 PayPal 智能按钮容器正常铺开，不被主题栅格挤压。
   注意：商品页的 .wc-ppcp-product-express-button 已在上文被隐藏，这里不对其设样式。 */
.wc-ppcp-checkout,
.wc-ppcp-cart-express-button { margin: 14px 0; }
.wc-ppcp-checkout .ppcp-button-wrapper,
.wc-ppcp-cart-express-button .ppcp-button-wrapper { width: 100%; }
/* 结账页 PayPal 网关说明框正常显示，不被 overflow 裁切 */
.woocommerce #payment .payment_method_ppcp-gateway .payment_box { display: block; }
/* 防止主题对 iframe 的圆角/背景干扰 PayPal 按钮渲染 */
.wc-ppcp-checkout iframe,
.wc-ppcp-cart-express-button iframe { max-width: 100% !important; }

@media (max-width:860px){ .checkout-layout{ grid-template-columns:1fr; } .summary{ position:static; } }

/* product volume ml/fl oz */
.product-cat .vol, .vol { color: var(--ink-soft); font-size:.82rem; margin-left:2px; }

/* ---------- WooCommerce Cart — coupon & actions ---------- */
.woocommerce-cart .woocommerce-cart-form .shop_table { border-collapse:separate; border-spacing:0; }
.woocommerce-cart .woocommerce-cart-form .shop_table th { font-family:var(--ff-head); font-weight:600; font-size:.9rem; color:var(--ink-soft); padding:14px 12px; border-bottom:1.5px solid var(--line); }
.woocommerce-cart .woocommerce-cart-form .shop_table td { padding:16px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
.woocommerce-cart .woocommerce-cart-form .product-thumbnail img { width:64px; height:64px; object-fit:cover; border-radius:12px; }
.woocommerce-cart .woocommerce-cart-form .product-name a { font-weight:600; color:var(--ink); }
.woocommerce-cart .woocommerce-cart-form .product-remove .remove { display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; background:transparent; color:var(--gold); font-size:1.6rem; line-height:1; text-decoration:none; transition:var(--t); }
.woocommerce-cart .woocommerce-cart-form .product-remove .remove:hover { background:var(--gold-soft); color:var(--gold); }

.youzhen-cart-actions { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:6px 0 2px; }
.youzhen-coupon { display:flex; align-items:center; gap:10px; flex:1 1 360px; max-width:520px; }
.youzhen-coupon-field { position:relative; flex:1; display:flex; align-items:center; }
.youzhen-coupon-field svg { position:absolute; left:16px; width:18px; height:18px; color:var(--ink-soft); pointer-events:none; }
.youzhen-coupon-field input { width:100%; padding:.8em 1.1em .8em 44px; border:1.5px solid var(--line); border-radius:99px; background:var(--cream-2); font-size:.96rem; color:var(--ink); transition:var(--t); }
.youzhen-coupon-field input:focus { outline:none; border-color:var(--sage); background:#fff; }
.youzhen-btn-coupon { background:var(--ink); color:#fff; border:none; border-radius:99px; padding:.82em 1.6em; font-family:var(--ff-head); font-weight:600; font-size:.92rem; cursor:pointer; white-space:nowrap; transition:var(--t); }
.youzhen-btn-coupon:hover { background:var(--sage-dark); transform:translateY(-1px); }
.youzhen-cart-update { margin-left:auto; }
.youzhen-btn-update { background:transparent; color:var(--ink-soft); border:1.5px solid var(--line); border-radius:99px; padding:.82em 1.6em; font-family:var(--ff-head); font-weight:600; font-size:.92rem; cursor:pointer; transition:var(--t); }
.youzhen-btn-update:hover { border-color:var(--sage); color:var(--ink); background:var(--sage-soft); }

@media (max-width:720px){
  .youzhen-cart-actions { flex-direction:column; align-items:stretch; gap:16px; }
  .youzhen-coupon { flex-direction:column; align-items:stretch; max-width:none; }
  .youzhen-btn-coupon { width:100%; }
  .youzhen-cart-update { margin-left:0; }
  .youzhen-btn-update { width:100%; }
}

/* Cart totals box */
.woocommerce-cart .cart-collaterals .cart_totals { background:#fff; border-radius:var(--radius); padding:26px; box-shadow:var(--shadow); }
.woocommerce-cart .cart-collaterals .cart_totals h2 { font-family:var(--ff-head); font-size:1.25rem; margin:0 0 18px; }
.woocommerce-cart .cart-collaterals .shop_table { width:100%; }
.woocommerce-cart .cart-collaterals .shop_table td { padding:10px 0; border-bottom:1px solid var(--line); }
.woocommerce-cart .cart-collaterals .shop_table tr:last-child td { border-bottom:none; font-family:var(--ff-head); font-weight:700; font-size:1.1rem; }
.woocommerce-cart .cart-collaterals .checkout-button { display:flex; justify-content:center; width:100%; background:var(--ink); color:#fff; border-radius:99px; padding:1em; font-family:var(--ff-head); font-weight:600; text-decoration:none; margin-top:16px; transition:var(--t); }
.woocommerce-cart .cart-collaterals .checkout-button:hover { background:var(--sage-dark); }

/* ---- Gold star ratings (override WooCommerce default fill color) ---- */
.star-rating::before      { color: #dcdcdc !important; }
.star-rating span::before { color: #f5b301 !important; }

/* ---- Standalone all-reviews page (opens in a new tab) ---- */
.yz-reviews-page { max-width: 860px; margin: 0 auto; padding: 48px 20px; }
.yz-reviews-page h1 { font-size: 1.6rem; margin: 0 0 .2em; }
.yz-agg { margin: 8px 0 28px; color: #666; }
.yz-review { padding: 18px 0; border-top: 1px solid #ececec; }
.yz-r-user { display: flex; align-items: center; gap: 12px; }
.yz-review-avatar-img { border-radius: 50%; width: 48px; height: 48px; object-fit: cover; flex: 0 0 auto; }
.yz-r-meta { display: flex; flex-direction: column; gap: 2px; }
.yz-r-name { font-weight: 600; font-size: .98rem; }
.yz-r-meta .star-rating { font-size: .8rem; }
.yz-date { margin-left: auto; color: #999; font-weight: 400; font-size: .85rem; }
.yz-r-body { margin-top: 8px; color: #333; line-height: 1.7; }
.yz-back { margin-top: 32px; }
.yz-back a { color: #c8881f; font-weight: 600; text-decoration: none; }
.woocommerce-product-rating { cursor: pointer; }

/* ---- My Account: 个人资料 (custom avatar + nickname) ---- */
.youzhen-profile { max-width: 560px; }
.youzhen-profile-title { font-size: 1.4rem; font-family: var(--ff-head); margin: 0 0 .25em; }
.youzhen-profile-desc { color: var(--ink-soft); margin: 0 0 1.6em; }
.youzhen-profile-form { display: flex; flex-direction: column; gap: 1.6rem; }
.yz-profile-row { display: flex; align-items: center; gap: 22px; }
.yz-profile-avatar-img { border-radius: 50%; display: block; width: 96px; height: 96px; object-fit: cover; }
.yz-profile-avatar-controls { display: flex; flex-direction: column; gap: 8px; }
.yz-upload-btn {
	position: relative; overflow: hidden; display: inline-block; cursor: pointer;
	background: var(--ink); color: #fff; font-family: var(--ff-head); font-weight: 600;
	padding: .6em 1.1em; border-radius: 99px; font-size: .9rem; width: fit-content;
}
.yz-upload-btn input[type="file"] {
	position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0;
}
.yz-remove-avatar { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-soft); cursor: pointer; }
.yz-profile-hint { margin: 4px 0 0; font-size: .8rem; color: #999; }
.yz-profile-field { display: flex; flex-direction: column; gap: 8px; }
.yz-profile-field label { font-weight: 600; font-family: var(--ff-head); }
.yz-profile-field input[type="text"] {
	border: 1px solid var(--line); border-radius: var(--radius); padding: .7em .9em;
	font-size: .95rem; font-family: inherit; background: #fff; color: var(--ink);
}
.yz-profile-field input[type="text"]:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(124,144,130,.15); }
.youzhen-profile-save {
	align-self: flex-start; background: var(--gold); color: #fff; border: none;
	font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
	padding: .8em 1.8em; border-radius: 99px; cursor: pointer; transition: var(--t);
}
.youzhen-profile-save:hover { background: var(--gold-soft); }

/* Drag-and-drop zone for the avatar upload (prevents the browser "not allowed"
   cursor when a file is dragged over the page). */
body.yz-dragging,
body.yz-dragging * {
	cursor: default !important;
}
.yz-dropzone {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border: 2px dashed var(--line);
	border-radius: var(--radius);
	transition: border-color var(--t), background var(--t);
	cursor: default;
}
.yz-dropzone.drag {
	border-color: var(--gold);
	background: rgba(245, 179, 1, .08);
}
.yz-drop-hint { font-size: .78rem; color: #999; }

/* Success / error notices shown inline on the profile screen. */
.yz-profile-notice {
	padding: .9em 1.1em;
	border-radius: var(--radius);
	margin-bottom: 1.2em;
	font-size: .92rem;
}
.yz-profile-notice--success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
}
.yz-profile-notice--error {
	background: #ffebee;
	color: #c62828;
	border: 1px solid #ffcdd2;
}

@media (max-width: 600px) {
	.yz-profile-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   FAQ / Help Centre  (page-faq.php)
   Namespaced .yz-faq* so nothing here can collide with the
   product-page accordion further up this file.
   ============================================================ */

/* Belt-and-braces: JS toggles [hidden] on cards and groups, and no later
   display rule should ever win over it. */
.yz-faq-item[hidden],
.yz-faq-group[hidden],
.yz-faq-empty[hidden],
.yz-faq-clear[hidden] { display: none !important; }

/* ---- Hero + search ---- */
.yz-faq-hero .yz-faq-sub {
	max-width: 620px;
	margin: 0 auto 6px;
	color: var(--ink-soft);
	font-size: 1.02rem;
}
.yz-faq-hero .breadcrumb { margin-bottom: 26px; }

.yz-faq-search {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 520px;
	margin: 0 auto;
}
.yz-faq-search-ico {
	position: absolute;
	left: 18px;
	display: flex;
	color: var(--ink-soft);
	pointer-events: none;
}
.yz-faq-search input[type="search"] {
	width: 100%;
	padding: 15px 48px;
	font-family: var(--ff-body);
	font-size: 1rem;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 999px;
	box-shadow: var(--shadow-sm);
	transition: border-color var(--t), box-shadow var(--t);
	-webkit-appearance: none;
	appearance: none;
}
.yz-faq-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.yz-faq-search input[type="search"]::placeholder { color: var(--ink-soft); opacity: .75; }
.yz-faq-search input[type="search"]:focus {
	outline: none;
	border-color: var(--sage);
	box-shadow: 0 0 0 4px rgba(124, 144, 130, .16);
}
.yz-faq-clear {
	position: absolute;
	right: 14px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	line-height: 1;
	color: var(--ink-soft);
	background: var(--sage-soft);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background var(--t), color var(--t);
}
.yz-faq-clear:hover { background: var(--sage); color: #fff; }

.yz-faq-count {
	min-height: 1.2em;
	margin: 14px 0 0;
	font-size: .88rem;
	color: var(--ink-soft);
}

/* ---- Body ---- */
.yz-faq-section .youzhen-back-btn { margin-bottom: 22px; }

.yz-faq-notice {
	padding: 18px 22px;
	margin-bottom: 30px;
	background: var(--sage-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: .96rem;
	line-height: 1.75;
}
.yz-faq-notice > :last-child { margin-bottom: 0; }

/* ---- Category chips ---- */
.yz-faq-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 34px;
}
.yz-faq-chip {
	padding: 9px 18px;
	font-family: var(--ff-body);
	font-size: .9rem;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 999px;
	cursor: pointer;
	transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.yz-faq-chip:hover { border-color: var(--sage); color: var(--sage-dark); transform: translateY(-1px); }
.yz-faq-chip.is-active {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

/* ---- Groups ---- */
.yz-faq-group { margin-bottom: 40px; scroll-margin-top: 100px; }
.yz-faq-group:last-child { margin-bottom: 0; }
.yz-faq-cat-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-family: var(--ff-head);
	font-size: 1.06rem;
	letter-spacing: .02em;
	color: var(--sage-dark);
}
.yz-faq-cat-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}

/* ---- Q&A card (native <details>) ---- */
.yz-faq-item {
	margin-bottom: 12px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	scroll-margin-top: 100px;
	transition: border-color var(--t), box-shadow var(--t);
}
.yz-faq-item:hover { border-color: var(--sage); }
.yz-faq-item[open] { border-color: var(--sage); box-shadow: var(--shadow); }

.yz-faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 17px 20px;
	margin: 0;
	font-family: var(--ff-head);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.55;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
}
/* Remove the default disclosure triangle in every engine. */
.yz-faq-q::-webkit-details-marker { display: none; }
.yz-faq-q::marker { content: ""; }
.yz-faq-q:focus-visible {
	outline: 2px solid var(--sage);
	outline-offset: -2px;
	border-radius: var(--radius-sm);
}
.yz-faq-qt { flex: 1; }
.yz-faq-ico {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: var(--sage-dark);
	background: var(--sage-soft);
	border-radius: 50%;
	transition: transform var(--t), background var(--t), color var(--t);
}
.yz-faq-item[open] .yz-faq-ico {
	transform: rotate(180deg);
	background: var(--sage);
	color: #fff;
}

.yz-faq-a {
	padding: 0 20px 19px;
	color: var(--ink-soft);
	font-size: .96rem;
	line-height: 1.85;
}
.yz-faq-a p { margin: 0; }
.yz-faq-a a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.yz-faq-a a:hover { color: var(--ink); }

/* ---- Empty search state ---- */
.yz-faq-empty {
	padding: 46px 24px;
	text-align: center;
	background: var(--cream-2);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
}
.yz-faq-empty-t {
	margin: 0 0 6px;
	font-family: var(--ff-head);
	font-size: 1.1rem;
	color: var(--ink);
}
.yz-faq-empty-d { margin: 0; font-size: .94rem; color: var(--ink-soft); }

/* ---- Bottom CTA ---- */
.yz-faq-cta { text-align: center; }
.yz-faq-cta h2 { margin: 0 0 10px; font-family: var(--ff-head); font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
.yz-faq-cta p { margin: 0 0 26px; color: var(--ink-soft); }
.yz-faq-cta-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

@media (max-width: 600px) {
	.yz-faq-search input[type="search"] { padding: 13px 44px; font-size: .95rem; }
	.yz-faq-chips { gap: 8px; margin-bottom: 26px; }
	.yz-faq-chip { padding: 8px 15px; font-size: .85rem; }
	.yz-faq-q { padding: 15px 16px; font-size: .96rem; }
	.yz-faq-a { padding: 0 16px 17px; }
	.yz-faq-cta-btns .btn { width: 100%; justify-content: center; }
}

/* Users who prefer reduced motion get instant, non-animated interactions. */
@media (prefers-reduced-motion: reduce) {
	.yz-faq-item,
	.yz-faq-chip,
	.yz-faq-ico,
	.yz-faq-search input[type="search"] { transition: none; }
}

/* ===================================================================
   Newsletter / marketing opt-in — WooCommerce checkout
   Two consent checkboxes shown above the Place Order button.
   Reuses theme tokens (--sage / --cream / --ink / --radius / --shadow-sm).
   =================================================================== */
.yz-optin {
	margin: 28px 0 8px;
	padding: 22px 24px;
	background: var(--sage-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.yz-optin-title {
	margin: 0 0 6px;
	font-family: var(--ff-head);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--ink);
}
.yz-optin-lead {
	margin: 0 0 14px;
	font-size: .92rem;
	color: var(--ink-soft);
}
.yz-optin-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
	font-size: .95rem;
	color: var(--ink);
	cursor: pointer;
}
.yz-optin-row input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--sage);
	cursor: pointer;
}
.yz-optin-row span { line-height: 1.5; }
.yz-optin-note {
	margin: 6px 0 0;
	font-size: .8rem;
	color: var(--ink-soft);
}

/* Tighten spacing inside WooCommerce's checkout column. */
.woocommerce-checkout .yz-optin { max-width: 100%; }

/* DDP / tax-included reassurance notice (above Place Order button). */
.yz-ddp {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 18px 0 8px;
	padding: 16px 18px;
	background: var(--cream);
	border: 1px solid var(--line);
	border-left: 3px solid var(--sage);
	border-radius: var(--radius);
}
.yz-ddp-ico {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	font-size: .95rem;
	font-weight: 700;
	color: #fff;
	background: var(--sage);
	border-radius: 50%;
}
.yz-ddp-body { flex: 1 1 auto; }
.yz-ddp-title {
	margin: 0 0 4px;
	font-family: var(--ff-head);
	font-size: 1rem;
	font-weight: 600;
	color: var(--ink);
}
.yz-ddp-text {
	margin: 0 0 4px;
	font-size: .88rem;
	line-height: 1.55;
	color: var(--ink-soft);
}
.yz-ddp-text:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
	.yz-optin { padding: 18px 16px; }
	.yz-optin-title { font-size: 1.05rem; }
	.yz-ddp { padding: 14px 14px; }
}
