/* ===== 1. 제품 정보 섹션 ===== */
/* 탭 네비게이션 */
.product-info-tabs {
    display: flex;
    border-bottom: 2px solid #002367;
    margin-bottom: 20px;
}

.product-info-tabs .tab-item {
    padding: 10px 20px;
    cursor: pointer;
    color: #666;
    background: #f5f5f5;
    border: none;
}

.product-info-tabs .tab-item.active {
    background: #002367;
    color: white;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: #495057;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}

.tab-button.active {
    color: #002367;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #002367;
}

/* 기본 정보 컨테이너 */
.product-info-wrapper,
.product-features-wrapper,
.product-description-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    overflow: hidden;
}

/* 섹션 헤더 */
.product-info-header,
.features-header,
.description-header {
    background: #f8f9fa;
    padding: 16px 24px;
    border-bottom: 1px solid #dee2e6;
}

.info-title {
    font-size: 1.25rem;
    color: #212529;
    margin: 0;
    font-weight: 600;
}

/* 섹션 콘텐츠 */
.product-info-content,
.features-content,
.description-content {
    padding: 24px;
}

/* 정보 그리드 */
.info-group {
    display: grid;
    grid-template-columns: 100px 1fr;
    margin-bottom: 12px;
    align-items: center;
}

.info-label {
    color: #6c757d;
    font-weight: 500;
}

.info-value {
    color: #212529;
}

/* ===== 2. 기술 파라미터 테이블 ===== */
.technical-params {
    margin: 30px 0;
    font-family: var(--bs-body-font-family);
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 기본 테이블 스타일 */
.technical-params table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
}

/* 테이블 셀 공통 */
.technical-params th,
.technical-params td {
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    vertical-align: middle;
    text-align: center;
    background-color: #ffffff;
}

/* 4개 초과 헤더 테이블 - 가로 스크롤 유지 */
.technical-params:not(.simple-table) table {
    min-width: 800px;
}

/* 4개 이하 헤더 테이블 반응형 처리 */
.technical-params.simple-table {
    overflow-x: visible; /* 가로 스크롤 제거 */
}

.technical-params:not(.simple-table) th,
.technical-params:not(.simple-table) td {
    white-space: nowrap !important;
}

/* 테이블 헤더 */
.technical-params thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* 첫 번째 열 고정 */
.technical-params th.fixed-column,
.technical-params td.fixed-column {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: #f8f9fa;
    border-right: 2px solid #dee2e6;
    text-align: left;
    font-weight: normal;
    min-width: 200px;
}

.technical-params thead th.fixed-column {
    z-index: 3;
}

/* 줄무늬 스타일 - 모든 테이블에 적용 */
.technical-params tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.technical-params tbody tr:nth-child(even) td {
    background-color: inherit;
}
.technical-params thead th.fixed-column {
    z-index: 3;
}

/* ===== 3. 비디오 섹션 ===== */
.product-video-section {
    margin-top: 30px;
}

.video-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 비디오 헤더 */
.video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 16px 24px;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
}

/* 토글 버튼 */
.video-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    color: #002367;
}

.video-toggle i {
    transition: transform 0.3s ease;
    transform: rotate(180deg);
}

.video-content.collapsed + .video-header .video-toggle i {
    transform: rotate(0deg);
}

/* 비디오 콘텐츠 */
.video-content {
    transition: all 0.3s ease-in-out;
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    padding: 24px;
}

.video-content.collapsed {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0;
}

/* 비디오 컨테이너 */
/* 기존 단일 비디오 스타일 */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 2단 분할 레이아웃을 위한 추가 스타일 */
.main-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin-bottom: 20px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.main-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-thumbnails {
    margin-top: 20px;
    padding: 0 30px;
}

.thumbnail-slider {
    position: relative;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    padding-top: 56.25%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.video-thumbnail:hover {
    border-color: #002367;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-thumbnail:hover img {
    transform: scale(1.05);
}

.thumbnail-active {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #002367;
    border-radius: 6px;
    pointer-events: none;
}
.video-number {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 35, 103, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
}
/* 커스텀 네비게이션 버튼 */
.custom-nav-button {
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 35, 103, 0.8) !important;
    border-radius: 50%;
    color: white !important;
}

.custom-nav-button::after {
    font-size: 20px !important;
}

