/* 사이트픽 샘플몰 — 모바일 우선. 색은 모두 변수로 */
:root {
  --brand: #123c36;
  --brand-2: #1c564c;
  --brand-soft: #e7f0ed;
  --accent: #f2b84b;
  --accent-soft: #fdf2da;
  --accent-ink: #5c3d00;
  --bg: #ffffff;
  --bg-2: #f6f4ef;
  --bg-3: #efece5;
  --line: #e6e2da;
  --line-2: #d5d0c6;
  --ink: #161a19;
  --ink-2: #333836;
  --muted: #5e6462;
  --danger: #b3261e;
  --danger-soft: #fbeae8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22,26,25,.05), 0 8px 24px rgba(22,26,25,.07);
  --max: 1200px;
  --gutter: 16px;
  --hd-h: 112px;
  --tabbar-h: 60px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 8px); }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg);
  word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { flex: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 8px; }
main { min-height: 60vh; outline: none; }
.noscript { padding: 40px 16px; }

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); transition: transform .25s ease; }
.hd.hd-hidden { transform: translateY(-100%); }
.hd-row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand icons" "search search"; align-items: center; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; display: block; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand-sub { font-size: 13px; font-weight: 600; color: var(--muted); padding-left: 8px; border-left: 1px solid var(--line-2); }
.search { grid-area: search; position: relative; }
.search input {
  width: 100%; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg-2);
  padding: 0 16px 0 42px; font-size: 15px; transition: border-color .2s, background-color .2s;
}
.search input::placeholder { color: #7d827f; }
.search input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.search-ico { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.hd-icons { grid-area: icons; justify-self: end; display: flex; align-items: center; gap: 2px; }
.icon-btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 48px; min-height: 44px; padding: 2px 6px; text-decoration: none; color: var(--ink); border-radius: 10px; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.icon-label { font-size: 11px; font-weight: 600; color: var(--muted); }
.badge { position: absolute; top: 0; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.badge[hidden] { display: none; }
.hide-sm { display: none; }

.cats { border-top: 1px solid var(--line); }
.cats-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.cats-list::-webkit-scrollbar { display: none; }
.cats-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; white-space: nowrap; font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2.5px solid transparent; }
.cats-list a:hover { color: var(--ink); }
.cats-list a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Bottom tab bar (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabbar a[aria-current="page"] { color: var(--brand); }
.tabbar a[aria-current="page"] svg { stroke-width: 2.2; }
.tabbar .badge { top: 4px; right: calc(50% - 22px); }
body.has-buybar .tabbar { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 10px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; line-height: 1.25; transition: background-color .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-accent { background: var(--accent); color: #2a1d00; border-color: var(--accent); }
.btn-accent:hover { background: #e8a92f; border-color: #e8a92f; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-btn { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--ink); }

/* ---------- Sections ---------- */
.sec { padding: 28px 0; }
.sec + .sec { padding-top: 8px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.sec-head p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.sec-head .more { flex: none; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.sec-head .more:hover { color: var(--ink); }
.page-head { padding: 22px 0 6px; }
.page-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { padding: 0 2px; }

/* ---------- Hero carousel ---------- */
.hero { padding-top: 14px; }
.carousel { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 16px; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand); color: #fff; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,27,0) 25%, rgba(10,30,27,.82) 100%); }
.slide-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px 20px 46px; }
.slide-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--accent); color: #2a1d00; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.slide h2 { font-size: 25px; line-height: 1.25; font-weight: 800; letter-spacing: -.03em; }
.slide p { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.9); max-width: 30em; }
.slide .btn { margin-top: 12px; min-height: 42px; }
.car-ctrl { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; pointer-events: none; }
.car-ctrl > * { pointer-events: auto; }
.dots { display: flex; gap: 2px; }
.dot { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); transition: width .2s, background-color .2s; }
.dot[aria-current="true"]::before { width: 20px; border-radius: 4px; background: #fff; }
.car-btn { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); color: #fff; }
.car-btn + .car-btn { margin-left: 0; }
.car-btn svg { width: 16px; height: 16px; fill: currentColor; }
.car-count { font-size: 12px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }

/* USP strip */
.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.usp li { background: var(--bg-2); border-radius: 10px; padding: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.usp b { display: block; font-size: 14px; color: var(--brand); font-weight: 800; }

/* ---------- Category shortcuts ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 6px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.cat-tile .ic { width: 56px; height: 56px; border-radius: 18px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.cat-tile .ic img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.cat-tile:hover .ic { border-color: var(--ink); }
.cat-list-page { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cat-row { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.cat-row img { width: 96px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--bg-2); }
.cat-row b { font-size: 16px; }
.cat-row span { display: block; color: var(--muted); font-size: 13px; }
.cat-row:hover { border-color: var(--ink); }

/* ---------- Product rows & grid ---------- */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; }
.row::-webkit-scrollbar { display: none; }
.row > li { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }

.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pcard-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.pcard-img { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .4s ease; }
.pcard-img .alt { opacity: 0; }
@media (hover: hover) {
  .pcard:hover .pcard-img .alt { opacity: 1; }
  .pcard:hover .pcard-img img { transform: scale(1.03); }
}
.pcard-flags { position: absolute; left: 6px; top: 6px; z-index: 1; display: flex; gap: 4px; flex-wrap: wrap; }
.pcard-cat { font-size: 12px; color: var(--muted); font-weight: 600; }
.pcard-title { font-size: 14.5px; font-weight: 700; line-height: 1.38; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-price { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.pcard-price small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pcard-sub { font-size: 12px; color: var(--muted); margin-top: -4px; }
.pcard-info { display: flex; flex-direction: column; gap: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 700; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.tag-new { background: var(--accent); color: #2a1d00; }
.tag-shop { background: var(--brand); color: #fff; }
.tag-theme { background: var(--brand-soft); color: var(--brand); }
.tag-form { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.heart { position: absolute; right: 4px; top: 4px; z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.heart svg { width: 24px; height: 24px; fill: rgba(0,0,0,.25); stroke: #fff; stroke-width: 1.8; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); transition: fill .2s, transform .2s; }
.heart[aria-pressed="true"] svg { fill: #e5484d; stroke: #e5484d; }
.heart:active svg { transform: scale(.88); }

.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { font-weight: 500; opacity: .7; margin-left: 2px; }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.count b { color: var(--ink); }
.sort { display: flex; gap: 2px; }
.sort button { white-space: nowrap; min-height: 40px; padding: 0 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); border-radius: 6px; }
.sort button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty h2, .empty h1 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 12px; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.88); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.gallery-nav svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-nav.prev { left: 8px; } .gallery-nav.next { right: 8px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 76px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--bg-2); }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info { order: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-cat { font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.pd-cat:hover { color: var(--ink); text-decoration: underline; }
.pd-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.32; }
.pd-brand { font-size: 13px; color: var(--muted); }
.pd-desc { font-size: 15px; color: var(--ink-2); }
.pd-seo { margin-top: 6px; font-size: 13.5px; }
.pd-seo .link { color: var(--muted); font-weight: 600; }
.pd-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-price strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.pd-price span { font-size: 13px; color: var(--muted); }
.pd-actions-top { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-actions-top .btn { flex: 1 1 auto; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.swatch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); padding: 3px 8px 3px 3px; border: 1px solid var(--line); border-radius: 999px; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

.opt { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.opt-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.opt-sub { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-size: 14.5px; font-weight: 700; padding: 0; margin-bottom: 8px; }
legend small { font-weight: 500; color: var(--muted); }
.choices { display: grid; gap: 6px; }
.choice { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: var(--line-2); }
.choice input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.choice-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.choice-name { font-weight: 600; font-size: 14.5px; }
.choice-desc { font-size: 12.5px; color: var(--muted); }
.choice-price { flex: none; font-weight: 700; font-size: 13.5px; color: var(--brand); white-space: nowrap; padding-left: 6px; }
.in-sample { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; vertical-align: 1px; }
.included { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.included li { font-size: 12.5px; padding: 4px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.included li::before { content: "✓ "; color: var(--brand); font-weight: 800; }
.opt-note { font-size: 13px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
.opt-note[hidden] { display: none; }
.sample-set { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 12px; background: var(--bg-2); border-radius: 10px; font-size: 13px; margin-bottom: 10px; }
.estimate { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px 0 4px; border-top: 1.5px solid var(--ink); }
.estimate dt { font-size: 14px; font-weight: 700; }
.estimate dt small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.estimate dd { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--brand); text-align: right; }
.estimate dd small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.estimate-foot { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.pd-buttons { display: grid; grid-template-columns: 48px 1fr 1fr; gap: 8px; margin-top: 14px; }
.wish-btn { width: 48px; height: 48px; border: 1.5px solid var(--line-2); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.wish-btn svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.wish-btn[aria-pressed="true"] svg { fill: #e5484d; stroke: #e5484d; }

/* Live preview */
.live { order: 2; margin-top: 4px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.live-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.live-bar h2 { font-size: 15px; font-weight: 800; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 8px; padding: 3px; }
.seg button { min-height: 36px; padding: 0 12px; border-radius: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.live-stage { position: relative; display: flex; justify-content: center; padding: 14px 10px; overflow: hidden; }
.live-frame { position: relative; flex: none; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.live-frame.is-mobile { border-radius: 26px; box-shadow: 0 0 0 6px #1f2322, var(--shadow); }
.live-frame iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.live-cover { position: relative; display: block; width: 100%; aspect-ratio: 16/10; max-width: 560px; border-radius: 10px; overflow: hidden; }
.live-cover img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.live-cover span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; font-weight: 800; font-size: 16px; }
.live-cover span svg { width: 52px; height: 52px; fill: #fff; }
.live-note { font-size: 12.5px; color: var(--muted); padding: 0 12px 12px; text-align: center; }

/* Tabs (detail) */
.dtabs { margin-top: 28px; }
.tablist { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-bottom: 1px solid var(--line); }
.tablist button { min-height: 48px; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; padding: 0 4px; }
.tablist button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabpanel { padding: 20px 0 8px; }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { font-size: 17px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.02em; }
.tabpanel h3:not(:first-child) { margin-top: 24px; }
.tabpanel p { color: var(--ink-2); }
.screens { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; counter-reset: s; }
.screens li { counter-increment: s; display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--bg-2); border-radius: 8px; font-size: 14px; font-weight: 600; }
.screens li::before { content: counter(s, decimal-leading-zero); font-size: 12px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 30%; color: var(--muted); font-weight: 600; }
.steps { display: grid; gap: 10px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 14px 14px 14px 52px; border: 1px solid var(--line); border-radius: 10px; }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; font-size: 15px; }
.steps span { font-size: 14px; color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 52px; padding: 10px 0; cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq details p { padding: 0 0 14px; font-size: 14.5px; color: var(--ink-2); }
.callout { background: var(--bg-2); border-radius: 10px; padding: 14px; font-size: 14px; color: var(--ink-2); }
.callout + .callout { margin-top: 8px; }
.feat-suggest { display: grid; gap: 8px; }
.feat-suggest li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.feat-suggest li b { font-size: 14px; }
.feat-suggest li span { display: block; font-size: 12.5px; color: var(--muted); }

/* Mobile buy bar */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff; border-top: 1px solid var(--line); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.buybar-sum { font-size: 12px; color: var(--muted); line-height: 1.3; min-width: 0; }
.buybar-sum b { display: block; font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { min-height: 46px; padding: 0 12px; font-size: 14px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; padding-bottom: 24px; }
.cart-list { display: grid; gap: 12px; }
.citem { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: #fff; }
.citem-top { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 12px; }
.citem-top img { width: 96px; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; background: var(--bg-2); }
.citem-title { font-weight: 700; font-size: 15px; line-height: 1.35; text-decoration: none; color: var(--ink); }
.citem-title:hover { text-decoration: underline; }
.citem-cat { font-size: 12px; color: var(--muted); }
.citem-opts { margin-top: 10px; padding: 10px; background: var(--bg-2); border-radius: 8px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 4px; }
.citem-opts b { font-weight: 700; color: var(--ink); }
.citem-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.citem-price { font-weight: 800; font-size: 16px; }
.citem-btns { display: flex; gap: 6px; }
.citem-edit { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; align-self: start; }
.summary h2 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.summary dl { display: grid; gap: 8px; font-size: 14px; }
.summary dl div { display: flex; justify-content: space-between; gap: 10px; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 600; text-align: right; }
.summary .total { padding-top: 10px; margin-top: 4px; border-top: 1.5px solid var(--ink); }
.summary .total dt { color: var(--ink); font-weight: 800; }
.summary .total dd { font-size: 20px; font-weight: 800; color: var(--brand); }
.summary-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.summary .btn { width: 100%; margin-top: 14px; }
.summary-items { display: grid; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.summary-items li { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 10px; font-size: 13px; }
.summary-items img { width: 64px; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; }
.summary-items b { display: block; font-size: 13.5px; line-height: 1.35; }
.summary-items span { color: var(--muted); }

/* ---------- Checkout form ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.notice svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; margin-top: 1px; }
.notice b { display: block; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.form-card h2 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.req-note { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.req { color: var(--danger); font-weight: 700; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field label small { font-weight: 500; color: var(--muted); }
.control { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; }
.control:hover { border-color: var(--line-2); }
.control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.control[aria-invalid="true"] { border-color: var(--danger); }
textarea.control { min-height: 120px; resize: vertical; }
.hint { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }
.field-error { display: block; color: var(--danger); font-size: 13.5px; font-weight: 600; margin-top: 5px; }
.field-error[hidden] { display: none; }
.two { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14.5px; margin: 10px 0 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); background: var(--danger-soft); border-radius: 8px; padding: 10px 12px; font-weight: 600; }
.agree .choice { border: 0; padding: 4px 0; background: none !important; }

/* ---------- Done ---------- */
.done { text-align: center; padding: 36px 0 12px; }
.done .check { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.done .check svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done h1 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.done p { color: var(--muted); margin-top: 6px; }
.done-box { max-width: 560px; margin: 20px auto 0; text-align: left; }
.done-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Guide page ---------- */
.tier-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tier b { font-size: 16px; }
.tier span { font-size: 14px; color: var(--muted); }
.tier strong { font-size: 17px; color: var(--brand); margin-top: 4px; }
.tier em { font-style: normal; font-size: 13px; color: var(--muted); }
.feat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.feat-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.feat-table td:last-child { text-align: right; font-weight: 700; color: var(--brand); white-space: nowrap; }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--brand); color: #fff; }
.contact-card h2 { font-size: 19px; font-weight: 800; }
.contact-card p { color: rgba(255,255,255,.85); font-size: 14px; }
.contact-card .tel { font-size: 24px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.contact-card .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* SSR (no-JS / crawler) list */
.ssr { padding: 24px 0; }
.ssr h2 { font-size: 20px; margin-bottom: 12px; padding: 0 16px; }
.ssr ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 0 16px; }
.ssr a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; font-size: 13px; color: var(--muted); }
.ssr strong { color: var(--ink); font-size: 15px; }
.ssr img { aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; height: auto; }
.ssr ul + h2 { margin-top: 28px; }

/* ---------- Footer ---------- */
.ft { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 32px; font-size: 13px; color: var(--muted); }
.ft-inner { display: grid; gap: 10px; }
.ft-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.ft-brand .brand-mark { width: 26px; height: 26px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.ft-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.ft-links a:hover { text-decoration: underline; }
.ft-biz { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.ft-biz b { color: var(--ink); }
.ft-biz a { color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: rgba(22,26,25,.94); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; max-width: calc(100% - 32px); width: max-content; transition: opacity .25s, transform .25s; display: flex; gap: 12px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--accent); white-space: nowrap; }
body.has-buybar .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
  .row { grid-auto-columns: 31%; }
  .slide { aspect-ratio: 16 / 7; }
  .slide-body { padding: 28px 32px 52px; max-width: 70%; }
  .slide h2 { font-size: 32px; }
  .slide::after { background: linear-gradient(90deg, rgba(10,30,27,.85) 0%, rgba(10,30,27,.35) 60%, rgba(10,30,27,0) 100%); }
  .cat-grid { grid-template-columns: repeat(10, 1fr); }
  .two { grid-template-columns: 1fr 1fr; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-list-page { grid-template-columns: 1fr 1fr; }
  .screens { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hide-sm { display: inline-flex; }
}

/* ---------- 실제 작업 (홈) ---------- */
.proof-list { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.proof-list li { scroll-snap-align: start; }
.proof-list li { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.proof-list b { font-size: 15.5px; color: var(--ink); letter-spacing: -.01em; }
.proof-list li > span:last-child { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.proof-tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--bg-2); border-radius: 6px; padding: 2px 7px; }
.proof-how { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: var(--bg-2); }
.proof-how b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.proof-how span { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.proof-how .kakao-btn { align-self: flex-start; }
@media (min-width: 720px) {
  .proof-list { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); overflow: visible; }
  .proof-how { flex-direction: row; align-items: center; justify-content: space-between; }
  .proof-how .kakao-btn { align-self: center; flex: none; }
}

/* ---------- 카카오톡 채널 상담 (떠 있는 버튼) ---------- */
.kk-float { position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 62; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px 0 14px; border-radius: 23px; background: #FEE500; color: rgba(0,0,0,.85); font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.kk-float:hover { background: #f5dc00; }
.kk-float .kk-svg { width: 20px; height: 20px; }
body.has-buybar .kk-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
body.kk-hide .kk-float { display: none; }

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 24px; --hd-h: 113px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  body.has-buybar .tabbar { display: none; }
  .buybar { display: none; }
  .toast, body.has-buybar .toast { bottom: 24px; }
  .kk-float, body.has-buybar .kk-float { right: 24px; bottom: 24px; }
  .hd-row { grid-template-columns: auto minmax(0, 520px) 1fr; grid-template-areas: "brand search icons"; padding-top: 12px; padding-bottom: 12px; gap: 24px; }
  .search { margin-left: 16px; }
  .cats { border-top: 0; }
  .cats-list a { padding: 0 12px; font-size: 15px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
  .row { grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; margin: 0; padding: 0 0 4px; }
  .slide { aspect-ratio: 16 / 5.6; }
  .slide h2 { font-size: 38px; }
  .slide p { font-size: 16px; }
  .sec { padding: 40px 0; }
  .sec-head h2 { font-size: 23px; }
  .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
  .pd { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "gal info" "live info"; gap: 20px 40px; align-items: start; }
  .pd-gallery { grid-area: gal; }
  .pd-info { grid-area: info; }
  .live { grid-area: live; margin-top: 0; }

  .tablist { top: var(--hd-h); }
  .pd-title { font-size: 26px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
  .summary { position: sticky; top: calc(var(--hd-h) + 16px); }
  .tier-grid { grid-template-columns: repeat(5, 1fr); }
  .cat-list-page { grid-template-columns: repeat(3, 1fr); }
  .screens { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .page-head h1 { font-size: 28px; }
}

@media (max-width: 380px) {
  .brand-sub { display: none; }
  .usp li { font-size: 11.5px; padding: 8px; }
  .usp b { font-size: 13px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .tablist button { font-size: 13px; }
  .pd-buttons { grid-template-columns: 48px 1fr; }
  .pd-buttons .btn-accent { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .pcard:hover .pcard-img img { transform: none; }
}

/* ---------- 로그인 (카카오) · 마이 · 로그인 안내 시트 — 2026-10-12 ---------- */
/* 카카오 로그인 버튼: 카카오 디자인 가이드(바탕 #FEE500, 검은 말풍선 심볼, 글자 85% 검정, 모서리 12px) */
.kakao-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; background: #FEE500; color: rgba(0,0,0,.85); font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; border: 0; }
.kakao-btn:hover { background: #f5dc00; }
.kakao-btn .kk-svg { width: 20px; height: 20px; flex: none; }
.kakao-btn-block { position: relative; display: flex; width: 100%; min-height: 50px; }
.kakao-btn-block .kk-svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); }
.kakao-btn-sm { min-height: 44px; font-size: 14px; padding: 0 16px; }
.login-note { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
/* 구글 로그인 (브랜드 가이드: 흰 바탕, #747775 테두리, #1F1F1F 글자, 4색 G 로고) — 카카오 버튼과 같은 크기 */
.login-btns { display: grid; gap: 8px; }
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 12px; background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; }
.g-btn:hover { background: #f8f9fa; box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); }
.g-btn:active { background: #e8eaed; }
.g-btn .g-svg { width: 20px; height: 20px; flex: none; }
.g-btn-block { position: relative; display: flex; width: 100%; min-height: 50px; }
.g-btn-block .g-svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); }
.g-btn-sm { min-height: 44px; font-size: 14px; padding: 0 16px; }
.login-btns .kakao-btn-sm, .login-btns .g-btn-sm { display: flex; width: 100%; }
@media (min-width: 640px) { .login-banner .login-btns { grid-template-columns: 1fr 1fr; } }
.login-menu { width: min(300px, calc(100vw - 24px)); padding: 6px 10px 12px; }
.login-menu .me-name { padding: 10px 2px 10px; margin-bottom: 10px; }
.login-menu .me-name small { margin-top: 2px; }
.login-menu a.kakao-btn, .login-menu a.g-btn { padding: 0 18px; min-height: 48px; font-size: 14.5px; }
.login-menu a.kakao-btn { background: #FEE500; color: rgba(0,0,0,.85); }
.login-menu a.kakao-btn:hover { background: #f5dc00; }
.login-menu a.g-btn { background: #fff; color: #1f1f1f; }
.login-menu a.g-btn:hover { background: #f8f9fa; }
.login-menu .login-note a { display: inline; min-height: 0; padding: 0; font-size: inherit; color: var(--ink-2); text-decoration: underline; }
.login-menu .login-note a:hover { background: none; }
.g-badge { background: #fff; border: 1px solid #dadce0; }
.g-badge .g-svg { width: 20px; height: 20px; }
.login-note a { color: var(--ink-2); font-weight: 600; }

/* 헤더: 모바일은 아이콘+글자(다른 아이콘과 같은 모양), 640px 이상은 노란 버튼 */
.auth-slot { display: flex; align-items: center; min-width: 48px; }
.kakao-hd { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 48px; min-height: 44px; padding: 2px 6px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.kakao-hd .kk-sym { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: #FEE500; }
.kakao-hd .kk-svg { width: 16px; height: 16px; }
.kakao-hd .kk-full { display: none; }
.kakao-hd .kk-short { font-size: 11px; font-weight: 600; color: var(--muted); }
.kakao-hd:hover { background: var(--bg-2); }
@media (min-width: 640px) {
  .kakao-hd { flex-direction: row; gap: 6px; min-height: 40px; padding: 0 14px; margin-right: 6px; background: #FEE500; color: rgba(0,0,0,.85); border-radius: 12px; }
  .kakao-hd:hover { background: #f5dc00; }
  .kakao-hd .kk-sym { width: 18px; height: 18px; background: none; }
  .kakao-hd .kk-svg { width: 18px; height: 18px; }
  .kakao-hd .kk-full { display: inline; font-size: 14px; font-weight: 600; white-space: nowrap; }
  .kakao-hd .kk-short { display: none; }
}
.me-wrap { position: relative; }
.me-btn .icon-label { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.me-menu[hidden] { display: none; }
.me-name { padding: 10px 12px 8px; font-size: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.me-name small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.me-menu a, .me-menu button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink); text-align: left; }
.me-menu a:hover, .me-menu button:hover { background: var(--bg-2); }

/* 신청서 위 로그인 안내 */
.login-banner { border: 1px solid #f1e27a; background: #fffbe0; border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.login-banner-head { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.login-banner-head p { font-size: 14px; }
.login-banner-head b { display: block; }
.login-banner-head span { color: var(--muted); font-size: 13px; }
.login-banner-x { flex: none; width: 40px; height: 40px; margin: -8px -8px 0 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted); }
.login-banner-x:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.login-banner-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.login-filled { display: flex; gap: 8px; align-items: flex-start; background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.login-filled svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.agree-more { margin-top: 4px; font-size: 13px; }

/* 로그인 안내 시트 (모바일: 아래에서 올라옴 / 넓은 화면: 가운데) */
.sheet-layer { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(22,26,25,.45); opacity: 0; transition: opacity .2s; }
.sheet { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 18px 18px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.12); transform: translateY(24px); opacity: 0; transition: transform .2s ease, opacity .2s; }
.sheet-layer.open .sheet-backdrop { opacity: 1; }
.sheet-layer.open .sheet { transform: none; opacity: 1; }
.sheet h2 { font-size: 18px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; margin-bottom: 6px; }
.sheet > p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.sheet-later { width: 100%; margin-top: 12px; }
@media (min-width: 640px) {
  .sheet-layer { align-items: center; }
  .sheet { border-radius: 18px; padding: 26px 24px 22px; }
}

/* 마이 */
.login-card { max-width: 520px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; background: #fff; }
.login-card h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.login-perks { display: grid; gap: 8px; margin-bottom: 18px; font-size: 14.5px; }
.login-perks li { display: flex; gap: 8px; align-items: flex-start; }
.login-perks svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.my-account { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.my-who { display: flex; gap: 10px; align-items: center; }
.my-who b { display: block; font-size: 16px; }
.my-who small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.kk-badge { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #FEE500; flex: none; }
.kk-badge .kk-svg { width: 20px; height: 20px; }
.my-sync { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.my-reqs { display: grid; gap: 12px; }
.my-req { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.my-req-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.my-req-head span { color: var(--muted); font-variant-numeric: tabular-nums; }
.my-req-meta { margin-top: 8px; color: var(--muted); font-size: 13px; }
.my-empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; justify-items: start; }
.my-empty .btn { margin-top: 6px; }
.my-leave { color: var(--muted); font-size: 13.5px; }
.my-leave h2 { font-size: 15px; color: var(--ink-2); margin-bottom: 4px; }
.my-leave .text-btn { margin-top: 6px; color: var(--danger); }
/* 로그인 버튼이 들어가도 헤더 아이콘 글자가 줄바꿈되지 않게 */
.icon-label { white-space: nowrap; }
@media (min-width: 1024px) { .hd-row { grid-template-columns: auto minmax(0, 520px) minmax(max-content, 1fr); } }
