@charset "UTF-8";

/*** nav 기본 모바일 사이즈 ***/
/*
* {
  outline: 1px solid red;
}
*/
.nav {
    width: 100%;
    height: 80px;
    background-color: #000;
    position: sticky;
    transition: all 0.2s;
    top: 0;
    z-index: 10;
}

#nav>* {
    float: left;
}

.main_logo {
    width: 243px;
    height: 45px;
    position: absolute;
    left: calc(50% - 121px);
    top: 40px;
    transform: translate(0%, -50%);
    transition: all 0.2s;
    display: block;
}

.main_logo>img {
    width: 100%;
    height: 100%;
}

#mobile_cart {
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 24px;
    right: 0;
    padding: 3px;
    margin: 0 16px;
    cursor: pointer;
    z-index: 10;
}

#mobile_cart>img {
    height: 30px;
    width: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#n_gnb,
#n_lnb {
    position: absolute;
    display: none;
}

#n_gnb>li>p,
#n_lnb>li {
    font-family: 'NanumGothicBold';
}

/* 햄버거 메뉴 */

.hambugi {
    display: block;
    width: 30px;
    height: 25px;
    position: absolute;
    top: 27px;
    margin: 0 16px;
    cursor: pointer;
    z-index: 13;
}

.ham_line1,
.ham_line2,
.ham_line3 {
    background-color: #fff;
    width: 30px;
    height: 3px;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.5s;
}

.ham_line1 {
    top: 0px;
}

.ham_line2 {
    top: calc(50% - 1.5px);
}

.ham_line3 {
    bottom: 0px;
}

.h_click>.ham_line1 {
    top: calc(50% - 1.5px);
    transform: rotate(45deg) scale(1.3);
}

.h_click>.ham_line2 {
    transform: rotateY(90deg);
}

.h_click>.ham_line3 {
    top: calc(50% - 1.5px);
    transform: rotate(-45deg) scale(1.3);
}

.mobile_nav {
    display: block;
    width: calc(((100% - 16px * 5) / 4) * 3 + 16px * 4);
    height: 100vh;
    background-color: #222;
    position: absolute;
    top: 0;
    left: -100%;
    transition: all 0.5s;
    z-index: 11;
    overflow-y: auto;
}

.mobile_nav::-webkit-scrollbar {
    width: 6px;
}

.mobile_nav::-webkit-scrollbar-track {
    background: #222;
}

.mobile_nav::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
    border: 1px solid #444;
}

.mobile_nav::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.mn_click.mobile_nav {
    left: 0;
}

.nav_bgshadow {
    width: 100vw;
    height: 100vh;
    background-color: #0005;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
    cursor: pointer;
    display: none;
}

.mn_click.nav_bgshadow {
    display: block;
}

#m_loginornot {
    font-family: 'NanumGothic';
    color: #fff;
    font-size: 16px;
    position: absolute;
    top: 80px;
    transform: translateY(calc(-100% - 27px));
    right: 16px;
}

#m_loginornot>span {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    vertical-align: top;
}

#mobile_gnb {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 300px;
    gap: 16px;
    margin: 96px auto 0;
}

#mobile_gnb>li>a,
#mobile_gnb>li {
    display: grid;
    place-items: center;
    color: #fff;
    text-align: center;
    font-family: 'NanumGothic';
    line-height: 30px;
    font-size: 16px;
}

.m_gnb_login,
.m_gnb_cart {
    cursor: pointer;
}

#mobile_gnb>li>a>img,
#mobile_gnb>li>img {
    width: auto;
    height: 40px;
}

#mobile_lnb {
    margin: 16px 16px;
}

#mobile_lnb>li {
    background-color: #333;
    margin-bottom: 8px;
    overflow: hidden;
}

#mobile_lnb>li>a {
    display: block;
    padding: 16px;
    color: #fff;
    font-family: 'NanumGothic';
    font-size: 20px;
    line-height: 1.5;
    text-align: left;
    /* ✅ 필요 시 center 또는 right */
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    /* ✅ 패딩 포함해서 100% 차지 */
}

/***************  로그인  ***************/

.login-popup {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
}

.login-content {
    background: #333;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'NanumGothic';
}

.login-content .log_h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.login-content input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #fff;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

#loginSubmit {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.login-links {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.login-links a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.login-social {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social {
    padding: 10px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.google {
    background: #db4437;
    color: #fff;
}

.naver {
    background: #03c75a;
    color: #fff;
}

.kakao {
    background: #fee500;
    color: #000;
}

.login-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/***************  장바구니  ***************/

