@charset "utf-8";

/* ============================================================
 * 대성테크윈 - 제품소개 (ok5) Renewal CSS
 * - 원본: 리뉴얼/sub07.php 의 <style> 영역
 * - 글로벌 헤더/푸터/모바일메뉴/skip-link/scroll-progress CSS 는 제거
 * - 모든 셀렉터는 .product-page 래퍼로 격리하여 다른 페이지에 영향 없음
 * ============================================================ */

/* ============================================================
 * ★ Heading Reset & Variables
 * ============================================================ */
.product-page {
	--primary: #004B8D;         
	--secondary: #1E293B;       
	--surface: #FFFFFF;         
	--surface-alt: #F8FAFC;     
	--on-surface: #0F172A;      
	--on-surface-alt: #475569;  
	--on-primary: #FFFFFF;      
	--radius-md: 16px;
	--radius-lg: 32px;          
	--radius-pill: 9999px;
	--shadow-card: 0 12px 36px rgba(0, 0, 0, 0.06);
	--shadow-float: 0 24px 48px rgba(0, 0, 0, 0.12);
	--shadow-hover: 0 16px 40px rgba(0, 75, 141, 0.12);

	color: var(--on-surface);
	word-break: keep-all;
}

.product-page h1, .product-page .h1,
.product-page h2, .product-page .h2,
.product-page h3, .product-page .h3,
.product-page h4, .product-page .h4,
.product-page h5, .product-page .h5,
.product-page h6, .product-page .h6 {
	margin-top: 0;
	margin-bottom: 0;
}

/* ==========================================
   1. Common — Container / Utility
========================================== */
.product-page .sub-page-header,
.product-page .sticky-tab-wrap,
.product-page .content-section {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.product-page .container {
	max-width: var(--site-width, 1760px) !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 0 1.25rem !important;
	box-sizing: border-box !important;
}
@media (min-width: 768px)  { .product-page .container { padding: 0 2.5rem !important; } }
@media (min-width: 1024px) { .product-page .container { padding: 0 5rem !important; } }
@media (min-width: 1440px) { .product-page .container { padding: 0 7rem !important; } }
@media (min-width: 1760px) { .product-page .container { padding: 0 5rem !important; } }

.product-page .tracking-kr-tight { letter-spacing: -0.05em; } 
.product-page .focus-ring:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
.product-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.product-page .section-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 0.9375rem; color: var(--primary); margin-bottom: 0.75rem; }
@media (min-width: 768px) { .product-page .section-eyebrow { font-size: 1.125rem; margin-bottom: 1rem; } }
.product-page .section-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.product-page .eyebrow-white { color: var(--on-primary); }
.product-page .eyebrow-white::before { background: var(--on-primary); }

.product-page .sub-sec-title { display: block; font-size: 2rem; font-weight: 900; color: var(--on-surface); }
.product-page .main-heading { font-size: 2.25rem; font-weight: 900; line-height: 1.3; margin-bottom: 1.5rem; color: var(--on-surface); }
.product-page .desc-text { font-size: 1.0625rem; font-weight: 500; color: var(--on-surface-alt); line-height: 1.6; margin-bottom: 3rem; }
@media (min-width: 768px) { .product-page .sub-sec-title { font-size: 2.5rem; } .product-page .main-heading { font-size: 3rem; } .product-page .desc-text { font-size: 1.125rem; } }

