/* ==========================================================================
   크리에이터 틀(creator-shop-core) — 구조 CSS. 색·라운드·그림자·글꼴은 스킨(테마 skin.css)의 변수로만 쓴다
   기준: specs/2026-10-05-influencer-gongu/design-v2.md §1. 색은 대표 색(--fh-brand)에서 파생한다 — 이 파일에 브랜드 색을 직접 쓰지 않는다
   (괄호 안 값은 대표 색 변수가 없을 때의 기본값).
   1. Variables  2. Reset/Base  3. Shell(PC 카드 + 앱 480)  4. Header·Drawer  5. Home sections  6. Cards  7. Pages  8. Card sheet·Tabbar(모바일)  9. Footer  10. Responsive
   ========================================================================== */

/* 1. Variables — 틀 고정 치수(스킨 값은 skin.css) */
:root {
	--app-w:        480px;
	--pad:          15px;
	--head-h:       60px;
	--tab-h:        64px;
	/* 옛 마이페이지 CSS(mypage.css) 호환 */
	--rn-ink: var(--c-ink); --rn-muted: var(--c-muted); --rn-line: var(--c-line); --rn-warm: var(--c-app-bg); --rn-dark: var(--c-ink);
	--font-en: var(--font); --pad-x: var(--pad); --c-gold: var(--c-brand); --c-gold-ink: var(--c-brand); --c-gold-lite: var(--c-line);
}

/* 2. Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; } /* 화면 밖에 대기하는 장바구니 서랍(FluxShop) 등이 가로 스크롤을 만들지 않게 */
body { font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--c-ink); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: fixed; top: -64px; left: 8px; z-index: 300; padding: 10px 16px; background: var(--c-ink); color: var(--c-white); border-radius: 8px; }
.skip-link:focus { top: 8px; }
.cs-ico { flex: none; }
/* FluxShop 화면(상품·장바구니·주문서·마이페이지) 버튼 색 = 대표 색 */
body.cs-body { --fhs-primary: var(--c-brand); }

/* 3. Shell — PC: 카드 640(고정) + 앱 480. 1440 에서 좌우 가운데 정렬(카드 640 + 앱 480 = 1120) */
.cs-shell { display: grid; grid-template-columns: minmax(0, 640px) var(--app-w); justify-content: center; min-height: 100vh; }
.cs-app { position: relative; width: var(--app-w); min-height: 100vh; background: var(--c-app-bg); box-shadow: var(--sh-app); }
.cs-main { min-height: 60vh; }

/* 크리에이터 카드(PC) — 미니멀: 프로필 · SNS 로고 · 검색 · 키워드 · 쿠폰 · 링크 */
.cs-card { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; padding: 28px 32px; scrollbar-width: none; }
.cs-card::-webkit-scrollbar { display: none; }
.cs-card__grip, .cs-card__close { display: none; }
.cs-card__in { width: 100%; max-width: 400px; margin: auto; display: flex; flex-direction: column; align-items: stretch; gap: 18px; text-align: center; }
.cs-card__profile { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cs-avatar { display: block; border-radius: 50%; object-fit: cover; background: var(--c-white); }
.cs-avatar--init { display: inline-flex; align-items: center; justify-content: center; background: var(--c-brand); color: var(--c-brand-ink); font-weight: 700; font-size: 15px; }
.cs-card__ava { position: relative; display: inline-block; margin-bottom: 8px; }
.cs-card__avatar { width: 88px; height: 88px; box-shadow: var(--sh-avatar); font-size: 32px; }
.cs-livebadge--ava { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 2px solid var(--c-white); height: 20px; }
.cs-card__name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.cs-card__intro { max-width: 320px; font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--c-muted); }
.cs-card__sns { display: flex; gap: 10px; margin-top: 10px; }
.cs-card__sns a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-card); background: var(--c-white); box-shadow: var(--sh-xs); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.cs-card__sns a:hover { transform: translateY(-2px); box-shadow: var(--sh-hover); }
.cs-card__search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: var(--r-field); background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-line); color: var(--c-muted); }
.cs-card__search:focus-within { box-shadow: inset 0 0 0 2px var(--c-brand); }
.cs-card__search input { flex: 1; min-width: 0; border: 0; background: none; font: 500 15px var(--font); color: var(--c-ink); outline: none; }
.cs-card__kw { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: -6px; }
.cs-card__kw a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-tile); background: var(--c-white-a70); font-size: 13px; font-weight: 600; color: var(--c-muted); transition: background-color .2s var(--ease), color .2s var(--ease); }
.cs-card__kw a:hover { background: var(--c-brand); color: var(--c-brand-ink); }
.cs-card__coupons { display: grid; gap: 8px; }
.cs-cpn { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 14px 0 18px; border-radius: var(--r-card); background: var(--c-white); box-shadow: var(--sh-sm); text-align: left; transition: transform .2s var(--ease); }
.cs-cpn:hover { transform: translateY(-1px); }
.cs-cpn__v { flex: none; min-width: 56px; font-size: 24px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--c-hot); }
.cs-cpn--2 .cs-cpn__v { color: var(--c-go); font-size: 20px; }
.cs-cpn__t { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-cpn__go { flex: none; padding: 7px 14px; border-radius: var(--r-tile); background: var(--c-ink); color: var(--c-white); font-size: 12px; font-weight: 700; }
.cs-cpn--1 .cs-cpn__go { background: var(--c-brand); }
.cs-card__links { display: grid; margin-top: 4px; text-align: left; }
.cs-card__links li + li { border-top: 1px solid var(--c-shade-a10); }
.cs-card__links a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 2px; transition: transform .2s var(--ease); color: var(--c-ink); }
.cs-card__links a:hover { transform: translateX(3px); }
.cs-card__links .cs-ico:last-child { margin-left: auto; color: var(--c-sub); }
.cs-lk__ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--c-white); color: var(--c-brand); box-shadow: var(--sh-xs); }
.cs-lk__body { display: flex; flex-direction: column; min-width: 0; }
.cs-lk__body b { font-size: 14px; font-weight: 700; }
.cs-lk__body small { font-size: 12px; font-weight: 500; color: var(--c-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* 4. Header · Drawer (높이 60) */
.cs-head { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; height: var(--head-h); padding: 0 var(--pad); background: var(--c-white); }
.cs-head__home { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; }
.cs-head__home .cs-avatar { width: 32px; height: 32px; }
.cs-head__name { overflow: hidden; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; text-overflow: ellipsis; }
.cs-head__util { display: flex; align-items: center; margin-right: -10px; }
.cs-head__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.cs-head__count { position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--c-brand); color: var(--c-brand-ink); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; }

/* 5. Home sections — 흰 섹션, 섹션 사이 15, 안쪽 15(B) */
.cs-sec { margin-top: 15px; padding: 15px 0; background: var(--c-white); }
.cs-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 var(--pad); margin-bottom: 15px; }
.cs-sec__title { font-size: 24px; font-weight: 700; line-height: 1.4; }
.cs-sec__title--sm { font-size: 16px; font-weight: 600; }
.cs-sec__sub { margin: 20px var(--pad) 10px; font-size: 16px; font-weight: 700; }
.cs-sec__more { color: var(--c-brand) !important; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-size: 13px; color: var(--c-muted); }
.cs-accent { color: var(--c-brand); }
.cs-arrows { display: flex; }
.cs-arrows button { width: 36px; height: 44px; font-size: 26px; line-height: 1; color: var(--c-ink); }
.cs-arrows button:disabled { color: var(--c-line); }

