/*페이지 로딩*/
#loading-screen {position: fixed;width: 100%;height: 100%;background: #fff;display: flex;flex-direction: column;justify-content: center;align-items: center;z-index:99999;}
.spinner {border: 2px solid rgba(0, 0, 0, .1);border-top-color: var(--main-color);border-radius: 50%;width: 50px;height: 50px;animation: spin 0.5s linear infinite;}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 상단메뉴 */
#hd{position: sticky;z-index:200;width:100%;background: #fff;}
#hd.off{z-index: 1;}
#hd:before {content: "";display: block;position: absolute;top: 0;left: 50%;transform: translateX(-50%);width: 100%;height: 100%;}
#hd_wrapper{padding:20px 0;background:#fff;border-bottom: 1px solid #e6e6e6;}

/* 헤더 상단 */
#tnb{background: var(--main-color);}


/* 헤더메뉴 */
#header{position:fixed;right: 0;left: 0;z-index: 999;transition: all 0.5s;}
#header.header-fixed{position:fixed;top:-100%;}
#header.header-fixed.top0{top:-44px;}
#hd_admin > li > a {display: inline-block;padding: 5px 10px;border: 1px solid #eaeaea;border-radius: 10px;font-size: 14px;min-width: 80px;font-family: 'Pretendard';font-weight:700;text-align: center;background: #fff;}
#hd_qnb{place-content: flex-end;}
#hd_qnb li {line-height:14px;position:relative;text-align:center;margin:15px 10px 15px 0;padding-right:10px;font-size: 14px;}
#hd_qnb li:last-child {padding-right:0;margin-right:0;border-right:0}
#hd_qnb li:not(:last-child):before {content: "";display: block;position: absolute;top: 3px;right: 0;width: 1px;height: 11px;background: rgba(255,255,255,0.5);}
#hd_qnb li a {display:inline-block;color:#fff}

/* 검색창 */
#hd_sch {position:relative;}
#hd_sch h3 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#hd_sch #sch_str {width: 420px;height: 48px;padding: 0 60px 0 20px;color: #666;border-radius: 100px;outline: none !important;border: 1px solid #ddd;}
#hd_sch #sch_submit {position: absolute;top: 0;right: 12px;width: 32px;height: 48px;border: none;background-color: transparent;cursor:pointer;color:var(--main-color);}
#hd_sch input[type="text"]:focus {border-color: #333;}
#hd_sch .h-search-autocomplete {position: absolute;top: calc(100% + 10px);left: -4px;z-index: 20;width: 100%;}
#hd_sch .search-word-cont {display:none;position: absolute;top: calc(100% + 10px);left: -4px;z-index: 20;padding:29px 30px;border-radius: 10px;background: #fff;border: 1px solid #eaeaea;box-shadow: 0 15px 15px 0 rgba(0, 0, 0, 0.05);width: 100%;}
#hd_sch .search-word-head {display: flex;justify-content: space-between;align-items: center;}
#hd_sch .search-word-head > h4 {line-height: 19px;}
#hd_sch .search-word-head > button {font-size: 15px;line-height: 18px;color: #888;border-bottom: 1px solid #888;height: auto;padding: 0;}
#hd_sch .search-word-cont .word-wrap {display: flex;justify-content: space-between;width: 100%;}
#hd_sch .search-word-cont .word-wrap > ul > li {width: 100%;justify-content: space-between;display: flex;align-items: center;padding-top: 10px;}
#hd_sch .search-word-cont .search-word-list{width: 100%;}
#hd_sch .search-word-cont .search-word-list .deleteOne > span{font-size: 0;position: relative;}
#hd_sch .search-word-cont .search-word-list .deleteOne > span:before {content: "\e921";display: block;font-family:xeicon;font-size: 16px;color: #ccc;}
#hd_sch .immybox_results{position: absolute;top: calc(100% + 10px);z-index: 20;padding: 20px 0;border-radius: 10px;border: 1px solid #e4e4e4;background: #fff;box-shadow: 0 15px 15px 0 rgba(0, 0, 0, 0.05);width: calc(100% + 7px);max-height: 470px;overflow-y: auto;}
#hd_sch .immybox_results::-webkit-scrollbar {width: 5px;}
#hd_sch .immybox_results::-webkit-scrollbar-thumb {background-color: rgb(0,0,0);}
#hd_sch .immybox_results::-webkit-scrollbar-track {background-color: rgba(0,0,0,0.1);}
#autocomplete-results > li {padding: 10px 30px;overflow: hidden;line-height: 19px;white-space: nowrap;text-overflow: ellipsis;cursor: pointer;transition: all .3s;}
#autocomplete-results > li:hover{background: #fafafa;}
#autocomplete-results > li .highlight {color: var(--main-color);font-family: 'Pretendard';font-weight:700;}

