/* --- 상세 페이지 레이아웃 --- */
/* (이전에 .detail-page-container였던 공통 래퍼) */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* 상단 헤더 (셀럽 정보) */
.detail-header-meta {
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center; /* 가로 중앙 정렬 */
    gap: 5px; /* [수정] 좁은 세로 간격 */
    margin-top: 0;
    margin-bottom: 30px;
}

.celeb-profile {
    display: flex;
    align-items: center;
}

.celeb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.metadata {
    display: flex; /* 4. [추가] 자식 요소(출처, 조회수)들을 가로로 배치 */
    align-items: center;
    gap: 15px; /* 5. [추가] 출처와 조회수 사이의 간격 */

    font-size: 0.9em;
    color: #b3b3b3;
}

.view-count {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    color: #b3b3b3;
}

.icon-eye { /* (SVG 눈 아이콘) */
    width: 18px;
    height: 18px;
    margin-right: 5px;
    background-color: #b3b3b3;
    -webkit-mask: url("data:image/svg+xml,...") no-repeat center;
    mask: url("data:image/svg+xml,...") no-repeat center;
    -webkit-mask-size: cover;
    mask-size: cover;
}

/* 하단 2단 레이아웃 (이미지, 아이템 목록) */
.detail-body {
    display: flex;
    gap: 50px;
}

.image-section {
    flex: 1.2;
    position: relative; /* 찜하기 버튼 기준점 */
}

/* [핵심] 상세 페이지 이미지 (고정) */
.page-container .main-content-image {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 3 / 4; /* 비율 고정 */
    object-fit: cover;
    position: sticky; /* 스크롤 시 상단 고정 */
    top: 20px;
}

.main-content header h1 {
    font-size: 2.0em; /* (2.5em -> 2.0em) 또는 원하시는 1.8em 등으로 수정 */

    /* (선택) 상세 페이지에서는 제목이 길어도 줄바꿈되도록 허용 */
    white-space: normal;
    max-width: 100%;
    text-align: center;
}

/* [추가] 상세 페이지 전용 찜하기 버튼 */
.image-section .like-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #555;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    transition: all 0.2s ease;
    z-index: 10;
}

.image-section:hover .like-button {
    opacity: 1;
}

.image-section .like-button:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

.image-section .like-button.active .icon-heart {
    background-image: url("data:image/svg+xml,..."); /* (빨간 하트 SVG) */
}


/* --- (이하 아이템 목록 스타일) --- */
.items-section {
    flex: 1;
}

.items-section h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
    color: white;
}

.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-card {
    display: flex;
    align-items: center;
    background-color: #1c1c1c;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #282828;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.item-info {
    flex-grow: 1;
}

.item-info p {
    margin: 0;
    line-height: 1.4;
}

.item-brand {
    font-size: 0.9em;
    color: #b3b3b3;
}

.item-name {
    font-size: 1.1em;
    font-weight: 500;
    color: white;
}

.btn-purchase {
    text-decoration: none;
    padding: 8px 16px;
    background-color: #1db954;
    color: white;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.btn-purchase:hover {
    background-color: #1ed760;
}

.content-summary {
    margin-top: 40px;
    padding: 2rem;
    background-color: #1c1c1c;
    border: 1px solid #282828;
    border-radius: 12px;
    line-height: 1.7;
    color: #e0e0e0;
}

.view-count {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    color: #b3b3b3;
}

/* [핵심] SVG 눈 아이콘 */
.icon-eye {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    background-color: #b3b3b3; /* 아이콘 색상 */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: cover;
    mask-size: cover;
}

.metadata .btn-outline {
    text-decoration: none;
    color: #b3b3b3;
    border: 1px solid #555;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 500;
    margin-left: 15px;
    transition: background-color 0.2s, color 0.2s;
}

.metadata .btn-outline:hover {
    background-color: #333;
    color: white;
}

/* (선택) 외부 링크 아이콘 (SVG) */
.btn-outline .icon-external-link {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    background-color: #b3b3b3;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
}

.btn-outline:hover .icon-external-link {
    background-color: white;
}