/* S1 배너 480×600 · 390×488 (비율 4:5) — 플럭스배너(.fxbn)를 앱 폭에 맞춰 입힌다. 라이브 슬라이드(.cs-live)는 틀이 끼운다. */
.cs-banner { position: relative; overflow: hidden; background: var(--c-ink); }
.cs-banner .fxbn { --fxbn-height: 0px; --fxbn-text: var(--c-white); --fxbn-shade: var(--c-black-a40); --fxbn-accent: var(--c-ink); min-height: 0; }
.cs-banner .fxbn__slide { position: relative; min-height: 0; aspect-ratio: 4 / 5; align-items: flex-end; overflow: hidden; background: color-mix(in srgb, var(--c-brand) 70%, var(--c-black)); }
.cs-banner .fxbn__bg::after { background: linear-gradient(180deg, var(--c-black-a00) 40%, var(--c-black-a62)); }
.cs-banner .fxbn__inner { max-width: none; margin: 0; padding: 0 var(--pad) 44px; }
.cs-banner .fxbn__eyebrow { margin: 0; font-size: 12px; font-weight: 700; line-height: 12px; letter-spacing: 0.04em; }
.cs-banner .fxbn__title { margin-top: 10px; font-size: 32px; font-weight: 700; line-height: 38.4px; letter-spacing: -0.02em; }
.cs-banner .fxbn__desc { margin-top: 8px; max-width: none; font-size: 16px; font-weight: 400; line-height: 19.2px; }
.cs-banner .fxbn__cta { gap: 8px; margin-top: 14px; }
.cs-banner .fxbn__btn { min-height: 44px; padding: 8px 18px; border: 0; border-radius: var(--r-pill); background: var(--c-brand); color: var(--c-brand-ink); font-size: 13px; font-weight: 700; transition: filter .2s var(--ease); }
.cs-banner .fxbn__btn--secondary { background: var(--c-white); color: var(--c-ink); }
.cs-banner .fxbn__btn:hover, .cs-banner .fxbn__btn:focus-visible { background: var(--c-brand); color: var(--c-brand-ink); filter: brightness(1.08); }
.cs-banner .fxbn__btn--secondary:hover, .cs-banner .fxbn__btn--secondary:focus-visible { background: var(--c-white); color: var(--c-ink); }
/* 조작: 이전·다음은 숨기고(스와이프·점으로 충분), 정지만 작게 오른쪽 위, 점은 아래 가운데 */
.cs-banner .fxbn__controls { top: 8px; right: 8px; bottom: auto; }
.cs-banner .fxbn__ctl { width: 44px; height: 44px; border-color: transparent; background: transparent; }
.cs-banner .fxbn__ctl::before { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--c-black-a40); }
.cs-banner .fxbn__ctl { position: relative; }
.cs-banner .fxbn__ctl .fxbn__icon { position: relative; transform: scale(.8); }
.cs-banner .fxbn__ctl:hover { background: transparent; }
.cs-banner [data-fxbn-prev], .cs-banner [data-fxbn-next] { display: none; }
.cs-banner .fxbn__dots { left: 0; right: 0; bottom: 4px; justify-content: center; gap: 0; }
.cs-banner .fxbn__dot { width: 28px; height: 36px; }
.cs-banner .fxbn__dot::before { width: 7px; height: 7px; border-color: var(--c-white); opacity: .7; }
.cs-banner .fxbn__dot[aria-current="true"]::before { opacity: 1; }
/* 라이브 슬라이드 */
.cs-live { position: absolute; inset: 0; color: var(--c-white); }
.cs-live__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-live::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, var(--c-black-a00), var(--c-black-a62)); }
.cs-live__text { position: absolute; left: var(--pad); right: var(--pad); bottom: 44px; z-index: 1; }
.cs-live__eyebrow { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; line-height: 12px; letter-spacing: 0.04em; }
.cs-live__title { margin-top: 10px; font-size: 32px; font-weight: 700; line-height: 38.4px; letter-spacing: -0.02em; }
.cs-live__desc { margin-top: 8px; font-size: 16px; font-weight: 400; line-height: 19.2px; }
.cs-live__count { margin-top: 10px; font-size: 14px; font-weight: 500; }
.cs-live__count b { margin-left: 2px; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cs-live__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cs-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: var(--r-pill); background: var(--c-brand); color: var(--c-brand-ink); font-size: 13px; font-weight: 700; transition: filter .2s var(--ease); }
.cs-pill:hover { filter: brightness(1.08); }
.cs-pill--light { background: var(--c-white); color: var(--c-ink); }
.cs-livebadge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; background: var(--c-hot); color: var(--c-white); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; white-space: nowrap; animation: cs-pulse 1.6s ease-in-out 3; } /* 처음 몇 초만 깜빡인다 */
@keyframes cs-pulse { 50% { opacity: 0.55; } }
[hidden] { display: none !important; }

/* S2 카테고리 원 78(390) · 96(480), 이름 14/500 #767676 */
.cs-cate { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--pad); scrollbar-width: none; }
.cs-cate::-webkit-scrollbar { display: none; }
.cs-cate li { flex: 0 0 calc((100% + 30px) * 0.2); } /* 앱 폭의 20% — 390 에서 78, 480 에서 96(B 측정) */
.cs-cate a { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cs-cate__img { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--c-app-bg); }
.cs-cate__img img { width: 100%; height: 100%; object-fit: cover; }
.cs-cate__name { font-size: 14px; font-weight: 500; line-height: 19.6px; color: var(--c-muted); }

/* S2b 공구 — 공구 카드 부품(.gbx)에 링크 페이지 변수를 연결 */
.cs-sec--gongu { --fxl-surface: var(--c-app-bg); --fxl-text: var(--c-ink); --fxl-muted: var(--c-muted); --fxl-line: var(--c-line); --fxl-accent: var(--c-brand); --fxl-btn-bg: var(--c-brand); --fxl-btn-text: var(--c-brand-ink); --fxl-r-card: var(--r-sm); --fxl-font: var(--font); }
.cs-sec--gongu .gbx--live .gbx__list { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--pad); scroll-snap-type: x mandatory; scrollbar-width: none; }
.cs-sec--gongu .gbx--live .gbx__list::-webkit-scrollbar { display: none; }
.cs-sec--gongu .gbx--live .gbx-card { flex: 0 0 80%; scroll-snap-align: start; }
.cs-sec--gongu .gbx--soon .gbx__list { padding: 0 var(--pad); gap: 8px; }
.cs-sec--gongu .gbx-empty { margin: 0 var(--pad); }

/* S3 신상품 — 카드 75%(390 에서 293), 진행 막대 + 1/6 */
.cs-scroller { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--pad); scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.cs-scroller::-webkit-scrollbar { display: none; }
.cs-scroller > li { scroll-snap-align: start; }
.cs-scroller--new > li { flex: 0 0 75%; }
.cs-scroller--full > li { flex: 0 0 100%; }
.cs-scroller--review > li { flex: 0 0 62%; }
.cs-progress { display: flex; align-items: center; gap: 12px; margin: 14px var(--pad) 0; font-size: 12px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.cs-progress__bar { position: relative; flex: 1; height: 2px; background: var(--c-line); }
.cs-progress__bar i { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, var(--c-brand), var(--c-amber)); transition: left .3s var(--ease); }

/* S4 베스트 2열(390 에서 사진 175) */
.cs-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; padding: 0 var(--pad); }
.cs-more { padding: 24px var(--pad) 5px; text-align: center; }
.cs-more__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; min-height: 44px; padding: 0 20px; border-radius: 2px; background: var(--c-ink); color: var(--c-white); font-size: 13px; font-weight: 500; }

/* 6. Cards */
.cs-pcard__a { display: flex; flex-direction: column; }
.cs-pcard__media { display: block; aspect-ratio: 1; overflow: hidden; background: var(--c-app-bg); }
.cs-pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.cs-pcard__a:hover .cs-pcard__media img { transform: scale(1.03); }
.cs-pcard__name { margin-top: 10px; font-size: 16px; font-weight: 600; line-height: 22.4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-pcard__sum { margin-top: 6px; font-size: 13px; font-weight: 300; line-height: 15.6px; color: var(--c-sub); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-pcard__price { margin-top: 10px; font-variant-numeric: tabular-nums; }
.cs-pcard__price strong { font-size: 16px; font-weight: 600; line-height: 24px; }
.cs-pcard__price del { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--c-sub); }
.cs-pcard__price em { margin-left: 2px; font-style: normal; font-size: 13px; font-weight: 800; color: var(--c-hot); }

.cs-mag a { display: flex; flex-direction: column; }
.cs-mag__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-app-bg); }
.cs-mag__img img { width: 100%; height: 100%; object-fit: cover; }
.cs-mag__cat { margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--c-brand); }
.cs-mag__title { margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.cs-mag__text { margin-top: 8px; font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs-mag__date { margin-top: 10px; font-size: 12px; color: var(--c-sub); font-variant-numeric: tabular-nums; }

.cs-review a { display: flex; flex-direction: column; }
.cs-review__img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--c-app-bg); }
.cs-review__img img { width: 100%; height: 100%; object-fit: cover; }
.cs-review__stars { margin-top: 10px; font-size: 13px; letter-spacing: 1px; color: var(--c-brand); }
.cs-review__text { margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-review__meta { margin-top: 6px; font-size: 12px; color: var(--c-sub); }
.cs-review__product { margin-top: 2px; font-size: 12px; color: var(--c-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.cs-video { position: relative; margin: 0 var(--pad); aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-video-bg); }
.cs-video__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--c-white); }
.cs-video__play .cs-ico { width: 64px; height: 64px; padding: 17px 15px 17px 19px; border-radius: 50%; background: var(--c-brand); color: var(--c-brand-ink); transition: transform .2s var(--ease); }
.cs-video__play:hover .cs-ico { transform: scale(1.06); }
.cs-video iframe, .cs-modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--c-black-a75); }
.cs-modal__box { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; background: var(--c-black); }
.cs-modal__close { position: absolute; top: -48px; right: 0; width: 44px; height: 44px; color: var(--c-white); }