.product-page .btn-pill { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--surface); color: var(--on-surface); border: 1px solid #E5E7EB; border-radius: var(--radius-pill); padding: 0.75rem 1.5rem; font-size: 0.9375rem; font-weight: 700; transition: all 0.3s ease; box-shadow: var(--shadow-card); }
.product-page .btn-pill:hover { background: #f0f4ff; color: var(--primary); border-color: transparent; transform: translateY(-2px); }

/* ==========================================
   2. Sub Page Header + Breadcrumb (공통 패치)
========================================== */
.product-page .sub-page-header {
	/* 기존 패딩을 더 줄여서 상단 여백을 더욱 타이트하게 다이어트합니다 */
	padding: 1.75rem 0 1rem;
	background: var(--surface);
	position: relative; z-index: 30;
}
@media (min-width: 768px)  { .product-page .sub-page-header { padding: 2.25rem 0 1.25rem; } }
@media (min-width: 1024px) { .product-page .sub-page-header { padding: 2.75rem 0 1.5rem; } }

.product-page .sub-crumb-list {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
	list-style: none; margin: 0 0 1rem; padding: 0;
	font-size: 0.875rem; font-weight: 700;
	color: var(--on-surface-alt); letter-spacing: -0.02em;
}
.product-page .sub-crumb-item { display: inline-flex; align-items: center; }
.product-page .sub-crumb-link {
	color: var(--on-surface-alt); transition: color 0.3s ease;
	display: inline-flex; align-items: center; gap: 0.25rem; line-height: 1;
	text-decoration: none;
}
.product-page .sub-crumb-link i { font-size: 1rem; }
.product-page a.sub-crumb-link:hover { color: var(--primary); }
.product-page .sub-crumb-current { color: var(--primary); font-weight: 800; }
.product-page .sub-crumb-sep {
	color: var(--on-surface-alt); opacity: 0.5; font-size: 0.75rem;
	display: inline-flex; align-items: center;
}

.product-page .sub-page-headline {
	font-size: 2rem; font-weight: 900; line-height: 1.15;
	letter-spacing: -0.05em; color: var(--on-surface); margin: 0 0 1.5rem;
	word-break: keep-all;
}
@media (min-width: 768px)  {
	.product-page .sub-page-headline { font-size: 3rem; margin-bottom: 2rem; }
}
@media (min-width: 1024px) {
	.product-page .sub-page-headline { font-size: 3.5rem; margin-bottom: 2rem; }
}

@media (min-width: 1440px) { 
	.product-page .sub-page-headline { font-size: 4rem; } 
}

/* 1차 탭 */
.product-page .sub-tabs { display: flex; align-items: center; gap: 2rem; border-bottom: 1px solid #E5E7EB; padding-bottom: 1rem; overflow-x: auto; white-space: nowrap; }
.product-page .sub-tabs::-webkit-scrollbar { display: none; }
.product-page .sub-tabs button, .product-page .sub-tabs a { font-size: 1.125rem; font-weight: 800; color: var(--on-surface-alt); transition: color 0.3s; position: relative; border: none; background: none; cursor: pointer; font-family: inherit; }
.product-page .sub-tabs button:hover, .product-page .sub-tabs a:hover { color: var(--on-surface); }
.product-page .sub-tabs button.active { color: var(--on-surface); }
.product-page .sub-tabs button.active::after { content: ''; position: absolute; bottom: -1.05rem; left: 0; width: 100%; height: 3px; background: var(--on-surface); border-radius: 2px; }
@media (min-width: 768px) { .product-page .sub-tabs { gap: 3rem; } .product-page .sub-tabs button, .product-page .sub-tabs a { font-size: 1.25rem; } }

/* ==========================================
   3. 2차 탭 (Sticky Chip-Filter)
========================================== */
.product-page .sticky-tab-wrap { position: sticky; top: var(--sub-header-h, 44px); z-index: 90; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #E5E7EB; transition: top 0.3s, box-shadow 0.3s; }
@media (min-width: 1024px) { .product-page .sticky-tab-wrap { top: var(--sub-header-h, 80px); } }
body.header-hidden .product-page .sticky-tab-wrap { top: 0 !important; /* box-shadow: 0 4px 20px rgba(0,0,0,0.05); 삭제 완료 */ }

.product-page .sticky-tab-wrap .container { position: relative; }
.product-page .sticky-tab-wrap .container::before,
.product-page .sticky-tab-wrap .container::after { content: ''; position: absolute; top: 0; bottom: 0; width: 2rem; pointer-events: none; z-index: 2; transition: opacity 0.3s; }
.product-page .sticky-tab-wrap .container::before { left: 0; background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0)); }
.product-page .sticky-tab-wrap .container::after { right: 0; background: linear-gradient(to left, rgba(255,255,255,0.95), rgba(255,255,255,0)); }
.product-page .sticky-tab-wrap[data-scroll-start="true"] .container::before { opacity: 0; }
.product-page .sticky-tab-wrap[data-scroll-end="true"] .container::after { opacity: 0; }

.product-page .sticky-tabs { display: none; align-items: center; flex-wrap: nowrap; gap: 0.5rem; padding: 0.875rem 0; overflow-x: auto; white-space: nowrap; scroll-snap-type: x proximity; scroll-padding-inline: 1.25rem; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; touch-action: pan-x; overscroll-behavior-x: contain; }
.product-page .sticky-tabs.active { display: flex; }
.product-page .sticky-tabs::-webkit-scrollbar { display: none; }
.product-page .sticky-tabs::before { content: 'FILTER'; flex-shrink: 0; display: none; align-items: center; gap: 0.375rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; color: var(--on-surface-alt); padding-right: 0.875rem; margin-right: 0.25rem; border-right: 1px solid #E5E7EB; height: 28px; line-height: 28px; }
@media (min-width: 768px) { .product-page .sticky-tabs::before { display: inline-flex; } }

.product-page .sticky-tabs button { flex-shrink: 0; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.9375rem; font-weight: 700; color: var(--on-surface-alt); background: var(--surface); border: 1px solid #E5E7EB; border-radius: var(--radius-pill); padding: 0.625rem 1.125rem; line-height: 1.2; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; border-style: solid; font-family: inherit; cursor: pointer; }
.product-page .sticky-tabs button:hover { color: var(--primary); background: #f0f4ff; border-color: transparent; transform: translateY(-1px); box-shadow: var(--shadow-card); }
.product-page .sticky-tabs button.active { color: var(--on-primary); background: var(--primary); border-color: var(--primary); box-shadow: 0 6px 18px rgba(0, 75, 141, 0.22); }
.product-page .sticky-tabs button.active::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #00ffaa; box-shadow: 0 0 8px rgba(0,255,170,0.7); flex-shrink: 0; }

@media (min-width: 768px) { .product-page .sticky-tabs { gap: 0.625rem; padding: 1rem 0; } .product-page .sticky-tabs button { font-size: 1rem; padding: 0.6875rem 1.25rem; } }
@media (min-width: 1024px) { .product-page .sticky-tabs { gap: 0.75rem; } .product-page .sticky-tabs button { padding: 0.75rem 1.375rem; } }

/* ==========================================
   4. Content Sections & Grid Layouts
========================================== */
.product-page .content-section { display: none; padding: 6rem 0; background: var(--surface); position: relative; z-index: 10; min-height: 50vh; }
@media (min-width: 768px) { .product-page .content-section { padding: 8rem 0; } }
/* ★ 탭 전환 시 transform 애니메이션 제거 — 스크롤 도중 transform 이 함께 움직여
   페이지가 위아래로 들썩이는 시각 충돌 차단. opacity 만 페이드인. */
.product-page .content-section.active { display: block; animation: fadeInTab 0.35s ease forwards; }
@keyframes fadeInTab { from { opacity: 0; } to { opacity: 1; } }

.product-page .grid-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media(min-width: 1024px){ .product-page .grid-layout { grid-template-columns: 3fr 9fr; gap: 4rem; } }
.product-page .grid-1-1 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width: 768px){ .product-page .grid-1-1 { grid-template-columns: 1fr 1fr; gap: 3rem; align-items:center; } }

.product-page .app-area-wrap { margin-top: 3rem; }
.product-page .app-area-title { font-size: 1.25rem; font-weight: 800; color: var(--on-surface); margin-bottom: 1.5rem; }
.product-page .app-area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media(min-width: 768px){ .product-page .app-area-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.product-page .app-card { background: var(--surface-alt); border: 1px solid #E5E7EB; border-radius: var(--radius-md); padding: 1.5rem; display: flex; align-items: center; gap: 1rem; transition: all 0.3s; }
.product-page .app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--primary); }
.product-page .app-card i { font-size: 2rem; color: var(--primary); }
.product-page .app-card span { font-weight: 800; font-size: 1.125rem; color: var(--on-surface); }

/* Bento Feature Grid */
.product-page .feature-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 3rem; }
@media(min-width: 768px){ .product-page .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media(min-width: 1024px){ .product-page .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.product-page .feature-card { background: var(--surface); border: 1px solid #E5E7EB; border-radius: var(--radius-md); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: all 0.3s; position: relative; overflow: hidden; }
.product-page .feature-card::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.product-page .feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: transparent; }
.product-page .feature-card:hover::after { transform: scaleX(1); }
.product-page .feature-card-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--surface-alt); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--primary); transition: background 0.3s; }
.product-page .feature-card:hover .feature-card-icon { background: rgba(0,75,141,0.1); }
.product-page .feature-card-title { font-size: 1.1875rem; font-weight: 800; color: var(--on-surface); line-height: 1.4; word-break: keep-all; margin: 0; }
.product-page .feature-card-num { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2.5rem; font-weight: 900; color: rgba(0,0,0,0.03); line-height: 1;}

/* List UI */
.product-page .feature-ul { list-style: none; margin-bottom: 2rem; padding: 0; }
.product-page .feature-ul li { position: relative; padding-left: 1.25rem; margin-bottom: 0.75rem; font-size: 1.0625rem; color: var(--on-surface-alt); font-weight: 500; }
.product-page .feature-ul li::before { content: '■'; font-size:0.6rem; position: absolute; left: 0; top:0.4rem; color: var(--primary); }
.product-page .step-ul { list-style: none; counter-reset: step-counter; margin-top:2rem; padding: 0; }
.product-page .step-ul li { position: relative; padding-left: 3.5rem; margin-bottom: 1.5rem; font-size: 1.125rem; color: var(--on-surface); font-weight: 700; min-height:40px; display:flex; align-items:center;}
.product-page .step-ul li::before { counter-increment: step-counter; content: counter(step-counter); position: absolute; left: 0; top: 50%; transform:translateY(-50%); width: 2.5rem; height: 2.5rem; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; }

/* Product & Table Layout */
.product-page .type-layout { display: flex; flex-direction: column; gap: 4rem; margin-top:3rem;}
@media(min-width: 1024px){ .product-page .type-layout { display: grid; grid-template-columns: 3fr 9fr; gap: 4rem; align-items: start; } }
.product-page .type-img-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); background: #f8fafc; padding: 2rem; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
@media(min-width: 1024px){ .product-page .type-layout > .type-img-wrap { position: sticky; top: 180px; } }
.product-page .type-img-wrap img { width: 100%; max-width: 300px; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.4s ease; display: block; }
.product-page .type-img-wrap:hover img { transform: scale(1.05); }
.product-page .type-img-wrap.is-wide { padding: 1rem; background: var(--surface); border: 1px solid #E5E7EB; }
.product-page .type-img-wrap.is-wide img { max-width: 100%; mix-blend-mode: normal; }
.product-page .zoom-hover-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); width: 64px; height: 64px; border-radius: 50%; background: rgba(0,75,141,0.9); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; opacity: 0; transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.2); pointer-events: none; }
.product-page .type-img-wrap:hover .zoom-hover-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.product-page .type-table-wrap { width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid #E5E7EB; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin-bottom: 2rem; }
.product-page .type-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.product-page .type-table th, .product-page .type-table td { padding: 1rem; border-bottom: 1px solid #E5E7EB; border-right: 1px solid #E5E7EB; text-align: center; vertical-align: middle; }
.product-page .type-table th { font-weight: 800; color: var(--on-surface); background: var(--surface-alt); font-size: 0.9375rem; white-space: nowrap; }
.product-page .type-table td { font-weight: 500; color: var(--on-surface-alt); font-size: 0.9375rem; line-height: 1.6; }
.product-page .type-table tr:last-child td, .product-page .type-table tr:last-child th { border-bottom: none; }
.product-page .type-table th:last-child, .product-page .type-table td:last-child { border-right: none; }
.product-page .type-table th[rowspan] { background: var(--surface-alt); color: var(--primary); }
.product-page .caution-text { text-align: right; margin-top: 1rem; color: #ef4444; font-size: 0.9375rem; font-weight:700;}

/* Image Gallery Grid */
.product-page .gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media(min-width: 768px) { .product-page .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem;} }
@media(min-width: 1024px) { .product-page .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem;} }
.product-page .gallery-item { border-radius:var(--radius-md); overflow:hidden; cursor:zoom-in; box-shadow:var(--shadow-card); position:relative;}
.product-page .gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; display: block; }
.product-page .gallery-item:hover img { transform:scale(1.05); }

