/* COCOA 제품(브랜드커넥트) 화면 — 게시물 속 제품 카드 · 제품 그리드 · 제품 상세 · 글쓰기 제품 고르기 */
.cc-aff { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--cc-muted); }
.cc-pds { margin-top: 12px; padding: 12px; border-radius: var(--radius-container); background: var(--color-background-card); }
.cc-pds-t { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--cc-sub); }
.cc-pds-t .cc-ic { color: var(--cc-accent); }
.cc-pd-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-element); background: var(--cc-surface); }
.cc-pd-row + .cc-pd-row { margin-top: 6px; }
.cc-pd-row .cc-pd-img { flex: none; width: 60px; height: 60px; }
.cc-pd-img { display: flex; align-items: center; justify-content: center; border-radius: var(--radius-element); overflow: hidden; background: #fff; color: var(--cc-muted); }
.cc-pd-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cc-pd-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
.cc-pd-b small { font-size: 11.5px; color: var(--cc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-pd-b b { font-size: 13.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-pd-price { font-size: 13.5px; font-weight: 800; }
.cc-pd-price em { font-style: normal; color: var(--color-text-error); margin-right: 4px; }
.cc-pd-meta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--cc-muted); }
.cc-pd-row .cc-btn { flex: none; }
.cc-pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 14px; padding-top: 14px; }
.cc-pd-card { min-width: 0; animation: cc-in .3s var(--cc-ease) both; }
.cc-pd-card .cc-pd-img { aspect-ratio: 1; border: 1px solid var(--cc-line2); border-radius: var(--radius-container); }
.cc-pd-card .cc-pd-img img { transition: transform .4s var(--cc-ease); }
.cc-pd-card:hover .cc-pd-img img { transform: scale(1.04); }
.cc-pd-card .cc-pd-b { margin-top: 8px; padding: 0 2px; }
.cc-crumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--cc-muted); overflow: hidden; white-space: nowrap; }
.cc-crumb a:hover { color: var(--cc-text); }

/* 제품 상세 */
.cc-item { padding: 4px 4px 20px; }
.cc-item-top { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 26px; align-items: start; }
.cc-item-img { aspect-ratio: 1; border-radius: var(--radius-page); overflow: hidden; background: #fff; border: 1px solid var(--cc-line2); }
.cc-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cc-item-brand { font-size: 14px; font-weight: 700; color: var(--color-text-accent); }
.cc-item-info h1 { margin: 4px 0 10px; font-size: 21px; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; }
.cc-item-price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cc-item-price em { font-style: normal; font-weight: 800; font-size: 20px; color: var(--color-text-error); }
.cc-item-price s { color: var(--cc-muted); font-size: 14px; }
.cc-item-price b { font-size: 24px; font-weight: 800; }
.cc-item-when { margin: 4px 0 14px; font-size: 12px; color: var(--cc-muted); }
.cc-item-acts { display: flex; gap: 8px; }
.cc-item-acts .cc-btn-lg { width: auto; flex: 1; }
.cc-item-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 16px 0 0; }
.cc-item-attrs > div { padding: 9px 11px; border-radius: var(--radius-element); background: var(--cc-soft); min-width: 0; }
.cc-item-attrs > div.is-match { background: var(--cc-accent-soft); box-shadow: var(--shadow-inset-selected); }
.cc-item-attrs dt { font-size: 11.5px; color: var(--cc-muted); }
.cc-item-attrs dd { margin: 1px 0 0; font-size: 13.5px; font-weight: 600; }
.cc-item-attrs dd i { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: var(--radius-full); background: var(--cc-accent); color: var(--color-on-accent); vertical-align: 1px; }
.cc-item-sec { margin-top: 30px; }
.cc-item-sec .cc-sec-t b { color: var(--cc-accent); font-weight: 600; }
.cc-item-desc p { margin: 0 0 14px; font-size: 16px; line-height: 1.85; }
.cc-tblwrap { overflow-x: auto; border-radius: var(--radius-container); border: 1px solid var(--cc-line); }
.cc-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.cc-specs th, .cc-specs td { padding: 10px 14px; border-bottom: 1px solid var(--cc-line2); text-align: left; vertical-align: top; }
.cc-specs tr:last-child th, .cc-specs tr:last-child td { border-bottom: 0; }
.cc-specs th { width: 34%; font-weight: 600; color: var(--cc-sub); background: var(--cc-soft); }
.cc-item-note { margin: 8px 0 0; font-size: 12px; color: var(--cc-muted); }
.cc-empty.is-sm { padding: 28px 16px; border-radius: var(--radius-container); background: var(--cc-soft); }

/* 글쓰기 제품 고르기 */
.cc-pdcount { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--cc-accent); color: var(--color-on-accent); font-size: 10px; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cc-pdpick { margin-top: 12px; padding: 12px; border-radius: var(--radius-container); background: var(--cc-soft); }
.cc-pdpick input[type=search] { width: 100%; height: 40px; padding: 0 12px; border-radius: var(--radius-element); border: 1px solid var(--cc-line); background: var(--cc-surface); color: var(--cc-text); font: inherit; font-size: 14.5px; box-sizing: border-box; }
.cc-pdpick-sel { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cc-pdpick-sel:empty { display: none; }
.cc-pdchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px; border-radius: var(--radius-full); background: var(--cc-surface); border: 1px solid var(--cc-accent); font-size: 12.5px; }
.cc-pdchip img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; background: #fff; }
.cc-pdchip b { font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-pdchip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--cc-soft); font-size: 15px; line-height: 1; }
.cc-pdpick-list { max-height: 260px; overflow-y: auto; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.cc-pdpick-msg { margin: 8px 0; text-align: center; font-size: 13px; color: var(--cc-muted); }
.cc-pdres { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid transparent; border-radius: var(--radius-element); background: var(--cc-surface); text-align: left; }
.cc-pdres:hover { border-color: var(--cc-line); }
.cc-pdres.is-on { border-color: var(--cc-accent); background: var(--cc-accent-soft); }
.cc-pdres img, .cc-pdres > i { flex: none; width: 44px; height: 44px; border-radius: var(--radius-inner); object-fit: contain; background: #fff; }
.cc-pdres span { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.cc-pdres small { font-size: 11px; color: var(--cc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-pdres b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-pdres em { font-style: normal; font-size: 12.5px; font-weight: 700; }
.cc-explore-hd .cc-toptabs { padding-top: 0; }

@media (max-width: 720px) {
  .cc-item-top { grid-template-columns: 1fr; gap: 16px; }
  .cc-item-img { max-width: 360px; margin: 0 auto; width: 100%; }
  .cc-pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .cc-pd-row .cc-btn { display: none; }
}
