/* 핫딜 홈 — Screens-2/01-hotdeal-home.jpg 재현. 토큰 외 값은 화면 실측(1.5x 캡처 ÷ 1.5). */

/* ---------- 화면 컬럼 (프레임 없음) : 390px, 페이지 스크롤, 탭바 하단 고정 ---------- */
html, body { margin: 0; background: var(--gray-100); }
.phone { width: 390px; min-height: 100vh; margin: 0 auto; background: var(--surface); box-shadow: 0 0 0 1px var(--gray-300); display: flex; flex-direction: column; }
.content { width: 390px; flex: 1; }
.fc-tabbar { position: sticky; bottom: 0; z-index: 10; }

/* ---------- 앱바 ---------- */
.fc-appbar { height: 60px; gap: var(--space-4); }
.fc-appbar h1 { font-size: 26px; line-height: 34px; letter-spacing: -0.02em; }
.fc-appbar .right { align-items: center; gap: 18px; }
.fc-appbar .partner { height: 30px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--gray-200); color: var(--ink); font-size: 13px; line-height: 18px; font-weight: 500; }
.fc-appbar .ic.lg svg { width: 26px; height: 26px; }

/* ---------- 탭 ---------- */
.fc-tabs { gap: 22px; padding-top: 4px; }
.fc-tabs > button { font-size: 18px; line-height: 26px; padding: 12px 0 10px; border-bottom-width: 3px; }

/* ---------- 섹션 ---------- */
.band { height: 12px; background: var(--gray-100); }
.section { padding: var(--space-6) 0; }
.section .fc-section { padding: 0 var(--gutter); }
.section .fc-section h2 { font-size: 20px; line-height: 28px; white-space: pre-wrap; }
.section .fc-section h2 .emoji { font-size: 20px; }
.section .fc-section .more { font-size: 15px; line-height: 22px; gap: 4px; }
.section .fc-section .more svg { width: 16px; height: 16px; }
.section .fc-section p { font-size: 15px; line-height: 22px; margin-top: 6px; }

