/* Classic Shop 0.5. 색은 settings.json → layouts/base.html 의 CSS 변수로 들어온다. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: #667085; }
.link { color: var(--primary); font-weight: 700; }
.preview-ribbon { background: #ffd400; color: #3c3200; font-size: 13px; font-weight: 700; text-align: center; padding: 4px; }
.demo-ribbon { background: #fff4d6; color: #6b4e00; border-bottom: 1px solid #f3dd9b; font-size: 13px; text-align: center; padding: 7px 14px; }
.notice { background: var(--primary); color: #fff; font-size: 13px; text-align: center; padding: 7px 12px; }

/* 머리 */
.header { border-bottom: 1px solid #eaecf0; background: rgb(255 255 255 / 96%); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 21px; color: var(--primary); letter-spacing: -0.03em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; }
.gnb { display: flex; gap: 22px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.gnb a { font-weight: 600; font-size: 15px; white-space: nowrap; color: #344054; padding: 6px 0; }
.gnb a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.hlink { font-size: 14px; font-weight: 600; color: #475467; white-space: nowrap; }
.hlink:hover { color: var(--accent); }
.mnav { display: none; margin-left: auto; }
.mnav summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 10px; display: grid; place-content: center; gap: 5px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
.mnav-panel { position: absolute; left: 0; right: 0; top: 70px; background: #fff; border-bottom: 1px solid #eaecf0; box-shadow: 0 16px 32px rgb(16 24 40 / 10%); padding: 16px 20px 22px; display: grid; gap: 16px; }
.mnav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.mnav-links a { padding: 9px 0; font-weight: 600; border-bottom: 1px solid #f2f4f7; }
.mnav-links.small a { font-weight: 500; color: #475467; font-size: 14px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border-radius: 11px; background: var(--primary); color: #fff; font-weight: 700; border: 0; cursor: pointer; transition: filter .15s, transform .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 9px; }
.btn-block { display: flex; width: 100%; }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 60%); }
.btn-kakao { background: #fee500; color: #191600; }

/* 메인 배너 */
.hero { padding: 26px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.65fr 1fr; grid-auto-rows: minmax(0, auto); gap: 16px; }
.hero-card { position: relative; overflow: hidden; border-radius: 22px; padding: 30px; background: var(--surface); display: flex; align-items: flex-end; min-height: 200px; }
.hero-card.main { grid-row: span 2; min-height: 420px; padding: 44px; background: var(--primary); color: #fff; align-items: center; }
.hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 62%; }
.hero-card.main .hero-text { max-width: 54%; }
.hero-card h2 { white-space: pre-line; margin: 0; font-size: clamp(19px, 2vw, 23px); letter-spacing: -0.02em; line-height: 1.35; }
.hero-card.main h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; }
.hero-card p { margin: 0 0 10px; opacity: .82; font-size: 15px; }
.hero-card.main p { font-size: 17px; }
.hero-card .btn { height: 40px; font-size: 14px; }
.hero-card.main .btn { background: #fff; color: var(--primary); height: 48px; font-size: 16px; }
.hero-art { position: absolute; right: -6px; bottom: -6px; width: 44%; max-width: 230px; pointer-events: none; }
.hero-card.main .hero-art { right: 3%; bottom: auto; top: 50%; transform: translateY(-50%); width: 42%; max-width: 420px; }
.eyebrow { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--accent); color: #fff; letter-spacing: .02em; }

/* 분류 바로가기 */
.quick { padding: 22px 0 6px; }
.quick-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 76px; font-size: 14px; font-weight: 600; color: #344054; }
.quick-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--surface); display: grid; place-items: center; transition: transform .15s; }
.quick-icon img { width: 44px; height: 44px; }
.quick-item:hover .quick-icon { transform: translateY(-3px); }

/* 구역 */
.section { padding: 52px 0; }
.section.soft { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 25px; letter-spacing: -0.02em; }
.more { font-weight: 700; color: var(--primary); font-size: 15px; white-space: nowrap; }
.page-head { padding-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { padding: 7px 14px; border-radius: 99px; background: var(--surface); font-weight: 600; font-size: 14px; }
.chips a small { color: #98a2b3; margin-left: 2px; }
.chips a:hover { background: var(--primary); color: #fff; }
.chips a:hover small { color: rgb(255 255 255 / 70%); }
.group { padding: 30px 0; }
.group + .group { border-top: 1px solid #f2f4f7; }

/* 상품 카드 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { border: 1px solid #eaecf0; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: box-shadow .15s, transform .15s, border-color .15s; }
.cat:hover { box-shadow: 0 12px 28px rgb(16 24 40 / 9%); transform: translateY(-3px); border-color: transparent; }
.cat-img { background: var(--surface); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.cat-img img { width: 46%; height: auto; }
.cat-img.photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.cat-body b { font-size: 16px; letter-spacing: -0.01em; }
.cat-body small { color: #667085; font-size: 13.5px; line-height: 1.5; }
.from { margin-top: auto; padding-top: 10px; font-weight: 800; font-size: 17px; color: var(--primary); }
.from em { font-style: normal; font-weight: 600; font-size: 13px; color: #667085; margin-left: 1px; }
.from em.qty { margin: 0 2px 0 0; padding: 1px 7px; border-radius: 6px; background: var(--surface); font-size: 12.5px; vertical-align: 2px; }
.price-note { margin: 16px 0 0; font-size: 13px; color: #98a2b3; }

/* 장점 · 과정 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: #fff; border-radius: 16px; padding: 24px; }
.feature-no { display: block; font-weight: 800; color: var(--accent); font-size: 14px; margin-bottom: 10px; }
.feature b { font-size: 17px; }
.feature p { margin: 6px 0 0; color: #667085; font-size: 14.5px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { position: relative; border: 1px solid #eaecf0; border-radius: 16px; padding: 22px 20px; }
.steps li:not(:last-child)::after { content: "›"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: #d0d5dd; font-size: 22px; font-weight: 700; }
.step-no { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.steps b { font-size: 16px; }
.steps p { margin: 6px 0 0; color: #667085; font-size: 14px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide { background: #fff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.guide p { margin: 0; color: #667085; font-size: 14.5px; flex: 1; }
.guide .more { font-size: 14px; margin-top: 6px; }
a.guide:hover { box-shadow: 0 10px 24px rgb(16 24 40 / 8%); }

.faq details { border-bottom: 1px solid #eaecf0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: #98a2b3; }
.faq details[open] summary::after { content: "−"; }
.faq-a { color: #475467; padding: 0 0 18px; font-size: 15px; }
.faq-a p { margin: 0 0 8px; }

.cta-band { background: var(--primary); color: #fff; padding: 34px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-row b { font-size: 20px; }
.cta-row p { margin: 4px 0 0; opacity: .8; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 안내 페이지 글 */
.page-title { margin-bottom: 24px; }
.doc { max-width: 780px; color: #344054; font-size: 15.5px; line-height: 1.8; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; color: var(--text); letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; color: var(--text); }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 3px 0; }

.estimate-placeholder { margin-top: 24px; border: 2px dashed #d0d5dd; border-radius: 16px; padding: 32px; text-align: center; background: var(--surface); }

/* 바닥 */
.footer { border-top: 1px solid #eaecf0; padding: 0 0 34px; font-size: 14px; color: #475467; background: #fcfcfd; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 18px 0; border-bottom: 1px solid #eaecf0; margin-bottom: 26px; }
.footer-links a { font-weight: 600; color: #344054; }
.footer-links a.strong { color: var(--primary); font-weight: 800; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-brand { font-size: 16px; color: var(--text); }
.footer p { margin: 6px 0 0; }
.footer .phone { font-size: 22px; font-weight: 800; color: var(--primary); }
.powered { margin-top: 26px; font-size: 12px; color: #98a2b3; }

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 860px) {
  .gnb, .header-actions { display: none; }
  .mnav { display: block; }
  .header-row { height: 62px; }
  .mnav-panel { top: 62px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card.main { grid-row: auto; min-height: 340px; padding: 30px 26px; align-items: flex-start; }
  .hero-card.main .hero-text { max-width: 100%; }
  .hero-card.main .hero-art { top: auto; bottom: -10px; right: -10px; transform: none; width: 52%; opacity: .95; }
  .hero-card.main .hero-text { padding-bottom: 120px; }
  .quick-row { justify-content: flex-start; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-body { padding: 12px 13px 14px; }
  .cat-body small { display: none; }
  .from { font-size: 16px; white-space: nowrap; }
  .from em.qty { display: block; width: fit-content; margin: 0 0 4px; vertical-align: 0; }
  .guide-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