/* Text Utility */
.product-page .text-center { text-align: center; }

/* ==========================================
   5. Lightbox Modal
========================================== */
/* ★ Lightbox 모달 — 절대좌표 + translate(-50%,-50%) 로 화면 정중앙 안정 배치
   ※ JS 가 모달 DOM 을 body 직속으로 이동 → .product-page prefix 없이 단독 셀렉터로 정의
   (ok5.css 는 ok5 페이지에서만 로드되므로 다른 페이지에 영향 없음) */
#image-modal.image-modal {
    position: fixed !important; inset: 0 !important;
    width: 100vw !important; height: 100vh !important;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    margin: 0 !important;
    padding: 0 !important;
}
#image-modal.image-modal.show { opacity: 1; visibility: visible; }

#image-modal .image-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#image-modal .image-modal-content {
    position: absolute;
    top: 50%; left: 50%;
    z-index: 10000;
    /* ★ 컨테이너 폭을 강제하여 작은 원본도 큼지막하게 노출 (object-fit:contain 으로 비율은 유지) */
    width: min(90vw, 1100px);
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    display: flex; flex-direction: column; align-items: center;
    gap: 1rem;
    transform: translate(-50%, -50%) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    margin: 0 !important;
}
#image-modal.image-modal.show .image-modal-content {
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