/* ---------- 상품 레일 (가로 스크롤, 20px에서 시작해 bleed) ---------- */
.rail { display: flex; gap: 10px; padding: 0 var(--gutter); margin-top: var(--space-5); overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail::after { content: ""; flex: 0 0 10px; }
.fc-product.hot { width: 126px; flex: none; gap: 0; }
.fc-product.hot .thumb { width: 126px; height: 126px; border-radius: 10px; }
.fc-product.hot .fc-delivery { margin-top: 9px; font-size: 13px; line-height: 18px; }
.fc-product.hot .name { margin-top: 4px; font-size: 14px; line-height: 20px; }
.fc-product.hot .fc-price { margin-top: 6px; gap: 6px; align-items: center; }
.fc-product.hot .fc-price .now { font-size: 17px; line-height: 24px; letter-spacing: -0.02em; }
.fc-product.hot .fc-price .pct { height: 20px; padding: 0 5px; border-radius: var(--radius-xs); background: var(--red-50); font-size: 14px; }

/* ---------- 탭바 (실측 104px: 아이콘 28 + 라벨 13 + 홈 인디케이터) ---------- */
.fc-tabbar { height: 104px; padding: 10px 0 30px; flex: none; }
.fc-tabbar > a { gap: 6px; font-size: 13px; line-height: 18px; color: var(--ink-500); }
.fc-tabbar > a svg { width: 28px; height: 28px; }
.fc-tabbar > a.on { color: var(--ink-900); font-weight: 700; }


/* ---------- 나의 관심 기반 🔥 추천 핫딜 (신규 섹션) ---------- */
.section .fc-section p .down { color: var(--red-400); font-weight: 600; }
.avatars { display: flex; gap: var(--space-3); padding: 6px var(--gutter) 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; } /* 상하 6px = 선택 링(4px) clip 방지 */
.avatars::-webkit-scrollbar { display: none; }
.avatars::after { content: ""; flex: 0 0 8px; }
.avatar { flex: none; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--gray-200); overflow: hidden; box-shadow: 0 0 0 1px var(--gray-300); transition: box-shadow .12s; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--blue-500); }
.avatar { position: relative; }
.reco-for { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: var(--space-3) var(--gutter) 0; font-size: 14px; line-height: 20px; color: var(--ink-700); }
.reco-for b { color: var(--ink); font-weight: 700; flex: 0 1 auto; min-width: 0; max-width: calc(100% - 64px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* 상품명은 한 줄, 넘치면 … — 「연관 핫딜」(60px)이 같은 줄에 남도록 */
.reco-for span { flex: none; }
/* 랭킹 레일: 3행 × 2단, 단 단위로 스와이프(스냅). 단 폭 282 + 간격 20 → 다음 단의 번호와 썸네일 약 40px가 보인다 */
.rank-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 282px; gap: 0 var(--space-5); padding: 0 var(--gutter); margin-top: var(--space-4); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); }
.rank-rail::-webkit-scrollbar { display: none; }
.rank-col { display: flex; flex-direction: column; gap: var(--space-4); scroll-snap-align: start; }
.rank-rail.single { grid-auto-columns: calc(100% - 2 * var(--gutter)); }   /* 연관 1~3개: 단 하나, 스와이프 없음, 텍스트 칸을 넓게 */
.rank-row { display: flex; align-items: flex-start; gap: 10px; }
.rank-row .n { flex: none; width: 20px; margin-right: -2px; text-align: center; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.rank-row .n.top { color: var(--blue-500); }   /* 1위 표시는 blue-500 (DS) */
.rank-row .thumb { position: relative; flex: none; width: 110px; height: 110px; border-radius: var(--radius-md); background: var(--gray-200); overflow: hidden; }
.rank-row .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }   /* 흰 배경 상품 사진을 gray-200 타일에 녹임(앱 썸네일 방식), 잘림 없음 */
.rank-row .body { flex: 1; min-width: 0; }
.rank-row .fc-delivery { font-size: 13px; line-height: 18px; }
.rank-row .name { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-row .fc-price { margin-top: 6px; gap: 6px; align-items: center; }
.rank-row .fc-price .now { font-size: 16px; line-height: 22px; letter-spacing: -0.02em; }
.rank-row .fc-price .pct { height: 20px; padding: 0; background: none; font-size: 13px; }   /* 배경 제거 → 비교 문구보다 한 단계 아래 */
.rank-list { padding: 0 var(--gutter); margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.reco-cta { padding: var(--space-5) var(--gutter) 0; }
.reco-cta .fc-btn { text-decoration: none; }

/* ---------- 전체보기 화면 ---------- */
.fc-appbar.sub h1 { font-size: 20px; line-height: 28px; }
.grid3 { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-2); padding: 0 var(--gutter); margin-top: var(--space-4); }
.grid3 .fc-product { gap: 0; }
.grid3 .fc-product .fc-delivery { margin-top: 8px; font-size: 13px; line-height: 18px; }
.grid3 .fc-product .name { margin-top: 4px; }
.grid3 .fc-product .fc-price { margin-top: 6px; gap: 6px; align-items: center; }
.grid3 .fc-product .fc-price .now { font-size: 16px; line-height: 22px; letter-spacing: -0.02em; }
.grid3 .fc-product .fc-price .pct { height: 20px; padding: 0 5px; border-radius: var(--radius-xs); background: var(--red-50); font-size: 13px; }
.section .fc-section h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; }

/* ---------- 추천 핫딜 섹션 그라데이션: red-400을 surface에 섞어 위에서 아래로 사라짐 (새 색 토큰 없이 파생) ---------- */
.section.reco { background: linear-gradient(180deg, color-mix(in srgb, var(--red-400) 16%, var(--surface)) 0px, color-mix(in srgb, var(--red-400) 7%, var(--surface)) 120px, var(--surface) 230px) no-repeat; }

/* ---------- 단위가격 비교 (100ml당) ---------- */
.reco-for .base { flex: none; width: 100%; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--ink); font-weight: 700; }
.reco-for .base b.unit { color: var(--red-500); font-weight: 600; font-size: 13px; }   /* 쿠팡식 (100ml당 N원) 붉은 강조 */
.rank-row .unit { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-500); font-weight: 500; }
.cmp { display: inline-block; max-width: 100%; padding: 2px 4px; margin-top: 4px; border-radius: var(--radius-xs); font-size: 10.5px; line-height: 16px; letter-spacing: -0.03em; font-weight: 600; white-space: nowrap; }   /* 134px 칸에 한 줄 — 5자리 금액까지 ≤134px 실측 */
.cmp.cheaper { background: var(--blue-100); color: var(--blue-500); }   /* 더 쌈 = 구매타이밍 틴트 */
.cmp.pricier { background: var(--gray-200); color: var(--ink-500); }
.cmp.same { background: var(--gray-200); color: var(--ink-700); }

