/* ============================================
   서브 페이지 공통 스타일 (v5 리브랜딩)
   (about, products, b2b, contact 등)
   ============================================ */

/* 인증 배지 */
.cert-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 24px; }
.cert-item {
    display: flex; gap: 12px; align-items: center;
    background: var(--ivory); border: 1px solid var(--line);
    border-radius: 8px; padding: 16px 18px;
    transition: border-color .25s;
}
.cert-item:hover { border-color: var(--gold-light); }
.cert-item i { font-size: 1.3rem; color: var(--gold); }
.cert-item b { display: block; font-size: 0.9rem; font-weight: 700; }
.cert-item span { font-size: 0.77rem; font-weight: 400; color: var(--charcoal-soft); }

/* 수치 지표 (about) */
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.metric {
    text-align: center; padding: 32px 14px;
    background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
}
.metric .m-num { font-family: var(--serif); font-size: clamp(1.8rem,3.2vw,2.4rem); font-weight: 600; color: var(--gold-deep); line-height: 1.1; }
.metric .m-label { margin-top: 10px; font-size: 0.86rem; font-weight: 500; color: var(--charcoal-soft); }

/* 비교 테이블 (직공급 vs 중간유통) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-col { border-radius: var(--radius); padding: 34px; }
.compare-bad { background: #FAF7F3; border: 1px solid #E4DACF; }
.compare-good { background: var(--ivory); border: 1px solid var(--gold); box-shadow: var(--shadow); }
.compare-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 1.12rem; font-weight: 700; }
.compare-bad h3 { color: #9A6A5C; }
.compare-good h3 { color: var(--gold-deep); }
.compare-col li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: 0.92rem; font-weight: 400; line-height: 1.6; }
.compare-bad li i { color: #B08A7E; margin-top: 5px; }
.compare-good li i { color: var(--gold); margin-top: 5px; }

/* 타임라인/스텝 (about 강점) */
.strength-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.strength {
    background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.strength:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.strength .s-icon {
    width: 52px; height: 52px; border-radius: 8px;
    background: var(--cream); color: var(--gold-deep);
    border: 1px solid var(--line);
    display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 20px;
}
.strength h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 10px; }
.strength p { font-size: 0.9rem; font-weight: 400; color: var(--charcoal-soft); line-height: 1.7; }

/* ===== 제품 상세 카드 ===== */
.product-full {
    background: var(--ivory); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 26px;
    display: grid; grid-template-columns: 300px 1fr;
    transition: box-shadow .3s;
}
.product-full:hover { box-shadow: var(--shadow); }
.pf-visual { position: relative; display: flex; flex-direction: column; }
.pf-photo { width:100%; height:100%; min-height:220px; object-fit:cover; object-position:top; display:block; border-radius:14px 14px 0 0; }
.pf-swatches { display: grid; grid-template-columns: repeat(4,1fr); flex: 1; min-height: 180px; }
.pf-swatches span { display: block; }
.pf-icon {
    position: absolute; top: 16px; left: 16px;
    width: 42px; height: 42px; border-radius: 6px;
    background: rgba(255,255,255,.92); color: var(--gold-deep);
    display: grid; place-items: center; font-size: 1.1rem; box-shadow: var(--shadow);
}
.pf-body { padding: 34px; }
.pf-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pf-book { background: var(--ink); color: #EFE4C8; font-size: 0.72rem; font-weight: 600; padding: 5px 12px; border-radius: 3px; letter-spacing: .06em; }
.pf-no { font-family: var(--serif); font-size: 0.85rem; font-weight: 600; letter-spacing: .14em; color: var(--gold-deep); text-transform: uppercase; }
.pf-body h2 { font-size: 1.32rem; font-weight: 700; margin-bottom: 4px; }
.pf-en { font-family: var(--serif); font-size: 0.82rem; font-weight: 500; letter-spacing: .12em; color: var(--charcoal-soft); margin-bottom: 18px; text-transform: uppercase; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.pf-chip { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 3px; padding: 6px 14px; font-size: 0.8rem; font-weight: 500; }
.pf-chip i { color: var(--gold); margin-right: 5px; }
.pf-feature { color: var(--charcoal-soft); margin-bottom: 18px; font-size: 0.93rem; font-weight: 400; line-height: 1.7; }
.pf-uses { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-use { background: var(--cream); border: 1px solid var(--line); border-radius: 3px; padding: 6px 12px; font-size: 0.82rem; font-weight: 600; color: var(--gold-deep); }

/* ===== 컬러 차트 ===== */
.color-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.color-filter button {
    padding: 9px 20px; border-radius: 3px; border: 1px solid var(--line);
    background: var(--ivory); font-family: inherit; font-size: 0.88rem; font-weight: 600;
    cursor: pointer; color: var(--charcoal-soft); transition: all .2s;
}
.color-filter button:hover { border-color: var(--gold-light); color: var(--gold-deep); }
.color-filter button.active { background: var(--ink); color: #EFE4C8; border-color: var(--ink); }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px,1fr)); gap: 12px; }
.swatch-cell { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--ivory); transition: transform .2s, box-shadow .2s; }
.swatch-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.swatch-color { height: 78px; }
.swatch-info { padding: 8px 10px; }
.swatch-info .code { font-size: 0.76rem; font-weight: 600; }
.swatch-info .name { font-size: 0.68rem; font-weight: 400; color: var(--charcoal-soft); }
.color-note { text-align:center; margin-top: 30px; font-size: 0.84rem; font-weight: 400; color: var(--charcoal-soft); }

/* ===== 연락처 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-info-card {
    background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 38px; box-shadow: var(--shadow);
}
.contact-line { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ci-icon {
    width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
    background: var(--cream); color: var(--gold-deep);
    border: 1px solid var(--line);
    display: grid; place-items: center; font-size: 1.1rem;
}
.contact-line .ci-label { font-size: 0.78rem; font-weight: 400; color: var(--charcoal-soft); }
.contact-line .ci-value { font-weight: 600; font-size: 1rem; }
.contact-line .ci-value a:hover { color: var(--gold-deep); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* 발주 특전 (b2b) */
.benefit-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.benefit {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
    transition: border-color .25s;
}
.benefit:hover { border-color: var(--gold-light); }
.benefit .b-icon {
    width: 46px; height: 46px; border-radius: 8px; flex-shrink: 0;
    background: var(--cream); color: var(--gold-deep);
    border: 1px solid var(--line);
    display: grid; place-items: center; font-size: 1.1rem;
}
.benefit h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.benefit p { font-size: 0.87rem; font-weight: 400; color: var(--charcoal-soft); line-height: 1.65; }

/* 반응형 */
@media (max-width: 960px) {
    .cert-grid, .metric-grid, .strength-grid { grid-template-columns: repeat(2,1fr); }
    .compare, .contact-grid, .benefit-grid { grid-template-columns: 1fr; }
    .product-full { grid-template-columns: 1fr; }
    .pf-photo { min-height: 120px; }
    .pf-swatches { min-height: 120px; }
}
@media (max-width: 600px) {
    .cert-grid, .metric-grid, .strength-grid { grid-template-columns: 1fr; }
    .pf-body { padding: 24px; }
}

.pm-photo { width: 100%; height: 172px; object-fit: cover; object-position: top; display: block; }
