/* =====================================================
   띠용 — 꼬망세몰(nstore.edupre.co.kr) 벤치마킹 스타일
   폰트: Pretendard / 액센트: #e19b54(포인트) #4B99FF(카테고리·탭)
   ===================================================== */
:root {
    --accent: #e19b54;
    --accent2: #4B99FF;
    --sale: #e5493a;
    --text: #666;
    --text-dark: #333;
    --text-strong: #000;
    --text-muted: #888;
    --text-light: #aaa;
    --border: #eee;
    --border2: #f0f0f0;
    --footer-bg: #3A3A3A;
}

* { box-sizing: border-box; }

html { width: 100%; height: 100%; font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.3px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
ul, ol, li { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 0; font-weight: normal; }
button, input { font-family: inherit; }

.layout_fix { max-width: 1280px; margin: 0 auto; padding: 0 20px; box-sizing: content-box; }

/* 스크린리더 전용 (배너 대체 텍스트 등) */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── 좌측 플로팅 세로 배너 ─────────────────────────── */
/* 본문(.layout_fix = 1280 + 좌우 20 = 1320) 바깥 왼쪽에 붙인다.
   left를 화면 중앙 기준으로 잡아야 창 크기가 변해도 본문과 간격이 유지된다. */
.fixed_left_banner {
    position: fixed;
    left: 50%;
    margin-left: -782px;   /* -(1320/2 + 110 + 12) */
    top: 50%;
    transform: translateY(-50%);
    z-index: 140;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 110px;
}
/* 메인 키비주얼 아래에 얹혀 있는 상태 (top은 JS가 인라인으로 지정) */
.fixed_left_banner.is_docked {
    position: absolute;
    transform: none;
}
.fixed_left_banner .banner_item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}
.fixed_left_banner .banner_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
}
.fixed_left_banner .banner_item img { display: block; width: 100%; height: auto; }

/* 1564px 미만에서는 본문 옆 공간이 배너 폭보다 좁아진다.
   화면 왼쪽 끝에 붙여 계속 노출하되, 본문을 가리지 않도록 폭을 줄인다. */
@media (max-width: 1563px) {
    .fixed_left_banner { left: 8px; margin-left: 0; width: 88px; }
}
/* 이보다 좁으면 본문을 침범하므로 숨긴다 */
@media (max-width: 1180px) {
    .fixed_left_banner { display: none; }
}

/* ── 최상단 유틸리티 바 ───────────────────────────── */
.top-line { background: #000; }
.top-line-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.top-line-left, .top-line-right { display: flex; gap: 16px; }
.top-line-left a, .top-line-right a { color: #ccc; font-size: 12px; }
.top-line-left a:hover, .top-line-right a:hover { color: #fff; }

/* ── 헤더 ──────────────────────────────────────────── */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border2);
    position: sticky;
    top: 0;
    z-index: 350;
}
.site-header.is-stuck { box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }

/* 헤더는 한 덩어리의 flex 바다.
   기본 상태에서는 .header-break(width:100%)가 줄을 갈라 2단으로 보이고,
   스크롤 고정(.is-stuck) 시 break가 사라지면서 한 줄로 합쳐진다. */
.header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 30px;
}
/* 줄바꿈 겸 두 줄 사이 구분선 */
.header-break {
    width: 100%;
    height: 0;
    border-top: 1px solid var(--border2);
}

/* 1단: 로고 · 검색 · 아이콘 / 2단: 카테고리 · 대분류 · 우측메뉴 */
.header-logo, .header-search-wrap, .header-icons { height: 90px; }
.btn-category, .header-nav { height: 54px; }

.header-logo { order: 1; }
.header-search-wrap { order: 2; }
.search-toggle { order: 3; }
.header-icons { order: 4; }
.header-break { order: 5; }
.btn-category { order: 6; }
.header-nav { order: 7; }

.search-toggle { display: none; }

.header-logo a {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}
.header-logo img { height: 26px; display: block; }

.header-search-wrap { flex: 1; max-width: 520px; position: relative; display: flex; align-items: center; }

