/* ============================================================
   Prodogi Korea Demo — product.css (제품 상세 페이지)
   ============================================================ */

/* ---------- 상단: 갤러리 + 바이박스 ---------- */
.pdp { padding: 40px 0 72px; }
.pdp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .pdp__grid { grid-template-columns: 1fr; } }

.gallery__main {
  background: #f2f2f2; border-radius: var(--radius-md);
  padding: 28px; display: flex; align-items: center; justify-content: center;
  min-height: 480px;
}
.gallery__main img { max-height: 500px; width: auto; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; }
.gallery__thumbs button {
  border: 2px solid transparent; border-radius: 10px; padding: 0;
  background: #f2f2f2; cursor: pointer; width: 86px; height: 86px; flex: 0 0 auto;
  overflow: hidden;
}
.gallery__thumbs button.is-active { border-color: var(--c-teal-soft); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* 바이박스 */
.buybox__rating { color: var(--c-teal); font-weight: 700; letter-spacing: 2px; }
.buybox__rating span { color: var(--c-ink); font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.buybox h1 { font-size: 52px; letter-spacing: 1px; line-height: 1.1; margin: 8px 0 4px; }
.buybox__tagline { font-size: 22px; color: var(--c-ink); margin-bottom: 14px; }
.buybox__badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--c-teal); color: var(--c-teal); font-weight: 600;
  letter-spacing: 2px; font-size: 13px; text-transform: uppercase;
  border-radius: 999px; padding: 6px 16px; margin-bottom: 18px;
}
.buybox__desc p { margin-bottom: 14px; font-size: 17px; }