/* 우측메뉴 */
#hd-util {gap:15px;}
#hd-util > li > a{position:relative;display:block;font-size: 14px;color: #666;text-align: center;}
#hd-util > li > a:before {content: '';display: block;font-family:xeicon;margin-bottom:6px;color:#000;font-size: 30px;text-align:center;}
#hd-util > li.search > a:before{content:"\e97a";}
#hd-util > li.logout > a:before{content:"\e972";}
#hd-util > li.mypage > a:before{content:"\e9f5";}
#hd-util > li.admin > a:before{content:"\e986";}
#hd-util > li.login > a:before{content:"\e963";}
#hd-util > li.register > a:before{content:"\e9f5";}
#hd-util > li.shop_cart > a:before{content:"\e9fb";}
#hd-util > li.shop_cart .count{display:block;position: absolute;top: -3px;right: -3px;width: 18px;height: 18px;background: #FF0000;font-size: 11px;color: #fff;text-align: center;border-radius: 50%;line-height:1.75;}
#hd-util .register-bubble { position: absolute;left: 50%;transform: translateX(-50%);width: 88px;height: 25px;border-radius: 50px;background: var(--main-color);color: #fff;font-size: 14px; letter-spacing: -0.42px;text-wrap: nowrap;text-align: center;line-height: 25px;display: block;font-family: 'Pretendard';font-weight:500;box-shadow:5px 5px 20px #ddd;animation: floating 0.8s linear 0s infinite alternate;transition: all 0.3s;}
#hd-util .register-bubble:after {content: "";display: block;position: absolute;top: 0;left: 50%;transform: translate(-50%,-7px);width: 0;height: 0;border-style: solid;border-width: 0 7px 10px 7px;border-color: transparent transparent var(--main-color) transparent;}
@keyframes floating {
    0% {margin-top: 0px;}
    100% {margin-top: 5px;}
}

