/* 감성오브제 스토어 — 모바일(360~430px) 우선, 데스크톱은 넓혀주기만 한다.
   색·글꼴·간격·모서리는 tokens.css 의 값만 쓴다. 여기서는 배치와 상태만 정한다.
   CSP 가 인라인 style 을 막으므로 화면에 필요한 모양은 전부 이 파일에 둔다.

   모서리 규칙: 누르는 것(버튼·칩·검색창·번호 알약)은 --r-pill,
   상품 이미지는 --r-md, 크게 보이는 면(추천 카드·시트·찾은 상품)은 --r-lg. */

:root {
  --header-h: 56px;
  /* 스크롤 영역(칩·추천 카드)을 화면 끝까지 펼치되, 첫 칸은 본문 여백에 맞춘다 */
  --rail-pad: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  --shimmer: rgba(255, 255, 255, 0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* display 를 지정한 요소에서도 hidden 속성이 이기도록 */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  /* dvh 를 모르는 오래된 인앱 브라우저용 100vh 폴백 (RESEARCH-DELTA §4) */
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.55;
  letter-spacing: -0.01em;
  /* 한글은 어절 단위로 줄바꿈해야 단어가 쪼개지지 않는다 */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }

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

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 60;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--surface);
  font-size: var(--fs-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ── 고지 띠 · 공지 띠 ───────────────────────────────────────── */

/* SPEC §5 + RESEARCH-DELTA §1: 페이지 맨 첫 부분, 스크롤 없이 보이고, 본문과 다른 글자색으로 또렷하게.
   "작고 흐린 회색 띠" 는 쿠팡 가이드상 위반 소지라 쓰지 않는다.
   크림 글자 on --accent(로고 브라운) = 약 10:1 */
.disclosure {
  padding: calc(var(--sp-2) + var(--safe-top)) var(--gutter) var(--sp-2);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

/* 상품 링크 바로 위의 짧은 광고 표시 (RESEARCH-DELTA §1). 본문(--ink)과 다른 색, 굵게.
   --accent on --bg = 약 10:1 */
.ad-label {
  margin-bottom: var(--sp-3);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.45;
}

.notice {
  background: var(--accent-soft);
  color: var(--accent);
}
.notice-text {
  padding-block: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}

/* ── 헤더 ───────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

/* 로고 마크 + 한글 이름 + 로고 아래 'od.obje' 처럼 자간을 벌린 영문 */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* 마크 높이 24px + 위아래 10px = 누르는 영역 44px */
  padding-block: 10px;
  min-width: 0;
}
.wordmark-mark {
  width: auto;
  height: 24px;
  flex: none;
}
.wordmark-ko {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}
.wordmark-en {
  color: var(--ink-mute);
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  white-space: nowrap;
}
/* 아주 좁은 화면(320px)에서는 영문을 접어 인스타 버튼 자리를 지킨다 */
@media (max-width: 340px) {
  .wordmark-en { display: none; }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  transition: background-color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--bg-deep); }
.header-ig { margin-right: -10px; }

/* ── 브랜드 소개 ─────────────────────────────────────────────── */

/* 링크 모음 페이지처럼 가운데 쌓지 않고, 잡지 표지처럼 왼쪽 정렬로 묶는다 */
.intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--sp-4);
  row-gap: var(--sp-4);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-6);
}

/* 프로필 원 = 로고를 뒤집은 모양(브라운 바탕 + 크림 마크). 바깥 고리는 인스타 프로필 사진의 느낌 */
.intro-mark {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-strong);
}