/* 7. Pages — 앱 480 안의 흰 판 */
.cs-page { margin-top: 15px; padding: 20px var(--pad) 32px; background: var(--c-white); min-height: 50vh; }
.cs-pagehead { padding: 4px 0 18px; }
.cs-pagehead__title { font-size: 22px; font-weight: 700; }
.cs-page__body > * + * { margin-top: 12px; }
.cs-page__body p { line-height: 1.7; }
.csp-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.csp-btn, .cs-page__body .button, .cs-page__body button[type="submit"], .cs-page__body input[type="submit"] { border-radius: 4px; }
/* 공구 목록 — 카드 부품 변수 */
.gb-home { --fxl-surface: var(--c-app-bg); --fxl-text: var(--c-ink); --fxl-muted: var(--c-muted); --fxl-line: var(--c-line); --fxl-accent: var(--c-brand); --fxl-btn-bg: var(--c-brand); --fxl-btn-text: var(--c-brand-ink); --fxl-r-card: var(--r-sm); --fxl-font: var(--font); }
.gb-home .gb-section h2 { margin: 6px 0 12px; font-size: 18px; font-weight: 700; }
.gb-round { --gb-brand: var(--c-brand); --gb-line: var(--c-line); --gb-muted: var(--c-muted); --gb-radius: var(--r-sm); }
.gb-round .gb-products { grid-template-columns: minmax(0, 1fr) !important; }
.gb-btn--primary { background: var(--c-brand); color: var(--c-brand-ink); border-color: var(--c-brand); }

/* 7-2. 쇼핑 모듈 화면을 앱 폭(480) 기준으로 — 모듈 CSS 는 화면 폭 기준(@media)이라 PC 에서 넓은 배치를 쓰므로 앱 안에서는 모바일 배치로 고정한다 */
.cs-app .fluxshop-grid, .cs-app .fluxshop-products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 10px !important; }
.cs-app .fhs-pdp__top { display: block !important; }
.cs-app .fhs-pdp__left, .cs-app .fhs-pdp__right { position: static !important; width: 100% !important; max-width: 100% !important; }
.cs-app .fhs-pdp__right { margin-top: 16px; }
.cs-app .fluxboard-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 10px !important; }
.cs-app .fluxboard-gallery__grid a, .cs-app .fluxboard-gallery__grid h3, .cs-app .fluxboard-gallery__grid h4 { overflow-wrap: anywhere; }
.cs-app .fhs-reviews__overview { grid-template-columns: minmax(0, 1fr) !important; }
body.cs-body { --fhs-primary: var(--c-brand); --fhs-text: var(--c-ink); --fhs-text-muted: var(--c-muted); --fhs-border: var(--c-line); }
.cs-app .fhs-price-discount, .cs-app .fhs-mcard__discount, .cs-app .fhs-mcard__likes, .cs-app .fhs-wish-num, .cs-app .fhs-tab-count, .cs-app .fluxshop-product-detail__total-amount, .cs-app .fhs-option-hint, .cs-app .required, .cs-app .unit { color: var(--c-brand) !important; }
.cs-app .fluxshop-btn--primary, .cs-app .fluxshop-btn--buy, .cs-app .fhs-pdp-mobilebar__buy { background: var(--c-brand) !important; border-color: var(--c-brand) !important; color: var(--c-brand-ink) !important; }
.cs-app .fluxshop-btn--cart, .cs-app .fhs-add-to-cart { color: var(--c-ink) !important; border-color: var(--c-line) !important; }
.fhs-pdp-mobilebar { left: 50% !important; right: auto !important; width: min(var(--app-w), 100%) !important; transform: translateX(-50%); }
/* 장바구니 — 창 폭 @media 대신 앱 안에서 항상 1단·모바일 행 배치(PC 폭에서 요약이 상품을 가리던 것) */
.cs-app .fhs-cart2 .fhs-cart-layout, .cs-app .fhs-cart-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
.cs-app .fhs-cart2 .fhs-cart-summary, .cs-app .fhs-cart-summary { position: static !important; }
.cs-app .fhs-cart2 .fhs-cart-row { grid-template-columns: 18px 56px minmax(0, 1fr) 26px !important; align-items: start !important; gap: 10px !important; padding: 16px 2px !important; }
.cs-app .fhs-cart2 .fhs-cart-row__check { align-items: flex-start; padding-top: 3px; }
.cs-app .fhs-cart2 .fhs-cart-row__check input { width: 16px; height: 16px; }
.cs-app .fhs-cart2 .fhs-cart-row__thumb { width: 56px !important; height: 56px !important; flex: none; }
.cs-app .fhs-cart2 .fhs-cart-row__body { display: flex !important; flex-direction: column; gap: 10px; min-width: 0; }
.cs-app .fhs-cart2 .fhs-cart-row__ctrl { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.cs-app .fhs-cart2 .fhs-cart-row__name { overflow-wrap: anywhere; }
.cs-app .fhs-cart2 .fhs-cart-row__sub { min-width: 0; text-align: right; white-space: nowrap; }
.cs-app .fhs-cart2 .fhs-cart-row__del { align-self: start; }
.cs-app .fhs-cart2 .fhs-cart-row__qty { flex: none; }
.cs-app .fhs-cart2 .fhs-cart-qty { width: 28px; height: 30px; font-size: 15px; }
.cs-app .fhs-cart2 .fhs-cart-qtyinput { width: 34px; height: 30px; font-size: 13px; }
.cs-app .fhs-cart2 .fhs-cart-tab { padding: 10px 12px; font-size: 13px; }
.cs-app .fhs-cart2 .fhs-cart-actionbar { gap: 8px; padding: 12px 2px; }
.cs-app .fhs-cart2 .fhs-cart-selectall { font-size: 13px; gap: 5px; white-space: nowrap; }
.cs-app .fhs-cart2 .fhs-cart-btn { height: 30px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
.cs-app .fhs-cart2 .fhs-cart-summary { padding: 16px; }
.cs-app .fhs-cart2 .fhs-cart-summary__actions { gap: 6px; }
.cs-app .fhs-cart2 .fhs-cart-order-selected, .cs-app .fhs-cart2 .fhs-cart-order-all { height: 42px; font-size: 13px; }
/* PC 폭에서 알림(토스트)이 창 가운데가 아니라 앱 화면 가운데에 뜨게 — 틀은 [640 카드][480 앱] 가운데 정렬 */
@media (min-width: 1024px) { #fhs-toast-container { left: min(calc(50% + 320px), calc(100% - 240px)); } }
.fhs-cart-fab, .fhs-totop { display: none !important; } /* 하단 탭바와 겹치는 떠 있는 버튼 — 장바구니는 탭바에 있다 */

/* 8. 하단 유리 탭바 — PC: 앱 화면 아래에 붙어 따라온다 / 모바일: 화면 아래 고정(10) */
.cs-scrim { display: none; }
.cs-tabbar { position: sticky; bottom: 14px; z-index: 100; display: flex; align-items: center; justify-content: space-around; width: calc(100% - 28px); height: var(--tab-h); margin: 0 14px 14px; padding: 0 6px; border-radius: var(--r-tab);
	background: var(--c-glass-a66); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
	border: 1px solid var(--c-white-a80); box-shadow: var(--sh-tabbar); }
.cs-tab { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; height: 100%; font-size: 10px; font-weight: 600; color: var(--c-ink); opacity: 0.72; }
.cs-tab.is-on { opacity: 1; color: var(--c-brand); }
.cs-tab__count { position: absolute; top: 8px; left: 50%; margin-left: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--c-hot); color: var(--c-white); font-size: 10px; line-height: 16px; text-align: center; }
.cs-tab--card { opacity: 1; }
.cs-tab__avatar { position: relative; display: block; width: 52px; height: 52px; margin-top: -22px; padding: 4px; border-radius: 50%; background: linear-gradient(135deg, var(--c-brand), var(--c-amber)); box-shadow: var(--sh-tab-avatar); }
.cs-tab__avatar .cs-avatar { width: 44px; height: 44px; }
.cs-livebadge--tab { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); width: max-content; height: 15px; padding: 0 4px; font-size: 8px; letter-spacing: 0.02em; line-height: 1; border: 2px solid var(--c-white); }
.cs-is-live .cs-tab__avatar { background: var(--c-hot); animation: cs-ring 1.8s ease-in-out 3; }
@keyframes cs-ring { 50% { box-shadow: 0 0 0 7px var(--c-hot-a18), 0 6px 16px var(--c-hot-a40); } }
.cs-foot { padding-bottom: 24px; }

/* 9. Footer — CONTACT US 14/700 포인트 · 전화 16/700 */
.cs-foot { margin-top: 15px; padding: 30px var(--pad) 24px; background: var(--c-white); font-size: 14px; line-height: 23.8px; color: var(--c-ink); }
.cs-foot__eyebrow { font-size: 14px; font-weight: 700; line-height: 19.6px; color: var(--c-brand); }
.cs-foot__phone { margin-top: 12px; font-size: 16px; font-weight: 700; }
.cs-foot__hours { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--c-muted); }
.cs-foot__kakao { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-weight: 700; }
.cs-foot__biz { margin-top: 16px; }
.cs-foot__biz summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; color: var(--c-muted); cursor: pointer; }
.cs-foot__biz summary strong { font-size: 16px; color: var(--c-ink); }
.cs-foot__biz p { font-size: 12px; line-height: 1.7; color: var(--c-muted); }
.cs-foot__links { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 8px; font-size: 13px; }
.cs-foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.cs-foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--c-line); font-size: 12px; color: var(--c-sub); }
.cs-foot__sns { display: flex; }
.cs-foot__sns a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 44px; color: var(--c-ink); }