/* ---------- 썸네일 역대급최저가 라벨 (DS ProductCard 2열 규격을 110px용으로 축소) ---------- */
.thumb .fc-badge.lowest { position: absolute; left: 8px; top: 8px; height: 20px; padding: 0 6px; font-size: 12px; line-height: 16px; border-radius: var(--radius-xs); }   /* 앱 110px 썸네일 규격: 「역대급」 짧은 라벨, 8px 인셋, 네 모서리 둥글게 */

/* ---------- 신뢰 루프: 같은 자리에서 메시지 로테이션 ---------- */
.trust { position: relative; height: 20px; margin-top: 6px; overflow: hidden; }
.rank-row .trust { margin-top: 4px; }
.rank-row .trust .msg { font-size: 11px; letter-spacing: -0.01em; }   /* 텍스트 칸 134px 안에 한 줄로 들어가도록 축소 */
.trust .msg { position: absolute; left: 0; top: 0; display: block; height: 20px; max-width: 100%; font-size: 12px; line-height: 16px; color: var(--ink-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(100%); transition: transform .4s ease, opacity .4s ease; }
.trust .msg b { font-weight: 700; color: var(--ink); }
.trust .msg.on { opacity: 1; transform: translateY(0); }
.trust .msg.out { opacity: 0; transform: translateY(-100%); }
/* 가격비교 최저가: blue-400→purple-500 그라데이션 테두리가 흐르며 반짝임 (앱 가격비교 카드 색) */
.trust .msg.compare { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: var(--radius-pill); font-weight: 700; color: var(--purple-500); border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, var(--blue-400), var(--purple-500), var(--blue-400), var(--purple-500)) border-box; background-size: 100% 100%, 300% 100%; animation: fc-shimmer 2.2s linear infinite; }
.trust .msg.compare .spark { color: var(--blue-400); font-size: 11px; animation: fc-twinkle 1.1s ease-in-out infinite; }
@keyframes fc-shimmer { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 300% 0; } }
@keyframes fc-twinkle { 0%, 100% { opacity: .5; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.fc-product .thumb { position: relative; }

/* ---------- 정보 위계 (B안 확정 2026-10-03): 단가는 가격 아래 작은 붉은 글씨, 비쌈은 회색 텍스트, 저렴만 틴트 뱃지 ---------- */
.rank-row .unit { display: block; margin: 2px 0 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-500); }   /* 단가는 근거 자료 → 회색 */
.rank-row .cmp.cheaper { margin-top: 4px; }

/* ---------- 정렬·필터 행 (앱 긴급 핫딜 목록 상단과 동일) ---------- */
.filter-row { display: flex; align-items: center; gap: var(--space-4); padding: 0 var(--gutter); margin: var(--space-3) 0 var(--space-1); font-size: 15px; line-height: 22px; }
.filter-row .sort { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-500); font-weight: 500; margin-right: auto; }
.filter-row .sort svg { width: 16px; height: 16px; }
.filter-row .fc-check { font-size: 14px; gap: 6px; }

/* 모든 썸네일 공통: 흰 배경 사진은 타일 색에 녹이고, 잘라내지 않는다 */
.fc-product .thumb img, .avatar img { object-fit: contain; mix-blend-mode: multiply; }

