@charset "utf-8";
/* =====================================================================
   라이브몰 화면(밝음/어두움) 마무리 · theme-light.css   (손님 화면 base.html · 관리자 admin/base.html 이 페이지 CSS 뒤에 읽는다)
   관리자 상단 바의 해/달 단추도 이 .thm 그대로(놓는 자리·크기만 admin.css .atop .thm — 2026-11-22)
   (파일 이름은 예전 그대로 — 이제 '밝은 덮어쓰기'가 아니라 해/달 단추와 두 화면 공통 마무리)
   - 가게 기본 = 밝은 화면(시안 A) = tokens.css 의 :root. 어두운 화면(시안 B) = <html data-theme="dark"> — 값은 tokens.css 가 바꾼다.
   - 화면 CSS 는 토큰만 쓰면 두 화면에 저절로 맞는다. 색을 박아 둔 곳은 그 화면 CSS 에서 토큰으로 고칠 것
     (예전처럼 여기서 남의 화면 선택자를 덮지 않는다 — 화면 담당과 겹치지 않게).
   - 영상·사진 위에 얹는 것 = class="on-dark" (tokens.css '어두운 섬').
   ===================================================================== */

/* 1. 해/달 단추 — 아이콘 = 누르면 될 화면(밝은 화면 = 달 · 어두운 화면 = 해) ------------------ */
.thm{width:44px;height:44px;color:var(--text)}
.thm::before{content:"";position:absolute;inset:6px;border-radius:50%;border:1px solid var(--border);transition:border-color var(--t-fast)}
.thm:hover::before{border-color:var(--text-3)}
.thm .ico{width:20px;height:20px}
.thm__moon{fill:currentColor;stroke:none}
.thm__sun circle{fill:currentColor}
.thm__sun{display:none}
[data-theme="dark"] .thm__moon{display:none}
[data-theme="dark"] .thm__sun{display:block}
/* PC 머리: 작게(36px) — 앞뒤 아이콘 단추와 줄 맞춤 */
@media (min-width:900px){.hd__acts .thm{width:36px;height:36px;margin:0 2px}.hd__acts .thm::before{inset:0}}
/* 서랍 머리(폰): 닫기 단추 옆 */
.drawer__top .thm::before{inset:4px}
/* 주문 흐름 머리(.coh): 안전 결제 · 장바구니 사이 */
.coh__thm{margin-left:auto;margin-right:-6px}
.coh__thm~.coh__cart{margin-left:0}
.coh__thm:has(~.coh__cart){margin-right:0}
@media (min-width:900px){.coh--safe .coh__thm{margin-left:8px}}
/* 바꾸는 순간엔 transition 을 끈다(js/theme.js 가 html.thm-swap 을 두 프레임 붙였다 뗀다) */
.thm-swap *,.thm-swap *::before,.thm-swap *::after{transition:none!important}

/* 2. 어두운 화면에서만 — 그림자는 검정 바탕에선 안 보이니 선으로 ---------------------------------- */
[data-theme="dark"] .hd.is-stuck{box-shadow:0 1px 0 var(--hd-line)}
[data-theme="dark"] .pcard__img img{filter:none}
[data-theme="dark"] .skel::after{background:linear-gradient(90deg,transparent,rgba(255,255,255,.06),transparent)}
