/* 木頭爸「木材介紹」：沿用直播搶購頁的樣式（live.css），這裡是木材介紹才有的 */
.wd-top { padding-bottom: 26px; }
.wd-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.wd-chip {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); color: #fbf3e6; font-size: 15px; font-weight: 700; text-decoration: none;
}
.wd-chip:hover { background: rgba(255, 255, 255, .1); }

.wd-main { max-width: 900px; }
.wd-item {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; margin: 0 0 26px; padding: 20px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  box-shadow: 0 14px 32px -24px rgba(43, 30, 20, .45); scroll-margin-top: 16px;
}
.wd-swatch { aspect-ratio: 1; overflow: hidden; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.wd-swatch img { width: 100%; height: 100%; object-fit: cover; }
.wd-body h2 { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.35; letter-spacing: .04em; }
.wd-tag { margin: 4px 0 10px; color: #8a5519; font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.wd-desc { margin: 0 0 8px; font-size: 16.5px; line-height: 1.8; }
.wd-more { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.9; white-space: pre-line; }
.wd-h { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 16px; }
.wd-h::before { content: ""; width: 5px; height: 16px; border-radius: 3px; background: var(--red); }

/* 相關商品 */
/* 相關商品：用字的大小決定一排放幾個（一般字：電腦 4 個、手機 2 個；字很大時 1 個） */
.wd-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.5em), 1fr)); gap: 10px; }
.wd-product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.wd-pphoto { position: relative; aspect-ratio: 1; background: linear-gradient(120deg, #e3c28c, #c89456); }
.wd-pphoto img { width: 100%; height: 100%; object-fit: cover; }
.wd-sold { position: absolute; top: 6px; left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(35, 24, 18, .8); color: #fff; font-size: 12px; font-weight: 700; }
.wd-product.is-sold img { filter: grayscale(.5); opacity: .85; }
.wd-pname { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 8px 10px 2px; font-size: 14px; font-weight: 700; line-height: 1.45; }
.wd-pprice { margin: 0 10px 10px; color: var(--red); font-size: 14px; font-weight: 900; }
.wd-product.is-sold .wd-pprice { color: var(--ink-3); }

/* 相關影片 */
.wd-videos { display: grid; gap: 10px; }
.wd-video { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.wd-video img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #231812; }
.wd-video span { font-size: 15px; font-weight: 700; line-height: 1.5; }

.wd-ask {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 18px; padding: 10px 20px;
  border-radius: 12px; background: var(--green); color: #fff; font-size: 16px; font-weight: 900; line-height: 1.3; text-align: center; text-decoration: none;
}
.wd-also { max-width: 900px; margin: 0 auto; color: var(--ink-2); text-align: center; }

@media (max-width: 40em) {
  .wd-item { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
  .wd-swatch { aspect-ratio: 16 / 7; }
  .wd-body h2 { font-size: 23px; }
  .wd-ask { width: 100%; }
}