#image-modal .image-modal-content img {
    /* ★ 컨테이너에 가득 차도록 width 100% — 작은 원본 이미지 업스케일 (contain 으로 비율 유지) */
    width: 100% !important; height: auto !important;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

#image-modal .image-modal-caption {
    position: static;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0 1rem;
    opacity: 1; transform: none; transition: none;
    word-break: keep-all;
    max-width: 90vw;
}

#image-modal .image-modal-close {
    position: absolute; top: 1.5rem; right: 1.5rem; z-index: 10001;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.3s, transform 0.3s, border-color 0.3s;
    border: 1px solid rgba(255,255,255,0.22);
}
#image-modal .image-modal-close:hover { background: var(--primary); border-color: transparent; transform: rotate(90deg); }
@media (min-width: 768px) {
    #image-modal .image-modal-close { width: 56px; height: 56px; font-size: 28px; top: 2rem; right: 2rem; }
}
@media (max-width: 767px) {
    #image-modal .image-modal-content { max-width: calc(100vw - 1.5rem); max-height: calc(100vh - 6rem); gap: 0.75rem; }
    #image-modal .image-modal-content img { max-width: calc(100vw - 1.5rem); max-height: calc(100vh - 9rem); }
    #image-modal .image-modal-caption { font-size: 0.9375rem; }
}

/* GSAP 초기화 보정 */
.product-page .gsap-fade-up { will-change: transform, opacity; }

/* 메인페이지 패딩 제거 헬퍼 */
.is-index .at-body { padding-top: 0 !important; }