/* ==========================================================
   보미렌탈 비교견적 — 디자인 시스템
   모바일 퍼스트 · 앱(WebView/Capacitor) 최적화
   ========================================================== */

:root {
  --brand: #2b6ff3;
  --brand-dark: #1d5ae0;
  --brand-light: #eaf1fe;
  --accent: #00c48c;
  --accent-light: #e6faf4;
  --warn: #ff8a00;
  --text: #191f28;
  --text-sub: #4e5968;
  --text-weak: #8b95a1;
  --line: #e5e8eb;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 2px 10px rgba(25, 31, 40, 0.06);
  --shadow-up: 0 -2px 12px rgba(25, 31, 40, 0.08);
  --maxw: 640px;
  --tabbar-h: 62px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + var(--sab));
  overscroll-behavior-y: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- 상단 헤더 ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: var(--sat);
}
.header-in {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; padding: 0 18px;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }
.logo .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.logo em { font-style: normal; color: var(--brand); }
.header-call {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--brand);
  background: var(--brand-light); border-radius: 999px;
  padding: 8px 14px; min-height: 36px;
}
.header-call:active { transform: scale(0.96); }

/* ---------- 히어로 ---------- */
.hero {
  background: linear-gradient(160deg, #2b6ff3 0%, #1d5ae0 55%, #1747b8 100%);
  color: #fff; padding: 36px 0 84px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -40px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.hero::before {
  content: ""; position: absolute; left: -40px; bottom: -80px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.16); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; padding: 6px 12px; margin-bottom: 14px;
}
.hero h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.35; }
.hero p.sub { margin-top: 10px; font-size: 15px; opacity: 0.88; }
.hero .stats { display: flex; gap: 22px; margin-top: 22px; }
.hero .stats b { display: block; font-size: 20px; font-weight: 800; }
.hero .stats span { font-size: 12px; opacity: 0.8; }

.hero-cta-card {
  max-width: var(--maxw); margin: -56px auto 0; padding: 0 18px;
  position: relative; z-index: 5;
}
.cta-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 20px;
}
.cta-card h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.4px; }
.cta-card p { font-size: 13px; color: var(--text-weak); margin-top: 3px; }

/* ---------- 버튼 ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; letter-spacing: -0.3px;
  transition: transform 0.08s ease, background 0.15s ease;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:active { background: var(--brand-dark); }
.btn-ghost { background: var(--bg-soft); color: var(--text-sub); }
.btn-line { background: #fff; border: 1.5px solid var(--line); color: var(--text); }
.btn[disabled] { background: #d6dbe1; color: #fff; pointer-events: none; }
.btn.mt { margin-top: 14px; }

/* ---------- 섹션 ---------- */
.section { padding: 30px 0 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }
.section-head a { font-size: 13px; color: var(--text-weak); font-weight: 600; }

/* ---------- 카테고리 그리드 ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.cat-item {
  background: #fff; border-radius: var(--radius);
  padding: 14px 6px 12px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid transparent;
  transition: transform 0.08s ease;
}
.cat-item:active { transform: scale(0.95); border-color: var(--brand); }
.cat-item .ico { font-size: 26px; line-height: 1; }
.cat-item .nm { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-sub); letter-spacing: -0.3px; }

/* ---------- 이용 방법 ---------- */
.steps { display: grid; gap: 10px; }
.step-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow);
}
.step-card .no {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.step-card b { font-size: 15px; letter-spacing: -0.3px; }
.step-card p { font-size: 13px; color: var(--text-weak); margin-top: 2px; }

/* ---------- 실시간 견적 티커 ---------- */
.ticker-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; height: 232px; position: relative;
}
.ticker-box::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background: linear-gradient(transparent, #fff); pointer-events: none;
}
.ticker { list-style: none; }
.ticker li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--bg-soft);
  font-size: 13.5px; animation: slide-in 0.45s ease;
}
.ticker li .tk-ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.ticker li .tk-main { flex: 1; min-width: 0; }
.ticker li .tk-main b { font-weight: 700; letter-spacing: -0.3px; }
.ticker li .tk-main span { color: var(--text-weak); font-size: 12px; display: block; }
.ticker li .tk-state { flex: none; font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-light); border-radius: 999px; padding: 4px 9px; }
.ticker li .tk-state.ing { color: var(--warn); background: #fff3e4; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 신뢰 포인트 ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trust-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 10px; text-align: center;
}
.trust-card .ico { font-size: 24px; }
.trust-card b { display: block; font-size: 13.5px; margin-top: 8px; letter-spacing: -0.4px; }
.trust-card span { display: block; font-size: 11.5px; color: var(--text-weak); margin-top: 3px; line-height: 1.4; }

