/* E-8 제품정보: E-7 제품 검색 화면을 E-8 머리말·꼬리말 안에 */
.e8-pm { padding-top: var(--hh); }
.e8-pm main { padding-top: 0; }
body[data-page="products"] { font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; }

/* E-8 세부페이지와 같은 머리(큰 제목 · 번호 · 밑줄 탭) */
body[data-page="products"] .p-head .crumb { font-size: 14px; }
body[data-page="products"] .y-prod > .y-sec:first-child { padding-top: clamp(48px, 6vw, 88px) !important; }
body[data-page="products"] .y-pfil .row:first-child { display: none; } /* 구분은 위 탭으로 */
body[data-page="products"] .y-pfil .row:first-child + .row { border-top: 0; margin-top: 0; padding-top: 0; }
body[data-page="products"] .e8-pm main.page { padding-top: 0 !important; }
body[data-page="products"] .e8-pm main .y-sec:first-of-type { padding-top: clamp(48px, 6vw, 88px); }
/* 식약처 상세 */
.mf-box h3 { margin: 0; }
.mf-n { margin: 6px 0 0; font-size: 14px; color: var(--t3, #8b908d); }
.mf-pim { display: grid; gap: 10px; align-content: start; }
.mf-pim img { width: 100%; height: auto; border-radius: 12px; background: #f4f5f4; object-fit: contain; }
.mf-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 4px; }
.mf-tabs button { padding: 7px 14px; border: 1px solid #cdd2cf; border-radius: 999px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.mf-tabs button[aria-selected="true"] { background: #121413; border-color: #121413; color: #fff; }
.mf-dl { margin-top: 18px; }
.mf-dl dd p { white-space: normal; }
.mf-sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e4e7e5; }
.mf-sec h4, .mf-sec summary { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #121413; }
.mf-sec summary { cursor: pointer; margin: 0; }
.mf-sec[open] summary { margin-bottom: 10px; }
.mf-t { font-size: 14px; line-height: 1.75; color: #4d524f; max-height: 360px; overflow: auto; }
.mf-gate { margin-top: 22px; padding: 22px; border-radius: 14px; background: #f4f6f5; }
.mf-gate b { display: block; font-size: 15px; }
.mf-gate p { margin: 6px 0 14px; font-size: 14px; color: #4d524f; line-height: 1.6; }
.mf-gate .btn { padding: 10px 18px; border-radius: 999px; background: #018356; color: #fff; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.modal.pd .mb .pim.mf-pim { height: auto !important; aspect-ratio: auto !important; display: grid !important; place-items: stretch; gap: 10px; background: none !important; overflow: visible; }
.modal.pd .mb .pim.mf-pim img { position: static !important; inset: auto; width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: contain; mix-blend-mode: normal !important; background: #f4f5f4 !important; border-radius: 14px; }
@media (max-width: 640px) { .modal.pd .mb .pim.mf-pim { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
.modal.pd .mf { align-items: center; }
.modal.pd .mf .alt { flex: none; white-space: nowrap; }
.modal.pd .mf .alt b { white-space: nowrap; }
@media (max-width: 640px) { .modal.pd .mf .alt { text-align: center; } }
.modal.pd .mf-nd{display:flex;align-items:center;gap:12px;margin:18px 0 6px;padding:14px 18px;border:1px solid #018356;border-radius:12px;color:#018356;text-decoration:none;transition:background .25s,color .25s}
.modal.pd .mf-nd span{font-weight:700;font-size:15px}
.modal.pd .mf-nd small{flex:1;font-size:13px;color:#5b6b63}
.modal.pd .mf-nd i{font-style:normal;font-size:16px}
.modal.pd .mf-nd:hover{background:#018356;color:#fff}.modal.pd .mf-nd:hover small{color:rgba(255,255,255,.85)}
