/************************************************************
Drag 커서 — 사용: .drag-wrap 클래스가 붙은 위젯 (html > thema > FIVESENSES > widget)
************************************************************/
.drag-wrap .swiper .swiper-wrapper,
.swiper.drag-wrap .swiper-wrapper,
.swiper .swiper-wrapper.drag-wrap {
    cursor: none !important;
}

.drag-wrap .swiper .swiper-wrapper .swiper-slide a,
.drag-wrap .swiper .swiper-wrapper .swiper-slide a * {
    cursor: pointer !important;
}

.drag-wrap .swiper .swiper-button-prev,
.drag-wrap .swiper .swiper-button-next,
.swiper.drag-wrap .swiper-button-prev,
.swiper.drag-wrap .swiper-button-next {
    cursor: pointer !important;
}

.drag-wrap .swiper .swiper-wrapper a.swiper-slide,
.drag-wrap .swiper .swiper-wrapper a.swiper-slide * {
    cursor: none !important;
}

/* 모바일(991px 이하)에서는 기본 포인터로 복원 */
@media (max-width: 991px) {
    .drag-wrap .swiper .swiper-wrapper,
    .swiper.drag-wrap .swiper-wrapper,
    .swiper .swiper-wrapper.drag-wrap {
        cursor: pointer !important;
    }
    
    .drag-wrap .swiper .swiper-wrapper a.swiper-slide,
    .drag-wrap .swiper .swiper-wrapper a.swiper-slide * {
        cursor: pointer !important;
    }
    
    .custom-drag-cursor {
        display: none !important;
    }
}

.custom-drag-cursor {
    position: fixed;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--main-btn-point-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .3s ease, height .3s ease, opacity .3s ease;
    opacity: 0;
    z-index: 99999;
    user-select: none;
    pointer-events: none;
    cursor: none;
}

/* ::after 기본 상태 - 항상 존재하지만 투명 */
.custom-drag-cursor::after {
    content: "< DRAG >";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'SUIT', sans-serif;
    color: var(--main-btn-point-color);
    opacity: 0;
    transition: opacity .15s ease;
}

.custom-drag-cursor.active {
    top: 0;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 1px solid var(--main-btn-point-color);
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    transition: width .3s ease, height .3s ease, opacity .3s ease;
    opacity: 1;
}

/* .active일 때 ::after 텍스트 지연 후 표시 */
.custom-drag-cursor.active::after {
    opacity: 1;
    transition: opacity .1s ease .1s;
}

/************************************************************
View More 커서 — 사용: .more-wrap 클래스가 붙은 위젯 (html > thema > FIVESENSES > widget)
************************************************************/
.more-wrap,
.more-wrap img,
a.more-wrap,
.more-wrap a,
.more-wrap a * {
    cursor: none !important;
}

/* 모바일(991px 이하)에서는 기본 포인터로 복원 */
@media (max-width: 991px) {
    .more-wrap,
    .more-wrap img,
    a.more-wrap,
    .more-wrap a,
    .more-wrap a * {
        cursor: pointer !important;
    }
    
    .custom-view-cursor {
        display: none !important;
    }
}

.custom-view-cursor {
    position: fixed;
    transform: translate(-50%, -50%) scale(0.9);
    display: inline-block;
    opacity: 0;
    z-index: 99999;
    user-select: none;
    pointer-events: none;
    cursor: none;
}

.custom-view-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: transform .3s ease;
}

.custom-view-cursor .view-cursor-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.custom-view-cursor .view-cursor-inner .cursor-txt {
    display: inline-block;
    padding: 14px 17px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(14px);
    border-radius: 2.5rem;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    color: var(--main-btn-point-color);
    white-space: nowrap;
}

.custom-view-cursor .view-cursor-inner .cursor-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--main-btn-point-color);
    border-radius: 50%;
}