.intro-name {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.intro-handle {
  margin-top: 2px;
  color: var(--ink-mute);
  font-size: var(--fs-sm);
}

.intro-copy { grid-column: 1 / -1; }
.intro-tagline {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.intro-text {
  margin-top: var(--sp-1);
  color: var(--ink-soft);
  font-size: 0.875rem;
  max-width: 46ch;
}

.intro-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

@media (min-width: 768px) {
  .intro {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: var(--sp-6);
    row-gap: var(--sp-2);
    padding-top: var(--sp-14);
    padding-bottom: var(--sp-8);
  }
  .intro-mark {
    grid-row: 1 / span 2;
    width: 104px;
    height: 104px;
  }
  .intro-id { align-self: end; display: flex; align-items: baseline; gap: var(--sp-3); }
  .intro-name { font-size: 2.125rem; }
  .intro-copy { grid-column: 2; align-self: start; }
  .intro-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    display: flex;
  }
}

/* ── 버튼 ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 var(--sp-5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-mute); }

/* ── 검색 ───────────────────────────────────────────────────── */

.search { padding-bottom: var(--sp-8); }

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 720px;
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* 입력칸 자체의 외곽선 대신 바깥 상자 전체에 초점 표시를 그린다 — 번지는 링 대신 선을 한 겹 더 */
.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.search-icon {
  position: absolute;
  left: 18px;
  color: var(--ink-soft);
  pointer-events: none;
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 52px 0 50px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  /* 16px 미만이면 iOS 가 입력할 때 화면을 확대한다 */
  font-size: 1rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.search-input::placeholder { color: var(--ink-mute); opacity: 1; }
/* 지우기 버튼이 숨어 있는 동안(빈 칸)에는 오른쪽 자리를 비워 두지 않는다.
   320px 화면에서 자리표시 글의 '(예: 12)' 가 잘리지 않게 — 릴스에서 온 사람에게 가장 쓸모 있는 부분이다 */
.search-input:has(~ .search-clear[hidden]) { padding-right: var(--sp-4); }
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

.search-clear {
  position: absolute;
  right: 6px;
  color: var(--ink-soft);
}
.search-clear .icon { width: 18px; height: 18px; }

/* ── 섹션 제목 · 가로 스크롤 ─────────────────────────────────── */

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.rail {
  /* 카드 안의 sr-only(절대 위치) 글자가 스크롤 상자 밖 문서 폭을 늘리지 않도록 기준을 여기에 둔다.
     없으면 모바일에서 화면 밖 추천 카드 때문에 페이지 전체가 옆으로 밀리고 축소되어 보인다 */
  position: relative;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  padding-inline: var(--rail-pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }

@media (hover: hover) and (pointer: fine) {
  /* 마우스로 보는 데스크톱에서는 가로로 더 있다는 걸 알 수 있게 얇은 스크롤바를 남긴다 */
  .featured-list.rail { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .featured-list.rail::-webkit-scrollbar { display: block; height: 6px; }
  .featured-list.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); }
}

/* ── 오늘의 오브제 ───────────────────────────────────────────── */

.featured { padding-bottom: var(--sp-8); }
.featured .section-title { margin-bottom: var(--sp-1); }
.featured .ad-label { margin-bottom: var(--sp-4); }

.featured-list {
  gap: var(--sp-3);
  /* 가로 스크롤 상자는 위아래도 잘라낸다. 키보드 초점 링(2px + 간격 2px)이 위에서 잘리지 않게
     위쪽에 여유를 두고, 같은 만큼 끌어올려 카드 자리는 그대로 둔다 */
  padding-top: var(--sp-1);
  margin-top: calc(-1 * var(--sp-1));
  padding-bottom: var(--sp-2);
}
.featured-list > li {
  flex: 0 0 min(68vw, 272px);
  scroll-snap-align: start;
  min-width: 0;
}
@media (min-width: 768px) {
  .featured-list { gap: var(--sp-5); }
  .featured-list > li { flex-basis: 264px; }
}

/* ── 카테고리 칩 ─────────────────────────────────────────────── */

/* 검색 뒤 목록으로 올릴 때 고정 머리말(높이 + 아래 테두리 1px) 밑에 칩 막대가 딱 붙게 */
.catalog { scroll-margin-top: calc(var(--header-h) + 1px); }
.catalog:focus { outline: none; }

.chips-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.chips {
  gap: var(--sp-2);
  padding-block: 9px;
  scroll-snap-type: none;
}

.chip {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
/* 보이는 칩은 38px 이지만 누르는 영역은 44px 을 채운다 */
.chip::after {
  content: "";
  position: absolute;
  inset: -3px 0;
}
.chip:hover { border-color: var(--ink-mute); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.chip-count {
  color: var(--ink-mute);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] .chip-count { color: var(--line-strong); }

/* ── 정렬 · 안내 ─────────────────────────────────────────────── */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
}

.result-count {
  min-width: 0;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.result-count strong { color: var(--ink); font-weight: 700; }

.sort {
  position: relative;
  flex: none;
  margin-right: -8px;
}
.sort select {
  height: 44px;
  padding: 0 32px 0 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  /* 16px 미만이면 iOS 가 선택 상자를 열 때 화면을 확대한다 */
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  /* 가장 긴 선택지 폭에 맞춰 늘어나 화살표가 멀리 떨어지는 것을 막는다 (지원하는 브라우저에서만) */
  field-sizing: content;
}
.sort select:hover { background: var(--bg-deep); }
.sort-icon {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
}

.price-note {
  padding-bottom: var(--sp-4);
  color: var(--ink-mute);
  font-size: var(--fs-xs);
}

.search-status {
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.search-status-title { font-weight: 700; }
.search-status-desc {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

/* ── 상품 그리드 · 카드 ─────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--sp-3);
  row-gap: var(--sp-6);
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--sp-5);
    row-gap: var(--sp-8);
  }
}
@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative; /* 안쪽 sr-only 글자의 기준 상자 */
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
  border-radius: var(--r-md);
  color: var(--ink);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-md);
  background: var(--surface);
  transition: transform var(--dur) var(--ease);
}
/* 흰 배경 상품 사진도 오트밀 바탕에서 모서리가 보이도록 아주 옅은 테두리를 이미지 위에 덮는다 */
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(45, 33, 27, 0.07);
  pointer-events: none;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms var(--ease);
}
/* 이미지가 없거나 깨지면 로고 마크를 은은하게 깐다 (빈 회색 상자는 고장처럼 보인다) */
.card-media.is-empty {
  background: var(--bg-deep) url("/assets/brand/mark-faint.svg") center / 34% auto no-repeat;
}

/* 누르는 순간의 촉감. 인앱 브라우저에서 눌렸는지 알려주는 유일한 신호다 */
.card:active .card-media { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media img { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  .card-media img { transition: none; }
  .card:hover .card-media img { transform: none; }
}

.card-no {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.card-badge {
  position: absolute;
  left: var(--sp-2);
  bottom: var(--sp-2);
  max-width: calc(100% - 2 * var(--sp-2));
  padding: 3px 9px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-inline: 2px;
}

.card-brand {
  min-height: calc(var(--fs-xs) * 1.55);
  overflow: hidden;
  color: var(--ink-mute);
  font-size: var(--fs-xs);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  /* 제목이 한 줄이어도 가격 줄의 높이가 이웃 카드와 맞도록 */
  min-height: calc(0.875rem * 1.45 * 2);
}

.card-comment {
  display: none;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.card-orig {
  margin-top: var(--sp-1);
  color: var(--ink-mute);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.card-orig s { text-decoration-thickness: 1px; }

.card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.card-orig + .card-price { margin-top: 0; }
.card-sale {
  color: var(--sale);
  font-size: var(--fs-md);
  font-weight: 800;
}
.card-amount {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-won {
  margin-left: 1px;
  font-size: 0.8125em;
  font-weight: 600;
}
.card-price-none {
  margin-top: var(--sp-1);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px var(--sp-2);
  margin-top: var(--sp-1);
  color: var(--ink-mute);
  font-size: 0.71875rem;
  font-variant-numeric: tabular-nums;
}
.card-rating { color: var(--ink-soft); }
.card-star { color: var(--star); margin-right: 2px; }
.card-reviews { color: var(--ink-mute); }
.card-date { margin-left: auto; }

.card-cta { display: none; }

/* 추천(오늘의 오브제) 카드: 크게, 한줄 코멘트까지. 초점 링이 사진 모서리와 같은 둥글기를 따르게 카드도 r-lg */
.card--feature { border-radius: var(--r-lg); }
.card--feature .card-media { border-radius: var(--r-lg); }
/* 가로로 한 줄만 흐르는 영역이라 이웃 카드와 줄을 맞출 필요가 없다. 빈 줄을 남기면 코멘트가 떠 보인다 */
.card--feature .card-title { font-size: var(--fs-md); min-height: 0; }
.card--feature .card-comment {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 2px;
}

/* 번호 검색으로 찾은 상품: 한 줄을 다 쓰고, 쿠팡으로 가는 길을 분명히 보여준다 */
.grid > .is-hit { grid-column: 1 / -1; }
.is-hit .card {
  display: grid;
  grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
  /* 사진을 위에 붙인다. 가운데 정렬이면 글이 긴 카드에서 사진 위아래가 비어 카드가 길어 보인다 */
  align-items: start;
  gap: var(--sp-4);
  max-width: 720px;
  padding: var(--sp-3);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1.5px var(--accent);
}
.is-hit .card-title { min-height: 0; font-size: var(--fs-md); font-weight: 600; }
.is-hit .card-comment { display: block; margin-top: 2px; }
.is-hit .card-date { margin-left: 0; }
.is-hit .card-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 40px;
  margin-top: var(--sp-3);
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.is-hit .card-cta .icon { width: 16px; height: 16px; }
@media (min-width: 768px) {
  .is-hit .card {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--sp-6);
    padding: var(--sp-4);
  }
}

/* 첫 렌더에서만 위에서부터 차례로 떠오른다 (스켈레톤 → 상품으로 바뀌었다는 신호).
   검색할 때마다 다시 움직이면 산만하므로 store.js 가 잠깐만 is-entering 을 붙인다. */
@media (prefers-reduced-motion: no-preference) {
  .is-entering > li {
    animation: card-in 420ms var(--ease) both;
    animation-delay: calc(var(--i, 0) * 35ms);
  }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ── 스켈레톤 ───────────────────────────────────────────────── */

.skel {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--bg-deep);
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--shimmer), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; display: none; }
}

.skel-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.skel-media {
  aspect-ratio: 1 / 1;
  margin-bottom: var(--sp-1);
  border-radius: var(--r-md);
}
.featured-list .skel-media { border-radius: var(--r-lg); }
.skel-line { height: 12px; }
.skel-chip {
  flex: none;
  width: 64px;
  height: 38px;
  border-radius: var(--r-pill);
}
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-90 { width: 90%; }

/* ── 빈 상태 · 오류 ─────────────────────────────────────────── */

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-14) var(--sp-4);
  text-align: center;
}
.state-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--sp-1);
  border-radius: var(--r-sm);
  background: var(--bg-deep);
  color: var(--ink-soft);
}
.state-icon .icon { width: 26px; height: 26px; }
.state-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.4;
}
.state-desc {
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.state .btn { margin-top: var(--sp-2); }

/* ── 푸터 ───────────────────────────────────────────────────── */

.site-footer {
  margin-top: var(--sp-14);
  padding-top: var(--sp-10);
  /* 맨 위로 버튼이 마지막 줄을 가리지 않게 */
  padding-bottom: calc(88px + var(--safe-bottom));
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.footer-inner {
  display: grid;
  gap: var(--sp-5);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  color: var(--ink);
}

.footer-legal {
  display: grid;
  gap: var(--sp-2);
  max-width: 62ch;
  line-height: 1.65;
}
.footer-disclosure { color: var(--ink); font-weight: 500; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-6);
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
}
/* 협업 메일은 시트를 여는 버튼이다 — 링크와 똑같이 보이도록 버튼 기본 모양을 지운다 */
button.footer-link {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.footer-link .icon { width: 18px; height: 18px; }
.footer-link-sub {
  color: var(--ink-soft);
  font-weight: 400;
  overflow-wrap: anywhere;
}
.footer-link:hover .footer-link-sub { text-decoration: underline; text-underline-offset: 3px; }

.footer-copy { color: var(--ink-soft); font-size: var(--fs-xs); }

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--sp-10);
  }
  .footer-brand,
  .footer-legal,
  .footer-copy { grid-column: 1; }
  .footer-links {
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── 맨 위로 ───────────────────────────────────────────────── */

.to-top {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  bottom: calc(var(--sp-4) + var(--safe-bottom));
  z-index: 25;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility 0s linear var(--dur);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.to-top:active { transform: scale(0.94); }

/* ── 비즈니스 협업 시트 ─────────────────────────────────────── */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 33, 27, 0.45);
  opacity: 0;
  transition: opacity calc(var(--dur) * 1.4) var(--ease);
}

