/* ============================================================
   (주)재경 — 개장·이장 상품 상세페이지 전용
   2026-08-23 신규. style.css 를 먼저 불러온 뒤 덧붙인다.
   · 원본(아임웹 쇼핑몰)의 옵션 구성은 그대로 살리되
     구매하기·장바구니·찜은 "견적문의" 하나로 바꾼다.
   · 어르신 고객이 많아 드롭다운 대신 항목을 펼쳐서 보여준다.
   ============================================================ */

/* ---------- 위치 표시 줄 ---------- */
.crumb-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-muted);
}
.crumb-bar .container { padding-top: 15px; padding-bottom: 15px; }
.crumb-bar a:hover { color: var(--green); }
.crumb-bar .sep { margin: 0 9px; color: var(--text-faint); }
.crumb-bar .now { color: var(--text); font-weight: 600; }

/* ---------- 상단 2단 ---------- */
.prod-top { padding: 74px 0 96px; }
.prod-top .inner {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 58px;
  align-items: start;
}

.prod-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 1 / 1;
  position: sticky;
  top: 110px;
}
.prod-photo img { width: 100%; height: 100%; object-fit: cover; }

.prod-name { font-size: 2.05rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.3; }
.prod-code {
  display: inline-block; margin-top: 12px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 13px;
}
.prod-base {
  margin-top: 22px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.prod-base .k { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.prod-base .v {
  font-size: 2.2rem; font-weight: 800; color: var(--green);
  letter-spacing: -0.04em; line-height: 1.25; margin-top: 5px;
}
.prod-base .v small { font-size: 1.05rem; font-weight: 700; margin-left: 2px; }
.prod-base .n { margin-top: 9px; font-size: 0.87rem; color: var(--text-faint); }

.prod-include { margin-top: 24px; }
.prod-include li {
  display: flex; gap: 11px;
  font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.8; padding: 7px 0;
}
.prod-include li::before {
  content: ""; flex: none;
  width: 3px; height: 15px; border-radius: 2px; margin-top: 7px;
  background: var(--gold);
}

/* ---------- 옵션 ---------- */
.opt-group { margin-top: 34px; }
.opt-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 1rem; font-weight: 700; letter-spacing: -0.02em;
  padding-bottom: 13px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.opt-title .req { color: var(--gold); font-size: 0.78rem; font-weight: 700; }
.opt-title .sel { color: var(--text-faint); font-size: 0.78rem; font-weight: 500; }

.opt-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.opt-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 17px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.opt-item:hover { border-color: var(--gold); }
.opt-item input {
  flex: none; width: 17px; height: 17px;
  accent-color: var(--green); cursor: pointer;
}
.opt-item .label { flex: 1; font-size: 0.93rem; line-height: 1.5; }
.opt-item .won { font-size: 0.93rem; font-weight: 700; white-space: nowrap; }
.opt-item.on { border-color: var(--green); background: var(--green-tint); }
.opt-item.on .won { color: var(--green); }

/* ---------- 선택 내용 · 예상 금액 ---------- */
.quote-box {
  margin-top: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
}
.quote-box h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.quote-list { border-top: 1px solid var(--border); }
.quote-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem; color: var(--text-muted);
}
.quote-list li .won { color: var(--text); font-weight: 600; white-space: nowrap; }
.quote-list li.empty { color: var(--text-faint); justify-content: flex-start; }
.quote-total {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-top: 20px;
}
.quote-total .k { font-size: 0.95rem; font-weight: 700; }
.quote-total .v {
  font-size: 1.85rem; font-weight: 800; color: var(--green);
  letter-spacing: -0.04em;
}
.quote-total .v small { font-size: 1rem; font-weight: 700; margin-left: 2px; }

.btn-quote-go {
  display: block; width: 100%; margin-top: 22px;
  background: var(--green); color: #fff; border: none;
  padding: 17px; border-radius: var(--radius);
  font-family: inherit; font-size: 1.02rem; font-weight: 700;
  cursor: pointer; text-align: center;
  transition: background .15s;
}
.btn-quote-go:hover { background: var(--green-dark); }

.btn-tel {
  display: block; width: 100%; margin-top: 10px;
  border: 1px solid var(--green); color: var(--green);
  padding: 15px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; text-align: center;
  transition: background .15s, color .15s;
}
.btn-tel:hover { background: var(--green); color: #fff; }

/* 견적 참고용 안내 — 눈에 띄게 */
.quote-caution {
  margin-top: 20px;
  background: #FBF6EC;
  border: 1px solid #E6D6B8;
  border-radius: var(--radius);
  padding: 17px 19px;
  font-size: 0.88rem;
  line-height: 1.85;
  color: #6E5A34;
}
.quote-caution b { color: #8A6A2F; }

/* ---------- 자주 묻는 질문 ---------- */
.faq-section { padding: 106px 0; background: var(--bg-alt); }
.faq-list { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; cursor: pointer;
  font-family: inherit; font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text); text-align: left;
}
.faq-q .mark {
  flex: none; width: 26px; height: 26px; position: relative;
  border: 1px solid var(--border); border-radius: 50%;
  transition: transform .2s, border-color .2s;
}
.faq-q .mark::before, .faq-q .mark::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--green); transform: translate(-50%, -50%);
}
.faq-q .mark::before { width: 11px; height: 1.5px; }
.faq-q .mark::after  { width: 1.5px; height: 11px; transition: opacity .2s; }
.faq-item.open .faq-q .mark { border-color: var(--green); }
.faq-item.open .faq-q .mark::after { opacity: 0; }
.faq-a {
  display: none;
  padding: 0 4px 28px;
  font-size: 0.97rem; line-height: 2;
  color: var(--text-muted);
  max-width: 760px;
}
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--green); font-weight: 600; text-decoration: underline; }

