/* 마켓세일 — B 전단 + C 앱 (11-02 클로드 디자인 시안 확정)
   B: 노란 가격표·빨강 강조·굵은 가격 글씨 / C: 흰 바탕·한 줄 목록·아래 탭 바 */
:root {
  --bg: #F4F4F1;
  --card: #FFFFFF;
  --ink: #141414;
  --muted: #555555;
  --faint: #666666;
  --line: #EEEEEA;
  --line2: #DCDCD6;
  --chip: #F1F1EE;
  --red: #C8191E;
  --red-ink: #B3141A;
  --yellow: #FFD400;
  --yellow-soft: #FFFBE6;
  --yellow-pale: #FFF3B0;
  --pink: #FDECEC;
  --green: #1D6A3E;
  --radius: 14px;
  --gut: 12px;     /* 카드 바깥 여백 — 모든 카드가 같은 선에 (11-02 「어디서 살까만 안쪽으로 들어가 있어」) */
  --r: 16px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 6px 18px -8px rgba(20, 20, 20, .14);
  --shadow-lift: 0 2px 4px rgba(20, 20, 20, .06), 0 12px 28px -10px rgba(20, 20, 20, .22);
  --logo: 'Black Han Sans', 'Pretendard Variable', sans-serif;  /* 로고(마켓세일)만 */
  --display: 'Pretendard Variable', Pretendard, sans-serif;     /* 제목·가격: 덜 두껍게 (11-02 유저 「글씨가 너무 두꺼워」) */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111; --card: #1B1B1B; --ink: #F2F2F2; --muted: #B8B8B8; --faint: #A0A0A0; --line: #2A2A2A; --line2: #363636;
    --chip: #262626; --red: #E5484D; --red-ink: #FF7A7A; --yellow-soft: #2B260F; --yellow-pale: #3A3312; --pink: #3B1C1C; --green: #5CCB8E; --shadow: 0 0 0 1px #2A2A2A; --shadow-lift: 0 0 0 1px #363636, 0 10px 24px -10px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111111; --card: #1B1B1B; --ink: #F2F2F2; --muted: #B8B8B8; --faint: #A0A0A0; --line: #2A2A2A; --line2: #363636;
  --chip: #262626; --red: #E5484D; --red-ink: #FF7A7A; --yellow-soft: #2B260F; --yellow-pale: #3A3312; --pink: #3B1C1C; --green: #5CCB8E; --shadow: 0 0 0 1px #2A2A2A; --shadow-lift: 0 0 0 1px #363636, 0 10px 24px -10px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; word-break: keep-all;
}
/* 줄바꿈: 한두 글자만 다음 줄로 넘어가지 않게 — 짧은 글은 두 줄 길이를 고르게, 긴 글(소식 본문)은 마지막 줄만 덜 외롭게 (11-02) */
h1, h2, h3, p, .row-s, .hero-why, .explain, .rules, .notice, .ci-s, .fv-best, .hist-v, .tipbox p { text-wrap: balance; }
.post article p, .prose li { text-wrap: pretty; }
a { color: var(--red-ink); }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: 640px; margin: 0 auto; }
.disp { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }

/* ---------- 머리 ---------- */
.top { background: var(--card); box-shadow: 0 1px 0 var(--line2); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; }
.brand { font-family: var(--logo); font-size: 30px; line-height: 1; color: var(--red); text-decoration: none; }
.top-act { display: flex; align-items: center; gap: 8px; }
.regionbtn { text-decoration: none; color: var(--ink);  display: flex; align-items: center; gap: 3px; border: 0; background: var(--chip); border-radius: 999px; padding: 8px 11px; font-size: 14.5px; font-weight: 700; }
.regionbtn svg { flex: none; }
.ptsbtn { display: flex; align-items: baseline; gap: 1px; background: var(--yellow); color: #141414; border-radius: 999px; padding: 6px 11px; text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 17px; }
.ptsbtn small { font-family: inherit; font-size: 12px; font-weight: 700; }
.search { display: flex; align-items: center; gap: 8px; height: 48px; margin: 0 16px 12px; padding: 0 14px; background: var(--chip); border-radius: 12px; }
.search:focus-within { outline: 2px solid var(--red); }
.search svg { flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.week { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #141414; color: var(--yellow); padding: 8px 16px; font-size: 13.5px; font-weight: 700; }
.week span:last-child { color: #FFFFFF; font-weight: 500; text-align: right; }
.sheet { background: var(--card); border-bottom: 1px solid var(--line2); padding: 10px 16px 14px; }
.sheet[hidden] { display: none; }
.sheet p { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }

/* ---------- 칩 ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: baseline; gap: 4px; border: 0; background: var(--chip); color: var(--ink); border-radius: 999px; padding: 8px 13px; font-size: 14px; font-weight: 700; text-decoration: none; }
.chip small { font-size: 12px; color: var(--faint); font-weight: 700; }
.chip[aria-pressed="true"], .chip[aria-checked="true"], .chip[aria-current="page"] { background: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] small, .chip[aria-checked="true"] small, .chip[aria-current="page"] small { color: var(--yellow); }

/* ---------- 본문 ---------- */
main { padding-bottom: 8px; }  /* 푸터 위 빈칸 줄임 (11-03) — 고정 탭 바 자리는 푸터 아래 여백이 맡는다 */
.panel { background: var(--card); margin: 12px var(--gut) 0; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.pad { padding: 16px; }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 21px; line-height: 1.25; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 16px 6px; }
.sec-h span { font-size: 13px; color: var(--muted); }
.notice { margin: 12px var(--gut) 0; padding: 10px 12px; border-radius: 10px; background: var(--chip); color: var(--muted); font-size: 13.5px; }
.empty { color: var(--muted); padding: 28px 16px; text-align: center; }
.none { color: var(--faint); font-size: 13.5px; }
.label { display: inline-block; background: var(--red); color: #FFFFFF; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }

/* 가격표 (B 의 상징) */
.tag { display: inline-flex; align-items: center; justify-content: center; gap: 1px; color: #141414; border-radius: 7px; padding: 6px 9px; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 21px; line-height: 1; white-space: nowrap;
  background: linear-gradient(180deg, #FFE24F 0%, #FFD400 55%, #F5C800 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 0 rgba(120, 90, 0, .18), 0 3px 8px -3px rgba(150, 110, 0, .55); }
.tag small { font-family: 'Pretendard Variable', Pretendard, sans-serif; font-size: 11.5px; font-weight: 700; line-height: 1; }
.tag.plain { background: none; box-shadow: none; color: var(--ink); }  /* padding 은 노란 칸과 같게 — 숫자 끝이 줄 맞음 */
.tag.plain small { color: var(--muted); }
.tag.na { background: none; box-shadow: none; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--faint); }
.tag.big { position: relative; border-radius: 0; padding: 9px 16px 9px 28px; font-size: 44px; line-height: 1; box-shadow: none; filter: drop-shadow(0 4px 6px rgba(150, 110, 0, .35));
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); }
.tag.big::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--card); }
.tag.big small { font-size: 15px; }
.drop { font-size: 11px; font-weight: 700; color: #FFFFFF; background: var(--red); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.same { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* 배지 */
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.b { font-size: 11.5px; font-weight: 700; color: var(--muted); border: 1.5px solid var(--line2); border-radius: 5px; padding: 0 5px; white-space: nowrap; }
.b.hot { color: var(--red-ink); border-color: var(--red-ink); }
.b.warn { color: var(--red-ink); border-style: dashed; border-color: var(--red-ink); }

/* 대박 카드 */
.hero { display: flex; flex-direction: column; gap: 10px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.hero-top span:last-child { font-size: 13px; color: var(--muted); }
.hero-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hero-main .mk { font-size: 14px; font-weight: 700; color: var(--red-ink); text-decoration: none; }
.hero-name { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 36px; line-height: 1.05; }
.hero-sub { font-size: 14px; color: var(--muted); }
.hero-why { margin: 0; padding: 9px 12px; background: var(--pink); border-radius: 10px; font-size: 14.5px; font-weight: 700; }
.hero-why b { color: var(--red-ink); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 13px 14px; background: var(--red); color: #FFFFFF; font-size: 15px; font-weight: 700; text-decoration: none; text-align: center; background: linear-gradient(180deg, #D8262B 0%, #C8191E 60%, #B5141A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .15), 0 4px 10px -4px rgba(200, 25, 30, .6); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .2); }
.btn.dark { background: var(--ink); color: var(--bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 10px -4px rgba(20, 20, 20, .5); }
.btn.line { background: none; color: var(--ink); border: 2px solid var(--ink); padding: 11px 14px; box-shadow: none; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; }

/* 두 칸 바로가기 */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px var(--gut) 0; }
.tile { display: flex; flex-direction: column; gap: 4px; border-radius: var(--r); padding: 13px 14px; text-decoration: none; box-shadow: var(--shadow); }
.tile span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.tile b { font-size: 15px; }
.tile.dark { background: #141414; color: #FFFFFF; }
.tile.dark span { color: var(--yellow); }
.tile.yellow { background: var(--yellow); color: #141414; }

/* 한 줄 목록 (C 의 구조) */
.cat-h { margin: 0; padding: 16px 16px 6px; font-size: 13.5px; font-weight: 700; color: var(--red-ink); border-top: 1px solid var(--line2); background: linear-gradient(var(--chip), var(--card) 70%); }
.cat-h.first { border-top: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 12px; padding: 13px 14px 13px 16px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cat-h + .list > li:first-child .row { border-top: 0; }
.row:hover { background: var(--yellow-soft); }
.row-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-n { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.row-s { font-size: 13px; color: var(--muted); line-height: 1.4; }
.row-s b { color: var(--ink); font-weight: 700; }
.row-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row svg.chev { color: var(--faint); }
.more { display: block; margin: 10px 16px 16px; }
.cats { padding: 10px 16px 12px; scroll-padding-inline: 16px; }
.cats::after { content: ""; flex: 0 0 10px; }
.row.flat { grid-template-columns: 1fr auto; }
.row.flat .row-n { font-size: 16px; }
.hot { color: var(--red-ink); font-weight: 700; }

/* 상품 비교 */
body.detail header.top { display: none; }
.bar { box-shadow: 0 1px 0 var(--line2); }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 4px; background: var(--card); border-bottom: 1px solid var(--line2); }
.bar h1 { margin: 0; flex: 1; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 24px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink); border-radius: 10px; }
.sum { display: flex; flex-direction: column; gap: 10px; }
.sum > p { margin: 0; }
.sum-l { display: flex; flex-direction: column; }
.sum-l span:first-child { font-size: 13px; font-weight: 700; color: var(--red-ink); }
.sum-l b { font-size: 22px; }
.sum-l span:last-child { font-size: 13.5px; color: var(--muted); }
.explain { margin: 0; padding: 8px 12px; background: var(--bg); border-radius: 10px; font-size: 13.5px; color: var(--muted); }
.explain b { color: var(--ink); }
.rank { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.rank:first-child { border-top: 0; }
.rank.top { background: var(--yellow-soft); border-top: 0; }
.rank-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 17px; }
.rank.top .rank-n { background: var(--red); color: #FFFFFF; }
.rank-n.dim { background: var(--chip); color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 700; }
.rank .mk { font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: none; }
.ranks { margin: 12px var(--gut) 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.row-s b.size { color: var(--ink); font-weight: 700; background: var(--chip); border-radius: 4px; padding: 0 4px; }
.gap { font-size: 12.5px; font-weight: 700; color: var(--red-ink); }
.actbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line2); box-shadow: 0 -6px 18px -10px rgba(20, 20, 20, .18); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
.actbar .wrap { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.cartsq { position: relative; width: 52px; height: 52px; border: 2px solid var(--ink); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.cartsq span { position: absolute; top: -7px; right: -7px; background: var(--red); color: #FFFFFF; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 6px; }
.actbar .btn { font-size: 17px; }

/* 이번 주 장바구니 */
.page-h { padding: 18px 16px 14px; background: var(--card); box-shadow: 0 1px 0 var(--line2); }
.page-h h1 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 28px; line-height: 1.15; }
.page-h p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.page-h p b { color: var(--red-ink); }
.plan { margin: 12px var(--gut) 0; background: var(--yellow); color: #141414; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.plan-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-h h2 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 21px; }
.seg { display: flex; background: rgba(20,20,20,0.12); border-radius: 999px; padding: 3px; }
.seg button { border: 0; border-radius: 999px; background: none; color: #141414; padding: 6px 11px; font-size: 13px; font-weight: 700; }
.seg button[aria-pressed="true"] { background: #141414; color: #FFD400; font-weight: 700; }
.stops { background: #FFFFFF; color: #141414; border-radius: 12px; padding: 4px 12px; box-shadow: 0 1px 2px rgba(20, 20, 20, .08); }
.stop { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 10px 0; }
.stop + .stop { border-top: 1px dashed #D4D4CE; }
.stop .stop-n { width: 24px; height: 24px; border-radius: 50%; background: #C8191E; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; line-height: 1; }
.stop a { color: #141414; font-weight: 700; font-size: 15.5px; text-decoration: none; }
.stop span { font-size: 13px; color: #3d3d3d; line-height: 1.45; }
.plan > p { margin: 0; font-size: 13.5px; font-weight: 700; }
.plan-sum { display: flex; flex-direction: column; line-height: 1.5; }  /* 애매하게 넘어가지 않게 두 줄로 나눔 (11-02) */
.plan-sum span + span { font-weight: 500; }
.addf { display: flex; gap: 8px; margin: 12px var(--gut) 0; }
.addf input { flex: 1; min-width: 0; height: 48px; border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; padding: 0 14px; outline: 0; }
.addf input:focus { border-color: var(--red); }
.addf button { border: 0; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; padding: 0 18px; }
.sub-h { margin: 20px calc(var(--gut) + 4px) 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.cart { list-style: none; margin: 0 var(--gut); padding: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.ci { display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 10px; padding: 12px 6px 12px 14px; border-top: 1px solid var(--line); }
.ci:first-child { border-top: 0; }
.chk { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--line2); background: var(--card); display: flex; align-items: center; justify-content: center; }
.ci.done .chk { background: var(--green); border-color: var(--green); }
.ci-n { font-size: 17px; font-weight: 700; }
.ci.done .ci-n { color: var(--faint); text-decoration: line-through; font-weight: 700; font-size: 16px; }
.ci-s { font-size: 13px; color: var(--muted); }
.ci-s a { color: inherit; text-decoration: none; }
.ci-s b { color: var(--ink); }
.del { width: 36px; height: 36px; border: 0; background: none; color: var(--faint); font-size: 22px; }

/* 영수증·포인트 */
.ptscard { margin: 12px var(--gut) 0; background: #141414; color: #FFFFFF; border-radius: var(--r); box-shadow: var(--shadow-lift); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ptscard .row1 { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.ptscard .lbl { font-size: 13px; color: #CFCFCF; }
.ptscard .num { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 44px; line-height: 1; color: #FFD400; }
.ptscard .num small { font-size: 22px; margin-left: 2px; }
.ptscard .note { font-size: 12.5px; color: #CFCFCF; text-align: right; }
.ptscard .wk { font-size: 13.5px; font-weight: 700; }
.ptscard .wk b { color: #FFD400; }
.meter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.meter span { height: 8px; border-radius: 4px; background: #3d3d3d; }
.meter span.on { background: #FFD400; }
.shoot { margin: 12px var(--gut) 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.shoot label { cursor: pointer; }
.shoot .btn { padding: 15px; font-size: 17px; }
.tipbox { margin: 12px var(--gut) 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; }
.tipbox b { font-size: 15.5px; }
.tipbox p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.tipbox .ok { color: var(--green); font-weight: 700; font-size: 12.5px; }
.rules { margin: 12px calc(var(--gut) + 4px) 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.rimg { display: block; max-width: calc(100% - 32px); max-height: 420px; margin: 12px auto 8px; border-radius: 12px; border: 1px solid var(--line2); }
.rcv { list-style: none; margin: 0 var(--gut); padding: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.rc { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 16px; border-top: 1px solid var(--line); }
.rc:first-child { border-top: 0; }
.rc-n { font-size: 16px; font-weight: 700; }
.rc-n small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.rc-st { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.rc-st.plus { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 18px; color: var(--green); }
.rc-why { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.login { margin: 12px var(--gut) 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.login h3 { margin: 0; font-size: 17px; }
.login p { margin: 0; color: var(--muted); font-size: 14px; }
.login .addf { margin: 0; }
.linkbtn { border: 0; background: none; color: inherit; text-decoration: underline; padding: 0; }

/* 마켓·개인정보 */
.mk-h { display: flex; flex-direction: column; gap: 6px; }
.mk-h { gap: 10px; }
.mk-h .two { margin-top: 2px; }
.mk-h .fav { border: 2px solid var(--line2); background: var(--card); border-radius: 12px; padding: 11px 14px; font-size: 15px; font-weight: 700; }
.mk-h .fav[aria-pressed="true"] { background: var(--yellow); color: #141414; border-color: var(--yellow); }
details.notes { margin: 12px var(--gut) 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 14px; font-size: 13.5px; color: var(--muted); }
details.notes summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details.notes ul { margin: 6px 0 0; padding-left: 18px; }
.prose { padding: 4px 16px 14px; } .prose h3 { font-size: 16px; margin: 14px 0 4px; } .prose ul { padding-left: 20px; margin: 4px 0; } .prose li { margin: 3px 0; font-size: 14.5px; }

/* 소식 카드 (홈) */
/* 소식 카드: 가격 목록과 완전히 다른 「읽을거리」로 보이게 — 어두운 바탕·노란 표·신문 아이콘 (11-03 유저) */
.news-sep { margin: 22px calc(var(--gut) + 4px) 0; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.news { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; background: #141414; color: #FFFFFF; text-decoration: none; box-shadow: var(--shadow-lift); }
.news-top { display: flex; align-items: center; gap: 8px; }
.news-k { font-size: 12px; font-weight: 800; color: #141414; background: var(--yellow); border-radius: 6px; padding: 3px 8px; }
.news-d { font-size: 12.5px; color: #BDBDBD; }
.news-ic { margin-left: auto; color: var(--yellow); opacity: .9; }
.news h3 { margin: 2px 0 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 20px; line-height: 1.35; color: #FFFFFF; }
.news p { margin: 0; font-size: 14.5px; color: #CFCFCF; line-height: 1.6; }
.news .go { align-self: flex-start; margin-top: 4px; font-size: 14px; font-weight: 700; color: #141414; background: var(--yellow); border-radius: 999px; padding: 7px 14px; }
.mklist a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mklist a:first-child { border-top: 0; }
.mklist b { font-size: 15.5px; }
.mklist span { font-size: 13px; color: var(--muted); }
.mklist a.old { opacity: .55; }

.foot { color: var(--muted); font-size: 12px; line-height: 1.65; padding: 24px 16px 110px; }  /* 한 문단으로 붙여 쓰고 줄 끝까지 채운다 (11-03 유저) */
.foot p { text-wrap: wrap; }
.foot-sm { margin-top: 10px !important; }
.foot p { margin: 0 0 6px; }
.foot a { color: inherit; }

/* 아래 탭 바 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line2); padding: 6px 0 calc(8px + env(safe-area-inset-bottom)); }
.tabbar .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--red); font-weight: 700; }
.tabbar .badge { position: absolute; top: 0; left: 54%; background: var(--red); color: #FFFFFF; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 6px; }
.tabbar .badge:empty, .tabbar .badge[data-n="0"] { display: none; }
body.has-actbar .tabbar { display: none; }

/* 소식 (블로그) 페이지 — 읽기 쉽게 + 상품마다 비교 카드 (11-02) */
.post { background: var(--card); margin: 12px var(--gut) 0; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 18px 22px; }
.post h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 26px; line-height: 1.3; margin: 6px 0 14px; }
.kicker { color: var(--red-ink); font-size: 13px; font-weight: 700; margin: 8px 0 0; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 2px; }
.post article { font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.post article > p:first-child { font-size: 17px; color: var(--muted); }
.post article h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 20px; margin: 30px 0 4px; padding-left: 10px; border-left: 4px solid var(--red); line-height: 1.3; }
.post article p { margin: 12px 0 8px; }
.post article ul { list-style: none; padding: 0; margin: 8px 0 14px; }
.post article li { margin: 6px 0; }
.cmp { border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; margin: 8px 0 18px; box-shadow: var(--shadow); background: var(--card); line-height: 1.4; }
.cmp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--chip); }
.cmp-h b { font-size: 15.5px; }
.cmp-h a { font-size: 13px; font-weight: 700; color: var(--red-ink); text-decoration: none; white-space: nowrap; }
.cmp-r { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cmp-r.best { background: var(--yellow-soft); }
.cmp-t { grid-column: 1 / -1; justify-self: start; font-size: 11.5px; font-weight: 700; color: var(--muted); border: 1.5px solid var(--line2); border-radius: 5px; padding: 0 6px; margin-bottom: 2px; }
.cmp-r.best .cmp-t { color: #FFFFFF; background: var(--red); border-color: var(--red); }
.cmp-m { grid-column: 1; font-size: 15px; font-weight: 700; }
.cmp-n { grid-column: 1; font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; }
.cmp-n small { font-size: 12.5px; color: var(--faint); }
.cmp-u { grid-column: 2; grid-row: 2 / span 2; display: inline-flex; align-items: center; justify-content: center; padding: 6px 9px; line-height: 1; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 20px; white-space: nowrap; }  /* 노란 칸과 같은 안쪽 여백 — 위아래 가격 끝 맞춤 */
.cmp-r.best .cmp-u { display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 6px 9px; border-radius: 7px; color: #141414;
  background: linear-gradient(180deg, #FFE24F 0%, #FFD400 55%, #F5C800 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 0 rgba(120, 90, 0, .18), 0 3px 8px -3px rgba(150, 110, 0, .55); }
.cmp-d { margin: 0 !important; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 14px; background: var(--pink); }
.cmp-d b { color: var(--red-ink); }
.fact { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; margin: 6px 0; line-height: 1.4; }
.fact .fm { grid-column: 1; font-weight: 700; font-size: 14.5px; }
.fact .fn { grid-column: 1; font-size: 14px; }
.fact .fp { grid-column: 1; font-size: 13px; color: var(--muted); }
.fact .fu { grid-column: 2; grid-row: 1 / span 3; padding: 5px 9px; line-height: 1; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 20px; color: var(--ink); white-space: nowrap; }
.fact .fu.best { background: linear-gradient(180deg, #FFE24F, #FFD400 55%, #F5C800); color: #141414; border-radius: 7px; padding: 5px 9px; line-height: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 3px 8px -3px rgba(150, 110, 0, .55); }
.btn.share { background: #FEE500; color: #191919; margin: 4px 0 6px; box-shadow: 0 2px 6px -2px rgba(150, 120, 0, .45); }
.btn.ghost { background: none; color: var(--ink); border: 2px solid var(--ink); margin-top: 8px; box-shadow: none; }
.more-h { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 19px; margin: 30px 0 6px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.post-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.post-list span { display: block; color: var(--faint); font-size: 13px; }
.post-cards { list-style: none; padding: 0; margin: 0; }
.post-cards a { display: block; border-top: 1px solid var(--line); padding: 16px 0; text-decoration: none; color: var(--ink); }
.post-cards li:first-child a { border-top: 0; padding-top: 6px; }
.post-cards b { display: block; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 19px; line-height: 1.35; margin: 3px 0 4px; }
.post-cards span:not(.kicker) { color: var(--muted); font-size: 14px; line-height: 1.55; }
.post-cards .kicker { display: block; margin: 0; }

@media (min-width: 680px) { :root { --gut: 16px; } }

/* 마켓별 전단지 — 옆으로 밀며 고르기 */
.flp { padding-bottom: 16px; }
.newtag { font-size: 12px; font-weight: 700; color: #FFFFFF !important; background: var(--red); border-radius: 6px; padding: 3px 8px; }
.flp-help { margin: 0; padding: 0 16px 10px; line-height: 1.5; }
.flp-help b { color: var(--red-ink); }
.flrow { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; padding: 4px 16px 8px; scrollbar-width: none; }
.flrow::after { content: ""; flex: 0 0 6px; }  /* 오른쪽 끝 여백 (가로 스크롤은 오른쪽 padding 을 무시한다) */
.flrow::-webkit-scrollbar { display: none; }
.flc { flex: 0 0 116px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 0; background: none; padding: 0; text-align: center; color: var(--ink); }  /* 마켓 이름 가운데 (11-02) */
.flc-img { position: relative; width: 116px; height: 145px; border-radius: 12px; overflow: hidden; border: 2.5px solid var(--line2); background: var(--chip); box-shadow: var(--shadow); }
.flc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; opacity: .55; }
.flc[aria-pressed="true"] .flc-img { border-color: var(--red); }
.flc[aria-pressed="true"] .flc-img img { opacity: 1; }
.flc-chk { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.9); border: 2px solid var(--line2); display: flex; align-items: center; justify-content: center; }
.flc-chk svg { visibility: hidden; }
.flc-mine { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; background: #141414; color: #FFD400; font-size: 10.5px; font-weight: 700; line-height: 1; border-radius: 999px; padding: 4px 7px 4px 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }  /* ★ 대신 「내 마켓」 배지 (11-02) */
.flc[aria-pressed="true"] .flc-chk { background: var(--red); border-color: var(--red); }
.flc[aria-pressed="true"] .flc-chk svg { visibility: visible; }
.flc b { margin-top: 7px; font-size: 13.5px; line-height: 1.3; max-width: 116px; }
.flc small { font-size: 12px; color: var(--muted); }
.flp-act { padding: 0 16px 2px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* 전단지 보기 — 전체 화면, 옆으로 넘기기, 확대 */
body.viewer header.top, body.viewer .tabbar, body.viewer .foot { display: none; }
.fv { position: fixed; inset: 0; z-index: 60; background: #111111; color: #FFFFFF; display: flex; flex-direction: column; }
.fv-top { display: flex; align-items: center; gap: 4px; padding: calc(4px + env(safe-area-inset-top)) 8px 4px 4px; background: #111111; }
.fv-top .iconbtn { color: #FFFFFF; }
.fv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.fv-t b { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-t span { font-size: 12.5px; color: #CFCFCF; }
.fv-fav { font-size: 22px; color: var(--yellow) !important; }
.fv-sale { flex: none; font-size: 13px; font-weight: 700; color: #141414; background: var(--yellow); border-radius: 999px; padding: 7px 11px; text-decoration: none; }
.fv-track { flex: 1; min-height: 0; display: flex; will-change: transform; }
.fv-p { flex: 0 0 100%; overflow: auto; touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.fv-p.zoomed { touch-action: pan-x pan-y; }
.fv-z { width: 100%; }
.fv-z img { display: block; width: 100%; height: auto; background: #FFFFFF; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.fv-z img + img { margin-top: 6px; }
.fv-arrow { position: absolute; top: 50%; width: 40px; height: 64px; margin-top: -32px; border: 0; border-radius: 10px; background: rgba(0,0,0,.45); color: #FFFFFF; font-size: 34px; line-height: 1; }
.fv-arrow.l { left: 6px; } .fv-arrow.r { right: 6px; }
@media (hover: none) { .fv-arrow { display: none; } }
.fv-dots { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #111111; scrollbar-width: none; }
.fv-dots::-webkit-scrollbar { display: none; }
.fv-dots button { flex: none; border: 1.5px solid #3d3d3d; background: none; color: #CFCFCF; border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 700; }
.fv-dots button[aria-current] { background: var(--yellow); border-color: var(--yellow); color: #141414; }

/* 전단지 그림에서 상품 눌러 담기 */
.fv-pg { position: relative; }
.fv-pg + .fv-pg { margin-top: 6px; }
.fv-z img + img { margin-top: 0; }
.hs { position: absolute; border: 0; padding: 0; background: transparent; border-radius: 4px; }
.hs.on { outline: 3px solid var(--yellow); outline-offset: -1px; background: rgba(255, 212, 0, .18); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .25); z-index: 1; }
.fv-hint { position: absolute; left: 50%; bottom: calc(60px + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; white-space: nowrap; background: rgba(0,0,0,.75); color: #FFFFFF; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; pointer-events: none; }
.fv-pop { position: absolute; left: 8px; right: 8px; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 5; background: var(--card); color: var(--ink); border-radius: 16px; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.fv-pop[hidden] { display: none; }
.fv-pop-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 26px; }
.fv-pop-h b { font-size: 17px; }
.fv-pop-h div > span { font-size: 13px; color: var(--muted); }  /* 가격표(.tag)까지 회색이 되지 않게 — 어두운 화면에서 노란 칸 글씨가 안 보이던 것 (11-03) */
.fv-best { margin: 0; font-size: 13.5px; background: var(--bg); border-radius: 8px; padding: 7px 10px; }
.fv-best b { color: var(--red-ink); }
.fv-note { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.fv-x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; background: none; font-size: 24px; color: var(--muted); }
.fv-ended { font-size: 12.5px; font-weight: 700; color: var(--red-ink); }

/* 담은 재료로 만들 수 있는 음식 */
.rcps { padding-bottom: 6px; }
.rcp { border-top: 1px solid var(--line); padding: 0 16px; }
.rcp summary { list-style: none; cursor: pointer; padding: 12px 0; display: flex; flex-direction: column; gap: 5px; }
.rcp summary::-webkit-details-marker { display: none; }
.rcp-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rcp-h b { font-size: 17px; }
.rcp-lv { font-size: 11.5px; font-weight: 700; border-radius: 5px; padding: 1px 6px; background: var(--chip); color: var(--muted); }
.rcp-lv.lv1 { background: #E5F3EA; color: var(--green); }
.rcp-min { font-size: 12.5px; color: var(--muted); }
.rcp-got { display: flex; flex-wrap: wrap; gap: 4px; }
.rcp-got span { font-size: 12.5px; font-weight: 700; color: var(--green); }
.rcp-got span.no { color: var(--red-ink); }
.rcp-sub { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rcp-miss { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rcp-miss li { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; }
.rcp-miss li span { font-size: 12.5px; font-weight: 600; color: var(--red-ink); }
.rcp-miss .chip { margin-left: auto; padding: 5px 10px; font-size: 12.5px; }
.rcp-steps { margin: 6px 0; padding-left: 20px; font-size: 14.5px; line-height: 1.6; }
.rcp-tip { margin: 6px 0 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rcp-lv.lv1 { background: #16301F; } }

/* 끝난 특가 (목~일 특가가 끝난 월~수) — 지우지 않고 흐리게 */
.row.ended, .rank.ended { opacity: .55; }
.row.ended .tag, .rank.ended .tag { background: none; box-shadow: none; }

/* 지난 세일 (목록은 계속 쌓인다) */
.pastsec { border-top: 1px solid var(--line); }
.pastsec summary { padding: 10px 16px; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.hist { display: flex; flex-direction: column; gap: 8px; }
.hist .h2 { font-size: 19px; }
.hist-v { margin: 0; font-size: 14px; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.hist-v.good { background: var(--yellow-soft); }
.hist-v b { color: var(--red-ink); }
.hist-l { list-style: none; margin: 0; padding: 0; }
.hist-l li { display: grid; grid-template-columns: 44px 1fr auto; gap: 0 8px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.hist-l li > span:first-child { color: var(--muted); font-size: 12.5px; }
.hist-l .hist-n { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.hist-l .hist-p { grid-column: 3; grid-row: 1; font-weight: 700; }

/* 종류마다 3개만 먼저, 「채소 15가지 더 보기」 (11-03) */
.cat-more { display: flex; align-items: center; justify-content: center; gap: 4px; width: calc(100% - 32px); margin: 2px 16px 12px; padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; }
.cat-more:hover { background: var(--chip); }

/* 소식 목록: 글 종류 표 + 읽기 (11-03) */
.pc-intro { margin: -6px 0 6px; font-size: 14px; color: var(--muted); }
.post-cards a { display: flex; flex-direction: column; gap: 6px; }
.pc-k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pc-t { font-size: 11.5px; font-weight: 700; color: #FFFFFF; background: var(--red); border-radius: 5px; padding: 1px 7px; }
.pc-t.t-ending, .pc-t.t-new { color: #141414; background: var(--yellow); }
.pc-t.t-unit, .pc-t.t-gap { background: #141414; }
.post-cards b { margin: 0 !important; }
.pc-d { color: var(--muted); font-size: 14px; line-height: 1.55; }
.pc-go { font-size: 14px; font-weight: 700; color: var(--red-ink); }
.pc-week { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* 로그인 전 (캔버스 「영수증·포인트 (로그인 전)」, 11-03) */
.login { gap: 12px; padding: 18px 16px 16px; }
.login-h { display: flex; align-items: center; gap: 12px; }
.login-h h3 { margin: 0; font-size: 18px; font-weight: 800; }
.login-h div { display: flex; flex-direction: column; gap: 2px; }
.login-h div > span { font-size: 13px; color: var(--muted); }
.login-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #141414;
  background: linear-gradient(180deg, #FFE24F, #FFD400 55%, #F5C800); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 3px 8px -3px rgba(150, 110, 0, .55); }
.login-ic svg { width: 24px; height: 24px; }
.login p { line-height: 1.55; }
.btn .g-ic { width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; color: #141414; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-right: 4px; }
.login-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12.5px; }
.login-or span { flex: 1; height: 1px; background: var(--line2); }
.login .addf button.go { background: linear-gradient(180deg, #D8262B 0%, #C8191E 60%, #B5141A 100%); color: #FFFFFF; padding: 0 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .15), 0 4px 10px -4px rgba(200, 25, 30, .6); }
.steps3 { margin: 12px var(--gut) 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.steps3 div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.steps3 span { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }

/* 소식 목록 = 글마다 카드 한 장 (캔버스 「소식 (목록)」, 11-03) */
.blogidx { padding-bottom: 20px; }
.post-cards.idx { margin: 12px var(--gut) 0; display: flex; flex-direction: column; gap: 12px; }
.post-cards.idx li a, .post-cards.idx li:first-child a { background: var(--card); border: 0; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.post-cards.idx b { font-size: 19px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pc-tags:empty { display: none; }
.pc-tags span { font-size: 12px; font-weight: 700; background: var(--chip); border-radius: 999px; padding: 3px 9px; color: var(--ink); }
.blogidx .pc-week { margin: 14px calc(var(--gut) + 4px) 0; }
/* 「.post-cards span」 회색 규칙이 표·읽기 글자색을 덮지 않게 */
.post-cards .pc-k span { color: var(--muted); }
.post-cards .pc-k .pc-t { color: #FFFFFF; }
.post-cards .pc-k .pc-t.t-ending, .post-cards .pc-k .pc-t.t-new { color: #141414; }
.post-cards .pc-tags span { color: var(--ink); }
.post-cards span.pc-go { color: var(--red-ink); }

/* 종류마다 카드 (11-03) — 머리글: 굵은 이름 + 개수, 오른쪽 「채소만 보기 →」 */
.cheap-h { padding-bottom: 0; }
.catcard { margin-top: 10px; }
.cat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.cat-top h3 { margin: 0; display: flex; align-items: baseline; gap: 6px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.cat-top h3 span { font-size: 13px; font-weight: 700; color: var(--red-ink); }
.cat-only { flex: none; border: 0; background: none; padding: 6px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.catcard .list > li:first-child .row { border-top: 0; }

/* 글 끝 두 버튼: 간격 두고 같은 높이로 (11-03) */
.post-act { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 6px; }
.post-act .btn { margin: 0; width: 100%; min-height: 50px; font-size: 14.5px; }
.fv-pop-h div > span.fv-ended { font-size: 12.5px; font-weight: 700; color: var(--red-ink); }

/* 장바구니 살 것: 종류별 머리글 (11-03) */
.cart-in { list-style: none; margin: 0; padding: 0; }
.cart-cat { margin: 0; display: flex; align-items: baseline; gap: 6px; padding: 12px 16px 6px; font-size: 14px; font-weight: 800; color: var(--red-ink); border-top: 1px solid var(--line2); background: linear-gradient(var(--chip), var(--card) 80%); }
.cart-cat:first-child { border-top: 0; }
.cart-cat span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cart-in .ci:first-child { border-top: 0; }

/* 레시피 양념 단위 — 단계마다 적지 않고 한 곳에 (11-03) */
.rcp-unit { margin: 0 16px 10px; padding: 8px 10px; border-radius: 8px; background: var(--yellow-soft); font-size: 13px; line-height: 1.5; color: var(--ink); }
.rcp-unit b { color: var(--red-ink); }
.rcp-unit span { color: var(--muted); font-size: 12.5px; }
