/* =====================================================================
   OliDilly — content.css
   /c/ 목록 · /c/<slug>/ 상세 전용. style.css 의 색 · 글꼴 · 헤더 · 버튼을 그대로 씁니다.
   ===================================================================== */

.cpage main { min-height: 60vh; }
.cph { background: var(--ph); width: 100%; height: 100%; }

/* ---------- 목록 ---------- */
.clist { padding: 40px 0 72px; }
.clist__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; color: #A6462A; margin-bottom: 14px; }
.clist__title { font-family: "Noto Serif KR", serif; font-weight: 500; font-size: 30px; line-height: 1.35; letter-spacing: -0.02em; }
.clist__desc { color: var(--ink-2); margin-top: 12px; font-size: 15px; }
.clist__chips { margin-top: 28px; }
.clist__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; margin-top: 22px; }
.clist__empty { color: var(--ink-3); padding: 48px 0; text-align: center; }

/* 카드 (목록 · 관련 콘텐츠 공통) */
.ccard { display: block; }
.ccard__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--ph); margin-bottom: 10px; }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ccard:hover .ccard__media img { transform: scale(1.03); }
.ccard__cat { font-size: 12px; color: var(--ink-3); letter-spacing: .02em; margin-top: 2px; }
.ccard__title { font-size: 15px; font-weight: 600; line-height: 1.45; margin-top: 2px; }

/* ---------- 상세: 상단 ---------- */
.chero__media { aspect-ratio: 4 / 5; max-height: 72vh; overflow: hidden; background: var(--ph); }
.chero__media img { width: 100%; height: 100%; object-fit: cover; }
.chero__text { padding-top: 28px; }
.chero__crumb { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: #A6462A; }
.chero__crumb a { border-bottom: 1px solid currentColor; }
.chero__title { font-family: "Noto Serif KR", serif; font-weight: 500; font-size: 25px; line-height: 1.4; letter-spacing: -0.02em; margin-top: 14px; }
.chero__summary { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin-top: 14px; }

/* ---------- 상세: 본문 ---------- */
.cbody { padding-bottom: 72px; }
.csec { padding-top: 44px; margin-top: 44px; border-top: 1px solid var(--line); }
.csec:first-child { border-top: 0; margin-top: 8px; }
.csec__h { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--ink-2); margin-bottom: 20px; }

