/*
Theme Name: Leiting Clean
Description: Leiting Home 自建主题 —— 无页面构建器、无外部字体、单一 CSS，商品卡与商品页结构完全自定义。
Author: Leiting Home
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leiting-clean
Tags: e-commerce, custom-colors, custom-menu, translation-ready
*/

/* ==========================================================================
   0. 设计令牌 —— 全部照旧站实测值（2026-09 从 leitinghome.com 量的）
      旧站 = 用户改了多轮才满意的样子，新站必须长得一样
   ========================================================================== */
:root{
  --wood:#8c5a3c;          /* 木色：旧站实测 rgb(140,90,60) —— 只用在 Buy Now、滑块 */
  --wood-dark:#6f452c;
  --ink:#1e293b;           /* 标题色：旧站实测 rgb(30,41,59) */
  --body:#334155;          /* 正文色：旧站实测 rgb(51,65,85) */
  --muted:#6b625b;         /* 次级文字：rgb(107,98,91) */
  --muted-2:#8b8178;       /* VAT 小字/面包屑：rgb(139,129,120) */
  --bg:#ffffff;            /* 旧站页面底色是纯白 */
  --surface:#faf7f3;       /* 步进器按钮底色 rgb(250,247,243) */
  --line:#e6dfd6;          /* 描边：旧站实测 rgb(230,223,214) */
  --success:#2e7d32;
  --r-card:16px;           /* 侧栏圆角 16px（旧站实测）*/
  --r-btn:10px;            /* 按钮圆角 10px（旧站实测，不是药丸）*/
  --wrap:1240px;           /* 旧站容器 1240（内 1200）*/
  --pad:20px;              /* 旧站左右内距 20px */
  --sec:clamp(36px,5vw,64px);
  --gap:16px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Roboto,Helvetica,Arial,sans-serif;
  --serif:Georgia,"Times New Roman",serif;   /* 旧站的栏目标题用衬线 */
  --shadow-s:0 1px 3px rgba(36,31,27,.06);
  --shadow-m:0 14px 30px rgba(36,31,27,.10);
}

/* ==========================================================================
   1. 基础
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth }
body{
  margin:0; background:var(--bg); color:var(--body);
  font-family:var(--font); font-size:16px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--wood)}
/* 标题：颜色和字号照旧站（h1 页面标题 36px、商品标题 20px；h2/h3 用衬线 Georgia ✓ 旧站实测）*/
h1,h2,h3,h4{margin:0 0 10px;line-height:1.25;letter-spacing:-.005em;font-weight:700;color:var(--ink)}
h2,h3{font-family:var(--serif);font-weight:600}   /* 原规则是 h2,h3,.serif —— .serif 已删（死代码），h2/h3 保留 */
h1{font-size:36px;font-weight:600}
h2{font-size:25px}
h3{font-size:16.32px}
p{margin:0 0 12px}
ul{margin:0;padding:0;list-style:none}
.container{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad)}
.section{padding:var(--sec) 0}
.section--alt{background:var(--surface)}
.eyebrow{font-size:12.48px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2);font-weight:600;margin:0 0 10px;font-family:var(--serif)}
.muted{color:var(--muted)}
/* 无障碍隐藏文字（国际通用写法：1px 裁切，不是凑像素定位）
   这一条同时覆盖 WordPress 自带的 .screen-reader-text，避免重复定义 ✓ */
.sr-only,.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}

/* ==========================================================================
   2. 按钮
   ========================================================================== */
/* 按钮照旧站实测：圆角 10px、1px 描边、白底墨字；Buy Now 是木色实心 ✓ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:0 24px;border-radius:var(--r-btn);
  font-size:15.2px;font-weight:600;line-height:1;cursor:pointer;
  border:1px solid var(--ink);transition:background .18s,color .18s,border-color .18s;
  white-space:nowrap;background:#fff;color:var(--ink);
}
.btn:hover{background:var(--ink);color:#fff}
.btn--solid{background:var(--wood);border-color:var(--wood);color:#fff}
.btn--solid:hover{background:var(--wood-dark);border-color:var(--wood-dark);color:#fff}
.btn--ghost{background:#fff;border-color:var(--ink);color:var(--ink)}
.btn--ghost:hover{background:var(--ink);color:#fff}
.btn--sm{min-height:38px;padding:9px 14px;font-size:14px}

/* ==========================================================================
   3. 顶栏 / 页脚
   ========================================================================== */
/* 页眉固定：position:sticky + top:0，高度写死靠内容撑住；transition:none 保证滚动时绝对不动、不缩、不藏。
   全站没有任何 scroll 监听（已实测 0 处），页眉不参与任何滚动交互。 */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;transition:none}
/* 登录 WordPress 后台时，顶部会被压一条 32px（手机 782px 以下 46px）的管理条，
   它盖在页眉上面 → 必须把 sticky 的 top 让开，否则页眉上半截被挡（看起来像"隐藏了"）*/
.admin-bar .site-header{top:32px}
@media screen and (max-width:782px){.admin-bar .site-header{top:46px}}
/* 页眉内层容器维持全站统一的 1240px 居中容器（不再铺满整条页眉）。
   用户要求：Logo 回到它原来的位置（左 120px），Sign in 保持原有右边距
   （右边缘 1320px = 容器右内距 20px），绝对不要把 Sign in 怼到屏幕最右边缘。 */
