/* ============================================================
   components — 헤더 · 푸터 · 버튼 · 카드 · 서랍 · 모달 · 폼 등
   ============================================================ */

/* ============================================================
   엘리베이터 문 전환 (lift)
   html::before / ::after = 좌우 문, body::before = 층 표시
   ============================================================ */
html::before, html::after {
  content: ""; position: fixed; top: 0; bottom: 0; z-index: var(--z-lift); width: 50.2%;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(216, 189, 133, 0.16) calc(12.5% - 1px) 12.5%),
    linear-gradient(180deg, var(--night-2), var(--night));
  pointer-events: none; transition: transform 0.62s var(--ease-io); will-change: transform;
}
html::before { left: 0; transform: translateX(-101%); border-right: 1px solid var(--brass); box-shadow: inset -2.5rem 0 3rem -2rem rgba(0, 0, 0, 0.6); }
html::after { right: 0; transform: translateX(101%); border-left: 1px solid var(--brass); box-shadow: inset 2.5rem 0 3rem -2rem rgba(0, 0, 0, 0.6); }
html.lift-closing::before, html.lift-closing::after,
html.lift-closed::before, html.lift-closed::after { transform: none; }
html.lift-closed::before, html.lift-closed::after { transition: none; }
html.lift-opening::before, html.lift-opening::after { transition-delay: 0.2s; }
body::before {
  content: var(--lift-label, ""); position: fixed; inset: 0; z-index: calc(var(--z-lift) + 1);
  display: grid; place-items: center; pointer-events: none;
  font: italic 400 clamp(5rem, 17vw, 12.5rem) / 1 var(--font-en); color: var(--brass-2); letter-spacing: 0.02em;
  opacity: 0; transform: translateY(0.4em); transition: opacity 0.25s, transform 0.5s var(--ease-expo);
}
html.lift-closing body::before { opacity: 1; transform: none; transition: opacity 0.35s 0.42s, transform 0.7s var(--ease-expo) 0.42s; }
html.lift-closed body::before { opacity: 1; transform: none; transition: none; }
html.lift-closing, html.lift-closed { overflow: hidden; }

/* ============================================================
   헤더
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  transition: transform 0.6s var(--ease-expo);
}
html.hd-hidden .site-header { transform: translateY(-101%); }

.bar {
  height: var(--bar-h); display: flex; align-items: center; overflow: hidden;
  background: var(--night); color: var(--paper); font-size: 0.6875rem; letter-spacing: 0.16em;
  transition: background 0.4s;
}
.bar__track { display: flex; gap: 4.5rem; padding-left: 4.5rem; white-space: nowrap; animation: marquee 60s linear infinite; will-change: transform; }
.bar__track span { position: relative; }
.bar__track span::before { content: ""; position: absolute; left: -2.4rem; top: 50%; width: 0.3rem; height: 0.3rem; margin-top: -0.15rem; background: var(--brass-2); transform: rotate(45deg); }
.bar:hover .bar__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.hd {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: background 0.45s, border-color 0.45s, color 0.45s;
}
.hd__in {
  height: var(--header-h); width: min(100% - var(--gutter) * 2, 97.5rem); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.hd__nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.25rem); }
.hd__link {
  position: relative; display: inline-flex; align-items: baseline; gap: 0.45em; padding: 0.6rem 0;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; white-space: nowrap;
}
.hd__link i { font: italic 400 1rem/1 var(--font-en); letter-spacing: 0; color: var(--brass); }
.hd__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease-expo);
}
.hd__link:hover::after, .hd__link.is-current::after { transform: scaleX(1); transform-origin: left; }
.hd__logo { justify-self: center; font: 600 1.85rem/1 var(--font-en); letter-spacing: 0.06em; white-space: nowrap; transition: opacity 0.3s; }
.hd__logo:hover { opacity: 0.65; }
.hd__tools { display: flex; align-items: center; justify-content: flex-end; gap: 0.15rem; margin-right: -0.6rem; }
.hd__nav--sub { margin-right: clamp(0.5rem, 1.4vw, 1.25rem); }
.hd .hd__burger { display: none; justify-self: start; margin-left: -0.6rem; }

/* 메인 히어로 위에서는 투명 */
html:not(.is-scrolled) body.home .hd { background: transparent; border-color: transparent; color: var(--hero-fg); -webkit-backdrop-filter: none; backdrop-filter: none; }
html:not(.is-scrolled) body.home .bar { background: color-mix(in srgb, var(--night) 58%, transparent); }
html:not(.is-scrolled) body.home .hd__link i { color: var(--hero-ac, var(--brass)); }

@media (max-width: 1099px) {
  .hd .hd__nav, .hd .hd__wide { display: none; }
  .hd .hd__burger { display: inline-grid; }
  .hd__logo { font-size: 1.35rem; }
}

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  color: inherit; transition: background 0.3s, transform 0.3s var(--ease-out);
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn:active { transform: scale(0.88); }
.count {
  position: absolute; top: 0.3rem; right: 0.15rem; min-width: 1.05rem; height: 1.05rem; padding: 0 0.28rem;
  border-radius: 999px; background: var(--brass); color: #fff;
  font: 700 0.625rem/1.05rem var(--font-sans); letter-spacing: 0; text-align: center;
}
.count.is-bump { animation: bump 0.55s var(--ease-out); }
@keyframes bump { 35% { transform: scale(1.6); } }

/* ============================================================
   버튼 — 알약 모양 + 굴러 올라가는 라벨 + 아이콘에서 번지는 채움
   ============================================================ */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  --bg-h: var(--brass-deep); --fg-h: #fff; --ic-bg: var(--paper); --ic-fg: var(--ink); --ic-bg-h: #fff; --ic-fg-h: var(--brass-deep);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  min-height: 3.375rem; padding: 0 0.55rem 0 1.75rem;
  border: 1px solid var(--bd); border-radius: 999px; background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500; line-height: 1; letter-spacing: 0.14em; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), transform 0.3s var(--ease-out), opacity 0.3s;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--bg-h);
  clip-path: circle(0% at calc(100% - 1.7rem) 50%); transition: clip-path 0.7s var(--ease-expo);
}
.btn:not(:has(.btn__ic)) { padding-inline: 1.75rem; }
.btn:not(:has(.btn__ic))::before { clip-path: circle(0% at 50% 140%); }
.btn__label { display: inline-grid; overflow: hidden; line-height: 1.7; }
.btn__label span { grid-area: 1 / 1; transition: transform 0.65s var(--ease-expo); }
.btn__label span:last-child { transform: translateY(115%); }
.btn__ic {
  display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; overflow: hidden;
  background: var(--ic-bg); color: var(--ic-fg); transition: background 0.45s, color 0.45s;
}
.btn__ic .ic { grid-area: 1 / 1; width: 1rem; height: 1rem; transition: transform 0.6s var(--ease-expo); }
.btn__ic .ic:last-child { transform: translateX(-220%); }
.btn:active { transform: scale(0.965); }
.btn:focus-visible { outline-offset: 4px; }
.btn[disabled], .btn.is-disabled { opacity: 0.38; pointer-events: none; }

@media (hover: hover) {
  .btn:hover { color: var(--fg-h); border-color: var(--bg-h); }
  .btn:hover::before { clip-path: circle(160% at calc(100% - 1.7rem) 50%); }
  .btn:not(:has(.btn__ic)):hover::before { clip-path: circle(170% at 50% 140%); }
  .btn:hover .btn__label span:first-child { transform: translateY(-115%); }
  .btn:hover .btn__label span:last-child { transform: none; }
  .btn:hover .btn__ic { background: var(--ic-bg-h); color: var(--ic-fg-h); }
  .btn:hover .btn__ic .ic:first-child { transform: translateX(220%); }
  .btn:hover .btn__ic .ic:last-child { transform: none; }
}