.csp-demobar { position: relative; z-index: 400; padding: 6px 12px; background: var(--c-ink); color: var(--c-white); font-size: 12px; text-align: center; }

/* 10. Responsive — 1023 이하: 앱만, 카드는 아래 시트, 하단 유리 탭바 */
@media (max-width: 1023px) {
	.cs-shell { display: block; padding: 0; }
	.cs-app { width: 100%; max-width: var(--app-w); margin: 0 auto; padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); }
	.cs-card { position: fixed; left: 50%; bottom: 0; top: auto; z-index: 120; display: block; width: min(var(--app-w), 100%); height: auto; max-height: 85vh; padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); border-radius: var(--r-sheet) 22px 0 0; background: var(--c-beige); box-shadow: var(--sh-sheet); transform: translate(-50%, 105%); visibility: hidden; transition: transform .38s var(--ease), visibility 0s linear .38s; overscroll-behavior: contain; }
	.cs-card.is-open { transform: translate(-50%, 0); visibility: visible; transition: transform .38s var(--ease), visibility 0s; }
	.cs-card.is-drag { transition: none; }
	.cs-card__grip { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--c-black-a18); }
	.cs-card__close { display: inline-flex; position: absolute; top: 10px; right: 10px; z-index: 1; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }
	.cs-card__in { gap: 18px; }
	.cs-card__slogan { font-size: 30px; line-height: 36px; }
	.cs-card__search input { height: 56px; }
	.cs-card__search button { top: 6px; }
	.cs-card__kw a { height: 44px; font-size: 14px; }
	.cs-card__coupons { gap: 16px; }
	.cs-coupon a { width: 140px; height: 128px; }
	.fhs-pdp-mobilebar { bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)) !important; z-index: 90 !important; }
	.cs-scrim { position: fixed; inset: 0; z-index: 110; display: block; background: var(--c-black-a35); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
	.cs-scrim.is-on { opacity: 1; pointer-events: auto; }

	/* 모바일: 탭바는 화면 아래 고정 */
	.cs-tabbar { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); width: min(calc(var(--app-w) - 24px), calc(100% - 24px)); margin: 0; transform: translateX(-50%); }
}
@media (max-width: 380px) {
	.cs-card__kw { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cs-card__coupons { gap: 10px; }
	.cs-coupon a { width: 128px; }
}
/* 하단 탭바 flat(skin.json variants.tabbar=flat, 기본 꺼짐): 폭 전체·위 1px 선·평평한 바 */
.cs-v-tabbar-flat .cs-tabbar { position: sticky; bottom: 0; align-items: flex-start; justify-content: stretch; width: 100%; height: calc(var(--tab-h) + 1px + env(safe-area-inset-bottom)); margin: 0; padding: 0 0 env(safe-area-inset-bottom);
	border: 0; border-top: 1px solid var(--c-line); border-radius: 0; background: var(--c-app-bg, var(--c-white)); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cs-v-tabbar-flat .cs-tab { height: var(--tab-h); font-size: 11px; font-weight: 500; opacity: 1; color: var(--c-sub, var(--c-ink)); }
.cs-v-tabbar-flat .cs-tab.is-on { color: var(--c-brand); font-weight: 700; }
@media (max-width: 1023px) {
	.cs-v-tabbar-flat .cs-tabbar { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: var(--app-w); margin: 0; transform: translateX(-50%); }
}
/* 앱 머리 talk(variants.header=talk, 기본 꺼짐) */
.cs-head--talk .cs-head__name { display: inline-flex; align-items: center; min-height: 44px; font: 600 21px/1.2 var(--serif, var(--font)); letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-head--talk { padding-right: 6px; }
.cs-head--talk .cs-head__util { margin-right: 0; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	@media (max-width: 1023px) { .cs-tabbar { background: var(--c-white-a96); } }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 11. 메뉴 패널 — 오른쪽에서 슬라이드. 큰 글자 목록 중심, 아이콘 격자·칩·색 박스 없음 */
.cs-menu { position: fixed; inset: 0; z-index: 450; visibility: hidden; pointer-events: none; }
.cs-menu.is-open { visibility: visible; pointer-events: auto; }
.cs-menu__scrim { position: absolute; inset: 0; background: var(--c-scrim-a50); opacity: 0; transition: opacity .3s var(--ease); }
.cs-menu.is-open .cs-menu__scrim { opacity: 1; }
.cs-menu__sheet { position: absolute; top: 0; bottom: 0; left: var(--mx, 0px); width: var(--mw, 100%); max-width: 100%; display: flex; flex-direction: column; overflow-y: auto; padding: 0 20px 28px; background: var(--c-white); transform: translateX(110vw); transition: transform .34s cubic-bezier(.32,.72,0,1); -webkit-overflow-scrolling: touch; }
.cs-menu.is-open .cs-menu__sheet { transform: none; }
.cs-menu__sheet > * { flex: none; opacity: 0; transform: translateX(14px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.cs-menu.is-open .cs-menu__sheet > * { opacity: 1; transform: none; }
.cs-menu.is-open .cs-menu__sheet > *:nth-child(2) { transition-delay: .06s; } .cs-menu.is-open .cs-menu__sheet > *:nth-child(3) { transition-delay: .09s; } .cs-menu.is-open .cs-menu__sheet > *:nth-child(4) { transition-delay: .12s; } .cs-menu.is-open .cs-menu__sheet > *:nth-child(5) { transition-delay: .15s; } .cs-menu.is-open .cs-menu__sheet > *:nth-child(n+6) { transition-delay: .18s; }
.cs-menu__top { display: flex; align-items: center; justify-content: space-between; height: 60px; margin: 0 -8px 0 0; }
.cs-menu__brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.cs-menu__brand .cs-avatar { width: 28px; height: 28px; }
.cs-menu__x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.cs-menu__auth { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 20px; border-bottom: 1px solid var(--c-line); }
.cs-menu__auth a:first-child { display: flex; flex-direction: column; gap: 4px; }
.cs-menu__auth b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.cs-menu__auth small { font-size: 13px; color: var(--c-muted); }
.cs-menu__join { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--c-ink); color: var(--c-white); font-size: 13px; font-weight: 700; }
.cs-menu__me { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--c-line); font-size: 24px; letter-spacing: -0.03em; }
.cs-menu__me b { font-weight: 800; } .cs-menu__me small { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--c-muted); }
.cs-menu__live { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 13px 14px; border-radius: var(--r-sm); background: var(--c-live-bg); font-size: 14px; }
.cs-menu__live b { flex: 1; font-weight: 700; color: var(--c-hot); }
.cs-menu__list { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.cs-menu__list a { display: flex; align-items: center; gap: 8px; min-height: 56px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; transition: transform .2s var(--ease), color .2s var(--ease); }
.cs-menu__list a:hover { color: var(--c-brand); transform: translateX(3px); }
.cs-menu__list a span { flex: none; }
.cs-menu__list a .cs-ico { margin-left: auto; color: var(--c-chevron); }
.cs-menu__tag { margin-left: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--c-go); letter-spacing: 0; }
.cs-menu__cats { padding: 18px 0 14px; border-bottom: 1px solid var(--c-line); }
.cs-menu__cats p { margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--c-sub); letter-spacing: 0.04em; }
.cs-menu__cats ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-menu__cats a { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }
.cs-menu__cats a:hover { color: var(--c-brand); }
.cs-menu__list--sub { padding: 6px 0; }
.cs-menu__list--sub a { min-height: 48px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.cs-menu__cs { margin-top: 18px; padding-top: 4px; }
.cs-menu__tel { display: flex; flex-direction: column; gap: 2px; min-height: 44px; }
.cs-menu__tel small { font-size: 12px; font-weight: 700; color: var(--c-sub); letter-spacing: 0.04em; }
.cs-menu__tel b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cs-menu__hours { margin: 6px 0 14px; font-size: 13px; line-height: 1.65; color: var(--c-muted); }
.cs-kakao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 12px; background: var(--c-kakao); color: var(--c-kakao-ink); font-size: 15px; font-weight: 800; transition: filter .2s var(--ease); }
.cs-kakao:hover { filter: brightness(0.96); }
.cs-menu__legal { display: flex; gap: 16px; margin-top: auto; padding-top: 22px; font-size: 12px; color: var(--c-muted); }
.cs-menu__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.cs-foot .cs-kakao { width: auto; padding: 0 20px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .cs-menu__sheet, .cs-menu__sheet > * { transition: none !important; transform: none !important; opacity: 1 !important; } }

/* 12. 공구 회차 화면(앱 결제 화면) */
.cs-rv { padding-bottom: 8px; background: var(--c-white); margin-top: 0; }
.cs-rv__flash { margin: 12px var(--pad) 0; padding: 12px 14px; border-radius: var(--r); background: var(--c-beige); font-size: 14px; font-weight: 600; }
.cs-rv__flash--error { background: var(--c-error-bg); color: var(--c-error); }
.cs-rv__gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--c-app-bg); }
.cs-rv__gallery::-webkit-scrollbar { display: none; }
.cs-rv__gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; }
.cs-rv__pager { position: absolute; margin: -44px 0 0 calc(100% - 64px); padding: 3px 10px; border-radius: var(--r-card); background: var(--c-black-a45); color: var(--c-white); font-size: 12px; font-variant-numeric: tabular-nums; }
.cs-rv__head { padding: 18px var(--pad) 4px; }
.cs-rv__state { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cs-rv__pill { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 13px; background: var(--c-ink); color: var(--c-white); font-size: 12px; font-weight: 800; }
.cs-rv__pill--open { background: var(--c-go); }
.cs-rv__pill--scheduled { background: var(--c-brand); }
.cs-rv__pill--full { background: var(--c-hot); }
.cs-rv__timer { font-size: 13px; font-weight: 600; color: var(--c-muted); }
.cs-rv__timer b { margin-left: 4px; font-size: 16px; font-weight: 800; color: var(--c-hot); font-variant-numeric: tabular-nums; }
.cs-rv__title { margin-top: 12px; font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.cs-rv__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.cs-rv__off { font-style: normal; font-size: 24px; font-weight: 900; color: var(--c-hot); }
.cs-rv__price strong { font-size: 28px; font-weight: 900; letter-spacing: -0.03em; }
.cs-rv__price strong small { margin-left: 1px; font-size: 16px; font-weight: 700; }
.cs-rv__price del { font-size: 14px; color: var(--c-sub); }
.cs-rv__from { font-size: 13px; color: var(--c-muted); }
.cs-rv__gauge { margin: 16px var(--pad) 0; padding: 16px; border-radius: var(--r-tile); background: linear-gradient(180deg, var(--c-warm), var(--c-warm-2)); }
.cs-rv__gauge-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; font-weight: 600; }
.cs-rv__gauge-top b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cs-rv__gauge-top strong { font-size: 22px; font-weight: 900; color: var(--c-brand); }
.cs-rv__bar { height: 10px; margin-top: 10px; overflow: hidden; border-radius: 5px; background: var(--c-brand-raw-a14); }
.cs-rv__bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--c-brand), var(--c-amber)); transition: width .5s var(--ease); }
.cs-rv__gauge-sub { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--c-muted); }
.cs-rv__gauge-sub b { color: var(--c-ink); }
.cs-rv__ok { padding: 2px 8px; border-radius: var(--r-sm); background: var(--c-go); color: var(--c-white); font-size: 11px; font-weight: 800; }
.cs-rv__desc { margin: 16px var(--pad) 0; font-size: 15px; line-height: 1.75; color: var(--c-muted); }
.cs-rv__sec { margin: 24px var(--pad) 10px; font-size: 16px; font-weight: 800; }
.cs-rv__items { display: grid; gap: 10px; padding: 0 var(--pad); }
.cs-rv__item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-tile); background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-line); cursor: pointer; transition: box-shadow .2s var(--ease), background-color .2s var(--ease); }
.cs-rv__item input { position: absolute; opacity: 0; pointer-events: none; }
.cs-rv__item img { flex: none; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.cs-rv__item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cs-rv__item-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.cs-rv__item-sum { font-size: 12px; color: var(--c-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-rv__item-price { margin-top: 2px; font-size: 14px; font-weight: 800; color: var(--c-hot); }
.cs-rv__item-price del { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--c-sub); }
.cs-rv__check { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--c-line); }
.cs-rv__item:has(input:checked) { background: var(--c-warm); box-shadow: inset 0 0 0 2px var(--c-brand); }
.cs-rv__item:has(input:checked) .cs-rv__check { background: var(--c-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: none; }
.cs-rv__item:has(input:focus-visible) { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.cs-rv__opts { display: none; flex-wrap: wrap; gap: 8px; margin: 10px 4px 2px; }
.cs-rv__opts.is-on { display: flex; }
.cs-rv__chip input { position: absolute; opacity: 0; pointer-events: none; }
.cs-rv__chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px; background: var(--c-white); font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--c-line); cursor: pointer; transition: all .2s var(--ease); }
.cs-rv__chip input:checked + span { background: var(--c-ink); color: var(--c-white); box-shadow: none; }
.cs-rv__chip input:focus-visible + span { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.cs-rv__qty { display: flex; align-items: center; justify-content: space-between; margin: 20px var(--pad) 0; }
.cs-rv__qty-label { font-size: 15px; font-weight: 700; }
.cs-rv__qty-label small { font-size: 12px; font-weight: 500; color: var(--c-muted); }
.cs-rv__stepper { display: inline-flex; align-items: center; height: 48px; border-radius: var(--r-field); background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-line); }
.cs-rv__stepper button { width: 48px; height: 48px; font-size: 22px; font-weight: 600; color: var(--c-ink); border-radius: var(--r-field); }
.cs-rv__stepper button:hover { background: var(--c-beige); }
.cs-rv__stepper input { width: 44px; height: 48px; border: 0; background: none; text-align: center; font: 800 17px var(--font); color: var(--c-ink); -moz-appearance: textfield; }
.cs-rv__stepper input::-webkit-outer-spin-button, .cs-rv__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cs-rv__bar-fixed { position: sticky; bottom: calc(var(--tab-h) + 30px); z-index: 90; display: flex; align-items: center; gap: 8px; margin: 22px 10px 0; padding: 10px; border-radius: var(--r-sheet); background: var(--c-glass-a90); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--sh-bar); }
.cs-rv__total { display: flex; flex-direction: column; flex: none; padding: 0 8px; font-size: 11px; font-weight: 600; color: var(--c-muted); line-height: 1.2; }
.cs-rv__total strong { font-size: 18px; font-weight: 900; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.cs-rv__btn { flex: 1; height: 52px; border-radius: var(--r); background: var(--c-brand); color: var(--c-brand-ink); font-size: 16px; font-weight: 800; transition: filter .2s var(--ease), transform .2s var(--ease); }
.cs-rv__btn:hover:not(:disabled) { filter: brightness(1.06); }
.cs-rv__btn:active:not(:disabled) { transform: scale(0.98); }
.cs-rv__btn:disabled { background: var(--c-line); color: var(--c-sub); cursor: not-allowed; }
.cs-rv__btn--ghost { flex: 0 0 auto; padding: 0 16px; background: var(--c-white); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line); }
.cs-rv__note { flex: 1; padding: 0 8px; font-size: 12px; color: var(--c-muted); }
.cs-rv__notify { margin-top: 8px; padding-bottom: 20px; }
.cs-rv__lead { margin: -4px var(--pad) 12px; font-size: 14px; color: var(--c-muted); }
.cs-rv .gb-subscribe { display: grid; gap: 10px; margin: 0 var(--pad); }
.cs-rv .gb-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.cs-rv .gb-field input { height: 48px; padding: 0 16px; border: 0; border-radius: var(--r); background: var(--c-app-bg); box-shadow: inset 0 0 0 1.5px var(--c-line); font: 500 15px var(--font); }
.cs-rv .gb-field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c-brand); }
.cs-rv .gb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--c-muted); }
.cs-rv .gb-check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--c-brand); }
.cs-rv .gb-btn--primary { height: 52px; border: 0; border-radius: var(--r); background: var(--c-brand); color: var(--c-brand-ink); font-size: 16px; font-weight: 800; }

