/* Page-specific styles: price-compare.html */
:root {
  --bg: #FFF3E8;
  --bg-alt: #FBE3D1;
  --ink: #211512;
  --ink-soft: #6A4A40;
  --primary: #D71920;
  --primary-dark: #8F1015;
  --accent: #F15A24;
  --accent-soft: #F7C84B;
  --herb-brown: #A52A1E;
  --line: #E8C6B2;
  --white: #FFFDFC;
  --price-low: #C9151B;
  --price-high: #D71920;

  --font-display: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-body: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-full: 999px;

  --max-width: 1120px;
}

img { max-width: 100%; height: auto; display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
}

/* ---- Header ---- */

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.nav-links a:not(:last-child)::after {
  content: "｜"; position: absolute; right: -1px; top: 50%;
  transform: translateY(-50%); color: rgba(0,0,0,0.5); font-weight: 400;
}

.nav-links a.is-current { color: var(--primary); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 16px 24px 24px;
  background: rgba(255,243,232,0.96);
  backdrop-filter: blur(8px);
}

/* ---- Page hero (기준 코드) ---- */

.page-hero {
  position: relative;
  overflow: hidden;
  height: 420px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #C9151B, #49090B);
  color: var(--white);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.70;
  z-index: 1;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(201,21,27,0.80), rgba(73,9,11,0.88));
  z-index: 2;
}

.page-hero .container {
  position: relative;
  z-index: 3;
  text-align: center;
}

.page-hero .eyebrow { color: var(--accent-soft); }

.page-hero h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero p {
  margin: 14px auto 0;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- 범례 ---- */

.pc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.pc-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  box-shadow: 0 2px 8px rgba(73,9,11,0.07);
}

.pc-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ---- 세로 막대그래프 ---- */

.pc-chart-block {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
}

.pc-chart-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.pc-chart-title .est-tag {
  font-size: 10.5px;
  color: var(--herb-brown);
  font-weight: 400;
  margin-left: 4px;
}

.pc-product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pc-tab-btn {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-body);
}

.pc-tab-btn:hover { border-color: var(--accent); }

.pc-tab-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.pc-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 170px;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.pc-chart-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.pc-chart-value {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap;
}

.pc-chart-bar {
  width: 100%;
  max-width: 34px;
  border-radius: 4px 4px 0 0;
  background: var(--herb-brown);
  transition: height .7s cubic-bezier(0.22, 0.8, 0.32, 1);
}

.pc-chart-bar.is-low { background: var(--price-low); }

.pc-chart-bar.is-high { background: var(--price-high); }

.pc-chart-label {
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 8px;
  text-align: center;
  line-height: 1.3;
}

/* ---- 가격 비교 표 ---- */

.pc-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
  margin-bottom: 52px;
}

.pc-table-wrap:last-child { margin-bottom: 0; }

.pc-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
}

.pc-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--primary-dark);
  padding: 18px 20px;
  background: var(--bg-alt);
  border-bottom: 2px solid var(--primary);
}

.pc-table th, .pc-table td {
  padding: 12px 14px;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.pc-table thead th {
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 12.5px;
}

.pc-table thead th:first-child, .pc-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  min-width: 140px;
  background: var(--white);
  font-weight: 700;
  color: var(--ink);
  z-index: 1;
  box-shadow: 2px 0 4px rgba(0,0,0,0.08);
}

.pc-table thead th:first-child { background: var(--primary-dark); color: var(--white); z-index: 2; }

.pc-table tbody tr:last-child td { border-bottom: none; }

.pc-table tbody tr:hover td { background: var(--bg-alt); }

.pc-table tbody tr:hover td:first-child { background: var(--bg-alt); }

.pc-row { cursor: pointer; }

.pc-row td:first-child { position: relative; }

.pc-row td:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: transparent;
}

.pc-row.is-active td { background: var(--accent-soft) !important; }

.pc-row.is-active td:first-child::before { background: var(--accent); }

.pc-cell { min-width: 92px; }

.pc-price-text { font-weight: 600; }

.pc-price-text.is-low { color: var(--price-low); font-weight: 700; }

.pc-price-text.is-high { color: var(--price-high); }

.pc-price-text.is-na { color: var(--line); font-weight: 400; }

/* ---- CTA ---- */

.pc-cta {
  background: var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 72px 24px;
}

.pc-cta h2 { color: var(--primary-dark); font-size: clamp(24px, 3vw, 32px); }

.pc-cta p { color: var(--ink-soft); margin: 14px 0 28px; }

.site-footer {
  padding: 48px 0 40px;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  text-align: center;
}

.site-footer span:first-of-type { color: rgba(255,255,255,0.6); font-size: 13px; }

.site-footer span:last-of-type { max-width: 780px; line-height: 1.7; color: rgba(255,255,255,0.35); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .site-header .nav-inner > .btn { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 64px 0; }

  .pc-chart-block { padding: 18px 12px 40px; overflow: visible; }
  .pc-chart { height: 130px; gap: 4px; overflow: visible; }
  .pc-chart-bar { max-width: none; }
  .pc-chart-value { font-size: 9px; }
  .pc-chart-label {
    font-size: 9px;
    white-space: nowrap;
    transform: rotate(-40deg);
    transform-origin: top center;
    margin-top: 12px;
    display: inline-block;
  }

  .pc-table { min-width: 640px; }
  .pc-table th, .pc-table td { padding: 10px 10px; font-size: 12px; }
}

/* Replacements for former inline styles in generated markup. */
.pc-estimate-note { font-size: 10.5px; color: var(--herb-brown); font-weight: 400; }
.pc-chart-empty { box-shadow: none; padding: 20px 0; text-align: center; color: var(--ink-soft); font-size: 13px; }
.pc-chart-bar { height: 0; }