.site-header__inner{display:flex;align-items:center;gap:0;min-height:100px}
/* 早期遗留规则：原来这里还有 gap:20px 和下面的 .nav 打架（虽然被覆盖，但留着容易看错）→ 已删掉 gap */
.site-header__nav ul{display:flex;font-size:15px}
.site-header__cart{margin-left:auto;display:flex;align-items:center;gap:6px;font-weight:600}
.site-footer{background:var(--ink);color:rgba(255,255,255,.88);font-size:15px;padding:clamp(30px,4vw,52px) 0 0;margin-top:0}
.site-footer a{color:rgba(255,255,255,.88)}
.site-footer a:hover{color:#fff;text-decoration:underline}
.site-footer__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:26px;padding-bottom:28px}
.site-footer__name{color:#fff;font-weight:700;font-size:17px;margin:0 0 8px}
.site-footer__h{margin:0 0 10px;font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;color:#fff}
.site-footer__col ul{display:flex;flex-direction:column;gap:9px}
.site-footer__bar{border-top:1px solid rgba(255,255,255,.2);padding:16px 0}
.site-footer__bar .container{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.site-footer__bar p{margin:0;font-size:13px;color:rgba(255,255,255,.8)}

/* ==========================================================================
   4. 商品卡（关键组件 · 结构由本主题决定）
   ========================================================================== */
/* 商品卡：照旧站实测 —— 完全素卡（无边框、无底色、无圆角、无内距），4 列 206px 上下排 */
ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:22px 16px;margin:0;padding:0;list-style:none}
ul.products li.product{
  display:flex;flex-direction:column;gap:8px;
  background:transparent;border:0;border-radius:0;padding:0;position:relative;
}
.card__media{position:relative;display:flex;flex-direction:column;border-radius:0;overflow:hidden;background:transparent}
.card__media > .card__img{display:block;width:100%;aspect-ratio:1/1;line-height:0}
.card__media img{width:100%;height:100%;object-fit:cover}
/* "Available on Amazon" 徽标：放在图片【上方】外侧、右对齐 —— 不覆盖图片任何部分。
   右边缘与图片右边缘对齐 = align-self:flex-end（纵向 flex 的交叉轴右对齐）；
   底部紧贴图片顶边 = margin:0，没有任何下边距。
   正方形约束移到 .card__img 上（aspect-ratio:1/1），图片尺寸和比例都不变。
   样式（米白底 / 棕色字 / 1px 棕色描边 / 999px 圆角 / 11px / 内边距 3px 8px）保持不变。 */
.card__media > .card__amz{display:inline-block;align-self:flex-end;margin:0;padding:3px 8px;border:1px solid rgb(140,90,60);border-radius:999px;background:var(--surface);color:rgb(140,90,60);font-size:11px;font-weight:600;line-height:1.2;text-decoration:none;white-space:nowrap}
.card__media > .card__amz:hover{background:#fff;color:var(--wood-dark);border-color:var(--wood-dark)}
/* 手机端适当缩小 */
@media (max-width:600px){ .card__media > .card__amz{font-size:10px;padding:2px 6px} }

/* ==========================================================================
   ⑫ 购物车页 /cart/ —— 左侧商品列表 + 右侧 Order Summary 卡片
   ❗硬约束：WooCommerce 原生 shop_table 骨架一个节点都不动、不移动、不包裹。
     左右分栏是给【已存在的两个兄弟块】form.woocommerce-cart-form 和 .cart-collaterals
     套一层 CSS Grid 实现的（只是排版，不是改 DOM）。
     表格内部一律不改 display（不再是 grid 重排），列宽交给原生表格算法。
   ========================================================================== */
.woocommerce-cart .entry{max-width:none}
/* 显式钉住两栏位置：grid 自动布局会被前面的 notices / cross-sells 挤位，必须写死 */
.woocommerce-cart .entry > .woocommerce > *{grid-column:1 / -1}
.woocommerce-cart .entry > .woocommerce > form.woocommerce-cart-form{grid-column:1;grid-row:1}
.woocommerce-cart .entry > .woocommerce > .cart-collaterals{grid-column:2;grid-row:1}
.woocommerce-cart .entry > .woocommerce{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:26px;align-items:start;max-width:1120px;margin:0 auto}
.woocommerce-cart .entry > .woocommerce:not(:has(.cart-collaterals)){grid-template-columns:minmax(0,1fr);max-width:760px}
@media (max-width:900px){ .woocommerce-cart .entry > .woocommerce{grid-template-columns:minmax(0,1fr);max-width:760px} }

/* ---- 左：商品表格 ---- */
.woocommerce-cart table.shop_table.cart{width:100%;border:0;border-collapse:collapse;margin:0}
.woocommerce-cart table.shop_table.cart th,
.woocommerce-cart table.shop_table.cart td{border:0;border-bottom:1px solid var(--line);padding:16px 10px;text-align:left;vertical-align:middle;background:transparent}
/* 表头只留 Product | Price | Quantity | Subtotal（把前两列的文字藏掉，不删节点） */
.woocommerce-cart table.shop_table.cart thead th{font-size:12.5px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.woocommerce-cart table.shop_table.cart thead th.product-remove,
.woocommerce-cart table.shop_table.cart thead th.product-thumbnail{font-size:0;color:transparent}
.woocommerce-cart table.shop_table.cart tbody tr:last-child td{border-bottom:0}

/* 靠内容定宽的列，避免被平均拉开 */
.woocommerce-cart table.shop_table.cart th.product-remove,
.woocommerce-cart table.shop_table.cart td.product-remove,
.woocommerce-cart table.shop_table.cart th.product-thumbnail,
.woocommerce-cart table.shop_table.cart td.product-thumbnail{width:96px;min-width:96px;padding-left:0;padding-right:0;white-space:nowrap}
.woocommerce-cart table.shop_table.cart th.product-price,
.woocommerce-cart table.shop_table.cart td.product-price,
.woocommerce-cart table.shop_table.cart th.product-subtotal,
.woocommerce-cart table.shop_table.cart td.product-subtotal{white-space:nowrap}
.woocommerce-cart table.shop_table.cart td.product-price,
.woocommerce-cart table.shop_table.cart td.product-quantity,
.woocommerce-cart table.shop_table.cart td.product-subtotal,
.woocommerce-cart table.shop_table.cart th.product-price,
.woocommerce-cart table.shop_table.cart th.product-quantity,
.woocommerce-cart table.shop_table.cart th.product-subtotal{text-align:center}

/* 缩略图 96×96 圆角 10px */
.woocommerce-cart table.shop_table.cart td.product-thumbnail img{display:block;width:96px;height:96px;object-fit:cover;border-radius:10px}
/* 商品名 1.05rem + 下方灰色描述小字（描述由 functions.php 的服务端过滤器输出） */
.woocommerce-cart table.shop_table.cart td.product-name a{font-size:1.05rem;font-weight:600;color:#241f1b;text-decoration:none;line-height:1.35}
.woocommerce-cart table.shop_table.cart td.product-name a:hover{color:var(--wood)}
.woocommerce-cart .lh-item-desc{display:block;margin-top:4px;font-size:13px;color:var(--muted)}
.woocommerce-cart table.shop_table.cart td.product-name dl.variation{margin:4px 0 0;font-size:13px;color:var(--muted)}
.woocommerce-cart table.shop_table.cart td.product-name dl.variation dt,
.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd{display:inline;margin:0;font-weight:400}
.woocommerce-cart .lh-cart-item-vat{display:block;margin-top:3px;font-size:12.5px;color:rgb(140,90,60);white-space:nowrap}

/* X 删除按钮：只有一个叉号，无文字无边框 */
.woocommerce-cart table.shop_table.cart td.product-remove a.remove{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:var(--muted-2);font-size:22px;line-height:1;text-decoration:none}
.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover{background:#f2eee9;color:#241f1b}

/* 数量 − 数字 +：− / + 由 site.js 追加在官方输入框两侧（只 append，不搬动任何节点） */
.woocommerce-cart table.shop_table.cart td.product-quantity .quantity{display:inline-flex;align-items:center;height:40px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.woocommerce-cart table.shop_table.cart td.product-quantity .lh-step{flex:0 0 auto;width:30px;height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:#f7f4ef;color:#241f1b;font-size:17px;line-height:1;cursor:pointer;font-family:inherit}
.woocommerce-cart table.shop_table.cart td.product-quantity .lh-step:hover{background:#efe9e1}
.woocommerce-cart table.shop_table.cart td.product-quantity input.qty{flex:0 0 52px;width:52px;height:38px;padding:0 2px;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);border-radius:0;background:#fff;color:#241f1b;font-family:inherit;font-size:15px;text-align:center;font-variant-numeric:tabular-nums;-webkit-appearance:none;appearance:none;-moz-appearance:textfield}
.woocommerce-cart table.shop_table.cart td.product-quantity input.qty::-webkit-outer-spin-button,
.woocommerce-cart table.shop_table.cart td.product-quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* 列表下方：Have a coupon code? + 输入框 + 木色 Apply Coupon */
.woocommerce-cart table.shop_table.cart td.actions{border:0;padding:18px 10px 0}
.woocommerce-cart table.shop_table.cart td.actions .coupon{display:flex;align-items:center;gap:10px;float:none}
.woocommerce-cart table.shop_table.cart td.actions .coupon::before{content:"Have a coupon code?";flex:0 0 auto;font-size:14.5px;font-weight:600;color:#241f1b;white-space:nowrap}
.woocommerce-cart table.shop_table.cart td.actions .coupon input.input-text{flex:1 1 auto;min-width:0;height:44px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#241f1b;font-family:inherit;font-size:14.5px}
.woocommerce-cart table.shop_table.cart td.actions .coupon button.button{flex:0 0 auto;height:44px;padding:0 20px;border:0;border-radius:10px;background:var(--wood);color:#fff;font-family:inherit;font-size:14.5px;font-weight:600;cursor:pointer}
.woocommerce-cart table.shop_table.cart td.actions .coupon button.button:hover{background:var(--wood-dark)}
/* 数量改为实时更新，官方的 Update 按钮不再需要（隐藏它，不删节点） */
.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"]{display:none}

/* ---- 右：Order Summary 卡片 ---- */
.woocommerce-cart .cart-collaterals{width:auto;margin:0}
.woocommerce-cart .cart_totals{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:22px}
.woocommerce-cart .cart_totals h2{font-size:18px;margin:0 0 14px}
.woocommerce-cart .cart_totals table.shop_table{border:0;margin:0 0 4px}
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td{border:0;padding:9px 0;text-align:left;vertical-align:middle;background:transparent;font-size:14.5px}
.woocommerce-cart .cart_totals table.shop_table td{text-align:right;white-space:nowrap}
.woocommerce-cart .cart_totals tr.order-total th,
.woocommerce-cart .cart_totals tr.order-total td{font-size:18px;font-weight:700;border-top:1px solid var(--line);padding-top:12px}
.woocommerce-cart .cart_totals tr.cart-discount th,
.woocommerce-cart .cart_totals tr.cart-discount td{color:var(--wood);font-size:14px}
.woocommerce-cart .cart_totals .woocommerce-shipping-totals th,
.woocommerce-cart .cart_totals .woocommerce-shipping-totals td{font-size:14px}
.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
.woocommerce-cart .cart_totals .woocommerce-shipping-calculator{display:none}
.woocommerce-cart .wc-proceed-to-checkout{margin:16px 0 0;padding:0}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{display:block;width:100%;height:52px;line-height:52px;padding:0;text-align:center;border-radius:10px;background:var(--wood);color:#fff;font-size:15.5px;font-weight:600;text-decoration:none}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover{background:var(--wood-dark)}

/* 支付图标（文字胶囊）+ 信任徽章（垂直排列） */
.woocommerce-cart .lh-trust{display:flex;flex-direction:column;gap:11px;margin:20px 0 0;padding:16px 0 0;border-top:1px solid var(--line);list-style:none}
.woocommerce-cart .lh-trust li{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--body)}
.woocommerce-cart .lh-trust svg{flex:0 0 auto;width:18px;height:18px;fill:none;stroke:var(--wood);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:640px){
  .woocommerce-cart table.shop_table.cart td.product-thumbnail img{width:64px;height:64px}
  .woocommerce-cart table.shop_table.cart th,
  .woocommerce-cart table.shop_table.cart td{padding:12px 6px}
  .woocommerce-cart table.shop_table.cart td.actions .coupon{flex-wrap:wrap}
  .woocommerce-cart table.shop_table.cart td.actions .coupon::before{flex:1 1 100%}
}

/* ==========================================================================
   ⑬ 单篇博客文章（single.php）
   主题原本没有 single.php，点进文章会回退到 index.php 的「列表项」分支，
   只显示摘要、看不到正文；补上模板后这里配一下版式。
   宽度 700px 居中，特色图与正文同宽。
   ========================================================================== */
.post-single{max-width:700px;margin:0 auto}
.post-single__head{margin-bottom:6px}
.post-single__head h1{font-size:clamp(24px,2.6vw,32px);line-height:1.25;margin:0 0 6px}
.post-single__meta{margin:0 0 14px;font-size:14.5px}
.post-single__img{margin:0 0 20px}
.post-single__img img{display:block;width:100%;height:auto;border-radius:var(--r-card)}
.post-single__back{margin:28px 0 0}
@media (max-width:640px){ .post-single__head h1{font-size:24px} }
.card__title{font-size:16px;font-weight:600;line-height:1.3;color:var(--ink);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.card__rating{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.stars{color:#fda256;letter-spacing:.5px;font-size:15px}
.card__price{margin:0;font-size:16px;font-weight:700;color:var(--body);display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}
.card__vat{font-size:10px;font-weight:400;color:var(--wood);line-height:1.2}
.card__row{display:flex;align-items:center;gap:8px;margin-top:auto}
.card__qty{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}
.card__qty select{
  height:34px;min-width:102px;padding:0 6px;border:1px solid var(--line);border-radius:8px;
  background:#fff;color:var(--ink);font-size:14.08px;cursor:pointer
}
.card__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.card__actions .btn--sm{min-height:32px;padding:0 6px;font-size:14px;border-radius:var(--r-btn)}
@media (max-width:921px){
  ul.products{grid-template-columns:repeat(2,1fr);gap:10px}
  ul.products li.product{padding:9px;gap:6px}
  .card__title{font-size:14px}
  .card__price{font-size:15px}
  ul.products li.product .card__qty{display:none}   /* 手机上【商品卡】不放下拉（别加错作用域：详情页那颗不能一起藏掉） */
  .card__actions{grid-template-columns:1fr;gap:6px}
  .site-footer__grid{grid-template-columns:1fr 1fr;gap:20px}
  .site-footer__name{grid-column:1 / -1}
  .site-header__nav{display:none}
}
@media (max-width:600px){ ul.products{grid-template-columns:repeat(2,1fr)} }

/* ==========================================================================
   5. 商品页
   ========================================================================== */
.pdp{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(20px,3vw,44px)}
.pdp__gallery{border-radius:var(--r-card);overflow:hidden;background:var(--surface)}
.pdp__thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.pdp__thumbs img{width:64px;height:64px;object-fit:cover;border-radius:10px;border:1.5px solid var(--line);cursor:pointer}
/* 商品页：照旧站实测 —— 标题 20px/600、价格 24px/700、VAT 小字 18.72px、按钮 52px 高 */
.pdp__title{font-size:20px;font-weight:600;line-height:1.25;margin:0 0 4px}
.pdp__price{font-size:24px;font-weight:700;color:var(--body);margin:0 0 2px}
.pdp__vat{font-size:18.72px;color:var(--wood);display:block;margin-bottom:12px}
.pdp__promise{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13.5px;color:var(--muted);margin:10px 0 16px}
/* 勾号改成背景图（不用 position:absolute ✓） */
.pdp__promise li{padding-left:22px;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'><path d='M1 5l3 3 7-7' fill='none' stroke='%238c5a3c' stroke-width='2'/></svg>") left 5px/12px 10px no-repeat}
.pdp__buy{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 18px}
.pdp__buy .btn{min-height:52px;padding:0 26px;font-size:16px}
.pdp__buy .quantity{display:flex;align-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;height:52px;overflow:hidden}
.pdp__buy .qty{height:52px;width:72px;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);text-align:center;font-size:16px;font-weight:600;color:#475569}
.pdp__buy .lh-sp-qty-btn{width:52px;height:52px;border:0;background:var(--surface);color:var(--ink);font-size:21px;line-height:1;cursor:pointer}
.pdp__buy .lh-sp-qty-btn:hover{background:var(--line)}
.spec-table{width:100%;border-collapse:collapse;font-size:14.5px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.spec-table th,.spec-table td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line)}
.spec-table th{background:var(--surface);font-weight:600;width:42%}
.spec-table tr:last-child th,.spec-table tr:last-child td{border-bottom:0}
@media (max-width:921px){
  .pdp{grid-template-columns:1fr}
  .pdp__buy{grid-template-columns:1fr}
}

/* ==========================================================================
   6. 信任条 / 分类卡 / FAQ
   ========================================================================== */
.trust{background:var(--ink);color:#fff;padding:16px 0}
.trust ul{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.trust li{display:flex;flex-direction:column;font-size:13.5px}
.trust span{color:rgba(255,255,255,.72);font-size:12.5px}
.cats{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.cat{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s}
.cat:hover{transform:translateY(-2px);box-shadow:var(--shadow-m)}
.cat img{width:100%;height:230px;object-fit:cover}
.cat__body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:4px}
.cat__go{color:var(--wood);font-weight:600;font-size:14px;margin-top:8px}
.faq details{border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px 16px;margin-bottom:10px}
.faq summary{font-weight:600;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq details[open] summary{margin-bottom:8px}
@media (max-width:921px){
  .trust ul{grid-template-columns:1fr 1fr;gap:12px}
  .cats{grid-template-columns:1fr}
  .cat img{height:200px}
}

/* ==========================================================================
   7. 杂项（提示条 / 面包屑 / 分页 / 表格）
   ========================================================================== */
.breadcrumb{font-size:13px;color:var(--muted);padding:14px 0}
.notice{border:1px solid var(--line);border-left:4px solid var(--wood);background:var(--surface);border-radius:12px;padding:12px 16px;margin:0 0 18px;font-size:14.5px}
.pagination{display:flex;gap:8px;justify-content:center;padding:24px 0}
.pagination a,.pagination span{min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:#fff}
.pagination .current{background:var(--ink);color:#fff;border-color:var(--ink)}

/* ==========================================================================
   8. 模板用到的新部件（站头、主视觉、内容页排版、表单、提示）
   ========================================================================== */

/* --- 跳转链接（无障碍，键盘用户第一下 Tab 就能跳到主内容） --- */
.skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:10px 16px;z-index:100}
.skip:focus{left:8px;top:8px}

/* --- 站头：Flexbox 布局（左侧 Logo，右侧菜单+搜索+购物车+Sign in 一起靠右）
       间距照旧站实测：菜单↔搜索 7px、搜索表单↔购物车 20px、购物车↔账户 10px --- */
.site-header__inner{display:flex;align-items:center;gap:0;min-height:100px}
.site-header__brand{display:flex;align-items:center}
.site-header__brand img{width:98px;height:84px;object-fit:contain}
.site-header__name{font-weight:700;font-size:26px;color:var(--body)}
/* 右侧整块：菜单 / 搜索框 / 购物车 / 金额 / Sign in 全部靠右对齐（margin-left:auto + flex-end），
   中间不留空档，且整块与 Logo 一起垂直居中。
   注：下面各元素之间的 margin 已按用户要求整体减半（原 20px → 10px、金额 2px → 1px）；
   Logo 与菜单之间的间距不在此列，保持原样。 */
.site-header__right{display:flex;align-items:center;justify-content:flex-end;margin-left:auto}
/* 整排（菜单 / 搜索框 / 购物车+金额 / Sign in）统一用 15px 间距。
   菜单里每一对词之间的缝：原来靠 <a> 的 padding:10px 13.25px 撑出来（每对词 26.5px），
   现在把 <a> 的左右 padding 去掉，改成 nav 上【唯一一个 gap】——
   菜单内部和搜索框/购物车/Sign in 之间用同一个数值，全排一致。
   每个菜单项仍然 height:100px，可点区域高度不变。 */
.site-header__nav .nav{display:flex;gap:15px;align-items:stretch;height:100px}
.site-header__nav .nav li{display:flex;align-items:center}
.site-header__nav .nav a{display:flex;align-items:center;height:100px;padding:10px 0;font-size:15.2px;font-weight:700;color:var(--ink);white-space:nowrap}
.site-header__nav .nav a:hover{color:var(--wood)}
.site-header__nav .nav .current-menu-item > a{color:var(--wood)}
.site-header__nav .sub-menu{display:none}
/* 搜索框：旧站实测 228×42、底色 rgb(247,244,239)、1px 描边、圆角 999；按钮 32×32 深棕圆形放大镜 */
/* 间距照旧站：Contact 右边缘 → 搜索框 20px；logo 右边缘 → Home 左边缘 134px（靠菜单项内距 13.25px 凑出 504px 总跨度） */
.site-header__search{display:flex;align-items:center;margin-left:15px;width:228px;height:42px;padding:0 5px 0 16px;border:1px solid var(--line);border-radius:999px;background:#f7f4ef;flex:0 0 auto}
.site-header__search input[type=search]{flex:0 0 170px;width:170px;height:40px;border:0;background:transparent;font-size:16px;color:#3b342e;padding:0}
.site-header__search input[type=search]::placeholder{color:#8b8178}
.site-header__search input[type=search]:focus{outline:none}
.site-header__search button{flex:0 0 auto;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:var(--wood);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.site-header__search button:hover{background:var(--wood-dark)}
.site-header__search button svg{display:block;width:15px;height:15px}
/* 购物车：旧站实测 66×62，图标 49×49（用旧站原始 SVG），间距 20px */
.site-header__cart{position:relative;display:flex;align-items:center;justify-content:center;width:66px;height:62px;margin-left:20px;color:#241f1b}
.site-header__cart:hover{color:var(--wood)}
.site-header__cart svg{display:block;width:49px;height:49px;fill:currentColor}
/* 角标样式统一在下面「12. 迷你购物车」一节定义（此处不再重复写 ✓） */
/* Sign in：旧站实测 账户区 120×42（链接 110×42、左间距 10px）、浅底、人像图标 16×16 */
.site-header__signin{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:110px;height:42px;margin-left:15px;padding:0;border:0;border-radius:999px;background:#f7f4ef;color:var(--ink);font-size:15px;font-weight:600;white-space:nowrap}
.site-header__signin:hover{background:#efe9e1;color:var(--ink)}
.site-header__account-icon{display:block;width:16px;height:16px}
.site-header__burger{display:none;background:none;border:0;font-size:22px;line-height:1;cursor:pointer;color:var(--ink)}

/* 桌面端页眉改用 Flexbox（见上面站头规则），此处不再使用绝对定位 */

/* ==========================================================================
   12. 迷你购物车 / 页眉总金额 / 数字角标 / 飞入动画（全部照旧站实测值）
   ========================================================================== */
/* 购物车图标 + 金额：绑成同一个整体（.site-header__cartgroup）。
   gap:1px 把两者间距固定死，永远是 1px，不会散开；落地放大动画也加在这一层，
   所以"图标 + 金额"是一起 1.0 → 1.2 → 1.0 的。
   注意：迷你购物车浮层 .site-header__mini 故意放在这个整体【外面】，
   否则它会被一起缩放。 */
.site-header__cartgroup{display:flex;align-items:center;gap:1px}
.site-header__cart-wrap{position:relative;display:flex;align-items:center;margin-left:15px}
/* 数字角标：用 Grid 把图标和角标叠在同一格（不用 position:absolute ✓），木色圆形、11px 白字 */
/* 购物车图标盒子：宽度从 66px 收到 49px，正好等于图标宽度。
   原来 66px 的盒子 + 居中的 49px 图标 = 图标左右各有 8.5px "看不见的空地"，
   会把"搜索框 → 图标"的视觉缝从 15px 撑到 23.5px。收到 49px 后盒子紧贴图标，
   视觉缝就等于真实的 15px。高度仍 62px（图标的垂直位置和角标位置都不变）。 */
.site-header__cart{position:relative;display:grid;place-items:center;width:49px;height:62px;margin-left:0;color:#241f1b}
.site-header__cart svg{grid-area:1 / 1;display:block;width:49px;height:49px;fill:currentColor}
/* 数量角标：以【篮子(basket)路径的真实边缘】为基准，不是以容器边缘为基准。
   实测（1440 屏，购物车盒子 1093→1142，宽 49）：
     svg viewBox = "826 837.5 140 121"，preserveAspectRatio 默认 xMidYMid meet
     → 缩放 0.35，path 用户坐标 bbox = x 828→960
     → 篮子真实屏幕范围 left=1093.7 right=1139.9 top=30.43 bottom=69.52（宽只有 46.2px！）
     即：篮子右边缘比 svg 盒子右边缘【靠内 2.1px】，顶边比 svg 顶边靠内 4.93px。
   所以贴"容器右边"是错的，必须贴"篮子右边"。
   取值 margin:-7px -14px 0 0（justify-self:end 锚右边缘），实测结果：
     角标左边缘 − 篮子右边缘 = +0.10px   → 两者在同一条垂直线上 ✓
     篮子顶边 − 角标底边     = 2.43px    → 只在篮子上方 2~3px，没有悬空 ✓
   角标大小 16px、木色底、白字 11px、圆角 99px 保持不变。 */
.site-header__count{grid-area:1 / 1;align-self:start;justify-self:end;margin:-7px -14px 0 0;display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:#8c5a3c;color:#fff;font-size:11px;font-weight:700;line-height:1}
/* 总金额：14.4px 墨色、无气泡 */
/* 页眉总金额：固定 60px 的格子 + flex-shrink:0。
   否则金额变宽会撑开右侧区（margin-left:auto 靠右），把左边菜单/搜索/购物车整排往左挤
   （实测：金额从 £39.99 涨到 £1,234.56 时导航会摆动 61px）。
   左对齐 → 金额紧贴购物车图标（不留空隙）；格子宽度固定 → 左边任何元素都不会移动。
   格子 60px 是"够放最大金额 + 不留多余空档"的取法：£79.98 文字宽 43px，
   所以金额文字到 Sign in 的视觉空隙 = 60-43+10 = 约 27px（75px 时是 42px）。
   tabular-nums 让数字等宽，金额跳动时字符也不会左右晃。 */
/* 页眉总金额：固定 52px 的格子（用户选定的方案 B）。
   取舍：盒子固定 → 金额位数变化时【整排零平移】；
   但文字左对齐、盒子比文字宽，多出来的那点空地会落在右边，
   所以"金额文字 → Sign in"的视觉缝 = 15px + (52 − 文字宽)：
     £39.99/£79.98（43.5px）→ 约 23.5px   ← 用户已明确接受
     £199.99（51.5px）      → 约 15.5px
   52px 能完整放进 £999.99（约 51.5px），不会撞到 Sign in。
   超过约 £999.99（文字 >52px）时文字会略微溢出到右边距里，但依然不会推动任何元素。
   tabular-nums 让数字等宽。 */
.site-header__total{margin-left:0;font-size:14.4px;color:#241f1b;white-space:nowrap;flex:0 0 52px;width:52px;text-align:left;font-variant-numeric:tabular-nums}
.site-header__total .amount{color:#241f1b;font-weight:600}
/* ==========================================================================
   购物车抽屉：从屏幕右侧滑出（380px 宽、100dvh 高、白底、左侧 1px 描边）。
   · 只由【点击】触发；已删除全部 :hover / mouseenter 展开逻辑
   · 结构全部由 site.js 生成（header.php 不动）：
       .site-header__mini.lh-drawer
         ├─ .lh-drawer__head  flex-shrink:0          "Your Basket" + X
         ├─ .lh-drawer__body  flex:1 1 auto; overflow-y:auto   商品列表（内部滚动）
         └─ .lh-drawer__foot  flex-shrink:0          永远钉在抽屉最底部
   ========================================================================== */
/* 左侧灰色遮罩（点击关闭） */
.lh-drawer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(36,31,27,.45);opacity:0;visibility:hidden;transition:opacity .3s ease-out,visibility 0s linear .3s;z-index:9998}
.lh-drawer-overlay.is-open{opacity:1;visibility:visible;transition:opacity .3s ease-out,visibility 0s linear 0s}

/* 抽屉本体：高度随内容自动变化，最高只到一屏（内容超高时列表内部滚动、底栏钉底） */
.site-header__mini{
  position:fixed;top:0;right:0;left:auto;
  width:380px;max-width:100vw;
  height:auto;max-height:100vh;max-height:100dvh;
  display:flex;flex-direction:column;
  padding:0;margin:0;
  background:#fff;
  border:0;border-left:1px solid rgb(209,213,219);border-radius:12px;box-shadow:none;
  overflow:hidden;
  z-index:9999;
  transform:translateX(100%);visibility:hidden;
  transition:transform .3s ease-out,visibility 0s linear .3s;
}
.site-header__mini.is-open{transform:translateX(0);visibility:visible;transition:transform .3s ease-out,visibility 0s linear 0s}

/* 1) 顶部标题栏：上方留大余地（字母不被挤）；下方紧贴第一条分界线。
   align-items:flex-end 让「Your Basket」和关闭按钮的底边贴在同一条线上，
   两者到分界线的距离完全一样。 */
.lh-drawer__head{flex:0 0 auto;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:28px 20px 3px;border-bottom:1px solid var(--line);background:#fff}
.lh-drawer__title{font-size:1.05rem;font-weight:700;color:#241f1b;line-height:1.15}
.lh-drawer__close{flex:0 0 auto;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0;background:#fff;border:1.5px solid rgb(230,223,214);border-radius:8px;color:#241f1b;font-size:20px;line-height:1;cursor:pointer}
.lh-drawer__close:hover{background:#f7f4ef}

/* 2) 中间商品列表：flex:1 1 auto → 内容不高时抽屉自然撑开；内容超高时内部滚动
   （min-height:0 是 flex 子项能真正滚动的关键） */
.lh-drawer__body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 20px}
.lh-drawer__list{list-style:none;margin:0;padding:0}
.lh-drawer__item{display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:start;padding:16px 0;border-top:1px solid var(--line)}
.lh-drawer__item:first-child{border-top:0;padding-top:0}
.lh-drawer__thumb{display:block;line-height:0}
/* 缩略图严格限制尺寸：图片一进 DOM 就是 64×64，绝不会先按原图尺寸撑破布局 */
.site-header__mini img{width:64px;height:64px;object-fit:cover;display:block;aspect-ratio:1 / 1;border:1px solid rgb(239,234,227);border-radius:7px}

/* 商品行：第 1 行 名称 + 垃圾桶；第 2 行 单价 × 数量 = Subtotal 金额；第 3 行 VAT */
.lh-drawer__top{display:flex;align-items:flex-start;gap:8px}
.lh-drawer__name{flex:1 1 auto;font-size:.9rem;font-weight:600;color:#241f1b;text-decoration:none;line-height:1.35}
.lh-drawer__name:hover{color:var(--wood)}
.lh-drawer__trash{flex:0 0 auto;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0;background:#fff;border:1.5px solid rgb(230,223,214);border-radius:8px;color:#241f1b;cursor:pointer}
.lh-drawer__trash:hover{background:#f7f4ef;border-color:rgb(209,213,219)}
.lh-drawer__trash svg{width:15px;height:15px;display:block;fill:currentColor}
.lh-drawer__empty{color:var(--muted);font-size:.95rem;padding:12px 0;margin:0}

/* 第 2 行：单价 × [− 数字 +] = Subtotal 金额  （× 和 = 都显式写出来） */
/* 商品行第 2 / 3 行，用 grid 两列排：
     左列：单价 × [− 数量 +] =
     右列：Subtotal: 金额
           (VAT included £x.xx)
   → 右列两行天然左对齐，所以 "(" 和 "Subtotal" 的 S 永远在同一个 x 上（不需要任何魔法数字）。
   整块靠左对齐（右对齐会因为单价长短不一而参差不齐）。
   左列固定 152px：单价最长约 £1,199.70 也放得下，且保证每行的右列起点一致，行与行之间也对齐。 */
.lh-drawer__calc{display:grid;grid-template-columns:152px 1fr;column-gap:6px;align-items:start;margin-top:8px;font-size:11.5px;color:#241f1b}
.lh-drawer__calc-left{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.lh-drawer__calc-right{display:flex;flex-direction:column;gap:2px;white-space:nowrap;min-width:0}
.lh-drawer__unit{color:#241f1b;font-variant-numeric:tabular-nums}
.lh-drawer__sign{color:#241f1b;line-height:1}
.lh-drawer__sub{font-size:11px;color:#241f1b}
.lh-drawer__line{font-size:12px;font-weight:700;color:#241f1b;font-variant-numeric:tabular-nums;margin-left:2px}
/* 第 3 行：(VAT included £x.xx) —— 棕色（= 页眉当前菜单项用的木色 var(--wood)） */
.lh-drawer__linevat{font-size:11px;color:var(--wood);font-variant-numeric:tabular-nums}

/* 数量加减框（数字可直接改，实时更新金额）
   ❗flex:0 0 auto 很关键：以前 .lh-qty / 输入框会被 flex 压缩，
   数量变成两位数时数字被裁掉，看起来像"被白色盖住"。 */
.lh-qty{flex:0 0 auto;display:inline-flex;align-items:center;height:28px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
.lh-qty__btn{flex:0 0 auto;width:20px;height:26px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;background:#f7f4ef;color:#241f1b;font-size:14px;line-height:1;cursor:pointer}
.lh-qty__btn:hover{background:#efe9e1}
/* ❗选择器必须带 .lh-drawer：全站有一条
   input[type=number]{font-size:15px;padding:10px 12px;border-radius:10px}
   它的优先级 (0,1,1) 比 .lh-qty__input (0,1,0) 高，
   会把输入框左右各塞 12px 内距 → 可用宽度只剩 22px → 两位数就被裁掉（看起来像被白色盖住）。
   加上 .lh-drawer 前缀后优先级 (0,2,0) 稳压它。 */
.lh-drawer .lh-qty__input{flex:0 0 40px;width:40px;height:26px;padding:0 2px;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);border-radius:0;background:#fff;color:#241f1b;font-family:inherit;font-size:12px;text-align:center;font-variant-numeric:tabular-nums;-webkit-appearance:none;appearance:none;-moz-appearance:textfield}
.lh-drawer .lh-qty__input::-webkit-outer-spin-button,.lh-drawer .lh-qty__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* 3) 底部结算区：flex-shrink:0，永远贴在抽屉最底部 */
.lh-drawer__foot{flex:0 0 auto;padding:16px 20px 20px;border-top:1px solid var(--line);background:#fff}
/* 底部两行：grid 两列 —— 左列标签（宽度自动取最宽的那个），右列金额。
   金额紧跟在标签右边（不再用 space-between 把金额甩到最右边），且两行的金额天然左对齐。 */
.lh-drawer__sums{display:grid;grid-template-columns:auto 1fr;column-gap:8px;row-gap:4px;align-items:baseline;justify-items:start}
.lh-drawer__lbl{font-size:.95rem;color:#241f1b}
.lh-drawer__amt{font-size:.95rem;font-weight:700;color:#241f1b;font-variant-numeric:tabular-nums}
/* VAT 行：全站统一用棕色（var(--wood) = rgb(140,90,60)） */
.lh-drawer__lbl--vat{font-size:.85rem;color:var(--wood)}
.lh-drawer__amt--vat{font-size:.85rem;font-weight:600;color:var(--wood)}
.lh-drawer__buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.lh-drawer__buttons a{display:flex;align-items:center;justify-content:center;width:100%;height:48px;padding:0 12px;border:1.5px solid transparent;border-radius:10px;font-size:.88rem;font-weight:600;text-decoration:none}
/* ❗下面两条必须带 .lh-drawer__buttons 前缀：
   上面那条 .lh-drawer__buttons a 的优先级是 (0,1,1)，比 .lh-drawer__btn--view (0,1,0) 高，
   会把 border 一直压成 transparent → View Basket 根本没有黑边框。
   加前缀后变成 (0,2,0)，稳压它。 */
.lh-drawer__buttons .lh-drawer__btn--view{background:#fff;border:1.5px solid #241f1b;color:#241f1b}
.lh-drawer__buttons .lh-drawer__btn--view:hover{background:#241f1b;color:#fff}
.lh-drawer__buttons .lh-drawer__btn--checkout{background:#8c5a3c;border:1.5px solid #8c5a3c;color:#fff}
.lh-drawer__buttons .lh-drawer__btn--checkout:hover{background:var(--wood-dark);border-color:var(--wood-dark)}
/* 飞入动画的飞行体：48×48 圆形缩略图 */
.lh-fly{position:fixed;z-index:99999;border-radius:50%;object-fit:cover;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.18)}
/* 飞入落地后：购物车图标放大一下（0% 1.0 → 50% 1.2 → 100% 1.0，300ms）
   class 由 site.js 在落地时加上、300ms 后摘掉，防止重复触发 */
.cart-bounce{animation:cart-bounce .3s ease-out}
@keyframes cart-bounce{0%{transform:scale(1)}50%{transform:scale(1.2)}100%{transform:scale(1)}}
@media (max-width:921px){
  .site-header__burger{display:block;margin-left:auto}
  .site-header__search{display:none}
  /* 手机菜单：改成「右侧区打散 + 菜单占满一行」的行内展开（不用 position:absolute ✓） */
  .site-header__right{display:contents}
  .site-header__nav{order:9;flex-basis:100%;display:none;background:#fff;border-top:1px solid var(--line);padding:8px 20px 14px}
  .site-header__nav.is-open{display:block}
  .site-header__nav .nav{flex-direction:column;align-items:flex-start;gap:4px;height:auto}
  .site-header__nav .nav a{height:auto;padding:8px 0}
  .site-header__signin{display:none}
}
.lang select{height:36px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13.5px;padding:0 8px;margin-left:10px}

/* --- 首页主视觉 --- */
.hero{background:var(--surface);border-bottom:1px solid var(--line)}
.hero__inner{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(20px,3vw,44px);align-items:center;padding:clamp(26px,4vw,54px) var(--pad)}
.hero__media img{width:100%;height:auto;border-radius:var(--r-card);box-shadow:var(--shadow-m)}
.hero__media:empty{display:none}
@media (max-width:921px){ .hero__inner{grid-template-columns:1fr} }

/* --- 商品卡：促销角标 --- */
/* 促销角标已删除（旧站商品卡本来就没有这个角标 ✓ 顺带去掉一处 position:absolute ✓） */

/* --- 商店页工具条 --- */
.shop-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:6px 0 14px;font-size:14px}
.shop-bar p{margin:0}

/* --- 商品页补充 --- */
.pdp__gallery img{width:100%;height:auto}
.pdp__thumbs img.is-active{border-color:var(--wood)}
.pdp__excerpt{font-size:15px;color:var(--muted);margin:0 0 4px}
.pdp-sku{font-size:13px;margin-top:6px}
.pdp__info{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,3vw,40px);align-items:start}
.pdp__info h2{font-size:clamp(19px,2vw,24px)}
@media (max-width:921px){ .pdp__info{grid-template-columns:1fr} }

/* --- 内容页排版（配送/退换、隐私、条款这些文字页必须能读） --- */
.page__head{margin-bottom:8px}
.entry{font-size:16px;max-width:78ch}
.entry h2{font-size:clamp(20px,2.2vw,26px);margin:26px 0 10px}
.entry h3{font-size:17px;margin:20px 0 8px}
.entry ul,.entry ol{margin:0 0 14px;padding-left:22px;list-style:disc}
.entry ol{list-style:decimal}
.entry li{margin:5px 0}
.entry table{width:100%;border-collapse:collapse;margin:14px 0;font-size:15px}
.entry th,.entry td{border-bottom:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
.entry th{background:var(--surface);font-weight:600;width:34%}
.entry a{color:var(--wood);text-decoration:underline}
.entry blockquote{border-left:4px solid var(--wood);background:var(--surface);margin:16px 0;padding:10px 16px}

/* --- 博客列表 --- */
.post-list{display:grid;gap:26px;margin-top:18px}
.post-item{display:grid;grid-template-columns:280px 1fr;gap:20px;align-items:start}
.post-item__img img{border-radius:var(--r-card);width:100%;height:auto}
.post-item__title{font-size:20px;margin:0 0 4px}
@media (max-width:921px){ .post-item{grid-template-columns:1fr} }

/* --- 评价 --- */
.reviews__list{list-style:none;padding:0;margin:0}
.reviews__list .comment{border-top:1px solid var(--line);padding:16px 0}
.reviews__list .comment .children{list-style:none;padding-left:20px;margin:10px 0 0}
.reviews__list .avatar{border-radius:50%;float:left;margin-right:10px}
.reviews__list .comment-content{clear:none;margin-top:6px}
.reviews__list .star-rating{display:inline-block;color:#f5a623;font-size:15px}
.reviews__list .comment-metadata{font-size:12.5px;color:var(--muted)}

/* --- 表单（评论/结账/搜索都用得上；WC 自带样式已卸载，这里补上） --- */
input[type=text],input[type=email],input[type=tel],input[type=number],input[type=url],input[type=password],input[type=search],textarea,select{
  font-family:inherit;font-size:15px;color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;max-width:100%
}
input:focus,textarea:focus,select:focus{outline:2px solid rgba(140,90,60,.35);outline-offset:1px;border-color:var(--wood)}
textarea{width:100%;min-height:120px}
label{font-size:14px;font-weight:500}
.comment-form p{margin:0 0 12px}
.comment-form label{display:block;margin-bottom:4px}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url]{width:100%;max-width:520px}
.comment-form .submit{display:inline-flex}

/* --- WooCommerce 提示条与经典表格（自带样式已卸载） --- */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews{
  border:1px solid var(--line);border-left:4px solid var(--success);background:#fff;border-radius:12px;padding:12px 16px;margin:0 0 16px;font-size:15px;list-style:none
}
.woocommerce-info{border-left-color:var(--wood)}
.woocommerce-error{border-left-color:#c0392b}
.woocommerce-message .button,.woocommerce-info .button{float:right;margin-left:10px}
.shop_table{width:100%;border-collapse:collapse;font-size:15px;margin:0 0 20px}
.shop_table th,.shop_table td{border-bottom:1px solid var(--line);padding:12px 10px;text-align:left}
.shop_table thead th{background:var(--surface)}
.woocommerce-cart .cart-collaterals{margin-top:10px}
.woocommerce-cart .cart_totals{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:18px}
.quantity input.qty{width:84px;text-align:center}
.screen-reader-text{ /* 样式已合并到上面 .sr-only 一行，此处不再重复定义 ✓ */ }

/* ==========================================================================
   9. 商店页两栏 + 左栏筛选（值全部照旧站实测：侧栏 280px / 圆角 16px / 1px 描边）
   ========================================================================== */
.lh-shop__wrap{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:start;margin-top:16px}
.lh-shop__main{min-width:0}

.lh-shop-side{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 18px}
.lh-shop-side__title{font-family:var(--serif);font-size:16.32px;font-weight:600;color:var(--ink);margin:0;padding:0 0 12px;border-bottom:1px solid var(--line)}
.lh-cat-tree{margin:12px 0 0}
.lh-cat-tree li{margin:0 0 2px}
.lh-cat-tree a{display:block;font-size:14.88px;color:#3b342e;border-radius:8px;padding:8px 10px}
.lh-cat-tree a:hover,.lh-cat-tree a.is-current{background:var(--surface);color:var(--ink)}

.lh-filter-section{border-top:2px solid var(--line);padding:20px 0 0;margin:22px 0 0}
.lh-filter-section__title{font-family:var(--serif);font-size:12.48px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-2);margin:0 0 16px}
.lh-filter-group{margin:0 0 20px}
.lh-filter-title{font-family:var(--serif);font-size:15.2px;font-weight:600;color:var(--ink);margin:0 0 8px}
.lh-facet ul{display:grid;grid-template-columns:1fr 1fr;gap:2px 6px}
.lh-facet--color ul{grid-template-columns:repeat(3,1fr)}
.lh-facet li{font-size:14.08px}
.lh-facet a{display:flex;align-items:center;gap:6px;font-size:14.08px;color:var(--body);padding:3px 0}
.lh-facet a:hover{color:var(--wood)}
.lh-facet__box{width:13px;height:13px;border:1px solid var(--line);border-radius:3px;background:#fff;flex:0 0 auto}
.lh-facet a.is-on .lh-facet__box{background:var(--wood);border-color:var(--wood);box-shadow:inset 0 0 0 2px #fff}

/* 价格滑块：改用原生 input[type=range] + accent-color（不用 position:absolute ✓） */
.lh-price__slider{height:22px;margin:0}
.lh-price__input{display:block;width:100%;height:22px;margin:0;accent-color:var(--wood);cursor:pointer}
.lh-price__head{display:flex;justify-content:space-between;align-items:center;margin:8px 0 0;font-size:14.08px;color:var(--muted)}
.lh-price__amount{font-weight:600;color:var(--ink)}
.lh-clear{font-size:13px;color:var(--wood);text-decoration:underline}

.lh-shop-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px;flex-wrap:wrap}
.woocommerce-result-count{margin:0;font-size:14.08px;color:var(--muted)}
.woocommerce-ordering{margin:0}
.woocommerce-ordering select{height:38px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:14.08px;color:var(--ink)}
@media (max-width:921px){
  .lh-shop__wrap{grid-template-columns:1fr}
  .lh-shop-side{padding:16px 14px}
}

/* ==========================================================================
   10. 旧站复刻：页脚 / 首页区块 / 手机页眉（数值全部来自旧站实测，不自己发挥）
   ========================================================================== */

/* 页脚：深色 rgb(36,31,27)、内容宽 1140、桌面 4 栏 342+228+228+228、底部版权条左右两段 */
.site-footer{background:#241f1b;color:rgba(255,255,255,.88);font-size:15px;padding:52px 0 0;margin:0}
.site-footer__wrap{max-width:1140px;margin:0 auto;padding:0 18px 28px}
.site-footer__grid{display:grid;grid-template-columns:342px 228px 228px 228px;justify-content:space-between}
.site-footer__brand p{margin:0 0 6px}
.site-footer__name{color:#fff;font-weight:700;font-size:17px;margin:0 0 8px}
.site-footer__col .site-footer__h{margin:0 0 10px;font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#fff;font-family:var(--font)}
.site-footer__col ul{margin:0;padding:0;list-style:none}
.site-footer__col li{margin:0 0 6px}
.site-footer a{color:rgba(255,255,255,.88)}
.site-footer a:hover{color:#fff;text-decoration:underline}
.site-footer__bar{border-top:1px solid rgba(255,255,255,.2);padding:16px 0}
.site-footer__bar .site-footer__wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:0}
.site-footer__bar p{margin:0;font-size:13px;color:rgba(255,255,255,.8)}

/* 首页：主视觉 + 信任条 */
.lh-hero__inner{display:grid;grid-template-columns:1fr 498px;gap:40px;align-items:center;padding:56px 20px 40px}
.lh-hero h1{font-size:52px;font-weight:700;line-height:1.08;margin:0 0 14px;color:var(--ink);font-family:var(--font)}
.lh-hero p{font-size:17px;color:var(--muted);max-width:52ch}
.lh-hero__btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.lh-hero__media img{width:100%;height:auto;display:block}
.lh-trust{background:var(--ink);color:#fff;padding:16px 0}
.lh-trust ul{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.lh-trust li{display:flex;flex-direction:column;font-size:13.5px}
.lh-trust span{color:rgba(255,255,255,.72);font-size:12.5px}

/* 首页区块：Most popular / Shop by need / Why they fit / CTA */
.lh-sec{padding:64px 0}
.lh-sec--alt{background:#faf8f5}
.lh-eyebrow{font-size:12.48px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-2);font-weight:600;margin:0 0 8px;font-family:var(--serif)}
.lh-sec h2{font-size:32px;font-weight:700;margin:0 0 10px;color:var(--ink);font-family:var(--font)}
.lh-lead{font-size:16px;color:var(--muted);margin:0 0 26px;max-width:70ch}
.lh-products{margin-bottom:26px}
.lh-cats{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.lh-cat{display:block;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.lh-cat img{width:100%;height:230px;object-fit:cover;display:block}
.lh-cat__body{display:flex;flex-direction:column;gap:4px;padding:16px 18px 18px}
.lh-cat__body strong{font-size:17px;color:var(--ink)}
.lh-cat__sub{font-size:15px;color:var(--muted)}
.lh-cat__go{color:var(--wood);font-weight:600;font-size:15px;margin-top:6px}
.lh-fit{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.lh-fit h3{font-size:17px;font-weight:600;margin:0 0 8px;color:var(--ink)}
.lh-fit p{font-size:15px;color:var(--muted)}
.lh-cta{padding:56px 0 64px;text-align:center}
.lh-cta h2{font-size:32px;font-weight:700;margin:0 0 10px}
.lh-cta p{font-size:16px;color:var(--muted);margin:0 0 18px}

/* 手机端：页脚 2 栏 + 首页字号缩小 + 页眉 80px（logo 67×58、购物车 49×49、汉堡 44×44、左右 20px） */
@media (max-width:921px){
  .site-footer{padding:26px 0 0}
  .site-footer__grid{grid-template-columns:1fr 1fr;gap:18px 12px}
  .site-footer__brand{grid-column:1 / -1}
  .site-footer__bar .site-footer__wrap{flex-direction:column;gap:6px}
  .lh-hero__inner{grid-template-columns:1fr;gap:22px;padding:36px 18px 26px}
  .lh-hero h1{font-size:30px}
  .lh-sec{padding:36px 0}
  .lh-sec h2,.lh-cta h2{font-size:22px}
  .lh-cats{grid-template-columns:1fr}
  .lh-fit{grid-template-columns:1fr;gap:18px}
  .lh-trust ul{grid-template-columns:1fr 1fr}
  .site-header__inner{min-height:80px;gap:12px;padding:0 20px}
  .site-header__brand img{width:67px;height:58px}
  .site-header__cart{margin-left:auto}
  .site-header__cart-icon{width:49px;height:49px}
  .site-header__count{min-width:16px;height:16px;font-size:10px;padding:0 4px}
  .site-header__burger{width:44px;height:44px;margin-left:8px;display:flex;align-items:center;justify-content:center}
  .site-header__nav{top:80px}
}

/* ==========================================================================
   本轮改动：页眉 hover 放大 / 商品卡排版 / 筛选器 / 工具栏分界线 / 面包屑与标题
   （放在文件最后，同优先级时覆盖前面的规则）
   ========================================================================== */

/* ① 页眉：菜单项 和 Sign in ——— 鼠标放上去放大 + 变棕 */
.site-header__nav .nav > li > a,
.site-header__signin{transition:transform .16s ease-out,color .16s ease-out}
.site-header__nav .nav > li > a:hover,
.site-header__signin:hover{transform:scale(1.08);color:var(--wood)}

/* ② 购物车 + 金额 是一个整体：hover 时一起变棕、一起放大 */
.site-header__cartgroup{transition:transform .16s ease-out}
.site-header__cartgroup:hover{transform:scale(1.08)}
.site-header__cartgroup:hover .site-header__cart,
.site-header__cartgroup:hover .site-header__total,
.site-header__cartgroup:hover .site-header__total .amount{color:var(--wood)}

/* ③ 加购成功后不再显示 "View basket" 链接（有飞入动画就够，不需要这行字） */
.added_to_cart{display:none}

/* ④ 工具栏（Showing … results + 排序框）下面加一条分界线 —— 全站。
   结果条和排序框【底部对齐】，两者底边与分界线顶边的间距正好 4px（内部 margin 全部清零，不留额外空隙） */
.lh-shop-bar{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;padding-bottom:4px;margin:0 0 18px;border-bottom:1px solid var(--line)}
.lh-shop-bar .woocommerce-result-count{margin:0}
.lh-shop-bar .woocommerce-ordering{margin:0}
.lh-shop-bar .woocommerce-ordering select{margin:0;vertical-align:bottom}

/* ⑤ 商品卡排版：
      图 → 标题 → 星级
      →（左：单价 上 / (includes VAT) 下  ｜ 右：数量下拉）
      →（左：Add to Basket            ｜ 右：Buy Now）
   用 grid + display:contents，把 <form> 里的节点提到卡片网格里，和价格排进同一网格 */
ul.products li.product{display:grid;grid-template-columns:1fr 1fr;column-gap:8px;row-gap:6px;align-items:start}
ul.products li.product .card__media,
ul.products li.product .card__title,
ul.products li.product .card__rating{grid-column:1 / -1}
/* 第三行：左半栏 = 单价 / (VAT includes £xx) 两行，在该栏（= Add to Basket 的宽度）里居中；
            右半栏 = 数量选择器，在该栏（= Buy Now 的宽度）里居中 */
ul.products li.product .card__price{grid-column:1;grid-row:4;display:flex;flex-direction:column;align-items:center;text-align:center;gap:0}
ul.products li.product .card__price .card__vat{display:block}
ul.products li.product .card__buy,
ul.products li.product .card__row,
ul.products li.product .card__actions{display:contents}
ul.products li.product .card__qty{grid-column:2;grid-row:4;justify-self:center;align-self:center}
ul.products li.product .card__actions .add_to_cart_button{grid-column:1;grid-row:5}
ul.products li.product .card__actions .lh-buy-now{grid-column:2;grid-row:5}
ul.products li.product .card__actions .btn{width:100%;margin:0}
/* 数量选择器：自建下拉（原生 <select> 的下拉高度浏览器不给 CSS 控制，
   只有自建才能保证"任何浏览器都只显示 5 行 + 内部滚动"）。
   原生 select 保留在 DOM 里（display:none，仍随表单提交），自建下拉把值写回它。
   浮层列表用 position:absolute —— 与已批准的迷你购物车浮层同一性质（本质要盖在内容之上），
   布局本身仍然是 grid，没有用绝对定位去凑像素。 */
ul.products li.product .card__qty select{display:none}
.lh-dd{position:relative;display:inline-block}
.lh-dd__btn{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;height:30px;min-width:56px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:13px;font-family:inherit;cursor:pointer}
.lh-dd__btn:hover{border-color:rgb(209,213,219)}
.lh-dd__btn::after{content:"";width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid var(--muted-2)}
.lh-dd__menu{position:absolute;top:calc(100% + 4px);left:0;z-index:20;min-width:100%;max-height:calc(5 * 28px + 2px);overflow-y:auto;padding:0;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,.14)}
.lh-dd__menu[hidden]{display:none}
.lh-dd__opt{height:28px;line-height:28px;padding:0 10px;font-size:13px;color:var(--ink);cursor:pointer;white-space:nowrap}
.lh-dd__opt:hover{background:#f7f4ef}
.lh-dd__opt[aria-selected="true"]{color:var(--wood);font-weight:600}

/* ⑦ 左侧筛选栏的三个分组标题：文字下方加一条浅灰下划线，更像区块标题 */
.lh-shop-side .lh-filter-title{border-bottom:1px solid var(--line);padding-bottom:6px}

/* ⑥ shop / 分类页：去掉面包屑下面那个大标题，内容紧贴面包屑（4px）
   注意还要清掉 .lh-shop__wrap 自带的 margin-top:16px，否则间距会是 20px */
.post-type-archive-product .lh-shop > .container > h1,
.tax-product_cat .lh-shop > .container > h1{display:none}
.post-type-archive-product .lh-shop,
.tax-product_cat .lh-shop{padding-top:4px}
.post-type-archive-product .lh-shop__wrap,
.tax-product_cat .lh-shop__wrap{margin-top:0}

/* ⑧ 产品卡（Shop 页 / 分类页 / 首页 / 相关商品）的五星评价：字号整体放大到 1.3 倍
   星号 15→19.5px、星与星之间 letter-spacing .5→.65px、星与「6 reviews」间距 6→7.8px
   这两个值【不要动】：星号字号、字距、颜色都是用户明确要求保持不变的。 */

/* ⑨ 星级行与上方标题、下方价格之间的【实际视觉间距】压到 4px
   ⚠️ 之前只算「盒子到盒子」是错的：星星字形 14px 却待在 32.17px 的行盒里，
      行高 1.65 带来上下各约 6px 的内部留白 → 盒子间距写着 4px，肉眼看到的是 15.5px。

   做法分两步（用 4 倍放大截图 + 逐行扫像素量「墨迹到墨迹」的距离定的值）：
     1) line-height:1  —— 把行盒压到 19.5px，挤掉字形内部的留白（字形 14px，不会被裁）
     2) 负 margin 补偿剩下的空白（标题的下伸部留白 + 价格的上伸部留白 + 网格自带的 row-gap:6px）
   实测结果（Shop 页 / 分类页，4 倍放大像素扫描）：标题墨迹底→星顶 = 4px，星底→价格墨迹顶 = 4px ✓

   ❗别再改回 margin:4px 0 —— 卡片网格自带 row-gap:6px（见上面 ul.products li.product），
     那样算出来是 10px；就算只写 margin:0 也还有 11.25 / 16px 的视觉间距。
   ❗首页（ul.products.lh-products）的标题盒用 min-height:2.6em 预留了两行，
     但那 4 张卡的文字其实都只占 1 行 → 标题下方有约 20.8px 的空盒子。
     那不是星级行的留白，负 margin 补不掉（补了就会和真的两行标题重叠），
     所以首页上方目前是 26.75px。要压到 4px 必须动 .card__title 的 min-height，另说。

   作用域写死 ul.products li.product —— 商品详情页标题下的星级在 .pdp__right 里，
   不在这两个选择器范围内，完全不受影响（实测仍是 15px / .5px / 行高 1.65）。 */
ul.products li.product .card__rating{line-height:1;gap:7.8px;margin:-6.25px 0 -13px}

/* ⑩ 商品卡的星星：字体字符 ★/☆ 换成内联 SVG 圆角五角星（只换商品卡；详情页走 single-product.php，
      仍然输出字体 ★，不受这两个选择器影响）。
   尺寸刻意做成和原来一模一样，所以字号 / 星距 / 对齐 / 与标题和价格的间距全都不用改：
     · SVG 盒子 15.9 × 19.5px，墨迹 14.5 × 14px 居中 → 左右各留 0.70px、上下各留 2.75px
     · 行高仍是 19.5px（= 原 font-size 19.5px × line-height 1），所以上面 ⑨ 的 4px 间距自动保持
     · 星与星的墨迹空隙 = 0.70 + gap .65 + 0.70 = 2.05px（原来是 2.00~2.13px）
     · 颜色沿用上面的 .stars{color:#fda256}，SVG 用 fill:currentColor 继承
   空心星（没有评价时的 ☆）用内缩 1.1px 的同形状描边，外沿同样是 14.5 × 14px。 */
ul.products li.product .card__rating .stars{display:inline-flex;align-items:center;gap:.65px;height:19.5px;letter-spacing:0}
ul.products li.product .card__rating .stars .star{display:block;width:15.9px;height:19.5px;fill:currentColor}
ul.products li.product .card__rating .stars .star--empty{fill:none;stroke:currentColor;stroke-width:1.1;stroke-linejoin:round}

/* ⑪ 首页商品卡的标题：不再预留空的第二行
   首页那 4 张卡的标题文字都只占 1 行，而 .card__title 的 min-height:2.6em 会固定预留两行
   → 标题盒子下方多出约 20.8px 空白，看起来星星离标题很远（实测 26.75px）。
   去掉预留后，星星上方也就是 4px 了。只作用在首页的 ul.products.lh-products 上，
   Shop 页 / 分类页（标题真的占 2~4 行）完全不受影响。 */
ul.products.lh-products li.product .card__title{min-height:0}

/* 首页的星级行再单独上提 1px。
   原因：首页那 4 个标题都只有 1 行，而且末行没有下伸部（逗号 / g / y / p 这类），
   标题墨迹底离盒子底比 Shop 页（末行带逗号）远约 2px → 星星上方会多出约 2px。
   这里把星星行上提，让首页上下更均衡（实测 上 5px / 下 4.75px）。
   ⚠️ 首页 4/4 做不到：标题盒和价格盒之间的可用空间是固定的（实测上下合计约 9.75px），
      再压低上面就会把下面顶出去（试过 mt:-8.25 → 上 4 / 下 5.75，更不均衡）。 */
ul.products.lh-products li.product .card__rating{margin-top:-7.25px}

/* 购物车右侧卡片里，运费一行只留 “Free shipping / 金额”，去掉那段说明与计算器 */
.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
.woocommerce-cart .cart_totals .woocommerce-shipping-calculator,
.woocommerce-cart .cart_totals .woocommerce-shipping-methods li label .woocommerce-Price-amount{display:inline}
.woocommerce-cart .cart_totals .woocommerce-shipping-destination p,
.woocommerce-cart .cart_totals .shipping-calculator-form{display:none}

/* ==========================================================================
   ⑭ 提示条（notice）
   1) 加购成功那条 “has been added to your basket. View basket” —— 站上已经有飞入动画
      和侧滑抽屉做反馈，不需要这条文字。PHP 侧已用 wc_add_to_cart_message_html 清空内容，
      这里再把可能剩下的空壳收掉。❗只针对【成功/消息】类 .woocommerce-message，
      绝不碰 .woocommerce-error（表单报错）和 .woocommerce-info；
      而且只在商品页 / 商店 / 分类 / 首页隐藏，【购物车页和结账页一律不动】。
   2) 购物车页删除商品后的 “… removed. Undo?” 提示：去掉绿色，换成站点风格的浅米色卡片。
   ========================================================================== */
.single-product .woocommerce-message,
.post-type-archive-product .woocommerce-message,
.tax-product_cat .woocommerce-message,
.home .woocommerce-message{display:none}

.woocommerce-cart .woocommerce-message{
  display:block;
  background:rgb(250,247,243);
  border:1px solid rgb(230,223,214);
  border-radius:10px;
  box-shadow:none;
  margin:0 0 18px;
  padding:13px 16px;
  color:var(--body);
  font-size:14.5px;
}
.woocommerce-cart .woocommerce-message::before,
.woocommerce-cart .woocommerce-message::after{display:none;content:none}
.woocommerce-cart .woocommerce-message .button,
.woocommerce-cart .woocommerce-message a.restore-item{
  float:none;
  height:auto;
  margin:0 0 0 6px;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  color:rgb(140,90,60);
  font-family:inherit;
  font-size:14.5px;
  font-weight:600;
  line-height:inherit;
  text-decoration:underline;
  cursor:pointer;
}
.woocommerce-cart .woocommerce-message .button:hover,
.woocommerce-cart .woocommerce-message a.restore-item:hover{color:var(--wood-dark)}

/* ==========================================================================
   ⑮ Order Summary 卡片修复
   ① 金额溢出：每行改 flex —— 标签 flex-shrink:0 不压缩，金额 flex:1 1 auto 右对齐、
      min-width:0 + word-break 允许换行，绝不超出卡片右边框。
   ② 卡片 sticky 固定在右侧（仅桌面端）。
   ③ 信任徽章：原来撞上了首页那条深色 .lh-trust（background:var(--ink)），这里覆盖回浅色。
   ④ 运费行：标签与说明换行对齐，互不挤压。
   ========================================================================== */

/* ① 每行 flex（金额区表格，不是商品 shop_table） */
.woocommerce-cart .cart_totals table.shop_table{display:block;width:100%}
.woocommerce-cart .cart_totals table.shop_table tbody{display:block}
.woocommerce-cart .cart_totals table.shop_table tr{
  display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px;
  padding:9px 0;border:0;border-bottom:1px solid var(--line);
}
.woocommerce-cart .cart_totals table.shop_table tr:last-child{border-bottom:0}
.woocommerce-cart .cart_totals table.shop_table th{flex-shrink:0;padding:0;border:0;font-weight:400}
.woocommerce-cart .cart_totals table.shop_table td{
  flex:1 1 auto;min-width:0;text-align:right;padding:0;border:0;
  white-space:normal;word-break:break-word;overflow-wrap:anywhere;
}
/* Total：金额一行，(includes … VAT 20%) 另起一行放下面、字号小一点 */
.woocommerce-cart .cart_totals tr.order-total{border-top:1px solid var(--line);padding-top:12px}
.woocommerce-cart .cart_totals tr.order-total td{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.woocommerce-cart .cart_totals tr.order-total td small.includes_tax{
  font-size:12px;font-weight:400;color:rgb(140,90,60);text-align:right;white-space:normal;
}

/* ④ 运费行：标签与说明各占一行、都靠右，不互相挤 */
.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td{
  display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right;
}
.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td .woocommerce-shipping-destination{
  font-size:12.5px;color:var(--muted);white-space:normal;
}

/* ③ 信任徽章：覆盖首页那条深色 .lh-trust，回到卡片内的浅色区域 */
.woocommerce-cart .cart_totals .lh-trust{
  display:flex;flex-direction:column;gap:12px;list-style:none;
  margin:20px 0 0;padding:16px 0 0;
  background:transparent;color:var(--body);border:0;border-top:1px solid var(--line);border-radius:0;
}
.woocommerce-cart .cart_totals .lh-trust li{
  display:flex;flex-direction:row;align-items:center;gap:10px;
  font-size:13.5px;color:#241f1b;
}
.woocommerce-cart .cart_totals .lh-trust svg{flex:0 0 auto;width:18px;height:18px;fill:none;stroke:var(--wood);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.woocommerce-cart .cart_totals .lh-trust .lh-trust__txt{display:flex;flex-direction:column;gap:1px;min-width:0}
.woocommerce-cart .cart_totals .lh-trust .lh-trust__main{color:#241f1b;font-weight:600;font-size:13.5px}
.woocommerce-cart .cart_totals .lh-trust .lh-trust__sub{color:var(--muted);font-size:12.5px}

/* ② sticky 固定右侧（只桌面端；手机端保持普通流式） */
@media (min-width:901px){
  .woocommerce-cart .cart-collaterals{position:sticky;top:20px}
}
/* sticky 会被祖先的 overflow 裁掉，这里确保购物车页的祖先不裁剪（默认就是 visible，写明确些） */
.woocommerce-cart .site-main,
.woocommerce-cart .section,
.woocommerce-cart .container,
.woocommerce-cart .entry,
.woocommerce-cart .entry > .woocommerce{overflow:visible}

/* ==========================================================================
   ⑯ 收尾：运费行只留标签 + 说明；手机端把商品表格收进屏幕，不再横向溢出
   ========================================================================== */
/* 「Calculate shipping」那个链接跟“Enter your address…”重复了，收掉 */
.woocommerce-cart .cart_totals .shipping-calculator-button{display:none}

/* 手机端：原生表格 6 列 + 价格列 nowrap 会把页面撑出横向滚动。
   这里把 Price 列收掉（响应式购物车常见做法），其余列允许换行，
   让表格宽度回到容器内。桌面端不受影响。 */
@media (max-width:640px){
  .woocommerce-cart table.shop_table.cart th.product-price,
  .woocommerce-cart table.shop_table.cart td.product-price{display:none}
  .woocommerce-cart table.shop_table.cart th,
  .woocommerce-cart table.shop_table.cart td{white-space:normal}
  .woocommerce-cart table.shop_table.cart td.product-subtotal{white-space:nowrap}
  .woocommerce-cart .entry > .woocommerce{max-width:100%}
  .woocommerce-cart .cart_totals{padding:18px}
}

/* ==========================================================================
   ⑰ 购物车「删除商品」提示：从内联条改成一个屏幕正中央的小方窗
   ❗只针对【删除提示】—— 用 :has(a.restore-item) 精确匹配 WooCommerce 那条
     “xxx removed. Undo?”（它带 <a class="restore-item">）。
     优惠码等其他 .woocommerce-message、结账页的 .woocommerce-error、
     空车时的 .woocommerce-info 一律不受影响。
   没有遮罩层，不挡其他操作；点 Undo 或右上角 × 或 5 秒后自动关闭（JS 控制）。
   ========================================================================== */
.woocommerce-cart :is(.lh-cart-toast,.woocommerce-message:has(a.restore-item)){
  position:fixed;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  z-index:1000;
  width:340px;max-width:calc(100vw - 32px);height:auto;
  margin:0;padding:20px 24px;
  background:rgb(250,247,243);
  border:1px solid rgb(230,223,214);
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.15);
  color:#3f3a35;
  font-size:.95rem;
  line-height:1.5;
  text-align:left;
  animation:lh-toast-in .25s ease-out both;
}
.woocommerce-cart :is(.lh-cart-toast,.woocommerce-message:has(a.restore-item))::before,
.woocommerce-cart :is(.lh-cart-toast,.woocommerce-message:has(a.restore-item))::after{display:none;content:none}
.woocommerce-cart :is(.lh-cart-toast,.woocommerce-message:has(a.restore-item)) a.restore-item,
.woocommerce-cart :is(.lh-cart-toast,.woocommerce-message:has(a.restore-item)) .button{
  float:none;height:auto;margin:0 0 0 6px;padding:0;border:0;border-radius:0;background:none;
  color:rgb(140,90,60);font-family:inherit;font-size:.95rem;font-weight:600;
  line-height:inherit;text-decoration:underline;cursor:pointer;
}
.woocommerce-cart :is(.lh-cart-toast,.woocommerce-message:has(a.restore-item)) a.restore-item:hover,
.woocommerce-cart :is(.lh-cart-toast,.woocommerce-message:has(a.restore-item)) .button:hover{color:var(--wood-dark)}
/* 右上角小 × 关闭按钮（由 site.js 追加；用 float 定位，不引入新的 position:absolute） */
.woocommerce-cart :is(.lh-cart-toast,.woocommerce-message:has(a.restore-item)) .lh-notice-x{
  float:right;width:26px;height:26px;margin:-8px -12px 0 8px;
  display:inline-flex;align-items:center;justify-content:center;
  padding:0;border:0;border-radius:50%;background:transparent;
  color:var(--muted-2);font-family:inherit;font-size:18px;line-height:1;cursor:pointer;
}
.woocommerce-cart :is(.lh-cart-toast,.woocommerce-message:has(a.restore-item)) .lh-notice-x:hover{background:#efe9e1;color:#241f1b}
/* 淡入 + 轻微放大 / 淡出 */
@keyframes lh-toast-in{from{opacity:0;transform:translate(-50%,-50%) scale(.94)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes lh-toast-out{from{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-50%) scale(.96)}}
.woocommerce-cart .woocommerce-message.is-hiding,
.woocommerce-cart .lh-cart-toast.is-hiding{animation:lh-toast-out .25s ease-out both}

/* ==========================================================================
   ⑱ 购物车页电脑端四处收尾
   ① 删除 X 挪到整行最右：只改 CSS 列顺序（flex order），一个 DOM 节点都不动
   ② 商品名最多 2 行（-webkit-line-clamp:2），超出省略号；顺手收窄价格/数量/小计
      的左右间距，商品名与描述间距 4px，描述小字 0.8rem —— 整行高度降下来
   ③ 右侧 Order Summary 吸顶下移到页眉之下：top:121px（页眉 101 + 呼吸 20），
      仅桌面端；不用 position:fixed
   ④ 修 ≤900px 变单列时 form 与 .cart-collaterals 仍钉在同一 grid-row 互相压住的
      问题（那正是窄屏下数量加减号被卡片盖住的原因）
   ========================================================================== */

/* ① 列序：缩略图 → 商品名 → 价格 → 数量 → 小计 → 删除X（thead / tbody 用同一套） */
.woocommerce-cart table.shop_table.cart thead tr,
.woocommerce-cart table.shop_table.cart tbody tr{display:flex;align-items:center;flex-wrap:nowrap;width:100%}
.woocommerce-cart table.shop_table.cart thead th.product-thumbnail,
.woocommerce-cart table.shop_table.cart td.product-thumbnail{order:1;flex:0 0 96px}
.woocommerce-cart table.shop_table.cart thead th.product-name,
.woocommerce-cart table.shop_table.cart td.product-name{order:2;flex:1 1 auto;min-width:0}
.woocommerce-cart table.shop_table.cart thead th.product-price,
.woocommerce-cart table.shop_table.cart td.product-price{order:3;flex:0 0 88px}
.woocommerce-cart table.shop_table.cart thead th.product-quantity,
.woocommerce-cart table.shop_table.cart td.product-quantity{order:4;flex:0 0 130px}
.woocommerce-cart table.shop_table.cart thead th.product-subtotal,
.woocommerce-cart table.shop_table.cart td.product-subtotal{order:5;flex:0 0 100px}
.woocommerce-cart table.shop_table.cart thead th.product-remove,
.woocommerce-cart table.shop_table.cart td.product-remove{order:6;flex:0 0 40px;width:auto;min-width:0;padding-left:4px;padding-right:0}
/* 优惠码那一行是 colspan 的单元格，跟着 flex 铺满整行 */
.woocommerce-cart table.shop_table.cart tbody tr td.actions{flex:1 1 100%}

/* ② 标题最多 2 行 + 收窄间距 */
.woocommerce-cart table.shop_table.cart td.product-name a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.woocommerce-cart table.shop_table.cart thead th.product-price,
.woocommerce-cart table.shop_table.cart td.product-price,
.woocommerce-cart table.shop_table.cart thead th.product-quantity,
.woocommerce-cart table.shop_table.cart td.product-quantity,
.woocommerce-cart table.shop_table.cart thead th.product-subtotal,
.woocommerce-cart table.shop_table.cart td.product-subtotal{padding-left:6px;padding-right:6px}
.woocommerce-cart .lh-item-desc{margin-top:4px;font-size:.8rem}
.woocommerce-cart table.shop_table.cart td.product-name dl.variation{margin-top:4px;font-size:.8rem}
/* 加减号：浅灰底、圆角，和输入框同高；hover 走木色 */
.woocommerce-cart table.shop_table.cart td.product-quantity .lh-step:hover{background:#f0e4da;color:var(--wood-dark)}

/* ③ 吸顶位置：页眉高 101px，下面留 20px 呼吸 */
@media (min-width:901px){
  .woocommerce-cart .cart-collaterals{position:sticky;top:121px}
}

/* ④ 窄屏单列：左右两栏改成上下两行，别再压在一起 */
@media (max-width:900px){
  .woocommerce-cart .entry > .woocommerce > form.woocommerce-cart-form{grid-column:1;grid-row:1}
  .woocommerce-cart .entry > .woocommerce > .cart-collaterals{grid-column:1;grid-row:2}
}

/* ==========================================================================
   ⑲ 购物车页第二批收尾
   ① 分割线：原来画在每个单元格的 border-bottom 上，flex 行里各单元格内容高度不同
      → 线的高低不齐。改成整行一条线（画在 tr 上），天然左右到边、上下对齐、
      与表头/右侧卡片同宽。
   ② 表头吸顶：仅桌面端，位置和右侧 Order Summary 一样 top:121px
   ③ 面包屑与页面标题间距 4px
   ④ 金额区两处 VAT 小字：0.8rem、棕色 rgb(140,90,60)
   ========================================================================== */

/* ① 行线画在 tr 上；单元格不再各自画线 */
.woocommerce-cart table.shop_table.cart th,
.woocommerce-cart table.shop_table.cart td{border-bottom:0}
.woocommerce-cart table.shop_table.cart tbody tr{border-bottom:1px solid rgb(230,223,214)}
.woocommerce-cart table.shop_table.cart tbody tr:last-child{border-bottom:0}
.woocommerce-cart table.shop_table.cart thead{border-bottom:1px solid rgb(230,223,214);background:var(--bg)}

/* ② 表头吸顶（桌面端） */
@media (min-width:901px){
  .woocommerce-cart table.shop_table.cart thead{position:sticky;top:121px;z-index:6}
}

/* ③ 面包屑 → H1 之间 4px */
.woocommerce-cart .breadcrumb{padding-bottom:0}
.woocommerce-cart article.section.page{padding-top:0}
.woocommerce-cart .page__head{margin-top:4px}

/* ④ 小字 */
.woocommerce-cart .cart_totals .lh-sub-vat{display:block;margin-top:2px;font-size:.8rem;font-weight:400;color:rgb(140,90,60);white-space:normal}
.woocommerce-cart .cart_totals tr.order-total td small.includes_tax{font-size:.8rem;font-weight:400;color:rgb(140,90,60)}

/* ==========================================================================
   ⑳ 删除提示小窗：关闭按钮做得清楚可见（24×24、白底描边），文案仍是
      「"商品名" removed. Undo?」，位置仍是屏幕正中，2 秒自动消失（时间由 site.js 控制）
   ========================================================================== */
.woocommerce-cart :is(.lh-cart-toast,.woocommerce-message:has(a.restore-item)) .lh-notice-x{
  float:right;width:24px;height:24px;margin:-4px -8px 0 10px;
  display:inline-flex;align-items:center;justify-content:center;
  padding:0;border:1px solid rgb(230,223,214);border-radius:50%;
  background:#fff;color:#241f1b;font-family:inherit;font-size:15px;line-height:1;cursor:pointer;
  box-sizing:border-box;
}
.woocommerce-cart :is(.lh-cart-toast,.woocommerce-message:has(a.restore-item)) .lh-notice-x:hover{
  background:#efe9e1;border-color:rgb(140,90,60);color:var(--wood-dark);
}

/* ==========================================================================
   ㉑ 表头下划线（Product / Price / Quantity / Subtotal）
   border-collapse:collapse + position:sticky 是已知坑：边框跟着表格原点画，
   表头吸顶后那条下划线会整条消失（实测：未滚动 754px 线 → 吸顶后 0px）。
   改成画在每个 th 上（inset box-shadow），线跟着表头一起吸顶、永远在；
   同时让 th 撑满行高，保证六个格子的线仍在同一条水平线上。
   ========================================================================== */
.woocommerce-cart table.shop_table.cart thead{border-bottom:0}
.woocommerce-cart table.shop_table.cart thead tr{align-items:stretch}
.woocommerce-cart table.shop_table.cart thead th{
  display:flex;align-items:center;
  box-shadow:inset 0 -1px 0 rgb(230,223,214);
}
.woocommerce-cart table.shop_table.cart thead th.product-price,
.woocommerce-cart table.shop_table.cart thead th.product-quantity,
.woocommerce-cart table.shop_table.cart thead th.product-subtotal{justify-content:center}

/* ==========================================================================
   ㉒ 商品表金额列宽锁定：金额变大 / 数量变多时不再把列挤错位
   根因：flex 项目的 min-width 默认是 auto，小计格里的
   「£39.99 (VAT includes £6.66)」把它撑到 122~135px，而且每行撑的宽度不一样
   （实测第1行 subtotal x752 w122、第2行 x745 w129）→ 价格/数量列每行位置都不同，
   点加减把数量改大时整行会横向"跳"。这里把金额列锁死，只让 VAT 小字换行。
   ========================================================================== */
.woocommerce-cart table.shop_table.cart thead th.product-price,
.woocommerce-cart table.shop_table.cart td.product-price{min-width:0;flex:0 0 92px}
.woocommerce-cart table.shop_table.cart thead th.product-quantity,
.woocommerce-cart table.shop_table.cart td.product-quantity{min-width:0;flex:0 0 130px}
.woocommerce-cart table.shop_table.cart thead th.product-subtotal,
.woocommerce-cart table.shop_table.cart td.product-subtotal{min-width:0;flex:0 0 134px;white-space:normal}
.woocommerce-cart table.shop_table.cart td.product-price .amount,
.woocommerce-cart table.shop_table.cart td.product-subtotal .amount{white-space:nowrap}
.woocommerce-cart table.shop_table.cart td.product-subtotal .lh-cart-item-vat{white-space:normal;overflow-wrap:anywhere}

/* ==========================================================================
   ㉓ 详情页：Available on Amazon 圆角标志
   与商品卡上那个标志完全同一套数值（米白底 / 棕色字 / 棕色描边 / 999px 圆角 / 11px）。
   ========================================================================== */
/* 详情页只保留卡片同款的圆角「Available on Amazon」标志，不做通栏按钮 */
/* 价格下方的同款圆角标志：和商品卡上的 .card__media > .card__amz 完全同一套数值
   （米白底 / 棕色字 / 1px 棕色描边 / 999px 圆角 / 11px / 内边距 3px 8px） */
/* 图册改成纵向 flex：标志在最上面、align-self:flex-end 让右边缘与图片右边缘对齐，
   和 shop 卡片上的 .card__media > .card__amz 完全同一套摆法 */
.pdp__gallery{display:flex;flex-direction:column}
.pdp__gallery > .pdp__amz-badge{align-self:flex-end;margin:8px 10px 6px 0}
.pdp__amz-badge{
  display:inline-block;padding:3px 8px;
  border:1px solid rgb(140,90,60);border-radius:999px;
  background:var(--surface);color:rgb(140,90,60);
  font-size:11px;font-weight:600;line-height:1.5;text-decoration:none;
}
.pdp__amz-badge:hover{background:#fff;color:var(--wood-dark);border-color:var(--wood-dark)}

/* ==========================================================================
   ㉔ 结账页 /checkout/ —— eBay 风格单栏（第 14 轮；第 15 轮收紧间距 + 商品行加「单价 × 数量 = 小计」）
   ⚠️ 本节【整体替换】了第 12 轮的两栏「左表单 + 右 Order Summary 卡片」布局
      （含那个 31px 白缝的 align-self:stretch 修法，现在不需要了）。
   目标结构：顶部 Checkout + 锁/Secure checkout → 模块1 Shipping address
             → 模块2 Payment method → 模块3 Review item and shipping → 底部 Confirm and pay
   实现边界：
     · 缩略图 / "New" / 数量步进器 / 计算行 / VAT 行 / 模块标题 都是 site.js【追加】的节点 ——
       只加不挪，WooCommerce 原有的 nonce / 优惠券 / 运费 / 支付字段一个都没动、没移位。
     · 视觉顺序（支付在前、商品在后、按钮最后）靠 CSS 的 order 实现，手段是
       #payment{display:contents} 把它的两个子节点提升为 #order_review 的 flex 项目。
       ❗注意 display:contents 只改「盒树」不改 DOM 父子关系，选择器必须写全路径。
     · 本段不写强制覆盖声明（感叹号加 important 那种），也不写绝对定位。
   ========================================================================== */

/* ---- ① 内容容器：640px 居中白卡（圆角 12px、内边距 12px、1px 描边）----
   ❗第 17 轮：卡片内边距 3px → 12px（四周各 +9px），但要求【里面内容一动不动】。
     横向：光加内边距会把内容往里挤 9px，所以左右各来 9px 负外边距把卡片整体向外撑 ——
           卡片变成 640+18 = 658px，内容可用宽度 = 658-24-2 = 632px，
           与改前 640-6-2 = 632px 完全一致 → 横向零位移（已用几何快照逐元素比对验证）。
     纵向：补不了。卡片上方只有 3px 空隙（优惠券条底 → 卡片顶），向上撑 9px 会压到优惠券条，
           所以内容会整体下移 9px —— 这是「上内边距 +9px」的必然结果。
           要做到纵向也零位移，得同时把页面上内边距减 9px（那属于卡片以外的样式，按用户要求未动）。 */
.woocommerce-checkout .entry{max-width:none}
.woocommerce-checkout .entry > .woocommerce{max-width:640px;margin-left:auto;margin-right:auto}
.woocommerce-checkout form.checkout{
  display:block;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  margin-left:-9px;margin-right:-9px;
}
/* ❗配套（第 17 轮）：卡片内边距 3px→12px 会让内容整体下移 9px ——
   因为卡片上方只有 3px 空隙，向上撑 9px 会压到优惠券条。
   这里把结账页的【页面上内边距】减 9px，让「页头 → 优惠券 → 卡片」整条上移 9px，
   卡片顶正好落在优惠券下方 3px（不重叠），于是卡片内部所有元素的 y 完全回到原位。
   ❗用 calc() 而不是写死 55px：--sec 是 clamp(36px,5vw,64px)，写死数值在窄屏上会算错。 */
.woocommerce-checkout article.section.page{padding-top:calc(var(--sec) - 9px)}

/* ---- ② 顶部：左 Checkout 标题 / 右 锁图标 + Secure checkout ---- */
.woocommerce-checkout .page__head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  max-width:640px;margin:0 auto 4px;
}
.woocommerce-checkout .page__head h1{font-size:24px;margin:0;line-height:1.2}
.woocommerce-checkout .page__head::after{
  content:"Secure checkout";
  flex:0 0 auto;
  padding-left:23px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b625b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='10.5' width='16' height='9.5' rx='2'/><path d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/></svg>") left center/17px 17px no-repeat;
  font-size:13px;line-height:17px;color:var(--muted);white-space:nowrap;
}

/* ---- ③ 模块标题（1. / 2. / 3.）；标题与内容间距 4px ---- */
.woocommerce-checkout form.checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout form.checkout #order_review > .lh-eb-h{
  font-family:var(--font);
  font-size:17px;font-weight:700;line-height:1.3;color:var(--ink);
  margin:0 0 4px;
}
/* 模块 2 / 模块 3 的标题：上边距 3px + 1px 分隔线（模块之间的分隔就靠这两条） */
.woocommerce-checkout form.checkout #order_review > .lh-eb-h--2,
.woocommerce-checkout form.checkout #order_review > .lh-eb-h--3{
  margin:3px 0 4px;padding-top:3px;border-top:1px solid var(--line);
}
/* 官方那个「Your order / Order Summary」标题已被注入的 h3 取代，藏起来避免重复
   （只隐藏，不删节点） */
.woocommerce-checkout form.checkout #order_review_heading{display:none}

/* ---- ④ 左栏字段：按规格一行两列 + 配对与先后都摆正；字段垂直间距 3px ---- */
.woocommerce-checkout form.checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout form.checkout .woocommerce-shipping-fields__field-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:16px;
}
.woocommerce-checkout form.checkout .form-row{margin:0 0 3px;padding:0}
.woocommerce-checkout form.checkout .form-row-first,
.woocommerce-checkout form.checkout .form-row-last{float:none;width:auto;clear:none}
/* DOM 里的顺序是 name → country → addr1 → addr2 → city → state → postcode → phone → email，
   而规格要的是「城市+邮编」「国家/地区+州」这两对 —— 用显式 grid-area 把配对和先后摆正，
   纯 CSS，不动 DOM（和购物车页「DOM 顺序 ≠ 视觉顺序」同一套路）。 */
.woocommerce-checkout form.checkout #billing_first_name_field{grid-area:1/1}
.woocommerce-checkout form.checkout #billing_last_name_field{grid-area:1/2}
.woocommerce-checkout form.checkout #billing_address_1_field{grid-area:2/1/3/3}
.woocommerce-checkout form.checkout #billing_address_2_field{grid-area:3/1/4/3}
.woocommerce-checkout form.checkout #billing_city_field{grid-area:4/1}
.woocommerce-checkout form.checkout #billing_postcode_field{grid-area:4/2}
.woocommerce-checkout form.checkout #billing_country_field{grid-area:5/1}
.woocommerce-checkout form.checkout #billing_state_field{grid-area:5/2}
.woocommerce-checkout form.checkout #billing_phone_field{grid-area:6/1}
.woocommerce-checkout form.checkout #billing_email_field{grid-area:6/2}
/* 勾了「寄到不同地址」才会出现的收货地址表单：同一套配对 */
.woocommerce-checkout form.checkout #shipping_first_name_field{grid-area:1/1}
.woocommerce-checkout form.checkout #shipping_last_name_field{grid-area:1/2}
.woocommerce-checkout form.checkout #shipping_address_1_field{grid-area:2/1/3/3}
.woocommerce-checkout form.checkout #shipping_address_2_field{grid-area:3/1/4/3}
.woocommerce-checkout form.checkout #shipping_city_field{grid-area:4/1}
.woocommerce-checkout form.checkout #shipping_postcode_field{grid-area:4/2}
.woocommerce-checkout form.checkout #shipping_country_field{grid-area:5/1}
.woocommerce-checkout form.checkout #shipping_state_field{grid-area:5/2}
.woocommerce-checkout form.checkout #shipping_phone_field{grid-area:6/1}
/* 剩下没有明确 grid-area 的（含提示行等）一律通栏 */
.woocommerce-checkout form.checkout .form-row-wide{grid-column:1 / -1}
/* 「Message to seller」备注框 */
.woocommerce-checkout form.checkout .woocommerce-additional-fields .form-row{margin:0}

/* ---- ⑤ 标签 / 必填星号 / 输入框（48px、圆角 10px、1px rgb(230,223,214)、内边距 12px）---- */
.woocommerce-checkout form.checkout .form-row label{
  display:block;margin:0 0 2px;
  font-size:.9rem;font-weight:500;line-height:1.4;color:rgb(51,65,85);
}
.woocommerce-checkout form.checkout .form-row label .required{color:rgb(140,90,60);font-weight:700;text-decoration:none}
.woocommerce-checkout form.checkout .form-row label .optional{color:var(--muted-2);font-weight:400}
.woocommerce-checkout form.checkout .woocommerce-input-wrapper{display:block}
/* 输入框 / 下拉框：高 30px（第 16 轮按用户要求从 48px 改小）*/
.woocommerce-checkout form.checkout .input-text,
.woocommerce-checkout form.checkout select{
  width:100%;height:30px;padding:0 12px;
  border:1px solid rgb(230,223,214);border-radius:10px;background:#fff;
  color:var(--ink);font-family:inherit;font-size:15px;line-height:1.4;
}
.woocommerce-checkout form.checkout select{
  -webkit-appearance:none;appearance:none;padding-right:38px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236b625b' stroke-width='1.8'/></svg>");
  background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px;
}
/* 备注框（Message to seller / #order_comments）：自动拉伸，由 site.js 的 autosizeTa() 驱动。
   ❗选择器必须写成 textarea.input-text（0,3,2）—— textarea 身上也带 input-text 类，
     只写 textarea（0,2,2）会被上面那条 .input-text（0,3,1）盖住，
     结果它继承 height:48px、上下内边距 0、只显示约一行（第 15 轮踩过这个坑）。 */
.woocommerce-checkout form.checkout textarea.input-text{
  width:100%;
  height:auto;min-height:60px;max-height:200px;
  padding:12px;
  border:1px solid rgb(230,223,214);border-radius:10px;background:#fff;
  color:var(--ink);font-family:inherit;font-size:15px;line-height:1.5;
  resize:none;overflow-y:hidden;
}
.woocommerce-checkout form.checkout .input-text:focus,
.woocommerce-checkout form.checkout select:focus,
.woocommerce-checkout form.checkout textarea:focus{
  outline:2px solid rgba(140,90,60,.30);outline-offset:1px;border-color:rgb(140,90,60);
}
/* 「Deliver to a different address?」那一行 */
.woocommerce-checkout form.checkout #ship-to-different-address{
  font-family:var(--font);font-size:15px;font-weight:600;margin:0 0 3px;line-height:1.4;
}
.woocommerce-checkout form.checkout #ship-to-different-address label{
  display:flex;align-items:center;gap:9px;margin:0;font-size:15px;font-weight:600;color:var(--ink);cursor:pointer;
}
.woocommerce-checkout form.checkout #ship-to-different-address input[type=checkbox]{
  width:18px;height:18px;margin:0;flex:0 0 auto;accent-color:rgb(140,90,60);
}

/* ---- ⑥ 模块 2/3 的顺序：支付在前、商品在后、按钮最后（纯 CSS order，不动 DOM）----
   #payment{display:contents} 让它的两个子节点（支付方式列表 / 下单按钮块）
   变成 #order_review 的 flex 项目，于是可以用 order 排位置。
   ❗但 display:contents 【只改盒树、不改 DOM 父子关系】—— 所以下面这两个选择器
     必须写全路径 #order_review > #payment > …，写成 #order_review > ul.wc_payment_methods
     是【不会命中】的（第 14 轮第一版就栽在这，支付列表和按钮块双双跑到了模块 2 标题前面）。 */
.woocommerce-checkout form.checkout #order_review{display:flex;flex-direction:column}
.woocommerce-checkout form.checkout #order_review > #payment{display:contents}
.woocommerce-checkout form.checkout #order_review > .lh-eb-h--2{order:1}
.woocommerce-checkout form.checkout #order_review > .lh-eb-h--3{order:3}
.woocommerce-checkout form.checkout #order_review > table.shop_table{order:4}
.woocommerce-checkout form.checkout #order_review > ul.lh-trust{order:6}
.woocommerce-checkout form.checkout #order_review > #payment > ul.wc_payment_methods{order:2}
.woocommerce-checkout form.checkout #order_review > #payment > .form-row.place-order{order:5}

/* ---- ⑦ 支付方式：浅米底 / 10px 圆角 / 木色选中态 ---- */
.woocommerce-checkout form.checkout #order_review ul.wc_payment_methods{
  list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;gap:3px;
}
.woocommerce-checkout form.checkout #order_review ul.wc_payment_methods > li{
  background:var(--surface);
  border:1px solid rgb(230,223,214);
  border-radius:10px;
  padding:8px 10px;
}
/* 「无可用支付方式」那条提示：白底、弱化 */
.woocommerce-checkout form.checkout #order_review ul.wc_payment_methods > li:has(.woocommerce-info){
  background:#fff;color:var(--muted);font-size:13.5px;line-height:1.55;
}
.woocommerce-checkout form.checkout #order_review ul.wc_payment_methods > li:has(input[type=radio]:checked){
  border-color:rgb(140,90,60);
  box-shadow:inset 0 0 0 1px rgb(140,90,60);
}
.woocommerce-checkout form.checkout #order_review ul.wc_payment_methods label{
  font-size:15px;color:var(--ink);cursor:pointer;
}
.woocommerce-checkout form.checkout #order_review ul.wc_payment_methods input[type=radio]{
  width:18px;height:18px;margin:0 8px 0 0;vertical-align:-3px;accent-color:rgb(140,90,60);
}

/* ---- ⑧ 模块 3：商品行 = 缩略图 64×64 + 商品名/New/「单价 × 数量 = 小计」/行 VAT ---- */
.woocommerce-checkout form.checkout #order_review table.shop_table{display:block;width:100%;border:0;margin:0}
.woocommerce-checkout form.checkout #order_review table.shop_table thead{display:none}
.woocommerce-checkout form.checkout #order_review table.shop_table tbody,
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot{display:block}
/* ❗缩略图与整行都给固定尺寸/最小高度：即使哪天发生重绘，布局也不会塌陷
   （第 15 轮问题 1 的加固；真正的闪烁已由「不再触发 update_checkout」根治） */
.woocommerce-checkout form.checkout #order_review table.shop_table tbody tr.cart_item{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  column-gap:10px;align-items:start;
  min-height:72px;
  padding:4px 0;margin:0 0 4px;
  border:0;border-bottom:1px solid rgb(230,223,214);
}
.woocommerce-checkout form.checkout #order_review table.shop_table tbody tr.cart_item:last-child{border-bottom:0}
.woocommerce-checkout form.checkout #order_review table.shop_table tbody tr.cart_item > img.lh-eb-thumb{
  display:block;width:64px;height:64px;min-width:64px;min-height:64px;object-fit:cover;
  border:1px solid rgb(230,223,214);border-radius:7px;background:#fff;
}
.woocommerce-checkout form.checkout #order_review table.shop_table tbody td.product-name{
  min-width:0;padding:0;border:0;text-align:left;
  font-size:15px;line-height:1.4;color:var(--ink);word-break:break-word;
}
/* 官方的「× 2」和数量步进器重复，藏掉（只隐藏，不删） */
.woocommerce-checkout form.checkout #order_review table.shop_table tbody td.product-name .product-quantity{display:none}
/* ❗第 18 轮：右侧这个官方小计列【隐藏】—— 标题下方的计算行里已经有小计了，
   两个小计同时出现是重复的（用户要求）。
   只隐藏、不删节点，所以 WooCommerce 的表结构和校验完全不受影响；
   site.js 里的 setAmountText() 仍然会同步它的数字，保证这个隐藏节点也是真实值
   （万一以后要恢复显示，不会是一个过期的数字）。 */
.woocommerce-checkout form.checkout #order_review table.shop_table tbody td.product-total{
  display:none;
  padding:0;border:0;text-align:right;white-space:nowrap;
  font-size:15px;font-weight:600;color:var(--ink);
}
/* 商品名下面的状态行 */
.woocommerce-checkout form.checkout .lh-eb-status{
  display:block;margin-top:1px;font-size:13px;color:var(--muted);
}
/* 「单价 × [− n +] = 小计」计算行：空间不够时允许换行，但每段都可读 */
.woocommerce-checkout form.checkout .lh-eb-calc{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px;
  margin-top:3px;font-size:14.5px;line-height:1.5;color:var(--muted);
}
.woocommerce-checkout form.checkout .lh-eb-calc .lh-eb-unit{font-weight:600;color:var(--ink);white-space:nowrap}
.woocommerce-checkout form.checkout .lh-eb-calc .lh-eb-eq{color:var(--muted)}
.woocommerce-checkout form.checkout .lh-eb-calc .lh-eb-line{font-weight:700;color:var(--ink);white-space:nowrap}
/* 行小计下方的 VAT 小字（12.8px 棕色） */
.woocommerce-checkout form.checkout .lh-eb-itemvat{
  display:block;margin-top:1px;font-size:12.8px;line-height:1.4;color:rgb(140,90,60);
}
/* 数量步进器 [− n +]（在计算行里，所以不要再加外边距） */
.woocommerce-checkout form.checkout .lh-eb-qty{
  display:inline-flex;align-items:center;
  border:1px solid rgb(230,223,214);border-radius:10px;overflow:hidden;background:#fff;
}
.woocommerce-checkout form.checkout .lh-eb-qty__btn{
  width:32px;height:32px;padding:0;border:0;background:var(--surface);
  color:var(--ink);font-family:inherit;font-size:17px;line-height:1;cursor:pointer;
}
.woocommerce-checkout form.checkout .lh-eb-qty__btn:hover{background:var(--line)}
.woocommerce-checkout form.checkout .lh-eb-qty__n{
  min-width:38px;padding:0 4px;text-align:center;
  font-size:15px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;
}

/* ---- ⑨ 汇总区：标签左 / 金额右；每行间距 4px；含注入的 VAT 行 ---- */
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot{
  margin-top:3px;padding-top:3px;border-top:1px solid rgb(230,223,214);
}
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot tr{
  display:flex;justify-content:space-between;align-items:baseline;gap:10px;
  padding:4px 0;border:0;
}
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot th{
  flex:0 0 auto;width:auto;padding:0;border:0;text-align:left;
  font-weight:400;font-size:15px;color:var(--body);
  background:transparent;   /* ❗内容页的 .entry th 带 background:var(--surface)，不清掉这里会是一条米色横带 */
}
/* ❗内容页的 .entry ul / .entry li 带 list-style:disc + padding-left:22px，
   不清掉的话运费那行「Free shipping」前面会多出一个小圆点 */
.woocommerce-checkout form.checkout #order_review #shipping_method,
.woocommerce-checkout form.checkout #order_review #shipping_method li{
  list-style:none;margin:0;padding:0;
}
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot td{
  flex:1 1 auto;min-width:0;padding:0;border:0;text-align:right;
  font-size:15px;color:var(--ink);white-space:normal;overflow-wrap:anywhere;
}
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot tr.cart-discount th,
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot tr.cart-discount td{color:rgb(140,90,60);font-size:14px}
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot tr.cart-discount a.woocommerce-remove-coupon{
  margin-left:6px;font-size:12.5px;color:rgb(140,90,60);text-decoration:underline;
}
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot tr.lh-eb-vat th,
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot tr.lh-eb-vat td{font-size:14px;color:var(--muted)}
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot tr.order-total{
  margin-top:3px;padding-top:4px;border-top:1px solid rgb(230,223,214);
}
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot tr.order-total th,
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot tr.order-total td{
  font-size:18px;font-weight:700;color:var(--ink);
}
/* 官方那行「(VAT included £x)」小字已由独立 VAT 行取代 —— 藏掉（只隐藏，不删） */
.woocommerce-checkout form.checkout #order_review table.shop_table tfoot small.includes_tax,
.woocommerce-checkout form.checkout #order_review .lh-eb-hide{display:none}

/* ---- ⑩ 底部：Confirm and pay（木色 / 白字 / 52px / 圆角 10px / 撑满）---- */
.woocommerce-checkout form.checkout #order_review .form-row.place-order{margin:4px 0 0;padding:0}
.woocommerce-checkout form.checkout #order_review .woocommerce-terms-and-conditions-wrapper{margin:0 0 4px}
.woocommerce-checkout form.checkout #order_review .woocommerce-privacy-policy-text p{
  margin:0;font-size:12.8px;line-height:1.5;color:var(--muted);
}
.woocommerce-checkout form.checkout #order_review .woocommerce-privacy-policy-link{color:rgb(140,90,60);text-decoration:underline}
.woocommerce-checkout form.checkout #place_order{
  display:block;width:100%;height:52px;padding:0;
  border:0;border-radius:10px;
  background:rgb(140,90,60);color:#fff;
  font-family:inherit;font-size:16px;font-weight:600;line-height:52px;text-align:center;
  cursor:pointer;
}
.woocommerce-checkout form.checkout #place_order:hover{background:var(--wood-dark)}

/* ---- ⑪ 信任徽章（第 12 轮注入的，保留在按钮下面）---- */
.woocommerce-checkout form.checkout #order_review .lh-trust{
  display:flex;flex-direction:column;gap:4px;list-style:none;
  margin:4px 0 0;padding:4px 0 0;
  background:transparent;color:var(--body);border:0;border-top:1px solid rgb(230,223,214);border-radius:0;
}
.woocommerce-checkout form.checkout #order_review .lh-trust li{
  display:flex;flex-direction:row;align-items:center;gap:10px;font-size:13.5px;color:#241f1b;
}
.woocommerce-checkout form.checkout #order_review .lh-trust svg{
  flex:0 0 auto;width:18px;height:18px;fill:none;stroke:rgb(140,90,60);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
.woocommerce-checkout form.checkout #order_review .lh-trust .lh-trust__txt{display:flex;flex-direction:column;gap:1px;min-width:0}
.woocommerce-checkout form.checkout #order_review .lh-trust .lh-trust__main{color:#241f1b;font-weight:600;font-size:13.5px}
.woocommerce-checkout form.checkout #order_review .lh-trust .lh-trust__sub{color:var(--muted);font-size:12.5px}

/* ---- ⑫ 优惠券（在 form 外面、表单上方）---- */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info{
  max-width:640px;margin:0 auto 3px;padding:6px 8px;
  background:#fff;border:1px solid rgb(230,223,214);border-radius:10px;
  color:var(--body);font-size:14px;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a{color:rgb(140,90,60);text-decoration:underline}
.woocommerce-checkout form.checkout_coupon{
  max-width:640px;margin:0 auto 3px;padding:8px;
  background:var(--surface);border:1px dashed rgb(230,223,214);border-radius:12px;
}
.woocommerce-checkout form.checkout_coupon .form-row{margin:0;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.woocommerce-checkout form.checkout_coupon .input-text{flex:1 1 200px;width:auto;height:48px;padding:0 12px;border:1px solid rgb(230,223,214);border-radius:10px;background:#fff;color:var(--ink);font-family:inherit;font-size:15px}
.woocommerce-checkout form.checkout_coupon button.button{
  flex:0 0 auto;height:48px;padding:0 22px;border:0;border-radius:10px;
  background:rgb(140,90,60);color:#fff;font-family:inherit;font-size:15px;font-weight:600;cursor:pointer;
}
.woocommerce-checkout form.checkout_coupon button.button:hover{background:var(--wood-dark)}

/* ---- ⑬ 手机端：字段全部塌成单列 ---- */
@media (max-width:640px){
  .woocommerce-checkout form.checkout{padding:12px}
  .woocommerce-checkout .page__head{padding:0 4px}
  .woocommerce-checkout .page__head h1{font-size:21px}
  .woocommerce-checkout form.checkout .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout form.checkout .woocommerce-shipping-fields__field-wrapper{grid-template-columns:1fr}
  .woocommerce-checkout form.checkout #billing_first_name_field,
  .woocommerce-checkout form.checkout #billing_last_name_field,
  .woocommerce-checkout form.checkout #billing_address_1_field,
  .woocommerce-checkout form.checkout #billing_address_2_field,
  .woocommerce-checkout form.checkout #billing_city_field,
  .woocommerce-checkout form.checkout #billing_postcode_field,
  .woocommerce-checkout form.checkout #billing_country_field,
  .woocommerce-checkout form.checkout #billing_state_field,
  .woocommerce-checkout form.checkout #billing_phone_field,
  .woocommerce-checkout form.checkout #billing_email_field,
  .woocommerce-checkout form.checkout #shipping_first_name_field,
  .woocommerce-checkout form.checkout #shipping_last_name_field,
  .woocommerce-checkout form.checkout #shipping_address_1_field,
  .woocommerce-checkout form.checkout #shipping_address_2_field,
  .woocommerce-checkout form.checkout #shipping_city_field,
  .woocommerce-checkout form.checkout #shipping_postcode_field,
  .woocommerce-checkout form.checkout #shipping_country_field,
  .woocommerce-checkout form.checkout #shipping_state_field,
  .woocommerce-checkout form.checkout #shipping_phone_field{grid-area:auto;grid-column:1 / -1}
  .woocommerce-checkout form.checkout #order_review table.shop_table tbody tr.cart_item{
    grid-template-columns:56px minmax(0,1fr);column-gap:8px;
  }
  .woocommerce-checkout form.checkout #order_review table.shop_table tbody tr.cart_item > img.lh-eb-thumb{
    width:56px;height:56px;min-width:56px;min-height:56px;
  }
}

/* ==========================================================================
   ㉕ 商品详情页重排（第 21 轮）
     左栏：大图 → （放不下才出现的）缩略图箭头左右夹着一排缩略图
     右栏：标题 → 副标题 → 星级 → 价格区（左单价+税 / 右数量下拉）→ 按钮 → 5 点要点
     下方：三个页签（描述 / 规格 / 评价），切换只切显示，不动 DOM

   ❗只用既有令牌（--wood 就是 rgb(140,90,60)、--line、--surface、--r-card、--muted），
     没有任何强制覆盖写法，也没有新增绝对定位（箭头是 flex 兄弟节点，不是 absolute）。
   ❗这一节在文件末尾，源序在旧规则之后，所以旧的 .pdp / .pdp__thumbs 规则会被这里覆盖；
     旧的移动端覆盖（max-width:921px）也因此必须在本节里重新声明一次，否则窄屏会退化成两栏。
   ========================================================================== */

/* ① 两栏 + 顶部对齐 */
.pdp{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(20px,3vw,44px);align-items:start}
.pdp__left,.pdp__right{min-width:0}
.pdp__left{align-self:start}
.pdp__right{display:flex;flex-direction:column;align-items:stretch}
@media (max-width:921px){.pdp{grid-template-columns:1fr}}

/* ② 图册：大图在上、一排缩略图在下；箭头只在「缩略图总宽 > 大图宽」时出现 */
/* （徽章已移到右栏星级行，这里不再有图册内徽章的规则） */
.pdp__thumbs-outer{display:flex;align-items:center;gap:6px;margin-top:10px}
.pdp__thumbs{
  display:flex;flex-wrap:nowrap;gap:8px;margin-top:0;
  flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;
  scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.pdp__thumbs::-webkit-scrollbar{display:none}
.pdp__thumbs img{flex:0 0 auto}
.pdp__thumbs img.is-active{border-color:var(--wood);box-shadow:0 0 0 1px var(--wood)}
.pdp__thumb-nav{
  display:none;flex:0 0 auto;align-items:center;justify-content:center;
  width:30px;height:64px;padding:0;border:1px solid var(--line);border-radius:10px;
  background:#fff;color:var(--ink);font-size:22px;line-height:1;cursor:pointer;
}
.pdp__thumbs-outer.has-nav .pdp__thumb-nav{display:flex}
.pdp__thumb-nav:hover{border-color:var(--wood);color:var(--wood)}
.pdp__thumb-nav[disabled]{opacity:.3;cursor:default;border-color:var(--line);color:var(--ink)}

/* ③ 右栏：标题 → 副标题 → 星级 → 价格区 → 按钮 → 5 点要点 */
.pdp__title{font-size:22px;font-weight:600;line-height:1.28;margin:0 0 6px}
.pdp__right .lh-subtitle{font-size:14px;line-height:1.45;color:var(--muted);margin:0 0 10px}

/* 星级：数值与商品卡【完全一致】—— 尺寸 / 圆角 / 颜色 / 间距都抄自上面 ⑨⑩ 两条卡片规则，
   只是把卡片为了补偿网格 row-gap 加的负 margin 换成了正常的外边距。 */
/* 星级那一行：与下面【价格区】【按钮区】共用同一套两栏网格（1fr 1fr + 10px），
   三行的轨道中心天然是同一条竖线 —— 徽标 / 数量下拉组 / Buy Now 的中线因此必然对齐。 */
.pdp__rating-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;margin:0 0 12px}
.pdp__rating-row > .card__rating{justify-self:center}   /* 星星 + reviews 看成一个整体：中心落在左半栏中线（与价格+VAT、Add to Basket 同一条竖线） */
.pdp__rating-row > .pdp__amz-badge{justify-self:center}
.pdp__right .card__rating{display:flex;align-items:center;line-height:1;gap:7.8px;margin:0;font-size:13px;color:var(--muted)}
.pdp__right .card__rating .stars{display:inline-flex;align-items:center;gap:.65px;height:19.5px;letter-spacing:0;color:#fda256}
.pdp__right .card__rating .stars .star{display:block;width:15.9px;height:19.5px;fill:currentColor}
.pdp__right .card__rating .stars .star--empty{fill:none;stroke:currentColor;stroke-width:1.1;stroke-linejoin:round}

/* 价格区：左右分栏（左单价 + 税，右数量下拉） */
.pdp__form{margin:0}
.pdp__price-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;margin:0 0 14px}
.pdp__price-left{min-width:0;text-align:center}
.pdp__price{font-size:26px;font-weight:700;color:var(--body);line-height:1.15;margin:0}
.pdp__vat-mini{display:block;font-size:12.5px;color:rgb(140,90,60);margin-top:3px}
/* 数量下拉：与 Shop 卡片同一个自建下拉（.lh-dd）；原生 select 是真正的表单字段
   （卡片的也是它），卡片那边靠这条规则把它藏起来只显示自建下拉 ——
   详情页原来没有这条，所以两个下拉同时露出来。这里补上同一条。 */
.pdp__qty{justify-self:center}
.pdp__right .card__qty select{display:none}

/* 按钮区：并排一行、各占一半、撑满右栏 */
.pdp__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}
.pdp__actions .btn{width:100%;min-height:52px;padding:0 18px;font-size:16px}

/* 5 点要点：每行前面一个小圆点（用背景图，不用绝对定位） */
.pdp__bullets{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.pdp__bullets li{
  font-size:14.5px;line-height:1.5;color:var(--muted);padding-left:22px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><circle cx='7' cy='7' r='4' fill='%238c5a3c'/></svg>") left 5px/14px 14px no-repeat;
}

/* ④ 页签 */
.pdp__tabs{margin-top:clamp(26px,3vw,44px);border-top:1px solid var(--line);padding-top:clamp(16px,2vw,24px)}
.pdp__tabbar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.pdp__tab{
  appearance:none;background:#fff;border:1px solid var(--line);border-radius:999px;
  color:var(--ink);font-family:inherit;font-size:15px;font-weight:600;line-height:1;
  padding:11px 20px;cursor:pointer;
}
.pdp__tab:hover{border-color:var(--wood);color:var(--wood)}
.pdp__tab.is-active{background:var(--wood);border-color:var(--wood);color:#fff}
.pdp__panel[hidden]{display:none}
.pdp__desc{max-width:78ch}
.pdp__desc p{font-size:15.5px;line-height:1.65;color:var(--body);margin:0 0 12px}
.pdp__desc p:last-child{margin-bottom:0}
.pdp__panel .spec-table{margin:0}
.pdp__panel > #reviews > h2:first-child,.pdp__panel > h2:first-child{margin-top:0}
@media (max-width:600px){
  .pdp__title{font-size:19px}
  .pdp__price{font-size:23px}
  /* 手机上按钮按主题惯例整行铺满（中心=整栏中心）→ 星级行与价格区也改成单栏，
     否则左半栏那两组的中心会明显偏左，和按钮对不齐。 */
  .pdp__rating-row,.pdp__price-row{grid-template-columns:1fr;gap:8px}
  .pdp__actions{grid-template-columns:1fr}
  .pdp__thumb-nav{height:56px;width:26px}
  .pdp__thumbs img{width:56px;height:56px}
}

/* ④ 星星下面的信任徽章：与购物车页 / 结账页【同一套】
   值抄自结账页 ⑪ 那条规则（gap 4px、18px 棕色描边图标、主 13.5/600、副 12.5 muted），
   只把外边距换成右栏里合适的一段（原规则底部没有留白，这里要给价格区留 16px）。 */
.pdp__right .lh-trust{
  display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:6px 10px;list-style:none;
  margin:4px 0 16px;padding:4px 0 0;
  background:transparent;color:var(--body);border:0;border-top:1px solid rgb(230,223,214);border-radius:0;
}
.pdp__right .lh-trust li{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:13.5px;color:#241f1b}
.pdp__right .lh-trust svg{flex:0 0 auto;width:18px;height:18px;fill:none;stroke:rgb(140,90,60);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pdp__right .lh-trust .lh-trust__txt{display:flex;flex-direction:column;gap:1px;min-width:0}
.pdp__right .lh-trust .lh-trust__main{color:#241f1b;font-weight:600;font-size:13.5px}
.pdp__right .lh-trust .lh-trust__sub{color:var(--muted);font-size:12.5px}

/* ⑤ 顶部间距：面包屑 → 大图 / 主标题 收到约 16px（原来 64px）；面包屑自身也一并收窄 */
body.single-product .breadcrumb{padding:8px 0}
.pdp__top{padding-top:16px}

/* ⑥ 按钮区：不再在这里写规则 —— 上面原有的那条（两个按钮各占一半、高 52、内边距 18px）
     和它后面的 ≤600px 手机端覆盖才是唯一来源。这里曾追加过一份副本，把手机端覆盖盖掉了，
     已删除；以后要改按钮尺寸请改上面那条，不要在这里追加。 */

/* ⑦ You may also like：去掉区块底色（原来 .section--alt 是米色），和页面白底一致；
     桌面 5 列（最多 10 个 = 2 排）、平板 3 列、手机 2 列；图片仍是 .card__img 的 1:1 自适应 */
.pdp__related{background:transparent}
.pdp__related ul.products{grid-template-columns:repeat(5,1fr)}
.pdp__related ul.products li.product{background:transparent}
@media (max-width:921px){ .pdp__related ul.products{grid-template-columns:repeat(3,1fr)} }
@media (max-width:600px){ .pdp__related ul.products{grid-template-columns:repeat(2,1fr)} }

@media (max-width:600px){
  body.single-product .breadcrumb{padding:6px 0}
  .pdp__top{padding-top:12px}
}

/* ⑧ Reviews 页签：评价列表内部滚动（刚好 3 条）+ 每条「头像左 / 内容右」
   max-height 由 site.js 按「前 3 条实测高度」写成内联值；≤3 条时不设 → 自然显示、不出滚动条。
   滚动容器只包住评价列表本身；写评价的表单在 #review_form_wrapper（#comments 的兄弟节点），
   天然在滚动区外，不会跟着滚。 */
.pdp__panel[data-lh-panel="reviews"] .commentlist{
  overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;                 /* Firefox：细窄 */
  scrollbar-color:#ded6cc transparent;  /* Firefox：浅灰滑块 + 透明轨道 */
  scrollbar-gutter:stable;              /* 预留槽位：滚动条出现/消失不改变宽度，3 条的判定才准 */
}
.pdp__panel[data-lh-panel="reviews"] .commentlist::-webkit-scrollbar{width:8px}
.pdp__panel[data-lh-panel="reviews"] .commentlist::-webkit-scrollbar-track{background:transparent}
.pdp__panel[data-lh-panel="reviews"] .commentlist::-webkit-scrollbar-thumb{background:#ded6cc;border-radius:8px}
.pdp__panel[data-lh-panel="reviews"] .commentlist::-webkit-scrollbar-thumb:hover{background:#cbbfb1}

/* 每条评论：头像固定宽度在左，内容 flex:1 在右，间距 12px，两者顶部对齐 */
.pdp__panel[data-lh-panel="reviews"] .comment_container{display:flex;align-items:flex-start;gap:12px}
.pdp__panel[data-lh-panel="reviews"] .comment_container > img.avatar{
  flex:0 0 48px;width:48px;height:48px;border-radius:50%;display:block;
}
.pdp__panel[data-lh-panel="reviews"] .comment-text{flex:1 1 auto;min-width:0}

/* 内容自上而下：星级 → 作者 → 日期 → 正文，全部左对齐 */
.pdp__panel[data-lh-panel="reviews"] .comment-text .star-rating{float:none;margin:0 0 5px}
.pdp__panel[data-lh-panel="reviews"] .comment-text .meta{display:flex;flex-direction:column;align-items:flex-start;gap:1px;margin:0 0 8px}
.pdp__panel[data-lh-panel="reviews"] .woocommerce-review__dash{display:none}
.pdp__panel[data-lh-panel="reviews"] .comment-text .description{text-align:left}
.pdp__panel[data-lh-panel="reviews"] .comment-text .description p{margin:0 0 8px}

/* ⑨ Reviews 页签（第二轮微调）
   ① 评论区标题与产品主标题 H1 完全一致：字体 / 字号 / 字重 / 颜色 / 左对齐；
      下边距保持原来的 10px（紧凑感不变）。原来它是 h2 的 Georgia 衬线 25px，与 H1 不一致。 */
.pdp__panel[data-lh-panel="reviews"] .woocommerce-Reviews-title{
  font-family:inherit;font-size:22px;font-weight:600;line-height:1.28;letter-spacing:-0.11px;
  color:var(--ink);text-align:left;margin:0 0 10px;
}

/* ② 每条评论的评星：与 H1 下方那颗星级同一套（值抄自 ㉕ 节 .pdp__right .card__rating 那组），
      星星由 site.js 注入（SVG 路径取自 functions.php 的 lh_star_svg()），后面跟小字灰色数字 */
.pdp__panel[data-lh-panel="reviews"] .comment-text .star-rating{display:flex;align-items:center;gap:6px;float:none;margin:0 0 5px;line-height:1}
.pdp__panel[data-lh-panel="reviews"] .comment-text .stars{display:inline-flex;align-items:center;gap:.65px;height:19.5px;letter-spacing:0;color:#fda256}
.pdp__panel[data-lh-panel="reviews"] .comment-text .stars .star{display:block;width:15.9px;height:19.5px;fill:currentColor}
.pdp__panel[data-lh-panel="reviews"] .comment-text .stars .star--empty{fill:none;stroke:currentColor;stroke-width:1.1;stroke-linejoin:round}
.pdp__panel[data-lh-panel="reviews"] .comment-text .lh-rev-score{font-size:12px;font-weight:400;color:var(--muted)}

/* ③ 序号：关掉浏览器原生 marker（它贴着首行基线画，头像一高就看着错位），
      改用计数器画在网格第一列并与内容顶部对齐；内容左边界与原来保持一致。 */
.pdp__panel[data-lh-panel="reviews"] ol.commentlist{counter-reset:lhrev;list-style:none;padding-left:0}
.pdp__panel[data-lh-panel="reviews"] li.review{
  counter-increment:lhrev;display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:8px;align-items:start;
}
.pdp__panel[data-lh-panel="reviews"] li.review::before{
  content:counter(lhrev) ".";align-self:start;text-align:left;
  font-size:14px;line-height:1.4;color:var(--muted);padding-top:2px;
}

/* ④ 每条评论底部 1px 分隔线（站内统一浅灰），线条左右与内容区对齐；内容与线之间 12px；最后一条不加 */
.pdp__panel[data-lh-panel="reviews"] li.review .comment_container{
  padding-bottom:12px;border-bottom:1px solid rgb(230,223,214);
}
.pdp__panel[data-lh-panel="reviews"] li.review:last-child .comment_container{border-bottom:0}

/* ⑤ 头像相对右侧整块内容（星级 + 作者 + 日期 + 正文）垂直居中；水平位置不变（仍在左边） */
.pdp__panel[data-lh-panel="reviews"] .comment_container{align-items:center}

/* ⑩ 博客评论区头像：与商品评价同一套「首字母彩色圆形」。
      尺寸统一到 48（wp_list_comments 那边给的是 44），圆形沿用 ⑧ 里已有的 .reviews__list .avatar 规则。
      头像内容由 site.js 注入（PHP 侧的 data-URI 会被 esc_url 清空）。 */
.reviews__list .avatar{width:48px;height:48px}

/* ⑪ 加购按钮下面那行「商品唯一标识」：按钮区自带 18px 下边距，这里收回 8px，让它紧跟在按钮下面 */
.pdp__right .pdp-sku{margin-top:-8px}

/* ==========================================================================
   ⑫ 联系表单（Contact Form 7 · 仅 /contact/）
      · 诱饵字段所在容器整块隐藏（正常访客看不见；机器人常会填）
      · 输入框规格按要求：高 48px、圆角 10px、边框 1px solid rgb(230,223,214)
      · 提交按钮沿用站内实心按钮的观感（木色底、白字、同圆角）
      · 作用域全部限制在 .wpcf7 里，不影响站点其它表单
   ========================================================================== */
.lh-hp{display:none}

.wpcf7{margin:6px 0 22px}
.wpcf7 form{margin:0}
.wpcf7 p{margin:0 0 16px}
.wpcf7 label{display:block;font-size:14px;font-weight:600;color:var(--ink);margin:0 0 6px}
.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=tel],
.wpcf7 input[type=url],
.wpcf7 textarea{
  width:100%;max-width:560px;min-height:48px;padding:11px 14px;
  border:1px solid rgb(230,223,214);border-radius:10px;background:#fff;
  color:var(--body);font-family:inherit;font-size:15px;line-height:1.4;
}
.wpcf7 textarea{min-height:150px;resize:vertical}
.wpcf7 input[type=text]:focus,
.wpcf7 input[type=email]:focus,
.wpcf7 textarea:focus{outline:0;border-color:var(--wood);box-shadow:0 0 0 3px rgba(140,90,60,.12)}
.wpcf7 input[type=file]{
  width:100%;max-width:560px;padding:10px 12px;border:1px solid rgb(230,223,214);
  border-radius:10px;background:#fff;color:var(--muted);font-size:13.5px;
}
.wpcf7 input[type=file]::file-selector-button{
  margin-right:10px;padding:8px 14px;border:1px solid rgb(230,223,214);border-radius:8px;
  background:var(--surface);color:var(--ink);font-family:inherit;font-size:13.5px;font-weight:600;cursor:pointer;
}
.wpcf7 input[type=submit]{
  min-height:48px;padding:0 26px;border:1px solid var(--wood);border-radius:10px;
  background:var(--wood);color:#fff;font-family:inherit;font-size:15.2px;font-weight:600;cursor:pointer;
}
.wpcf7 input[type=submit]:hover{background:var(--wood-dark);border-color:var(--wood-dark)}
.wpcf7 .wpcf7-not-valid-tip{display:block;margin-top:5px;color:#b4534b;font-size:13px}
.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid{border-color:#d8a79f;background:#fdf7f6}
.wpcf7 .wpcf7-response-output{
  margin:14px 0 0;padding:12px 14px;border-radius:10px;border:1px solid rgb(230,223,214);
  background:var(--surface);color:var(--body);font-size:14px;
}
.wpcf7 form.sent .wpcf7-response-output{border-color:#bcd4c0;background:#f3f8f4}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output{border-color:#e0bdb7;background:#fdf6f5}
.wpcf7 .wpcf7-spinner{margin:0 0 0 10px}

/* ==========================================================================
   ⑬ 购物车页窄屏（≤600px）：商品表格块级化 —— 修「能左右拖」
   根因：表格是 display:table，行里每列都写死了 flex-basis
        （缩略图 96px + 价格 88px + 数量 130px + 小计 100px + 删除 40px ≈ 454px），
        主题又没加载 WooCommerce 自带的 shop_table_responsive 样式，
        → 表格固有宽度 488px，320/360/390px 下整页宽 508px、可横向拖动（实测）。
   做法：小屏隐藏表头，行改网格：
        第一行 缩略图 | 名称 | 删除
        第二行 缩略图 | 单价 | 小计
        第三行 缩略图 | 数量（跨两列，给步进器留够宽度）
        单元格原来的 flex-basis / order 在网格布局里自动失效（所以不需要强制覆盖）。
   桌面端（>600px）完全不进这个媒体查询，现有版式一个像素都不动。
   ========================================================================== */
@media (max-width:600px){
  .woocommerce-cart table.shop_table.cart thead{display:none}
  .woocommerce-cart table.shop_table.cart{display:block;width:100%;max-width:100%}
  .woocommerce-cart table.shop_table.cart tbody{display:block;width:100%}
  .woocommerce-cart table.shop_table.cart tbody tr.cart_item{
    display:grid;width:100%;
    grid-template-columns:72px minmax(0,1fr) auto;
    grid-template-areas:
      "thumb name remove"
      "thumb price subtotal"
      "thumb qty   qty";
    align-items:start;column-gap:10px;row-gap:2px;
  }
  .woocommerce-cart table.shop_table.cart tbody tr.cart_item > td{min-width:0}
  .woocommerce-cart table.shop_table.cart td.product-thumbnail{grid-area:thumb;padding:0}
  .woocommerce-cart table.shop_table.cart td.product-name{grid-area:name;padding:0}
  .woocommerce-cart table.shop_table.cart td.product-price{grid-area:price;padding:0}
  .woocommerce-cart table.shop_table.cart td.product-quantity{grid-area:qty;padding:2px 0 0;justify-self:start}
  .woocommerce-cart table.shop_table.cart td.product-subtotal{grid-area:subtotal;padding:0;text-align:right;white-space:nowrap}
  .woocommerce-cart table.shop_table.cart td.product-remove{grid-area:remove;padding:0;justify-self:end;text-align:right}
  /* 优惠码那一行（colspan 单元格）跟着铺满整行 */
  .woocommerce-cart table.shop_table.cart tbody tr td.actions{grid-area:auto;grid-column:1 / -1;margin-top:10px}
  /* 缩略图跟着网格列宽（72px），保持原比例 */
  .woocommerce-cart table.shop_table.cart td.product-thumbnail img{width:72px;height:auto;max-width:100%}
}