/* 13. 폼·버튼 한 규칙(입력 48 · 버튼 52 · 라운드 12) — 모듈 화면(주문서·문의·마이페이지) */
.cs-app input[type="text"], .cs-app input[type="email"], .cs-app input[type="tel"], .cs-app input[type="password"], .cs-app input[type="number"], .cs-app input[type="search"], .cs-app select, .cs-app textarea { min-height: 48px; border-radius: var(--r) !important; border: 1.5px solid var(--c-line) !important; background: var(--c-white); font-family: var(--font); }
.cs-app input:focus, .cs-app select:focus, .cs-app textarea:focus { outline: none; border-color: var(--c-brand) !important; box-shadow: var(--sh-focus); }
.cs-app .cs-page button[type="submit"], .cs-app .fluxshop-btn, .cs-app .fhs-submit { min-height: 52px; border-radius: var(--r) !important; font-weight: 800; }
.cs-app .fluxshop-btn--primary, .cs-app .fluxshop-btn--buy, .cs-app .fhs-pdp-mobilebar__buy { background: var(--c-brand) !important; border-color: var(--c-brand) !important; color: var(--c-brand-ink) !important; }
.cs-app .fhs-price-discount, .cs-app .fhs-mcard__discount, .cs-app .fhs-mcard__likes, .cs-app .fhs-wish-num, .cs-app .fhs-tab-count, .cs-app .fluxshop-product-detail__total-amount, .cs-app .fhs-option-hint, .cs-app .required, .cs-app .unit { color: var(--c-hot) !important; }
.cs-app .cs-page { border-radius: 0; }

