/*******************************************************
레이아웃 :: 헤더 영역
*******************************************************/
#site-header { position: fixed; z-index: 999; width: 100vw; padding: 0 60px; color: #fff; transition: all .3s; } 
#site-header.sub-header { position: static; } 
#site-header .site-header__inner { align-items: normal; justify-content: space-between; padding: 20px 0; } 
#site-header.sub-header.is-active { position: fixed; left: 0; top: 0; width: 100%; } 

/* 로고 */
.site-header__logo a { overflow: hidden; display: block; position: relative; width: 210px; height: 40px; } 
.site-header__logo a img { position: absolute; top: 0; left: 0; transition: all .3s; } 

/* gnb */
.site-header__main { display: flex; gap: 60px; } 
.site-header__navigation .inner { gap: 30px; height: 100%; } 
.site-header__menu { gap: 60px; } 
.site-header__menu li a { font-size: 20px; font-style: normal; font-weight: 600; line-height: normal; transition: all .3s; } 
.site-header__menu li a:hover { color: var(--point-color); } 

/* 유틸 */
.site-header__utility,
.site-header__user-menu { gap: 26px; } 
.site-header__user-menu-wrap { gap: 20px; } 
.site-header__user-menu-wrap a { display: flex; gap: 4px; align-items: center; font-size: 16px; font-weight: 400; line-height: normal; transition: all .3s; } 
.site-header__user-menu a:hover { opacity: 0.8; } 
.site-header__cart-count { display: inline-block; padding: 4px 8px; border-radius: 99px; background-color: #fff; font-size: 14px; font-weight: 500; line-height: 100%; color: var(--point-color); transition: all .3s; } 
.site-header__guest-order-link { padding: 8px 12px; border-radius: 4px; font-size: 14px; font-weight: 500; line-height: normal; color: var(--gray-black); background-color: #fff; } 

/* 검색 */
.site-header__search-icon { display: flex; position: relative; width: 24px; height: 24px; } 
.site-header__search-icon img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } 
.site-header__search-toggle { display: flex; justify-content: space-between; align-items: center; gap: 5px; min-width: 160px; padding: 8px 12px; border-radius: 4px; background-color: rgba(255, 255, 255, 0.16); box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10); } 
.site-header__search-label { font-size: 14px; font-style: normal; font-weight: 500; line-height: 150%; color: rgba(255, 255, 255, 0.80); } 
.search-panel__form input { all: unset; } 
input[type="search"]::-webkit-search-cancel-button { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; background: url('../icons/keyword-del.svg') center / contain no-repeat; cursor: pointer; } 

