/* flow.css — 결과 리스트 · 상세 · 비교 연결 프로토타입 (system/cards/list-classic 위에 얹음) */
.phone{ position:relative; height:868px; display:flex; flex-direction:column; }
.flscroll, .fllist{ flex:1; min-height:0; overflow-y:auto; scrollbar-width:none; }
.flscroll::-webkit-scrollbar, .fllist::-webkit-scrollbar{ display:none; }

/* 상단 정렬 요약 바 + 필터 칩 */
.flbar{ display:flex; align-items:center; gap:10px; padding:11px 16px; border-bottom:1px solid var(--hair); }
.flbar .flb-l{ flex:1; min-width:0; display:flex; align-items:baseline; gap:7px; }
.flbar .flb-k{ font-size:10px; font-weight:800; color:var(--ink4); flex:none; }
.flbar .flb-v{ font-size:13px; font-weight:800; color:var(--accent-ink); letter-spacing:-.01em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.flbar .flb-btn{ flex:none; height:32px; padding:0 13px; border-radius:9px; background:var(--accent); color:#fff; font-size:12px; font-weight:800; display:inline-flex; align-items:center; text-decoration:none; }
.flfilters{ display:flex; flex-wrap:wrap; gap:6px; padding:10px 16px; border-bottom:1px solid var(--hair); background:var(--bg); }
.flfilters.none{ font-size:11.5px; font-weight:700; color:var(--ink4); }
.fchipro{ display:inline-flex; align-items:center; gap:5px; height:25px; padding:0 6px 0 9px; border-radius:999px; background:var(--surface); border:1.5px solid var(--line2); font-size:11px; font-weight:700; color:var(--ink2); }
.fchipro i{ font-style:normal; font-size:8.5px; font-weight:800; color:var(--ink4); }
.fchipx{ width:16px; height:16px; border-radius:50%; border:none; background:var(--raise2); color:var(--ink3); font-size:8px; display:flex; align-items:center; justify-content:center; cursor:pointer; flex:none; padding:0; }
.fchipx:hover{ background:var(--accent-weak); color:var(--accent-ink); }

/* 카드: 성분 칼럼칩 + 효능 카운트 (advanced 카드와 동일 비주얼) */
/* 원료가 많은 제품은 칩이 세로로 쭉 늘어져 가독성이 떨어짐 — 사진을 세로 전체를 차지하는 별도 칼럼이
   아니라 이름과 함께 작은 헤더 줄로 묶고, 그 아래는 칩이 카드 전체 폭(사진이 있던 자리 포함)을 2열
   그리드로 채우도록 구조 변경(2026-07-01, 사용자 요청 — "사진 밑 빈공간을 원료효능으로"). */
.clcard{ cursor:pointer; grid-template-columns:1fr auto; align-items:start; }
.cl-head{ display:flex; align-items:flex-start; gap:10px; }
.cl-head image-slot{ width:56px; height:56px; flex:none; }
.cl-headtext{ min-width:0; }
/* align-items:stretch 명시 — card.css의 예전 .cl-igline{align-items:center} 잔재가 그리드로 바뀐
   지금도 적용되면서, 원료명이 2줄로 길어진 칩만 회색 배경이 커지고 옆칸은 좁게 남아 크기가 서로 달라
   보이던 문제(2026-07-01, 사용자 지적) — stretch로 같은 줄의 칩 높이를 항상 맞춤. */
.cl-igline{ display:grid; grid-template-columns:1fr 1fr; gap:6px; align-items:stretch; }
.cl-igline .ig{ flex-direction:column; align-items:flex-start; justify-content:center; gap:1px; padding:4px 9px; border-radius:8px; background:var(--raise); white-space:normal; }
.cl-igline .ig .in{ font-size:11.5px; font-weight:700; color:var(--ink2); }
.cl-igline .ig .mks{ display:flex; gap:5px; flex-wrap:wrap; }
.cl-igline .ig .mk{ font-size:9.5px; font-weight:700; color:var(--ink4); } .cl-igline .ig .mk b{ color:var(--ink3); font-weight:800; }
.cl-igline .ig .mk.hit{ color:var(--accent-ink); } .cl-igline .ig .mk.hit b{ color:var(--accent-ink); }
.cl-igline .ig.core-hot{ background:var(--accent-weak); } .cl-igline .ig.core-hot .in{ color:var(--accent-ink); }
.cl-igline .ig.more{ background:transparent; color:var(--ink4); font-weight:700; align-self:center; }
.cl-igline .ig.wide{ grid-column:1 / -1; }
.cl-effs .ef{ display:inline-flex; align-items:center; }
.cl-effs .ef .efn{ margin-left:5px; padding-left:5px; border-left:1px solid currentColor; font-weight:800; font-variant-numeric:tabular-nums; opacity:.6; }
.cl-effs .ef.more-ef{ color:var(--ink4); background:transparent; }

/* 비교 담기 바 (리스트 하단 고정) */
.basket{ flex:none; display:flex; align-items:center; gap:12px; padding:12px 16px; border-top:1px solid var(--line); background:var(--surface); box-shadow:0 -6px 20px -12px rgba(20,20,26,.25); }
.basket .bk-t{ flex:1; font-size:13px; font-weight:800; color:var(--ink2); } .basket .bk-t b{ color:var(--accent-ink); }
.basket .bk-clear{ flex:none; height:42px; padding:0 14px; border-radius:12px; border:1.5px solid var(--line2); background:var(--surface); font-size:12.5px; font-weight:800; color:var(--ink3); cursor:pointer; }
.basket .bk-go{ height:42px; padding:0 20px; border-radius:12px; border:none; background:var(--accent); color:#fff; font-size:13.5px; font-weight:800; cursor:pointer; }

.cmp-pill{ cursor:pointer; border:none; font-family:inherit; }

/* 상세 — 원료/지표성분 + 함량 막대 */
.dhero image-slot{ width:64px; height:64px; flex:none; }
.dmat{ padding:11px 0; border-top:1px solid var(--hair); } .dmat:first-child{ border-top:none; padding-top:0; }
.dmat-h{ display:flex; align-items:baseline; gap:9px; flex-wrap:wrap; }
.dmat-n{ font-size:13.5px; font-weight:800; color:var(--ink); }
.dmat-mks{ display:flex; gap:9px; flex-wrap:wrap; } .dmk{ font-size:11.5px; font-weight:700; color:var(--ink4); } .dmk b{ color:var(--ink2); font-weight:800; }
.dbar{ margin-top:9px; }
.db-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.db-top .db-n{ font-size:11px; font-weight:800; color:var(--ink3); }
.db-top .db-tag{ font-size:10px; font-weight:800; border-radius:5px; padding:2px 7px; }
.db-top .db-tag.ok{ color:#fff; background:var(--accent); } .db-top .db-tag.no{ color:var(--ink3); background:var(--raise2); }
.db-track{ position:relative; height:6px; background:var(--raise2); border-radius:3px; overflow:visible; }
.db-fill{ position:absolute; left:0; top:0; bottom:0; background:var(--accent); border-radius:3px; }
.db-legal{ position:absolute; top:-3px; bottom:-3px; width:2px; background:var(--ink3); border-radius:1px; }
.db-h{ position:absolute; top:50%; width:13px; height:13px; border-radius:50%; background:#fff; border:2.5px solid var(--accent); transform:translate(-50%,-50%); box-shadow:0 1px 3px rgba(0,0,0,.2); }
.db-scale{ position:relative; height:13px; margin-top:5px; font-size:9px; font-weight:700; color:var(--ink4); }
.db-scale .db-lg{ position:absolute; transform:translateX(-50%); white-space:nowrap; color:var(--ink3); font-weight:800; }
.db-scale .db-mx{ position:absolute; right:0; }
/* 상세 — 효능 */
.deffs{ display:flex; flex-wrap:wrap; gap:6px; }
.defc{ display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 11px; border-radius:999px; background:var(--accent-weak); color:var(--accent-ink); font-size:12px; font-weight:800; }
.defc .defn{ font-size:9.5px; font-weight:800; color:var(--accent); background:var(--surface); border-radius:5px; padding:1px 6px; }
.dnote{ font-size:12px; color:var(--ink2); line-height:1.6; font-weight:500; }

/* 상세 CTA */
.flcta{ flex:none; display:flex; gap:9px; padding:13px 16px 16px; border-top:1px solid var(--line); background:var(--surface); }
.flcta .cta-cmp{ flex:1; height:48px; border-radius:13px; border:1.5px solid var(--line2); background:var(--surface); font-size:13.5px; font-weight:800; color:var(--ink); cursor:pointer; }
.flcta .cta-cmp.on{ border-color:var(--accent); background:var(--accent-weak); color:var(--accent-ink); }
.flcta .cta-buy{ flex:1.3; height:48px; border-radius:13px; border:none; background:var(--accent); color:#fff; font-size:14px; font-weight:800; cursor:pointer; display:flex; align-items:center; justify-content:center; text-decoration:none; box-sizing:border-box; }
.flcta .cta-buy.dis{ background:var(--raise2); color:var(--ink4); cursor:default; }
.flcta .cta-buy small{ font-size:11px; font-weight:700; opacity:.8; margin-left:2px; }

/* 비교 */
.ccount{ display:flex; align-items:center; gap:10px; padding:13px 16px 10px; }
.ccount .cc-back{ flex:none; width:34px; height:34px; border-radius:10px; border:1px solid var(--line2); background:var(--surface); font-size:20px; line-height:1; color:var(--ink2); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.ccount .cc-l{ flex:1; font-size:13px; font-weight:800; color:var(--ink2); } .ccount b{ color:var(--accent-ink); } .ccount .cc-l span{ display:block; font-size:10.5px; font-weight:700; color:var(--ink4); margin-top:2px; }
.ccount .cc-clear{ flex:none; height:30px; padding:0 13px; border-radius:9px; border:1.5px solid var(--line2); background:var(--surface); font-size:11.5px; font-weight:800; color:var(--ink3); cursor:pointer; }
.ccount .cc-clear:hover{ border-color:var(--accent-line); color:var(--accent-ink); }
.ctbl .ccell.chd{ position:relative; background:var(--bg); padding-top:13px; padding-bottom:12px; }
.ctbl .ccell.chd .nm{ padding-right:18px; cursor:pointer; }
.ctbl .ccell .ccut{ position:absolute; top:7px; right:6px; width:19px; height:19px; border-radius:50%; border:none; background:var(--raise2); color:var(--ink3); font-size:9px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.ctbl .ccell .ccut:hover{ background:var(--accent-weak); color:var(--accent-ink); }
.ctbl .ccell .u{ display:block; margin-top:2px; }
.ctbl .cfns{ display:flex; flex-direction:column; gap:3px; } .ctbl .cfns span{ display:flex; align-items:center; gap:4px; font-size:10.5px; font-weight:700; color:var(--ink2); }
.ctbl .cfns span i{ font-style:normal; font-size:8.5px; font-weight:800; color:var(--ink4); background:var(--raise2); border-radius:999px; padding:0 5px; line-height:14px; }
.ctbl .cfns span.shared{ color:var(--accent-ink); } .ctbl .cfns span.shared i{ color:var(--accent-ink); background:var(--accent-weak); }

/* 빈 상태 / 링크 */
.flempty{ padding:48px 28px; text-align:center; color:var(--ink4); font-size:13.5px; font-weight:600; line-height:1.7; }
.flempty a, .flempty .lnk{ color:var(--accent-ink); font-weight:800; text-decoration:none; background:none; border:none; cursor:pointer; font-size:13.5px; }

/* ════════ 상세 v2 ════════ */
/* 큰 상단 이미지 */
.dimg{ position:relative; width:100%; height:228px; background:var(--raise); }
.dimg image-slot{ width:100%; height:100%; display:block; }
.dback{ position:absolute; top:12px; left:12px; z-index:2; width:34px; height:34px; border-radius:50%; border:none; background:rgba(20,20,26,.5); color:#fff; font-size:18px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.dhead{ padding:16px 18px; border-bottom:1px solid var(--line); }
.dhead .brand{ font-size:12.5px; color:var(--ink3); font-weight:700; margin-bottom:5px; }
.dhead .name{ font-size:21px; font-weight:800; letter-spacing:-.03em; line-height:1.25; }
.dhead .pricerow{ display:flex; align-items:flex-end; justify-content:space-between; margin-top:14px; padding-top:13px; border-top:1px solid var(--hair); }
.dhead .pday{ font-size:24px; font-weight:800; color:var(--accent-ink); letter-spacing:-.02em; } .dhead .pday small{ font-size:12px; color:var(--ink4); font-weight:700; }
.dhead .ptot{ font-size:14px; font-weight:700; color:var(--ink2); text-align:right; } .dhead .ptot small{ display:block; font-size:11px; color:var(--ink4); }
.dsec .lab{ display:flex; align-items:center; justify-content:space-between; }
.dsec .lab .lab-hint{ font-size:10px; font-weight:700; color:var(--ink4); letter-spacing:0; }

/* 효능 칩 — 카운트만, 깔끔한 탭 칩, 상호 강조 */
.deffs{ display:flex; flex-wrap:wrap; gap:7px; }
.defc{ display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 8px 0 13px; border-radius:11px; border:1.5px solid var(--line2); background:var(--surface); color:var(--ink); font-size:13px; font-weight:700; cursor:pointer; transition:.13s; }
.defc .defn{ font-size:11px; font-weight:800; color:var(--accent-ink); background:var(--accent-weak); border-radius:7px; min-width:21px; height:21px; padding:0 5px; display:inline-flex; align-items:center; justify-content:center; font-variant-numeric:tabular-nums; }
.defc.on{ background:var(--accent); color:#fff; border-color:var(--accent); } .defc.on .defn{ background:rgba(255,255,255,.22); color:#fff; }
.defc.lk{ border-color:var(--accent); background:var(--accent-weak); color:var(--accent-ink); } .defc.lk .defn{ background:var(--surface); }
.defc.dim{ opacity:.36; }

/* 원료 행 — 상호 강조 + i 버튼 */
.dmat{ padding:11px 10px; border-radius:10px; border-top:none; transition:.12s; }
.dmat:first-child{ padding-top:11px; }
.dmat + .dmat{ border-top:1px solid var(--hair); }
.dmat.on{ background:var(--accent-weak); box-shadow:inset 0 0 0 1.5px var(--accent); border-top-color:transparent; }
.dmat.lk{ background:var(--accent-weak); border-top-color:transparent; }
.dmat.dim{ opacity:.32; }
.dmat-h{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; cursor:pointer; }
.dmat-i{ margin-left:auto; width:22px; height:22px; border-radius:50%; border:1.5px solid var(--line2); background:var(--surface); color:var(--ink3); font-size:12px; font-weight:700; font-style:italic; font-family:Georgia,'Times New Roman',serif; cursor:pointer; flex:none; line-height:1; }
.dmat-i:hover{ border-color:var(--accent); color:var(--accent-ink); }
.db-amt{ font-size:12px; font-weight:800; color:var(--ink3); } .db-amt.ok{ color:var(--accent-ink); }

/* 기본 정보 */
.dinfo{ display:flex; flex-direction:column; }
.di-row{ display:flex; gap:12px; padding:9px 0; border-top:1px solid var(--hair); }
.di-row:first-child{ border-top:none; padding-top:0; }
.di-k{ font-size:12px; font-weight:700; color:var(--ink4); width:68px; flex:none; }
.di-v{ font-size:12.5px; font-weight:700; color:var(--ink2); }
.dwarn{ margin-top:12px; padding:11px 12px; border-radius:10px; background:var(--raise); font-size:11.5px; line-height:1.6; color:var(--ink3); font-weight:500; } .dwarn b{ color:var(--ink2); font-weight:800; }

/* 구매처별 가격 */
.stores{ display:flex; flex-direction:column; gap:2px; }
.strow{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 12px; border-radius:10px; background:var(--surface); border:1px solid var(--hair); text-decoration:none; }
.strow.best{ background:var(--accent-weak); border-color:var(--accent-line); }
.strow.faint{ opacity:.45; }
.strow .st-n{ font-size:13px; font-weight:800; color:var(--ink); flex:none; } .strow.best .st-n{ color:var(--accent-ink); }
.strow .st-p{ font-size:14px; font-weight:800; color:var(--ink); } .strow.best .st-p{ color:var(--accent-ink); }
.st-more{ width:100%; margin-top:9px; height:38px; border-radius:10px; border:1.5px solid var(--line2); background:var(--surface); font-size:12px; font-weight:800; color:var(--ink2); cursor:pointer; }
.stempty{ padding:14px 12px; border-radius:10px; background:var(--surface); border:1px solid var(--hair); font-size:12.5px; font-weight:700; color:var(--ink4); text-align:center; }

/* 상세 상단 제품사진 탭 → 전체보기 */
.dimg[data-act="view-photo"]{ cursor:pointer; }
.photoov{ position:absolute; inset:0; z-index:90; display:flex; align-items:center; justify-content:center; background:rgba(10,10,14,.92); animation:popup .15s ease; }
.photoov img{ max-width:92%; max-height:86%; object-fit:contain; }
.photox{ position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:50%; border:none; background:rgba(255,255,255,.15); color:#fff; font-size:15px; cursor:pointer; }

/* 원료 정보 팝업 (바텀시트) */
.popov{ position:absolute; inset:0; z-index:80; display:flex; align-items:flex-end; }
.pop-scrim{ position:absolute; inset:0; background:rgba(20,20,26,.45); }
.pop-card{ position:relative; width:100%; max-height:82%; background:var(--surface); border-radius:22px 22px 0 0; display:flex; flex-direction:column; box-shadow:0 -10px 40px -10px rgba(0,0,0,.4); animation:popup .2s ease; }
@keyframes popup{ from{ opacity:0; } to{ opacity:1; } }
.pop-h{ display:flex; align-items:center; padding:16px 18px 12px; }
.pop-t{ display:flex; align-items:center; flex-wrap:wrap; gap:7px; font-size:17px; font-weight:800; flex:1; letter-spacing:-.02em; }
.pop-kind{ font-size:10px; font-weight:800; padding:3px 8px; border-radius:999px; background:var(--accent-weak); color:var(--accent-ink); flex:none; }
.pop-x{ width:28px; height:28px; border-radius:8px; border:none; background:var(--raise); color:var(--ink3); font-size:13px; cursor:pointer; }
.pop-bd{ padding:0 18px 6px; overflow-y:auto; }
.pop-about{ font-size:13px; line-height:1.6; color:var(--ink2); font-weight:500; margin:0 0 6px; }
.pop-row{ display:flex; gap:12px; padding:9px 0; border-top:1px solid var(--hair); }
.pop-row .pk{ font-size:11.5px; font-weight:800; color:var(--ink4); width:78px; flex:none; }
.pop-row .pv{ font-size:12.5px; font-weight:700; color:var(--ink2); line-height:1.5; }
.pop-block{ padding:9px 0; border-top:1px solid var(--hair); }
.pop-block .pb-k{ font-size:11.5px; font-weight:800; color:var(--ink4); margin-bottom:5px; }
.pop-block .pb-v{ font-size:12.5px; font-weight:600; color:var(--ink2); line-height:1.65; }
.pop-ft{ padding:12px 18px 18px; }
.pop-filter{ width:100%; height:46px; border-radius:13px; border:none; background:var(--accent); color:#fff; font-size:13.5px; font-weight:800; cursor:pointer; }
.pop-filter.on{ background:var(--accent-weak); color:var(--accent-ink); }

/* ════════ 비교 v2 — 우위 배경 + 공통 접힘 ════════ */
.ctbl .crow.chead .ccell.chd{ background:var(--bg); }
.ctbl .ccell.adv{ background:var(--accent); }
.ctbl .ccell.adv .big, .ctbl .ccell.adv .cv, .ctbl .ccell.adv .num{ color:#fff; }
.ctbl .ccell.adv .u{ color:rgba(255,255,255,.72); }
.ctbl .ccell.adv .advlbl{ display:block; font-size:8.5px; font-weight:800; color:rgba(255,255,255,.9); margin-top:1px; }
.ctbl .ccell.lo{ background:var(--accent-weak); }
.ctbl .ccell .cv{ font-size:12.5px; font-weight:800; color:var(--ink); }
.ctbl .crow.collapsed{ cursor:pointer; }
.ctbl .crow.collapsed .rl{ color:var(--ink4); }
.ctbl .ccell.csame{ display:flex; align-items:center; gap:8px; background:var(--bg); }
.ccell.csame .sv{ font-size:12px; font-weight:700; color:var(--ink3); opacity:.7; }
.ccell.csame .stag{ font-size:10px; font-weight:700; color:var(--ink4); margin-left:auto; } .ccell.csame .stag i{ font-style:normal; color:var(--accent); font-weight:800; }
.rl-fold{ margin-left:5px; width:17px; height:17px; border-radius:5px; border:none; background:var(--raise2); color:var(--ink3); font-size:9px; cursor:pointer; vertical-align:middle; }
.ctbl .crow.samebar{ cursor:pointer; }
.ctbl .crow.samebar .rl{ color:var(--ink4); font-weight:800; }
.ctbl .crow.sameitem .rl{ color:var(--ink4); }
.ctbl .crow.sameitem .csame-v{ font-size:12px; font-weight:700; color:var(--ink2); background:var(--bg); }