.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--sp-3) var(--sp-6) calc(var(--sp-6) + var(--safe-bottom));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  transform: translateY(100%);
  transition: transform calc(var(--dur) * 1.6) var(--ease);
}
.sheet-panel:focus { outline: none; }

.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet.is-open .sheet-panel { transform: none; }

@media (min-width: 768px) {
  .sheet { align-items: center; padding: var(--sp-6); }
  .sheet-panel {
    border-radius: var(--r-lg);
    padding-bottom: var(--sp-6);
    opacity: 0;
    transform: translateY(16px);
    transition: transform calc(var(--dur) * 1.4) var(--ease), opacity calc(var(--dur) * 1.4) var(--ease);
  }
  .sheet.is-open .sheet-panel { opacity: 1; }
}

/* 끌어 내리는 손잡이(grabber)는 두지 않는다. 끌어서 닫는 동작이 없는데 손잡이만 있으면
   휴대폰 사용자가 쓸어내려 보고 아무 일도 없어 당황한다. 닫기는 X·바깥 누르기·Esc. */

.sheet-close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
}

.sheet-title {
  padding-top: var(--sp-3);
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.sheet-desc {
  margin-top: var(--sp-2);
  color: var(--ink-soft);
  font-size: var(--fs-md);
}

.sheet-email {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-soft);
}
.sheet-email .icon { color: var(--accent); }
/* 복사가 막힌 인앱 브라우저에서도 길게 눌러 한 번에 선택할 수 있게 */
.sheet-email-text {
  min-width: 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.sheet-status {
  min-height: 1.5em;
  margin-top: var(--sp-3);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}

/* 시트가 열린 동안 뒤 페이지가 스크롤되지 않게 (iOS 는 overflow:hidden 만으로 안 막힌다) */
body.is-locked {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
}

/* ── 404 ────────────────────────────────────────────────────── */

/* 내용이 짧아도 푸터가 화면 중간에 떠 있지 않게 바닥으로 민다 */
.page-404 { display: flex; flex-direction: column; }
.page-404 main { flex: 1; }

.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
  padding-top: var(--sp-14);
  padding-bottom: var(--sp-14);
}
.notfound-mark { width: 64px; height: 64px; border-radius: 50%; }
.notfound-code {
  color: var(--ink-mute);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.notfound-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.notfound-desc {
  max-width: 40ch;
  color: var(--ink-soft);
}
.notfound .btn { margin-top: var(--sp-2); }
.site-footer--slim { margin-top: 0; padding-bottom: calc(var(--sp-10) + var(--safe-bottom)); }
