/* == MITO 세라믹쇼핑몰 공용 스타일 v1.0 (2026-08-26) ==
   landing/index.html 인라인 CSS(화이트 갤러리 확정 컨셉)를 추출한 세라믹 사이트 전용 시트.
   서브페이지(products·product·inquiry) 공용 규칙을 뒤에 확장.
   원칙: 일반쇼핑몰(shop/) 파일을 참조하지 않는다 — 필요한 규칙은 여기에 복사·이식.
   토큰 원본: design-system/tokens.css v0.1.1 (수동 동기화) */

:root {
  --paper: #FFFFFF;
  --surface: #F5F5F5;
  --ink: #1A1A1A;
  --muted: #666666;
  --line: #E0E0E0;
  --line-strong: #8A8A8A;
  --inverse-bg: #1A1A1A;
  --inverse-text: #FFFFFF;
  --scrim: rgba(26, 26, 26, 0.55);
  --inverse-muted: rgba(255, 255, 255, 0.72); /* on ink 9.5:1 */
  --error: #B3261E; /* 폼 오류 전용 예외 (design-system 2절) */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --gutter: 28px;
  --page-margin: 60px;
  --container: 1360px;
  --measure: 720px;
  --measure-narrow: 480px;
  --section: 96px;
  --duration: 300ms;
  --ease: ease;
}

/* == Base == */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--page-margin);
}
.section { padding-block: var(--section); }
.measure { max-width: var(--measure); }
.measure-narrow { max-width: var(--measure-narrow); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.25; }
.display {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
h2 { font-size: 36px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
.small { font-size: 15px; }
.caption { font-size: 13px; line-height: 1.5; letter-spacing: 0; color: var(--muted); }
.muted { color: var(--muted); }
.spec {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* 섹션 진입부 공통: 모노 킥커 + 헤드라인 */
.kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 24px;
}

/* == Buttons == */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding-inline: 28px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: opacity var(--duration) var(--ease);
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-on-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-ghost-on-dark { background: transparent; color: var(--inverse-text); border-color: var(--inverse-text); }
/* 준비 중(disabled) 상태: AA 충족 조합 (muted on surface = 5.27:1) */
.btn[disabled] {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line-strong);
  cursor: default;
}
.btn[disabled]:hover { opacity: 1; }
.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity var(--duration) var(--ease);
}
.text-link:hover { opacity: 0.85; }
.text-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: opacity var(--duration) var(--ease);
}
.text-btn:hover { opacity: 0.85; }
.text-btn[disabled] { color: var(--muted); cursor: default; }
.text-btn[disabled]:hover { opacity: 1; }
a.text-btn { display: inline-block; }
.on-dark .text-btn { color: var(--inverse-muted); }

