:root {
  --bg: #ffffff;
  --ink: #161412;
  --sub: #7d766e;
  --mute: #b3aca3;
  --line: #eeebe6;
  --soft: #f7f3ee;       /* 연베이지 면 */
  --accent: #c8a97e;     /* 포인트 베이지 */
  --accent-deep: #a8834f;
  --accent-soft: #efe5d6;
  --radius: 10px;
  --wrap: 1180px;
  --header-h: 108px;
  --card: #ffffff;
  --text2: #4a443d;
  --text3: #3e3832;
  --line2: #e3ddd4;
  --on-ink: #ffffff;
  --header-bg: rgba(255,255,255,.96);
  --sk: #f1ede7;
  --sk-hi: #faf8f5;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141210;
  --ink: #f3efe9;
  --sub: #a59d93;
  --mute: #776f66;
  --line: #2b2723;
  --soft: #1e1b18;
  --accent: #c8a97e;
  --accent-deep: #d4b48a;
  --accent-soft: #2e271f;
  --card: #1a1815;
  --text2: #cfc8bf;
  --text3: #ddd6cd;
  --line2: #3a352f;
  --on-ink: #141210;
  --header-bg: rgba(20,18,16,.94);
  --sk: #221f1b;
  --sk-hi: #2c2823;
  color-scheme: dark;
}
:root[data-theme="dark"] .card-img svg, :root[data-theme="dark"] .pdp-img svg, :root[data-theme="dark"] .thumb svg, :root[data-theme="dark"] .mag-mini svg, :root[data-theme="dark"] .cat-ic svg { filter: brightness(.88); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 14px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- 헤더 ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 20px 10px; display: flex; align-items: center; gap: 24px; }
.logo-word { font-size: 21px; font-weight: 800; letter-spacing: .28em; white-space: nowrap; }
.logo-word.sm { font-size: 15px; }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: 0 16px; height: 42px; color: var(--sub); }
.search input { flex: 1; border: 0; background: none; outline: none; font: inherit; color: var(--ink); height: 100%; }
.search input::placeholder { color: var(--mute); }
.icons { display: flex; gap: 14px; margin-left: auto; }
.icons a { position: relative; padding: 4px; }
.badge { position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent-deep); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.badge[hidden] { display: none; }
.tabs { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 0 12px; font-size: 15px; font-weight: 600; color: var(--sub); white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a.on, .tabs a:hover { color: var(--ink); }
.tabs a.on { border-color: var(--ink); }

/* ---------- 히어로 ---------- */
.hero { margin: 20px -20px 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero::-webkit-scrollbar { display: none; }
.hero-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px - 24px) / 3); gap: 12px; padding: 0 20px; }
.banner { position: relative; aspect-ratio: 4 / 3.4; border-radius: 14px; overflow: hidden; scroll-snap-align: start; display: flex; }
.banner-text { position: relative; z-index: 1; padding: 26px 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.banner h3 { font-size: 24px; line-height: 1.3; color: #2a241e; }
.banner p { margin: 8px 0 0; color: #5d5246; font-size: 13px; }
.banner-art { position: absolute; right: -6%; top: 2%; width: 62%; opacity: .55; }

/* ---------- 카테고리 아이콘 ---------- */
.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 28px 0 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.cat-ic { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--soft); transition: transform .2s; }
.cat:hover .cat-ic { transform: translateY(-2px); }
.cats.big { grid-template-columns: repeat(4, 1fr); row-gap: 24px; }
.cats.big .cat-ic { width: 80px; height: 80px; }

/* ---------- 섹션 ---------- */
.sec { margin-top: 48px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: 20px; }
.more { font-size: 13px; color: var(--sub); }
.more:hover { color: var(--ink); }
.hint, .count { font-size: 13px; color: var(--sub); font-weight: 400; }

.profile-cta { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: 14px; background: var(--accent-soft); }
.profile-cta b { display: block; font-size: 16px; }
.profile-cta span { color: #6f604c; font-size: 13px; }
.profile-cta .arrow { font-size: 22px; color: var(--accent-deep); }

/* ---------- 칩 ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 18px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--text2); background: var(--card); transition: all .15s; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* ---------- 상품 카드 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 14px; }
.card { position: relative; min-width: 0; }
.card-img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.card-img svg { width: 100%; height: 100%; transition: transform .35s ease; }
.card:hover .card-img svg { transform: scale(1.03); }
.rank { position: absolute; top: 0; left: 0; min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 700; border-bottom-right-radius: 8px; }
.pill-new { position: absolute; left: 10px; bottom: 10px; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 3px 7px; border-radius: 4px; background: var(--card); color: var(--accent-deep); }
.like { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #6d655c; background: rgba(255,255,255,.75); }
.card-body { display: block; padding-top: 10px; }
.c-brand { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.c-name { margin-top: 2px; font-size: 13px; color: var(--text3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.c-price { margin-top: 6px; display: flex; gap: 6px; font-size: 15px; }
.pct { color: var(--accent-deep); }
.c-meta { margin-top: 4px; display: flex; gap: 8px; font-size: 11px; color: var(--mute); }

/* ---------- 브랜드 ---------- */
.brand-row { display: grid; grid-auto-flow: column; grid-auto-columns: 88px; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.brand-row::-webkit-scrollbar { display: none; }
.brand-ch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.logo { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .12em; border: 1px solid var(--line); flex: none; }
.logo.lg { width: 96px; height: 96px; font-size: 13px; }
.brand-ch .nm { font-size: 12px; color: var(--text2); }
.tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-deep); }
.brand-ch .tag { position: absolute; top: 58px; }
.tag.soft { background: var(--soft); color: var(--sub); }
.tag.match { background: var(--ink); color: var(--on-ink); }
.brand-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.brand-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.brand-item .logo { width: 60px; height: 60px; font-size: 9px; }
.brand-item div { flex: 1; min-width: 0; }
.brand-item p { margin: 2px 0 0; color: var(--sub); font-size: 13px; }
.brand-item .ko { color: var(--sub); font-size: 13px; }
.brand-item .n { font-size: 12px; color: var(--mute); white-space: nowrap; }
.brand-hero { display: flex; align-items: center; gap: 24px; padding: 32px; border-radius: 16px; margin: 24px 0 32px; }
.brand-hero h1 { font-size: 26px; letter-spacing: .1em; }
.brand-hero p { margin: 4px 0 0; color: #5d5246; }
.brand-hero .ko { color: var(--sub); }

/* ---------- 매거진 ---------- */
.mag-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mag-row.col { margin-top: 8px; }
.mag { display: flex; flex-direction: column; gap: 4px; }
.mag-img { aspect-ratio: 16 / 10; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 8px; }
.mag-mini { display: flex; gap: 8px; }
.mag-mini span { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 16px rgba(80,60,30,.12); }
.mag b { font-size: 15px; }
.mag span:not(.mag-mini span) { color: var(--sub); font-size: 13px; }
.article-hero { border-radius: 16px; padding: 56px 32px; margin-top: 24px; }
.article-hero p { margin: 0 0 8px; font-size: 11px; letter-spacing: .2em; color: #6f604c; }
.article-hero h1 { font-size: 30px; }
.article-hero span { display: block; margin-top: 8px; color: #5d5246; }
.lead { font-size: 16px; line-height: 1.8; color: var(--text3); max-width: 680px; margin: 28px 0 0; }

/* ---------- 목록 페이지 ---------- */
.page-head { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 20px; }
.page-head h1 { font-size: 24px; }
.cat-tabs { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { padding: 0 0 12px; color: var(--sub); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-tabs a.on { color: var(--ink); border-color: var(--ink); font-weight: 700; }
.toolbar { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.toolbar .chips { flex: 1; }
.sort { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; background: var(--card); color: var(--ink); }

/* ---------- 상세 ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; margin-top: 28px; }
.pdp-img { border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--soft); }
.pdp-img svg { width: 100%; height: 100%; }
.pdp-brand { font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.pdp-brand span { color: var(--mute); }
.pdp-info h1 { font-size: 24px; font-weight: 600; margin-top: 6px; line-height: 1.35; }
.pdp-rating { margin-top: 10px; font-size: 13px; color: var(--sub); }
.pdp-rating a { text-decoration: underline; text-underline-offset: 3px; }
.pdp-price { margin: 22px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pdp-price .orig { color: var(--mute); text-decoration: line-through; font-size: 14px; }
.pdp-price div { display: flex; gap: 8px; align-items: baseline; font-size: 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tags .tag { font-size: 12px; padding: 4px 9px; }
.ship { list-style: none; margin: 0 0 20px; padding: 0; font-size: 13px; color: var(--text2); }
.ship li { padding: 4px 0; }
.ship span { display: inline-block; width: 44px; color: var(--sub); }
.qty-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--soft); border-radius: var(--radius); margin-bottom: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 8px; background: var(--card); }
.qty button { width: 34px; height: 34px; font-size: 16px; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.qty.sm button { width: 28px; height: 28px; }
.pdp-actions { display: flex; gap: 8px; }
.btn { height: 52px; padding: 0 22px; border-radius: var(--radius); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.pdp-actions .btn { flex: 1; }
.btn.solid { background: var(--ink); color: var(--on-ink); }
.btn.solid:hover { opacity: .9; }
.btn.line { border: 1px solid var(--ink); }
.btn.wide { width: 100%; }
.btn-icon { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; flex: none; }
.ingr { line-height: 1.9; color: var(--text2); margin: 0; padding: 18px 20px; border-radius: var(--radius); background: var(--soft); }
.ingr .warn { color: var(--accent-deep); font-weight: 700; }
.review-sum { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.review-sum b { font-size: 22px; }
.review-sum span { color: var(--sub); font-size: 13px; }
.reviews { list-style: none; padding: 0; margin: 0; }
.reviews li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.r-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); }
.r-top b { color: var(--accent-deep); letter-spacing: 1px; }
.reviews p { margin: 6px 0 0; }

/* ---------- 장바구니 ---------- */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cart-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.thumb { width: 96px; height: 96px; border-radius: 8px; overflow: hidden; flex: none; }
.thumb svg { width: 100%; height: 100%; }
.ci { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ci .c-name { min-height: 0; }
.cp { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.x { font-size: 12px; color: var(--mute); text-decoration: underline; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); padding: 24px; border-radius: 14px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; }
.summary div { display: flex; justify-content: space-between; color: var(--text2); }
.summary .total { border-top: 1px solid var(--line2); padding-top: 14px; margin-top: 4px; color: var(--ink); font-weight: 600; }
.summary .total b { font-size: 20px; }
.fine { font-size: 12px; color: var(--mute); margin: 4px 0 0; }
.center { text-align: center; }

/* ---------- 마이 ---------- */
.profile h3 { font-size: 14px; margin: 20px 0 10px; }
.profile h3 small { font-weight: 400; color: var(--sub); }
.hint-line { color: var(--sub); margin: 0 0 12px; }
.my-links { margin-top: 32px; border-top: 1px solid var(--line); }
.my-links a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.my-links span { color: var(--sub); }

/* ---------- 기타 ---------- */
.empty { color: var(--sub); padding: 40px 0; text-align: center; }
.empty.big { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 100px 0; font-size: 15px; }
.foot { margin-top: 80px; padding: 40px 0 120px; background: var(--soft); color: var(--sub); font-size: 13px; }
.foot p { margin: 8px 0 0; }
#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: rgba(22,20,18,.92); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 13px; transition: all .25s; z-index: 50; white-space: nowrap; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.bottom { display: none; }

/* ---------- 태블릿 ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-track { grid-auto-columns: 46%; }
}

/* ---------- 모바일 ---------- */
@media (max-width: 720px) {
  :root { --header-h: 150px; }
  .top-inner { flex-wrap: wrap; gap: 10px 12px; padding: 12px 16px 8px; }
  .logo-word { font-size: 18px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 40px; }
  .hide-sm { display: none; }
  .tabs { padding: 0 16px; gap: 20px; }
  .tabs a { font-size: 14px; padding: 8px 0 10px; }
  .wrap { padding: 0 16px; }
  .hero { margin: 16px -16px 0; }
  .hero-track { grid-auto-columns: 84%; padding: 0 16px; gap: 10px; }
  .banner h3 { font-size: 21px; }
  .cats { grid-template-columns: repeat(4, 1fr); row-gap: 18px; }
  .cat-ic { width: 56px; height: 56px; }
  .cats.big .cat-ic { width: 64px; height: 64px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
  .sec { margin-top: 40px; }
  .sec-head h2 { font-size: 18px; }
  .mag-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; overflow-x: auto; scrollbar-width: none; }
  .mag-row.col { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; }
  .brand-list { grid-template-columns: 1fr; }
  .brand-item .n { display: none; }
  .brand-hero { padding: 24px; gap: 16px; }
  .brand-hero .logo.lg { width: 72px; height: 72px; font-size: 10px; }
  .pdp { grid-template-columns: 1fr; gap: 20px; margin-top: 0; }
  .pdp-img { margin: 0 -16px; border-radius: 0; }
  .pdp-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .toolbar { flex-direction: column-reverse; gap: 0; }
  .toolbar .sort { align-self: flex-end; margin-bottom: 12px; }
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
  .article-hero { padding: 40px 24px; }
  .article-hero h1 { font-size: 24px; }

  .bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--header-bg); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--mute); }
  .bottom a svg { width: 24px; height: 24px; }
  .bottom a.on { color: var(--ink); }
  body:has(.pdp) .bottom { display: none; }
}

/* ---------- 다크 모드 버튼 ---------- */
.theme-btn { padding: 4px; color: inherit; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .profile-cta span { color: var(--sub); }
:root[data-theme="dark"] .logo { color: #2a241e; }

/* ---------- 페이지 전환 ---------- */
#view.enter { animation: enter .32s ease; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 이미지 스켈레톤 ---------- */
.card-img, .pdp-img, .thumb, .mag-mini span, .cat-ic { background: linear-gradient(100deg, var(--sk) 30%, var(--sk-hi) 50%, var(--sk) 70%) !important; background-size: 300% 100% !important; animation: shimmer 1.2s linear infinite; }
.card-img svg, .pdp-img svg, .thumb svg, .mag-mini svg, .cat-ic svg, .card-img img, .pdp-img img { animation: imgIn .45s ease .12s both; }
.card-img:has(svg), .pdp-img:has(svg), .thumb:has(svg), .cat-ic:has(svg), .mag-mini span:has(svg) { animation-iteration-count: 1; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes imgIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 좋아요 애니메이션 ---------- */
.pop svg { animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ---------- 상세: 공유 · 옵션 · 고정 탭 ---------- */
.pdp-img { position: relative; }
.opt-dot { position: absolute; right: 16px; bottom: 16px; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.pdp-top { display: flex; align-items: center; justify-content: space-between; }
.share { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--sub); }
.share:hover { background: var(--soft); color: var(--ink); }
.ship li { display: flex; gap: 0; }
.ship li > span { flex: none; }
.ship li b { font-weight: 600; color: var(--ink); }
.ship small { display: block; color: var(--sub); font-size: 12px; margin-top: 2px; }
.opts { margin-bottom: 14px; }
.opts-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 10px; font-size: 13px; }
.opts-head span { color: var(--sub); }
.opts-list { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 3px; border-radius: 50%; border: 2px solid transparent; }
.swatch span { display: block; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch.on { border-color: var(--ink); }
.opts-list.shade .swatch { border-radius: 10px; padding: 6px 8px 4px; border-width: 1px; border-color: var(--line); }
.opts-list.shade .swatch.on { border-color: var(--ink); border-width: 2px; }
.opts-list.shade em { font-style: normal; font-size: 12px; }
.opt-pill { min-height: 40px; padding: 6px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; }
.opt-pill small { font-size: 11px; color: var(--sub); font-weight: 400; }
.opt-pill.on { border: 2px solid var(--ink); }
.pdp-tabs { position: sticky; top: var(--header-h); z-index: 15; display: flex; margin: 48px -20px 0; padding: 0 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.pdp-tabs a { flex: 1; text-align: center; padding: 14px 0; font-weight: 600; color: var(--sub); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pdp-tabs a.on { color: var(--ink); border-color: var(--ink); }
.pdp-tabs small { font-weight: 400; font-size: 12px; }
.anchor { scroll-margin-top: calc(var(--header-h) + 60px); }
.pdp-tabs + .anchor { margin-top: 28px; }
.spec { display: grid; grid-template-columns: 96px 1fr; gap: 10px 16px; margin: 0 0 28px; font-size: 14px; }
.spec dt { color: var(--sub); }
.spec dd { margin: 0; }
.sec-head.sub h3 { font-size: 16px; }

/* ---------- 장바구니 ---------- */
.ship-note { margin: 0 0 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--accent-soft); font-size: 13px; color: var(--text2); }
.ship-note b { color: var(--accent-deep); }
.c-opt { font-size: 12px; color: var(--sub); }

/* ---------- 최근 검색어 ---------- */
.recent { margin-bottom: 28px; }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.recent-head h3 { font-size: 15px; }
.recent-head button { font-size: 12px; color: var(--sub); text-decoration: underline; }
.recent ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.recent li { display: flex; align-items: center; height: 34px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--soft); font-size: 13px; }
.recent li button { width: 24px; height: 24px; color: var(--mute); font-size: 16px; }
.recent li button:hover { color: var(--ink); }
h3.hint-line { font-size: 15px; color: var(--ink); }

/* ---------- 고객센터 ---------- */
.help-card { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; padding: 28px; border-radius: 14px; background: var(--soft); }
.help-card b { display: block; font-size: 26px; margin-top: 2px; }
.help-card ul { list-style: none; margin: 0; padding: 0; color: var(--text2); line-height: 1.9; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--sub); font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 18px; color: var(--text2); line-height: 1.7; }
.my-links button { width: 100%; display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 500; text-align: left; }
.my-links button span { color: var(--sub); }
.foot-links { display: flex; gap: 16px; margin-top: 14px; color: var(--text2); font-weight: 500; }

/* ---------- 맨 위로 ---------- */
#to-top { position: fixed; right: 20px; bottom: 28px; z-index: 24; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.08); opacity: 0; transform: translateY(10px); pointer-events: none; transition: all .25s; }
#to-top.show { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 720px) {
  .pdp-tabs { margin: 32px -16px 0; padding: 0 16px; }
  #to-top { right: 14px; bottom: 84px; }
  body:has(.pdp) #to-top { bottom: 84px; }
  .help-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 자동완성 ---------- */
.search { position: relative; }
.ac { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.10); padding: 6px; max-height: 70vh; overflow-y: auto; }
.ac[hidden] { display: none; }
.ac-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.ac-item.on, .ac-item:hover { background: var(--soft); }
.ac-thumb { width: 36px; height: 36px; border-radius: 6px; overflow: hidden; flex: none; }
.ac-thumb svg { width: 100%; height: 100%; }
.ac-type { flex: none; width: 48px; white-space: nowrap; text-align: center; font-size: 10px; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); border-radius: 6px; padding: 3px 0; }
.ac-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ac-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.ac-label mark { background: none; color: var(--accent-deep); font-weight: 700; }
.ac-sub { font-size: 11px; color: var(--sub); letter-spacing: .03em; }
.ac-price { font-size: 13px; font-weight: 600; flex: none; }
.ac-all { display: block; margin-top: 4px; padding: 12px 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.ac-all:hover { color: var(--ink); }

/* ---------- 필터 ---------- */
.toolbar2 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.result-n { color: var(--sub); font-size: 13px; margin-right: auto; }
.filter-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--card); }
.filter-btn.has { border-color: var(--ink); }
.filter-btn b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent-deep); color: #fff; font-size: 11px; }
.filter-panel { border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px 16px; margin-bottom: 16px; background: var(--card); animation: enter .2s ease; }
.fg { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fg h4 { margin: 0 0 10px; font-size: 13px; }
.fg h4 small { font-weight: 500; color: var(--accent-deep); margin-left: 4px; }
.fg-items { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; background: var(--card); }
.fchip span { color: var(--mute); font-size: 11px; }
.fchip:hover { border-color: var(--accent); }
.fchip.on { border-color: var(--accent-deep); background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.fp-foot { display: flex; gap: 8px; justify-content: flex-end; padding-top: 14px; }
.btn.sm { height: 40px; padding: 0 18px; font-size: 13px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
.afchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; font-weight: 600; }
.afchip span { font-size: 15px; line-height: 1; opacity: .7; }
.afchip:hover span { opacity: 1; }
.reset-link { font-size: 12px; color: var(--sub); text-decoration: underline; margin-left: 4px; }

/* ---------- 더 보기 ---------- */
.more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.more-btn { height: 48px; min-width: 240px; padding: 0 24px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; background: var(--card); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.more-btn span { color: var(--sub); font-weight: 400; font-size: 12px; }
.more-btn:hover { border-color: var(--ink); }

/* ---------- 장바구니 선택 ---------- */
.cart-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.cart-bar + .cart-list { border-top: 0; }
.check-label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; }
.check-label b { color: var(--sub); font-weight: 400; }
.check { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line2); display: grid; place-items: center; color: transparent; background: var(--card); transition: all .15s; }
.check.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.cart-list li > .check { margin-top: 2px; }
.cart-list li.off .thumb, .cart-list li.off .ci, .cart-list li.off .cp b { opacity: .45; }
.text-btn { font-size: 13px; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.text-btn:disabled { opacity: .4; cursor: default; }
.btn:disabled { opacity: .4; cursor: default; }

@media (max-width: 720px) {
  .ac { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) - 40px); }
  .filter-panel { padding: 4px 16px 14px; }
  .fp-foot .btn { flex: 1; }
  .more-btn { width: 100%; }
}
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