.custom-nav-button:hover {
    background: rgba(0, 35, 103, 1) !important;
}

/* 페이지네이션 스타일 */
.thumbnail-slider .swiper-pagination {
    position: relative;
    margin-top: 15px;
}

.thumbnail-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.thumbnail-slider .swiper-pagination-bullet-active {
    background: #002367;
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* 비디오 섹션 헤더 개선 */
.video-header {
    background: #f8f9fa;
    padding: 16px 24px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-header .info-title {
    margin: 0;
    font-size: 1.25rem;
    color: #002367;
}

/* ===== 4. 특징 리스트 ===== */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: #495057;
}

.features-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0d6efd;
}


/* 4개 이하 헤더 테이블 반응형 처리 */
.technical-params.simple-table table {
    min-width: unset; /* 최소 너비 제거 */
    width: 100%;
}
/* ===== 5. 반응형 스타일 ===== */
@media (max-width: 1024px) {
    .technical-params {
        margin: 20px 0;
    }

    .table-responsive {
        border: 0;
    }

    .technical-params th.fixed-column,
    .technical-params td.fixed-column {
        background-color: #f8f9fa;
    }
}

.technical-params.simple-table th,
.technical-params.simple-table td {
    white-space: normal; /* 텍스트 줄바꿈 허용 */
}


/* 샘플 섹션 기본 스타일 */
.sample-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.sample-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: #313030;
}

.sample-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 샘플 아이템 스타일 */
.sample-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sample-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 이미지 컨테이너 - 4:3 비율 유지 */
.sample-item .image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 비율 */
    overflow: hidden;
}

.sample-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sample-item:hover img {
    transform: scale(1.05);
}

/* 캡션 스타일 */
.sample-caption {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    color: #313030;
    font-weight: 500;
    background: #fff;
}

/* Swiper 슬라이더 커스텀 스타일 */
.sample-slider {
    padding: 20px 5px 40px;
}

.sample-slider .swiper-pagination {
    bottom: 0;
}

.sample-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.sample-slider .swiper-pagination-bullet-active {
    background: #002367;
}

.sample-slider .swiper-button-next,
.sample-slider .swiper-button-prev {
    color: #002367;
}


@media (max-width: 768px) {
    /* 테이블 */
    /* 기본 테이블 스타일 */
    .technical-params th,
    .technical-params td {
        padding: 8px 12px;
        font-size: 14px;
    }

    .technical-params th.fixed-column,
    .technical-params td.fixed-column {
        min-width: 180px;
    }



    .technical-params.simple-table th,
    .technical-params.simple-table td {
        padding: 8px;
        font-size: 14px;
        word-break: keep-all; /* 단어 단위 줄바꿈 */
        word-wrap: break-word; /* 긴 단어 줄바꿈 */
    }

    /* 고정 열 해제 */
    .technical-params.simple-table th.fixed-column,
    .technical-params.simple-table td.fixed-column {
        position: static;
        min-width: unset;
        width: auto;
    }

    /* 정보 섹션 */
    .product-info-content,
    .features-content,
    .description-content,
    .video-content:not(.collapsed) {
        padding: 16px;
    }

    .info-group {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    /* 비디오 섹션 */
    .product-video-section {
        margin-top: 20px;
    }

    .video-thumbnails {
        padding: 0 20px;
    }

    .sample-section {
        padding: 40px 0;
    }

    .sample-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .sample-caption {
        font-size: 14px;
        padding: 12px;
    }
    .video-number {
        font-size: 10px;
        padding: 2px 6px;
    }
    .custom-nav-button {
        width: 32px !important;
        height: 32px !important;
    }

    .custom-nav-button::after {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .technical-params th,
    .technical-params td {
        padding: 6px 8px;
        font-size: 13px;
    }

    .technical-params th.fixed-column,
    .technical-params td.fixed-column {
        min-width: 150px;
    }
    .technical-params.simple-table th,
    .technical-params.simple-table td {
        padding: 6px;
        font-size: 12px;
    }
    .sample-section {
        padding: 30px 0;
    }
    .sample-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .video-thumbnails {
        padding: 0 15px;
    }
}

/* ===== 6. 유틸리티 스타일 ===== */
/* 스크롤바 스타일 */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
}