/* --- 1. 전역 스타일 --- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { background: #000; color: #fff; font-family: 'Pretendard', sans-serif; margin: 0; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1200px; margin: 60px auto; padding: 0 5%; }

/* --- 2. 헤더 (공통) --- */
header { display: flex; justify-content: space-between; align-items: center; padding: 2rem 5%; border-bottom: 1px solid #111; position: relative; z-index: 100; }
.logo { font-size: 1.2rem; font-weight: 800; letter-spacing: 4px; }
nav ul { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }
nav a { color: #555; font-size: 0.85rem; }
nav a:hover { color: #fff; }

/* --- 3. 홈 화면 전용 --- */
.home-body { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.hero-section { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); }
.hero-content { z-index: 10; padding: 20px; }
.main-title { font-size: 4rem; font-weight: 200; letter-spacing: 15px; margin-bottom: 10px; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; margin-top: 40px; }
.btn-outline, .btn-white { padding: 15px 35px; font-size: 0.8rem; letter-spacing: 2px; cursor: pointer; transition: 0.3s; }
.btn-outline { border: 1px solid #fff; color: #fff; background: none; }
.btn-outline:hover { background: #fff; color: #000; }
.btn-white { background: #fff; color: #000; font-weight: bold; border: 1px solid #fff; }
.btn-white:hover { background: #d4a373; border-color: #d4a373; color: #fff; }

/* --- 4. 앨범 & 갤러리 그리드 --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; }
.img-wrapper { overflow: hidden; background: #0a0a0a; position: relative; }
.album-cover, .gallery-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: 0.6s; cursor: pointer; display: block; }
.album-card:hover .album-cover, .gallery-img:hover { transform: scale(1.03); filter: brightness(0.8); }

.photo-info, .album-info { margin-top: 15px; }
.photo-tags { display: flex; gap: 8px; margin-top: 5px; }
.tag { font-size: 0.65rem; color: #444; letter-spacing: 1px; }

/* --- 5. 쇼핑 상세 & 주문 폼 --- */
.detail-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }
.order-box { background: #0a0a0a; padding: 40px; border: 1px solid #1a1a1a; }
.order-box label { display: block; font-size: 0.7rem; color: #555; margin-bottom: 8px; font-weight: 600; text-transform: uppercase; }
.order-box input, .order-box select { width: 100%; padding: 15px; background: #111; border: 1px solid #222; color: #fff; margin-bottom: 25px; border-radius: 0; font-family: inherit; }
.buy-btn { width: 100%; padding: 20px; background: #fff; color: #000; border: none; font-weight: 800; cursor: pointer; transition: 0.4s; letter-spacing: 2px; }
.buy-btn:hover { background: #d4a373; color: #fff; }

/* --- 6. 모달 --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); align-items: center; justify-content: center; flex-direction: column; }
.modal-content { max-width: 90%; max-height: 75vh; object-fit: contain; }
.close { position: absolute; top: 20px; right: 30px; font-size: 40px; color: #fff; cursor: pointer; }

/* --- 7. 푸터 (복구 완료) --- */
/* 푸터 관련 스타일 확인 */
footer {
    border-top: 1px solid #111;
    padding: 80px 5% 50px;
    margin-top: 100px; /* 갤러리 그리드와 푸터 사이 공간 확보 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 2px;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.65rem;
    color: #333;
    letter-spacing: 1px;
}

/* 앨범 정보 텍스트 정렬 */
.album-info h3 {
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 20px;
    letter-spacing: 2px;
}

/* --- 8. 모바일 최적화 (iPhone 15 Pro Max) --- */
@media (max-width: 768px) {
    header { flex-direction: column !important; padding: 1.5rem 0 1rem !important; gap: 10px !important; }
    .logo a { font-size: 1rem !important; letter-spacing: 5px !important; }
    nav ul { gap: 5px !important; }
    nav a { font-size: 0.95rem !important; padding: 10px 15px !important; color: #fff !important; }

    .grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    
    /* 쇼핑 상세정보 세로 배치 */
    .detail-content { display: flex !important; flex-direction: column !important; gap: 40px !important; }
    .order-box { padding: 30px 20px !important; width: 100% !important; }
    .order-box input { padding: 18px !important; font-size: 1rem !important; }

    .main-title { font-size: 2.2rem !important; letter-spacing: 8px !important; }
    .cta-buttons { flex-direction: column; width: 250px; margin: 40px auto 0; }
    
    footer { padding: 50px 5% 30px !important; margin-top: 50px !important; }

    .photo-tags { display: none !important; }
    .photo-meta { display: block !important; color: #444 !important; font-size: 0.7rem !important; letter-spacing: 0.5px; text-align: left !important; }
    .photo-info { display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; padding: 4px 0 20px !important; gap : 4px !important; }
    .photo-title { color: #ffffff !important; font-size: 0.9rem !important; font-weight: 400; letter-spacing: 0.5px; text-align: left !important; line-height: 1.2;}
}

/* 다른 건 다 지우고, 이 뒤로가기 버튼 스타일만 남겨두세요 */
.back-btn-container {
    grid-column: 1 / -1;
    margin-bottom: 50px;
    display: flex;
}

.back-btn {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 30px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.back-btn:hover { background: #fff; color: #000; }