/* ---------- 후기 ---------- */
.review-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin: 0 -18px; scrollbar-width: none;
}
.review-scroll::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 78%; max-width: 320px; scroll-snap-align: start;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px;
}
.review-card .stars { color: #ffb028; font-size: 13px; letter-spacing: 2px; }
.review-card p { font-size: 13.5px; color: var(--text-sub); margin-top: 8px; min-height: 60px; }
.review-card .who { margin-top: 10px; font-size: 12px; color: var(--text-weak); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq details {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0 16px; overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 700;
  padding: 15px 0; letter-spacing: -0.3px; position: relative; padding-right: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--text-weak); font-size: 18px; font-weight: 400; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { font-size: 13.5px; color: var(--text-sub); padding-bottom: 15px; }

/* ---------- 푸터 ---------- */
.footer {
  margin-top: 34px; padding: 26px 0 30px;
  background: #eef1f4; color: var(--text-weak); font-size: 11.5px; line-height: 1.7;
}
.footer b { color: var(--text-sub); font-size: 12.5px; }
.footer .foot-links { margin: 8px 0; display: flex; gap: 14px; font-weight: 600; }
.footer .caution { margin-top: 10px; padding-top: 10px; border-top: 1px solid #dde2e7; }

/* ---------- 하단 탭바 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--sab);
  box-shadow: var(--shadow-up);
}
.tabbar-in {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: var(--tabbar-h);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--text-weak);
}
.tab svg { width: 23px; height: 23px; stroke: currentColor; }
.tab.on { color: var(--brand); }
.tab:active { transform: scale(0.94); }

/* ---------- 견적 위저드 ---------- */
.wizard-top {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line); padding-top: var(--sat);
}
.wizard-top-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 14px;
  display: flex; align-items: center; height: 54px; gap: 6px;
}
.wizard-top .back { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.wizard-top .back:active { background: var(--bg-soft); }
.wizard-top .ttl { font-size: 16px; font-weight: 700; letter-spacing: -0.4px; }
.progress { height: 3px; background: var(--line); }
.progress i { display: block; height: 100%; background: var(--brand); transition: width 0.3s ease; }

.wizard { max-width: var(--maxw); margin: 0 auto; padding: 24px 18px 40px; }
.wizard h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.4; }
.wizard .desc { font-size: 13.5px; color: var(--text-weak); margin-top: 6px; }

.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.opt-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.opt {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px 8px; text-align: center; min-height: 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--text-sub); letter-spacing: -0.3px;
  transition: border-color 0.12s, background 0.12s, transform 0.08s;
}
.opt .ico { font-size: 24px; line-height: 1; }
.opt:active { transform: scale(0.96); }
.opt.sel { border-color: var(--brand); background: var(--brand-light); color: var(--brand); font-weight: 700; }

/* 폼 */
.field { margin-top: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-sub); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; font-size: 16px; background: #fff; color: var(--text);
  outline: none; transition: border-color 0.15s; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field .hint { font-size: 12px; color: var(--text-weak); margin-top: 6px; }