/* == Header == */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand-group { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
/* 투트랙 스위처: 일반쇼핑몰 | 세라믹쇼핑몰 — 로고 옆 밀착 */
.track-nav { display: flex; align-items: center; gap: 12px; }
.track-nav a {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}
.track-nav a:hover { color: var(--ink); }
.track-nav [aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 15px;
  text-decoration: none;
  transition: opacity var(--duration) var(--ease);
}
.nav a:hover { opacity: 0.7; }
.nav [aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
/* 헤더 CTA: 컴팩트 변형 44px (design-system 7절 기록) */
.nav .btn { height: 44px; padding-inline: 20px; font-size: 15px; }

/* == Hero == */
.hero { padding-block: var(--section) 64px; }
.hero .display { max-width: 900px; margin-bottom: 32px; }
.hero .lede { max-width: var(--measure); font-size: 20px; color: var(--ink); margin-bottom: 48px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta-row .text-link { margin-left: 12px; font-size: 15px; }
.hero-specline {
  list-style: none;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
}
.hero-specline .spec { color: var(--muted); }

/* == 재질 자리 비주얼 (실사 수령 전 — 트라버틴 톤 추상 결, 색은 슬랩 영역에서만) == */
.ph-img {
  position: relative;
  border: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(180deg,
      #ECE2CF 0px, #E6DAC2 22px, #DDCDAF 30px, #E9DECA 54px,
      #D9C7A7 68px, #F0E8D8 84px, #E4D7BE 108px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ph-img .caption { display: none; }
.ph-img .ph-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 3px 8px;
}
.ph-note {
  border: 1px solid var(--line);
  padding: 48px 32px;
  text-align: center;
  color: var(--muted);
}
.ph-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.hero-media { aspect-ratio: 21 / 9; margin-top: 64px; }

/* == Problem (좁은 에디토리얼 컬럼) == */
.problem .measure-narrow p + p { margin-top: 24px; }
.problem h2 { margin-bottom: 32px; }

/* == Features == */
.features { background: var(--surface); }
.features h2 { margin-bottom: 64px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}
.feature .spec { color: var(--muted); display: block; margin-bottom: 16px; }
.feature h3 { margin-bottom: 12px; }
.feature p { font-size: 15px; color: var(--muted); }

/* == Pull quote (H2 스케일 준수) == */
.pullquote { text-align: center; }
.pullquote blockquote {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 auto;
}
.pullquote .caption { margin-top: 24px; }

/* == Products == */
.products h2 { margin-bottom: 16px; }
.products .section-lede { color: var(--muted); margin-bottom: 64px; max-width: var(--measure); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px var(--gutter);
}
.product-card { text-decoration: none; display: block; }
.product-card .ph-img { aspect-ratio: 4 / 3; margin-bottom: 24px; transition: opacity var(--duration) var(--ease); }
.product-card:hover .ph-img { opacity: 0.85; }
.product-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.product-card h3 { margin: 0; }
.badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400; /* h2/h3 내부에서 굵기 상속 방지 — 위치와 무관하게 동일 렌더 */
  border: 1px solid var(--ink);
  padding: 3px 8px;
  letter-spacing: 0.04em;
}
.product-card .desc { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.product-card .caption { display: block; margin-bottom: 16px; }
.product-card .go { font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.products .view-all { margin-top: 64px; text-align: center; }

/* == Process == */
.process { background: var(--surface); }
.process h2 { margin-bottom: 64px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}
.step { border-top: 1px solid var(--ink); padding-top: 20px; }
.step .spec { display: block; color: var(--muted); margin-bottom: 12px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }
.process .caption { margin-top: 48px; }

/* == Proof / FAQ (자료 수령 전 빈 상태) == */
.pending-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}
.pending-grid h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* == Final CTA == */
.final-cta {
  background: var(--inverse-bg);
  color: var(--inverse-text);
}
.final-cta h2 { margin-bottom: 20px; }
.final-cta p { color: rgba(255, 255, 255, 0.72); max-width: var(--measure); margin-bottom: 48px; }
.final-cta .aux { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; }

/* == Footer == */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px; }
/* 서브페이지는 본문과 푸터 사이 여백 필요 (홈은 final-cta가 여백을 만들므로 불필요) */
.site-footer.has-gap { margin-top: var(--section); }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: baseline;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-nav a {
  font-size: 15px;
  text-decoration: none;
  transition: opacity var(--duration) var(--ease);
}
.footer-nav a:hover { opacity: 0.7; }

/* ============================================================
   == 서브페이지 공용 (products · product · inquiry) v1.0 ==
   shop/styles.css의 검수된 규칙을 화이트 갤러리 토큰으로 이식 (참조 아님 — 복사)
   ============================================================ */

.notice-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.notice-bar .container { padding-block: 10px; }

.page-head { padding-block: 48px 0; }
.page-title { font-size: 36px; font-weight: 700; }
.page-head .page-title { margin-bottom: 8px; }
.page-head .kicker { margin-bottom: 16px; }
.section-title { font-size: 24px; font-weight: 600; }

/* == Breadcrumb == */
.breadcrumb { padding-block: 20px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb [aria-current] { color: var(--ink); }

/* == 폼 컨트롤 == */
label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 8px; }
input[type="text"], input[type="search"], input[type="number"], input[type="file"], select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
}
input[type="text"], input[type="search"], input[type="number"], select { height: 48px; padding-inline: 14px; }
input[type="file"] { padding: 12px 14px; }
input::placeholder { color: var(--muted); }
select:disabled, input:disabled { background: var(--surface); color: var(--muted); }
input[type="radio"], input[type="checkbox"] {
  height: auto;
  width: auto;
  accent-color: var(--ink);
}
textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  resize: vertical;
}
textarea:disabled { background: var(--surface); color: var(--muted); }

/* == 문의·견적 요청 폼 == */
.req-form { margin-top: 24px; }
.req-form .field { margin-bottom: 16px; }
.req-form fieldset { border: 0; margin-bottom: 20px; }
.req-form legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 0;
  cursor: pointer;
}
.consent-row { display: flex; align-items: flex-start; gap: 8px; }
.consent-row label { font-weight: 400; font-size: 13px; color: var(--muted); margin-bottom: 0; cursor: pointer; }
.field-error { color: var(--error); font-size: 13px; margin-top: 6px; }
input.has-error, textarea.has-error { border-color: var(--error); }
.file-hint { display: block; margin-top: 6px; }
.request-done { border: 1px solid var(--ink); padding: 24px; margin-top: 24px; }
.request-done h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.request-done .spec { display: block; margin-block: 8px 12px; color: var(--muted); }
.cta-stack { display: flex; flex-direction: column; gap: 12px; }
.cta-stack .text-btn { align-self: flex-start; font-size: 15px; margin-top: 8px; }