/* ---------- 쿠폰가 뱃지 (앱 상세의 쿠폰가 뱃지 색: lavender-100 / purple-700) ---------- */
.fc-badge.coupon { height: 20px; padding: 0 6px; border-radius: var(--radius-xs); background: var(--lavender-100); color: var(--purple-700); font-size: 11px; }
/* ---------- 품절 관심상품: 원형 썸네일 35% 스크림 + 품절 (DS 품절 규칙) ---------- */
.avatar .soldout { position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: var(--on-ink); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
/* ---------- 용량 옵션 묶음 행 ---------- */
.rank-row.option .opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rank-row.option .opt { height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--gray-200); color: var(--ink-700); font-size: 10.5px; line-height: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.rank-row.option .opt b { font-weight: 700; color: var(--ink); }
.rank-row.option .opt.best { background: var(--blue-100); color: var(--blue-600); }
.rank-row.option .opt.best b { color: var(--blue-600); }
.rank-row.option .unit { font-weight: 500; }
/* ---------- 광고 카드 (전체보기 연관 상품 시안) ---------- */
.thumb .fc-badge.adtag { position: absolute; right: 6px; top: 6px; }

/* ---------- 푸시 알림 시안 (잠금화면) — push.html ---------- */
.push-page { width: 390px; margin: 0 auto; padding: 24px 0 40px; }
.push-page .cap { margin: 0 0 12px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-700); }
.push-page .cap span { color: var(--ink-500); font-weight: 500; }
.lock { position: relative; height: 760px; border-radius: 44px; overflow: hidden; background: linear-gradient(180deg, #4a5a78 0%, #2a3448 55%, #1b2230 100%); color: var(--on-ink); padding: 0 14px; font-family: var(--fc-font); }
.lock .time { text-align: center; padding-top: 86px; font-size: 76px; line-height: 80px; font-weight: 600; letter-spacing: -0.02em; }
.lock .date { text-align: center; margin-top: 2px; font-size: 20px; line-height: 26px; font-weight: 500; }
.lock .stack { margin-top: 56px; display: flex; flex-direction: column; gap: 10px; }
a.noti { text-decoration: none; cursor: pointer; }
.noti { display: flex; gap: 10px; padding: 12px 14px 12px 12px; border-radius: 22px; background: rgba(255,255,255,.86); color: var(--ink); backdrop-filter: blur(20px); }
.noti .icon { flex: none; width: 38px; height: 38px; border-radius: 9px; overflow: hidden; }
.noti .icon img { width: 100%; height: 100%; display: block; }
.noti .txt { flex: 1; min-width: 0; font-size: 15px; line-height: 20px; }
.noti .hd { display: flex; align-items: baseline; gap: 6px; }
.noti .hd b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noti .hd .when { flex: none; font-size: 13px; color: var(--ink-500); }
.noti .body { color: var(--ink); }
.noti .body .sub { display: block; color: var(--ink-700); }
.noti .pic { flex: none; width: 38px; height: 38px; border-radius: 8px; background: var(--gray-200); overflow: hidden; align-self: center; }
.noti .pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.noti.dim { opacity: .55; }
.lock .foot { position: absolute; left: 50%; bottom: 10px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: rgba(255,255,255,.9); }

/* ---------- 상품상세 (Screens/53 구조) ---------- */
.d-head { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-2) var(--gutter) var(--space-4); border-bottom: 1px solid var(--gray-300); margin: 0 0 var(--space-4); }
.d-thumb { flex: none; width: 128px; height: 128px; border-radius: var(--radius-md); background: var(--gray-200); overflow: hidden; }
.d-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; }
.d-name .nm { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); }
.d-name .opt { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink-500); }
.d-price { padding: 0 var(--gutter) var(--space-4); }
.d-price .fc-price { gap: var(--space-2); }
.d-unit { margin-top: 2px; font-size: 15px; line-height: 22px; color: var(--ink-500); }
.d-badges { margin-top: var(--space-3); gap: 6px; }
.d-badges .fc-badge-lowest { border-radius: var(--radius-sm); }
.d-cert { display: flex; align-items: center; gap: 8px; margin-top: var(--space-4); font-size: 14px; font-weight: 600; }
.d-cert .c { color: var(--ink); }
.d-cert .sep { width: 1px; height: 14px; background: var(--gray-300); }
.d-cert .fc-delivery { font-size: 14px; }
.d-cert .report { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-500); text-decoration: underline; }
.d-chart { padding-bottom: var(--space-6); }
.d-chart .fc-seg { height: 40px; }
.d-bar { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: var(--space-4); height: 84px; padding: 10px var(--gutter) 18px; background: var(--surface); border-top: 1px solid var(--gray-300); }
.d-bar .add { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.d-bar .add .plus { font-size: 24px; line-height: 24px; color: var(--blue-500); }
.d-bar .avg { display: flex; flex-direction: column; gap: 2px; padding-left: var(--space-3); border-left: 1px solid var(--gray-300); font-size: 13px; color: var(--ink-500); }
.d-bar .avg b { font-size: 16px; color: var(--ink); }
.d-bar .buy { margin-left: auto; height: 48px; padding: 0 28px; font-size: 16px; border-radius: var(--radius-md); }
/* 추천 행·카드 → 상품상세 링크 */
.rank-row, .fc-product[data-id] { cursor: pointer; }

/* ---------- 추천 기준 ⓘ → 앱 안내 다이얼로그 (관심상품 홈 「오늘 사면 좋은 상품 ⓘ」와 동일) ---------- */
.section .fc-section h2 .why, .section .fc-section h3 .why { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 4px; border: 0; padding: 0; background: none; color: var(--ink-700); vertical-align: -3px; cursor: pointer; }
.section .fc-section h2 .why svg, .section .fc-section h3 .why svg { width: 20px; height: 20px; }
.why-dialog { display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; }
.why-dialog.on { display: flex; }
.why-dialog .fc-dialog { padding: var(--space-6) var(--space-5) 0; text-align: left; }
.why-dialog h4 { margin: 0 0 var(--space-3); font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ink); }
.why-dialog .note { margin: var(--space-3) 0 0; font-size: 13px; line-height: 19px; color: var(--ink-500); }
.why-dialog .bul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 23px; color: var(--ink-700); }
.why-dialog .bul li { position: relative; padding-left: 14px; }
.why-dialog .bul li::before { content: "•"; position: absolute; left: 0; color: var(--ink-500); }
.why-dialog .foot { display: flex; margin: var(--space-5) calc(-1 * var(--space-5)) 0; border-top: 1px solid var(--gray-300); }
.why-dialog .foot .ok { flex: 1; height: 52px; background: none; border: 0; font-size: 16px; font-weight: 500; color: var(--ink-500); }