/* ---------- 4종 비교 ---------- */
.compare-section { padding: 106px 0; background: var(--bg); }
.compare-scroll { overflow-x: auto; }
.compare-table {
  width: 100%; min-width: 780px;
  border-collapse: collapse;
  border-top: 2px solid var(--green);
  font-size: 0.94rem;
}
.compare-table th, .compare-table td {
  padding: 17px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
.compare-table thead th {
  background: var(--bg-alt);
  font-weight: 700; font-size: 0.97rem;
  letter-spacing: -0.02em;
}
.compare-table thead th .code {
  display: block; font-size: 0.75rem; font-weight: 500;
  color: var(--text-faint); margin-top: 4px;
}
.compare-table tbody th {
  background: var(--bg-alt);
  text-align: left; font-weight: 600;
  width: 150px; white-space: nowrap;
}
.compare-table td { color: var(--text-muted); }
.compare-table td.price { font-weight: 700; color: var(--text); white-space: nowrap; }
.compare-table .this { background: var(--green-tint); }
.compare-table .this.price, .compare-table thead th.this { color: var(--green); }
.compare-table .go a {
  display: inline-block; padding: 9px 18px;
  border: 1px solid var(--green); color: var(--green);
  border-radius: var(--radius); font-size: 0.86rem; font-weight: 600;
}
.compare-table .go a:hover { background: var(--green); color: #fff; }
.compare-table .go .current { color: var(--text-faint); font-size: 0.86rem; }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .prod-top .inner { grid-template-columns: 1fr; gap: 40px; }
  .prod-photo { position: static; max-width: 520px; }
}

@media (max-width: 860px) {
  .prod-top { padding: 44px 0 66px; }
  .prod-name { font-size: 1.6rem; }
  .prod-base .v { font-size: 1.8rem; }
  .opt-radios, .opt-checks { grid-template-columns: 1fr; }
  .quote-box { padding: 22px 20px; }
  .quote-total .v { font-size: 1.55rem; }
  .faq-section, .compare-section { padding: 70px 0; }
  .faq-q { font-size: 0.98rem; padding: 22px 2px; }
}
