/* 메인,서브 디자인 공통용 */

/* 
 * GitHub Repository Phishing Alert Appeal & Project Verification
이 페이지는 깃허브에서 발생한 피싱 경고 오탐지(False Positive)를 해명하고, 해당 코드가 순수한 학습 및 포트폴리오용임을 증명하기 위해 작성되었습니다.
This CSS is part of a student project. 
Any resemblance to real-world commercial sites is purely for design practice.
*/

#wrap {}
#wrap header {position: relative;}
#wrap header #fix_area {z-index: 999;position: fixed;width:100%;}
/* =================================================== (아래) 띠배너 */
#wrap header #fix_area #top_bnr {
    background-color: #000;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 40px;
}

#wrap header #fix_area #top_bnr .bnr_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#wrap header #fix_area #top_bnr .bnr_wrap > * {
    color: #fff;
    font-size: 0.75rem;
}

#wrap header #fix_area #top_bnr .bnr_wrap p {}

#wrap header #fix_area #top_bnr .bnr_wrap p span,
#wrap header #fix_area #top_bnr .bnr_wrap p a {
    color: #fff;
    border-bottom: 1px solid #fff;
    font-weight: 600;
    font-size: 0.75rem;
}

#wrap header #fix_area #top_bnr .bnr_wrap .play_btn {}

#wrap header #fix_area #top_bnr .bnr_wrap .play_btn .prev {}

#wrap header #fix_area #top_bnr .bnr_wrap .play_btn .next {}

#wrap header #fix_area #top_bnr .bnr_wrap .play_btn .toggle-play {}

/* =================================================== (아래) GNB */
#wrap header #fix_area #gnb {
    background:linear-gradient(to bottom,rgba(154, 154, 154, 1) 0%,rgba(255, 255, 255, 0) 100%);
    display:flex;  
    height:85px;
    padding:0 60px;
    top: 0;
    left: 0;
    width: 100%;
    position: relative;
    /* z-index: 999; */
}
#wrap header #fix_area #gnb h1 {
    width:173px;
    height:auto;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    margin-right:105px;
}
#wrap header #fix_area #gnb h1 #logo {}
#wrap header #fix_area #gnb h1 #logo img {width:100%;}

/* =================================================== (아래) 카테고리 */

#wrap header #fix_area #gnb .category {display: flex;
    /* width:100%; */
}
#gnb .category > li {
    position: relative;
}

/* 1depth */
#gnb .category > li > a {
    display: block;
    padding: 30px 20px;
    color: #fff;
    font-weight: 500;
}

/* =================================================== depth 2 */


/* =========================
메가메뉴 (depth2)
========================= */
#gnb .depth2 {
    position: fixed;        
    top: auto;             
    left: 0;                
    width: 100%;           
    height:436px;
    background: #fff;
    padding: 40px 80px;

    display: flex;
    gap: 60px;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* hover 시 노출 */
#gnb .category > li:hover .depth2 {
    opacity: 1;
    visibility: visible;
    /* transform: translateY(0); */
}

/* =========================
   컬럼 (col)
========================= */
#gnb .depth2 .col {
    min-width: 140px;
}

/* =========================
   카테고리 타이틀
========================= */
#gnb .category_title {
    display: block;
    font-weight: 700;
    color: #000;
}

/* =========================
   메뉴 리스트
========================= */
#gnb .menu_list li a,
#gnb .depth2 ul li a {
    display: block;
    color: #555;
    padding-top: 20px;
    transition: color 0.2s;
}

#gnb .menu_list li a:hover,
#gnb .depth2 ul li a:hover {
    color: #000;
}

/* =========================
   이미지 영역
========================= */
#gnb .category_img {
    position: absolute;
    right:40px;      
    /* top: 40px;         */

    display: flex;
    flex-direction: row;
    gap: 15px;
}

#gnb .category_img li a {
    display: block;
}

#gnb .category_img img {
    width: 393px;
    height: 232px;
    object-fit: cover;
    display: block;
}

#gnb .category_img p {
    margin-top: 15px;
    color: #000;
}