.field.error input { border-color: #f04452; }
.field .err-msg { display: none; font-size: 12px; color: #f04452; margin-top: 6px; font-weight: 600; }
.field.error .err-msg { display: block; }

.agree-box {
  margin-top: 20px; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.agree-box .agree-row { display: flex; align-items: center; gap: 10px; }
.agree-box input[type="checkbox"] {
  width: 22px; height: 22px; min-height: 0; accent-color: var(--brand); flex: none;
}
.agree-box label { font-size: 13.5px; font-weight: 600; flex: 1; }
.agree-box .view { font-size: 12px; color: var(--text-weak); text-decoration: underline; flex: none; }
.agree-detail { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-weak); line-height: 1.7; }
.agree-detail.show { display: block; }

/* 요약 카드 */
.sum-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 18px; margin-top: 20px; }
.sum-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--bg-soft); font-size: 14px; }
.sum-row:last-child { border-bottom: 0; }
.sum-row span { color: var(--text-weak); }
.sum-row b { font-weight: 700; letter-spacing: -0.3px; text-align: right; }

/* 완료 화면 */
.done-wrap { text-align: center; padding: 56px 18px 30px; max-width: var(--maxw); margin: 0 auto; }
.done-wrap .done-ico {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 50%;
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
  font-size: 36px; animation: pop 0.4s ease;
}
@keyframes pop { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.done-wrap h2 { font-size: 21px; font-weight: 800; margin-top: 18px; letter-spacing: -0.5px; }
.done-wrap p { font-size: 14px; color: var(--text-sub); margin-top: 8px; }

/* 내 견적 */
.mybox-list { display: grid; gap: 10px; }
.mybox-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.mybox-card .mb-top { display: flex; justify-content: space-between; align-items: center; }
.mybox-card .mb-top b { font-size: 15px; letter-spacing: -0.3px; }
.mybox-card .mb-state { font-size: 11.5px; font-weight: 700; color: var(--warn); background: #fff3e4; border-radius: 999px; padding: 4px 10px; }
.mybox-card .mb-sub { font-size: 12.5px; color: var(--text-weak); margin-top: 6px; }
.empty { text-align: center; padding: 60px 0; color: var(--text-weak); font-size: 14px; }
.empty .ico { font-size: 40px; margin-bottom: 12px; }

/* 플로팅 CTA (홈) */
.float-cta {
  position: fixed; z-index: 90;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--sab) + 14px);
  width: min(calc(100% - 36px), calc(var(--maxw) - 36px));
  display: none;
}
.float-cta.show { display: block; animation: rise 0.3s ease; }
.float-cta .btn { box-shadow: 0 6px 18px rgba(43, 111, 243, 0.35); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 토스트 */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--sab) + 20px);
  background: rgba(25, 31, 40, 0.92); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 12px 20px; border-radius: 999px; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  max-width: calc(100% - 40px); text-align: center;
}
.toast.show { opacity: 1; }

/* ==========================================================
   제품 카탈로그 컴포넌트
   ========================================================== */