.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); --bg-h: var(--ink); --fg-h: var(--paper); --ic-bg: var(--ink); --ic-fg: var(--paper); --ic-bg-h: var(--paper); --ic-fg-h: var(--ink); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); --bg-h: var(--brass-2); --fg-h: var(--ink); --ic-bg: var(--ink); --ic-fg: var(--paper); --ic-bg-h: var(--ink); --ic-fg-h: var(--brass-2); }
.btn--line { --bg: transparent; --fg: var(--paper); --bd: rgba(255, 255, 255, 0.4); --bg-h: var(--paper); --fg-h: var(--ink); --ic-bg: var(--paper); --ic-fg: var(--ink); --ic-bg-h: var(--ink); --ic-fg-h: var(--paper); }
.btn--sm { min-height: 2.75rem; padding-left: 1.3rem; font-size: 0.75rem; gap: 0.75rem; }
.btn--sm .btn__ic { width: 1.85rem; height: 1.85rem; }
.btn--sm:not(:has(.btn__ic)) { padding-inline: 1.3rem; }
.btn--lg { min-height: 3.875rem; font-size: 0.875rem; }
.btn--lg .btn__ic { width: 2.75rem; height: 2.75rem; }
.btn--block { display: flex; width: 100%; }
.btn--block:has(.btn__ic) { justify-content: space-between; }
.btn.is-done { --bg: var(--ok); --bd: var(--ok); --ic-fg: var(--ok); }

/* 텍스트 링크 + 화살표 */
.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem; padding-bottom: 0.4rem;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; white-space: nowrap;
}
.link-arrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; }
.link-arrow .ic { width: 1.05rem; height: 1.05rem; transition: transform 0.6s var(--ease-expo); }
@media (hover: hover) {
  .link-arrow:hover::after { animation: lineloop 0.9s var(--ease-expo); }
  .link-arrow:hover .ic { transform: translateX(0.4rem); }
}
@keyframes lineloop {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* 칩 (필터 · 탭) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; padding: 0 1.1rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  font-size: 0.78rem; letter-spacing: 0.1em; white-space: nowrap; cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.25s var(--ease-out);
}
.chip small { font-size: 0.68rem; opacity: 0.55; letter-spacing: 0; }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(0.94); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.chips__sep { width: 1px; align-self: stretch; margin: 0.4rem 0.35rem; background: var(--line-2); }

/* 알약 모양 정렬 선택 */
.sortsel { position: relative; display: inline-flex; align-items: center; }
.sortsel select {
  min-height: 2.5rem; padding: 0 2.5rem 0 1.15rem; border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  font-size: 0.78rem; letter-spacing: 0.08em; cursor: pointer; appearance: none; -webkit-appearance: none; transition: border-color 0.3s;
}
.sortsel select:hover { border-color: var(--ink); }
.sortsel .ic { position: absolute; right: 0.95rem; width: 0.9rem; height: 0.9rem; pointer-events: none; }

.badge {
  display: inline-block; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--white); color: var(--ink);
  font-size: 0.6rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.18em;
}
.badge--sale { background: var(--wine); color: #fff; }
.badge--dark { background: var(--ink); color: var(--paper); }

.tag {
  font-style: normal; font-size: 0.6rem; line-height: 1.5; letter-spacing: 0.14em; padding: 0.1rem 0.55rem;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--mute); white-space: nowrap;
}
.tag--ok { border-color: var(--ok); color: var(--ok); }
.tag--mine { border-color: var(--brass); color: var(--brass-deep); }
.tag--warn { border-color: var(--wine); color: var(--wine); }

/* 별점 (마스크 한 장으로 5개 표시) */
.stars {
  --v: 5; display: inline-block; flex: none; width: 5.4em; height: 1em; font-size: 0.8rem; vertical-align: -0.12em;
  background: linear-gradient(90deg, var(--star, var(--ink)) calc(var(--v) / 5 * 100%), var(--line-2) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 25'%3E%3Cpath d='M12.5 1.6l3.3 6.9 7.6 1-5.5 5.3 1.4 7.5-6.8-3.7-6.8 3.7 1.4-7.5L1.6 9.5l7.6-1z'/%3E%3C/svg%3E") 0 0 / 1.08em 1em repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 25'%3E%3Cpath d='M12.5 1.6l3.3 6.9 7.6 1-5.5 5.3 1.4 7.5-6.8-3.7-6.8 3.7 1.4-7.5L1.6 9.5l7.6-1z'/%3E%3C/svg%3E") 0 0 / 1.08em 1em repeat-x;
}
.stars--lg { font-size: 1.15rem; }

.dots { display: flex; gap: 0.35rem; }
.dot { display: block; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16); }
.dot.is-duo { background: linear-gradient(135deg, var(--c) 50%, var(--c2) 50%); }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.3rem 0.65rem; font-size: 0.6875rem; letter-spacing: 0.16em; color: var(--mute); }
.crumbs > * + *::before { content: "/"; margin-right: 0.65rem; opacity: 0.5; }
.crumbs a { transition: color 0.3s; }
.crumbs a:hover { color: var(--ink); }

/* ============================================================
   일러스트(.art) · 상품 카드
   ============================================================ */
.art { display: block; width: 100%; height: 100%; }
.art--photo { object-fit: cover; }

.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2.25rem, 3.6vw, 3.75rem) clamp(0.9rem, 1.8vw, 1.75rem); }
.pgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pgrid, .pgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pcard { position: relative; display: flex; flex-direction: column; gap: 0.95rem; min-width: 0; }
.pcard__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.pcard__link { position: absolute; inset: 0; display: block; }
.pcard__art { position: absolute; inset: 0; transition: opacity 0.7s var(--ease-out), transform 1.5s var(--ease-expo); }
.pcard__art--b { opacity: 0; transform: scale(1.07); }
.pcard__badges { position: absolute; left: 0.7rem; top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.3rem; max-width: calc(100% - 4rem); pointer-events: none; }

.wish-btn {
  position: absolute; right: 0.55rem; top: 0.55rem; z-index: 2; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--ink);
  background: color-mix(in srgb, var(--white) 80%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.wish-btn .ic { width: 1.15rem; height: 1.15rem; transition: fill 0.3s, stroke 0.3s; }
.wish-btn:hover { background: var(--white); }
.wish-btn:active { transform: scale(0.82); }
.wish-btn[aria-pressed="true"] .ic { fill: var(--wine); stroke: var(--wine); }
.wish-btn.is-pop .ic { animation: pop 0.6s var(--ease-out); }
.wish-btn.is-pop::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--wine); animation: ring 0.7s var(--ease-out) forwards; }
@keyframes pop { 0% { transform: scale(0.5); } 45% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes ring { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }

/* 카드 위에 올리면 올라오는 "바로 담기" */
.qa {
  position: absolute; left: 0.55rem; right: 0.55rem; bottom: 0.55rem; z-index: 2; display: grid; gap: 0.5rem; padding: 0.7rem;
  border-radius: 1.1rem; background: color-mix(in srgb, var(--white) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(calc(100% + 1rem)); transition: transform 0.65s var(--ease-expo), opacity 0.4s;
}
.qa__label { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--ink-2); text-align: center; }
.qa__row { display: flex; gap: 0.3rem; }
.qa__btn {
  flex: 1; min-width: 0; min-height: 2.25rem; padding: 0 0.3rem; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease-out);
}
.qa__btn--wide { letter-spacing: 0.14em; }
.qa__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.qa__btn:active { transform: scale(0.92); }
.qa__btn[disabled] { opacity: 0.35; text-decoration: line-through; pointer-events: none; }
.qa__btn.is-added { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover .pcard__art--a { transform: scale(1.04); }
  .pcard:hover .pcard__art--b { opacity: 1; transform: none; }
  .pcard:hover .qa, .pcard:focus-within .qa { opacity: 1; transform: none; }
}

