@charset "utf-8";

/* ==========================================================
   신규/수정 CSS 는 이 파일에만 추가합니다. (기존 css 덮어쓰기)
   ========================================================== */

/* 제품 상세 - 상세사진
   기본: 하단에 '사진제목'(.tit) 만 노출
   마우스 오버: 딤 처리 후 '사진설명'(.txt) 만 노출 (사진제목은 숨김) */
.product-img-wrap .img { position: relative; }
.product-img-wrap .img .txtbox {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 0 24px 28px;
	text-align: center; word-break: keep-all;
}
.product-img-wrap .img .txtbox .tit {
	color: #242424;
	font-size: var(--font-size18); font-weight: 600; line-height: 1.55em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-img-wrap .img .txtbox .txt {
	display: none;
	color: #fff;
	font-size: var(--font-size18); font-weight: 600; line-height: 1.55em;
	-webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* 딤 레이어 (사진설명이 있을 때만) */
.product-img-wrap .img.has-desc::after {
	content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 1;
	border-radius: 24px; background: rgba(36,36,36,.72);
	opacity: 0; visibility: hidden; transition: opacity .3s;
}
.product-img-wrap .img.has-desc:hover::after { opacity: 1; visibility: visible; }
.product-img-wrap .img.has-desc:hover .txtbox .tit { display: none; }
.product-img-wrap .img.has-desc:hover .txtbox .txt { display: -webkit-box; }

@media all and (max-width:1024px) {
	.product-img-wrap .img .txtbox { padding: 0 12px 14px; }
	.product-img-wrap .img.has-desc::after { border-radius: 5px; }
	.product-img-wrap .img .txtbox .txt { -webkit-line-clamp: 2; }
}

/* 특허·인증서 원본 이미지 모달 */
.certi-wrap .item .thumb { cursor: zoom-in; }
.certi-wrap .item .thumb img { transition: transform .25s ease; }
.certi-wrap .item .thumb:hover img { transform: scale(1.04); }
.certi-wrap .item .thumb::after {
	content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 1;
	background: rgba(36,36,36,.0); transition: background .25s;
}
.certi-wrap .item .thumb:hover::after { background: rgba(36,36,36,.18); }
body.certi-modal-open { overflow: hidden; }
.certi-modal {
	position: fixed; inset: 0; z-index: 10000;
	display: none; align-items: center; justify-content: center;
	padding: 0;
}
.certi-modal.is-open { display: flex; }
.certi-modal__dim {
	position: absolute; inset: 0;
	background: rgba(8,12,24,.88);
	cursor: pointer;
}
.certi-modal__box {
	position: relative; z-index: 1;
	max-width: 100vw; max-height: 100vh;
	display: flex; align-items: center; justify-content: center;
	overflow: auto;
	padding: 40px 44px 56px;
	box-sizing: border-box;
}
.certi-modal.is-zoomed .certi-modal__box { align-items: flex-start; justify-content: center; }
.certi-modal__frame {
	position: relative;
	line-height: 0;
	margin: auto;
	overflow: visible;
}
.certi-modal__img {
	display: block;
	max-width: none;
	max-height: none;
	width: auto; height: auto;
	object-fit: contain;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 16px 48px rgba(0,0,0,.45);
	cursor: zoom-in;
	user-select: none;
	-webkit-user-drag: none;
}
.certi-modal.is-zoomed .certi-modal__img {
	max-width: none;
	max-height: none;
}
.certi-modal__close {
	position: absolute; top: -18px; right: -18px; z-index: 3;
	width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%;
	background: #fff; color: #111;
	font-size: 22px; line-height: 40px; font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,.28);
	transition: transform .15s ease, background .15s ease;
}
.certi-modal__close:hover,
.certi-modal__close:focus {
	background: #1e5bb8; color: #fff;
	transform: scale(1.06);
	outline: none;
}
.certi-modal__cap {
	position: fixed; left: 0; right: 0; bottom: 18px; z-index: 3;
	margin: 0; color: #fff;
	font-size: 15px; font-weight: 600; line-height: 1.5;
	text-align: center; word-break: keep-all;
	pointer-events: none;
	text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.certi-modal__hint {
	display: block; font-size: 12px; font-weight: 400; opacity: .78; margin-top: 2px;
}
.certi-modal__tools {
	position: fixed; left: 16px; bottom: 16px; z-index: 3;
	display: flex; gap: 6px;
}
.certi-modal__tools button {
	height: 34px; padding: 0 12px;
	border: 0; border-radius: 17px;
	background: rgba(255,255,255,.92); color: #111;
	font-size: 13px; font-weight: 600; cursor: pointer;
}
.certi-modal__tools button:hover { background: #fff; }
@media all and (max-width:768px) {
	.certi-modal__box { padding: 36px 36px 56px; }
	.certi-modal__close { width: 36px; height: 36px; top: -16px; right: -16px; line-height: 36px; font-size: 20px; }
	.certi-modal__tools { left: 10px; bottom: 10px; }
}