/* 14. 공구 카드 부품(.gbx) 색 — 그린 진행 · 오렌지 게이지 */
.cs-sec--gongu, .gb-home { --fxl-accent: var(--c-brand); --fxl-btn-bg: var(--c-brand); --fxl-btn-text: var(--c-brand-ink); --fxl-surface: var(--c-warm); }
.gbx .gb-gauge__bar { background: var(--c-brand-raw-a14); }
.gbx .gb-gauge__bar span { background: linear-gradient(90deg, var(--c-brand), var(--c-amber)); }
.gbx-card__off { color: var(--c-hot) !important; }
.gbx-card { box-shadow: var(--sh-card); }
.gbx-btn--primary { font-weight: 800; border-radius: 12px; }
@keyframes cs-pulse-card { 0% { box-shadow: inset 0 0 0 0 var(--c-brand-raw-a00); } 40% { box-shadow: inset 0 0 0 4px var(--c-brand-raw-a35); } 100% { box-shadow: inset 0 0 0 0 var(--c-brand-raw-a00); } }
@media (min-width: 1024px) { .cs-card.is-pulse { animation: cs-pulse-card 0.9s ease-out; border-radius: var(--r-field); } }
/* 메뉴 패널은 데모 안내 띠 위에, 안의 검색칸은 전역 폼 규칙(13)의 테두리를 받지 않는다 */
.cs-menu { z-index: 450; }
.cs-app .cs-menu__search input, .cs-app .cs-card__search input { min-height: 0; border: 0 !important; box-shadow: none !important; background: none; border-radius: 0 !important; }
.cs-menu__top { padding-top: env(safe-area-inset-top); }

/* 15. 모양 변형 — skin.json variants 가 body 에 cs-v-<부품>-<안> 클래스를 붙인다. a(기본)는 위 규칙 그대로, 여기는 b 등 다른 안만.
   새 안이 필요하면 여기(또는 부품 덮어쓰기)에 더하고 다음 스킨부터 재사용한다. 색·라운드·그림자는 스킨 변수만 쓴다. */

/* 크리에이터 카드 b — 왼쪽 정렬 · 가로 프로필(사진 왼쪽, 이름·소개 오른쪽) */
.cs-v-card-b .cs-card__in { text-align: left; }
.cs-v-card-b .cs-card__profile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 2px; }
.cs-v-card-b .cs-card__ava { grid-row: 1 / span 2; margin-bottom: 0; }
.cs-v-card-b .cs-livebadge--ava { white-space: nowrap; }
.cs-v-card-b .cs-card__avatar { width: 72px; height: 72px; }
.cs-v-card-b .cs-card__name { align-self: end; }
.cs-v-card-b .cs-card__intro { align-self: start; max-width: none; }
.cs-v-card-b .cs-card__sns { grid-column: 1 / -1; margin-top: 14px; }
.cs-v-card-b .cs-card__kw { justify-content: flex-start; }

/* 상품 카드 b — 둥근 카드(사진 + 글을 한 판에) · 할인율 배지 */
.cs-v-pcard-b .cs-pcard__a { height: 100%; padding-bottom: 14px; overflow: hidden; border-radius: var(--r-tile); background: var(--c-white); box-shadow: var(--sh-card); }
.cs-v-pcard-b .cs-pcard__name, .cs-v-pcard-b .cs-pcard__sum, .cs-v-pcard-b .cs-pcard__price { padding: 0 12px; }
.cs-v-pcard-b .cs-pcard__price em { display: inline-flex; align-items: center; height: 20px; margin-left: 6px; padding: 0 7px; border-radius: var(--r-pill); background: var(--c-hot); color: var(--c-white); font-size: 12px; }
.cs-v-pcard-b .cs-scroller, .cs-v-pcard-b .cs-grid2 { padding-bottom: 8px; }

/* 하단 탭바 solid — 유리 대신 단색 */
.cs-v-tabbar-solid .cs-tabbar { background: var(--c-white); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--c-line); }

/* 15. 상품 목록(쇼핑) — 앱 폭 480 에 맞춘 카테고리 탭·검색·필터·정렬. 폼 공통 규칙(13)이 먹지 않게 여기서 되돌린다 */
.cs-app .fhs-shop { padding: 0 !important; border-radius: 0 !important; background: transparent !important; }
.cs-app .fhs-cats__rail { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.cs-app .fhs-cats__rail::-webkit-scrollbar { display: none; }
.cs-app .fhs-cat-tab { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px !important; border-radius: 999px !important; background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-line); color: var(--c-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.cs-app .fhs-cat-tab.is-active { background: var(--c-brand) !important; box-shadow: none; color: var(--c-brand-ink) !important; font-weight: 700; }
.cs-app .fhs-searchrow { display: block; padding: 0; border: 0; }
.cs-app .fhs-fbar__search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: none; height: 48px; padding: 0 16px; border-radius: var(--r-field); background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-line); color: var(--c-muted); }
.cs-app .fhs-fbar__search:focus-within { box-shadow: inset 0 0 0 2px var(--c-brand); }
.cs-app .fhs-fbar__search input { flex: 1; min-width: 0; height: 100% !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; font-size: 15px; outline: none; }
.cs-app .fhs-fbar__row, .cs-app .fhs-fbar__facets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-app .fhs-f__btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; min-height: 0 !important; padding: 0 14px !important; border: 0 !important; border-radius: 999px !important; background: var(--c-white) !important; box-shadow: inset 0 0 0 1.5px var(--c-line); color: var(--c-ink) !important; font-size: 14px; font-weight: 600; }
.cs-app .fhs-f__btn[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--c-brand); }
.cs-app .fhs-loop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 12px; }
.cs-app .fhs-loop-count { display: inline-flex; align-items: baseline; gap: 4px; font-size: 14px; color: var(--c-muted); }
.cs-app .fhs-loop-count strong { min-width: 0; height: auto; padding: 0 !important; border: 0 !important; background: none !important; font-size: 15px; font-weight: 800; color: var(--c-brand); }
.cs-app .fhs-sort-select { width: auto; height: 38px; min-height: 0; padding: 0 32px 0 14px; border: 0 !important; border-radius: 999px !important; background-color: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-line); font-size: 14px; font-weight: 600; }
.cs-app .fhs-cat-tab span { display: flex; align-items: center; min-height: 0 !important; height: auto; line-height: 1.2; padding: 0 !important; border: 0 !important; background: none !important; color: inherit !important; box-shadow: none !important; }

/* 16. 모듈 안내 박스(.fxad-notice 등) — 미니멀: 문장 + 로그인 버튼만 */
.cs-app .fxad-notice { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 0 32px; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--c-ink); }
.cs-app .fxad-notice a { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; height: 48px; padding: 0 24px; border-radius: var(--r-field); background: var(--c-brand); color: var(--c-brand-ink); font-size: 15px; font-weight: 800; transition: transform .2s var(--ease); }
.cs-app .fxad-notice a:hover { transform: translateY(-1px); }