.pcard__body { display: grid; gap: 0.2rem; }
.pcard__sub { font-size: 0.6875rem; letter-spacing: 0.16em; color: var(--mute); }
.pcard__sub i { font: italic 400 1.15em/1 var(--font-en); letter-spacing: 0; color: var(--brass); margin-right: 0.5em; }
.pcard__name { font: 500 0.9rem/1.65 var(--font-sans); letter-spacing: 0.06em; word-break: normal; text-wrap: wrap; }
.pcard__name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease-expo); }
.pcard:hover .pcard__name a { background-size: 100% 1px; }
.pcard__price, .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.65rem; font-size: 0.875rem; letter-spacing: 0.06em; }
.pcard__price b, .price b { font-weight: 500; }
.pcard__price s, .price s { color: var(--mute); font-size: 0.86em; }
.is-sale { color: var(--wine); }
.pcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 1.2rem; margin-top: 0.35rem; }
.pcard__rate { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.68rem; color: var(--mute); }
.pcard__rate .stars { font-size: 0.68rem; }

/* ============================================================
   층 페이지 상단 (fhero) — 어두운 띠 + 확대한 건물
   ============================================================ */
.fhero { position: relative; overflow: hidden; background: var(--night); color: var(--paper); }
.fhero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.25rem, 4.5vw, 4rem); }
.fhero .crumbs { color: rgba(246, 243, 238, 0.5); }
.fhero .crumbs a:hover { color: var(--paper); }
.fhero__head { display: flex; align-items: flex-end; gap: clamp(1rem, 2vw, 1.75rem); margin: 1.75rem 0 1.25rem; }
.fhero__no { font: italic 400 clamp(4.5rem, 9vw, 8rem) / 0.78 var(--font-en); color: var(--brass-2); }
.fhero__no i { font-size: 0.4em; margin-left: 0.06em; }
.fhero .eyebrow { color: rgba(246, 243, 238, 0.55); }
.fhero__title { font-size: clamp(1.45rem, 2.5vw, 2.15rem); margin-top: 0.35rem; }
.fhero__lead { max-width: 31rem; font-size: 0.875rem; color: rgba(246, 243, 238, 0.72); }
.fhero__lift { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.fhero__view { position: relative; aspect-ratio: 2.75 / 1; overflow: hidden; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 62%, var(--sky-3)); }
.fhero__view::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(201, 165, 105, 0.38); pointer-events: none; }
@media (max-width: 900px) {
  .fhero__in { grid-template-columns: 1fr; }
  .fhero__view { order: -1; margin-inline: calc(var(--gutter) * -1); aspect-ratio: 2.6 / 1; }
  .fhero__view::after { box-shadow: none; }
}

.lift-link {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1.15rem 0.5rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.1em;
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.3s var(--ease-out);
}
.lift-link .ic { width: 2rem; height: 2rem; padding: 0.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.1); transition: background 0.4s, color 0.4s, transform 0.6s var(--ease-expo); }
.lift-link span { display: grid; line-height: 1.4; }
.lift-link small { font-size: 0.58rem; letter-spacing: 0.18em; opacity: 0.6; }
.lift-link:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.lift-link:hover .ic { background: var(--ink); color: var(--paper); transform: scale(1.08); }
.lift-link:active { transform: scale(0.96); }

/* ============================================================
   건물 그림 (App.building) — 밝기 · 등불 · 날씨
   App.sky 가 <html> 에 내려 주는 변수를 읽어서 그립니다.
   (변수가 아직 없을 때의 기본값 = 불이 켜진 저녁)
   세 겹 : svg.bldg-sky(별 · 해 · 달 · 구름) → svg.bldg(건물 · 거리) → div.wx(비 · 눈 · 안개)
   계속 움직이는 것(구름 · 비 · 눈)을 건물과 따로 두어, 건물 전체를 매번 다시 그리지 않게 합니다.
   ============================================================ */
