/* 홈 화면 고객 후기: 옆으로 넘겨 보는 큰 카드(글씨를 읽을 수 있는 크기) */
.home-reviews { padding: 6px 0 14px; }
.home-reviews .home-h2 { padding-bottom: 4px; }
.home-reviews .rv-sub { margin: 0; padding: 0 18px 10px; color: #8a7a72; font-size: 12.5px; }
.rv-wrap { position: relative; }
.rv-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rv-track::-webkit-scrollbar { display: none; }
/* 양옆 빈칸: 카드(폭 90%)가 어느 자리에서든 가운데에 올 수 있게 한다(카드 사이 간격 12px을 뺀 값) */
.rv-track::before, .rv-track::after { content: ""; flex: 0 0 calc(5% - 12px); }
.rv-card {
  flex: 0 0 90%;
  scroll-snap-align: center;
  margin: 0;
  position: relative;
  aspect-ratio: 1420 / 1820; /* 이미지 바깥 여백을 잘라 내고 흰 카드 부분만 크게 보여 준다 */
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(120, 60, 30, 0.18);
  border: 1px solid #f0dccc;
}
.rv-card img { position: absolute; width: 112.7%; max-width: none; height: auto; left: -6.34%; top: -4.95%; }
.rv-count { text-align: center; margin: 2px 0 0; color: #8a7a72; font-size: 12.5px; font-weight: 700; }
.rv-nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  color: #c8402a;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.rv-nav[data-rv-prev] { left: 6px; }
.rv-nav[data-rv-next] { right: 6px; }
@media (hover: none) { .rv-nav { display: none; } }

/* 홈 '이렇게 진행돼요' 아래 친구에게 공유하기 */
.home-share { display: block; width: calc(100% - 32px); margin: 14px 16px 0; min-height: 52px; border: 0; border-radius: 14px; background: #c8361f; color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.home-share:active { background: #a82c19; }

/* 유료 상품 상세의 분석지 견본: 크게 보이게(원본 그림 폭 260px 그대로) 옆으로 넘겨 본다 */
.sample-strip { gap: 10px; scroll-snap-type: x proximity; padding-bottom: 8px; }
.sample-strip img { width: min(260px, 78%); scroll-snap-align: start; border-radius: 6px; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14); }

/* 상품 상세의 '분석 대상' 칸: 인원 선택·추가 버튼 */
.checkout-profile { flex-wrap: wrap; }
.checkout-who { flex: 1 1 100%; }
.checkout-pick { display: block; flex: 1 1 100%; width: 100%; margin-top: 10px; min-height: 46px; border: 1.5px solid #c8361f; border-radius: 12px; background: #fff; color: #c8361f; font-size: 15px; font-weight: 800; cursor: pointer; }
.checkout-who .checkout-pick { background: #c8361f; color: #fff; }
.checkout-pick.is-change { min-height: 40px; font-size: 14px; border-color: #e3c3ba; }

/* 오픈 특가 표시(가격 위) */
.price-badge { display: inline-block; background: #c8402a; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; margin-bottom: 4px; letter-spacing: 0.03em; }
[data-compat-price] .price-badge { margin-bottom: 6px; }

/* 다홍이 무료 상담 답 아래 종합 사주 감명서 안내 카드 */
.chat-upsell { margin: 12px 16px 0; padding: 16px 14px; border: 1.5px solid #c8361f; border-radius: 16px; background: #fff; text-align: center; }
.chat-upsell[hidden] { display: none; }
.chat-upsell b { display: block; font-size: 16px; font-weight: 800; color: #2a1a16; }
.chat-upsell p { margin: 6px 0 8px; font-size: 14px; color: #6b524a; line-height: 1.5; }
.chat-upsell-price { margin-bottom: 10px; font-size: 15px; font-weight: 800; color: #c8361f; }
.chat-upsell button { width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: #c8361f; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.chat-upsell-tag { display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: 999px; background: #c8361f; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; }
.chat-upsell .price-badge { display: none; }

/* 후기 남기고 질문 1번 받기 */
.chat-review { margin: 12px 16px 0; padding: 16px 14px; border: 1.5px solid #e6c9be; border-radius: 16px; background: #fffaf6; text-align: center; }
.chat-review[hidden] { display: none; }
.chat-review b { display: block; font-size: 16px; font-weight: 800; color: #2a1a16; }
.chat-review p { margin: 6px 0 10px; font-size: 13px; color: #6b524a; line-height: 1.5; }
.chat-review-stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.chat-review-stars button { border: 0; background: transparent; font-size: 30px; line-height: 1; color: #e0d4cd; cursor: pointer; padding: 2px 4px; }
.chat-review-stars button.is-on { color: #f2a21d; }
.chat-review textarea { width: 100%; box-sizing: border-box; border: 1px solid #e3d2c9; border-radius: 12px; padding: 10px 12px; font-size: 15px; font-family: inherit; resize: vertical; background: #fff; }
.chat-review .chat-review-msg { min-height: 18px; margin: 6px 0 8px; color: #c8361f; font-weight: 700; }
.chat-review button[data-chat-review-send] { width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: #c8361f; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.chat-review button[data-chat-review-send]:disabled { opacity: 0.6; }
.chat-review .chat-review-ok { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; color: #6b524a; text-align: left; cursor: pointer; }
.chat-review .chat-review-ok input { width: 18px; height: 18px; flex: 0 0 auto; }

/* 상품별 공개 후기(어드민에서 숨기기를 푼 것만 보임) */
.product-reviews { margin: 12px 16px 0; }
.product-reviews[hidden] { display: none; }
.product-reviews h2 { font-size: 16px; margin: 0 0 8px; }
.pr-item { padding: 12px 0; border-top: 1px solid #f0e2da; }
.pr-item:first-child { border-top: 0; }
.pr-stars { color: #f2a21d; font-size: 15px; letter-spacing: 1px; }
.pr-item p { margin: 4px 0; font-size: 14px; line-height: 1.6; color: #2a1a16; white-space: pre-wrap; }
.pr-item small, .product-reviews-note { color: #8a7a72; font-size: 12px; }
.product-reviews-note { display: block; margin-top: 8px; }

/* 보관함 PDF 후기 남기기 */
.lib-pdf-review { margin: -4px 0 12px; padding: 0 2px; }
.lib-pdf-review-open { width: 100%; min-height: 40px; border: 1.5px solid #c8361f; border-radius: 10px; background: #fff; color: #c8361f; font-size: 14px; font-weight: 800; cursor: pointer; }
.lib-pdf-review-form { margin-top: 8px; padding: 12px; border: 1px solid #e6c9be; border-radius: 12px; background: #fffaf6; }
.lib-pdf-review-form[hidden] { display: none; }
.lib-pdf-review-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #e3d2c9; border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: inherit; resize: vertical; background: #fff; }
.lib-pdf-review-form .chat-review-msg { min-height: 18px; margin: 6px 0 8px; color: #c8361f; font-weight: 700; font-size: 13px; }
.lib-pdf-review-form .chat-review-ok { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; color: #6b524a; cursor: pointer; }
.lib-pdf-review-send { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: #c8361f; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.lib-pdf-review-send:disabled { opacity: 0.6; }
.lib-pdf-review-done { margin: -4px 0 12px; font-size: 13px; color: #6b524a; text-align: center; }
.lib-pdf-review .chat-review-stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }

/* 별점 선택(★★★ ~ ★★★★★)과 공개 후기 머리줄 */
.chat-review-stars button { font-size: 18px; letter-spacing: 1px; padding: 8px 12px; border: 1.5px solid #e3d2c9; border-radius: 10px; background: #fff; color: #e0b46a; }
.chat-review-stars button.is-on { border-color: #c8361f; background: #fff1ea; color: #f2a21d; }
.pr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pr-meta { color: #8a7a72; font-size: 12px; white-space: nowrap; }

/* 홈 상품 목록 아래 후기 선물 구슬 안내(한 번만) */
.home-list-gift { margin: 10px 16px 0; text-align: center; font-size: 13px; font-weight: 700; color: #c8361f; }

/* 홈 '첫 질문 무료' 아래 구슬 1개 제공 문구: 초록색 */
.ask-tx p { color: #1f8f4a; }

/* 다홍이 상담 말풍선의 다홍이: 얼굴이 크게 보이는 새 이미지 */
.chat-avatar { width: 64px; height: 64px; border-radius: 18px; background: #fdeedd url("./assets/character/dahongi-chat-face.webp") center / cover no-repeat; border: 1px solid #f0dccc; }

/* 견본 아래 안내 문구: 크게, 진하게 */
.sample-note { margin-top: 10px; font-size: 14px; line-height: 1.6; color: #5d4a42; }

/* 아래 메뉴: 무료운세(가운데 여우 버튼)를 없애서 4칸으로 고르게 */
.bottom-nav { grid-template-columns: repeat(4, 1fr); }

/* 후기가 많아도 화면이 길어지지 않게, 후기 칸 안에서 아래로 스크롤해서 본다(다홍이 상담·궁합·상품 화면 공통) */
.product-reviews [data-reviews-list] { max-height: 340px; overflow-x: hidden; overflow-y: auto; padding-right: 8px; -webkit-overflow-scrolling: touch; }
/* 무료 답 뒤 PDF 안내 팝업(화면 아래에서 올라옴) */
.chat-pop { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(30, 18, 14, 0.45); animation: chatPopFade 0.25s ease; }
.chat-pop-sheet { position: relative; width: 100%; max-width: 480px; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; text-align: center; animation: chatPopUp 0.3s ease; }
.chat-pop-sheet { max-height: 88vh; overflow-y: auto; }
.chat-pop-h { display: block; padding: 0 22px; font-size: 17px; font-weight: 800; color: #2a1a16; }
.chat-pop-list { display: grid; gap: 8px; margin: 4px 0 6px; text-align: left; }
.chat-pop-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border: 1.5px solid #ead9d2; border-radius: 14px; background: #fff; text-align: left; cursor: pointer; }
.chat-pop-item.is-pick { border-color: #c8361f; background: #fff6f3; }
.chat-pop-tx { display: grid; gap: 2px; min-width: 0; }
.chat-pop-tx b { font-size: 15px; font-weight: 800; color: #2a1a16; }
.chat-pop-tx i { margin-left: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: #8a746b; }
.chat-pop-tx small { font-size: 12px; line-height: 1.4; color: #6b524a; }
.chat-pop-pr { flex: none; font-size: 14px; font-weight: 800; color: #c8361f; text-align: right; }
.chat-pop-sheet p { margin: 8px 0 10px; font-size: 14px; line-height: 1.55; color: #6b524a; }
.chat-pop-price { margin-bottom: 12px; font-size: 16px; font-weight: 800; color: #c8361f; }
.chat-pop-price .price-badge { display: none; }
.chat-pop-go { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: #c8361f; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.chat-pop-later { margin-top: 6px; min-height: 40px; border: 0; background: none; color: #8a746b; font-size: 13px; cursor: pointer; }
.chat-pop-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 24px; line-height: 1; color: #8a746b; cursor: pointer; }
@keyframes chatPopUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes chatPopFade { from { opacity: 0; } to { opacity: 1; } }
.chat-pop-pr .price-badge { display: none; }
.chat-pop-pr { display: grid; justify-items: end; gap: 1px; }