.header-search {
    width: 100%;
    display: flex;
    align-items: center;
    background: #f5f5f6;
    border-radius: 100px;
    height: 44px;
    padding: 0 6px 0 20px;
}
.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text-strong);
    height: 100%;
}
.header-search input::placeholder { color: #bbb; }
.header-search button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--text-strong);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* 검색창 포커스 레이어 (꼬망세몰 검색팝업 참고) */
.search-popup {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 420px;
    max-width: min(420px, 92vw);
    z-index: 400;
}
.search-popup.is-active { display: block; }
.search-popup-content {
    background: #fff;
    border: 1px solid var(--border2);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.search-section { margin-bottom: 18px; }
.search-section:last-child { margin-bottom: 0; }
.search-section .section-title { font-size: 14px; font-weight: 700; color: var(--text-strong); margin: 0 0 10px; }
.search-section .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.search-section .section-header .section-title { margin: 0; }
.clear-all {
    display: flex; align-items: center; gap: 4px; border: none; background: none;
    font-size: 12px; color: var(--text-muted); cursor: pointer; padding: 0;
}
.clear-all:hover { color: var(--text-dark); }

.search-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 100px;
    background: #f5f5f6; font-size: 13px; color: var(--text-dark);
    border: none; font-family: inherit; cursor: pointer;
}
.tag-item:hover { background: var(--accent2); color: #fff; }

.recent-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-keywords .empty-note { font-size: 13px; color: var(--text-light); margin: 4px 0; }
.recent-keyword {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; border-radius: 100px;
    background: #f5f5f6; font-size: 13px; color: var(--text-dark);
}
.recent-keyword .keyword-text {
    border: none; background: none; font-family: inherit; font-size: 13px; color: var(--text-dark); cursor: pointer; padding: 0;
}
.recent-keyword .remove-keyword {
    border: none; background: none; color: var(--text-light); font-size: 15px; line-height: 1;
    cursor: pointer; display: flex; padding: 0;
}
.recent-keyword .remove-keyword:hover { color: var(--sale); }

.popular-keywords { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.popular-keywords .keyword-item {
    display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 13px; color: var(--text-dark);
    width: 100%; border: none; background: none; font-family: inherit; text-align: left; cursor: pointer;
}
.popular-keywords .keyword-item .rank { width: 16px; font-weight: 700; color: var(--accent2); font-size: 12px; }
.popular-keywords .keyword-item:nth-child(-n+3) .rank { color: var(--sale); }
.popular-keywords .keyword-item:hover .text { color: var(--accent2); }

.header-icons { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-icons .icon-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: var(--text-dark);
    position: relative;
    border-radius: 50%;
}
.header-icons .icon-link:hover { background: #f7f7f7; }
.header-icons .cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-strong);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── 내비게이션 바 ─────────────────────────────────── */
.header-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 320;
}

.btn-category {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 100px;
    background: var(--accent2);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}
.btn-category i { font-size: 16px; }

.nav-menu { flex: 1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav-menu a { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--text-dark); padding: 8px 0; }
.nav-menu a i { font-size: 16px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.nav-menu a:hover { color: var(--accent); }
.nav-menu a:hover i { transform: translateY(-2px) scale(1.15); }

.nav-menu-right { display: flex; align-items: center; gap: 18px; flex: none; }
.nav-menu-right a { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.nav-menu-right a:hover { color: var(--accent); }

/* ── 스크롤 고정 시 한 줄 헤더 ─────────────────────────
   [☰] [로고]  [ 대분류 메뉴(가운데) ]  [🔍] [아이콘] */
.site-header.is-stuck .header-break { display: none; }
.site-header.is-stuck .header-bar { column-gap: 20px; height: 64px; flex-wrap: nowrap; }
.site-header.is-stuck .header-logo,
.site-header.is-stuck .header-icons,
.site-header.is-stuck .header-nav { height: 64px; }

/* 순서 재배치 */
.site-header.is-stuck .btn-category { order: 1; }
.site-header.is-stuck .header-logo { order: 2; }
.site-header.is-stuck .header-nav { order: 3; }
.site-header.is-stuck .search-toggle { order: 4; display: flex; }
.site-header.is-stuck .header-icons { order: 5; }

/* 카테고리 버튼 → 햄버거 아이콘만 */
.site-header.is-stuck .btn-category {
    width: 42px; height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
}
.site-header.is-stuck .btn-category .btn-category-label { display: none; }
.site-header.is-stuck .btn-category i { font-size: 20px; }

/* 대분류 메뉴 가운데 정렬, 우측 보조메뉴는 자리 확보를 위해 숨김 */
.site-header.is-stuck .header-nav { justify-content: center; }
.site-header.is-stuck .nav-menu { flex: none; justify-content: center; flex-wrap: nowrap; gap: 20px; }
.site-header.is-stuck .nav-menu a { font-size: 14px; white-space: nowrap; }
.site-header.is-stuck .nav-menu-right { display: none; }

.site-header.is-stuck .header-logo img { height: 22px; }
.site-header.is-stuck .header-icons .icon-link { width: 40px; height: 40px; font-size: 19px; }

/* 검색창은 토글로 — 평소엔 접혀 있고 버튼을 누르면 헤더 아래로 펼쳐진다.
   규격·호버 효과는 우측 아이콘(.icon-link)과 동일하게 맞춘다. */
.search-toggle {
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    padding: 0;
    border: none; border-radius: 50%;
    background: none;
    color: var(--text-dark);
    font-size: 21px;
    cursor: pointer;
    flex: none;
}
.search-toggle:hover { background: #f7f7f7; }
.site-header.is-stuck .search-toggle { width: 40px; height: 40px; font-size: 19px; }
.site-header.is-stuck.is-search-open .search-toggle { background: #f0f0f0; }

.site-header.is-stuck .header-search-wrap { display: none; }
.site-header.is-stuck.is-search-open .header-search-wrap {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 100%;
    max-width: none;
    height: auto;
    padding: 14px 20px;
    background: #fff;
    border-top: 1px solid var(--border2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
}
.site-header.is-stuck.is-search-open .header-search { max-width: 720px; margin: 0 auto; }
.site-header.is-stuck.is-search-open .search-popup { left: 50%; transform: translateX(-50%); }

@media (max-width: 1100px) {
    .site-header.is-stuck .nav-menu a span { display: none; }
    .site-header.is-stuck .nav-menu a i { font-size: 20px; }
}

/* ── 본문 공통 ─────────────────────────────────────── */
.main-content { min-height: 60vh; }

.section { margin-top: 60px; }
.section .layout_fix { }
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}
.section-title h2 { font-size: 24px; font-weight: 800; color: var(--text-dark); }
.section-title .more { font-size: 13px; color: var(--text-muted); }
.section-title .more:hover { color: var(--accent); }

/* 카테고리 pill 탭 (BEST 랭킹류) */
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pill-tabs a, .pill-tabs button {
    height: 36px;
    padding: 0 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.pill-tabs a.active, .pill-tabs button.active {
    background: var(--accent2);
    border-color: var(--accent2);
    color: #fff;
    font-weight: 700;
}

/* 카테고리 트리 (카테고리 페이지) */
.category-tree ul { padding-left: 18px; }
.category-tree > ul { padding-left: 0; }
.category-tree li { padding: 6px 0; }
.category-tree > ul > li > a { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.category-tree ul ul > li > a { font-size: 14px; font-weight: 500; color: var(--text); }
.category-tree ul ul ul > li > a { font-size: 13px; color: var(--text-muted); }
.category-tree a:hover { color: var(--accent); }
.badge-featured { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--accent2); border: 1px solid var(--accent2); border-radius: 3px; padding: 1px 6px; }

/* 상품 그리드 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 20px; }
.product-card a { display: block; }
.product-card .thumb {
    aspect-ratio: 1/1;
    background: #f5f5f6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 12px;
}
.product-card .name { font-size: 14px; color: var(--text-dark); line-height: 1.4; margin-bottom: 6px; }
.product-card .status { font-size: 12px; color: var(--text-muted); }

/* 테이블 (마이페이지류) */
table { width: 100%; border-collapse: collapse; }
table th, table td { border-bottom: 1px solid var(--border); padding: 12px 8px; text-align: left; font-size: 13px; }
table th { color: var(--text-muted); font-weight: 600; }

/* 폼 */
.form-box { max-width: 380px; margin: 60px auto; }
.form-box h2 { font-size: 24px; font-weight: 800; color: var(--text-dark); text-align: center; margin-bottom: 30px; }
.form-box input, .form-box textarea {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 0 16px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.form-box textarea { height: auto; padding: 12px 16px; }
.form-box input:focus, .form-box textarea:focus { border-color: var(--accent); }
.form-box button {
    width: 100%;
    height: 48px;
    background: var(--text-strong);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
}
.form-box .sns-row { display: flex; gap: 8px; margin: 14px 0; }
.form-box .sns-row button { background: #fee500; color: #191919; font-size: 13px; height: 40px; }
.form-box .sns-row button:last-child { background: #03c75a; color: #fff; }
.form-box .link-row { text-align: center; margin-top: 16px; font-size: 13px; }
.form-box .link-row a { color: var(--text-muted); }
.form-box .link-row a:hover { color: var(--accent); }

.wip-notice {
    margin: 20px 0;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 8px;
    font-size: 13px;
}

/* ── 푸터 ──────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: #999; margin-top: 100px; padding: 40px 0 60px; }
.footer-menu { display: flex; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid #4a4a4a; padding-bottom: 20px; margin-bottom: 20px; }
.footer-menu a { color: #fff; font-size: 13px; }
.footer-menu a:hover { color: var(--accent); }
.footer-menu a.footer-privacy { font-weight: 700; text-decoration: underline; }
.footer-site-name { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.footer-copyright { margin-top: 16px; color: #777; font-size: 12px; }

/* 사업자 정보 + 결제 안내 2단 */
.footer-body { display: flex; gap: 40px; align-items: flex-start; }
.footer-company { flex: 1; min-width: 0; }
.footer-company .fc_txt {
    font-size: 12px;
    line-height: 1.9;
    color: #999;
}
.footer-company .fc_label {
    display: inline-block;
    min-width: 108px;
    color: #777;
}
.footer-company .fc_txt a { color: #bbb; }
.footer-company .fc_txt a:hover { color: #fff; }
.footer-company .fc_tel { font-weight: 700; color: #fff; }
.footer-company .fc_note { margin-left: 8px; color: #777; }
.footer-company .fc_link {
    margin-left: 8px;
    padding: 1px 8px;
    border: 1px solid #555;
    border-radius: 100px;
    font-size: 11px;
}
.footer-company .fc_link:hover { border-color: #888; }

.footer-auth { flex: none; width: 340px; }
.footer-auth .fa_guide {
    font-size: 12px;
    line-height: 1.7;
    color: #999;
    padding: 14px 16px;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
}
.footer-auth .fa_pay { margin-top: 12px; font-size: 12px; line-height: 1.7; }
.footer-auth .fa_pay_label { display: block; color: #777; }
.footer-auth .fa_pay_list { color: #bbb; }

@media (max-width: 900px) {
    .footer-body { flex-direction: column; gap: 24px; }
    .footer-auth { width: 100%; }
    .footer-company .fc_label { min-width: 92px; }
}

@media (max-width: 900px) {
    .header-top-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
    .header-search { order: 3; width: 100%; max-width: none; margin-top: 10px; }
    .nav-menu { display: none; }
    .nav-menu-right { margin-left: auto; }
}

/* ── 전체 카테고리 (좌측 슬라이드 패널) ─────────────────── */
.p_Slide .slide_in {
    position: fixed;
    left: 0; top: 0;
    width: 100%; max-width: 430px; height: 100%;
    background: #fff;
    overflow-y: auto;
    padding-bottom: 40px;
    transform: translateX(-100%);
    transition: transform .25s ease-out;
    z-index: 401;
}
.p_Slide .slide_layout { padding: 0 30px; }
.p_Slide .slide_bg {
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, .6);
    z-index: 399;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease-out;
}
.p_Slide.if_open_slide .slide_in { transform: translateX(0); }
.p_Slide.if_open_slide .slide_bg { opacity: 1; visibility: visible; }

.p_Slide .slide_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.p_Slide .slide_head .tit { font-size: 20px; font-weight: 700; color: var(--text-strong); }
.p_Slide .slide_head .btn_close {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    margin-right: -10px;
    background: none; border: none;
    font-size: 24px; color: var(--text-strong);
    cursor: pointer;
}

.p_Slide .my_info .member_link { display: flex; gap: 1px; }
.p_Slide .my_info .member_link li { flex: 1; }
.p_Slide .my_info .member_link .btn {
    display: flex; align-items: center; justify-content: center;
    height: 40px;
    background: var(--footer-bg);
    border: 1px solid var(--footer-bg);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.p_Slide .my_info .member_link .btn:hover { background: var(--text-strong); }

.p_Slide .category {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 10px solid #f2f2f2;
}
.p_Slide .category .li.empty { padding: 20px 0; color: var(--text-muted); }
.p_Slide .category .first_ctg {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.p_Slide .category .li:last-of-type .first_ctg { border-bottom: none; }
.p_Slide .category .first_ctg .ctg_name {
    flex: auto;
    display: flex; align-items: center; gap: 10px;
    height: 50px;
    font-size: 15px; font-weight: 500; color: var(--footer-bg);
}
.p_Slide .category .first_ctg .ctg_name i { font-size: 18px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.p_Slide .category .first_ctg .ctg_name:hover { color: var(--accent2); }
.p_Slide .category .first_ctg .ctg_name:hover i { transform: translateY(-2px) scale(1.15); }
.p_Slide .category .btn_open {
    width: 40px;
    background: none; border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: transform .3s ease-out, color .3s ease-out;
}
.p_Slide .category .li.if_open_sd_cate .btn_open { transform: rotate(180deg); color: var(--text-strong); }
.p_Slide .category .li.if_open_sd_cate .first_ctg .ctg_name { color: var(--accent2); }

.p_Slide .category .second_ctg { background: #f9f9f9; }
.p_Slide .category .second_ctg ul { transition: padding .3s ease-out; }
.p_Slide .category .second_ctg li {
    height: 0;
    overflow: hidden;
    transition: height .3s ease-out;
}
.p_Slide .category .second_ctg .ctg_name {
    display: flex; align-items: center;
    height: 30px;
    padding: 0 15px;
    font-size: 14px; font-weight: 500; color: var(--text-dark);
    line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p_Slide .category .second_ctg li.depth3 .ctg_name { padding-left: 30px; font-size: 13px; color: var(--text-muted); }
.p_Slide .category .second_ctg .ctg_name:hover { color: var(--accent2); }
.p_Slide .category .li.if_open_sd_cate .second_ctg { border-bottom: 1px solid var(--border); }
.p_Slide .category .li.if_open_sd_cate .second_ctg ul { padding: 10px 0; }
.p_Slide .category .li.if_open_sd_cate .second_ctg li { height: 30px; }

.p_Slide .category.type_etc .first_ctg .ctg_name { font-size: 14px; color: var(--text-muted); height: 44px; }

@media (max-width: 640px) {
    .p_Slide .slide_in { max-width: 100%; }
    .p_Slide .slide_layout { padding: 0 20px; }
}

/* ── 우측 하단 플로팅 (최근 본 상품 / 맨 위로) ──────────────── */
.p_Fly {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 150;
}
.p_Fly .btn_recent {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    height: 50px;
    padding: 0 10px 0 15px;
    border: 1px solid #ccc;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, .9);
    backdrop-filter: blur(5px);
    cursor: pointer;
    z-index: 2;
    transition: all .3s ease-out;
}
.p_Fly .btn_recent:hover { border-color: var(--text-dark); }
.p_Fly .btn_recent .tx { font-size: 14px; font-weight: 600; color: var(--text-dark); white-space: nowrap; }
.p_Fly .btn_recent .thumb {
    flex: none;
    width: 30px; height: 30px;
    margin-left: 5px;
    border-radius: 100px;
    overflow: hidden;
    position: relative;
    background: #f1f1f2 no-repeat center / cover;
}
.p_Fly .btn_recent .thumb::before {
    content: '';
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, .15);
}
.p_Fly:not(.if_recent) .btn_recent .thumb { display: none; }
.p_Fly:not(.if_recent) .btn_recent { padding: 0 15px; }
/* 맨 위로 — 화면 오른쪽 바깥에서 안쪽으로 밀려 들어온다 */
.p_Fly .go_top {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #ccc;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, .8);
    backdrop-filter: blur(5px);
    color: var(--text-dark);
    font-size: 22px;
    cursor: pointer;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(100% + 20px));
    transition: transform .3s ease-out, opacity .3s ease-out, visibility .3s, border-color .2s ease-out;
}
.p_Fly .go_top:hover { border-color: var(--text-dark); }
.p_Fly.if_scroll .btn_recent { right: 60px; }
.p_Fly.if_scroll .go_top { opacity: 1; visibility: visible; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
    .p_Fly .go_top { transition: opacity .2s ease-out, visibility .2s; transform: none; }
}

/* ── 최근 본 상품 레이어 (우측 슬라이드) ─────────────────── */
.p_Recent .layer_in {
    position: fixed;
    right: 0; top: 0;
    width: 100%; max-width: 430px; height: 100%;
    padding: 0 30px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transform: translateX(100%);
    transition: all .25s ease-out;
    z-index: 400;
}
.p_Recent .layer_tit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--text-strong);
}
.p_Recent .layer_tit .tit { font-size: 20px; font-weight: 700; color: var(--text-strong); }
.p_Recent .layer_tit .tit em { font-style: normal; color: var(--accent2); }
.p_Recent .tit_btns { display: flex; align-items: center; gap: 10px; }
.p_Recent .tit_btns button { background: none; border: none; cursor: pointer; color: var(--text-muted); }
.p_Recent .tit_btns .btn_clear { font-size: 12px; }
.p_Recent .tit_btns .btn_close { font-size: 22px; line-height: 1; color: var(--text-strong); margin-right: -6px; }
.p_Recent .tit_btns button:hover { color: var(--accent2); }

.p_Recent .layer_cont {
    flex: auto;
    overflow-y: auto;
    margin: 0 -30px;
    padding: 0 30px 50px;
}
.p_Recent .recent_li { margin-top: 10px; }
.p_Recent .recent_li li + li { border-top: 1px solid var(--border); }
.p_Recent .recent_empty { padding: 60px 0; text-align: center; color: var(--text-muted); font-size: 13px; }

.p_Recent .recent_item {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
}
.p_Recent .recent_item .thumb {
    flex: none;
    width: 80px; height: 80px;
    margin-right: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: #fafafa;
    display: flex; align-items: center; justify-content: center;
}
.p_Recent .recent_item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.p_Recent .recent_item .thumb .no_img { color: var(--text-light); font-size: 22px; }
.p_Recent .recent_item .info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 10px;
}
.p_Recent .recent_item .item_name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.p_Recent .recent_item .item_name:hover { color: var(--accent2); }
.p_Recent .recent_item .list_price {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}
.p_Recent .recent_item .price {
    display: flex; align-items: baseline; gap: 5px;
    margin-top: 2px;
    font-size: 15px;
    color: var(--text-strong);
}
.p_Recent .recent_item .price .sale_rate { color: var(--sale); font-weight: 700; }
.p_Recent .recent_item .price .won { font-weight: 700; }
.p_Recent .recent_item .price .won_t { font-size: .9em; font-weight: 600; }
.p_Recent .recent_item .quick_btn {
    position: absolute;
    right: 0; bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.p_Recent .recent_item .quick_btn .btn {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none;
    color: var(--text-light);
    font-size: 17px;
    cursor: pointer;
    transition: color .2s ease;
}
.p_Recent .recent_item .quick_btn .btn:hover { color: var(--text-strong); }
.p_Recent .recent_item .quick_btn .btn_wish.on,
.p_Recent .recent_item .quick_btn .btn_cart.on { color: var(--sale); }

.p_Recent .bg_close {
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, .6);
    z-index: 399;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease-out;
}
.p_Recent.if_open_recent { z-index: 400; }
.p_Recent.if_open_recent .layer_in { transform: translateX(0); }
.p_Recent.if_open_recent .bg_close { opacity: 1; visibility: visible; }

@media (max-width: 640px) {
    .p_Fly { right: 12px; bottom: 12px; }
    .p_Recent .layer_in { max-width: 100%; padding: 0 20px; }
    .p_Recent .layer_cont { margin: 0 -20px; padding: 0 20px 50px; }
}