@property --sky-1 { syntax: "<color>"; inherits: true; initial-value: #151c46; }
@property --sky-2 { syntax: "<color>"; inherits: true; initial-value: #4f437e; }
@property --sky-3 { syntax: "<color>"; inherits: true; initial-value: #d57f6c; }
@property --hero-fg { syntax: "<color>"; inherits: true; initial-value: #f5efe3; }
/* 하늘빛이 부드럽게 바뀌는 것은 미리보기로 시각 · 날씨를 바꿀 때만 (App.sky.set 이 .sky-anim 을 잠깐 붙인다).
   30초마다의 갱신은 변화가 아주 작아서 그대로 바꾼다 — 그때마다 문서 전체를 프레임 단위로 다시 계산하지 않도록. */
html.sky-anim { transition: --sky-1 1.4s linear, --sky-2 1.4s linear, --sky-3 1.4s linear, --hero-fg 0.8s linear; }

.bldg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.bldg-sky { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bldg .floor { --w: var(--win1, 0.85); }
.bldg .floor[data-floor="2"] { --w: var(--win2, 0.85); }
.bldg .floor[data-floor="3"] { --w: var(--win3, 0.85); }
.bldg .floor[data-floor="4"] { --w: var(--win4, 0.85); }
.bldg .b-glass { fill: var(--glass, #1a2432); }
.bldg .b-lite { opacity: var(--w); transition: opacity 1.1s var(--ease-out); }
.bldg .b-in { opacity: calc(0.34 + 0.66 * var(--w)); transition: opacity 1.1s var(--ease-out); }
.bldg .b-refl { opacity: calc(var(--day, 0) * 0.5); }
.bldg .b-shade { fill: var(--shade-c, #0a1230); opacity: var(--shade, 0.6); transition: opacity 1.4s linear; }
.bldg .b-tint { fill: #ff9a52; opacity: calc(var(--warm, 0) * 0.2); mix-blend-mode: soft-light; pointer-events: none; }
.bldg .b-halo { opacity: calc(var(--w) * var(--lamp, 1) * 0.3); transition: opacity 1.1s var(--ease-out); }
.bldg .b-halo[data-floor="1"] { --w: var(--win1, 0.85); } .bldg .b-halo[data-floor="2"] { --w: var(--win2, 0.85); }
.bldg .b-halo[data-floor="3"] { --w: var(--win3, 0.85); } .bldg .b-halo[data-floor="4"] { --w: var(--win4, 0.85); }
.bldg .b-lit, .bldg .b-lamp-on { opacity: var(--lamp, 1); transition: opacity 1.6s linear; }
.bldg .b-lit .b-spill { opacity: var(--win1, 0.85); }
.bldg .b-far > path { fill: var(--far, #232a4c); transition: fill 1.4s linear; }
.bldg .b-far-lit { opacity: calc(var(--lamp, 1) * 0.85); }
.bldg-sky .b-stars { opacity: var(--stars, 0.7); transition: opacity 1.6s linear; }
.bldg-sky .b-sun { transform: translate(var(--sun-x, 800px), var(--sun-y, 1200px)); opacity: var(--sun-o, 0); transition: opacity 1.2s linear; }
.bldg-sky .b-moon { transform: translate(var(--moon-x, 1330px), var(--moon-y, 130px)); opacity: var(--moon-o, 1); transition: opacity 1.2s linear; }
.bldg-sky .b-moon-sh { transform: translateX(var(--moon-dx, -30px)); }
.bldg-sky .b-clouds { opacity: var(--cloud, 0.3); transition: opacity 1.6s linear; }
.bldg-sky .b-cloud path { fill: var(--cloud-c, #2a3050); transition: fill 1.4s linear; }
.bldg .b-leaf { fill: var(--leaf, #000); opacity: var(--foliage, 0); }
/* 거리의 사람 · 벤치는 그늘 위에 그려지므로, 어두워지면 따로 어둡게 */
.bldg .b-person, .bldg .b-bench { filter: brightness(calc(1 - var(--shade, 0.6) * 0.82)) saturate(calc(1 - var(--shade, 0.6) * 0.5)); }
.bldg .b-snowcap { opacity: var(--snow, 0); transition: opacity 2s linear; }
.bldg .b-wet { opacity: var(--wet, 0); transition: opacity 2s linear; }
.bldg .b-wet .b-spill { opacity: calc(0.35 + 0.65 * var(--win1, 0.85)); }
.bldg .b-wet .b-lit { opacity: var(--lamp, 1); }
.bldg .b-umb, .bldg .b-xmas { display: none; }
html[data-wx="rain"] .bldg .b-umb, html[data-wx="snow"] .bldg .b-umb { display: block; }
html[data-month="12"] .bldg .b-xmas { display: block; }
.bldg .b-hand { transform-origin: 820px 246px; }
.bldg .b-hand--h { transform: rotate(var(--clock-h, 300deg)); }
.bldg .b-hand--m { transform: rotate(var(--clock-m, 60deg)); }

/* 층 고르기 : 고른 층은 환해지고 나머지는 어두워진다 */
.bldg .dim { fill: #0a1020; opacity: 0; transition: opacity 0.6s var(--ease-out); pointer-events: none; }
.bldg .leader { opacity: 0.5; transition: opacity 0.5s; }
.bldg .floor-hit rect { cursor: pointer; }
.bldg .floor-hit:focus { outline: none; }
.bldg .floor-hit:focus-visible rect { stroke: var(--brass-2); stroke-width: 2; stroke-dasharray: 7 5; }
.has-active .bldg .floor:not(.is-active) .dim { opacity: 0.44; }
.bldg .floor.is-active, .bldg .b-halo.is-active { --w: 1; }
.bldg .b-halo.is-active { opacity: 0.5; }
.bldg .leader.is-active { opacity: 1; }
.bldg--crop .floor .dim { opacity: 0.36; }
.bldg[data-lit="1"] .floor[data-floor="1"] .dim, .bldg[data-lit="2"] .floor[data-floor="2"] .dim,
.bldg[data-lit="3"] .floor[data-floor="3"] .dim, .bldg[data-lit="4"] .floor[data-floor="4"] .dim { opacity: 0; }
.bldg[data-lit="1"] .floor[data-floor="1"] { --w: max(var(--win1, 0.85), 0.72); }
/* 1층을 확대한 그림에서는 모퉁이의 부티크(data-floor="p")도 함께 밝힌다 */
.bldg[data-lit="1"] .floor[data-floor="p"] .dim { opacity: 0; }
.bldg[data-lit="1"] .floor[data-floor="p"] { --w: max(var(--win1, 0.85), 0.72); }
.bldg[data-lit="2"] .floor[data-floor="2"] { --w: max(var(--win2, 0.85), 0.72); }
.bldg[data-lit="3"] .floor[data-floor="3"] { --w: max(var(--win3, 0.85), 0.72); }
.bldg[data-lit="4"] .floor[data-floor="4"] { --w: max(var(--win4, 0.85), 0.72); }

/* 움직임 : 구름 · 별 */
@keyframes b-drift { from { transform: translateX(-70px); } to { transform: translateX(70px); } }
@keyframes b-tw { 50% { opacity: 0.15; } }
.bldg-sky .b-cloud { animation: b-drift 70s ease-in-out infinite alternate; }
.bldg-sky .b-cloud.c2 { animation-duration: 95s; animation-direction: alternate-reverse; }
.bldg-sky .b-cloud.c3 { animation-duration: 120s; }
.bldg-sky .b-stars .tw { animation: b-tw 3.6s ease-in-out infinite; }
.bldg-sky .b-stars .tw:nth-child(16n) { animation-duration: 5.2s; animation-delay: 1.3s; }

/* 날씨 겹 (App.building.weather) : 비 · 눈 · 안개
   작은 무늬를 깐 면을 무늬 한 칸만큼 옮기기를 되풀이한다 (transform 만 바뀌므로 GPU 에서 처리) */
.wx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.wx i { position: absolute; display: none; will-change: transform; }
.wx .wx__fog {
  display: block; inset: 14% 0 0 0; will-change: auto; opacity: var(--fog, 0); transition: opacity 2s linear;
  background: linear-gradient(180deg, rgba(233, 237, 240, 0) 0%, rgba(233, 237, 240, 0.58) 52%, rgba(233, 237, 240, 0.94) 100%);
}
html[data-wx="rain"] .wx .wx__rain, html[data-wx="snow"] .wx .wx__snow { display: block; opacity: var(--fall, 0.8); }
.wx__rain {
  inset: -190px -70px 0 0; animation: wx-rain 0.52s linear infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='180'%3E%3Cpath d='M48 8l-8 24M19 70l-8 24M36 128l-8 24' fill='none' stroke='%23e6eef5' stroke-width='1.15' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E") 0 0 / 60px 180px;
}
.wx__rain--2 {
  inset: -280px -100px 0 0; animation: wx-rain2 0.82s linear infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='270'%3E%3Cpath d='M70 20l-5 15M22 108l-5 15M50 196l-5 15' fill='none' stroke='%23e6eef5' stroke-width='.85' stroke-linecap='round' opacity='.45'/%3E%3C/svg%3E") 0 0 / 90px 270px;
}
@keyframes wx-rain { to { transform: translate3d(-60px, 180px, 0); } }
@keyframes wx-rain2 { to { transform: translate3d(-90px, 270px, 0); } }
.wx__snow {
  --h: 260px; inset: calc(var(--h) * -1 - 10px) -40px 0 -40px;
  animation: wx-fall 11s linear infinite, wx-sway 7s ease-in-out infinite alternate;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' fill='%23fff' opacity='.92'%3E%3Ccircle cx='34' cy='40' r='3'/%3E%3Ccircle cx='150' cy='22' r='2.4'/%3E%3Ccircle cx='224' cy='96' r='2.8'/%3E%3Ccircle cx='92' cy='128' r='2.2'/%3E%3Ccircle cx='180' cy='178' r='3.2'/%3E%3Ccircle cx='40' cy='214' r='2.6'/%3E%3Ccircle cx='236' cy='236' r='2.2'/%3E%3C/svg%3E") 0 0 / 260px 260px;
}
.wx__snow--2 {
  --h: 190px; animation-duration: 16s, 9s; animation-direction: normal, alternate-reverse;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190' fill='%23fff' opacity='.85'%3E%3Ccircle cx='22' cy='30' r='1.8'/%3E%3Ccircle cx='96' cy='14' r='1.5'/%3E%3Ccircle cx='160' cy='58' r='1.9'/%3E%3Ccircle cx='58' cy='92' r='1.4'/%3E%3Ccircle cx='128' cy='120' r='1.7'/%3E%3Ccircle cx='30' cy='150' r='1.6'/%3E%3Ccircle cx='170' cy='170' r='1.4'/%3E%3C/svg%3E") 0 0 / 190px 190px;
}
.wx__snow--3 {
  --h: 130px; animation-duration: 23s, 12s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130' fill='%23fff' opacity='.7'%3E%3Ccircle cx='14' cy='18' r='1'/%3E%3Ccircle cx='66' cy='8' r='.9'/%3E%3Ccircle cx='108' cy='40' r='1.1'/%3E%3Ccircle cx='40' cy='62' r='.9'/%3E%3Ccircle cx='88' cy='84' r='1'/%3E%3Ccircle cx='20' cy='104' r='1.1'/%3E%3Ccircle cx='116' cy='118' r='.9'/%3E%3C/svg%3E") 0 0 / 130px 130px;
}
@keyframes wx-fall { to { transform: translate3d(0, var(--h), 0); } }
@keyframes wx-sway { from { translate: -18px 0; } to { translate: 18px 0; } }
@media (prefers-reduced-motion: reduce) {
  .bldg-sky .b-cloud, .bldg-sky .b-stars .tw, .wx i { animation: none; }
}

/* ============================================================
   서랍 · 검색 시트 · 스크림
   ============================================================ */
.scrim {
  position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1); background: rgba(12, 13, 17, 0.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease-out);
}
.scrim.is-on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; bottom: 0; z-index: var(--z-drawer); width: min(27rem, 100%);
  display: flex; flex-direction: column; background: var(--paper);
  transition: transform 0.75s var(--ease-expo), visibility 0s 0.75s; visibility: hidden; will-change: transform;
}
.drawer--right { right: 0; transform: translateX(102%); }
.drawer--left { left: 0; transform: translateX(-102%); }
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem 1rem 1.75rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font: 500 1.05rem/1 var(--font-en); letter-spacing: 0.26em; }
.drawer__head small { margin-left: 0.5rem; font: 400 0.72rem var(--font-sans); letter-spacing: 0.08em; color: var(--mute); }
.drawer__body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 0 1.75rem; }
.drawer__foot { display: grid; gap: 0.75rem; padding: 1.25rem 1.75rem 1.5rem; border-top: 1px solid var(--line); }
.drawer__foot:empty { display: none; }
.drawer__note { font-size: 0.7rem; color: var(--mute); line-height: 1.6; }

.cline { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); transition: opacity 0.25s, transform 0.3s var(--ease-out); }
.cline.is-leaving { opacity: 0; transform: translateX(1.5rem); }
.cline__art { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.cline__body { display: grid; align-content: start; gap: 0.15rem; padding-right: 1.9rem; }
.cline__name { font-size: 0.875rem; font-weight: 500; line-height: 1.6; }
.cline__opt { font-size: 0.74rem; color: var(--mute); }
.cline__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.7rem; }
.cline__price { font-size: 0.875rem; font-weight: 500; }
.cline__del { position: absolute; right: -0.6rem; top: 0.9rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: var(--mute); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease-expo); }
.cline__del .ic { width: 0.9rem; height: 0.9rem; }
.cline__del:hover { background: var(--paper-2); color: var(--ink); transform: rotate(90deg); }

.qty { display: inline-flex; align-items: center; height: 2.25rem; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { display: grid; place-items: center; width: 2.25rem; height: 100%; border-radius: 50%; transition: background 0.25s, transform 0.2s var(--ease-out); }
.qty button:hover { background: var(--paper-2); }
.qty button:active { transform: scale(0.82); }
.qty button[disabled] { opacity: 0.3; pointer-events: none; }
.qty .ic { width: 0.8rem; height: 0.8rem; }
.qty output { min-width: 1.6rem; text-align: center; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.qty--lg { height: 3.375rem; }
.qty--lg button { width: 3.125rem; }
.qty--lg output { min-width: 2rem; font-size: 0.9375rem; }

.freebar p { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; font-size: 0.75rem; letter-spacing: 0.06em; }
.freebar p b { font-weight: 700; }
.freebar .ic { width: 0.95rem; height: 0.95rem; color: var(--ok); }
.freebar__track { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.freebar__track i { display: block; height: 100%; border-radius: 3px; background: var(--brass); transition: width 0.9s var(--ease-expo); }
.freebar.is-done .freebar__track i { background: var(--ok); }

.sum { display: grid; gap: 0.55rem; }
.sum > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; }
.sum dt { color: var(--ink-2); }
.sum dd { font-weight: 500; white-space: nowrap; }
.sum .sum__minus dd { color: var(--wine); }
.sum .sum__total { align-items: baseline; margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sum .sum__total dt { color: var(--ink); font-weight: 500; }
.sum .sum__total dd { font: 500 1.6rem/1 var(--font-en); letter-spacing: 0.02em; }
.sum .sum__total small { font: 400 0.65rem var(--font-sans); color: var(--mute); margin-left: 0.4rem; }

/* 모바일 메뉴 */
.menu__floors a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.menu__floors i { font: italic 400 2.6rem/1 var(--font-en); color: var(--brass); min-width: 3.2rem; }
.menu__floors span { display: grid; font-size: 0.78rem; color: var(--ink-2); line-height: 1.6; }
.menu__floors b { font: 500 1rem/1.5 var(--font-en); letter-spacing: 0.2em; color: var(--ink); }
.menu__floors .ic { width: 1.1rem; height: 1.1rem; transition: transform 0.5s var(--ease-expo); }
.menu__floors i .ic { width: 2.1rem; height: 2.1rem; stroke-width: 1.1; }
.menu__floors a:hover .ic { transform: translateX(0.35rem); }
.menu__links { display: grid; padding: 1.25rem 0; }
.menu__links a { display: block; padding: 0.55rem 0; font-size: 0.9rem; }
.menu__foot { font-size: 0.72rem; color: var(--mute); gap: 0.1rem; }

/* 검색 시트 */
.sheet {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-drawer); max-height: 100svh; overflow: auto; background: var(--paper);
  transform: translateY(-102%); visibility: hidden; transition: transform 0.75s var(--ease-expo), visibility 0s 0.75s;
}
.sheet.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.sheet__in { padding-block: 1.5rem 3rem; }
.sheet__form { display: flex; align-items: center; gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--ink); }
.sheet__form > .ic { width: 1.4rem; height: 1.4rem; }
.sheet__form input { flex: 1; min-width: 0; padding: 0.6rem 0; border: 0; outline: 0; background: none; font: 400 clamp(1.05rem, 2.4vw, 1.7rem) / 1.4 var(--font-min); letter-spacing: 0.06em; }
.sheet__form input::placeholder { color: var(--line-2); }
.sheet__form input::-webkit-search-cancel-button { display: none; }
.sheet__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem 3.5rem; padding-top: 2rem; }
.sheet__col h3 { margin-bottom: 1rem; font: 500 0.6875rem var(--font-sans); letter-spacing: 0.2em; color: var(--mute); }
.sheet__col--full { grid-column: 1 / -1; }
.sheet__col .link-arrow { margin-top: 1.5rem; }
.sheet__none { padding: 2rem 0; color: var(--ink-2); }
.srows { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.4rem 1.25rem; }
.srow { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); align-items: center; gap: 1rem; padding: 0.5rem; margin: 0 -0.5rem; border-radius: 0.9rem; transition: background 0.3s; }
.srow:hover { background: var(--paper-2); }
.srow__art { aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.srow__txt { display: grid; line-height: 1.55; }
.srow__txt small { font-size: 0.62rem; letter-spacing: 0.14em; color: var(--mute); }
.srow__txt b { font-size: 0.84rem; font-weight: 500; }
.srow__txt em { font-style: normal; font-size: 0.78rem; }
@media (max-width: 720px) { .sheet__body { grid-template-columns: 1fr; } }

/* ============================================================
   토스트 · 모달 · 날아가는 썸네일
   ============================================================ */
.toasts { position: fixed; left: 50%; bottom: 1.5rem; z-index: var(--z-toast); display: grid; justify-items: center; gap: 0.5rem; width: max-content; max-width: calc(100vw - 2rem); transform: translateX(-50%); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1.3rem 0.8rem 1.05rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 0.8rem; line-height: 1.5; letter-spacing: 0.06em;
  box-shadow: 0 1rem 2.5rem -1rem rgba(0, 0, 0, 0.55); pointer-events: auto;
  opacity: 0; transform: translateY(1rem) scale(0.95); transition: opacity 0.4s, transform 0.7s var(--ease-expo);
}
.toast.is-in { opacity: 1; transform: none; }
.toast .ic { width: 1.05rem; height: 1.05rem; color: var(--brass-2); }
.toast a { margin-left: 0.3rem; padding-left: 0.9rem; border-left: 1px solid rgba(255, 255, 255, 0.25); color: var(--brass-2); white-space: nowrap; }
.toast--err { background: var(--err); }

.fly { position: fixed; z-index: var(--z-toast); overflow: hidden; border-radius: 0.5rem; pointer-events: none; transform-origin: center; box-shadow: 0 1rem 2rem -1rem rgba(0, 0, 0, 0.4); }

.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 1rem; visibility: hidden; transition: visibility 0s 0.4s; }
.modal.is-open { visibility: visible; transition-delay: 0s; }
.modal__scrim { position: absolute; inset: 0; background: rgba(12, 13, 17, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.4s; }
.modal__panel {
  position: relative; width: min(40rem, 100%); max-height: min(90svh, 58rem); overflow: auto; overscroll-behavior: contain;
  border-radius: 1.5rem; background: var(--paper); outline: 0;
  opacity: 0; transform: translateY(2rem) scale(0.98); transition: opacity 0.35s, transform 0.7s var(--ease-expo);
}
.modal.is-open .modal__scrim { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1rem 1.1rem 2rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 1.15rem; }
.modal__head small { display: block; font: 500 0.625rem var(--font-sans); letter-spacing: 0.26em; color: var(--mute); }
.modal__body { padding: 1.75rem 2rem 2.25rem; }
.modal--wide .modal__panel { width: min(52rem, 100%); }
.modal--confirm .modal__panel { width: min(26rem, 100%); }
.modal--photo .modal__panel { width: min(46rem, 100%); }
.modal--photo img { width: 100%; border-radius: 0.5rem; }
.confirm__text { font-size: 0.9rem; color: var(--ink-2); }
.confirm__acts { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.75rem; }
@media (max-width: 640px) {
  .modal { place-items: end center; padding: 0; }
  .modal__panel { border-radius: 1.5rem 1.5rem 0 0; max-height: 92svh; transform: translateY(100%); }
  .modal__head { padding-left: 1.25rem; }
  .modal__body { padding: 1.5rem 1.25rem 2rem; }
}

/* ============================================================
   폼
   ============================================================ */
.fields, .field__group { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.field__group { grid-column: 1 / -1; }
.field__group:empty { display: none; }
.field { grid-column: span 6; display: grid; align-content: start; gap: 0.45rem; min-width: 0; }
.field--half { grid-column: span 3; }
.field--third { grid-column: span 2; }
@media (max-width: 480px) { .field--third { grid-column: span 3; } }
.field__label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; }
.field__label em { font-style: normal; font-size: 0.6rem; font-weight: 500; line-height: 1.5; letter-spacing: 0.08em; padding: 0 0.45rem; border: 1px solid currentColor; border-radius: 999px; color: var(--wine); }
.field__label i { font-style: normal; font-size: 0.62rem; font-weight: 400; color: var(--mute); }
.field__input {
  width: 100%; min-height: 3.125rem; padding: 0.75rem 1rem; border: 1px solid var(--line-2); border-radius: 0.85rem; background: var(--white);
  font-size: 0.9375rem; line-height: 1.5; appearance: none; -webkit-appearance: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field__input::placeholder { color: #bcb6aa; }
.field__input:hover { border-color: var(--mute); }
.field__input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 24%, transparent); }
textarea.field__input { min-height: 7.5rem; resize: vertical; }
.select { position: relative; display: block; }
.select select { padding-right: 2.6rem; cursor: pointer; }
.select .ic { position: absolute; right: 0.95rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.field__hint { font-size: 0.7rem; line-height: 1.6; color: var(--mute); }
.field__err { font-size: 0.72rem; line-height: 1.5; color: var(--err); }
.field__err:empty { display: none; }
.is-invalid .field__input { border-color: var(--err); }

.check { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.8125rem; line-height: 1.7; cursor: pointer; flex-wrap: wrap; }
.check input {
  flex: none; width: 1.3rem; height: 1.3rem; margin: 0.1rem 0 0; border: 1px solid var(--line-2); border-radius: 0.4rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0 no-repeat;
  transition: background-color 0.25s, border-color 0.25s, background-size 0.35s var(--ease-out);
}
.check input:checked { background-color: var(--ink); border-color: var(--ink); background-size: 72%; }
.check > span { flex: 1; min-width: 0; }
.check .field__err { flex-basis: 100%; padding-left: 2.05rem; }
.check a { text-decoration: underline; text-underline-offset: 0.2em; }

/* 라디오 카드 */
.opts { display: grid; gap: 0.6rem; }
.opt {
  position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--line-2); border-radius: 1rem;
  background: var(--white); cursor: pointer; transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s var(--ease-out);
}
.opt input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--white); cursor: pointer; appearance: none; -webkit-appearance: none; transition: border-width 0.3s var(--ease-out), border-color 0.25s; }
.opt input:checked { border: 0.4rem solid var(--ink); }
.opt:hover { border-color: var(--mute); }
.opt:active { transform: scale(0.99); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.opt:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }
.opt__txt { display: grid; flex: 1; min-width: 0; line-height: 1.6; font-size: 0.875rem; font-weight: 500; }
.opt__txt small { font-size: 0.72rem; font-weight: 400; color: var(--mute); }
.opt__side { font-size: 0.85rem; white-space: nowrap; }

/* 아코디언 */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.2rem 0; list-style: none; cursor: pointer; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; transition: color 0.3s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 0.75rem; height: 0.75rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: background-size 0.5s var(--ease-expo), transform 0.6s var(--ease-expo);
}
.acc details[open] summary::after { background-size: 100% 1px, 1px 0; transform: rotate(180deg); }
.acc summary:hover { color: var(--brass-deep); }
.acc__body { padding: 0 0 1.5rem; font-size: 0.875rem; color: var(--ink-2); }
.acc details[open] .acc__body { animation: fadeUp 0.55s var(--ease-out); }

.empty { display: grid; justify-items: center; gap: 0.9rem; padding: 4rem 1rem; text-align: center; color: var(--ink-2); font-size: 0.875rem; }
.empty__en { font: italic 400 1.6rem/1.3 var(--font-en); color: var(--ink); letter-spacing: 0.02em; }

.demo-chip {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 40; display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.4rem 0.35rem 0.4rem;
  border-radius: 999px; background: color-mix(in srgb, var(--ink) 86%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--paper); font-size: 0.65rem; line-height: 1; letter-spacing: 0.08em;
}
.demo-chip span { padding: 0.3rem 0.55rem; border-radius: 999px; background: var(--brass); color: #fff; font-weight: 700; letter-spacing: 0.16em; }
.demo-chip button { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; opacity: 0.6; transition: opacity 0.3s, background 0.3s; }
.demo-chip button:hover { opacity: 1; background: rgba(255, 255, 255, 0.16); }
.demo-chip .ic { width: 0.7rem; height: 0.7rem; }
@media (max-width: 720px) { .demo-chip { left: 0.6rem; bottom: 0.6rem; font-size: 0; gap: 0.25rem; } .demo-chip span { font-size: 0.62rem; } .toasts { bottom: 3.4rem; } }

/* ============================================================
   리뷰 카드 · 요약 · 작성 폼
   ============================================================ */
.rcard { display: grid; gap: 0.75rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.rcard__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rcard__date { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--mute); }
.rcard__title { font-size: 1.05rem; line-height: 1.6; }
.rcard__body { font-size: 0.875rem; color: var(--ink-2); white-space: pre-line; }
.rcard__meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.rcard__meta li { padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--paper-2); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ink-2); }
.rcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-top: 0.25rem; }
.rcard__by { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--mute); }
.rcard__by b { font-weight: 500; color: var(--ink); }
.rcard__acts { display: inline-flex; align-items: center; gap: 0.9rem; }
.help-btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.95rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.06em; transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.25s var(--ease-out); }
.help-btn .ic { width: 0.95rem; height: 0.95rem; }
.help-btn b { font-weight: 500; }
.help-btn:hover { border-color: var(--ink); }
.help-btn:active { transform: scale(0.94); }
.help-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.help-btn.is-pop .ic { animation: pop 0.55s var(--ease-out); }
.text-btn { font-size: 0.72rem; color: var(--mute); text-decoration: underline; text-underline-offset: 0.25em; transition: color 0.3s; }
.text-btn:hover { color: var(--ink); }
.rcard__target { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: center; gap: 0.9rem; }
.rcard__thumb { display: grid; place-items: center; aspect-ratio: 3 / 4; width: 3rem; overflow: hidden; background: var(--paper-2); }
.rcard__target small { display: block; font-size: 0.62rem; letter-spacing: 0.14em; color: var(--mute); }
.rcard__target b { font-size: 0.82rem; font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease-expo); }
.rcard__target:hover b { background-size: 100% 1px; }
.rcard__photos { display: flex; gap: 0.5rem; }
.rcard__photos button { width: 5.25rem; aspect-ratio: 1; overflow: hidden; border-radius: 0.6rem; }
.rcard__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-expo); }
.rcard__photos button:hover img { transform: scale(1.08); }

.rsum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 1.5rem; background: var(--paper-2); }
.rsum__num { font: 400 clamp(3rem, 6vw, 4.5rem) / 1 var(--font-en); margin-bottom: 0.5rem; }
.rsum__num small { font-size: 0.26em; letter-spacing: 0.06em; color: var(--mute); margin-left: 0.5em; }
.rsum__count { margin-top: 0.45rem; font-size: 0.75rem; color: var(--mute); }
.rsum__bars { display: grid; gap: 0.4rem; width: 100%; max-width: 23rem; }
.rsum__bars li { display: grid; grid-template-columns: 0.8rem minmax(0, 1fr) 1.5rem; align-items: center; gap: 0.75rem; font-size: 0.72rem; line-height: 1; color: var(--ink-2); }
.rsum__track { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.rsum__track i { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.rsum__bars em { font-style: normal; text-align: right; color: var(--mute); }
@media (max-width: 720px) { .rsum { grid-template-columns: auto minmax(0, 1fr); } .rsum__act { grid-column: 1 / -1; } }

.rate__row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 0.1rem; }
.rate__stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rate__stars label { cursor: pointer; color: var(--line-2); transition: color 0.2s, transform 0.3s var(--ease-out); }
.rate__stars svg { width: 2.2rem; height: 2.2rem; fill: currentColor; }
.rate__stars label:hover { transform: scale(1.14) rotate(-6deg); }
.rate__stars input:checked ~ label, .rate__stars label:hover, .rate__stars label:hover ~ label { color: var(--brass); }
.rate__stars input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 0.25rem; }
.rate__text { font-size: 0.8rem; color: var(--ink-2); }