/* 검색 클릭 시 나타나는 창 */
.search-panel { display: flex; flex-direction: column; justify-content: space-between; position: fixed; z-index: 998; right: -100%; top: 0; width: 650px; height: 100dvh; background-color: #fff; transition: right 0.3s ease; } 
.search-panel-wrap { padding: calc(var(--header-height) + 30px) 30px 30px 30px; } 
.auto-save-toggle { display: flex; padding: 10px 30px 30px 30px; align-items: center; gap: 10px; align-self: stretch; border-top: 1px solid var(--gray-2); } 
.search-panel.is-open { right: 0; } 
.search-panel__inner { margin-bottom: 30px; } 
.search-panel__form { display: flex; padding: 8px 10px; border-radius: 4px; border: 1px solid var(--gray-3); } 
.search-panel__form input { font-size: 14px; font-weight: 400; line-height: 150%; } 
.search-panel__form input { width: 100%; } 
.search-panel__heading { display: flex; justify-content: space-between; margin-bottom: 14px; } 
.search-panel__recent { margin-bottom: 40px; } 
.search-panel__recent .search-panel__keywords { display: flex; flex-wrap: wrap; gap: 12px; } 
#recent-search-title, #popular-search-title { font-size: 18px; font-weight: 600; line-height: 150%; } 
.search-panel__clear { text-decoration: underline; font-size: 14px; font-weight: 500; line-height: 150%; color: var(--gray-5); } 
.search-panel__recent-item { display: inline-flex; align-items: center; gap: 10px; padding: 5px 4px 5px 8px; border-radius: 4px; border: 1px solid var(--gray-3); transition: all .3s; } 
.search-panel__recent-item:hover { border-color: var(--gray-4); background-color: #fafafa; } 

.search-panel__popular .search-panel__keywords { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; } 
.search-panel__popular .search-panel__keywords .search-panel__popular-item { display: inline-flex; justify-content: start; align-items: center; gap: 10px; font-size: 16px; font-weight: 400; line-height: 150%; transition: all .3s; } 
.search-panel__popular .search-panel__keywords .search-panel__popular-item:hover { opacity: 0.8; } 
.search-panel__recent-item span { font-size: 16px; font-style: normal; font-weight: 400; line-height: 150%; } 
.search-panel__popular .search-panel__keywords .search-panel__popular-item em { display: inline-block; min-width: 10px; font-weight: 500; color: var(--gray-6); } 
.search-panel__popular .search-panel__keywords .search-panel__popular-item:nth-child(-n+3) em { color: var(--point-color); } 

/* 호버 및 active 시 */
#site-header.sub-header,
#site-header:hover,
#site-header.is-active { color: var(--gray-black); border-bottom: 1px solid var(--gray-2); background-color: #fff; } 

#site-header.sub-header .site-header__search-label,
#site-header:hover .site-header__search-label,
#site-header.is-active .site-header__search-label { color: var(--gray-4); } 

#site-header.sub-header .site-header__search-toggle,
#site-header:hover .site-header__search-toggle,
#site-header.is-active .site-header__search-toggle { box-shadow: none; border: 1px solid var(--gray-2); } 

#site-header.sub-header .site-header__search-toggle .site-header__search-icon img,
#site-header:hover .site-header__search-toggle .site-header__search-icon img,
#site-header.is-active .site-header__search-toggle .site-header__search-icon img { display: none; } 

#site-header.sub-header .site-header__search-toggle .site-header__search-icon img[hidden],
#site-header:hover .site-header__search-toggle .site-header__search-icon img[hidden],
#site-header.is-active .site-header__search-toggle .site-header__search-icon img[hidden] { display: block !important; } 

#site-header.sub-header .site-header__logo a img,
#site-header:hover .site-header__logo a img,
#site-header.is-active .site-header__logo a img { top: -40px; } 

#site-header.sub-header .site-header__cart-count,
#site-header:hover .site-header__cart-count,
#site-header.is-active .site-header__cart-count { color: #fff; background-color: var(--point-color); } 

#site-header.sub-header .site-header__guest-order-link,
#site-header:hover .site-header__guest-order-link,
#site-header.is-active .site-header__guest-order-link { padding: 8px 12px; border-radius: 4px; border: 1px solid var(--gray-3); background-color: #fff; } 

#site-header.sub-header .site-header__menu-toggle img,
#site-header:hover .site-header__menu-toggle img,
#site-header.is-active .site-header__menu-toggle img { display: none; } 

#site-header.sub-header .site-header__menu-toggle img[hidden],
#site-header:hover .site-header__menu-toggle img[hidden],
#site-header.is-active .site-header__menu-toggle img[hidden] { display: block !important; } 

/* 전체 상품 메가 메뉴 */
.mega-menu { overflow: hidden; position: absolute; top: var(--header-height); z-index: 100; max-width: 1300px; width: 100%; border-radius: 0 0 4px 4px; color: var(--gray-black); box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10); opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s; } 
.mega-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; } 
.mega-menu__inner { display: flex; width: 100%; min-height: 410px; margin: 0 auto; background-color: #fff; } 
.mega-menu__panel { flex: 0 0 180px; } 
.mega-menu__panel.mega-menu__panel--depth3 { flex: 0 0 180px; border-right: 1px solid var(--gray-2); } 
.mega-menu__list { display: flex; flex-direction: column; gap: 4px; } 
.mega-menu__link { display: flex; align-items: center; justify-content: space-between; transition: color .2s, background-color .2s; } 
.mega-menu__list--depth2 > .mega-menu__item > .mega-menu__link { padding: 12px 20px; font-size: 18px; font-style: normal; font-weight: 400; line-height: 150%; color: var(--gray-6); } 
.mega-menu__panel.mega-menu__panel--depth2 { background-color: var(--gray-1); } 
.mega-menu__list--depth2 > .mega-menu__item.has-child.is-active { background-color: #fff; } 
.mega-menu__list--depth2 > .mega-menu__item.has-child.is-active .mega-menu__link { color: var(--black); } 

.mega-menu__list--depth3 > .mega-menu__item > .mega-menu__link { padding: 10px 20px; font-size: 16px; font-style: normal; font-weight: 400; line-height: 150%; color: var(--gray-black); } 
.mega-menu__list--depth3 > .mega-menu__item > .mega-menu__link:hover,
.mega-menu__list--depth3 .mega-menu__item.no-child.is-active { font-weight: 600; color: var(--point-color); } 


/* 모바일 하단 메뉴 및 카테고리 */
.m-menu-cate { display: none; }
.mobile-sub-header { display: none; }
.mobile-product-subcategory { display: none; }
.mobile-sub-header-spacer { display: none; }
body.has-mobile-menu-bar { padding-bottom: var(--m-menu-bar-height, 0px); }

@media screen and (max-width: 1640px) {
    .mega-menu {
        max-width: 700px;
    }
}

@media screen and (max-width: 1400px) {
    /* 헤더 레이아웃 */
    #site-header {
        padding: 0 20px;
    }
    .site-header__main {
        gap: 40px;
    }
    .site-header__navigation .inner {
        gap: 20px;
    }

    /* 로고 */
    .site-header__logo a {
        width: 126px;
        height: 24px;
    }
    .site-header__logo a img {
        width: 100%;
    }
    #site-header.sub-header .site-header__logo a img,
    #site-header:hover .site-header__logo a img,
    #site-header.is-active .site-header__logo a img {
        top: -24px;
    }

    /* gnb */
    .site-header__menu {
        gap: 30px;
    }
    .site-header__menu li a {
        font-size: 18px;
    }

    /* tnb */
    .site-header__utility {
        gap: 20px;
    }
    .site-header__user-menu {
        gap: 10px;
    }
    .site-header__user-menu a {
        font-size: 14px;
    }
    .site-header__cart-count {
        font-size: 12px;
    }
}

