/* ============================================================
   THEMARMOHOME — PDP 信息层（2026-10-28 / 修订 2026-10-29）
   短描述要素点 / SIZE·FINISH 选项框 / 规格五点 / 服务图标 / 支付徽章
   原则：动效只做「操作反馈」，不做进场表演
   注：选项胶囊由 tmh.js 第 7 段生成（.opt / .vals a），
       这里只做视觉升级与 hover 反馈，不重建控件 —— 重建会导致两套按钮并存
   ============================================================ */

/* ---------- 1. 短描述：要素点 ---------- */
body.tmh .woocommerce-product-details__short-description{margin:16px 0 0}
body.tmh .tmh-sd-p1{margin:0 0 13px;font-size:15px;line-height:1.68;color:var(--ink-2)}
body.tmh .tmh-sd{display:flex;flex-wrap:wrap;gap:10px 24px;margin:0;padding:0;list-style:none}
body.tmh .tmh-sd-p{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;
  font-size:14.5px;line-height:1.55;color:var(--ink-2)}
body.tmh .tmh-sd-p::before{content:"";flex:0 0 auto;width:5px;height:5px;border-radius:50%;
  background:var(--gold);animation:tmhDotBreath 2.8s ease-in-out infinite}
body.tmh .tmh-sd-p:nth-child(2)::before{animation-delay:.56s}
body.tmh .tmh-sd-p:nth-child(3)::before{animation-delay:1.12s}
body.tmh .tmh-sd-p:nth-child(4)::before{animation-delay:1.68s}
body.tmh .tmh-sd-p:nth-child(5)::before{animation-delay:2.24s}
@keyframes tmhDotBreath{0%,100%{opacity:.42;transform:scale(.72)}50%{opacity:1;transform:scale(1)}}

/* ---------- 2. SIZE / FINISH：从灰标签升为页面重点 ---------- */
body.tmh .opt{margin-bottom:23px}
body.tmh .opt .olabel{position:relative;display:block;margin:0 0 12px;padding-left:11px;
  font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink);line-height:1.4}
body.tmh .opt .olabel::before{content:"";position:absolute;left:0;top:.44em;width:4px;height:4px;background:var(--gold)}
body.tmh .vals{gap:10px}
body.tmh .vals a{border:1px solid var(--line-2);border-radius:2px;background:#fff;
  padding:12px 21px;min-height:46px;font-size:14px;font-weight:500;letter-spacing:.01em;color:var(--ink);
  display:inline-flex;align-items:center;justify-content:center;
  transition:border-color .18s,background .18s,color .18s,box-shadow .18s,transform .18s}
body.tmh .vals a:hover{border-color:var(--gold);background:#fffdf8;color:var(--gold-text);
  box-shadow:0 7px 16px -9px rgba(154,123,63,.62);
  animation:tmhHop .32s cubic-bezier(.34,1.46,.5,1) forwards}
body.tmh .vals a:active{animation:none;transform:translateY(0) scale(.985)}
body.tmh .vals a.on{border-color:var(--gold);background:#fbf6ec;color:var(--gold-text);
  font-weight:600;box-shadow:inset 0 0 0 1px var(--gold)}
body.tmh .vals a.on:hover{color:var(--gold-text);border-color:var(--gold)}
/* 没有 pa_size 变体时由 PHP 输出的「唯一规格」框，形态与可选胶囊一致 */
body.tmh .vals span.on{border:1px solid var(--gold);border-radius:2px;background:#fbf6ec;
  color:var(--gold-text);padding:12px 21px;min-height:46px;font-size:14px;font-weight:600;
  letter-spacing:.01em;display:inline-flex;align-items:center;justify-content:center}
body.tmh .opt .vals .sw-i{width:24px;height:24px;flex:0 0 24px;border-radius:2px}
@keyframes tmhHop{0%{transform:translateY(0)}44%{transform:translateY(-4px)}100%{transform:translateY(-2px)}}

/* ---------- 3. 规格五点 ---------- */
body.tmh .tfact{margin:20px 0 0;padding:0;border-top:1px solid var(--line)}
body.tmh .tfact-r{display:flex;align-items:baseline;justify-content:space-between;gap:20px;
  padding:9px 0;border-bottom:1px solid var(--line)}
body.tmh .tfact-k{flex:0 0 auto;position:relative;margin:0;padding-left:12px;
  font-size:11.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink);line-height:1.5}
body.tmh .tfact-k::before{content:"";position:absolute;left:0;top:.6em;width:5px;height:5px;background:var(--gold)}
body.tmh .tfact-v{margin:0;flex:1 1 auto;text-align:right;font-size:13.5px;line-height:1.5;color:var(--ink-2)}

