/* 피규어팝 쇼룸 (고객 화면). 디자인 시안 3종은 body[data-theme]로 바뀐다 — 최종은 사장님 선택 */
body.shop { margin: 0; background: var(--s-bg); color: var(--s-ink); font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.5; word-break: keep-all; }
body.shop a { color: inherit; }
/* 시안 A: 나이트 쇼룸 (포스터와 같은 어두운 바탕 + 노랑) */
body[data-theme="night"] { --s-bg: #f6f4ef; --s-ink: #17161c; --s-muted: #6b6776; --s-line: #e4e0d8; --s-card: #fff; --s-head: #121218; --s-head-ink: #f4f1ea; --s-head-muted: #b9b5c4; --s-accent: #f2c230; --s-accent-ink: #17161c; --s-chip: #fff; --s-radius: 12px; --s-photo: #fff; --s-buy: #f2c230; --s-buy-ink: #17161c; }
/* 시안 B: 갤러리 화이트 (하얀 바탕, 사진이 주인공, 얇은 선) */
body[data-theme="gallery"] { --s-bg: #ffffff; --s-ink: #111; --s-muted: #777; --s-line: #ececec; --s-card: #fff; --s-head: #ffffff; --s-head-ink: #111; --s-head-muted: #777; --s-accent: #111; --s-accent-ink: #fff; --s-chip: #fafafa; --s-radius: 4px; --s-photo: #f5f5f3; --s-buy: #111; --s-buy-ink: #fff; }
/* 시안 C: 팝 컬러 (밝은 노랑 머리 + 파랑 포인트, 둥근 모양) */
body[data-theme="pop"] { --s-bg: #fffaf0; --s-ink: #1b1b3a; --s-muted: #6a6a86; --s-line: #f0e6cf; --s-card: #fff; --s-head: #ffd84d; --s-head-ink: #1b1b3a; --s-head-muted: #5a5330; --s-accent: #2d5bff; --s-accent-ink: #fff; --s-chip: #fff; --s-radius: 18px; --s-photo: #fff; --s-buy: #2d5bff; --s-buy-ink: #fff; }

.sh { background: var(--s-head); color: var(--s-head-ink); padding: 18px 16px 12px; border-bottom: 1px solid var(--s-line); }
.sh-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; max-width: 1080px; margin: 0 auto; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand .ko { font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.brand .en { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--s-head-muted); }
body[data-theme="night"] .brand .en { color: var(--s-accent); }
.sh-note { font-size: 12px; color: var(--s-head-muted); white-space: nowrap; }
.sh-desc { max-width: 1080px; margin: 6px auto 0; font-size: 13px; color: var(--s-head-muted); }
.sh-search { display: flex; gap: 8px; max-width: 1080px; margin: 12px auto 0; }
.sh-search input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 0 12px; font: inherit; font-size: 16px; background: #fff; color: #111; }
.sh-search button { flex-shrink: 0; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--s-radius); background: var(--s-accent); color: var(--s-accent-ink); font: inherit; font-weight: 800; cursor: pointer; }
.sh-nav { display: flex; gap: 6px; overflow-x: auto; max-width: 1080px; margin: 12px auto 0; padding-bottom: 2px; scrollbar-width: none; }
.sh-nav::-webkit-scrollbar { display: none; }
.sh-nav a { flex-shrink: 0; min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 18px; font-size: 14px; text-decoration: none; color: var(--s-head-muted); border: 1px solid transparent; }
.sh-nav a.on { color: var(--s-head-ink); font-weight: 800; border-color: currentColor; }
body[data-theme="night"] .sh-nav a.on { background: var(--s-accent); color: var(--s-accent-ink); border-color: var(--s-accent); }

.sm, .pd { max-width: 1080px; margin: 0 auto; padding: 4px 16px 24px; }
.sec { margin-top: 22px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.sec-head h2 { margin: 0; font-size: 19px; font-weight: 900; }
.sec-head p { margin: 2px 0 0; font-size: 13px; color: var(--s-muted); }
.sec-more { font-size: 13px; color: var(--s-muted); text-decoration: none; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.pc { display: flex; flex-direction: column; background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-radius); overflow: hidden; text-decoration: none; }
.pc-img { position: relative; aspect-ratio: 1; background: var(--s-photo); }
.pc-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pc-badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: rgba(17,17,24,.72); color: #fff; }
.pc-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 3px; }
.pc-name { font-size: 14px; font-weight: 700; line-height: 1.35; height: 38px; overflow: hidden; }
.pc-price { font-size: 16px; font-weight: 900; }
.pc-feat { font-size: 12px; color: var(--s-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-more { font-size: 12px; font-weight: 700; color: var(--s-muted); margin-top: 2px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--s-line); background: var(--s-chip); text-decoration: none; font-size: 14px; }
.chip-link span { font-size: 12px; color: var(--s-muted); }
.cat-list { display: grid; gap: 0; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: var(--s-card); overflow: hidden; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 0 14px; border-top: 1px solid var(--s-line); text-decoration: none; }
.cat-list a:first-child { border-top: 0; }
.cat-list b { font-size: 13px; color: var(--s-muted); }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin: 16px 0 12px; }
.list-head h1 { margin: 0; font-size: 21px; font-weight: 900; }
.list-head p { margin: 2px 0 0; font-size: 13px; color: var(--s-muted); }
.sort select { min-height: 38px; border: 1px solid var(--s-line); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 14px; background: var(--s-card); color: var(--s-ink); }
.empty { padding: 28px 0; text-align: center; color: var(--s-muted); }
.back-all { margin-top: 18px; font-size: 14px; }
.sf { max-width: 1080px; margin: 24px auto 0; padding: 18px 16px 110px; border-top: 1px solid var(--s-line); font-size: 12px; color: var(--s-muted); }
.sf-store { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--s-radius); border: 1px solid var(--s-ink); color: var(--s-ink); text-decoration: none; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
/* 상품 상세 */
.pd-back { margin: 10px 0; font-size: 14px; } .pd-back a { text-decoration: none; color: var(--s-muted); }
.gallery-wrap { position: relative; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--s-radius); background: var(--s-photo); border: 1px solid var(--s-line); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: contain; scroll-snap-align: center; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: rgba(17,17,24,.65); color: #fff; }
@media (min-width: 900px) { .pd { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } .pd-back { grid-column: 1 / -1; } .pd > .sec { grid-column: 1 / -1; } }
.pd-info { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pd-badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--s-ink); }
.pd-info h1 { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.3; }
.pd-price { font-size: 24px; font-weight: 900; }
.pd-sold { background: var(--s-chip); border: 1px solid var(--s-line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.pd-spec { display: grid; grid-template-columns: 80px 1fr; margin: 6px 0 0; border-top: 1px solid var(--s-line); }
.pd-spec dt, .pd-spec dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--s-line); font-size: 14px; }
.pd-spec dt { color: var(--s-muted); }
.pd-market { font-size: 13px; background: var(--s-chip); border-radius: 8px; padding: 9px 11px; }
.pd-market span { color: var(--s-muted); }
.pd-intro { margin: 4px 0 0; font-size: 15px; line-height: 1.7; white-space: pre-line; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; } .pd-tags a { font-size: 13px; color: var(--s-muted); text-decoration: none; }
.pd-note { font-size: 12px; color: var(--s-muted); margin: 6px 0 0; }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--s-bg); border-top: 1px solid var(--s-line); z-index: 5; }
.buy { display: flex; justify-content: center; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto; min-height: 54px; border-radius: var(--s-radius); background: var(--s-buy); color: var(--s-buy-ink) !important; font-size: 17px; font-weight: 900; text-decoration: none; }
.buy span { font-weight: 700; opacity: .85; font-size: 15px; }
.buy.off { background: var(--s-line); color: var(--s-muted) !important; }
.sh-desc { font-size: 14px; line-height: 1.55; }
.all-btn { display: flex; justify-content: center; align-items: center; gap: 8px; max-width: 520px; margin: 8px auto 32px; min-height: 52px; border-radius: var(--s-radius); border: 1.5px solid var(--s-line); color: var(--s-ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.all-btn span { color: var(--s-muted); font-weight: 400; font-size: 14px; }
@media (max-width: 480px) { .sh-nav { gap: 2px; } .sh-nav a { padding: 0 9px; font-size: 13.5px; } }
