/* 慶和家具新版：商品頁。沿用首頁的區塊語言（cg-tile），這裡只放商品頁特有的部分 */

/* 本頁列：左邊商品名稱，右邊預約 */
.cg-lnav { position: sticky; top: 52px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 20px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--cg-line); }
.cg-lnav__name { font-size: 17px; font-weight: 700; color: var(--cg-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-lnav__btn { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 15px; background: var(--cg-terra); color: #fff !important; font-size: 13px; }

.cg-pdp__en { margin: 4px 0 0; font-size: 13px; letter-spacing: 0.24em; color: var(--cg-mute); }
.cg-num { font-variant-numeric: tabular-nums; }

/* 主圖：實景照滿版裁切；去背圖不裁切，放在跟區塊同色的底上 */
.cg-hero__img--cut { background: var(--cg-soft); }
.cg-hero__img--cut img { object-fit: contain; }

/* 三個重點：大字、置中、用留白分段 */
.cg-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.cg-points li { font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--cg-ink); word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }

/* 更多角度：大圖左右滑 */
.cg-more { padding-left: 0; padding-right: 0; }
.cg-strip { display: flex; gap: 12px; width: 100%; margin-top: 28px; padding: 0 24px; box-sizing: border-box; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cg-strip::-webkit-scrollbar { display: none; }
.cg-strip__item { flex: 0 0 85%; margin: 0; scroll-snap-align: center; border-radius: var(--cg-r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--cg-soft); }
.cg-strip__item img { width: 100%; height: 100%; object-fit: cover; }
.cg-strip__item--cut img { object-fit: contain; }
.cg-strip:has(> .cg-strip__item:only-child) { justify-content: center; }

/* 材質與功能 */
.cg-funs { list-style: none; margin: 24px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 560px; }
.cg-funs li { padding: 10px 16px; border-radius: 22px; background: var(--cg-soft); font-size: 15px; color: var(--cg-ink); }

/* 尺寸 */
.cg-dims { display: grid; gap: 12px; margin: 28px auto 0; width: 100%; max-width: 760px; }
.cg-dim { margin: 0; background: #fff; border-radius: var(--cg-r); padding: 12px 8px 8px; }
.cg-dim svg { width: 100%; height: auto; display: block; font-family: var(--cg-font); }
.cg-dim figcaption { font-size: 12px; color: var(--cg-mute); }
.cg-spec { margin: 24px auto 0; width: 100%; max-width: 520px; text-align: left; }
.cg-spec > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--cg-line); }
.cg-spec > div:last-child { border-bottom: 1px solid var(--cg-line); }
.cg-spec dt { color: var(--cg-ink-2); font-size: 15px; }
.cg-spec dt small { display: block; font-size: 12px; color: var(--cg-mute); }
.cg-spec dd { margin: 0; font-size: 15px; color: var(--cg-ink); font-variant-numeric: tabular-nums; text-align: right; }
.cg-spec--price dd { font-weight: 700; }
.cg-notes { margin: 24px auto 0; width: 100%; max-width: 520px; }
.cg-notes p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--cg-ink-2); }
.cg-notes strong { display: block; font-size: 17px; color: var(--cg-ink); }
.cg-notes--center p { margin-bottom: 20px; }

/* 故事：兩種坐法 */
.cg-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px auto 0; width: 100%; max-width: 560px; }
.cg-mode { margin: 0; background: #fff; border-radius: var(--cg-r); padding: 16px 10px; }
.cg-mode svg { width: 100%; height: auto; display: block; }
.cg-mode figcaption { margin-top: 8px; font-size: 13px; color: var(--cg-mute); }
.cg-mode figcaption strong { display: block; font-size: 22px; color: var(--cg-ink); }
.cg-story__img { margin: 28px auto 0; width: 100%; max-width: 760px; }
.cg-story__img img { width: 100%; height: auto; border-radius: var(--cg-r); }

/* 搭配商品 */
.cg-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; margin-top: 28px; width: 100%; max-width: 1100px; text-align: left; }
.cg-pair-card { display: flex; flex-direction: column; gap: 4px; color: var(--cg-ink); }
.cg-pair-card__img { display: block; background: var(--cg-soft); border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; }
.cg-pair-card__img img { width: 100%; height: 100%; object-fit: contain; }
.cg-pair-card__name { font-size: 15px; font-weight: 700; margin-top: 6px; }
.cg-pair-card__price { font-size: 13px; color: var(--cg-ink-2); }

@media (min-width: 700px) {
	.cg-hero__img--cut img { height: auto; aspect-ratio: 16 / 9; }
	.cg-points li { font-size: 24px; }
	.cg-strip { max-width: 1100px; margin-left: auto; margin-right: auto; }
	.cg-strip__item { flex-basis: 60%; }
	.cg-dims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cg-pairs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
	.cg-lnav { padding: 0 max(20px, calc((100% - 1100px) / 2)); }
}

/* 賣點三欄要夠寬才排一列，平板寬度三欄會從詞中間斷行（11-28 自適應檢查），1000 以上才並排 */
@media (min-width: 1000px) {
	.cg-points { flex-direction: row; justify-content: center; gap: 48px; }
	.cg-points li { max-width: 320px; }
}