.buybox__panel {
  border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: 26px 24px; margin-top: 22px; background: var(--c-white);
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.opt-label {
  font-size: 13px; font-weight: 600; letter-spacing: 2px; color: #7b7b7b;
  text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin: 18px 0 12px;
}
.opt-label::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.opt-label:first-child { margin-top: 0; }

.weight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.weight-grid button {
  border: 1.5px solid var(--c-border); border-radius: 10px; background: var(--c-white);
  padding: 12px; cursor: pointer; text-align: center;
}
.weight-grid button b { display: block; font-size: 16px; color: var(--c-ink); }
.weight-grid button span { font-size: 13px; color: var(--c-text); }
.weight-grid button.is-active { border-color: var(--c-teal); background: #f0fafa; }

.bundle { position: relative; border: 1.5px solid var(--c-border); border-radius: 12px;
  padding: 16px; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px;
  align-items: center; cursor: pointer; margin-bottom: 12px; background: var(--c-white);
}
.bundle.is-active { border-color: var(--c-teal); background: #f4fbfb; }
.bundle__flag {
  position: absolute; top: -12px; right: 14px; background: var(--c-teal-deep);
  color: var(--c-white); font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 6px;
}
.bundle img { width: 64px; }
.bundle__name { font-weight: 700; color: var(--c-ink); font-size: 18px; }
.bundle__name .save {
  background: #d9f2e3; color: #1b7a4b; font-size: 12px; font-weight: 700;
  border-radius: 6px; padding: 3px 8px; margin-left: 8px; vertical-align: 2px;
}
.bundle__supply { font-size: 13px; }
.bundle__price { text-align: right; }
.bundle__price .ea { font-size: 22px; font-weight: 700; color: var(--c-ink); }
.bundle__price .ea small { font-size: 13px; font-weight: 500; }
.bundle__price .was { text-decoration: line-through; color: #a5a5a5; font-size: 13px; }
.bundle__price .total { font-size: 13px; }

.purchase-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.purchase-card {
  border: 1.5px solid var(--c-teal); border-radius: 12px; padding: 16px; text-align: center;
  cursor: pointer; background: #f4fbfb;
}
.purchase-card.is-muted { border: 1.5px dashed var(--c-border); background: var(--c-white); }
.purchase-card b { display: block; font-size: 15px; color: var(--c-ink); letter-spacing: 1px; }
.purchase-card .chip {
  display: inline-block; background: #d9f2e3; color: #1b7a4b;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; margin: 8px 0;
}
.purchase-card select {
  width: 100%; padding: 10px; border: 1.5px solid var(--c-teal); border-radius: 8px;
  font-weight: 600; color: var(--c-ink); background: var(--c-white);
}
.purchase-card .sub { font-size: 13px; }

.sub-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 16px; font-size: 14px; }
.sub-perks span { display: flex; align-items: center; gap: 8px; }
.sub-perks svg { color: var(--c-teal); flex: 0 0 auto; }

.btn--cart {
  width: 100%; margin-top: 20px; background: var(--c-teal-deep); color: var(--c-white);
  padding: 16px; font-size: 17px; border-radius: 10px;
}
.buybox__secure { text-align: center; font-size: 13px; margin-top: 12px; }
.buybox__delivery { font-size: 15px; margin-top: 18px; }
.buybox__note { font-size: 12.5px; color: #9a9a9a; margin-top: 10px; }

/* ---------- 신뢰 뱃지 ---------- */
.trust { border-top: 1px solid var(--c-border); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.trust__grid img { width: 150px; margin: 0 auto 16px; }
.trust__grid h5 { color: #12a3b4; font-size: 18px; margin-bottom: 10px; }
.trust__grid p { font-size: 15px; }
@media (max-width: 900px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 수의사 인용 (회색 밴드) ---------- */
.pdp-quote { background: #e9e9e9; }
.pdp-quote__inner { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: center; }
.pdp-quote__inner img { border-radius: var(--radius-md); }
.pdp-quote__text { font-size: 19px; color: #4a4a4a; }
.pdp-quote__name { font-weight: 700; color: var(--c-ink); margin-top: 18px; font-size: 18px; }
@media (max-width: 900px) { .pdp-quote__inner { grid-template-columns: 1fr; } }

/* ---------- 성분 카드 (플립 + 캐러셀) ---------- */
.ingredients { text-align: center; }
.ingredients .eyebrow { color: var(--c-teal-deep); }
.ingredients h2 { font-size: 44px; margin: 8px 0 6px; }
.ingredients__sub { margin-bottom: 40px; }

.ing-carousel { position: relative; }
.ing-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 324px;
  gap: 24px; overflow-x: auto; padding: 12px 6px 26px; text-align: left;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.ing-row::-webkit-scrollbar { display: none; }

.ing-card {
  height: 470px; perspective: 1400px; scroll-snap-align: start;
  background: none; border: 0; padding: 0;
}
.ing-card__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.4,.1,.2,1), box-shadow .3s ease, translate .3s ease;
  border-radius: 18px;
}
.ing-card:hover .ing-card__inner { translate: 0 -6px; }
.ing-card.is-flipped .ing-card__inner { transform: rotateY(180deg); }
.ing-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid var(--c-border); border-radius: 18px; background: var(--c-white);
  padding: 34px 28px; box-shadow: 0 14px 34px rgba(9,68,84,.08);
  display: flex; flex-direction: column;
}
.ing-face--back { transform: rotateY(180deg); background: #f4fbfb; border-color: #cdeae8; }
.ing-face img { height: 140px; width: auto; margin: 6px auto 24px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.12)); }
.ing-face h3 { font-size: 21px; text-align: center; margin-bottom: 14px; }
.ing-face p { font-size: 14.5px; }
.ing-face--back h3 { margin-top: 6px; }
.ing-face--back ul { margin-top: 8px; }
.ing-face--back li { font-size: 14.5px; position: relative; padding-left: 26px; margin-bottom: 14px; color: #333; }
.ing-face--back li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%;
  background-color: var(--c-teal-bright);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l6 6L20 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 9px;
}
.ing-flip-btn {
  margin-top: auto; align-self: flex-end;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: #49c5cb; color: var(--c-white); font-weight: 700; font-style: italic;
  font-family: Georgia, serif; font-size: 16px;
  box-shadow: 0 4px 10px rgba(9,68,84,.18);
  transition: transform .15s ease, background .15s ease;
}
.ing-flip-btn:hover { transform: scale(1.12); background: var(--c-teal); }
.ing-face--back .ing-flip-btn { background: var(--c-teal-deep); font-style: normal; font-family: inherit; }

.ing-nav {
  position: absolute; top: 42%; width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--c-white); color: var(--c-teal-deep);
  box-shadow: 0 6px 18px rgba(9,68,84,.2); font-size: 20px; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, opacity .15s ease;
}
.ing-nav:hover { transform: scale(1.1); }
.ing-nav[disabled] { opacity: .35; cursor: default; }
.ing-nav--prev { left: -10px; }
.ing-nav--next { right: -10px; }
@media (max-width: 900px) {
  .ing-nav--prev { left: 4px; }
  .ing-nav--next { right: 4px; }
}

/* ---------- 비교 테이블 ---------- */
.vs { text-align: center; }
.vs h2 { font-size: 44px; margin: 8px 0 14px; }
.vs__bold { font-weight: 700; color: var(--c-ink); font-size: 18px; margin-bottom: 12px; }
.vs__desc { max-width: 1060px; margin: 0 auto 40px; }
.vs table { width: 100%; max-width: 860px; margin: 0 auto; border-collapse: collapse; }
.vs th, .vs td { padding: 16px 10px; border-bottom: 1px solid #ececec; font-size: 16px; }
.vs th { font-weight: 700; color: var(--c-ink); }
.vs thead th:first-child { border-bottom: 0; }
.vs thead .lead-col { color: var(--c-teal); border-bottom: 2px solid var(--c-teal); }
.vs td:first-child { text-align: left; font-weight: 700; color: var(--c-ink); }
.vs .yes { color: var(--c-teal); font-size: 18px; font-weight: 700; }
.vs .no { color: #c9c9c9; font-size: 16px; }
.vs__fine { font-size: 13px; color: #9a9a9a; max-width: 1100px; margin: 26px auto 0; }

/* ---------- What to Expect ---------- */
.expect { text-align: center; }
.expect h2 { font-size: 44px; margin: 8px 0 40px; }
.expect__grid { display: grid; grid-template-columns: 480px 1fr; gap: 56px; text-align: left; align-items: center; max-width: 1160px; margin: 0 auto; }
.expect__grid > img { border-radius: var(--radius-md); }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; margin-bottom: 26px; }
.step__num {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#12b0b8,#5ed3c2);
  color: var(--c-white); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step h5 { color: #0d7f96; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.expect__fine { font-size: 14px; color: #9a9a9a; margin-top: 26px; }
@media (max-width: 900px) { .expect__grid { grid-template-columns: 1fr; } }

/* ---------- How to use ---------- */
.howto { text-align: center; }
.howto h2 {
  display: inline-block; font-size: 44px; color: var(--c-teal);
  border-bottom: 4px solid var(--c-teal); padding-bottom: 10px; margin-bottom: 26px;
}
.howto h5 { font-size: 20px; margin-bottom: 10px; }
.howto p { margin-bottom: 30px; }
.howto video { width: 100%; max-width: 1060px; margin: 0 auto; border-radius: var(--radius-md); display: block; }

/* ---------- 후기 ---------- */
.reviews h2 { text-align: center; font-size: 44px; margin-bottom: 14px; }
.reviews__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.stars { color: var(--c-teal); letter-spacing: 3px; font-size: 18px; }
.reviews__grid { columns: 2; column-gap: 24px; }
.review-card {
  break-inside: avoid; border: 1px solid #bfe9e4; border-radius: 12px;
  padding: 24px; margin-bottom: 24px; background: var(--c-white);
}
.review-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.review-card__head b { color: var(--c-ink); font-size: 17px; }
.review-card__verified { color: var(--c-teal); font-size: 12.5px; font-weight: 600; }
.review-card__date { font-size: 13px; color: #9a9a9a; }
.review-card .stars { font-size: 14px; }
.review-card p { font-size: 15px; margin-top: 10px; }
.review-card__reply { border-top: 1px solid #ececec; margin-top: 16px; padding-top: 12px; font-size: 13.5px; }
.review-card__reply b { color: var(--c-ink); }
.reviews__more { text-align: center; margin-top: 10px; }
.reviews__more .btn { background: #111; color: #fff; border-radius: 999px; }
@media (max-width: 900px) { .reviews__grid { columns: 1; } }

/* ---------- FAQ ---------- */
.faq { background: var(--c-gray-bg); }
.faq h2 { text-align: center; font-size: 44px; margin-bottom: 30px; }
.faq__list { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid #dcdcdc; }
.faq details:first-child { border-top: 1px solid #dcdcdc; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 24px 8px; font-weight: 700; color: var(--c-ink); font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-icon { color: var(--c-ink); flex: 0 0 auto; display: inline-flex; }
.faq summary .chev { margin-left: auto; transition: transform .2s; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq .faq__a { padding: 0 8px 24px 44px; font-size: 16px; }
.faq .faq__a p { margin-bottom: 10px; }