.cart-popup {
    position: fixed;
    top: 0;
    right: -100%;
    transition: all 0.5s;
    max-width: 400px;
    width: calc(((100% - 16px * 5) / 4) * 3 + 16px * 4);
    height: 100vh;
    background-color: #222;
    z-index: 11;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.cartName {
    position: absolute;
    top: 25px;
    left: 16px;
}

.cartName p {
    font-family: 'NanumGothicBold';
    font-size: 24px;
    color: #fff;
}

.c_click.cart-popup {
    right: -0%;
}

.c_close {
    width: 30px;
    height: 25px;
    position: absolute;
    top: 27px;
    right: 0;
    margin: 0 16px;
    cursor: pointer;
}

.c_line1,
.c_line2,
.c_line3 {
    background-color: #fff;
    width: 30px;
    height: 3px;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.5s;
}

.c_line1 {
    top: calc(50% - 1.5px);
    transform: rotate(45deg) scale(1.3);
}

.c_line2 {
    transform: rotateY(90deg);
}

.c_line3 {
    top: calc(50% - 1.5px);
    transform: rotate(-45deg) scale(1.3);
}

#cartItems {
    flex: 1;
    overflow-y: auto;
    margin: 52px 0 32px;
    padding-right: 16px;
    /* 스크롤 영역 확보 */
}

#cartItems::-webkit-scrollbar {
    width: 8px;
}

#cartItems::-webkit-scrollbar-track {
    background: transparent;
}

#cartItems::-webkit-scrollbar-thumb {
    background-color: #e2e2e2;
    border-radius: 4px;
}

#cartItems::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

#cartItems li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #444;
    font-family: 'NanumGothic';
    font-size: 15px;
    color: #fff;
}

.cart-thumb {
    width: clamp(120px, 30vw, 232px);
    height: clamp(120px, 30vw, 232px);
    object-fit: cover;
    border-radius: 6px;
}

.cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-info span:first-child {
    font-weight: bold;
    line-height: clamp(12px, 3vw, 20px);
    font-size: clamp(10px, 3vw, 16px);
}

.cart-info span:last-child {
    margin-top: 16px;
    font-size: clamp(10px, 3vw, 16px);
    line-height: clamp(10px, 3vw, 16px);
    color: #e2e2e2;
}

#cartItems button {
    background-color: transparent;
    border: none;
    color: #e2e2e2;
    padding: 8px 8px;
    font-family: 'NanumGothic';
    font-size: clamp(12px, 3vw, 20px);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

#cartItems::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 4px;
}

#checkoutBtn {
    margin: 0 16px 32px;
    font-family: 'NanumGothicBold';
    font-size: 20px;
    background-color: #000;
    color: #fff;
    border: none;
}

#checkoutBtn a {
    padding: 12px;
    font-family: 'NanumGothicBold';
    font-size: 20px;
    background-color: #000;
    color: #fff;
    display: block;
}


/*** footer ***/

#m_footer {
    position: relative;
    width: calc(100% - 32px);
    margin: 16px 16px 0;
    font-family: 'NanumGothic', sans-serif;
    box-sizing: border-box;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-left {
    align-items: flex-start;
    position: relative;
    width: calc(50% - 26px);
    padding-bottom: 16px;
}

.footer-right {
    align-items: flex-end;
    width: calc(50% - 26px);
    padding-bottom: 16px;
}

.footer-right>li>a>img {
    height: 16px;
    width: 16px;
}

.footer-left li,
.footer-right li {
    font-size: 16px;
    color: #fff;
}

.footer-left li a,
.footer-right li a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-left .copyright {
    margin-top: 10px;
    font-size: 16px;
    position: static;
    bottom: 0;
}

#footer {
    display: none;
}

/* ✅ 쿠키 팝업 오버레이 */
#cookiePopupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ 팝업 본체 */
#cookiePopup {
    background-color: #222;
    color: #fff;
    width: 90%;
    max-width: 480px;
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.8);
    position: relative;
    text-align: left;
    font-size: 15px;
    line-height: 1.6;
}

/* 제목 */
#cookiePopup h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

/* 버튼 영역 */
.cookieButtons {
    margin-top: 24px;
    text-align: right;
}

/* 버튼 스타일 */
.cookieButtons button {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    margin-left: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cookieButtons button:hover {
    background-color: #666;
}

/* 닫기 버튼 */
.cookieClose {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    cursor: pointer;
}

/* ✅ 쿠키 설정용 토글 UI */
.cookie_toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 15px;
}

.cookie_switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

/* 숨김 체크박스 */
.cookie_switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* 슬라이더 기본 */
.cookie_slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

