/* ============================================================
   分類頁（/products/<分類>/，scripts/build-detail-pages.mjs 產生）
   沿用全站色票與字體（style.css），卡片／對照表／FAQ 與選購指南文章同一套視覺。
   ============================================================ */
.cp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; font-size: 12.5px; letter-spacing: .04em; color: var(--text-mid); }
.cp-crumbs a { color: inherit; text-decoration: none; }
.cp-crumbs a:hover { color: var(--text-charcoal); }
.cp-hero h1 { max-width: 900px; margin-top: 14px; }
.page-hero.cp-hero p { max-width: 760px; }
.page-hero.cp-hero p + p { margin-top: 14px; }
.page-hero.cp-hero p.cp-jump { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 13.5px; letter-spacing: .03em; }
.cp-jump a { color: var(--text-charcoal); text-underline-offset: 3px; }

/* 商品卡：整張是可爬取的連結 */
.cp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cp-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.cp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.07); }
.cp-card picture { display: block; background: #f7f5f1; }
.cp-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cp-card > div { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.cp-card__en { font-family: var(--wide); font-size: 10.5px; letter-spacing: .16em; color: var(--text-mid); }
.cp-card h3 { margin: 2px 0 0; font-family: var(--sans); font-weight: 500; font-size: 15.5px; line-height: 1.6; letter-spacing: .03em; }
.cp-card p { flex: 1; margin: 0; font-size: 13px; line-height: 1.75; color: #6e6e6e; font-weight: 300; }
.cp-card__more { align-self: flex-start; margin-top: 6px; padding-bottom: 3px; border-bottom: 1px solid; font-size: 12.5px; }

/* 尺寸與材質對照表 */
.cp-table { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.cp-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; line-height: 1.75; }
.cp-table caption { caption-side: top; text-align: left; padding: 14px 18px 4px; font-size: 13px; letter-spacing: .04em; color: var(--text-mid); }
.cp-table th, .cp-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cp-table thead th { background: var(--offwhite); font-weight: 500; color: var(--text-charcoal); white-space: nowrap; }
.cp-table tbody th { font-weight: 500; color: var(--text-charcoal); min-width: 9em; }
.cp-table tbody th a { color: inherit; text-underline-offset: 3px; }
.cp-table td { color: #5c5c5c; font-weight: 300; }
.cp-table td.cp-na { color: var(--text-mid); }
.cp-table tbody tr:last-child th, .cp-table tbody tr:last-child td { border-bottom: 0; }

/* 常見問題 */
.cp-faq { max-width: 860px; }
.cp-faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.cp-faq details:first-of-type { border-top: 1px solid var(--line); }
.cp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--text-charcoal); }
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary::after { content: "+"; font-family: var(--wide); font-weight: 300; color: var(--text-mid); }
.cp-faq details[open] summary::after { content: "−"; }
.cp-faq details p { margin: 14px 0 0; font-size: 15px; line-height: 1.9; color: #5c5c5c; font-weight: 300; }

/* 門市導流、延伸閱讀、其他分類 */
.section.cp-visit { padding-top: 0; }
.cp-cta { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.cp-cta h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 14px 0 18px; }
.cp-cta p { font-size: 15px; line-height: 1.95; color: #5c5c5c; font-weight: 300; margin: 0 0 26px; }
.cp-cta p a { color: var(--text-charcoal); text-underline-offset: 3px; }
.cp-related h3, .cp-others h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; margin: 0 0 14px; }
.cp-related { margin-bottom: 36px; }
.cp-related ul { list-style: none; margin: 0; padding: 0; }
.cp-related li { border-top: 1px solid var(--line); }
.cp-related li:last-child { border-bottom: 1px solid var(--line); }
.cp-related a { display: block; padding: 14px 0; font-size: 14.5px; line-height: 1.7; color: var(--text-charcoal); text-decoration: none; }
.cp-related a:hover { color: var(--brand-grey-dark); }
.cp-siblings { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cp-siblings a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--text-charcoal); text-decoration: none; background: var(--white); }
.cp-siblings a:hover { border-color: var(--grey-3); }
.cp-siblings a span { font-family: var(--wide); font-size: 11.5px; color: var(--text-mid); }

@media (max-width: 1080px) { .cp-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .cp-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cp-cta { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .cp-hero h1 { font-size: 27px; }
  .cp-card > div { padding: 12px 14px 16px; }
  .cp-card h3 { font-size: 14.5px; }
  .cp-faq summary { font-size: 16.5px; }
  .cp-cta h2 { font-size: 25px; }
}