/* ---------- 전체보기: 앱바와 선택 영역은 각각 고정, 그 사이 「추천 핫딜 알림 ›」 행은 스크롤되어 사라짐 (앱 목록 화면 패턴) ---------- */
.sticky-bar { position: sticky; top: 52px; z-index: 21; background: var(--surface); }   /* 52px = 프로토타입 헤더 */
.sticky-sel { position: sticky; top: calc(52px + 60px); z-index: 20; background: var(--surface); }   /* 앱바(60) 아래 */
.sticky-sel.stuck { box-shadow: 0 1px 0 var(--gray-300), 0 4px 12px rgba(33,37,41,.06); }
.sticky-sel.section.reco { padding-top: 4px; padding-bottom: 10px; background: var(--surface); }
.sticky-sel .avatars { margin-top: 2px; }
.sticky-sel .reco-for { margin-top: 8px; }
html.embed .sticky-bar { top: 0; }
html.embed .sticky-sel { top: 60px; }
.fc-fab.to-top { position: fixed; right: calc(50% - 195px + 16px); bottom: 100px; z-index: 30; background: var(--surface); color: var(--ink); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s; }
.fc-fab.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
@keyframes fc-flash { 0% { background: var(--blue-100); } 100% { background: transparent; } }
.reco-for { border-radius: var(--radius-sm); margin-left: calc(var(--gutter) - 6px); margin-right: calc(var(--gutter) - 6px); padding: 2px 6px; }

/* ---------- 시안 이동 탭: 폰 화면 밖, 웹사이트 헤더처럼 전체 폭 상단 고정 (프로토타입 전용) ---------- */
.proto-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 52px; background: var(--surface); border-bottom: 1px solid var(--gray-300); }
.proto-nav .in { max-width: 1100px; height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.proto-nav .brand { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.proto-nav nav { display: flex; gap: 4px; flex: 1; }
.proto-nav nav a { white-space: nowrap; padding: 8px 12px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; color: var(--ink-500); text-decoration: none; }
.proto-nav nav a:hover { background: var(--gray-200); color: var(--ink); }
.proto-nav nav a.on { background: var(--ink); color: var(--on-ink); }
.proto-nav .back { font-size: 13px; font-weight: 600; color: var(--blue-500); text-decoration: none; white-space: nowrap; padding: 8px 12px; border-radius: var(--radius-pill); }   /* 발표 사이트의 「시안 상세보기」와 같은 버튼 형식 */
.proto-nav .back:hover { background: var(--blue-50); }
@media (max-width: 760px) { .proto-nav .brand { display: none; } }
body { padding-top: 52px; }
.push-page { padding-top: 24px; }

/* ---------- 실험용 시안: 행 벨(알림 켜기) · ⋯ 숨기기 · 사유 시트 · 토스트 · 대체 핫딜 알림 토글 ---------- */
.rank-row .body { position: relative; }
.exp-sheet { display: none; position: fixed; inset: 0; z-index: 300; background: var(--scrim); align-items: flex-end; justify-content: center; }
.exp-sheet.on { display: flex; }
.exp-sheet .fc-sheet h3 { display: block; margin-bottom: var(--space-2); }
.exp-sheet .fc-sheet h3 .t { display: block; font-size: 18px; line-height: 26px; }
.exp-sheet .fc-sheet h3 .t em { font-style: normal; color: var(--blue-600); }
.exp-sheet .fc-sheet h3 span.sub { display: block; margin-top: 4px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-500); }
.exp-sheet .opt { cursor: pointer; }
.exp-toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(12px); opacity: 0; transition: .2s; z-index: 300; pointer-events: none; }
.exp-toast.on { opacity: 1; transform: translateX(-50%); }
.exp-setting { margin: var(--space-3) var(--gutter) 0; }
.exp-setting .fc-list-row { min-height: 52px; padding: var(--space-2) 0; }
.exp-setting .fc-list-row .label { font-size: 16px; }
.exp-setting .fc-note { font-size: 13px; line-height: 19px; }

