/* 확대 보기 라이트박스 — 메인 페이지 인증서 라이트박스(.cert-lightbox)와 같은 모양.
   제품 상세 페이지는 winest.css 를 불러오지 않으므로 필요한 규칙만 따로 둔다.
   포장 뒷면의 작은 글씨를 읽는 용도라 휠·핀치 줌과 드래그 이동을 지원한다. */
.cert-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity .25s ease;
    padding: 40px;
    overflow: hidden;
    cursor: zoom-out;
}
.cert-lightbox.is-open { display: flex; opacity: 1; }
.cert-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    transform-origin: 0 0;
    touch-action: none;          /* 핀치·드래그를 브라우저 스크롤 대신 직접 처리 */
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-out;            /* 한 번 더 누르면 닫힌다 */
    will-change: transform;
}
.cert-lightbox.is-zoomed img { cursor: grab; }
.cert-lightbox.is-dragging img { cursor: grabbing; }
.cert-lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.cert-lightbox-close:hover { background: rgba(255, 255, 255, .24); }
.cert-lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    letter-spacing: .3px;
    background: rgba(0, 0, 0, .5);
    padding: 8px 16px;
    border-radius: 2px;
    max-width: 80vw;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}
.cert-lightbox-hint {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    background: rgba(0, 0, 0, .55);
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}
@media (max-width: 768px) {
    .cert-lightbox { padding: 16px; }
    .cert-lightbox-close { top: 12px; right: 14px; width: 38px; height: 38px; font-size: 24px; }
    .cert-lightbox-caption { font-size: 12px; bottom: 14px; }
    .cert-lightbox-hint { top: 22px; }
}

/* ===== 포장 정보 섹션 ===== */
.pkg-section { max-width: 900px; margin: 0 auto; padding: 56px 24px 0; line-height: 1.75; }
.pkg-section h2 { font-size: 1.5rem; margin-bottom: 24px; }
.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pkg-item { margin: 0; }
.pkg-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    cursor: zoom-in;
}
.pkg-thumb img { display: block; width: 100%; height: auto; object-fit: contain; transition: transform .25s ease; }
.pkg-thumb:hover img, .pkg-thumb:focus-visible img { transform: scale(1.03); }
.pkg-thumb:focus-visible { outline: 2px solid #bf7a35; outline-offset: 2px; }
.pkg-item figcaption { margin-top: 10px; font-size: .92rem; font-weight: 600; }
.pkg-note { margin-top: 6px; font-size: .85rem; opacity: .75; }
@media (max-width: 768px) {
    .pkg-grid { grid-template-columns: 1fr; }
}