.rform__target { grid-template-columns: 3rem minmax(0, 1fr); align-items: center; gap: 0.9rem; padding: 0.75rem; border-radius: 1rem; background: var(--paper-2); }
.rform__target small { display: block; font-size: 0.62rem; letter-spacing: 0.14em; color: var(--mute); }
.rform__target b { font-size: 0.85rem; font-weight: 500; }
.rform__note { display: flex; gap: 0.5rem; margin-top: 1.5rem; font-size: 0.72rem; line-height: 1.7; color: var(--mute); }
.rform__note .ic { width: 0.95rem; height: 0.95rem; margin-top: 0.15rem; color: var(--brass); }
.rform__acts { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.upl { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.upl__add { display: grid; place-content: center; justify-items: center; gap: 0.3rem; width: 5.5rem; aspect-ratio: 1; border: 1px dashed var(--line-2); border-radius: 0.85rem; font-size: 0.65rem; color: var(--ink-2); cursor: pointer; transition: border-color 0.3s, background 0.3s; }
.upl__add:hover { border-color: var(--ink); background: var(--white); }
.upl__item { position: relative; width: 5.5rem; aspect-ratio: 1; overflow: hidden; border-radius: 0.85rem; }
.upl__item img { width: 100%; height: 100%; object-fit: cover; }
.upl__item button { position: absolute; right: 0.25rem; top: 0.25rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(19, 19, 20, 0.75); color: #fff; }
.upl__item .ic { width: 0.7rem; height: 0.7rem; }

/* ============================================================
   푸터
   ============================================================ */
.ft { padding: clamp(4.5rem, 8vw, 7.5rem) 0 2rem; background: var(--night); color: var(--paper); }
.ft__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: clamp(2.5rem, 6vw, 6rem); }
.ft__logo { font: 500 clamp(2.75rem, 6.2vw, 5.25rem) / 1 var(--font-en); letter-spacing: 0.04em; white-space: nowrap; }
.ft__tag { margin-top: 1.1rem; font-family: var(--font-min); letter-spacing: 0.34em; color: rgba(246, 243, 238, 0.6); }
.ft__news { max-width: 26rem; margin-top: 2.75rem; }
.ft__news label { display: block; margin-bottom: 0.8rem; font-size: 0.75rem; line-height: 1.8; color: rgba(246, 243, 238, 0.65); }
.ft__newsrow { display: flex; align-items: center; padding: 0.3rem 0.3rem 0.3rem 1.3rem; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; transition: border-color 0.3s; }
.ft__newsrow:focus-within { border-color: var(--brass-2); }
.ft__newsrow input { flex: 1; min-width: 0; height: 2.6rem; border: 0; outline: 0; background: none; font-size: 0.875rem; }
.ft__newsrow input::placeholder { color: rgba(246, 243, 238, 0.4); }
.ft__newsrow button { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--paper); color: var(--ink); transition: background 0.3s, transform 0.5s var(--ease-expo); }
.ft__newsrow button:hover { background: var(--brass-2); transform: rotate(-45deg); }
.ft__newsrow button:active { transform: rotate(-45deg) scale(0.9); }
.ft__newsrow .ic { width: 1rem; height: 1rem; }
.ft__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.ft__col h3 { margin-bottom: 1.3rem; font: 500 0.6875rem var(--font-sans); letter-spacing: 0.26em; color: var(--brass-2); }
.ft__col li + li { margin-top: 0.6rem; }
.ft__col a { font-size: 0.8125rem; color: rgba(246, 243, 238, 0.76); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color 0.3s, background-size 0.5s var(--ease-expo); }
.ft__col a:hover { color: #fff; background-size: 100% 1px; }
.ft__store { display: flex; flex-wrap: wrap; gap: 0.3rem 2.25rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.6rem; border-top: 1px solid var(--night-line); font-size: 0.75rem; color: rgba(246, 243, 238, 0.6); }
.ft__store b { font-weight: 500; letter-spacing: 0.18em; color: var(--paper); }
.ft__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 1.5rem; font-size: 0.6875rem; color: rgba(246, 243, 238, 0.48); }
.ft__bottom ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; }
.ft__bottom a { transition: color 0.3s; }
.ft__bottom a:hover { color: var(--paper); }
@media (max-width: 900px) { .ft__top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================
   페이지 머리말 (층 페이지가 아닌 일반 페이지)
   ============================================================ */
.phead { padding: clamp(2.25rem, 4.5vw, 4rem) 0 clamp(1.75rem, 3vw, 2.75rem); }
.phead__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 3rem; margin-top: 1.75rem; }
.phead__en { font: italic 400 clamp(1rem, 1.6vw, 1.25rem) / 1.3 var(--font-en); color: var(--brass-deep); letter-spacing: 0.04em; }
.phead__title { margin-top: 0.4rem; font-size: clamp(1.8rem, 4vw, 3.1rem); }
.phead__note { max-width: 30rem; font-size: 0.875rem; color: var(--ink-2); }
.phead--line { border-bottom: 1px solid var(--line); }