/* ---------- 4. 服务 / 保障条图标 ---------- */
body.tmh .pi{display:block;stroke:var(--gold);fill:none;stroke-width:1.35;
  stroke-linecap:round;stroke-linejoin:round;transition:transform .3s,stroke .3s}
body.tmh .pserv-i .pi{width:21px;height:21px;margin:0 0 9px}
body.tmh .pserv-i:hover .pi{transform:translateY(-1.5px);stroke:var(--gold-text)}
body.tmh .passure-i .pi{width:22px;height:22px;margin:0 0 10px}

/* ---------- 5. 加购按钮 hover ---------- */
body.tmh.single-product .single_add_to_cart_button{transition:transform .2s,box-shadow .2s,background .2s}
body.tmh.single-product .single_add_to_cart_button:hover{transform:translateY(-2px);
  box-shadow:0 12px 24px -14px rgba(31,27,22,.72),inset 0 0 0 1px var(--gold-lt)}

/* ---------- 6. 支付徽章 ---------- */
body.tmh.single-product .tmh-pay .pm{display:inline-flex;align-items:center;justify-content:center;
  height:32px;padding:0;border:0;background:none;border-radius:3px;
  transition:transform .2s,box-shadow .2s}
body.tmh.single-product .tmh-pay .pm svg{display:block;height:32px;width:auto;border-radius:3px;
  box-shadow:0 1px 3px rgba(31,27,22,.13)}
body.tmh.single-product .tmh-pay .pm:hover{transform:translateY(-2px)}
body.tmh.single-product .tmh-pay .pm:hover svg{box-shadow:0 7px 14px -8px rgba(31,27,22,.4)}

/* ---------- 7. 移动端 ---------- */
@media(max-width:640px){
  body.tmh .tmh-sd{gap:8px 16px}
  body.tmh .tmh-sd-p{font-size:13.5px}
  body.tmh .tmh-sd-p1{font-size:14.5px}
  body.tmh .opt{margin-bottom:20px}
  body.tmh .opt .olabel{font-size:10.5px;margin-bottom:10px}
  body.tmh .vals a{padding:11px 17px;min-height:44px;font-size:13.5px}
  body.tmh .tfact-r{gap:12px;padding:8px 0}
  body.tmh .tfact-k{font-size:10.5px;letter-spacing:.11em}
  body.tmh .tfact-v{font-size:13px}
  body.tmh.single-product .tmh-pay .pm,body.tmh.single-product .tmh-pay .pm svg{height:29px}
}

@media (prefers-reduced-motion: reduce){
  body.tmh .tmh-sd-p::before{animation:none;opacity:1;transform:none}
  body.tmh .vals a:hover{animation:none;transform:translateY(-2px)}
  body.tmh.single-product .single_add_to_cart_button:hover{transform:none}
}

/* ---------- 8. 正文后折叠区：Key Features / FAQ（2026-10-29，对标 oixdesign 折叠 DES） ---------- */
/* 原生 details/summary，零 JS；页面打开时 KF 展开、FAQ 收起 */
body.tmh .tmh-acc{margin:38px 0 0;border-top:1px solid var(--ink)}
body.tmh .tmh-acc-i{border-bottom:1px solid var(--line)}
body.tmh .tmh-acc-i summary{position:relative;display:flex;align-items:center;gap:10px;
  padding:15px 36px 15px 0;cursor:pointer;list-style:none;
  font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink);line-height:1.4;transition:color .18s}
body.tmh .tmh-acc-i summary::-webkit-details-marker{display:none}
body.tmh .tmh-acc-i summary::before{content:"";flex:0 0 auto;width:4px;height:4px;background:var(--gold)}
body.tmh .tmh-acc-i summary::after{content:"+";position:absolute;right:8px;top:50%;
  transform:translateY(-50%);font-size:16px;font-weight:400;color:var(--ink-2);
  line-height:1;transition:color .18s}