/* gnb */
.gnb-container {border-bottom: 1px solid #e5e5e5;background: #fff;}
#hd_menu {position:relative;height:60px;}
#hd_menu button#menu_open {gap:10px;border:0;text-align:center;padding:0;height:100%;color:#000;font-size:18px;}
.hd_menu {height:100%;display:flex;align-items: center;place-content: center;gap:35px;}
.hd_menu li {position:relative;text-align:center;width:auto;height:100%;}
.hd_menu li:first-child {margin-left: 35px;}
.hd_menu li:last-child a {border-right:0}
.hd_menu li a {position:relative;display:inline-block;font-size:18px;color: #505050;font-family: 'Pretendard';font-weight:600;line-height:60px;transition: all 0.3s;}
.hd_menu li a:after{ content: "";position: absolute;bottom:0;left: 50%;transform: translateX(-50%);  background: var(--main-color);width:0;height: 2px;transition: all .3s;}
.hd_menu li a:hover{color: var(--main-color);}
.hd_menu li a:hover:after {width: 100%;}
.hd-menu-ico {position: absolute;top: 50%;right: -37%;transform: translateY(-50%);color:#F21C35;}
.gw-hd-menu-text p.on { display: block;}
.gw-hd-menu-text p { display: none;}
.gw-hd-menu-text p > span{font-style:italic;color:#111;}

/* category */
#category {display: none;position: absolute;top:60px;}
#category.open {display: block !important;}
#category .cate {background: var(--main-color);box-shadow: 10px 10px 10px rgba(0,0,0,0.1);}
#category .cate-arrow {position: absolute;top:50%;right:15px;transform: translateY(-50%);flex-direction: column;align-items: center;place-content: center;z-index: 100;}
#category .cate-arrow > i{transform: rotate(-90deg);}
#category .cate_li_1{ position: relative;cursor: pointer;}
#category .cate_li_1:last-child {margin-bottom: 0;}
#category .cate_li_1:not(:first-child) {border-top: 1px solid rgba(255,255,255,0.5);}
#category .cate_li_1_a {padding-left:1.5rem;display:flex;position:relative;width:240px;height:50px;font-family: 'Pretendard';font-weight:600;color:#fff;transition: all .3s;}
#category .cate_li_1_a:hover{background: #fff;color: #111;}
#category .cate_li_1_a > a{display:flex;align-items:center;gap:10px;width: calc(100% - 40px);height: 100%;color:#fff;}
#category .cate_li_1_a:hover > a{color: #111;}
#category .cate_li_1_a .gw-img {width: 2rem;}
#category .sub_cate {max-height: 0;opacity: 0;visibility: hidden;transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s;position: absolute;top: 0;left: 100%;white-space: nowrap;background: #fff;z-index: 1000;box-shadow: 0 2px 6px rgba(0,0,0,0.1);min-width: 200px;}
#category .cate_li_1.active .sub_cate {max-height: 500px;opacity: 1;visibility: visible;}
#category .cate_li_2_a {display:block;position:relative;width:100%;height:50px;line-height:50px;font-family: 'Pretendard';font-weight:700;}
#category .cate_li_2 {position:relative;width: 200px;height: 50px;background:#000;color: #fff;}
#category .cate_li_2:not(:last-child){border-bottom: 1px solid #ddd;}
#category .cate_li_2 a {padding-left:1rem;display:block;position:relative;width:100%;cursor:pointer;color: #fff;font-size:16px;}
#category .cate_li_2 .cate-li-2-arrow:before{font-family:xeicon; content: "\e93e"; position:absolute; top:50%; right:1rem; font-size:20px; transform:translateY(-50%);}
#category .cate_li_3{display:none;position:absolute;left:200px;top:0;background:#aaa;}
#category .cate_li_3 > li:not(:last-child){border-bottom: 1px solid rgba(255,255,255,0.5);}
#category .cate_li_3 a{display:block; padding-left:1rem; width:200px;height:50px;line-height:50px;color:#fff;}
#category .cate_li_3 a:before{display:inline-block; content:"-"; margin-right:5px;}
#category .cate_li_3.active{display: block;}
#category .close_btn {display:none;position:absolute;top:0;right:0;width:80px;height:80px;color:#000;border:0;vertical-align:top;font-size:18px}
#category .no-cate{text-align:center;padding: 30px 0;color: #333;}
/* 기본 상태: 숨김 */
#category .sub_cate {
  display: none; /* 기본 숨김 */
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: absolute;
  top: 0;
  left: 100%;
  white-space: normal;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: 600px;
}

/* active일 때: grid로 보이게 */
#category .cate_li_1.active .sub_cate {
  display: grid;
  opacity: 1;
  visibility: visible;
}
/* login/join */
#category .nav-member{display:none;gap:15px;position:relative;padding:28px 15px 22px 15px;border-bottom: 1px solid #eee;color:#555;}
#category .nav-member > li > a {position:relative;display:flex;align-items:center;font-size: 14px;color: #555;text-align: center;}
#category .nav-member > li > a:before {content: '';display: block;font-family:xeicon;color:#000;font-size: 30px;text-align:center;}
#category .nav-member > li.logout > a {color: #111;font-size: var(--main-text01);}
#category .nav-member > li.logout > a:before{content:"\e972";}
#category .nav-member > li.login > a:before{content:"\e963";}
#category .nav-member > li.register > a:before{content:"\e9f5";}
#category .nav-member .gw-nav-btn {padding: 5px;border-radius: 10px;border: 1px solid #eaeaea;}
#category .register-bubble {display:none;position: absolute;top:100%;left: 50%;transform: translateX(-50%);width: 88px;height: 25px;border-radius: 50px;background: var(--main-color);color: #fff;font-size: 14px; letter-spacing: -0.42px;text-wrap: nowrap;text-align: center;line-height: 25px;font-family: 'Pretendard';font-weight:500;box-shadow:5px 5px 20px #ddd;animation: floating 0.8s linear 0s infinite alternate;transition: all 0.3s;}
#category .register-bubble:after {content: "";display: block;position: absolute;top: 0;left: 50%;transform: translate(-50%,-7px);width: 0;height: 0;border-style: solid;border-width: 0 7px 10px 7px;border-color: transparent transparent var(--main-color) transparent;}



/* 하단 메뉴 */
#category .nav-community-box{display:none;padding-bottom:30px;border-top:9px solid #f5f5f5;}
#category .gw-link-box{margin:0 15px;}
#category .gw-link-box > li {flex:1;}
#category .gw-link-box > li > a {padding: 18px 0;display: block;position:relative;border-bottom:1px solid #eee;}
#category .link-arrow {position: absolute;top: 50%;right: 0;transform: translateY(-50%);color: #ccc;}
#category .gw-contact {margin:0 15px;margin-top: 30px;}
#category .gw-contact .gw-num{color: var(--main-color);font-size:var(--main-title03);}
#category .gw-contact .gw-text {font-size: 14px;color: #666;line-height: 1.5;}

/*검색창 모달*/
#gw-search-modal {display:none;position: fixed;left: 0;top: 0;z-index: 100;width: 100vw;height: 100vh;background: #fff;}
#gw-search-modal.on{display: block;z-index: 200;}
#gw-search-modal .gw-search-modal {margin:0 auto;display: flex;align-items: center;place-content: center;flex-direction:column;width: 820px;height: 100%;}
#gw-search-modal .gw-search-modal > div{position: relative;width:100%;align-items: flex-start;}
#gw-search-modal .gw-search-input-box > form{position: relative;width:100%;}
#gw-search-modal #gw-sch-input {width: 100%;height: 70px;padding: 0 60px 0 20px;color: #666;border-radius: 100px;outline: none !important;border: 1px solid #ddd;}
#gw-search-modal #gw-sch-input::placeholder{color: #828282;font-family:'Pretendard';font-weight:600;font-size: var(--main-title04);}
#gw-search-modal .closeBtn {position: absolute;top: 50%;right: -60px;transform: translateY(-50%);display: flex;flex-direction:column;justify-content:center;align-items:center;width: 40px;height: 40px;overflow:hidden;margin:0 auto;border-radius:50%;background: #111;color: #fff;filter: drop-shadow(0px 2px 7px rgba(0,0,0,0.1));}
#gw-search-modal #gw-sch-submit {margin:0 30px;position: absolute;top: 0;right: 0;width: 32px;height: 70px;border: none;background-color: transparent;color:#111;cursor:pointer;}
#gw-autocomplete-results {display:none;position: absolute;top: calc(100% + 10px);left: -4px;z-index: 20;padding: 29px 30px;border-radius: 10px;background: #fff;border: 1px solid #eaeaea;box-shadow: 0 15px 15px 0 rgba(0, 0, 0, 0.05);width: 100%;height:470px;overflow-y: auto;}
#gw-autocomplete-results::-webkit-scrollbar {width: 5px;}
#gw-autocomplete-results::-webkit-scrollbar-thumb {background-color: rgb(0,0,0);}
#gw-autocomplete-results::-webkit-scrollbar-track {background-color: rgba(0,0,0,0.1);}
#gw-autocomplete-results > .immybox_choice {padding: 10px;overflow: hidden;line-height: 19px;white-space: nowrap;text-overflow: ellipsis;cursor: pointer;transition: all .3s;}
#gw-autocomplete-results > .immybox_choice:hover {background: #fafafa;}
#gw-autocomplete-results > li > .highlight {color: var(--main-color);font-family: 'Pretendard';font-weight:700;}

#gw-search-modal .gw-search-ranking-box > div{padding:0 30px;flex: 1;overflow: hidden;}
#gw-search-modal .gw-search-ranking-box > div + div { border-left: 1px solid #e5e5e5; }
#gw-search-modal .gw-search-ranking-box .gw-title{font-size:var(--main-title04);font-family: 'Pretendard';font-weight:600;}
#gw-search-modal .gw-search-ranking-box .gw-delete-all{font-size: 15px;font-family: 'Pretendard';font-weight:600;line-height: 18px;color: #888;border-bottom: 1px solid #888;height: auto;padding: 0;}
#gw-search-modal .gw-search-recent-list > li {width: 100%;justify-content: space-between;display: flex;align-items: center;padding-top: 10px;}
#gw-search-modal .gw-search-recent-list > li > a{display:inline-block;color:#444; line-height: 100%; padding: 5px 0; font-family:'Pretendard';font-weight:600;overflow:hidden; text-overflow:ellipsis; white-space:nowrap;width:90%;}
#gw-search-modal .gw-search-recent-list .gw-delete {display: flex;flex-direction: column;justify-content: center;align-items: center;width: 20px;height: 20px;overflow: hidden;border-radius: 50%;background: #ddd;color: #fff;}
#gw-search-modal .gw-search-recent-list .gw-delete > span{font-size: 0;position: relative;}
#gw-search-modal .gw-search-recent-list .gw-delete > span:before {content: "\e921";display: block;font-family:xeicon;font-size: 12px;color: #fff;}
#gw-search-modal .gw-search-lately-list li + li{margin-top:10px;}
#gw-search-modal .gw-search-lately-list > li > a{display: flex;align-items:center;color:#444;}
#gw-search-modal .gw-search-lately-list .gw-num {display:inline-block;font-family: "Outfit", sans-serif; font-weight: 600;font-size: 14px;min-width: 20px;}
#gw-search-modal .gw-search-lately-list .gw-text{display:inline-block !important;line-height: 100%; padding: 5px 0; font-family:'Pretendard';font-weight:600;overflow:hidden; text-overflow:ellipsis; white-space:nowrap;width:100%;}
#gw-search-modal .gw-search-lately-list > li:nth-child(1) a,
#gw-search-modal .gw-search-lately-list > li:nth-child(2) a,
#gw-search-modal .gw-search-lately-list > li:nth-child(3) a{color:var(--main-color);}

/*tnb*/
.tnb-mobile-box{display: none;}

/*gw-mob-hd*/
#gw-mob-hd{display: none;}










