/* =============================================================
   MEDISO redesign v2 — concept-2 「서플라이 카탈로그」
   Tech-Data 밀도를 클리니컬 팔레트(navy+teal, base-v2.css)로.
   화이트 바탕 + navy 헤더 + teal 액티브 + 헤어라인 + 모노 라벨.
   색·컨테이너·버튼 등 프리미티브는 base-v2.css를 그대로 상속하고
   여기서는 레이아웃·밀도·컴포넌트·타이포(모노)·이미지 톤만 추가한다.
   ============================================================= */

:root {
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --section-catalog-pad: clamp(56px, 7vw, 72px);
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 카탈로그 데스크 밀도: 공용 .section보다 촘촘하게 */
.section-catalog { padding-block: var(--section-catalog-pad); }

/* ---------- 상단 유틸리티 바 ---------- */
.utility-bar {
  background: var(--ink-deep);
  color: var(--on-dark-soft);
}
.utility-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 34px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}
.utility-bar-label { color: var(--on-dark-soft); }
.utility-bar-phone {
  display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark);
  transition: color .15s ease;
}
.utility-bar-phone svg { width: 14px; height: 14px; }
.utility-bar-phone:hover { color: var(--accent); }

/* ---------- 모바일 내비 (헤더 공통 구조, 시안별 스타일) ---------- */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  padding: 10px var(--gutter) 18px;
}
.mobile-nav[data-open] { display: flex; }
.mobile-nav a {
  padding: 12px 4px; font-size: 15.5px; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--line-2);
}
.mobile-nav a:last-child { border-bottom: 0; margin-top: 8px; }
.mobile-nav .btn { justify-content: center; }

/* ---------- 콤팩트 히어로 ---------- */
.hero-compact { padding-top: clamp(36px, 5vw, 56px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.hero-copy .h1 { margin-top: 14px; }
.hero-copy .lead { margin-top: 16px; max-width: 46ch; }

.hero-quick-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 26px;
}

.hero-preview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.hero-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0; border-top: 1px solid var(--line);
}
.hero-stats > div {
  padding: 16px 14px; text-align: center;
  border-right: 1px solid var(--line);
}
.hero-stats > div:last-child { border-right: 0; }
.hero-stats dt {
  font-size: 12px; color: var(--soft); font-weight: 600; margin-bottom: 4px;
}
.hero-stats dd {
  margin: 0; font-size: 19px; font-weight: 800; color: var(--primary);
  letter-spacing: .01em;
}

/* ---------- 섹션 헤드 ---------- */
.section-head { max-width: 62ch; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head .h2 { margin-bottom: 12px; }
.section-head .body { margin-top: 4px; }

/* ---------- 탭 ---------- */
.tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px; margin-bottom: 20px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}

/* ---------- 카탈로그 테이블 ---------- */
.catalog-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}
.catalog-table {
  width: 100%; min-width: 660px;
  border-collapse: collapse;
  font-size: 15px;
}
.catalog-table thead th {
  text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--soft); text-transform: none;
  padding: 14px 18px; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.catalog-table tbody td {
  padding: 16px 18px; vertical-align: middle;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.catalog-table tbody tr:last-child td { border-bottom: 0; }
.catalog-table tbody tr { transition: background .15s ease; }
.catalog-table tbody tr:hover { background: var(--surface-2); }

.catalog-table tbody td:first-child {
  border-left: 3px solid transparent;
  padding-left: 15px;
  transition: border-color .15s ease;
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
}
.catalog-table tbody tr:hover td:first-child { border-left-color: var(--accent); }
.cat-icon {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: var(--r-tag); background: var(--accent-wash); color: var(--accent-strong);
  flex: 0 0 auto;
}
.cat-icon svg { width: 16px; height: 16px; }
.code {
  font-size: 13px; font-weight: 700; color: var(--soft);
  flex: 0 0 auto;
}
.cat-name {
  display: flex; flex-direction: column; font-weight: 700; color: var(--ink); font-size: 15px;
}
.cat-name small {
  font-family: var(--mono); font-weight: 600; font-size: 11.5px;
  color: var(--soft); letter-spacing: .02em; margin-top: 2px;
}

.col-inquiry { text-align: right; white-space: nowrap; }
.row-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700;
}
.row-link svg { width: 15px; height: 15px; }

.todo-note--sm { padding: 5px 11px; font-size: 12px; }

.table-footnote { margin-top: 14px; }

/* ---------- 규격·자료 밴드 ---------- */
.supply-grid {
  display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.supply-copy .body { margin-top: 12px; margin-bottom: 26px; max-width: 56ch; }

.supply-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.supply-checklist li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.supply-checklist li:first-child { padding-top: 0; }
.supply-checklist li:last-child { border-bottom: 0; }
.supply-checklist .code { font-size: 14px; font-weight: 800; color: var(--primary); flex: 0 0 26px; }
.supply-checklist li > div { flex: 1 1 auto; min-width: 0; }
.supply-checklist strong { display: block; font-size: 15.5px; color: var(--ink); font-weight: 700; }
.supply-checklist p { margin-top: 3px; }
.supply-checklist .todo-note--sm { flex: 0 0 auto; }

.supply-thumbs { display: flex; flex-direction: column; gap: 20px; }
.supply-thumbs figure {
  position: relative; margin: 0; border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow-1); aspect-ratio: 5 / 4;
}
.supply-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 유통 브랜드 ---------- */
.brands-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-top: 30px;
}
.brand-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 22px 10px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r-card);
  background: var(--surface-2);
}
.brand-tile .mono { font-size: 13px; font-weight: 700; color: var(--soft); }
.brand-tile .small { color: var(--soft); }

/* ---------- 납품 문의 ---------- */
.contact-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.contact-card .body { margin-top: 12px; margin-bottom: 26px; max-width: 46ch; }

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: var(--r-tag); background: var(--accent-wash); color: var(--accent-strong);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-list li > div { display: flex; flex-direction: column; gap: 3px; }
.contact-list li > div > .small { color: var(--soft); }
.contact-list a, .contact-list span:not(.small) { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.contact-list a:hover { color: var(--accent-strong); }

.form-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-panel); box-shadow: var(--shadow-1);
  padding: clamp(24px, 3vw, 34px);
}
.form-submit { width: 100%; margin-top: 4px; }
.form-card .hint { align-self: flex-start; }

/* =============================================================
   반응형 — 1440 / 768 / 375 가로 오버플로 0
   ============================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .supply-grid { grid-template-columns: 1fr; }
  .supply-thumbs { flex-direction: row; }
  .supply-thumbs figure { flex: 1 1 0; aspect-ratio: 1 / 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .utility-bar-label { display: none; }
  .catalog-table { min-width: 600px; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .supply-thumbs { flex-direction: column; }
  .supply-thumbs figure { aspect-ratio: 5 / 4; }
}

@media (max-width: 480px) {
  .hero-quick-filters { gap: 6px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-table { min-width: 540px; }
  .catalog-table thead th,
  .catalog-table tbody td { padding: 12px 12px; }
}
