/* BASIC css start */
/* ========================================
   1. °øÅë ·¹ÀÌ¾î / ¸ð´Þ ¹è°æ
======================================== */
#mask,
#dim,
#layer_background {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    transition: opacity 0.3s ease;
}
#layer_background.active { display: block; opacity: 1; }


/* ========================================
   2. Çì´õ
======================================== */

/* »ó´Ü ¹è³Ê */
.head_banner {
    background: #BF2526;
    text-align: center;
}
.head_banner a {
    display: inline-block;
    line-height: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}
.head_banner a b { font-weight: 700; }

/* Çì´õ ±âº» */
.header {
    position: sticky;
    top: 0;
    padding-top: 10px;
    background: #fff;
    border-bottom: 1px solid #ededed;
    z-index: 10;
}
.header .inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
@media screen and (max-width: 768px) {
    .header .inner { padding: 0 12px; }
}


/* »ó´Ü ¿µ¿ª & ·Î±×ÀÎ */
.header .inner_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.header .inner_top .logo img { width: 120px; display: block; }
.header .inner_top .right_top { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }



/* Àå¹Ù±¸´Ï ¼ö·® */
.header .inner_top li.cart_btn { position: relative; }
.header .inner_top li.cart_btn .user_basket_quantity {
    position: absolute;
    bottom: 0; right: -2px;
    width: 16px; height: 16px;
    line-height: 16px;
    border-radius: 50%;
    background: #bf2526;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}



/* ¸¶ÀÌÆäÀÌÁö hover */
.header .inner_top li.my_btn,
.head_log li.my_btn { position: relative; }
.header .inner_top li.my_btn div,
.head_log li.my_btn div {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.header .inner_top li.my_btn:hover div,
.head_log li.my_btn:hover div { opacity: 1; visibility: visible; }







/* ¸Þ´º ¿µ¿ª */
.header .inner_bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    padding: 0 20px 0 0;
}
.header .inner_bottom .left_group { display: flex; align-items: center; gap: 30px; }

.header .inner_bottom ul,
.header .inner_bottom .left_menu ul,
.header .inner_bottom .right_menu ul,
.header .inner_bottom .nav_cate ul {
    display: flex; gap: 30px; margin: 0; padding: 0; list-style: none;
}
.header .inner_bottom a {
    font-size: 15px; color: #333; text-decoration: none;
    padding-bottom: 14px; transition: all 0.1s ease;
}
.header .inner_bottom a:hover { opacity: 0.7; }
.header .inner_bottom a.active { font-weight: 700; color: #000; border-bottom: 2px solid #000; }
.header .inner_bottom a.red-menu { color: #bf2526; }
.header .inner_bottom a.red-menu.active { border-bottom: 2px solid #bf2526; }

.head_log { display: flex; justify-content: flex-end; align-items: center; }
.head_log .top_log { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }


/* ========================================
   3. »çÀÌµå ¸Þ´º / ÇÜ¹ö°Å ¸Þ´º
======================================== */

#hd_aside {
    position: fixed; top: 0; left: 0;
    width: 80%; max-width: 400px;
    height: 100%; background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow: hidden; transform: translateX(-100%);
    opacity: 0; pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
    padding-bottom: 10px;
}
#hd_aside.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
#hd_aside .aside_closed { position: absolute; top: 15px; right: 15px; cursor: pointer; z-index: 10000; }
#hd_aside .asideinner { display: flex; flex-direction: column; height: 100%; }

/* ¸Þ´º ¸®½ºÆ® */
#hd_aside .aside_cate { flex: 1 1 auto; overflow-y: auto; padding: 70px 20px 20px; }
#hd_aside .aside_cate li { position: relative; padding: 8px 0 8px 10px; }
#hd_aside .aside_cate li a { font-size: 16px; font-weight: 600; cursor: pointer; }
#hd_aside .aside_cate li span { position: absolute; right: 0; }

/* ´ëºÐ·ù / ÁßºÐ·ù / ¼ÒºÐ·ù */
#hd_aside .aside_cate li.depth1 > a { font-weight: 900; transition: all 0.3s; }
#hd_aside .aside_cate li.depth1.is-active > a,
#hd_aside .aside_cate li.depth1 > a:hover { font-weight: 800; color: #bf2526; }
#hd_aside .aside_cate li.depth2 > a { font-weight: 900; transition: all 0.3s; }
#hd_aside .aside_cate li.depth2.is-active > a,
#hd_aside .aside_cate li.depth2 > a:hover { color: #bf2526; }
#hd_aside .aside_cate li.sub .aside_subcate li a { font-size: 14px; font-weight: 400; transition: all 0.3s; }
#hd_aside .aside_cate li.sub .aside_subcate li a:hover { color: #bf2526; padding-left: 5px; }

/* ¿­¸²/´ÝÈû */
#hd_aside .aside_cate li.depth1 > ul,
#hd_aside .aside_cate li.depth2 .sub-submenu,
#hd_aside .aside_cate li.sub .aside_subcate { display: none; }
#hd_aside .aside_cate li.depth1.is-active > ul,
#hd_aside .aside_cate li.depth2.has-sub.is-active .sub-submenu,
#hd_aside .aside_cate li.sub.is-active .aside_subcate { display: block; }
#hd_aside .aside_cate li.sub.is-active > a span img,
#hd_aside .aside_cate li.depth2.has-sub.is-active > a span img { transform: rotate(180deg); transition: 0.3s ease; }

/* °í°´¼¾ÅÍ */
#hd_aside .aside_cs {
    flex-shrink: 0; position: sticky; bottom: 0; left: 0;
    width: 100%; background: #fff; padding: 20px 40px; border-top: 1px solid #ddd; z-index: 999;
}
#hd_aside .aside_cs h2 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
#hd_aside .aside_cs p { font-size: 13px; font-weight: 400; color: var(--txt); margin: 8px 0; }
#hd_aside .aside_cs .contact-hours { font-size: 14px; font-weight: 600; color: #bf2526; margin-top: 10px; }

/* ¹ÝÀÀÇü */
@media screen and (max-width: 768px) {
    #hd_aside { width: 90%; }
    #hd_aside .aside_cs { padding: 15px 20px; }
}


/* ========================================
   4. °Ë»ö ·¹ÀÌ¾î
======================================== */
.search_wrap {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 50%;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(1px);
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    z-index: 11;
}
.search_wrap.on { opacity: 1; visibility: visible; }

.search_wrap .inner { width: 550px; margin: 0 auto; padding: 30px 0; position: relative; }
.search_input { position: relative; width: 100%; }
.search_input input {
    width: 100%; height: 48px; border: none;
    border-bottom: 1px solid #121212;
    font-size: 15px; color: var(--txt);
}
.search_placeholder {
    position: absolute; top: 50%; left: 10px; transform: translateY(-50%);
    font-size: 18px; color: #aaa; pointer-events: none; transition: 0.2s;
}
.search_input input:focus ~ .search_placeholder,
.search_input input:not(:placeholder-shown) ~ .search_placeholder { opacity: 0; }

/* ÃÖ±Ù °Ë»ö¾î */
.recent_keywords {
    position: absolute; top: 100%; left: 0; z-index: 10;
    width: 100%; max-height: 200px; margin: 5px 0 0 0; padding: 0;
    list-style: none; background: #fff; border: 1px solid #ddd; border-radius: 4px; overflow-y: auto; box-sizing: border-box;
}
.recent_keywords li { padding: 10px; cursor: pointer; border-bottom: 1px solid #eee; }
.recent_keywords li:hover { background: #f0f0f0; }

/* ÃßÃµ / ÀÎ±â °Ë»ö¾î */
.keyword {
    display: flex; gap: 10px; justify-content: center; align-items: flex-start; margin-top: 15px;
}
.keyword .recmd_search, .search_hot_keywords { flex: 1; padding: 0 15px; box-sizing: border-box; }
.keyword .recmd_search { border: 1px solid #000; padding: 15px; display: flex; flex-direction: column; }
.keyword .recmd_search h3 { font-size: 14px; font-weight: 600; margin: -5px 0 5px 0; }
.keyword .recmd_search ul { display: flex; flex-direction: column; gap: 5px; margin: 0 0 0 -10px; padding: 0; list-style: none; }
.keyword .recmd_search ul li a { display: inline-block; padding: 2.8px 12px; font-size: 13px; color: #000; text-decoration: none; }
.keyword .recmd_search ul li a:hover { background: #eee; border-radius: 4px; }

.search_hot_keywords ul { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; justify-content: left; }
.search_hot_keywords ul li a { text-decoration: none; color: #000; white-space: nowrap; font-size: 10px; }
.search_hot_keywords ul li a:hover { background: #eee; border-radius: 4px; }




/* BASIC css end */

