/* ==========================================================================
   YueF Jewelry · 剩余全站上线页面「白底 · 孔雀绿 × 古金」统一重构样式包 (v1.2 生产验证版)
   覆盖范围（与已上线新版首页 v2、详情页、Cut Guide、页头、方案 B 页脚 100% 同源）：
   1. 商城与 34 个分类筛选页 + 集合页 (/products/, /product-category/*, /collection/*)
   2. 3D CAD 定制页 (/yuef-jewelry-customization/, Page 28388)
   3. 尺码与试戴指南 (/jewelry-size-guide/, Page 27705)
   4. 全站服务/政策/保养/追踪/博客文章 (.yuef-content-experience & .yuef-xp)
   5. Journal 杂志聚合页 (/journal/, .yja-journal)
   6. WooCommerce 购物车 / 结账 / 我的账户 (.woocommerce-cart, .woocommerce-checkout, .woocommerce-account)
   ========================================================================== */

/* --------------------------------------------------------------------------
   模块 1：商城、商品分类页与筛选抽屉 (覆盖 child-filter.css)
   旧色：#201d17 黑褐 / #faf9f6 暖米 / #96713b 土金 -> 新色：孔雀绿 × 深墨绿 × 古金
   -------------------------------------------------------------------------- */
html body .yf-catalog {
  --yf-ink: #163F37 !important;
  --yf-paper: #FFFFFF !important;
  --yf-gold: #82612F !important;
  --yf-muted: #5C6D67 !important;
  --yf-line: #DFE5E0 !important;
  background-color: #FFFFFF !important;
  color: #34443F;
}
.yf-catalog h1,
.yf-catalog .yf-panel-head h2,
.yf-catalog .yf-facet > summary,
.yf-catalog .yf-more > summary {
  color: #163F37 !important;
  font-family: "Fraunces", Georgia, serif !important;
}
.yf-catalog .yf-trigger,
.yf-catalog .yf-clear,
.yf-catalog .yf-eyebrow {
  color: #82612F !important;
}
.yf-catalog .yf-trigger:hover,
.yf-catalog .yf-quick:hover {
  color: #05634F !important;
}
.yf-catalog .yf-badge {
  background: #05634F !important;
  color: #FFFFFF !important;
}
.yf-catalog .yf-chip {
  background: #EDF5EF !important;
  border-color: #C2DEC9 !important;
  color: #163F37 !important;
}
.yf-catalog .yf-chip:hover {
  border-color: #05634F !important;
  color: #05634F !important;
}
.yf-catalog .yf-panel {
  background: #FFFFFF !important;
  border-color: #DFE5E0 !important;
}
.yf-catalog .yf-panel-head,
.yf-catalog .yf-panel-foot {
  background: #F1F4EF !important;
  border-color: #DFE5E0 !important;
}
.yf-catalog .yf-option input {
  border-color: #B8C4BE !important;
  accent-color: #05634F;
}
.yf-catalog .yf-option input:checked {
  border-color: #05634F !important;
  background-color: #05634F !important;
}
.yf-catalog .yf-option-search input,
.yf-catalog .yf-price-fields input {
  border-color: #B8C4BE !important;
  background: #FFFFFF !important;
  color: #163F37 !important;
}
.yf-catalog .yf-option-search input:focus,
.yf-catalog .yf-price-fields input:focus {
  border-color: #05634F !important;
  outline: none;
}
.yf-catalog .yf-apply {
  background: #05634F !important;
  border-color: #05634F !important;
  color: #FFFFFF !important;
}
.yf-catalog .yf-apply:hover {
  background: #044E3E !important;
  border-color: #044E3E !important;
}
.yf-catalog .yf-load-more-button {
  border-color: #82612F !important;
  color: #163F37 !important;
  background: #FFFFFF !important;
}
.yf-catalog .yf-load-more-button:hover {
  background: #05634F !important;
  border-color: #05634F !important;
  color: #FFFFFF !important;
}
.yf-catalog .woocommerce-pagination ul li span.current {
  background: #05634F !important;
  color: #FFFFFF !important;
}
.yf-catalog .yf-price-error,
.yf-catalog .yf-error,
.yf-catalog .yf-load-error {
  color: #9E3333 !important;
}

/* 修复分类工具栏右侧 Sort: Featured 挤压折行 */
.yf-catalog .yf-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}
.yf-catalog .yf-sort-form {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  border-left-color: #DFE5E0 !important;
}
.yf-catalog .yf-sort-form label {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  color: #5C6D67 !important;
}
.yf-catalog .yf-sort-form select {
  width: auto !important;
  min-width: 168px;
  padding-right: 24px !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  color: #163F37 !important;
  font-weight: 600 !important;
}
@media (max-width: 767px) {
  .yf-catalog .yf-sort-form select {
    min-width: 112px;
    max-width: 44vw;
  }
}