/* 문의 페이지 레이아웃: 본문 폼 + 우측 안내 */
.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 640px) 360px;
  gap: 64px;
  align-items: start;
  padding-block: 24px 0;
}
.inquiry-side { border-top: 1px solid var(--ink); padding-top: 24px; }
.inquiry-side h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.inquiry-side p { font-size: 15px; color: var(--muted); margin-bottom: 12px; }

/* == 빈 상태 == */
.empty-state {
  border: 1px solid var(--line);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state .title { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

/* == 제품 상세 == */
.detail-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  padding-block: 40px 0;
}
.gallery-main.ph-img { aspect-ratio: 4 / 3; margin-bottom: 16px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; }
.thumbs .ph-img { aspect-ratio: 1 / 1; padding: 8px; }
.detail-info .cat { margin-bottom: 8px; }
.detail-info .page-title { margin-bottom: 12px; }
.detail-info .desc { color: var(--muted); margin-bottom: 20px; }
.detail-info .status-row { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.detail-info .note { margin-top: 24px; }
.detail-section { padding-top: var(--section); }
.detail-section .section-title { margin-bottom: 32px; }
.spec-table { width: 100%; border-collapse: collapse; max-width: 720px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th { font-size: 14px; font-weight: 600; width: 180px; color: var(--muted); }
.spec-table td { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0; }
.related-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.related-grid .product-card .ph-img { aspect-ratio: 1 / 1; margin-bottom: 16px; }
.related-grid .product-card h3 { font-size: 18px; }

/* 모션 최소화: 스크롤 등장 효과는 사용하지 않는다 (콘텐츠 항상 표시) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .text-link, .text-btn, .nav a, .footer-nav a, .product-card .ph-img { transition: none; }
}

/* == Responsive (검수 기준 360px) == */
@media (max-width: 1024px) {
  .feature-grid, .process-grid { grid-template-columns: repeat(2, 1fr); gap: 48px var(--gutter); }
  .detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .inquiry-layout { grid-template-columns: 1fr; gap: 48px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 40px var(--gutter); }
}
@media (max-width: 768px) {
  :root { --page-margin: 20px; --gutter: 16px; --section: 64px; }
  html { scroll-padding-top: 76px; }
  body { font-size: 16px; }
  .display { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .spec { font-size: 13px; }
  .hero .lede { font-size: 17px; }
  .pullquote blockquote { font-size: 28px; }
  .pending-grid h2 { font-size: 20px; }
  .page-title { font-size: 28px; }
  .section-title { font-size: 20px; }
  .page-head { padding-block: 32px 0; }
  /* 모바일: 헤더 2줄 — 1줄 로고+트랙 스위처, 2줄 메뉴 */
  .site-header .container { height: auto; flex-wrap: wrap; padding-block: 10px; row-gap: 8px; }
  .brand-group { width: 100%; justify-content: flex-start; gap: 12px; }
  .brand { font-size: 19px; }
  .nav { width: 100%; justify-content: flex-end; gap: 14px; }
  .nav a { font-size: 14px; } /* 2줄 헤더로 공간 확보 — 메뉴 전체 표시 */
  .feature-grid, .process-grid, .product-grid, .pending-grid, .related-grid { grid-template-columns: 1fr; }
  .product-grid { gap: 48px; }
  .hero-media { aspect-ratio: 4 / 3; margin-top: 48px; }
  .btn { height: 48px; }
  .cta-row .btn { width: 100%; }
  .nav .btn { height: 44px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .text-link { margin-left: 0; text-align: center; }
  .cta-stack .btn { width: 100%; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .thumbs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