/* ---------- 알림 설정 화면 (앱 캡처 구조: ListRow + Toggle + NoteBox) ---------- */
.settings .s-body { padding: var(--space-2) var(--gutter) 0; }
.settings .fc-note-pink { margin-bottom: var(--space-2); font-size: 14px; }
.settings .fc-list-row { min-height: 60px; }
.settings .fc-list-row .icon { font-size: 22px; }
.settings .fc-list-row .label { font-size: 17px; display: inline-flex; align-items: center; gap: 6px; }
.settings .fc-list-row .value { font-size: 16px; }
.settings .fc-note { margin: -4px 0 var(--space-2); font-size: 14px; line-height: 21px; color: var(--ink-700); }
.settings .fc-list-row.new, .settings .fc-note.new { position: relative; }
.settings .fc-list-row.new::before { content: ""; position: absolute; left: calc(-1 * var(--gutter) + 6px); top: 10px; bottom: -58px; width: 3px; border-radius: 2px; background: var(--blue-500); }   /* 시안 표시: 신규 행 */

/* ---------- embed(iframe) 모드: 프로토 헤더 없음 ---------- */
html.embed body { padding-top: 0; }
html.embed .phone { box-shadow: none; }
html.embed .fc-fab.to-top { right: 16px; }

/* ---------- 실험군 홈: 설문 카드 · 알림 안내 줄 (기본 숨김, state로 노출) ---------- */

