@charset "utf-8";

/* ========================================
   쇼핑몰 코어 호환 CSS (레거시)
   레이아웃 골격만 유지 — 디자인은 Bootstrap + 스킨 CSS 담당
   점진적으로 bootstrap-custom.css 등으로 흡수 예정

   @version 20260130-003
   ======================================== */

/* ----------------------------------------
   접근성 (Accessibility)
   head.sub.php에서 출력하는 스크린리더 전용 요소
   커뮤니티는 default_compat.css에서 처리하지만
   쇼핑몰은 이 파일만 로드되므로 동일 스타일 필요
   ---------------------------------------- */

.sound_only,
.msg_sound_only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#hd_login_msg {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

#hd_pop h2,
#hd_h1,
legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------
   카테고리 드롭다운 (#category)
   shop.head.php 카테고리 버튼으로 열리는 패널
   ---------------------------------------- */

#category {
    display: none;
    position: absolute;
    width: 100%;
    background: #fff;
    z-index: 1000;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#category h2 {
    font-size: 1.1em;
    padding: 1rem;
    margin: 0;
    border-bottom: 1px solid #dee2e6;
}

#category ul::after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

#category .cate_li_1 {
    float: left;
    width: 20%;
    min-height: 120px;
    padding: 1rem;
    border-left: 1px solid #f0f0f0;
}

#category ul li:nth-child(5n+1) {
    border-left: 0;
}

#category .cate_li_1_a {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--bs-primary, #0d6efd);
}

#category .cate_li_2 {
    line-height: 2em;
}

#category .cate_li_2 a {
    color: var(--bs-secondary-color, #6c757d);
}

#category .cate_li_2 a:hover {
    color: var(--bs-body-color, #212529);
}

/* .close_btn: Bootstrap btn 클래스 + position-absolute로 처리 */

#category .no-cate {
    text-align: center;
    padding: 2rem;
    color: var(--bs-secondary-color, #6c757d);
}

#category_all_bg {
    display: none;
    background: rgba(0, 0, 0, 0.15);
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
}

/* ----------------------------------------
   사이드 퀵메뉴 (우측 고정 패널)
   ---------------------------------------- */

#side_menu {
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    background: #fff;
    border-left: 1px solid #dee2e6;
    z-index: 120;
    padding-left: 50px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
}

#quick {
    position: absolute;
    top: 50%;
    left: 0;
    width: 50px;
    transform: translateY(-50%);
}

#quick li {
    position: relative;
}

#quick li button {
    width: 50px;
    height: 50px;
    border: 0;
    font-size: 1.1em;
    background: #fff;
    color: var(--bs-secondary-color, #6c757d);
    transition: color 0.15s;
}

#quick li button:hover {
    color: var(--bs-primary, #0d6efd);
}

#quick .qk_tit {
    display: none;
    position: absolute;
    top: 12px;
    right: 60px;
    white-space: nowrap;
    padding: 4px 12px;
    line-height: 1.5;
    background: var(--bs-dark, #212529);
    color: #fff;
    font-size: 0.8em;
    border-radius: 0.25rem;
}

#quick .qk_tit::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 5px 0 5px 6px;
    border-color: transparent transparent transparent var(--bs-dark, #212529);
}

#quick li:hover .qk_tit {
    display: block;
}

#tabs_con {
    height: 100%;
}

.side_mn_wr1,
.side_mn_wr2,
.side_mn_wr3,
.side_mn_wr4 {
    display: none;
    width: 280px;
    overflow-y: auto;
    height: 100%;
}

.btn_sm_on i {
    color: var(--bs-primary, #0d6efd);
}

.qk_con {
    display: none;
    position: relative;
    width: 280px;
    height: 100%;
    background: #fff;
    border-left: 1px solid #f0f0f0;
}

.qk_con h2.s_h2 {
    margin: 0;
    font-size: 1.1em;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.qk_con h2.s_h2 span {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 1rem;
    background: var(--bs-primary-bg-subtle, #cfe2ff);
    color: var(--bs-primary, #0d6efd);
    font-size: 0.75em;
    font-weight: normal;
    vertical-align: text-bottom;
}

.qk_con_wr {
    padding: 0;
    height: 100%;
    overflow-y: auto;
}

.qk_con_wr .con_close {
    position: fixed;
    top: 0;
    right: 280px;
    width: 50px;
    height: 50px;
}

#top_btn {
    position: absolute;
    bottom: 0;
    left: 0;
    border: 0;
    border-top: 1px solid #dee2e6;
    width: 50px;
    height: 50px;
    background: #fff;
    font-size: 1.1em;
    color: var(--bs-secondary-color, #6c757d);
    transition: all 0.15s;
}

#top_btn:hover {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}

/* ----------------------------------------
   팝업레이어
   ---------------------------------------- */

#hd_pop {
    z-index: 1000;
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    height: 0;
}

.hd_pops {
    position: absolute;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.hd_pops img {
    max-width: 100%;
}

.hd_pops_footer {
    padding: 0;
    background: var(--bs-dark, #212529);
    color: #fff;
    text-align: left;
    position: relative;
}

.hd_pops_footer::after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

.hd_pops_footer button {
    padding: 10px;
    border: 0;
    color: #fff;
}

.hd_pops_footer .hd_pops_reject {
    background: var(--bs-dark, #212529);
}

.hd_pops_footer .hd_pops_close {
    background: var(--bs-gray-700, #495057);
    position: absolute;
    top: 0;
    right: 0;
}

/* ----------------------------------------
   Owl Carousel 네비게이션 (히트상품)
   ---------------------------------------- */

#idx_hit {
    overflow: hidden;
}

#idx_hit .owl-prev,
#idx_hit .owl-next {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    text-indent: -9999em;
    opacity: 0.6;
    transition: opacity 0.15s;
}

#idx_hit .owl-prev:hover,
#idx_hit .owl-next:hover {
    opacity: 1;
}

#idx_hit .owl-prev {
    left: 0;
    background: url('../img/btn_idx_left.png') no-repeat center;
}

#idx_hit .owl-next {
    right: 0;
    background: url('../img/btn_idx_right.png') no-repeat center;
}