/* =========================
   BEST / NEW (첫 컬럼)
========================= */
#gnb .depth2 .col:first-child ul li a {
    font-weight: 600;
    color: #000;
    padding-right: 120px; 
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 20px;
}
#gnb .category a:hover {
    font-weight: 600;
    text-decoration: underline;
}
/* =================================================== (아래) 유저 서비스 */
#wrap header #fix_area #gnb #user_service {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: auto;
}
#wrap header #fix_area #gnb #user_service a {width:35px;}
#wrap header #fix_area #gnb #user_service a img {width: 100%;}


/* =================================================== (아래) GNB 호버 디자인 */
#wrap header #fix_area #gnb:hover {background: #fff; border-bottom:2px solid #d3d3d3;}
#wrap header #fix_area #gnb:hover h1 a img {
    content: url('../images/common/Glossier-Logotype-black.png');
}
#wrap header #fix_area #gnb:hover .category li a {
    color: #000;
}
#wrap header #fix_area #gnb:hover #user_service a:nth-child(1) img {
    content: url('../images/common/search_bk_icon.png');
}
#wrap header #fix_area #gnb:hover #user_service a:nth-child(2) img {
    content: url('../images/common/language_bk_icon.png');
}
#wrap header #fix_area #gnb:hover #user_service a:nth-child(3) img {
    content: url('../images/common/map_bk_icon.png');
}
#wrap header #fix_area #gnb:hover #user_service a:nth-child(4) img {
    content: url('../images/common/person_bk_icon.png');
}
#wrap header #fix_area #gnb:hover #user_service a:nth-child(5) img {
    content: url('../images/common/cart_off_bk_icon.png');
}

/* =================================================== GNB 스크롤 변경 */

/* transition 기본 설정 */
#wrap header #fix_area #gnb {
    transition: background 0.4s ease, border-bottom 0.4s ease;
}

#wrap header #fix_area #gnb h1 a img,
#wrap header #fix_area #gnb #user_service a img {
    transition: content 0s; /* content는 transition 불가 → JS로 처리 */
}

#wrap header #fix_area #gnb .category li a {
    transition: color 0.3s ease;
}

/* .scrolled 클래스 적용 시 hover 스타일과 동일하게 */
#wrap header #fix_area #gnb.scrolled {
    background: #fff;
    border-bottom: 2px solid #d3d3d3;
}

#wrap header #fix_area #gnb.scrolled .category li a {
    color: #000;
}

#wrap header #hero_bnr {
    /* position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* video일 경우 */
    z-index: 1;
    border: none;
    pointer-events: none; /* 클릭 막기 */
}

/* ========================= 푸터  */

#wrap footer {
    background:rgba(143, 7, 29, 0.8);
}
#wrap footer > * {color:#fff;}
.site-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top row: three columns + SNS */
.footer-top {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 60px 200px;
    position: relative;
}

.footer-cols {
    display: flex;
    gap: 70px;
    flex: 1;
}

.footer-col {
    flex: 1;
    border-top: 1px solid #fff;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-col-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    color:#fff;
}

.footer-col-links {
    display: flex;
    gap: 10px;
    
    flex-wrap: wrap;
}

.footer-col-links a,
.footer-col-links span {
    font-size: 12px;
    color: #FFF;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s;
    cursor: pointer;
}
.footer-col-links a:hover,
.footer-col-links span:hover { opacity: .65; }

/* SNS icons (absolute right) */
.footer-sns {
    position: absolute;
    right: 200px;
    bottom: 60px;
    display: flex;
    gap: 15px;
    align-items: center;
    opacity: .7;
}

.footer-sns img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity .2s;
}
.footer-sns img:hover { opacity: .6; }

/* Bottom bar */
.footer-bottom {
    width: 1520px;
    border-top: 1px solid #fff;
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 0 auto;
    padding: 40px 0;
}

.footer-bottom a,
.footer-bottom span {
    font-size: 12px;
    color:#fff;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity .2s;
}
.footer-bottom a:hover,
.footer-bottom span:hover { opacity: .65; }

