:root {
  --canvas: #ffffff;
  --surface: #f8f8f8;
  --surface-alt: #fafafa;
  --ink: #222222;
  --header: #191919;
  --muted: #5c5c5c;
  --faint: #999999;
  --hairline: #e7e7e7;
  --rule: #dadada;
  --on-primary: #ffffff;
  --accent: #05b2f5;
  --kakao: #00d255;
  --danger: #fe5356;
  --font: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --header-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
button { font-family: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; margin: 0; color: var(--ink); }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header);
  color: var(--on-primary);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
}
.logo img { width: 28px; height: 28px; object-fit: cover; }
.logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.logo-en {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #bbb;
}
.gnb { display: flex; align-items: center; gap: 0; }
.gnb a {
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 14px;
  font-size: 14px;
  color: #fff;
}
.gnb a:hover,
.gnb a.is-on { color: #fff; }
.gnb a.is-on { border-bottom: 2px solid #fff; }
.gnb-cta {
  margin-left: 8px;
  height: 32px !important;
  padding: 0 12px !important;
  border: 1px solid #fff;
}
.gnb-cta.is-on { background: #fff; color: var(--header) !important; border-bottom: 1px solid #fff; }
.btn-menu {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--header);
  color: #bbb;
  font-size: 13px;
  padding: 40px 0 24px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #333;
}
.footer-brand { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand span { font-weight: 400; font-size: 12px; letter-spacing: 0.1em; color: #999; margin-left: 6px; }
.site-footer p + p { margin-top: 4px; }
.site-footer a { color: #ddd; }
.site-footer a:hover { color: #fff; }
.footer-copy { padding-top: 16px; color: #777; font-size: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #000; color: #fff; }
.btn-kakao { background: var(--kakao); border-color: var(--kakao); color: #fff; }
.btn-kakao:hover { background: #00b84a; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Hero */
.hero {
  position: relative;
  min-height: 360px;
  background: var(--header) url("../images/hero.jpg") center / cover no-repeat;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.12) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}
.hero-kicker { font-size: 12px; letter-spacing: 0.14em; color: #ccc; margin-bottom: 10px; }
.hero h1 { color: #fff; font-size: 26px; font-weight: 700; }
.hero p { margin-top: 10px; color: #e6e6e6; max-width: 460px; font-size: 14px; }
.hero .btn { border-color: #fff; color: #fff; }
.hero .btn:hover { background: #fff; color: var(--ink); }
.hero .btn-solid { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn-solid:hover { background: transparent; color: #fff; }

/* Sections */
.section { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head p { font-size: 13px; color: var(--muted); }
.section.surface { background: var(--surface); }

/* Category 4 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
}
.cat-cell {
  padding: 28px 20px;
  border-right: 1px solid var(--hairline);
  background: #fff;
}
.cat-cell:last-child { border-right: 0; }
.cat-cell:hover { background: var(--surface); }
.cat-en { display: block; font-size: 11px; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 6px; }
.cat-cell strong { display: block; font-size: 18px; }
.cat-cell span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card { background: #fff; }
.card-media {
  position: relative;
  display: block;
  background: var(--surface);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 0 4px; }
.card-cat { font-size: 12px; color: var(--faint); }
.card-name { font-size: 14px; font-weight: 500; margin-top: 4px; }
.card-name a:hover { text-decoration: underline; }
.card-price { font-size: 15px; font-weight: 700; margin-top: 8px; }

.grade {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 0 0 3px 0;
  background: var(--ink);
  color: #fff;
}
.grade-S { background: var(--ink); }
.grade-A { background: #fff; color: var(--ink); border: 1px solid var(--ink); border-top: 0; border-left: 0; }
.grade-B { background: #fff; color: var(--muted); border: 1px solid var(--rule); border-top: 0; border-left: 0; }

/* Inspect 3 */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline);
}
.step {
  padding: 28px 24px;
  border-right: 1px solid var(--hairline);
  background: #fff;
}
.step:last-child { border-right: 0; }
.step-num { font-size: 12px; letter-spacing: 0.1em; color: var(--faint); }
.step h3 { margin: 8px 0; }
.step p { font-size: 14px; color: var(--muted); }

/* Notice */
.notice-list { list-style: none; border-top: 1px solid var(--hairline); }
.notice-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.notice-list time { color: var(--faint); font-size: 13px; }

/* CS band */
.cs-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border: 1px solid var(--hairline);
}
.cs-band > div { padding: 28px 24px; }
.cs-band .tel { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0; }
.cs-band .tel a:hover { text-decoration: underline; }
.cs-side { background: var(--surface); border-left: 1px solid var(--hairline); }

/* Page title */
.page-head {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--hairline);
}
.page-head h1 { font-size: 22px; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* Filter */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 24px 0;
  border: 1px solid var(--hairline);
}
.filter-row a {
  padding: 10px 18px;
  font-size: 14px;
  border-right: 1px solid var(--hairline);
  color: var(--muted);
}
.filter-row a:last-child { border-right: 0; }
.filter-row a.is-on { background: var(--ink); color: #fff; }

/* Product detail */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 32px 0 16px;
}
.pdp-photo { background: var(--surface); border: 1px solid var(--hairline); }
.pdp-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pdp-meta .crumb { font-size: 13px; color: var(--faint); }
.pdp-meta h1 { margin: 10px 0 8px; font-size: 22px; }
.pdp-price { font-size: 22px; font-weight: 700; margin: 12px 0; }
.pdp-sum { color: var(--muted); font-size: 14px; }
.spec {
  width: 100%;
  margin-top: 20px;
  font-size: 14px;
}
.spec th, .spec td {
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}
.spec th { width: 120px; background: var(--surface); color: var(--muted); font-weight: 400; }

/* Guide / CS tables */
.prose { padding: 32px 0; }
.prose h2 { margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 8px 0; color: var(--ink); }
.prose ul { margin: 8px 0 8px 18px; }
.prose li { margin: 4px 0; }
.data {
  margin: 16px 0 8px;
  font-size: 14px;
}
.data th, .data td {
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}
.data thead th { background: var(--ink); color: #fff; font-weight: 500; }
.data tbody th { width: 120px; background: var(--surface); color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  padding: 14px 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--faint); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--muted); font-size: 14px; }

/* Map / address */
.addr-box {
  border: 1px solid var(--hairline);
  padding: 24px;
  background: var(--surface);
}
.addr-box strong { display: block; margin-bottom: 8px; }

.empty { padding: 48px 0; color: var(--muted); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cat-grid, .step-grid, .cs-band, .pdp, .footer-grid { grid-template-columns: 1fr; }
  .cat-cell, .step { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .cat-cell:last-child, .step:last-child { border-bottom: 0; }
  .cs-side { border-left: 0; border-top: 1px solid var(--hairline); }
  .btn-menu { display: inline-flex; align-items: center; }
  .gnb {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--header);
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid #333;
  }
  .gnb.is-open { display: flex; }
  .gnb a { height: 44px; border-bottom: 1px solid #2a2a2a; }
  .gnb-cta { margin: 8px 12px 12px; justify-content: center; }
  .site-header { position: sticky; }
  .notice-list li { grid-template-columns: 80px 1fr; }
}