/* 商品列表卡片精修 */
.woocommerce ul.products li.product {
  border-color: #DFE5E0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title a {
  color: #163F37 !important;
  font-family: "Fraunces", Georgia, serif !important;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
.woocommerce ul.products li.product:hover h2.woocommerce-loop-product__title a {
  color: #05634F !important;
}
.woocommerce ul.products li.product .price {
  color: #163F37 !important;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   模块 2：3D CAD 定制落地页 (/yuef-jewelry-customization/, Page 28388)
   采用高特异性 html body 选择器压过正文 <body> 内联 <style>
   -------------------------------------------------------------------------- */
html body.page-id-28388 .yuef-custom,
html body .yuef-custom {
  --yc-ink: #163F37 !important;
  --yc-muted: #5C6D67 !important;
  --yc-gold: #E5CFA3 !important;
  --yc-gold-deep: #82612F !important;
  --yc-cream: #F7F2E8 !important;
  --yc-line: #DFE5E0 !important;
  --yc-white: #FFFFFF !important;
  background: #FFFFFF !important;
  color: #34443F !important;
  font-family: "Manrope", system-ui, sans-serif !important;
}
html body .yuef-custom :is(h1, h2, h3) {
  font-family: "Fraunces", Georgia, serif !important;
  color: #163F37;
}
html body .yuef-custom .yc-hero {
  background-color: #0F3B32 !important;
}
html body .yuef-custom .yc-hero :is(h1, h2) {
  color: #FFFFFF !important;
}
html body .yuef-custom .yc-hero :is(h1, h2) em {
  color: #E5CFA3 !important;
}
html body .yuef-custom .yc-hero::after {
  background: linear-gradient(90deg, rgba(15, 59, 50, 0.93) 0%, rgba(15, 59, 50, 0.76) 45%, rgba(15, 59, 50, 0.28) 76%, rgba(15, 59, 50, 0.12) 100%) !important;
}
html body .yuef-custom .yc-hero p {
  color: #EEF3F0 !important;
  font-weight: 450;
}
html body .yuef-custom .yc-hero__note {
  color: #DCE6E1 !important;
}
html body .yuef-custom .yc-button,
html body .yuef-custom button[type="submit"],
html body .yuef-custom .wpforms-submit {
  background: #05634F !important;
  border-color: #05634F !important;
  color: #FFFFFF !important;
}
html body .yuef-custom .yc-button:hover,
html body .yuef-custom button[type="submit"]:hover,
html body .yuef-custom .wpforms-submit:hover {
  background: #044E3E !important;
  border-color: #044E3E !important;
  color: #FFFFFF !important;
}
html body .yuef-custom .yc-hero .yc-button:not(.yc-button--light) {
  border-color: #E5CFA3 !important;
}
html body .yuef-custom .yc-button--light {
  background: transparent !important;
  border-color: rgba(229, 207, 163, 0.65) !important;
  color: #FAF8F3 !important;
}
html body .yuef-custom .yc-button--light:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #E5CFA3 !important;
  color: #E5CFA3 !important;
}
html body .yuef-custom .yc-assurance {
  background: #F1F4EF !important;
  border-bottom: 1px solid #DFE5E0 !important;
}
html body .yuef-custom input:focus,
html body .yuef-custom select:focus,
html body .yuef-custom textarea:focus {
  border-color: #05634F !important;
  outline: 1px solid #05634F !important;
}

/* --------------------------------------------------------------------------
   模块 3：尺码与试戴指南 (/jewelry-size-guide/, Page 27705)
   旧色：#11100e 黑 / #294c50 灰青 / #a98545 暗金 / #e8eeee 蓝灰
   -------------------------------------------------------------------------- */
html body .yuef-fit-guide {
  --yfg-ink: #163F37 !important;
  --yfg-muted: #5C6D67 !important;
  --yfg-gold: #E5CFA3 !important;
  --yfg-gold-deep: #82612F !important;
  --yfg-soft: #F1F4EF !important;
  --yfg-cool: #EDF5EF !important;
  --yfg-teal: #05634F !important;
  --yfg-line: #DFE5E0 !important;
  --yfg-white: #FFFFFF !important;
  background: #FFFFFF !important;
  color: #34443F;
  font-family: "Manrope", system-ui, sans-serif !important;
}
html body .yuef-fit-guide :is(h1, h2, h3) {
  font-family: "Fraunces", Georgia, serif !important;
}
html body .yuef-fit-guide .yfg-hero,
html body .yuef-fit-guide [class*="dark"],
html body .yuef-fit-guide [class*="banner"] {
  background-color: #0F3B32 !important;
}
html body .yuef-fit-guide .yfg-hero::after {
  background: linear-gradient(180deg, rgba(15, 59, 50, 0.56) 0%, rgba(15, 59, 50, 0.88) 100%) !important;
}
html body .yuef-fit-guide .yfg-button:not(.yfg-button--light) {
  background-color: #05634F !important;
  border-color: #05634F !important;
  color: #FFFFFF !important;
}
html body .yuef-fit-guide .yfg-button:not(.yfg-button--light):hover {
  background-color: #044E3E !important;
  border-color: #044E3E !important;
  color: #FFFFFF !important;
}
html body .yuef-fit-guide .yfg-hero :is(h1, h2) {
  color: #FFFFFF !important;
}
html body .yuef-fit-guide .yfg-hero :is(h1, h2) em {
  color: #E5CFA3 !important;
}
html body .yuef-fit-guide [role="tab"][aria-selected="true"] {
  background-color: #05634F !important;
  border-color: #05634F !important;
  color: #FFFFFF !important;
}
html body .yuef-fit-guide .yfg-result {
  background: #0F3B32 !important;
  border-left: 3px solid #E5CFA3 !important;
  color: #FFFFFF !important;
}
html body .yuef-fit-guide .yfg-result .yfg-result__label {
  color: #E5CFA3 !important;
}
html body .yuef-fit-guide .yfg-result > strong {
  color: #FFFFFF !important;
  font-family: "Fraunces", Georgia, serif !important;
}
html body .yuef-fit-guide .yfg-result > span,
html body .yuef-fit-guide .yfg-result p {
  color: #EEF3F0 !important;
}
html body .yuef-fit-guide table tbody tr:hover {
  background: #EDF5EF !important;
}

/* --------------------------------------------------------------------------
   模块 4：全站服务 / 政策 / 保养 / 追踪 / 博客正文 (.yuef-content-experience & .yuef-xp)
   旧色：#11100e 纯黑 / #294c50 灰青 / #f1e9e5 脏粉 / #aa7c32 土金 / #171714 黑 Hero
   -------------------------------------------------------------------------- */
html body.yuef-content-experience,
html body .yuef-content-experience,
html body .yuef-xp {
  --yxp-ink: #163F37 !important;
  --yxp-charcoal: #0F3B32 !important;
  --yxp-muted: #5C6D67 !important;
  --yxp-line: #DFE5E0 !important;
  --yxp-gold: #82612F !important;
  --yxp-gold-light: #E5CFA3 !important;
  --yxp-teal: #05634F !important;
  --yxp-cool: #F1F4EF !important;
  --yxp-blush: #F7F2E8 !important;   /* 彻底替换旧脏粉 #f1e9e5 为统一暖米白 #F7F2E8 */
  --yxp-soft: #F1F4EF !important;
  --yxp-white: #FFFFFF !important;
  color: #34443F;
  font-family: "Manrope", system-ui, sans-serif;
}
.yuef-xp :is(h1, h2, h3),
.yuef-content-experience :is(h1, h2, h3) {
  font-family: "Fraunces", Georgia, serif;
}
.yuef-content-experience :is(.yxp-hero, .yxp-article-hero),
.yuef-xp :is(.yxp-hero, .yxp-article-hero) {
  background-color: #0F3B32 !important;
}
.yuef-content-experience :is(.yxp-hero, .yxp-article-hero)::before,
.yuef-xp :is(.yxp-hero, .yxp-article-hero)::before {
  background-color: #0F3B32 !important;
}
.yuef-content-experience :is(.yxp-hero, .yxp-article-hero)::after,
.yuef-xp :is(.yxp-hero, .yxp-article-hero)::after {
  background: linear-gradient(180deg, rgba(15, 59, 50, 0.54) 0%, rgba(15, 59, 50, 0.90) 100%) !important;
}
.yuef-content-experience :is(.yxp-hero, .yxp-article-hero) h1,
.yuef-xp :is(.yxp-hero, .yxp-article-hero) h1 {
  color: #FFFFFF !important;
  font-weight: 500;
}
.yuef-content-experience :is(.yxp-hero, .yxp-article-hero) h1 em,
.yuef-xp :is(.yxp-hero, .yxp-article-hero) h1 em {
  color: #E5CFA3 !important;
}
.yuef-content-experience .yxp-hero__lead,
.yuef-xp .yxp-hero__lead {
  color: #EEF3F0 !important;
  font-weight: 450;
}

/* 根治 /shipping-delivery/ (23694) 重复撞图 & /history-of-moissanite/ (21002) 带字拼贴图叠字问题 */
body.page-id-23694 .yxp-hero,
body.postid-21002 .yxp-article-hero,
.yxp-hero[style*="CRAFTING-DELIVERY.webp"],
.yxp-article-hero[style*="JEWELRY-SHOOK"] {
  --yxp-hero-image: none !important;
  background: radial-gradient(ellipse at 74% 26%, rgba(229, 207, 163, 0.16) 0%, rgba(5, 99, 79, 0.34) 40%, #0F3B32 82%) !important;
  background-image: radial-gradient(ellipse at 74% 26%, rgba(229, 207, 163, 0.16) 0%, rgba(5, 99, 79, 0.34) 40%, #0F3B32 82%) !important;
}
body.page-id-23694 .yxp-hero::before,
body.postid-21002 .yxp-article-hero::before,
.yxp-hero[style*="CRAFTING-DELIVERY.webp"]::before,
.yxp-article-hero[style*="JEWELRY-SHOOK"]::before,
.yxp-article-hero[style*="JEWELRY-SHOOK"] .yxp-article-hero__media,
.yxp-article-hero[style*="JEWELRY-SHOOK"] img,
body.postid-21002 .yxp-article-hero .yxp-article-hero__media,
body.postid-21002 .yxp-article-hero img {
  display: none !important;
  background-image: none !important;
  opacity: 0 !important;
}

.yuef-content-experience :is(.yxp-button, .yxp-btn, button[type="submit"], .wpforms-submit),
.yuef-xp :is(.yxp-button, .yxp-btn, button[type="submit"], .wpforms-submit) {
  background-color: #05634F !important;
  border-color: #05634F !important;
  color: #FFFFFF !important;
}
.yuef-content-experience :is(.yxp-button, .yxp-btn, button[type="submit"], .wpforms-submit):hover,
.yuef-xp :is(.yxp-button, .yxp-btn, button[type="submit"], .wpforms-submit):hover {
  background-color: #044E3E !important;
  border-color: #044E3E !important;
  color: #FFFFFF !important;
}
.yuef-content-experience :where(a, button, input, textarea, select, summary):focus-visible,
.yuef-xp :where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid #82612F !important;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   模块 5：Journal 杂志聚合页 (/journal/, .yja-journal)
   旧色：#0d0c0a 纯黑 / #1d1b17 黑褐 / #9a7637 / 闪烁斜体流光动画
   -------------------------------------------------------------------------- */
html body .yja-journal {
  --yja-paper: #FFFFFF !important;
  --yja-soft: #F1F4EF !important;
  --yja-ink: #163F37 !important;
  --yja-copy: #34443F !important;
  --yja-muted: #5C6D67 !important;
  --yja-line: #DFE5E0 !important;
  --yja-gold: #82612F !important;
  --yja-champagne: #E5CFA3 !important;
  --yja-dark: #0F3B32 !important;
  background: #FFFFFF !important;
}
html body .yja-journal :is(h1, h2, h3) em {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: #82612F !important;
  animation: none !important;
}
html body .yja-journal .yja-hero::after {
  background: linear-gradient(180deg, rgba(15, 59, 50, 0.52) 0%, rgba(15, 59, 50, 0.88) 100%) !important;
}
html body .yja-journal .yja-hero h1 em,
html body .yja-journal .yja-motion h2 em {
  color: #E5CFA3 !important;
}
html body .yja-journal .yja-button {
  background: #05634F !important;
  border-color: #05634F !important;
  color: #FFFFFF !important;
}
html body .yja-journal .yja-button:hover {
  background: #044E3E !important;
  border-color: #044E3E !important;
  color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   模块 6：WooCommerce 交易闭环 (/cart/, /checkout/, /my-account/)
   -------------------------------------------------------------------------- */
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account {
  background: #FFFFFF !important;
  color: #34443F;
  font-family: "Manrope", system-ui, sans-serif;
}
body.woocommerce-cart :is(h1, h2, h3),
body.woocommerce-checkout :is(h1, h2, h3),
body.woocommerce-account :is(h1, h2, h3) {
  color: #163F37 !important;
  font-family: "Fraunces", Georgia, serif !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order,
.woocommerce-account button.woocommerce-Button {
  background-color: #05634F !important;
  border-color: #05634F !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 46px;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #place_order:hover,
.woocommerce-account button.woocommerce-Button:hover {
  background-color: #044E3E !important;
  border-color: #044E3E !important;
  color: #FFFFFF !important;
}
.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: #F1F4EF !important;
  border: 1px solid #DFE5E0 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: #EDF5EF !important;
  color: #05634F !important;
  border-left: 3px solid #05634F !important;
  font-weight: 700;
}
.woocommerce-info,
.woocommerce-message {
  background: #F7F2E8 !important;
  border-top-color: #82612F !important;
  color: #163F37 !important;
}
.woocommerce-error {
  background: #FAF0EF !important;
  border-top-color: #9E3333 !important;
  color: #9E3333 !important;
}