/* 17. 회원 로그인·가입 화면(fluxmember) — 버튼은 브랜드색, 보조 링크는 작게 */
.cs-app .fluxmember-btn--primary { background: var(--c-brand) !important; border-color: var(--c-brand) !important; color: var(--c-brand-ink) !important; }
.cs-app .fluxmember-form__group--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs-app .fluxmember-form__checkbox span, .cs-app .fluxmember-link { font-size: 13px !important; font-weight: 600; }
.cs-app .fluxmember-link { color: var(--c-muted) !important; text-decoration: underline; text-underline-offset: 3px; }
.cs-app .fluxmember-form__checkbox input { accent-color: var(--c-brand); }
.cs-app .fluxmember-form a:not(.fluxmember-btn):hover, .cs-app .fluxmember-auth a:hover { color: var(--c-brand) !important; }

/* 18. 주문서(결제) — 모듈이 PC 2단으로 짜서 앱 폭(480)을 넘친다: 1단으로 쌓고 요약 칸은 고정 해제 */
.cs-app .fluxshop-checkout__layout { display: block !important; }
.cs-app .fluxshop-checkout__main, .cs-app .fluxshop-checkout__summary { width: 100% !important; max-width: 100% !important; position: static !important; }
.cs-app .fluxshop-checkout__summary { margin-top: 16px; }
.cs-app .fhs-order-summary { width: 100% !important; }

/* 19. 홈 광고 자리 — 결제·승인된 광고가 있을 때만 나온다. 좌우 여백 + 둥근 모서리, 「광고」 표시는 사진 위 왼쪽 */
.cs-sec--ad { padding: 15px var(--pad); }
.cs-sec--ad .fxad__item { position: relative; overflow: hidden; border-radius: var(--r-card); }
.cs-sec--ad .fxad__img { display: block; width: 100%; height: auto; }

/* 19-1. 광고 포인트(frame/ads.php — csp_ad_point) — 포인트마다 같은 틀. 광고가 없으면 요소 자체가 안 나온다 */
.cs-ad { margin: 0; padding: 15px var(--pad); background: var(--c-white); }
.cs-ad--sec { margin-top: 15px; }
.cs-ad .fxad { margin: 0; }
.cs-ad .fxad__item, .cs-ad .fxad__link { border-radius: var(--r-card); }
.cs-ad .fxad__item { overflow: hidden; }
.cs-ad .fxad__img { display: block; width: 100%; height: auto; }
.cs-ad .fxad__label { top: 8px; left: 8px; padding: 2px 6px; border-radius: 4px; background: var(--c-black-a45); font-size: 11px; line-height: 14px; letter-spacing: 0.04em; }
.cs-ad .fxad--slider { overflow: hidden; border-radius: var(--r-card); }
.cs-ad .fxad__controls { position: absolute; right: 8px; bottom: 8px; z-index: 3; display: flex; align-items: center; gap: 6px; }
.cs-ad .fxad__btn--pause { width: 44px; height: 44px; }
/* 입점 모집 카드 — 광고가 아니다: 점선 대신 옅은 면, 제목·가격·버튼 순서로 읽히게 */
.cs-ad .fxad__house { border: 0; border-radius: var(--r-card); background: color-mix(in srgb, var(--c-brand) 8%, var(--c-white)); }
.cs-ad .fxad__house-link { color: var(--c-ink); }
.cs-ad .fxad__house-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.cs-ad .fxad__house-meta { color: var(--c-ink); opacity: .72; }
.cs-ad .fxad__house-note { min-height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-pill); background: var(--c-brand); color: var(--c-brand-ink); font-size: 13px; }
.cs-ad .fxad__house-link:hover .fxad__house-note { text-decoration: none; filter: brightness(1.08); }
/* 카드·메뉴 안(좁은 폭) — 위아래 여백만, 배경 없음 */
.cs-ad--card_after_links, .cs-ad--menu_bottom { padding: 12px 0 0; background: none; }
.cs-ad--card_after_links .fxad__house-title, .cs-ad--menu_bottom .fxad__house-title { font-size: 14px; }
/* 공구 회차 · 상품 상세 — 본문 폭 안에서 좌우 여백 */
.cs-ad--round_below_price, .cs-ad--product_below_buy { padding: 12px var(--pad); }

/* 20. 앱형 홈(0.4.0) — skin.json 이 header=app · cate=tile · tabbar=pill 을 고르거나 home 에 tabs·brands·strip 을 넣을 때만 쓰인다.
   안 고른 스킨(하루살림)에는 이 마크업이 없어 화면이 그대로다. 색은 스킨 변수(--c-tile · --c-band · --c-soft · --c-chipb · --c-accent · --c-strip), 없으면 기존 변수로 물러난다. */

/* 머리글 app — 샵 이름▾ · 멤버십 배지 · 알림·장바구니·메뉴 + 둥근 검색창 */
.cs-head--app { position: relative; display: block; height: auto; padding: 0 16px 12px; }
.cs-head--app .cs-head__row { display: flex; align-items: center; gap: 8px; min-height: 56px; }
.cs-head__shop { display: inline-flex; align-items: center; gap: 2px; min-width: 0; min-height: 44px; max-width: 52%; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.cs-head__shop .cs-head__name { font-size: inherit; font-weight: inherit; }
.cs-head__badge { flex: none; height: 24px; padding: 0 9px; border-radius: 4px; background: var(--c-brand); color: var(--c-brand-ink); font-size: 12px; font-weight: 700; line-height: 24px; white-space: nowrap; }
.cs-head--app .cs-head__util { margin-left: auto; margin-right: -10px; }
.cs-head--app .cs-head__count { background: var(--c-hot); color: var(--c-white); }
.cs-head__search { position: relative; }
.cs-head__search input { display: block; width: 100%; height: 44px; padding: 0 52px 0 18px; border: 1.5px solid var(--c-ink); border-radius: 22px; background: var(--c-white); color: var(--c-ink); font: inherit; font-size: 16px; font-weight: 400; -webkit-appearance: none; appearance: none; }
.cs-app .cs-head__search input[type="search"] { height: 44px; min-height: 44px; border: 1.5px solid var(--c-ink) !important; border-radius: 22px !important; } /* 13절의 공통 입력칸 규칙(48·라운드 12)보다 먼저 */
.cs-head__search input::placeholder { color: var(--c-muted); }
.cs-head__search input::-webkit-search-cancel-button { display: none; }
.cs-head__search input:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.cs-head__search button { position: absolute; top: 0; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; }

/* 아이콘 타일(분류 5열) — 62 정사각 · 라운드 18 · 위 배지 칩. 사진이 없으면 이름 첫 글자 */
.cs-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 62px)); justify-content: space-between; gap: 20px 4px; padding: 22px 18px 18px; }
.cs-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cs-tile__ico { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: var(--c-tile, var(--c-app-bg)); transition: transform .2s var(--ease); }
.cs-tile:hover .cs-tile__ico { transform: translateY(-2px); }
.cs-tile__ico img { width: 58%; height: 58%; object-fit: contain; }
.cs-tile__ini { font-size: 22px; font-weight: 700; color: var(--c-muted); }
.cs-tile__name { max-width: 100%; font-size: 14px; font-weight: 400; line-height: 1.3; text-align: center; }
.cs-tile__chip, .cs-brand-logo__chip { position: absolute; top: -9px; left: 50%; z-index: 1; transform: translateX(-50%); padding: 1px 6px; border: 1px solid var(--c-chipb, var(--c-line)); border-radius: 10px; background: var(--c-white); color: var(--c-accent, var(--c-brand)); font-size: 11px; font-weight: 700; line-height: 16px; white-space: nowrap; }
.cs-sec--tile { padding: 0; }
.cs-sec--tile .cs-tiles { padding-top: 26px; }

/* 글자 탭 + 타일 + 「…에서 더보기」 */
.cs-tabs { background: var(--c-white); }
.cs-tabs::after, .cs-brands::after { content: ""; display: block; height: 8px; background: var(--c-band, var(--c-app-bg)); }
.cs-tabs__list { display: flex; gap: 22px; padding: 0 var(--pad); overflow-x: auto; border-bottom: 1px solid var(--c-line); scrollbar-width: none; }
.cs-tabs__list::-webkit-scrollbar { display: none; }
.cs-tabs__tab { position: relative; flex: none; min-height: 48px; padding: 14px 0 10px; color: var(--c-muted); font-size: 18px; font-weight: 400; white-space: nowrap; transition: color .2s var(--ease); }
.cs-tabs__tab:hover { color: var(--c-ink); }
.cs-tabs__tab.is-on { color: var(--c-ink); font-weight: 700; }
.cs-tabs__tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px; background: var(--c-ink); }
.cs-tabs__more { display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 44px; border-top: 1px solid var(--c-line); font-size: 16px; }
.cs-tabs__more:hover { background: var(--c-band, var(--c-app-bg)); }