@media (max-width: 1200px){
 .mega-menu__panel { flex-basis: 240px; } 
}


@media screen and (max-width: 1024px) {
    /* 헤더 레이아웃 */
    #site-header {
        padding: 0 16px;
    }
    #site-header.sub-header { position: relative; width: 100%; padding: 0 16px; }
    #site-header.sub-header.is-active { position: fixed; top: 0; left: 0; width: 100%; }
    #site-header.sub-header .site-header__inner,
    #site-header.sub-header .mega-menu { display: none; }
    #site-header.sub-header.is-active + .mobile-sub-header-spacer { display: block; height: var(--header-height); }

    #site-header.sub-header:has( .mobile-sub-header) {
        padding: 0;
    }

    .mobile-sub-header { display: flex; align-items: center; position: relative; padding: 10px 16px; background: #fff; }
    .mobile-sub-header__actions { display: flex; justify-content: flex-end; align-items: center; margin-left: auto; }
    .mobile-sub-header__home,
    .mobile-sub-header__cart,
    .mobile-sub-header__myshop { display: none; }
    .mobile-sub-header__back,
    .mobile-sub-header__search { display: flex; justify-content: center; align-items: center; }
    .mobile-sub-header__back img { width: 24px; height: 24px; }
    .mobile-sub-header__home img,
    .mobile-sub-header__cart img { width: 40px; height: 40px; }
    .mobile-sub-header__myshop img { width: 32px; height: 32px; }
    .mobile-sub-header__search img { width: 40px; height: 40px; }
    .mobile-sub-header__center { display: flex; justify-content: flex-start; min-width: 0; padding: 0 8px; }
    .mobile-sub-header__center--category { justify-content: center; width: 100%; }
    .mobile-sub-header__title { overflow: hidden; font-size: 18px; font-weight: 600; line-height: 150%; color: var(--gray-black); text-overflow: ellipsis; white-space: nowrap; }
    .mobile-sub-header__category-toggle { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 18px; font-weight: 600; line-height: 150%; color: var(--gray-black); }
    .mobile-sub-header__category-toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-sub-header__category-toggle img { flex: none; width: 14px; height: 14px; transition: transform .2s ease; }
    .mobile-sub-header__category-toggle[aria-expanded="true"] img { transform: rotate(180deg); }
    .mobile-product-category { position: absolute; z-index: 10; top: 100%; left: 0; width: 100%; border-top: 1px solid var(--gray-2); border-bottom: 1px solid var(--gray-2); background: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, .06); }
    .mobile-product-category__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mobile-product-category__list a { display: block; padding: 12px 16px; font-size: 16px; line-height: 150%; color: var(--gray-6); }
    .mobile-product-category__list a.is-active { font-weight: 600; color: var(--gray-black); }
    .mobile-product-subcategory { display: block; overflow: hidden; border-top: 1px solid var(--gray-2); background: #fff; }
    .mobile-product-subcategory__list { display: flex; overflow-x: auto; padding: 0 16px; scrollbar-width: none; -ms-overflow-style: none; }
    .mobile-product-subcategory__list::-webkit-scrollbar { display: none; }
    .mobile-product-subcategory__list li { flex: none; }
    .mobile-product-subcategory__list a { display: block; position: relative; padding: 14px 16px 13px; font-size: 16px; font-weight: 400; line-height: 150%; color: var(--gray-5); white-space: nowrap; }
    .mobile-product-subcategory__list a.is-active { font-weight: 600; color: var(--gray-black); }
    .mobile-product-subcategory__list a.is-active::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--gray-black); }

    /* 헤더 레이아웃 */
    #site-header .site-header__inner {
        padding: 10px 0px;
    }

    /* gnb */
    .site-header__navigation {
        display: none;
    }

    /* 서치 버튼 */
    .search-btn {
        display: none;
    }
    .m-search-btn {
        display: block !important;
    }
    .site-header__search-toggle.m-search-btn {
        display: flex;
        position: relative;
        width: 40px;
        min-width: unset;
        height: 40px;
        padding: 0;
        background: none;
        box-shadow: none;
    }
    .site-header__search-toggle.m-search-btn img {
        position: absolute;
        left: 0;
        top: 0;
    }
    #site-header.sub-header .site-header__search-toggle,
    #site-header:hover .site-header__search-toggle,
    #site-header.is-active .site-header__search-toggle {
        border: none;
    }

    .site-header__search-toggle.m-search-btn .m-search-btn-ico-hover {
        opacity: 0;
    }
    .site-header__search-toggle.m-search-btn:hover .m-search-btn-ico {
        opacity: 0;
    }
    #site-header:hover .site-header__search-toggle .m-search-btn-ico-hover,
    #site-header.is-active .site-header__search-toggle .m-search-btn-ico-hover {
        opacity: 1;
    }

    #site-header.sub-header .site-header__search-toggle.m-search-btn .m-search-btn-ico-hover {
        opacity: 1;
    }
    #site-header.sub-header:hover .site-header__search-toggle .m-search-btn-ico-hover,
    #site-header.sub-header.is-active .site-header__search-toggle .m-search-btn-ico-hover {
        opacity: 1;
    }

    /* 서치 패널 */
    .search-panel {
        width: 100%;
    }

    /* tnb */
    .site-header__actions {
        display: none;
    }

    /* 서치패널 */
    .search-panel {
        right: -1024px;
        z-index: 998;
    }

    /* 모바일 바 */
    .m-menu-bar { display: block !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 499; border-top: 1px solid var(--gray-2); background: #fff; }
    .m-menu-bar > ul { display: flex; justify-content: space-between; height: 100%; padding: 0 16px 20px 16px; }

    .m-menu-bar li { min-width: 0; max-width: 56px; width: 100%; }
    .m-menu-bar a,
    .m-menu-bar button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; width: 100%; height: 100%; padding: 8px 0; font-size: 12px; line-height: 140%; color: var(--gray-8); }
    .m-menu-bar__icon--active { display: none; }
    .m-menu-bar .is-active .m-menu-bar__icon--default,
    .m-menu-bar [data-mobile-category-toggle][aria-expanded="true"] .m-menu-bar__icon--default { display: none; }
    .m-menu-bar .is-active .m-menu-bar__icon--active,
    .m-menu-bar [data-mobile-category-toggle][aria-expanded="true"] .m-menu-bar__icon--active { display: block; }
    .m-menu-bar .is-active { color: var(--point-color); }
    .m-menu-bar [data-mobile-category-toggle][aria-expanded="true"] { color: var(--point-color); }

    .m-menu-cate.is-open { display: block !important; position: fixed; z-index: 448; inset: 0 0 var(--m-menu-bar-height, 64px); height: 100%; padding-bottom: var(--m-menu-bar-height); }
    .m-menu-cate__dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
    .m-menu-cate__inner { display: grid; grid-template-columns: 150px minmax(0, 1fr); position: relative; width: 100%; height: 100%; padding: var(--header-height) 0 0 0; background: #fff; }
    .m-menu-cate__primary { display: flex; flex-direction: column; min-height: 0; background: var(--gray-1); }
    .m-menu-cate__primary-list { overflow-y: auto; }
    .m-menu-cate__primary-button { justify-content: flex-start; white-space: break-spaces; width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 0; font-size: 16px; line-height: 150%; color: var(--gray-6); }
    .m-menu-cate__primary-button.is-active { font-weight: 600; color: var(--gray-black); background: #fff; }
    .m-menu-cate__utility { margin-top: auto; padding-bottom: 10px; }
    .m-menu-cate__utility a { display: block; padding: 8px 16px; font-size: 12px; line-height: 150%; color: var(--gray-6); }
    .m-menu-cate__secondary { min-width: 0; overflow-y: auto; background: #fff; }
    .m-menu-cate__secondary-list { padding: 2px 0 24px; }
    .m-menu-cate__secondary-list a { display: block; padding: 10px 20px; font-size: 16px; font-weight: 500; line-height: 150%; color: var(--gray-black); }
    .m-menu-cate__secondary-list li:first-child a { font-weight: 600; }
}

@media screen and (max-width: 768px) {
    body:has(.order-summary-mobile-bar, .product-purchase-mobile-bar, .payment-mobile-sticky) #site-footer { padding-bottom: var(--mobile-bottom-sticky-height, 0px); }
    body.mobile-category-open { overflow: hidden; }

    /* 서치 패널 */
    .search-panel {
        z-index: 999;
    }
    .search-panel-wrap {
        padding: 0;
    }
    .search-panel__inner {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        padding: 16px 16px 20px 16px;
        border-bottom: 1px solid #E6E6E6;
    }
    .search-panel__inner .back-btn {
        display: block !important;
    }
    .search-panel__form {
        width: 100%;
    }
    .search-panel__recent, .search-panel__popular {
        padding: 0 16px;
    }

    #recent-search-title, #popular-search-title {
        font-size: 16px;
    }
    .search-panel__recent-item {
        padding: 6px 4px 6px 8px;
    }
    .search-panel__recent-item span {
        font-size: 14px;
    }

    .auto-save-toggle {
        padding: 10px 16px 50px;
    }

}


/* footer */
#site-footer { position: relative; z-index: 10; background-color: var(--gray-1); } 
.footer-top .container { padding: 12px; } 
.footer-top { border-bottom: 1px solid #E0E0E0; } 
.footer-menu__item + .footer-menu__item { margin-left: 32px; } 
.footer-menu__item { position: relative; } 
.footer-menu__item:after { content: ""; display: block; width: 1px; height: 16px; background: #ccc; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); } 
.footer-menu__item:last-child:after { display: none; } 
.footer-sns,
.footer-utils { gap: 10px; } 
.footer-sns__link { display: flex; padding: 6px 12px; justify-content: center; align-items: center; border-radius: 4px; border: 1px solid #E0E0E0; background: #FFF; } 
.footer-bottom { padding: 30px 0 40px 0; } 
.footer-bottom .container { gap: 20px; } 
.footer-bottom .container { gap: 20px; font-size: 14px; font-weight: 500; line-height: 150%; color: var(--gray-6); } 
.footer-info__row { gap: 10px; } 

@media screen and (max-width: 1500px) {
    .footer-bottom {
        padding: 30px 16px 40px 16px;
    }
}

@media screen and (max-width: 768px) {
    .footer-top .container {
        flex-direction: column;
        align-items: start;
        padding: 12px 16px;
    }
    .footer-bottom {
        padding: 17px 16px 13px 16px;
    }
    .footer-menu {
        width: 100%;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #E6E6E6;
    }
    .footer-utils {
        flex-direction: column;
        align-items: start;
    }
    .footer-desc,
    .footer-info__inner span {
        display: block;
        font-size: 12px;
    }
    .footer-menu__item + .footer-menu__item {
        margin-left: 28px;
    }
    .footer-menu__item:after {
        right: -14px;
    }
}
