/* ============================================================================
 * 상품 상세 · 실제 구매 검수 사진 (item_parts/qc_photos.php 전용)
 *   자립형 스타일 — 다른 CSS 에 의존하지 않는다. 모바일 기본 → 768/1024 확장.
 *   디자인 톤은 item-faq.css 와 동일 계열(중성 그레이 + 12px 라운드, 과한 박스 없음).
 * ========================================================================== */

.v2-item-qc {
    /* 아래에 «검수 안내»(프로세스 4단계)가 이어진다 — 두 블록이 붙지 않게 여백을 둔다 */
    margin: 34px 0 30px;
}

/* ---------- 1. 신뢰 헤더 ---------- */
.v2iqc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eaf6ee;
    color: #1d7a3d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -.2px;
}
.v2iqc-eyebrow svg {
    width: 14px;
    height: 14px;
}

.v2iqc-head h2 {
    margin: 10px 0 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.3px;
    line-height: 1.3;
    color: #16161a;
}

.v2iqc-points {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}
.v2iqc-points li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #55555e;
    letter-spacing: -.2px;
}
.v2iqc-points li svg {
    width: 13px;
    height: 13px;
    color: #1d7a3d;
    flex: none;
}

/* ---------- 2. 검수 정보 카드 ---------- */
.v2iqc-info {
    margin-top: 14px;
    border: 1px solid #e8e8ea;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.v2iqc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
}
.v2iqc-stats > div {
    padding: 13px 8px 12px;
    text-align: center;
}
.v2iqc-stats > div + div {
    border-left: 1px solid #f0f0f2;
}
.v2iqc-stats dt {
    margin: 0 0 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #85858e;
    letter-spacing: -.2px;
}
.v2iqc-stats dd {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: #16161a;
}
.v2iqc-stats dd.v2iqc-ok {
    color: #1d7a3d;
}
.v2iqc-notice {
    margin: 0;
    padding: 10px 14px 11px;
    border-top: 1px solid #f0f0f2;
    background: #fafafa;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
    color: #6b6b74;
    letter-spacing: -.2px;
}

/* ---------- 3. 검수 내역 «건별» 카드 (2026-08-16) ----------
   한 카드 = 검수 1건(wr_id 하나). 대표사진 1장만 먼저 보여주고
   전체 사진은 카드를 눌렀을 때 시트에서 채운다. */
.v2iqc-listhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 22px 0 10px;
}
.v2iqc-listhead h3 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: #16161a;
}
.v2iqc-listhead h3 em {
    font-style: normal;
    color: #1d7a3d;
}
.v2iqc-listhead span {
    font-size: 12px;
    font-weight: 600;
    color: #85858e;
    letter-spacing: -.2px;
}

.v2iqc-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.v2iqc-list > li {
    min-width: 0;
}

.v2iqc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px;
    border: 1px solid #e8e8ea;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.v2iqc-item:hover,
.v2iqc-item:focus-visible {
    border-color: #16161a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.v2iqc-thumb {
    position: relative;
    flex: none;
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    background: #f6f6f4;
}
.v2iqc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.v2iqc-thumb-count {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .68);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.v2iqc-item-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    flex: 1;
}
.v2iqc-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #55555e;
    letter-spacing: -.2px;
}
.v2iqc-item-meta b {
    font-weight: 700;
    color: #85858e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v2iqc-item-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12.5px;
    font-weight: 700;
    color: #16161a;
    letter-spacing: -.2px;
}
.v2iqc-item-more svg {
    width: 14px;
    height: 14px;
}

.v2iqc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eaf6ee;
    color: #1d7a3d;
    font-size: 11.5px;
    font-weight: 800;
}
.v2iqc-badge svg {
    width: 12px;
    height: 12px;
}
/* ---------- 4. 검수 1건 상세 시트 (item_modals/qc_detail.php, v2iqcs-*) ----------
   껍데기는 기존 .v2-sheet 규격(item.css)을 그대로 상속한다 —
   위치/배경/열림 전환/닫기 동작을 다시 만들지 않는다. 여기서는 내용만 꾸민다. */
.v2-iqc-panel header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    border-bottom: 1px solid #f0f0f2;
}
.v2-iqc-panel header strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: #16161a;
    text-align: center;
}
.v2-iqc-panel header button {
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #55555e;
    cursor: pointer;
}

.v2iqcs-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 13px 0 11px;
}
.v2iqcs-sub {
    font-size: 12.5px;
    font-weight: 600;
    color: #6b6b74;
    letter-spacing: -.2px;
}

.v2iqcs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.v2iqcs-shot {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f6f4;
    cursor: zoom-in;
}
.v2iqcs-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.v2iqcs-report {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 12px;
    min-height: 46px;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: #fff;
    color: #16161a;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -.2px;
    text-decoration: none;
}
.v2iqcs-report:hover { border-color: #16161a; }
.v2iqcs-report svg { width: 16px; height: 16px; }

/* ============================================================================
 * 상단 구매 영역 · 검수 신뢰 카드 (item_parts/qc_trust_card.php 전용, v2iqt-*)
 *   기존 구매 신뢰 영역 아래 요약 카드 — 최신 1건, 미리보기 5장.
 * ========================================================================== */
.v2iqt-card {
    margin: 12px 0 0;
    padding: 13px 14px 14px;
    border: 1px solid #e8e8ea;
    border-radius: 12px;
    background: #fff;
}
.v2iqt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eaf6ee;
    color: #1d7a3d;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: -.2px;
}
.v2iqt-eyebrow svg {
    width: 12px;
    height: 12px;
}
.v2iqt-body {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.v2iqt-text {
    min-width: 0;
    flex: 1;
}
.v2iqt-text strong {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: #16161a;
    line-height: 1.35;
}
.v2iqt-text span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #85858e;
    letter-spacing: -.2px;
}
.v2iqt-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #dcdcde;
    border-radius: 999px;
    background: #fff;
    color: #16161a;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: -.2px;
    text-decoration: none;
    white-space: nowrap;
}
.v2iqt-cta:hover {
    border-color: #16161a;
}
.v2iqt-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 11px;
}
.v2iqt-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f6f4;
}
.v2iqt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- 반응형 ---------- */
@media (min-width: 768px) {
    .v2-item-qc { margin-top: 40px; }
    .v2iqc-head h2 { font-size: 20px; }
    .v2iqc-points li { font-size: 13.5px; }
    .v2iqc-stats dd { font-size: 15.5px; }
    .v2iqc-listhead h3 { font-size: 16.5px; }

    /* 태블릿·PC 는 2열. 카드가 가로형이라 좁은 화면에서 2열로 나누면
       «2026.08.16 김** 고객님» 이 줄바꿈으로 깨진다 → 모바일은 1열 유지. */
    .v2iqc-list { grid-template-columns: repeat(2, 1fr); }
    .v2iqc-thumb { width: 96px; height: 96px; }

    .v2iqcs-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .v2iqc-item { padding: 12px; }
    .v2iqc-thumb { width: 104px; height: 104px; }
    .v2iqcs-grid { grid-template-columns: repeat(5, 1fr); }
}