/* 어두운 안내 띠 (다른 층으로 유도) */
.cta-band { background: var(--night); color: var(--paper); }
.cta-band__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(3rem, 6vw, 5.5rem); }
.cta-band .cta-band__no { max-width: none; margin: 0; font: italic 400 clamp(4rem, 8vw, 7rem) / 0.8 var(--font-en); color: var(--brass-2); }
.cta-band__no i { font-size: 0.42em; }
.cta-band h2 { font-size: clamp(1.35rem, 2.6vw, 2.1rem); }
.cta-band p:not(.cta-band__no) { max-width: 36rem; margin-top: 0.6rem; font-size: 0.875rem; color: rgba(246, 243, 238, 0.7); }
@media (max-width: 860px) { .cta-band__in { grid-template-columns: auto minmax(0, 1fr); } .cta-band__in > :last-child { grid-column: 1 / -1; } }

/* 완료 화면 (주문 완료 · 문의 접수) */
.done { display: grid; justify-items: center; gap: 1.25rem; padding: clamp(2.5rem, 6vw, 5rem) 1.5rem; border-radius: 1.75rem; background: var(--white); text-align: center; }
.done__mark { display: grid; place-items: center; width: 4.75rem; height: 4.75rem; border-radius: 50%; background: var(--ink); color: var(--paper); animation: markIn 0.9s var(--ease-expo) both; }
.done__mark .ic { width: 2rem; height: 2rem; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.7s var(--ease-out) 0.35s forwards; }
@keyframes markIn { from { transform: scale(0.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__en { font: italic 400 1.15rem var(--font-en); color: var(--brass-deep); }
.done h1, .done h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.done__no { padding: 0.35rem 1.1rem; border-radius: 999px; background: var(--paper-2); font-size: 0.8rem; letter-spacing: 0.1em; }
.done__no b { margin-left: 0.6rem; font: 500 1rem var(--font-en); letter-spacing: 0.08em; }
.done__list { display: grid; gap: 0.6rem; width: min(100%, 27rem); margin: 0.75rem 0; padding: 1.5rem; border-radius: 1.25rem; background: var(--paper); text-align: left; font-size: 0.85rem; }
.done__list div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; }
.done__list dt { padding-top: 0.12rem; font-size: 0.74rem; color: var(--mute); }
.done__text { max-width: 31rem; font-size: 0.84rem; color: var(--ink-2); }
.done__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 0.5rem; }

/* 흰 패널 · 작은 상품 줄 (결제 요약 · 주문 내역) */
.panel { padding: clamp(1.5rem, 2.5vw, 2.25rem); border-radius: 1.75rem; background: var(--white); }
.panel__title { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; font-size: 1.25rem; }
.panel__title i { font: italic 400 1.5rem/1 var(--font-en); color: var(--brass); }
.panel__title small { margin-left: auto; font: 400 0.72rem var(--font-sans); letter-spacing: 0.06em; color: var(--mute); }
.mini { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.mini__art { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--paper-2); }
.mini__art .art { position: absolute; inset: 0; }
.mini__qty { position: absolute; right: -0.45rem; top: -0.45rem; z-index: 1; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 0.62rem/1.25rem var(--font-sans); letter-spacing: 0; text-align: center; }
.mini__txt { min-width: 0; line-height: 1.5; }
.mini__txt b { display: block; font-size: 0.82rem; font-weight: 500; }
.mini__txt small { font-size: 0.7rem; color: var(--mute); }
.mini__side { display: grid; justify-items: end; gap: 0.35rem; font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
.note-box { display: flex; gap: 0.7rem; padding: 0.95rem 1.15rem; border-radius: 1rem; background: color-mix(in srgb, var(--brass) 15%, transparent); font-size: 0.76rem; line-height: 1.75; color: var(--ink-2); }
.note-box .ic { width: 1rem; height: 1rem; margin-top: 0.2rem; color: var(--brass-deep); }

/* 칸이 많은 표 (실 굵기 · 바늘 호수 안내) : 좁은 화면에서는 옆으로 밀어 본다 */
.table-scroll { overflow-x: auto; margin-top: 0.75rem; -webkit-overflow-scrolling: touch; }
.table-scroll .table { min-width: 30rem; }
.table-scroll th, .table-scroll td { white-space: nowrap; }

/* 리뷰 2단 레이아웃 (왼쪽 요약 고정 + 오른쪽 목록) */
.rv-layout { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.rv-layout .rsum { position: sticky; top: calc(var(--header-h) + var(--bar-h) + 1.5rem); grid-template-columns: 1fr; gap: 1.5rem; }
.rv-layout .rsum__bars { max-width: none; }
.rlist > .rcard:first-child { padding-top: 0; }
.rlist__more { display: flex; justify-content: center; margin-top: 2.25rem; }
@media (max-width: 900px) {
  .rv-layout { grid-template-columns: 1fr; }
  .rv-layout .rsum { position: static; grid-template-columns: auto minmax(0, 1fr); }
  .rv-layout .rsum__act { grid-column: 1 / -1; }
}