/* ---------- 개요 페이지(전체 시안 · 실험용): 실험 단위 → 소그룹 상자 → 화면 ---------- */
body.overview { max-width: none; background: var(--gray-100); }
.ov { max-width: 1480px; margin: 0 auto; padding: 32px 32px 80px; }
.ov h1 { margin: 0 0 8px; font-size: 24px; line-height: 32px; font-weight: 700; }
.ov .lead { margin: 0 0 8px; font-size: 14px; line-height: 21px; color: var(--ink-700); max-width: 760px; }
.ov .unit { margin-top: 48px; padding: 28px 28px 32px; background: var(--surface); border: 1px solid var(--gray-300); border-radius: 20px; }
.ov .unit.slim { padding: 20px 28px; }
.ov .unit h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.ov .unit h2 .tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--blue-100); color: var(--blue-600); }
.ov .unit h2 .tag.gray { background: var(--gray-200); color: var(--ink-700); }
.ov .unit .desc { margin: 8px 0 0; font-size: 14px; line-height: 21px; color: var(--ink-700); max-width: 760px; }
.ov details { margin-top: 12px; }
.ov summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--blue-500); list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.ov summary::before { content: "▸"; font-size: 11px; }
.ov details[open] summary::before { content: "▾"; }
.ov table { border-collapse: collapse; margin: 10px 0 4px; font-size: 13px; line-height: 19px; max-width: 900px; }
.ov th, .ov td { text-align: left; padding: 7px 16px 7px 0; vertical-align: top; border-bottom: 1px solid var(--gray-300); }
.ov th { color: var(--ink-500); font-weight: 600; white-space: nowrap; width: 110px; }
.ov .groups { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }   /* 가로 스크롤 없이 소그룹을 세로로, 화면은 줄바꿈 */
.ov .group { padding: 16px 20px 20px; background: var(--gray-100); border-radius: 16px; }
.ov .group.ctrl { background: var(--gray-200); }
.ov .group.measure { background: var(--blue-50); }
.ov .group.wide { background: transparent; padding: 0; }
.ov .group h3 { margin: 0 0 14px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.ov .group h3 span { font-size: 12px; font-weight: 500; color: var(--ink-500); }
.ov .screens { display: flex; flex-wrap: wrap; gap: 32px 36px; align-items: flex-start; }
.ov .scr { flex: none; width: 390px; }
.ov .scr .cap { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 13px; line-height: 18px; }
.ov .scr .cap b { font-weight: 700; color: var(--ink); }
.ov .scr .cap span { color: var(--ink-500); }
.ov .scr .cap .n { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ov .scr iframe { display: block; width: 390px; height: 844px; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 8px 24px rgba(33,37,41,.08); }
.ov .arrow { display: none; }   /* 줄바꿈 레이아웃에서는 캡션 번호로 순서를 표시 */

/* ---------- 전체보기 상단 알림 설정 진입점 + 설정 시트 (앱 초특급 핫딜 알림 패턴) ---------- */
.alert-entry { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 2 * var(--gutter)); margin: 4px var(--gutter) 6px; padding: 0 16px; height: 56px; border: 0; border-radius: var(--radius-md); background: var(--gray-100); font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; }
.alert-entry svg { width: 18px; height: 18px; color: var(--ink-500); }
.alert-sheet .fc-sheet h3 .t { display: flex; align-items: center; gap: 6px; font-size: 20px; line-height: 28px; }
.alert-sheet .why.info { display: inline-flex; width: 22px; height: 22px; border: 0; padding: 0; background: none; color: var(--ink-500); }
.alert-sheet .why.info svg { width: 20px; height: 20px; }
.alert-sheet .fc-note { margin: 4px 0 var(--space-4); }
.alert-sheet .row { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; border-radius: var(--radius-md); background: var(--gray-100); }
.alert-sheet .row .label { font-size: 17px; font-weight: 600; }
.alert-sheet .done { margin-top: var(--space-5); }

.fc-appbar .right button.ic { border: 0; background: none; padding: 0; color: var(--ink-700); cursor: pointer; }

.cmp.avg { background: var(--gray-200); color: var(--ink-700); }   /* 비교 불가 행: 폴센트 평균가 대비 (회색) */

.rank-row.pushed { animation: fc-flash 1.6s ease-out; border-radius: var(--radius-sm); }   /* 푸시로 진입한 상품 행만 강조 */

/* ---------- 관심상품 홈 (Screens/03 재현) ---------- */
.page-cap { width: 390px; margin: 16px auto 10px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-700); }
.page-cap span { color: var(--ink-500); font-weight: 500; }
.page-cap a { color: var(--blue-500); }
html.embed .page-cap { display: none; }
.w-chips { display: flex; gap: 8px; padding: 2px var(--gutter) 0; }
.w-chips .fc-chip { height: 44px; padding: 0 18px; font-size: 16px; }
.w-chips .plus { padding: 0 16px; font-size: 22px; font-weight: 400; }
.w-today { display: flex; align-items: center; gap: 8px; padding: 22px var(--gutter) 18px; font-size: 18px; font-weight: 700; }
.w-today .t { flex: 1; } .w-today em { font-style: normal; color: var(--blue-500); } .w-today i { font-style: normal; font-weight: 400; color: var(--ink-400); font-size: 16px; }
.w-today svg { width: 20px; height: 20px; color: var(--ink-500); }
.w-tools { display: flex; align-items: center; gap: 18px; padding: 14px var(--gutter) 10px; font-size: 16px; font-weight: 500; color: var(--ink-700); }
.w-tools .sort { flex: 1; display: inline-flex; align-items: center; gap: 2px; color: var(--ink-500); }
.w-tools .sort svg { width: 16px; height: 16px; }
.w-tools .tool { display: inline-flex; align-items: center; gap: 4px; }
.w-tools .tool svg { width: 22px; height: 22px; }
.w-grid { display: grid; grid-template-columns: repeat(3, 110px); justify-content: space-between; row-gap: 20px; padding: 6px var(--gutter) 0; }
.w-grid .fc-product .thumb img { object-fit: cover; mix-blend-mode: normal; }
.w-grid .fc-product .thumb .badges .fc-badge { border-radius: var(--radius-xs); margin-left: 6px; margin-top: 6px; height: 20px; font-size: 11px; }
.w-grid .fc-product .thumb .badges .fc-badge + .fc-badge { margin-top: 2px; }
.w-fab { position: fixed; right: calc(50% - 195px + 20px); bottom: 100px; z-index: 30; width: 56px; height: 56px; }
html.embed .w-fab { right: 20px; }