/* 릴스 — 커버(약 350px) → 누르면 인스타그램 공식 임베드 */
.creel__slot { max-width: 400px; margin: 0 auto; }
.creel__poster { position: relative; display: block; width: 100%; height: 350px; border-radius: 10px; overflow: hidden; background: var(--ph); }
.creel__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.creel__poster:hover img { transform: scale(1.02); }
.creel__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(30,29,27,.62); display: grid; place-items: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.creel__play svg { width: 26px; height: 26px; fill: #fff; stroke: none; margin-left: 3px; }
.creel__src { position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(30,29,27,.55); padding: 4px 10px; border-radius: 99px; }
.creel__slot.is-open { aspect-ratio: 400 / 700; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.creel__slot.is-loading { background: var(--ph); }
.creel__frame { width: 100%; height: 100%; border: 0; display: block; }
.creel__fallback { font-size: 13px; color: var(--ink-2); margin-top: 12px; text-align: center; }
.creel__fallback a { font-weight: 600; border-bottom: 1px solid var(--ink); }

/* 영상 속 제품 — 쇼핑 태그처럼 간결한 한 줄 목록 */
.vprod__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vprod__row { display: grid; grid-template-columns: 52px 1fr 20px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 64px; }
.vprod__row.no-img { grid-template-columns: 1fr 20px; padding: 14px 0; }
.vprod__th { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.vprod__th img { width: 100%; height: 100%; object-fit: cover; }
.vprod__body { min-width: 0; }
.vprod__name { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vprod__sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.vprod__tag { font-size: 11px; font-weight: 700; line-height: 18px; padding: 0 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); flex: none; }
.vprod__tag.is-ad { border-color: #E1B7A8; color: #A6462A; }
.vprod__ext { width: 18px; height: 18px; color: var(--ink-3); }
.vprod__row:hover .vprod__name { text-decoration: underline; text-underline-offset: 3px; }
.vprod__more { width: 100%; height: 42px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.vprod__notice { font-size: 12px; line-height: 1.6; color: var(--ink-2); margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 핵심 */
.cpoints { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.cpoints li { display: grid; grid-template-columns: 36px 1fr; gap: 4px; font-size: 17px; line-height: 1.7; }
.cpoints__no { font-family: "Noto Serif KR", serif; color: #A6462A; font-size: 15px; padding-top: 3px; }
.csrc { font-size: 13px; line-height: 1.6; color: var(--ink-3); margin-top: 8px; }
.csrc a { color: var(--ink-2); border-bottom: 1px solid var(--line); }

/* 먹는 방법 */
.chow { display: grid; gap: 22px; }
.chow__item { margin: 0; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.chow__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--ph); }
.chow__media img { width: 100%; height: 100%; object-fit: cover; }
.chow__item figcaption { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.chow__item figcaption b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* 영상 속 식재료 */
.cfoods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfoods__item { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cfoods__media { aspect-ratio: 1; background: var(--ph); }
.cfoods__media img { width: 100%; height: 100%; object-fit: cover; }
.cfoods__body { padding: 12px 12px 14px; }
.cfoods__name { font-size: 14px; font-weight: 600; line-height: 1.45; }
.cfoods__product { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.cfoods__buy { display: inline-block; font-size: 13px; font-weight: 600; margin-top: 8px; border-bottom: 1px solid var(--ink); }
.cfoods__more-label { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: 22px; }
.cfoods__tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cfoods__tags li { font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.cnote { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* 관련 제품 — 상품 상세처럼 보이지 않게 조용한 안내 박스 */
.cprod { background: var(--bg-tint); border-top: 0; border-radius: 10px; padding: 26px 22px; }
.cprod__label { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--ink-2); }
.cprod__text { font-size: 16px; line-height: 1.7; margin-top: 10px; }
.cprod__links { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 18px; }

/* 관련 콘텐츠 */
.crel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.crel .ccard__title { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 404 */
.cnot { padding: 72px var(--gutter); }
.cnot__title { font-size: 26px; font-weight: 700; margin-top: 8px; }
.cnot__desc { color: var(--ink-2); margin: 10px 0 28px; }

/* ---------- 태블릿 · PC ---------- */
@media (min-width: 768px) {
  .clist { padding: 72px 0 112px; }
  .clist__title { font-size: 40px; }
  .clist__grid { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }

  .cart { max-width: var(--maxw); margin: 0 auto; }
  .chero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding: 48px var(--gutter) 0; }
  .chero__media { border-radius: var(--radius); max-height: none; }
  .chero__text { padding: 0 0 12px; }
  .chero__title { font-size: 38px; }
  .cbody { max-width: 760px; }
  .csec { padding-top: 56px; margin-top: 56px; }
  .chow { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
  .chow__item { grid-template-columns: 1fr; align-items: start; }
  .cfoods { grid-template-columns: repeat(4, 1fr); }
  .cprod { padding: 32px; }
}
@media (min-width: 1024px) {
  .clist__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 상세: 영상 아카이브 구조 (2026-10-09) — 제목 · 썸네일 · 영상 속 제품 ---------- */
.cvhead { padding-top: 28px; }
.cvhead .chero__title { margin-top: 10px; }
.cart--video .cbody { padding-top: 22px; }
.cvid { position: relative; display: block; max-width: 420px; margin: 0 auto; border-radius: 10px; overflow: hidden; background: var(--ph); }
.cvid__media { display: block; aspect-ratio: 4 / 5; }
.cvid__media img, .cvid__media .cph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.cvid:hover .cvid__media img { transform: scale(1.02); }
.cvid__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(30,29,27,.62); display: grid; place-items: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cvid__play svg { width: 26px; height: 26px; fill: #fff; stroke: none; margin-left: 3px; }
.cvid__src { position: absolute; left: 12px; bottom: 12px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(30,29,27,.6); padding: 5px 11px; border-radius: 99px; }
.cart--video .vprod { margin-top: 36px; padding-top: 32px; }
@media (min-width: 768px) {
  .cart--video .cbody, .cvhead { max-width: 560px; }
  .cvhead { padding-top: 56px; text-align: center; }
  .cvhead .chero__title { font-size: 32px; }
  .cart--video .cbody { padding-top: 28px; }
}
/* 연결 제품 0개 — 영상 아래 빈 공간을 줄여 푸터로 자연스럽게 (2026-10-09) */
.cart--video .cbody { padding-bottom: 56px; }
.cart--video.no-prod .cbody { padding-bottom: 40px; }
@media (min-width: 768px) {
  .cart--video .cbody { padding-bottom: 72px; }
  .cart--video.no-prod .cbody { padding-bottom: 56px; }
}