body.tmh .tmh-acc-i[open] summary::after{content:"\2013"}
body.tmh .tmh-acc-i summary:hover,body.tmh .tmh-acc-i summary:hover::after{color:var(--gold-text)}
body.tmh .tmh-acc-b{padding:2px 0 20px}
/* Key Features：卖点 – 一句解释 */
body.tmh .tmh-kf{margin:0;padding:0;list-style:none}
body.tmh .tmh-kf li{padding:10px 0;border-bottom:1px solid var(--line)}
body.tmh .tmh-kf li:last-child{border-bottom:0;padding-bottom:0}
body.tmh .tmh-kf-t{display:block;font-size:14.5px;font-weight:600;color:var(--ink);line-height:1.5}
body.tmh .tmh-kf-d{display:block;margin-top:3px;font-size:13.5px;line-height:1.72;color:var(--ink-2)}
/* FAQ：问答列表 */
body.tmh .tmh-faq{margin:0}
body.tmh .tmh-faq-i{padding:10px 0;border-bottom:1px solid var(--line)}
body.tmh .tmh-faq-i:last-child{border-bottom:0}
body.tmh .tmh-faq-i dt{font-size:14.5px;font-weight:600;color:var(--ink);line-height:1.55}
body.tmh .tmh-faq-i dd{margin:5px 0 0;font-size:13.5px;line-height:1.75;color:var(--ink-2)}
@media(max-width:640px){
  body.tmh .tmh-acc{margin:30px 0 0}
  body.tmh .tmh-acc-i summary{padding:13px 32px 13px 0;font-size:10.5px;letter-spacing:.12em}
  body.tmh .tmh-kf-t,body.tmh .tmh-faq-i dt{font-size:14px}
  body.tmh .tmh-kf-d,body.tmh .tmh-faq-i dd{font-size:13px}
}

