/* 전체 스타일 초기화 */
body {
    margin: 0;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    background-color: #f9f9f9;
}

.product-detail {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 상단 영역: 이미지 + 주요스펙 나란히 배치 */
.top-section {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 40px;
}

/* 슬라이더 */
.slider-container {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 20px;
    padding: 6px 10px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
}

.slider:hover .prev,
.slider:hover .next {
    opacity: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #333;
}

/* 주요 정보 섹션 */
.info-section {
    flex: 1;
}

.info-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.info-section ul {
    list-style: disc;
    margin-left: 20px;
    line-height: 1.7;
}

/* 상세 테이블 */
.product-table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
}

.product-table th,
.product-table td {
    border: 1px solid #ccc;
    padding: 12px 15px;
    text-align: left;
}

.product-table th {
    background-color: #f1f1f1;
    width: 180px;
    font-weight: bold;
}

/* 상세 설명 */
.description-block {
    margin-top: 40px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    line-height: 1.7;
}

/* 첨부파일 / 링크 영역 분리 카드형 */
.attachments, .links {
    margin-top: 30px;
    padding: 15px 20px;
    border: 1px solid #ddd;
    background-color: #fdfdfd;
    border-radius: 8px;
}

.attachments div, .links div {
    margin-bottom: 10px;
    font-size: 14px;
}

.attachments a, .links a {
    font-weight: bold;
    color: #1e66c9;
    text-decoration: none;
}

.attachments a:hover, .links a:hover {
    text-decoration: underline;
}