/* 원형 로고 줄(배너 자리 brands) */
.cs-brands { background: var(--c-white); }
.cs-brands__list { display: flex; gap: 12px; padding: 22px 16px 16px; overflow-x: auto; scrollbar-width: none; }
.cs-brands__list::-webkit-scrollbar { display: none; }
.cs-brand-logo { position: relative; display: flex; flex: none; flex-direction: column; align-items: center; gap: 6px; width: 66px; padding-top: 8px; }
.cs-brand-logo__chip { top: 0; }
.cs-brand-logo__img { display: grid; place-items: center; width: 58px; height: 58px; overflow: hidden; border-radius: 29px; background: var(--c-tile, var(--c-app-bg)); color: var(--c-muted); font-size: 16px; font-weight: 800; }
.cs-brand-logo__img img { width: 100%; height: 100%; object-fit: cover; }
.cs-brand-logo__name { max-width: 100%; overflow: hidden; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }

/* 알림 띠 — 어두운 바탕, 닫으면 그날은 숨김 */
.cs-strip { display: flex; align-items: center; margin: 12px 16px 0; border-radius: 14px; background: var(--c-strip, var(--c-ink)); color: var(--c-white); font-size: 14px; }
.cs-strip__text { flex: 1; min-width: 0; padding: 14px 0 14px 16px; line-height: 1.4; }
.cs-strip__x { display: grid; flex: none; place-items: center; width: 44px; height: 44px; opacity: .75; }
.cs-strip__x:hover { opacity: 1; }

/* 하단 탭바 pill — 떠 있는 알약 막대, 선택 칸 = 연한 알약. 위치·너비는 기본 탭바 규칙 그대로 */
.cs-tabbar.cs-tabbar--pill { height: 60px; padding: 5px; gap: 2px; border: 0; background: var(--c-white-a96); -webkit-backdrop-filter: none; backdrop-filter: none; }
.cs-tabbar--pill .cs-tab { gap: 3px; border-radius: 26px; font-size: 10px; font-weight: 500; opacity: .72; transition: background .2s var(--ease); }
.cs-tabbar--pill .cs-tab.is-on { background: var(--c-soft, var(--c-app-bg)); color: var(--c-ink); font-weight: 700; opacity: 1; }
.cs-tabbar--pill .cs-tab:hover { background: var(--c-soft, var(--c-app-bg)); }
.cs-tabbar--pill .cs-tab--card, .cs-tabbar--pill .cs-tab--card:hover { background: none; opacity: 1; } /* 가운데 프로필 — 위로 튀어나온 동그라미(기본 탭바와 같은 모양) */

/* 하단 탭바 위의 구매 막대(상품 상세 모바일 막대 · 공구 회차 막대) — 탭바보다 눈에 띄지 않게 버튼 글자·높이를 줄인다. 모든 스킨 공통(0.4.0) */
.cs-rv__bar-fixed { padding: 8px; gap: 6px; }
.cs-rv__total { padding: 0 6px; font-size: 10px; }
.cs-rv__total strong { font-size: 15px; font-weight: 800; }
.cs-rv__btn { height: 44px; font-size: 14px; font-weight: 700; }
.cs-rv__btn--ghost { padding: 0 12px; }
.fhs-pdp-mobilebar__cart, .fhs-pdp-mobilebar__buy { height: 44px; font-size: 14px; font-weight: 700; border-radius: 10px; }
.fhs-pdp-mobilebar__wish { height: 44px !important; flex-basis: 44px !important; min-width: 44px !important; }

/* 공용 플로팅 독(알림 벨·챗봇) — 모바일에서 하단 탭바(마이 칸)를 가리지 않게 탭바 위로 올린다 */
@media (max-width: 1023px) {
	.fhc-dock { bottom: calc(var(--tab-h) + 36px + env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 380px) {
	.cs-tabs__list { gap: 18px; }
	.cs-head__shop { font-size: 18px; }
}

/* 21. 0.5.0 — PC 가운데 정렬 · 메뉴 패널은 앱 화면 안에서 · 회원 화면 입력 여백 */
@media (min-width: 1024px) {
	/* 카드 열(400) + 간격(48) + 앱(480) = 928 이 화면 한가운데 오게 한다(전엔 왼쪽 열이 640 이라 묶음이 오른쪽으로 쏠렸다) */
	.cs-shell { grid-template-columns: 400px var(--app-w); column-gap: 48px; }
	.cs-card { padding: 28px 0; }
	/* 메뉴 패널·어둡게 가림막을 앱 화면 안에 가둔다 — 브라우저 오른쪽 끝이 아니라 앱 화면 오른쪽 끝에서 밀려 나온다(모바일과 같은 모습) */
	.cs-menu { left: var(--mx, 0px); right: auto; width: var(--mw, var(--app-w)); overflow: hidden; }
	.cs-menu__sheet { left: 0; width: 100%; transform: translateX(100%); }
	/* 장바구니 서랍·가림막도 같은 방식 — frame.js 가 .cs-cartclip 안으로 옮기고, 변형(transform)으로 fixed 자손의 기준 상자가 되게 한다 */
	.cs-cartclip { position: fixed; top: 0; left: var(--mx, 0px); width: var(--mw, var(--app-w)); height: 100%; overflow: hidden; transform: translateZ(0); pointer-events: none; z-index: 99998; }
	.cs-cartclip > * { pointer-events: auto; }
	.cs-cartclip .fhs-cart-overlay { z-index: 1; }
	.cs-cartclip .fhs-cart-drawer { z-index: 2; }
}
@media (max-width: 1023px) { .cs-cartclip { display: contents; } }
/* 진행 중 공구 줄 — 첫 카드가 왼쪽 끝에 붙지 않게 스냅 여백, 마우스 끌기, 이전·다음 단추와 점 */
.cs-sec--gongu .gbx--live .gbx__list { scroll-padding: 0 var(--pad); cursor: grab; }
.cs-sec--gongu .gbx--live .gbx__list.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.cs-rail__nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.cs-rail__dots { display: inline-flex; align-items: center; gap: 6px; }
.cs-rail__dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--c-line); transition: width .2s var(--ease), background .2s var(--ease); }
.cs-rail__dots i.is-on { width: 18px; background: var(--c-brand); }
.cs-rail__btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--c-ink); font-size: 22px; line-height: 1; }
.cs-rail__btn:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .cs-rail__btn { display: inline-flex; } }

/* 홈 상품 카드도 목록 카드와 같은 담기·찜 버튼(.fhs-mcard__actions — 모양은 쇼핑 모듈 CSS) + 상태 뱃지 */
.cs-pcard__media { position: relative; }
.cs-pcard__tag { position: absolute; left: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--c-ink); color: var(--c-white); font-size: 12px; font-weight: 700; line-height: 1; }
.cs-pcard__tag--live { background: var(--c-brand); color: var(--c-brand-ink); }
.cs-pcard__tag--soon { background: var(--c-white); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
.cs-pcard__tag--closed, .cs-pcard__tag--off { background: var(--c-muted); color: var(--c-white); }
.cs-pcard .fhs-mcard__cart[disabled], .fhs-mcard .fhs-mcard__cart[disabled] { opacity: .45; cursor: not-allowed; }
.cs-app .fluxmember-form__input,
.cs-app .fluxmember-auth input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]):not([type="button"]) { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; }

/* 22. 머리글 알림 팝업(플럭스 기본 벨) — 머리글 아이콘 크기·색에 맞추고, 패널은 앱 화면 안에서 아래로 연다 */
.cs-head__bell { display: inline-flex; align-items: center; }
.cs-head__bell .fhc-bell { display: inline-flex; }
.cs-head__bell .fhc-bell__btn { width: 44px; height: 44px; background: transparent; color: var(--c-ink); box-shadow: none; border-radius: 0; }
.cs-head__bell .fhc-bell__btn:hover { background: transparent; transform: none; color: var(--c-brand); }
.cs-head__bell .fhc-bell__svg { width: 26px; height: 26px; }
.cs-head__bell .fhc-bell__badge { top: 6px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--c-brand); color: var(--c-brand-ink); font-size: 10px; line-height: 16px; }
.cs-head__bell .fhc-bell__panel { right: -44px; width: min(340px, calc(100vw - 24px)); }

/* 23. 장바구니 팝업 — 일반 쇼핑 모듈의 라임 포인트 대신 크리에이터 브랜드 색 */
.cs-body #fhs-cart-drawer.fx-ui .fhs-cart-drawer__row { background: color-mix(in srgb, var(--c-brand) 10%, var(--c-white)); }
.cs-body .fhs-cart-fab__count { background: var(--c-brand); color: var(--c-brand-ink); }
