/* Shared by all product detail pages. */
: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;

  --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;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--primary-dark);
  line-height: 1.3;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--herb-brown);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 32px); }
.section-head p { color: var(--ink-soft); margin-top: 10px; font-size: 14.5px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
}
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(241,90,36,0.30); }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary-dark); }

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,243,232,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.logo-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--primary-dark); letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 20px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.nav-links a:not(:last-child) { position: relative; padding-right: 32px; }
.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); }
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 30px; height: 30px; background: none; border: none; cursor: pointer;
}
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 16px 24px 24px;
  background: rgba(255,243,232,0.96);
  backdrop-filter: blur(8px);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.mobile-menu a:last-child { border-bottom: none; text-align: center; }

/* ---- 브레드크럼 ---- */
.breadcrumb {
  padding: 90px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.breadcrumb a { color: var(--herb-brown); }
.breadcrumb span { margin: 0 6px; }

/* ---- 제품 히어로 (이미지 + 간단 스펙 리스트) ---- */
.product-hero {
  padding: 32px 0 64px;
  border-bottom: 1px solid var(--line);
}
.ph-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

.ph-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ph-img {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
  margin-top: 40px;
}
.ph-img img { width: 100%; height: auto; object-fit: contain; }

.ph-line-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.ph-title { font-size: clamp(24px, 3.2vw, 30px); margin-bottom: 4px; }
.ph-sub { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 22px; }

.ph-spec-list {
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
  max-width: 460px;
}
.ph-spec-row {
  display: flex;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.ph-spec-row dt {
  flex: 0 0 90px;
  color: var(--herb-brown);
  font-weight: 700;
}
.ph-spec-row dd { color: var(--ink); }
.ph-spec-row .price-em { color: var(--primary); font-weight: 700; font-family: var(--font-display); font-size: 16px; }

/* ---- 제품 특징 & 복용 방법 (2단) ---- */
.feature-usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pu-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 26px;
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
}
.pu-box h3 { font-size: 16px; margin-bottom: 16px; }

.pu-check-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.pu-check-item:last-child { border-bottom: none; }
.pu-check-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pu-check-item p { font-size: 13.5px; color: var(--ink-soft); }

.pu-steps { position: relative; padding-left: 28px; }
.pu-steps::before {
  content: '';
  position: absolute;
  left: 8px; top: 4px; bottom: 4px;
  width: 2px;
  background: var(--line);
}
.pu-step { position: relative; padding-bottom: 20px; }
.pu-step:last-child { padding-bottom: 0; }
.pu-step-num {
  position: absolute;
  left: -28px; top: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pu-step h4 { font-size: 14px; margin-bottom: 4px; }
.pu-step p { font-size: 13px; color: var(--ink-soft); }

/* ---- 관련 제품 ---- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { background: var(--white); border-radius: 20px; padding: 20px 18px; text-align: center; box-shadow: 0 4px 16px rgba(73,9,11,0.07); }
a.related-card { display: block; cursor: pointer; }
.related-card img { width: auto; height: 100px; max-width: 100%; object-fit: contain; margin: 0 auto 12px; }
.related-card h3 { font-size: 14.5px; margin-bottom: 6px; }
.related-card .rp-badge { display: inline-block; background: var(--accent-soft); color: var(--herb-brown); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full); }

/* ---- 제품별 FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 10px; counter-reset: pfaq-counter; max-width: 760px; margin: 0 auto; }
.faq-item {
  counter-increment: pfaq-counter;
  position: relative;
  padding-left: 60px;
  padding-right: 20px;
  padding-top: 4px;
  padding-bottom: 4px;
  border-left: 4px solid var(--accent);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
}
.faq-item::before {
  content: counter(pfaq-counter, decimal-leading-zero);
  position: absolute;
  left: 16px; top: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-soft);
}
.faq-item summary {
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--accent); transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 16px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* ---- CTA ---- */
.pd-cta { background: var(--bg); border-top: 1px solid var(--line); text-align: center; padding: 64px 24px; }
.pd-cta h2 { color: var(--primary-dark); font-size: clamp(22px, 3vw, 30px); }
.pd-cta p { color: var(--ink-soft); margin: 12px 0 24px; }

/* ---- Footer ---- */
.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 .container { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.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); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .site-header .nav-inner > .btn { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 56px 0; }
  .ph-grid { grid-template-columns: 1fr; }
  .feature-usage-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
