/* PIKUMO — direction B: modern app / bento */
:root {
  --bg: #f4f5f2;
  --bg-2: #eceee8;
  --surface: #ffffff;
  --surface-2: #f7f8f5;
  --glass: rgba(255, 255, 255, .72);
  --line: rgba(20, 35, 28, .08);
  --line-strong: rgba(20, 35, 28, .16);
  --ink: #111a16;
  --ink-2: #3b4842;
  --muted: #6d7a73;
  --brand: #1f4a3c;
  --brand-ink: #ffffff;
  --accent: #16c784;
  --accent-2: #6b5cff;
  --accent-soft: #dcf7ea;
  --violet-soft: #ebe8ff;
  --warn: #e0663a;
  --heart: #ff4d6d;
  --shadow-sm: 0 1px 2px rgba(17, 26, 22, .05), 0 2px 8px rgba(17, 26, 22, .04);
  --shadow-md: 0 2px 6px rgba(17, 26, 22, .05), 0 12px 32px rgba(17, 26, 22, .08);
  --shadow-lg: 0 24px 64px rgba(17, 26, 22, .18);
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, "Segoe UI", Roboto, sans-serif;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c110f;
    --bg-2: #121916;
    --surface: #161e1a;
    --surface-2: #1c2520;
    --glass: rgba(22, 30, 26, .72);
    --line: rgba(255, 255, 255, .07);
    --line-strong: rgba(255, 255, 255, .15);
    --ink: #eef3f0;
    --ink-2: #c3cec8;
    --muted: #8c9a93;
    --brand: #3fe0a0;
    --brand-ink: #06140e;
    --accent: #3fe0a0;
    --accent-2: #9a8cff;
    --accent-soft: rgba(63, 224, 160, .14);
    --violet-soft: rgba(154, 140, 255, .16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.6; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2.5px solid var(--accent-2); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.2; }
p { margin: 0; }
.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; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--pill); transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.br-wide { display: none; }
@media (min-width: 720px) { .br-wide { display: inline; } }

