/* 상품 상세(랜딩) 화면: 상품을 누르면 가장 먼저 보이는 소개 페이지. 맨 아래 '주문하기'를 누르면 주문·인원 선택 화면으로 이어진다. */
.product-view { background: #fff5f0; padding-bottom: 120px; }
.pd { display: grid; gap: 12px; padding: 14px 16px 0; color: #2a1a16; }

.pd-head { padding: 2px 2px 4px; }
.pd-tag { display: inline-block; padding: 5px 13px; border-radius: 999px; background: #ef5a3c; color: #fff; font-size: 14px; font-weight: 800; }
.pd-title-row { display: flex; align-items: center; gap: 14px; margin: 12px 0 10px; }
.pd-ava { flex: none; width: 108px; height: 108px; object-fit: contain; border-radius: 26px; background: #ffeadf; }
.pd-title { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.25; word-break: keep-all; }
.pd-sub { margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: #5d4a42; word-break: keep-all; }
.pd-price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.pd-was { font-size: 18px; color: #a39690; text-decoration: line-through; }
.pd-now { font-size: 32px; font-weight: 800; color: #ef5a3c; line-height: 1.1; }
.pd-sale { padding: 4px 10px; border-radius: 8px; background: #ef5a3c; color: #fff; font-size: 14px; font-weight: 800; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pd-chips span { padding: 8px 15px; border: 1px solid #e7d8cf; border-radius: 999px; background: #fff; font-size: 14.5px; color: #4a3b35; }

.pd-card { padding: 20px 18px; border-radius: 18px; background: #fff; box-shadow: 0 1px 8px rgba(120, 60, 30, 0.07); }
.pd-card h2 { margin: 0 0 14px; font-size: 21px; font-weight: 800; }

.pd-check { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pd-check li { display: flex; gap: 10px; font-size: 16.5px; line-height: 1.5; word-break: keep-all; }
.pd-check li::before { content: "✓"; flex: none; color: #ef5a3c; font-weight: 800; }

.pd-toc { margin: 0; padding: 0; list-style: none; }
.pd-toc li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1.5px dashed #ead9cf; font-size: 16.5px; line-height: 1.4; }
.pd-toc li:last-child { border-bottom: 0; padding-bottom: 2px; }
.pd-toc b { flex: none; min-width: 26px; color: #ef5a3c; font-weight: 800; }

.pd-preview { padding: 16px; border: 1px solid #f0dccd; border-radius: 14px; background: #fffaf5; }
.pd-preview strong { display: block; margin-bottom: 8px; font-size: 16.5px; color: #c8361f; }
.pd-preview p { margin: 0; font-size: 16px; line-height: 1.75; color: #2a1a16; word-break: keep-all; }

.pd-rv { padding: 12px 0; border-top: 1px solid #f3e6dd; }
.pd-rv:first-of-type { border-top: 0; padding-top: 0; }
.pd-rv .pd-stars { color: #f2a21d; font-size: 15px; letter-spacing: 1px; }
.pd-rv p { margin: 6px 0; font-size: 15.5px; line-height: 1.65; word-break: keep-all; }
.pd-rv small { color: #8a7a72; font-size: 13.5px; }

.pd-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: pdstep; }
.pd-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.55; word-break: keep-all; counter-increment: pdstep; }
.pd-steps li::before { content: counter(pdstep); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ef5a3c; color: #fff; font-size: 14px; font-weight: 800; }

.pd-banner { padding: 15px 16px; border-radius: 14px; background: #ffe6dc; color: #d6452a; font-size: 16px; font-weight: 800; text-align: center; word-break: keep-all; }

.pd-faq dt { margin: 14px 0 4px; font-size: 16.5px; font-weight: 800; }
.pd-faq dt:first-child { margin-top: 0; }
.pd-faq dt::before { content: "Q. "; color: #ef5a3c; }
.pd-faq dd { margin: 0; font-size: 15.5px; line-height: 1.65; color: #4a3b35; word-break: keep-all; }

.pd-bar { position: fixed; z-index: 40; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100%, 430px); box-sizing: border-box; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #efe2d9; background: #fff; }
.pd-bar-info small { display: block; font-size: 13.5px; color: #7a6a63; }
.pd-bar-info strong { font-size: 24px; font-weight: 800; color: #2a1a16; }
.pd-order { flex: none; min-width: 156px; min-height: 54px; border: 0; border-radius: 16px; background: #ef5a3c; color: #fff; font-size: 19px; font-weight: 800; cursor: pointer; }

/* 상세 화면에서는 아래 메뉴 대신 주문 바를 보여 준다 */
body:has(.product-view.is-active) .bottom-nav { display: none; }

/* 견본 줄도 다른 칸과 같은 카드 모양으로 */
.product-view .sample-box { margin: 0; padding: 20px 18px; border-radius: 18px; border: 0; background: #fff; box-shadow: 0 1px 8px rgba(120, 60, 30, 0.07); }
.product-view .sample-box .sample-h { display: block; margin-bottom: 12px; font-size: 21px; font-weight: 800; color: #2a1a16; }

/* 목차 아래 안내 문구 */
.pd-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #f3e6dd; font-size: 14.5px; line-height: 1.55; color: #7a6a63; word-break: keep-all; }

/* 아래 주문 바: 가격만 보이게(윗줄 글자는 쓰지 않는다) */
.pd-bar-info small:empty { display: none; }

/* 홈 화면 오른쪽 아래 카카오톡 문의 버튼(홈에서만 보임) */
.kakao-fab { display: none; position: fixed; z-index: 35; bottom: 100px; right: max(14px, calc(50% - 201px)); flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 62px; height: 62px; border-radius: 50%; background: #fee500; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); color: #3a1d1d; text-decoration: none; }
.kakao-fab span { font-size: 11.5px; font-weight: 800; line-height: 1; }
.kakao-fab[hidden] { display: none !important; }
body:has(.view[data-view="home"].is-active) .kakao-fab:not([hidden]) { display: flex; }

/* 후기가 여러 개면 옆으로 밀어서 본다(별점 높은 순) */
.pd-rv-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.pd-rv-row .pd-rv, .pd-rv-row .pd-rv:first-of-type { flex: 0 0 86%; scroll-snap-align: start; border: 1px solid #f3e6dd; border-radius: 12px; padding: 12px 14px; background: #fffaf6; }
.pd-rv-row .pd-rv:only-child { flex-basis: 100%; }
.pd-rv-hint { margin: 6px 0 0; font-size: 12.5px; color: #8a7a72; text-align: right; }
/* 후기 줄이 카드 폭을 밀어내 화면이 넓어지지 않게 */
.pd > * { min-width: 0; }
