/* 현재 CSS 코드들 (변경 없음) */
.cus-product-container {
    display: flex;
    align-items: stretch;
    padding-top: 5%;
}

.cus-product-image-section {
    width: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 20%;
}

.cus-product-main-image {
    position: relative;
    height: auto; 
    max-height: 500px; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cus-product-main-image img {
    width: auto; 
    height: 100%; 
    object-fit: contain;
    display: block;
}

.cus-product-thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.cus-product-thumbnail-images img.cus-thumb {
    width: 80px;
    height: auto;
    cursor: pointer;
    opacity: 0.7;
}

.cus-product-thumbnail-images img.cus-thumb:hover,
.cus-product-thumbnail-images img.cus-thumb.active {
    opacity: 1;
}

.cus-product-details {
    width: 50%;
    box-sizing: border-box;
}

.cus-product-details h5 {
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 5px;
}

/* 반응형 디자인 적용 */
@media screen and (max-width: 768px) {
    .cus-product-container {
        flex-direction: column; /* 상하로 쌓이도록 변경 */
    }

    .cus-product-image-section, 
    .cus-product-details {
        width: 100%; /* 섹션이 전체 너비를 차지하도록 변경 */
    }

    .cus-product-main-image {
        max-height: none;
    }

    .cus-product-main-image img {
        width: 100%; 
        height: auto; 
        object-fit: contain;
    }

    .cus-product-thumbnail-images img.cus-thumb {
        width: 60px; /* 모바일 환경에 맞게 썸네일 크기 조정 */
    }
}



/* 기타 기존 CSS 코드들 (변경 없음) */

.column {
    max-width: 600px;
    padding: 16px;
    border: 1px solid #46AAFF;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.product-list-text-box {
    border-bottom: 1px solid #46AAFF;
}

.column div:last-child .product-list-text-box {
    border-bottom: none;
}

.product-list-text-box cdl {
    display: flex;
    justify-content: space-between;
}

.product-list-text-box cdl cdt {
    text-wrap: balance;
    font-weight: 600;
    font-size: 18px;
    margin-right: 20px;
    color: #000;
    margin-top: 8px;
    margin-bottom: 8px;
}

.product-list-text-box cdl cdd {
    margin: 0;
    line-height: 1.7;
    text-wrap: nowrap;
    margin-top: 8px;
    margin-bottom: 8px;
}

dl dd {
    font-size: 16px;
    line-height: 1.2;
}

.cus-product-specs {
    width: 100%;
    max-width: 800px;
    margin-top: 10px;
    margin-bottom: 20px;
    gap: 6px;
    border-collapse: collapse;
    box-shadow: 0 0 0 1px #46AAFF;
    border-radius: 8px; 
}

.cus-product-specs th {
    padding: 8px 16px; 
    text-align: left;
    border: none; 
    border-bottom: 1px solid #46AAFF;
}

.cus-product-specs td {
    padding: 8px 16px; 
    text-align: right;
    border: none; 
    border-bottom: 1px solid #46AAFF;
}

.cus-product-specs tr:last-child th, 
.cus-product-specs tr:last-child td {
    border-bottom: none;
}

.cus-prev-btn, .cus-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.cus-prev-btn {
    left: 10px;
}

.cus-next-btn {
    right: 10px;
}

.cus-product-description {
    margin-top: 5%;
}

.cus-product-description .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cus-product-description-title {
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 800 !important;
}

.cus-product-description-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.cus-product-description-content h3 {
    font-size: 20px;
    flex: 0 0 auto;
    max-width: 150px;
    font-weight: 600 !important;
    text-transform: none;
}

.cus-product-description-content p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 1000px;
    font-weight: 300 !important;
}

.cus-product-description-images {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.cus-product-description-images img {
    width: calc(50% - 10px);
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cus-product-description-images2 {
    display: grid;
    gap: 15px; 
    margin-bottom: 5%;
}

.cus-product-description-images2 img {
    width: 100%; 
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 모달 기본 스타일 */
.cus-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

/* 모달 콘텐츠 (이미지) 스타일 */
.cus-modal-content {
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 모달 닫기 버튼 스타일 */
.cus-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.cus-modal-close:hover,
.cus-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}