/* ---------- 9. 移动端常驻底部加购条（2026-10-30，对标已批准稿 v2） ---------- */
/* 固定在 #tm-tabbar 之上；桌面端完全不出现。 */
@media (max-width: 1024px) {
  /* 页面底部内边距：tabbar(~60) + 加购条(~66) + safe-area */
  body.tm-app.single-product { padding-bottom: calc(134px + env(safe-area-inset-bottom, 0px)); }

  .tmh-sticky-atc {
    position: fixed; left: 0; right: 0;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    z-index: 885;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
    background: rgba(250, 247, 242, .97);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: .5px solid rgba(33, 28, 20, .14);
    box-shadow: 0 -6px 18px rgba(20, 16, 10, .06);
  }
  .tmh-sticky-atc .sa-price {
    flex: 0 1 auto; min-width: 0; max-width: 46%;
    display: flex; flex-direction: column; justify-content: center; line-height: 1.02;
  }
  .tmh-sticky-atc .sa-from {
    font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: 2px;
  }
  .tmh-sticky-atc .sa-amt {
    font-family: Inter, 'Instrument Sans', system-ui, sans-serif;
    font-size: 15.5px; font-weight: 700; color: var(--ink);
    letter-spacing: .01em; font-variant-numeric: lining-nums;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .tmh-sticky-atc .sa-amt .woocommerce-Price-amount { color: var(--ink); }
  .tmh-sticky-atc .sa-trust {
    margin-top: 3px;
    font-size: 9px; letter-spacing: .02em; line-height: 1.2;
    color: var(--ink-soft);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .tmh-sticky-atc .sa-amt del,
  .tmh-sticky-atc .sa-amt .woocommerce-Price-amount del { color: var(--ink-soft); }
  .tmh-sticky-atc .sa-wa {
    flex: 0 0 auto; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
    height: 46px; padding: 0 13px;
    border: 1px solid var(--gold); border-radius: 0;
    background: #fff; color: var(--gold-deep); text-decoration: none;
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  }
  .tmh-sticky-atc .sa-wa svg { width: 17px; height: 17px; fill: var(--gold-deep); flex: none; }
  .tmh-sticky-atc .sa-atc {
    flex: 1 1 auto; max-width: none; min-width: 0; white-space: nowrap;
    height: 48px; border: 0; border-radius: 0;
    background: var(--gold-btn); color: #fff;
    font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
    cursor: pointer; transition: background .2s;
  }
  .tmh-sticky-atc .sa-atc:active { background: var(--gold-deep); }
}
@media (min-width: 1025px) {
  .tmh-sticky-atc { display: none !important; }
}

/* ---------- 10. 移动端标题收紧（对标已批准稿：30px → 23px） ---------- */
@media (max-width: 1024px) {
  body.tmh.single-product .product_title {
    font-size: 23px; line-height: 1.18; letter-spacing: .005em;
  }
}

/* ---------- 11. 移动端：只隐藏 Related 商品卡，保留标题 + 3 条分类法链接（2026-11-07 · L1B2b） ---------- */
/* 抵消 Blocksy 的 ct-hidden-sm/md（默认在手机/平板隐藏整个区块），保留标题与内链；
   仅隐藏 .products 卡片容器与跑马灯导航。桌面端不动。 */
@media (max-width:1024px){
  body.tmh.single-product .related.products{display:block!important}
  body.tmh.single-product .related.products .products,
  body.tmh.single-product .related.products .tmh-mq-nav{display:none!important}
}



/* ---------- 12. 移动端 PDP 底部「电脑端结构」折叠为手风琴（2026-10-30） ---------- */
/* 由 tmh-pdp-sticky-atc.js 在 ≤1024 把 .tmh-pdp-extra 的两栏与 Pick your stone 色卡墙
   转成 <details>（默认收起）。这里只做折叠行视觉：金线 / 衬线标题 / 金色箭头。 */
@media (max-width: 1024px) {
  body.tmh.single-product .tmh-pdp-extra .tmh-xacc { border-top: 1px solid var(--line); }
  body.tmh.single-product .tmh-pdp-extra .tmh-xacc-sum {
    list-style: none; cursor: pointer; position: relative;
    display: flex; flex-direction: column; gap: 3px;
    padding: 16px 34px 16px 0;
  }
  body.tmh.single-product .tmh-pdp-extra .tmh-xacc-sum::-webkit-details-marker { display: none; }
  body.tmh.single-product .tmh-pdp-extra .tmh-xacc-note {
    font-family: Inter, system-ui, sans-serif; font-weight: 600;
    font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text);
  }
  body.tmh.single-product .tmh-pdp-extra .tmh-xacc-h {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px; line-height: 1.2; color: var(--ink);
  }
  body.tmh.single-product .tmh-pdp-extra .tmh-xacc-sum::after {
    content: ""; position: absolute; right: 3px; top: 50%;
    width: 9px; height: 9px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
    transform: translateY(-70%) rotate(45deg); transition: transform .22s;
  }
  body.tmh.single-product .tmh-pdp-extra .tmh-xacc[open] .tmh-xacc-sum::after {
    transform: translateY(-30%) rotate(-135deg);
  }
  body.tmh.single-product .tmh-pdp-extra .tmh-xacc-body { padding: 2px 0 16px; }
  body.tmh.single-product .tmh-pdp-extra .tmh-xacc-body .pdp-list { margin: 8px 0 0; }
  body.tmh.single-product .tmh-pdp-extra .tmh-xacc-body .pdp-lib { margin-top: 14px; }
  body.tmh.single-product .tmh-pdp-extra .tmh-xacc-body .slink { display: inline-block; margin-top: 12px; }
}

/* ---------- 13. 移动端隐藏第三方统计提示浮层 #va-note（2026-10-30） ---------- */
/* analytic.cnnusa.site 注入的 "We use anonymous analytics…" 浮层（z:99999, bottom:16）
   会压住底栏与加购条下端；结算页已用同法隐藏（见 tmh-checkout.css §10）。
   仅移动端 PDP 隐藏，统计脚本本身照常运行。 */
@media (max-width: 1024px) {
  body.single-product #va-note,
  body.single-product .va-note { display: none !important; }
}

/* ---------- 14. passure（Ordering, delivery & care）折叠行视觉（10-31） ----------
   tmh-pdp-sticky-atc.js 在 ≤1024 把 section.passure 转 <details class="tmh-xacc">，
   样式口径与第 12 段一致。 */
@media (max-width: 1024px) {
  body.tmh.single-product section.passure .tmh-xacc { border-top: 1px solid var(--line); }
  body.tmh.single-product section.passure .tmh-xacc-sum {
    list-style: none; cursor: pointer; position: relative;
    display: flex; flex-direction: column; gap: 3px;
    padding: 16px 34px 16px 0;
  }
  body.tmh.single-product section.passure .tmh-xacc-sum::-webkit-details-marker { display: none; }
  body.tmh.single-product section.passure .tmh-xacc-h {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px; line-height: 1.2; color: var(--ink);
  }
  body.tmh.single-product section.passure .tmh-xacc-sum::after {
    content: ""; position: absolute; right: 3px; top: 50%;
    width: 9px; height: 9px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
    transform: translateY(-70%) rotate(45deg); transition: transform .22s;
  }
  body.tmh.single-product section.passure .tmh-xacc[open] .tmh-xacc-sum::after {
    transform: translateY(-30%) rotate(-135deg);
  }
  body.tmh.single-product section.passure .tmh-xacc-body { padding: 2px 0 16px; }
}

/* ---------- 15. 粘性 ATC 加购成功后的 View cart 态（10-31） ---------- */
.tmh-sticky-atc .sa-atc.sa-atc--view {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

/* 2026-11-06 变体商品价格去重
   变体商品选中尺寸后，WooCommerce 会同时渲染「顶部区间价」与「变体价」，
   Blocksy 未隐藏前者，页面出现两行价格。仅当变体价已有内容时才隐藏区间价，
   未选尺寸时区间价照常显示，simple 商品不受影响。 */
.single-product .summary:has(.woocommerce-variation-price:not(:empty)) > .price{display:none !important}
