/* 2026-09-12 확정 화면. 모바일 한 열 프로필 + 원형 제품 사진 격자. */
:root {
  --bg: #f4f4f6;
  --card: #ffffff;
  --ink: #1a1a1c;
  --muted: #6b6d75;
  --line: #e4e4e8;
  --accent: #17603f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  word-break: keep-all;
}

[hidden] { display: none !important; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
}

.banner {
  background: #1b1b1f;
  color: #fff;
  text-align: center;
  padding: 22px 18px 16px;
}

h1 {
  margin: 0;
  font-size: 20px;
}

.disclosure {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #c8c8cc;
}

main {
  max-width: 420px;
  margin: 0 auto;
  padding: 16px 18px 0;
}

.howto {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.finder { margin: 0 0 8px; }

#q {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

#q:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.result-count {
  margin: 10px 0 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  min-height: 1.2em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.card { min-width: 0; }

.buy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.thumb-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: #ececec;
  display: grid;
  place-items: center;
}

.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-fallback {
  padding: 8px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.product-name {
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.empty {
  margin: 18px 0 32px;
  padding: 14px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.empty .more, .back {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --card: #22242a;
    --ink: #ececef;
    --muted: #a3a5ad;
    --line: #33363c;
  }
  .banner { background: #0f1013; }
  .disclosure { color: #a3a5ad; }
  .thumb-wrap { background: #2a2d33; }
}
