@charset "utf-8";

:root {
    --bg-paper: #f2eee5; 
    --accent-brown: #4a443f;   
    --point-blue: #1e3799;
    --text-main: #2d2926;
    --card-shadow: 0 15px 35px rgba(0,0,0,0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    background-color: var(--bg-paper); 
    font-family: 'Noto Sans KR', sans-serif; 
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
}

/* [1. 상단 메뉴] */
.top-frame {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 120px;
    background: rgba(242, 238, 229, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.08); 
    z-index: 9999;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.header-inner { 
    width: 100%;
    max-width: 1200px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 20px;
}

.logo img { height: 70px; display: block; }

.nav { display: flex; gap: 45px; list-style: none; }
.nav-item { position: relative; display: flex; align-items: center; height: 120px; }
.nav-item > a { 
    text-decoration: none; color: var(--text-main); font-weight: 700; 
    font-family: 'Montserrat'; font-size: 17px; transition: 0.3s;
}
.nav-item:hover > a { color: var(--point-blue); }

.sub-menu {
    position: absolute; top: 110px; left: 50%; transform: translateX(-50%);
    background: #fff; width: 190px; border-radius: 10px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden; transition: 0.3s;
    padding: 10px 0; z-index: 10001;
}
.nav-item:hover .sub-menu { opacity: 1; visibility: visible; }
.sub-menu a { 
    display: block; padding: 10px; font-size: 14px; color: #555; 
    text-decoration: none; text-align: center; 
}
.sub-menu a:hover { background: #f9f7f2; color: var(--point-blue); font-weight: 700; }

/* [2. 메인 레이아웃] */
.container { 
    width: 100%;
    max-width: 1200px; 
    margin: 180px auto 0; 
    display: flex; 
    gap: 60px; 
    padding: 0 20px 120px; 
}

.side-wrapper { width: 240px; position: sticky; top: 180px; height: fit-content; flex-shrink: 0; }
.side-card { 
    background: #fff; padding: 50px 25px; border-radius: 50px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.05); text-align: center; 
}
.side-card h2 { 
    font-family: 'Montserrat'; font-weight: 900; font-size: 32px; 
    color: var(--point-blue); line-height: 1.1; margin-bottom: 35px; 
}
.side-nav a { 
    display: block; padding: 16px 0; text-decoration: none; color: #bbb; 
    font-size: 16px; font-weight: 700; border-radius: 15px; 
    background: #fcfcfc; transition: 0.4s; margin-bottom: 10px; 
}
.side-nav a:hover { background: var(--point-blue); color: #fff; transform: translateY(-3px); }

/* [3. 본문 상세 페이지] */
.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.page-title { font-family: 'Montserrat'; font-weight: 900; font-size: 45px; color: #d1cdc0; margin-bottom: 30px; }

.product-detail-card { 
    background: #fff; border-radius: 40px; padding: 50px; 
    display: flex; gap: 50px; box-shadow: var(--card-shadow); 
    margin-bottom: 40px; align-items: flex-start;
}
.detail-img-area { flex: 1.3; }
.product-name { font-size: 28px; font-weight: 700; margin-bottom: 20px; color: var(--accent-brown); }
.detail-img-area img { width: 100%; border-radius: 20px; display: block; }

.detail-spec-area { flex: 1; }
.spec-title { 
    font-size: 18px; font-weight: 900; color: var(--point-blue); 
    margin-top: 60px; margin-bottom: 20px; 
    border-bottom: 2px solid var(--point-blue); display: inline-block; 
}
.spec-list li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; color: #555; list-style: none; }
.spec-list li b { color: #222; margin-right: 10px; }

/* [4. BACK & 화살표] */
.back-link-wrapper { 
    display: flex; align-items: center; justify-content: flex-start; 
    margin: 60px 0 80px 0; text-decoration: none; gap: 70px; width: fit-content; 
}
.back-title { 
    color: var(--point-blue); font-family: 'Montserrat'; font-weight: 900; 
    font-size: 55px; line-height: 1; transition: 0.3s; 
}
.back-link-wrapper:hover .back-title { transform: translateX(-10px); }

.mega-arrow { 
    position: relative; width: 300px; height: 80px; 
    display: flex; align-items: center; transform: translateY(2px); 
}
.mega-arrow::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 45px; height: 45px;
    border-left: 12px solid var(--point-blue); border-bottom: 12px solid var(--point-blue);
    transform: translateY(-80%) rotate(45deg); z-index: 10;
}
.mega-arrow::after {
    content: ''; position: absolute; left: 35px; top: 50%; width: 250px; height: 44px; 
    background-color: var(--point-blue); transform: translateY(-88%); z-index: 5;
    clip-path: path('M 0 0 L 230 0 C 215 10, 215 32, 230 42 L 0 42 Z');
    background-image: 
        repeating-linear-gradient(90deg, transparent 0, transparent 37px, var(--bg-paper) 37px, var(--bg-paper) 40px),
        repeating-linear-gradient(90deg, rgba(255, 225, 220, 0.3) 0px, rgba(255, 225, 220, 0.3) 20px, transparent 20px, transparent 40px);
    background-size: 250px 100%, 500px 100%; background-repeat: no-repeat;
    background-position: 0 0, 250px 0; animation: boxLightFlow 4s infinite linear;
}
@keyframes boxLightFlow { 0% { background-position: 0 0, 250px 0; } 100% { background-position: 0 0, -250px 0; } }

/* [5. 비디오 섹션] */
.video-section { 
    background: #fff; padding: 40px; border-radius: 40px; 
    box-shadow: var(--card-shadow); text-align: center;
    width: 580px; margin: 40px auto; 
}
.video-section h3 { 
    color: var(--accent-brown); font-family: 'Montserrat'; 
    margin-bottom: 25px; font-size: 20px; font-weight: 700; 
}
.video-box { 
    width: 500px !important; height: 400px !important; 
    margin: 0 auto; border-radius: 25px; overflow: hidden; background: #000;
    display: flex; align-items: center; justify-content: center;
}
video { width: 100%; height: 100%; object-fit: fill; display: block; }

/* [6. 푸터] */
footer { width: 100%; padding: 80px 20px; border-top: none; text-align: center; }
.footer-inner img { max-width: 1050px; width: 100%; height: auto; display: inline-block; background-color: transparent;}

/* [반응형 스테이지 추가] */
@media (max-width: 1024px) {
    .container { flex-direction: column; margin-top: 150px; gap: 40px; }
    .side-wrapper { width: 100%; position: static; }
    .side-card { padding: 30px 20px; border-radius: 30px; }
    .side-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .side-nav a { flex: 1 1 calc(33.33% - 10px); margin-bottom: 0; font-size: 14px; }
    
    .product-detail-card { flex-direction: column; padding: 30px; gap: 30px; }
    .detail-img-area, .detail-spec-area { width: 100%; }
    .spec-title { margin-top: 20px; }
    
    .video-section { width: 100%; padding: 20px; }
    .video-box { width: 100% !important; height: auto !important; aspect-ratio: 5/4; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .top-frame { height: 80px; }
    .logo img { height: 45px; }
    .container { margin-top: 110px; }
    .page-title { font-size: 32px; text-align: center; }
    .side-nav a { flex: 1 1 calc(50% - 10px); }
    .back-link-wrapper { gap: 20px; width: 100%; justify-content: center; }
    .back-title { font-size: 35px; }
    .mega-arrow { width: 150px; }
    .mega-arrow::after { width: 120px; }
}

@media (max-width: 480px) {
    .side-nav a { flex: 1 1 100%; }
    .product-name { font-size: 22px; }
    .spec-list li { font-size: 13px; }
}