/* ---------- 플로팅 팁 (토스 자산 관리 팁 패턴 응용) ---------- */
.tip-card { position: fixed; right: calc(50% - 195px + 20px); bottom: 184px; z-index: 40; width: 296px;   /* 오른쪽 아래, 앱 FAB(bottom 100 + 56) 바로 위 */ padding: 14px 16px 16px; border-radius: var(--radius-lg); background: linear-gradient(180deg, color-mix(in srgb, var(--red-400) 10%, var(--surface)) 0%, var(--surface) 70%); box-shadow: 0 10px 28px rgba(33,37,41,.16), 0 2px 6px rgba(33,37,41,.08), 0 0 0 1px var(--gray-300); transform-origin: 100% 100%;   /* 추천 섹션과 같은 red-400 틴트 그라데이션 + 조금 더 분명한 그림자 */ opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; transition: transform .32s cubic-bezier(.2,.9,.3,1.2), opacity .25s; }
.tip-card.on { opacity: 1; transform: none; pointer-events: auto; }
.tip-card.gone { opacity: 0; transform: translateY(12px) scale(.98); transition: transform .22s ease, opacity .2s; }
.tip-card.collapse { opacity: 0; transform: translate(0, 0) scale(.2); transition: transform .3s cubic-bezier(.5,0,.8,.4), opacity .25s; }
.tip-card .hd { display: flex; align-items: center; justify-content: space-between; }
.tip-card .hd .k { font-size: 13px; font-weight: 700; color: var(--blue-500); }
.tip-card .hd .x { border: 0; background: none; color: var(--ink-400); font-size: 14px; padding: 2px; margin-right: -4px; }
.tip-card .bd { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.tip-card .bd .pic { flex: none; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--gray-200); overflow: hidden; }
.tip-card .bd .pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tip-card .bd p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink); min-width: 0; }
.tip-card .bd p .big { display: block; font-size: 16px; line-height: 22px; font-weight: 700; }
.tip-card .bd p .big em { font-style: normal; color: var(--red-500); }   /* 금액이 주인공, 하락 색 */
.tip-card .bd p .sub { display: block; margin-top: 3px; font-size: 12px; line-height: 17px; color: var(--ink-500); }
.tip-card .go { display: flex; width: 100%; margin-top: 12px; text-decoration: none; }
.tip-bubble { position: fixed; right: calc(50% - 195px + 20px); bottom: 168px; z-index: 40; width: 56px; height: 56px; padding: 0; border: 2px solid var(--surface); border-radius: 50%; background: var(--gray-200); box-shadow: var(--shadow-fab); overflow: visible; opacity: 0; transform: scale(.4); pointer-events: none; transition: transform .28s cubic-bezier(.2,.9,.3,1.3), opacity .2s; }
.tip-bubble img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; mix-blend-mode: multiply; }
.tip-bubble .dot { position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--red-400); border: 2px solid var(--surface); }
.tip-bubble.on { opacity: 1; transform: none; pointer-events: auto; }
html.embed .tip-card { right: 20px; }
html.embed .tip-bubble { right: 20px; }

.page-actions { width: 390px; margin: 0 auto 14px; display: flex; gap: 8px; }
.page-actions .fc-btn { text-decoration: none; }
html.embed .page-actions { display: none; }

.w-grid .alt-link { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--blue-500); text-decoration: none; }   /* 품절 카드의 재진입점 */
/* 발표 순서 페이지 전용(?dim=1): 플로팅 카드가 펼쳐진 동안 뒤 화면을 흰색 반투명으로 덮음 */
.tip-dim { position: fixed; inset: 0; z-index: 39; background: rgba(255,255,255,.45); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tip-card.on:not(.collapse):not(.gone) + .tip-dim { opacity: 1; }