/* 제품 썸네일 (이미지 없을 때 브랜드 카드 대체) */
.p-thumb {
  position: relative; border-radius: 12px; overflow: hidden;
  background: linear-gradient(145deg, #f0f4fa, #dfe7f2);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1;
}
.p-thumb .ph-ico { font-size: 34px; opacity: 0.9; }
.p-thumb .ph-brand {
  position: absolute; left: 8px; top: 8px;
  font-size: 10px; font-weight: 800; color: var(--text-sub);
  background: rgba(255,255,255,0.85); border-radius: 6px; padding: 2px 6px;
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-badge {
  position: absolute; right: 8px; top: 8px;
  font-size: 10px; font-weight: 800; color: #fff;
  border-radius: 6px; padding: 3px 7px;
}
.p-badge.best { background: var(--brand); }
.p-badge.new { background: var(--accent); }

/* 가로 스크롤 제품 카드 (홈) */
.prod-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 14px;
  margin: 0 -18px; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.prod-scroll::-webkit-scrollbar { display: none; }
.prod-scroll .prod-card { flex: 0 0 152px; scroll-snap-align: start; }

/* 제품 카드 */
.prod-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; display: block; transition: transform 0.08s ease;
}
.prod-card:active { transform: scale(0.97); }
.prod-card .p-name { margin-top: 9px; font-size: 13px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.prod-card .p-brand { font-size: 11px; color: var(--text-weak); font-weight: 700; margin-top: 8px; }
.prod-card .p-price { margin-top: 4px; font-size: 15px; font-weight: 800; letter-spacing: -0.3px; }
.prod-card .p-price .pct { color: #f04452; margin-right: 4px; }
.prod-card .p-price .unit { font-size: 12px; font-weight: 600; color: var(--text-sub); }
.prod-card .p-was { font-size: 11px; color: var(--text-weak); text-decoration: line-through; }
.prod-card .p-benefit { margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-light); border-radius: 6px; padding: 3px 6px; display: inline-block; }
.prod-card .p-meta { margin-top: 6px; font-size: 11px; color: var(--text-weak); }
.prod-card .p-meta b { color: #ffb028; }

/* 카테고리 페이지: 2열 그리드 */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* 필터 바 */
.filter-bar {
  position: sticky; top: calc(54px + var(--sat)); z-index: 40;
  background: var(--bg-soft); padding: 10px 0 8px; margin: 0 -18px; padding-left: 18px; padding-right: 18px;
}
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font-size: 13px; font-weight: 600; color: var(--text-sub);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 14px; min-height: 36px;
}
.chip.on { color: #fff; background: var(--text); border-color: var(--text); }
.sort-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.sort-row .cnt { font-size: 12.5px; color: var(--text-weak); }
.sort-row .cnt b { color: var(--text); }
.sort-row select {
  border: 0; background: transparent; font-size: 13px; font-weight: 700; color: var(--text-sub);
  padding: 6px; -webkit-appearance: none; appearance: none; text-align: right;
}

/* 카테고리 헤더 (아이콘 탭) */
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 18px 4px; margin: 0 -18px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; color: var(--text-weak);
  padding: 8px 10px; border-radius: 12px; min-width: 64px;
}
.cat-tab .ci { font-size: 22px; }
.cat-tab.on { color: var(--brand); background: var(--brand-light); font-weight: 700; }

/* ---------- 제품 상세 ---------- */
.pd-hero { background: #fff; padding: 20px 18px 22px; }
.pd-hero-in { max-width: var(--maxw); margin: 0 auto; }
.pd-thumb { border-radius: var(--radius-lg); aspect-ratio: 1.6; }
.pd-thumb .ph-ico { font-size: 64px; }
.pd-brand { font-size: 13px; font-weight: 700; color: var(--text-weak); margin-top: 16px; }
.pd-name { font-size: 21px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.35; margin-top: 4px; }
.pd-model { font-size: 12.5px; color: var(--text-weak); margin-top: 4px; }
.pd-rating { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; }
.pd-rating .star { color: #ffb028; font-weight: 800; }
.pd-rating .rv { color: var(--text-weak); }
.pd-tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pd-tag { font-size: 11.5px; font-weight: 600; color: var(--brand); background: var(--brand-light); border-radius: 6px; padding: 4px 8px; }

.pd-price-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-top: 14px;
}
.pd-price-card .lbl { font-size: 12px; font-weight: 700; color: var(--text-weak); }
.pd-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.pd-price-row .pct { font-size: 20px; font-weight: 800; color: #f04452; }
.pd-price-row .prc { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.pd-price-row .unit { font-size: 14px; color: var(--text-sub); }
.pd-price-card .was { font-size: 12.5px; color: var(--text-weak); margin-top: 2px; }
.pd-price-card .benefit-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bg-soft);
  font-size: 13.5px;
}
.pd-price-card .benefit-row b { color: var(--accent); font-weight: 800; }
.pd-note { font-size: 11.5px; color: var(--text-weak); margin-top: 10px; line-height: 1.6; }

.pd-section { max-width: var(--maxw); margin: 0 auto; padding: 24px 18px 0; }
.pd-section h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 12px; }
.spec-table { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 18px; }
.spec-row { display: flex; padding: 13px 0; border-bottom: 1px solid var(--bg-soft); font-size: 13.5px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row span { flex: 0 0 96px; color: var(--text-weak); }
.spec-row b { font-weight: 600; }
.mgmt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mgmt-pill { font-size: 12.5px; font-weight: 700; color: var(--text-sub); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; }

/* 하단 고정 CTA (제품 상세) */
.pd-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 18px calc(10px + var(--sab));
}
.pd-cta-in { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 10px; }
.pd-cta .btn { flex: 1; }
.pd-cta .btn-like { flex: 0 0 52px; min-height: 52px; border-radius: var(--radius); border: 1.5px solid var(--line); font-size: 20px; display: flex; align-items: center; justify-content: center; }

/* ---------- 후기 페이지 ---------- */
.review-full { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.review-full .rf-top { display: flex; justify-content: space-between; align-items: center; }
.review-full .rf-cat { font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--brand-light); border-radius: 6px; padding: 3px 8px; }
.review-full .stars { color: #ffb028; font-size: 13px; letter-spacing: 2px; margin-top: 10px; }
.review-full p { font-size: 14px; color: var(--text-sub); margin-top: 8px; }
.review-full .who { margin-top: 10px; font-size: 12px; color: var(--text-weak); font-weight: 600; }
.rating-summary {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; display: flex; align-items: center; gap: 20px; margin-bottom: 14px;
}
.rating-summary .big { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.rating-summary .stars { color: #ffb028; font-size: 14px; letter-spacing: 2px; }
.rating-summary .sub { font-size: 12px; color: var(--text-weak); margin-top: 4px; }

/* ---------- 스토리 ---------- */
.story-card {
  display: flex; gap: 14px; align-items: center;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
}
.story-card .st-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.story-card b { font-size: 14.5px; letter-spacing: -0.4px; line-height: 1.4; display: block; }
.story-card span { font-size: 12px; color: var(--text-weak); margin-top: 3px; display: block; }
.article { max-width: var(--maxw); margin: 0 auto; padding: 26px 18px 40px; background: #fff; }
.article h1 { font-size: 23px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.4; }
.article .art-meta { font-size: 12.5px; color: var(--text-weak); margin: 10px 0 22px; }
.article h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; margin: 28px 0 10px; }
.article p { font-size: 15px; color: #333d4b; margin: 12px 0; line-height: 1.75; }
.article ul { padding-left: 20px; margin: 12px 0; }
.article li { font-size: 15px; color: #333d4b; margin: 6px 0; line-height: 1.7; }
.article .tip-box { background: var(--brand-light); border-radius: var(--radius); padding: 16px; font-size: 14px; color: var(--brand-dark); margin: 16px 0; line-height: 1.7; }
.article .tip-box b { font-weight: 800; }
.article table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.article th, .article td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; }
.article th { background: var(--bg-soft); font-weight: 700; }

/* ---------- 제품 상세: 갤러리 + 상세설명 ---------- */
.pd-gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.pd-gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background 0.2s, width 0.2s; }
.pd-gallery-dots i.on { background: var(--brand); width: 16px; border-radius: 3px; }

.pd-detail-imgs { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pd-detail-imgs img { width: 100%; display: block; }
.pd-detail-imgs.clamp { max-height: 900px; position: relative; }
.pd-detail-imgs.clamp::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(rgba(255,255,255,0), #fff);
}
.pd-detail-more {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 50px; margin-top: 10px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 14.5px; font-weight: 700; color: var(--text-sub);
}

/* 인기 카테고리 리스트 (홈) */
.popcat-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.popcat {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--bg-soft);
}
.popcat:last-child { border-bottom: 0; }
.popcat:active { background: var(--bg-soft); }
.popcat .pc-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.popcat .pc-main { flex: 1; }
.popcat .pc-main b { font-size: 14.5px; letter-spacing: -0.3px; }
.popcat .pc-main span { display: block; font-size: 12px; color: var(--text-weak); }
.popcat .pc-cnt { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.popcat .arr { color: var(--text-weak); }

/* 5탭 탭바 */
.tabbar-in.five { grid-template-columns: repeat(5, 1fr); }

/* 데스크톱 보정 */
@media (min-width: 700px) {
  .hero h1 { font-size: 32px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cat-item .nm { font-size: 13.5px; }
}

/* 접근성 · 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