/* 스위치 원형 */
.cookie_slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* 켜진 상태 */
.cookie_switch input:checked+.cookie_slider {
    background-color: #4caf50;
}

.cookie_switch input:checked+.cookie_slider::before {
    transform: translateX(22px);
}

/* 라운드 스타일 */
.cookie_round {
    border-radius: 34px;
}

.cookie_round::before {
    border-radius: 50%;
}

/************************** 태블릿 **************************/
@media (min-width: 768px) {

    #n_gnb img,
    #footer {
        display: block;
    }

    #n_gnb>li>p,
    #n_gnb>li>a>p {
        display: none;
    }

    .hambugi,
    .mobile_nav,
    #mobile_cart {
        display: none;
    }

    .nav {
        height: 53px;
    }

    .main_logo {
        width: 129px;
        height: 24px;
        top: 50%;
        left: 42px;
        display: block;
    }

    #n_lnb {
        display: flex;
        justify-content: center;
        /* 항목 전체 가운데 정렬 */
        gap: 36px;
        /* 항목 사이 간격 */
        flex-wrap: wrap;
        width: calc((100vw - 84px) - (((100vw - 84px - 140px) / 8 * 3) + 40px));
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #n_lnb>li {
        height: 42px;
        font-size: clamp(0.8rem, 1.5vw, 1.25rem);
    }

    #n_lnb>li>a {
        display: flex;
        /* inline-block → flex */
        justify-content: center;
        /* 가로 중앙 정렬 */
        align-items: center;
        /* 세로 중앙 정렬 ✅ */
        height: 100%;
        /* 수직 기준 높이 지정 */
        color: #fff;
        text-align: center;
        word-break: keep-all;
        white-space: nowrap;
    }

    #n_gnb {
        display: grid;
        height: 53px;
        top: 50%;
        transform: translate(-100%, -50%);
        left: calc(100vw - 42px);
        grid-auto-flow: column;
        column-gap: 30px;
        align-items: center;
    }

    #loginbtn {
        cursor: pointer;
    }

    #cartbtn {
        cursor: pointer;
    }

    #n_gnb img {
        width: 20px;
        height: 20px;
        display: block;
    }

    #footer {
        position: relative;
        padding: 0 42px;
        width: calc(100% - 84px);
        background: #000;
        color: #fff;
    }

    .footer-up {
        display: flex;
        justify-content: left;
        /* 항목 전체 가운데 정렬 */
        column-gap: 120px;
        /* 항목 사이 간격 */
        flex-wrap: wrap;
        padding-top: 25px;
        font-size: 1.25rem;
        font-family: 'NanumGothicBold';
    }

    .footer-up>li {}

    .footer-up>li>a {
        display: block;
        color: #fff;
    }

    .footer-down {
        display: flex;
        justify-content: left;
        /* 항목 전체 가운데 정렬 */
        column-gap: 30px;
        /* 항목 사이 간격 */
        flex-wrap: wrap;
        padding: 50px 0 25px;
        font-size: 1rem;
        font-family: 'NanumGothic', sans-serif;
    }

    .footer-down>li>a {
        display: block;
        color: #fff;
    }

    p.copyright {
        position: absolute;
        right: 42px;
        bottom: 25px;
    }

}


/************************** PC **************************/
@media (min-width: 1024px) {
    #n_gnb img {
        display: none;
    }

    #n_gnb>li>p {
        display: block;
        color: #fff;
        font-size: clamp(1rem, 1.5vw, 2rem);
    }

    #n_gnb>li>a {
        position: relative;
    }

    #n_gnb>li>a>p {
        display: block;
        color: #fff;
        position: relative;
        top: 1px;
        font-size: clamp(1rem, 1.5vw, 2rem);
    }

    .nav {
        height: 100px;
    }

    .main_logo {
        width: clamp(129px, calc(11.25vw - 46px), 243px);
        left: 120px;
        height: clamp(24px, calc(0.0234375vw * 100), 45px);
        display: block;
    }

    #n_lnb {
        gap: calc(12px, 2vw, 60px);
        left: 48%;
    }

    #n_lnb>li {
        font-size: clamp(1rem, 1.5vw, 1.5rem);
    }

    #n_gnb {
        left: calc(100% - 120px);
        column-gap: clamp(1rem, 1.5vw, 1.5rem);
        font-size: clamp(16px, 1.67vw, 32px);
    }

    #footer {
        padding: 0 120px;
        width: calc(100% - 240px);
    }

    p.copyright {
        position: absolute;
        right: 120px;
        bottom: 25px;
    }
}