/* ---------- buttons & chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  padding: 6px 12px; border-radius: var(--pill);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2);
}
.chip-glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #5cf2b2; box-shadow: 0 0 0 0 rgba(92, 242, 178, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92, 242, 178, .55); } 70% { box-shadow: 0 0 0 9px rgba(92, 242, 178, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 242, 178, 0); } }

.primary-button, .secondary-button, .ghost-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--pill);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, border-color .18s;
}
.primary-button { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.primary-button:active:not(:disabled) { transform: scale(.97); }
.primary-button .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.primary-button:hover .icon { transform: translateX(3px); }
.secondary-button { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.secondary-button:hover { background: var(--surface-2); }
.secondary-button .icon { width: 15px; height: 15px; }
.ghost-button { color: #fff; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.ghost-button:hover { background: rgba(255, 255, 255, .16); }
.text-button { font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-radius: 8px; transition: color .15s, background-color .15s; }
.text-button:hover { color: var(--ink); background: var(--bg-2); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: inherit; }
.text-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.icon-button {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: transform .18s var(--ease), background-color .18s, color .18s;
}
.icon-button:hover { background: var(--surface-2); }
.icon-button:active { transform: scale(.92); }
.icon-button.saved { color: var(--heart); }
.icon-button.saved .icon { fill: currentColor; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(17, 26, 22, .05); }
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter);
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 21px; font-weight: 800; letter-spacing: -.05em; }
.brand-mark {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 15px; line-height: 1;
}
.main-nav { display: flex; gap: 2px; }
.main-nav a, .main-nav button { padding: 8px 12px; border-radius: var(--pill); font-size: 14px; font-weight: 600; color: var(--muted); transition: color .15s, background-color .15s; }
.main-nav a:hover, .main-nav button:hover { color: var(--ink); background: var(--bg-2); }
.main-nav a.active { color: var(--ink); }
.search-box {
  display: flex; align-items: center; gap: 10px; min-width: 0; justify-self: end; width: min(100%, 420px);
  height: 44px; padding: 0 8px 0 16px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, width .25s var(--ease);
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box .icon { color: var(--muted); width: 17px; height: 17px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; }
.search-box input::placeholder { color: var(--muted); }
.search-box kbd { font: 600 11px/1 var(--font); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 7px; padding: 5px 8px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.count-dot {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--pill);
  background: var(--heart); color: #fff; font-size: 10px; font-weight: 800; border: 2px solid var(--bg);
}
.manage-button {
  display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: var(--pill);
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; transition: transform .18s var(--ease);
}
.manage-button:active { transform: scale(.95); }
.manage-button .icon { width: 16px; height: 16px; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 640px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 10px 10px; padding-top: 10px; padding-bottom: 10px; }
  .search-box { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 42px; }
  .search-box kbd { display: none; }
  .manage-button { width: 42px; padding: 0; justify-content: center; }
  .manage-label { display: none; }
  html { scroll-padding-top: 128px; }
}

/* ---------- bento hero ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.bento {
  display: grid; gap: 14px; margin-top: 18px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
}
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px;
  padding: 22px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
a.tile:hover, button.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
a.tile:active, button.tile:active { transform: scale(.985); }
.tile-hero {
  grid-column: span 7; grid-row: span 2; justify-content: flex-end; gap: 16px;
  padding: clamp(24px, 4vw, 44px); min-height: 380px; color: #fff; border: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(107, 92, 255, .55), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(22, 199, 132, .55), transparent 60%),
    linear-gradient(160deg, #173a2f, #0f241d 70%);
}
.tile-hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.045em; position: relative; z-index: 1; }
.tile-hero p { font-size: clamp(14px, 1.4vw, 16px); color: rgba(255, 255, 255, .78); max-width: 520px; position: relative; z-index: 1; }
.tile-hero .chip { position: relative; z-index: 1; margin-bottom: auto; }
.grad-text { background: linear-gradient(90deg, #5cf2b2, #b7aaff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; margin-top: 6px; }
.tile-hero .primary-button { background: #fff; color: #0f241d; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.orb-a { width: 220px; height: 220px; right: -50px; top: -40px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 65%); animation: float 9s ease-in-out infinite; }
.orb-b { width: 120px; height: 120px; right: 18%; top: 34%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: float 11s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-10px, 14px); } }

.tile-icon, .tile .icon { width: 22px; height: 22px; }
.tile-stat, .tile-travel { grid-column: span 5; justify-content: space-between; }
.stat-products { grid-column: span 3; background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); }
.stat-categories { grid-column: span 2; background: linear-gradient(160deg, var(--violet-soft), var(--surface) 70%); }
.tile-stat > .icon:first-child, .tile-travel > .icon:first-child { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: auto; }
.stat-value { display: flex; align-items: baseline; gap: 4px; font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.stat-meta { font-size: 12px; color: var(--muted); }
.tile-travel { grid-column: span 5; grid-row: span 2; justify-content: flex-end; gap: 10px; color: #fff; border: 0; background: linear-gradient(135deg, #3d6cff, #7a5cff 55%, #c35cff); }
.tile-travel .stat-label, .tile-travel .stat-value small { color: rgba(255, 255, 255, .78); }
.tile-travel > .icon:first-child { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); color: #fff; box-shadow: none; }
.tile-travel .stat-value { font-size: clamp(28px, 3.2vw, 38px); }
.tile-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.tile-link .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.tile-travel:hover .tile-link .icon { transform: translateX(4px); }
.tile-travel::after { content: "✈"; position: absolute; right: 18px; top: 10px; font-size: 64px; opacity: .14; transform: rotate(-12deg); }

.tile-picks { grid-column: span 7; padding: 18px; gap: 12px; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 0; }
.tile-head .stat-label { margin: 0; }
.pick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 120px; }
.pick { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.pick img, .pick svg { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pick svg { object-fit: contain; padding: 8%; }
.pick:hover { box-shadow: var(--shadow-md); }
.pick:hover img, .pick:hover svg { transform: scale(1.06); }
.pick-price { position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: var(--pill); font-size: 11px; font-weight: 700; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); border: 1px solid var(--line); }

.tile-principles { grid-column: span 5; padding: 18px; gap: 8px; justify-content: center; }
.tile-principles > div { display: flex; align-items: center; gap: 12px; padding: 8px 6px; }
.tile-principles .icon { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--accent-soft); color: var(--brand); }
.tile-principles > div:nth-child(2) .icon { background: var(--violet-soft); color: var(--accent-2); }
.tile-principles > div:nth-child(3) .icon { background: rgba(255, 77, 109, .12); color: var(--heart); }
.tile-principles strong { display: block; font-size: 14px; }
.tile-principles small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }

@media (max-width: 980px) {
  .tile-hero { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
  .stat-products, .stat-categories { grid-column: span 6; }
  .tile-travel { grid-column: 1 / -1; }
  .tile-picks, .tile-principles { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bento { gap: 10px; margin-top: 12px; grid-auto-rows: auto; }
  .tile { padding: 18px; border-radius: var(--r-lg); }
  .tile-hero { min-height: 0; padding: 26px 22px; gap: 14px; }
  .tile-hero .chip { margin-bottom: 18px; }
  .hero-cta .primary-button, .hero-cta .ghost-button { flex: 1; padding: 0 14px; }
  .stat-products, .stat-categories { min-height: 150px; }
  .stat-value { font-size: 34px; }
  .pick-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-height: 0; }
  .pick-price { display: none; }
  .tile-travel::after { font-size: 48px; }
}

/* ---------- collection ---------- */
.collection { margin-top: clamp(40px, 7vw, 72px); }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-top h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-top: 10px; }
.section-top p { color: var(--muted); font-size: 14px; }
.collection-tools { position: relative; }
.category-list {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.category-list::-webkit-scrollbar { display: none; }
.category {
  flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px 0 12px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s var(--ease);
}
.category .icon { width: 17px; height: 17px; }
.category small { min-width: 22px; padding: 1px 7px; border-radius: var(--pill); background: var(--bg-2); color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.category:hover:not(.active) { border-color: var(--line-strong); transform: translateY(-1px); }
.category:active { transform: scale(.96); }
.category.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.category.active small { background: rgba(127, 127, 127, .28); color: inherit; }
.collection-filter-row { display: flex; align-items: center; gap: 12px; padding: 6px 2px; }
.category-context { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.category-context strong { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.category-context span { font-size: 13px; color: var(--muted); }
.subcategory-list { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 4px; scrollbar-width: none; }
.subcategory-list::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .subcategory-list { flex-wrap: wrap; overflow: visible; } }
.subcategory {
  flex: 0 0 auto; padding: 7px 14px; border-radius: var(--pill); font-size: 13px; font-weight: 600; white-space: nowrap;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.subcategory:hover { border-color: var(--line-strong); }
.subcategory.active { background: var(--accent-soft); color: var(--brand); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.results-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 12px; }
.results-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#results-count { font-size: 14px; color: var(--muted); font-weight: 600; }
#results-count strong { color: var(--ink); font-weight: 800; margin-left: 4px; }
.sort-label select {
  appearance: none; -webkit-appearance: none; height: 38px; padding: 0 34px 0 14px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.sample-notice {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; margin-bottom: 16px;
  border-radius: var(--r-md); background: var(--violet-soft); color: var(--ink-2); font-size: 13px;
}
.sample-notice .icon { color: var(--accent-2); }
.sample-notice > span { flex: 1; }
.sample-notice button { flex-shrink: 0; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 640px) { .sample-notice { flex-wrap: wrap; } .sample-notice button { margin-left: 30px; } }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
@media (max-width: 640px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.product-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  animation: rise .5s var(--ease) both;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.product-image-wrap { position: relative; margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 6px); overflow: hidden; background: var(--surface-2); }
.product-art { display: block; width: 100%; aspect-ratio: 1 / 1; }
.product-art img, .product-art svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-art svg { object-fit: contain; padding: 10%; }
.product-card:hover .product-art img, .product-card:hover .product-art svg { transform: scale(1.05); }
.photo-unavailable { width: 100%; height: 100%; padding: 10%; }
.card-tag {
  position: absolute; left: 10px; top: 10px; max-width: calc(100% - 64px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 5px 10px; border-radius: var(--pill); font-size: 11px; font-weight: 700;
  background: var(--glass); color: var(--ink); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.save-button { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.save-button .icon { width: 17px; height: 17px; }
.save-button.saved .icon { animation: pop .35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.3); } }
.card-content { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px 14px 14px; }
.brand-row { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.brand-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-pill { flex-shrink: 0; padding: 1px 7px; border-radius: var(--pill); background: rgba(224, 102, 58, .12); color: var(--warn); font-size: 10px; font-weight: 700; }
.card-title {
  text-align: left; font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: -.025em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title:hover { color: var(--brand); }
.card-summary { font-size: 13px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-size: 18px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.compare-toggle {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 11px; border-radius: var(--pill);
  font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--bg-2); border: 1px solid transparent;
  transition: background-color .15s, color .15s, transform .15s var(--ease);
}
.compare-toggle .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.compare-toggle:active { transform: scale(.94); }
.compare-toggle.selected { background: var(--ink); color: var(--bg); }
@media (max-width: 640px) {
  .card-content { padding: 10px 10px 12px; gap: 4px; }
  .card-title { font-size: 14px; }
  .card-summary { display: none; }
  .card-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
  .price { font-size: 16px; }
  .compare-toggle { justify-content: center; }
}
.empty-state { text-align: center; padding: 56px 20px; border-radius: var(--r-xl); background: var(--surface); border: 1px dashed var(--line-strong); }
.empty-state .icon { width: 44px; height: 44px; padding: 10px; margin: 0 auto 12px; border-radius: 50%; background: var(--bg-2); color: var(--muted); }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.network-error { grid-column: 1 / -1; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--warn); text-align: center; }

/* ---------- journal ---------- */
.journal-banner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center;
  margin: clamp(48px, 7vw, 80px) 0 0; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-xl); color: #fff; overflow: hidden;
  background: radial-gradient(100% 120% at 100% 100%, rgba(107, 92, 255, .5), transparent 60%), linear-gradient(140deg, #0f241d, #173a2f);
}
.journal-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.journal-copy h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
.journal-copy p { color: rgba(255, 255, 255, .75); font-size: 14px; }
.journal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.journal-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 600; font-size: 14px; }
.journal-list span { font-size: 12px; font-weight: 800; color: #5cf2b2; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .journal-banner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { max-width: var(--max); margin: 56px auto 0; padding: 0 var(--gutter) 110px; color: var(--muted); font-size: 13px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.footer-top .brand { color: var(--ink); font-size: 18px; margin-bottom: 8px; }
.footer-top .brand-mark { width: 24px; height: 24px; font-size: 13px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.footer-links button { padding: 7px 13px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background-color .15s; }
.footer-links button:hover { background: var(--surface-2); }
.affiliate-note { padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-2); font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; font-size: 12px; }

/* ---------- compare bar ---------- */
.compare-bar {
  position: fixed; z-index: 45; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(calc(100% - 24px), 640px);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 18px; border-radius: var(--pill);
  background: color-mix(in srgb, var(--ink) 92%, transparent); color: var(--bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
  animation: barIn .35s var(--ease);
}
@keyframes barIn { from { opacity: 0; transform: translate(-50%, 20px); } }
.compare-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.compare-info strong { font-size: 14px; white-space: nowrap; }
.compare-hint { font-size: 12px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.compare-bar .text-button { color: var(--bg); opacity: .75; }
.compare-bar .text-button:hover { background: rgba(127, 127, 127, .2); opacity: 1; }
.compare-bar .primary-button { background: var(--accent); color: #06140e; min-height: 40px; padding: 0 16px; }
@media (max-width: 520px) { .compare-hint { display: none; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; top: 84px; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 11px 18px; border-radius: var(--pill); background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .3s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } }

/* ---------- dialogs ---------- */
dialog {
  border: 0; padding: 0; color: var(--ink); background: var(--surface);
  width: min(calc(100% - 24px), 920px); max-height: calc(100dvh - 32px);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: auto;
}
dialog[open] { animation: dialogIn .3s var(--ease); }
dialog::backdrop { background: rgba(8, 14, 11, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.info-dialog { width: min(calc(100% - 24px), 620px); padding: clamp(24px, 4vw, 40px); }
.info-dialog h2 { font-size: clamp(22px, 3vw, 28px); margin: 8px 0 16px; }
#info-content h3 { font-size: 16px; margin: 20px 0 6px; }
#info-content p, #info-content li { color: var(--ink-2); font-size: 14px; line-height: 1.75; }
#info-content p + p { margin-top: 10px; }
#info-content ul { padding-left: 20px; margin: 6px 0 12px; }
.dialog-close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.detail-dialog { position: fixed; }
#detail-content { position: relative; }
.detail-layout { display: grid; grid-template-columns: 1fr 1.1fr; }
.detail-visual { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface-2); }
.detail-visual > img, .detail-visual > svg { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-lg); background: var(--surface); }
.detail-visual > svg { object-fit: contain; padding: 8%; }
.art-caption { font-size: 12px; color: var(--muted); }
.detail-copy { padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 8px; }
.detail-copy h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; padding-right: 36px; }
.category-breadcrumb { font-size: 12px; color: var(--muted); }
.detail-summary { font-size: 15px; color: var(--ink-2); }
.detail-price { font-size: 28px; font-weight: 800; letter-spacing: -.04em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.detail-price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.detail-price-note { font-size: 12px; color: var(--muted); }
.detail-description { font-size: 14px; color: var(--ink-2); line-height: 1.75; margin-top: 8px; }
.detail-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.detail-points > div { padding: 14px; border-radius: var(--r-md); background: var(--accent-soft); }
.detail-points > div:nth-child(2) { background: rgba(224, 102, 58, .1); }
.detail-points h3 { font-size: 13px; margin-bottom: 6px; }
.detail-points ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.detail-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.detail-specs div { padding: 6px 11px; border-radius: var(--pill); background: var(--bg-2); font-size: 12px; color: var(--ink-2); }
.detail-actions { display: flex; gap: 8px; margin-top: 12px; }
.detail-actions .primary-button { flex: 1; }
.detail-actions .icon-button { width: 46px; height: 46px; }
.detail-disclosure { font-size: 12px; color: var(--muted); line-height: 1.6; }
.affiliate-disclosure { padding: 9px 12px; border-radius: var(--r-sm); background: var(--violet-soft); color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 760px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-visual { padding: 18px 18px 12px; }
  .detail-visual > img, .detail-visual > svg { aspect-ratio: 4 / 3; }
  .detail-copy { padding: 18px; }
  .detail-points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  dialog { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  @keyframes dialogIn { from { transform: translateY(40px); opacity: 0; } }
}

.dialog-heading { display: flex; justify-content: space-between; gap: 16px; padding: 26px 26px 14px; }
.dialog-heading h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 6px 0 4px; }
.dialog-heading p { font-size: 13px; color: var(--muted); }
.comparison-scroll { overflow-x: auto; padding: 0 26px 26px; }
.comparison-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.comparison-table th, .comparison-table td { padding: 12px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.comparison-table th { width: 96px; color: var(--muted); font-weight: 700; font-size: 12px; }
.comparison-table ul { margin: 0; padding-left: 16px; }
.comparison-product { display: flex; flex-direction: column; gap: 6px; }
.comparison-product h3 { font-size: 14px; }
.comparison-product small { color: var(--muted); }
.art-small { width: 100%; max-width: 140px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }

.manage-dialog, .edit-dialog { width: min(calc(100% - 24px), 820px); }
.studio-tabs { display: inline-flex; gap: 4px; margin: 0 26px 14px; padding: 4px; border-radius: var(--pill); background: var(--bg-2); }
.studio-tabs button { padding: 7px 16px; border-radius: var(--pill); font-size: 13px; font-weight: 700; color: var(--muted); transition: background-color .15s, color .15s; }
.studio-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
#studio-products, #studio-stats { padding: 0 26px 26px; }
.studio-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.studio-toolbar > div { display: flex; gap: 8px; flex-wrap: wrap; }
.import-label { cursor: pointer; }
.studio-message { font-size: 13px; color: var(--brand); min-height: 20px; }
.manage-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.manage-art { width: 52px; height: 52px; flex-shrink: 0; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
.manage-item-text { flex: 1; min-width: 0; }
.manage-item-text strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-item-text small { font-size: 12px; color: var(--muted); }
.delete-button { color: var(--warn); }
.stats-note { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat-card { padding: 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.stat-card small { display: block; font-size: 12px; color: var(--muted); }
.stat-card strong { font-size: 26px; font-weight: 800; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
.stats-table th, .stats-table td { padding: 8px; text-align: left; border-bottom: 1px solid var(--line); }
.stats-table th { color: var(--muted); font-weight: 700; font-size: 12px; }
#studio-stats h3 { font-size: 15px; margin: 8px 0; }

#product-form { padding: 0 26px 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); min-width: 0; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid small { font-size: 12px; font-weight: 400; color: var(--muted); }
.form-grid input:not([type="checkbox"]), .form-grid select, .form-grid textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface-2);
  font-size: 14px; font-weight: 400; transition: border-color .15s, box-shadow .15s;
}
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-grid .checkbox-label { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-error { color: var(--warn); font-size: 13px; min-height: 20px; margin-top: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .dialog-heading { padding: 20px 18px 12px; }
  #product-form, #studio-products, #studio-stats, .comparison-scroll { padding-left: 18px; padding-right: 18px; }
  .studio-tabs { margin-left: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr 1fr; }
  .section-top { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* travel tile photos */
.travel-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: auto; }
.travel-thumbs:empty { display: none; }
.travel-thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .28); transition: transform .4s var(--ease); }
.tile-travel:hover .travel-thumbs img { transform: scale(1.03); }
.tile-travel.has-thumbs > .icon:first-child, .tile-travel.has-thumbs::after { display: none; }
@media (max-width: 980px) { .travel-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .travel-thumbs { gap: 6px; } .travel-thumbs img { aspect-ratio: 1 / 1; border-radius: 10px; } }

/* rating & reviews */
.rating-badge { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 2px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(255, 176, 0, .14); color: var(--ink); font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.rating-badge b { font-weight: 800; }
.rating-star { color: #f5a400; font-size: 14px; }
.rating-count { color: var(--muted); font-weight: 600; }
.rating-count::before { content: "·"; margin-right: 5px; color: var(--muted); }
.rating-badge.rating-lg { font-size: 15px; padding: 5px 14px 5px 11px; margin: 4px 0 8px; }
.rating-badge.rating-lg .rating-star { font-size: 17px; }
@media (max-width: 640px) { .rating-badge { font-size: 12px; padding: 2px 8px 2px 7px; } }

/* MD 픽 */
.md-picks { margin-top: 36px; }
.md-pick { scroll-margin-top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl, 24px); padding: 20px; display: grid; gap: 14px; }
.md-pick + .md-pick { margin-top: 14px; }
.md-pick-head h3 { font-size: clamp(18px, 2.2vw, 22px); letter-spacing: -.03em; }
.md-pick-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.md-pick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.md-pick-item { position: relative; display: grid; gap: 6px; align-content: start; text-align: left; font: inherit; color: var(--ink); background: var(--surface-2, transparent); border: 1px solid var(--line); border-radius: var(--r-lg, 18px); padding: 10px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.md-pick-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.08)); }
.md-pick-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.md-no { position: absolute; top: 16px; left: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.md-pick-item strong { font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.md-why { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.md-price { font-size: 13px; font-weight: 800; }
@media (max-width: 760px) { .md-pick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md-pick { padding: 14px; } }