.search_li > a.search_btn, .search_btn_h { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; box-sizing: border-box; cursor: pointer; }
/* 헤더마다 검색창 높이가 달라 고정 높이 대신 세로 가운데 정렬 */
.fs_hs_scope {
    position: absolute; left: 0; top: 50%; z-index: 12; transform: translateY(-50%);
    width: 72px; height: 28px; margin: 0; padding: 0; box-sizing: border-box; color: #999;
    font: inherit; font-size: 14px; line-height: 28px;
}
.fs_hs_scope::after { content: ""; position: absolute; right: 0; top: 7px; width: 1px; height: 14px; background: currentColor; opacity: .3; pointer-events: none; }
.fs_hs_scope__btn {
    position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; padding: 0; box-sizing: border-box;
    border: 0; border-radius: 0; background: transparent none; color: inherit;
    font: inherit; line-height: 28px; cursor: pointer; outline: none;
    white-space: nowrap; overflow: hidden;
}
.fs_hs_scope .fs_hs_scope__btn { background-image: none !important; position: relative !important; top: auto !important; right: auto !important; left: auto !important; width: 100% !important; height: 100% !important; transform: none !important; }
.fs_hs_scope__btn::after { content: ""; flex: none; width: 5px; height: 5px; margin: -3px 0 0 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.fs_hs_scope__btn:focus-visible { outline: 2px solid var(--main-btn-point-color, #2563eb); outline-offset: -2px; border-radius: 6px; }
.fs_hs_scope__list {
    position: absolute; left: 0; top: calc(100% + 14px); z-index: 30; min-width: 132px; margin: 0; padding: 6px; list-style: none; flex-direction: column; gap: 4px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.fs_hs_scope__list:not([hidden]) { display: flex; }
.fs_hs_scope__list[hidden] { display: none; }
.fs_hs_scope__opt {
    display: flex; align-items: center; min-height: 44px; margin: 0; padding: 0 12px; box-sizing: border-box;
    border-radius: 6px; color: #0c0c0c; font-size: inherit; line-height: 1.3; cursor: pointer; white-space: nowrap; background: transparent;
}
.fs_hs_scope__opt:hover, .fs_hs_scope__list.is-kbd .fs_hs_scope__opt.is-active, .fs_hs_scope__opt:focus-visible { background: #f3f4f6; }
.fs_hs_scope__list.is-kbd:hover .fs_hs_scope__opt.is-active:not(:hover) { background: transparent; }
.fs_hs_scope__opt[aria-selected=true] { font-weight: 600; color: var(--main-btn-point-color, #2563eb); }
.fs_hs_post { margin: 0; padding: 8px 20px; list-style: none; max-height: 420px; max-height: min(420px, calc(100vh - 120px)); overflow-y: auto; overscroll-behavior: contain; }
.m_header .search_preview_box .fs_hs_post { max-height: min(420px, calc(100vh - 110px)); max-height: min(420px, calc(100dvh - 110px)); }
.fs_hs_post .fs_hs_post__row a { display: flex !important; align-items: center; gap: 12px; box-sizing: border-box; width: auto !important; height: auto !important; min-height: 0; margin: 0 -8px; padding: 4px 8px !important; border-radius: 8px; color: #0c0c0c; text-decoration: none; }
.fs_hs_post .fs_hs_post__row + .fs_hs_post__row { border-top: 1px solid #eee; }
.m_header .search_preview_list ul.fs_hs_post .fs_hs_post__row + .fs_hs_post__row { border-top: 1px solid #f5f5f5; }
.m_header .search_preview_list ul.fs_hs_post .fs_hs_post__row a { padding: 6px 8px !important; }
.fs_hs_post .fs_hs_post__row a:hover, .fs_hs_post .fs_hs_post__row a:focus-visible { background: #f7f7f7; }
.fs_hs_post__tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fs_hs_post .fs_hs_post__t, .fs_hs_post .fs_hs_post__m { display: block !important; width: auto !important; }
.fs_hs_post__t { display: block; font-size: 15px; font-weight: 400; line-height: 22px; color: #5d5d5d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs_hs_post__t:only-child { line-height: 30px; }
.m_header .search_preview_list ul.fs_hs_post .fs_hs_post__t { font-weight: 500; }
.m_header .search_preview_list ul.fs_hs_post .fs_hs_post__t:only-child { line-height: 48px; }
.fs_hs_post__t mark { background: transparent; color: inherit; font-weight: 700; }
.fs_hs_post__m { font-size: 12px; font-weight: 400; line-height: 17px; color: #6b6b6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs_hs_post__ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 8px; background: #f2f1f3; color: #19171c; }
.fs_hs_post__ic svg { display: block; width: 16px; height: 16px; }
.fs_hs_post .fs_hs_post__ska { display: flex; align-items: center; gap: 12px; box-sizing: border-box; min-height: 56px; padding: 8px 0; }
.fs_hs_post__skb { display: block; width: 70%; height: 14px; margin: 3px 0; border-radius: 4px; background: #f2f1f3; }
.fs_hs_post__skb--s { width: 40%; height: 10px; }
.fs_hs_post__skt { display: block; flex: none; width: 50px; height: 50px; border-radius: 5px; background: #f2f1f3; }
.fs_hs_post .fs_hs_post__sk .load_blink { background: linear-gradient(90deg, var(--fp-skel-base, #eef0f3) 25%, var(--fp-skel-hi, #f7f7f7) 50%, var(--fp-skel-base, #eef0f3) 75%); background-size: 200% 100%; animation: flow 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .fs_hs_post .fs_hs_post__sk .load_blink { animation: none; background: var(--fp-skel-base, #eef0f3); } }
.m_header .search_preview_list ul.fs_hs_post .fs_hs_post__m, .m_header .search_preview_list ul.fs_hs_post .fs_hs_post__hint, .m_header .search_preview_list ul.fs_hs_post .fs_hs_post__grp, .m_header .search_preview_list ul.fs_hs_post .fs_hs_post__gc { color: #6b6b6b; }
.fs_hs_post__grp { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 0 4px; font-size: 12px; font-weight: 600; line-height: 1.4; color: #6b6b6b; white-space: nowrap; }
.fs_hs_post__gn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fs_hs_post__gc, .m_header .search_preview_list ul.fs_hs_post .fs_hs_post__gc { flex: none; box-sizing: border-box; padding: 2px 8px; border-radius: 4px; background: rgba(37, 99, 235, 0.1); background: color-mix(in srgb, var(--main-btn-point-color, #2563eb) 10%, transparent); color: var(--main-btn-point-color, #2563eb); font-size: 12px; font-weight: 600; line-height: 1.4; }
.m_header .search_preview_list ul.fs_hs_post { padding: 8px 20px 8px 15px; }
.fs_hs_post__hint { padding: 16px 12px; font-size: 14px; color: #6b6b6b; }
.fs_hs_post__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; font-size: 14px; line-height: 1.5; word-break: keep-all; }
.search_preview_box .search_preview_list ul.fs_hs_post > li.fs_hs_post__empty, .m_header .search_preview_list ul.fs_hs_post > li.fs_hs_post__empty { width: 100%; align-self: stretch; color: rgba(25, 23, 28, 0.62); }
.fs_hs_post__empty::before { content: ""; flex: none; width: 41px; height: 41px; background: url(/img/blank_icon.png) center / contain no-repeat; }
.search_preview_box .search_preview_list ul.fs_hs_post > li, .m_header .search_preview_list ul.fs_hs_post > li, .m_header .search_preview_list ul.fs_hs_post > li:last-child { padding: 0; border: 0; }
.search_preview_box .search_preview_list ul.fs_hs_post > li.fs_hs_post__title, .m_header .search_preview_list ul.fs_hs_post > li.fs_hs_post__title { padding: 24px 0 12px; color: #0c0c0c; }
.m_header .search_preview_list ul.fs_hs_post > li.fs_hs_post__title { padding-top: 16px; }
.search_preview_box .search_preview_list ul.fs_hs_post > li.fs_hs_post__hint, .m_header .search_preview_list ul.fs_hs_post > li.fs_hs_post__hint { box-sizing: border-box; min-height: 0; height: auto; margin: 0; padding: 24px 12px; font-size: 14px; font-weight: 400; line-height: 1.5; }
.search_preview_box .search_preview_list ul.fs_hs_post > li.fs_hs_post__grp, .m_header .search_preview_list ul.fs_hs_post > li.fs_hs_post__grp { padding: 10px 0 4px; }
.fs_hs_post__all { margin-top: 12px; }
.search_preview_box .search_preview_list > li.fs_hs_post__all.fs_hs_post__all { padding: 12px 20px 7px; border: 0; margin: 0; }
.m_header .search_preview_list > li.fs_hs_post__all.fs_hs_post__all { padding: 12px 20px 8px 15px; border: 0; margin: 0; }
.search_preview_box .search_preview_list { overflow: hidden; }
.search_preview_box .search_preview_list > li.fs_hs_post__all a, .m_header .search_preview_list > li.fs_hs_post__all a { display: flex !important; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; width: 100%; height: 44px; padding: 0 12px; border-radius: 8px; background: #f3f4f6; font-size: 14px; font-weight: 500; color: #0c0c0c; text-decoration: none; }
.search_preview_box .search_preview_list > li.fs_hs_post__all a::after, .m_header .search_preview_list > li.fs_hs_post__all a::after { content: "\2192"; font-size: 16px; line-height: 1; }
.search_preview_box .search_preview_list > li.fs_hs_post__all a:hover, .m_header .search_preview_list > li.fs_hs_post__all a:hover { background: #e5e7eb; }
.fs_hs_post .fs_hs_post__all a { display: flex !important; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; height: 44px; padding: 0 12px; border-radius: 8px; background: #f3f4f6; font-size: 14px; font-weight: 500; color: #0c0c0c; text-decoration: none; }
.fs_hs_post .fs_hs_post__all a::after { content: "\2192"; font-size: 16px; line-height: 1; }
.fs_hs_post .fs_hs_post__all a:hover, .fs_hs_post .fs_hs_post__all a:focus-visible { background: #e5e7eb; }
.search_preview_box .search_preview_list ul.fs_hs_post:has(> li.fs_hs_post__title) { padding: 0 20px 24px; }
.m_header .search_preview_list ul.fs_hs_post:has(> li.fs_hs_post__title) { padding: 0 20px 16px 15px; }
.search_preview_box .search_preview_list ul.fs_hs_post:has(> li.fs_hs_post__all) { padding-bottom: 7px; }
.m_header .search_preview_box .search_preview_list ul.fs_hs_post:has(> li.fs_hs_post__all) { padding-bottom: 8px; }
.fs_hs_post__title { padding: 8px 0 12px; font-size: 15px; line-height: 1.2; font-weight: 700; color: #0c0c0c; }
/* 헤더 스킨별 검색 placeholder 색(기본 #999·투명 #fff·SHD3 #0c0c0c)과 통일 */
.header03 .search_box .fs_hs_scope { color: #0c0c0c; }
/* 투명 placeholder #fff 지정 헤더 한정, SHD19 등 미지정 헤더는 기본 #999 유지 */
.at-header.transparent_H:is(.header01, .header03, .header06, .header11, .header12, .header13, .header14, .header15, .header16, .header17, .header18) .search_box .fs_hs_scope,
.at-header.transparent_H.m_header03 > .msearch_box .fs_hs_scope { color: #fff; }
/* input 왼쪽 여백(96·120·128·모바일 82·108·116)은 첫 화면 폭 고정을 위해 shop.head.php 의 style 한 곳에만 둔다 */
:has(> .fs_hs_scope) { position: relative; }
/* 모바일 SMHD3·SMHD5·MHD4 좌측 돋보기 아이콘 회피 */
.m_header03 > .msearch_box .fs_hs_scope, .m_header04 .m_header > .msearch_box .fs_hs_scope { left: 30px; }
/* SMHD5 기존 placeholder 시작점(input padding-left 36px)에 셀렉트 글자 정렬 */
.at-header.m_header05 .msearch_box .fs_hs_scope { left: 36px; }
.at-header.m_header05 .msearch_box .fs_hs_scope { width: 72px; }
@media (max-width: 767px) {
    .fs_hs_scope { width: 65px; font-size: 13px; }
    .at-header.m_header05 .msearch_box .fs_hs_scope { width: 65px; }
    .fs_hs_scope__btn { padding: 0; }
    /* 모바일 SMHD3~5 검색 input 13px 과 통일 */
    .at-header.mob .msearch_box .fs_hs_scope { font-size: 12px; }
    .at-header.m_header04 .m_header > .msearch_box .fs_hs_scope { font-size: 13px; }
}
/* 헤더 언어 선택이 검색창·메뉴(z-index 10~12)에 가려 클릭 불가로 상위 노출, 펼침 시 상위 영역까지 올림 */
.at-header .lang_btn_box { z-index: 100 !important; }
.at-header :is(.lnb_box, .lnb_list > li, .lang_btn_li, .btn_menu_wrap, .right_menu):has(.lang_btn_box.active) { z-index: 100 !important; }

html.onsearch .m_header .i18n_hs_li { display: none !important; }
