.page,
.page.no_banner {
    padding-top: var(--page-gap);
}
.page_grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 80px;
}
.sec_title {
    font-size: var(--ft20);
    color: var(--gray-700);
    font-weight: var(--semi-bold);
    margin-bottom: 24px;
}

/*-------- sidebar -------- */
/* 게임카드 */
.game_profile_card {
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.game_profile_thumb {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.game_profile_title {
    font-size: var(--ft18);
    color: var(--gray-700);
    font-weight: var(--semi-bold);
}
.game_profile_btns {
    display: flex;
    align-items: center;
    gap: 10px;
}
.game_profile_btns a {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
}
.game_profile_btns .sell_btn {
    background: var(--primary);
}
.game_profile_btns .guide_btn {
    background: var(--gray-500);
}

/* 광고 */
.side_ad_bnr {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 40px;
}

/* ----------- 필터 ----------- */
.page {
    overflow: visible;
}
.filter_form {
    position: sticky;
    --top: 120px;
    top: var(--top);
    display: flex;
    z-index: 2;
    flex-direction: column;
    max-height: calc(100vh - var(--top));
}
.filter_btn {
    display: none;
}
.filter_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.filter_panel {
    max-height: 100%;
    overflow: auto;
    margin-bottom: 20px;
}
.filter_panel.scroll::-webkit-scrollbar {
    width: 3px;
}

/* 검색 */
.item_search_box {
    width: 100%;
}
.mobile_filter_keyword_box {
    display: none;
}
.item_tag_search_btn {
    display: flex;
    align-items: center;
    font-size: var(--ft16);
    font-weight: var(--medium);
    gap: 6px;
    padding: 10px;
    cursor: pointer;
    position: relative;
}
.select_btn + .item_tag_search_btn {
    margin-top: 12px;
}
.select_btn + .item_tag_search_btn::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--dark-line);
    transform: translateY(-6px);
}
.item_tag_search_btn:hover {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}
.item_tag_search_btn .icon {
    width: 18px;
    height: 18px;
    background: var(--tag);
    mask: url('/images/icon/search.svg') no-repeat center / contain;
    -webkit-mask: url('/images/icon/search.svg') no-repeat center / contain;
}
.item_tag_search_btn .keyword {
    color: var(--tag);
}
.item_tag_search_btn .text {
    color: var(--gray-500);
}

/* 필터초기화 */
.filter_box {    
    border-bottom: 1px solid var(--dark-line);
    padding: 0px 10px;
}
.filter_main {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter_toggle {
    cursor: pointer;
}
.filter_toggle::after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background: var(--gray-500);
    mask: url('/images/icon/down.svg') no-repeat center / cover;
    -webkit-mask: url('/images/icon/down.svg') no-repeat center / cover;
    transition: transform .4s ease;
}
.filter_toggle.open::after {
    transform: rotate(180deg);
}

.filter_title {
    flex: 1 0 0;
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
    color: var(--gray-600);
}
.filter_reset_btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--dark-line);
    border-radius: var(--radius-sm);
}


.filter_reset_btn::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    background: var(--gray-500);
    mask: url('/images/icon/refresh.svg') no-repeat center / contain;
    -webkit-mask: url('/images/icon/refresh.svg') no-repeat center / contain;    
}

.filter_reset_btn:hover:not(.on)::after {
    transform: rotate(30deg);
    transition: transform .2s ease;
}
.filter_reset_btn.on::after {
    transform: rotate(1turn);
    transition: transform .4s ease;
}
.filter_reset_btn.on {
    pointer-events: none;
}

.filter_con {
    padding-bottom: 30px;
    display: none;
}
.radio_group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.radio_btn input:checked + label {
    background: var(--primary);
    border-color: transparent;
}
.radio_btn input:checked + label p {
    color: white;
}
.radio_btn label {
    padding: 10px 20px;
    border-radius: 99px;
    border: 1px solid var(--dark-line);    
    transition: background .4s ease;
}
.radio_btn label p {
    color: var(--gray-500);
    font-size: var(--ft14);
    font-weight: var(--medium);
}

.radio_btn label:hover {
    background: var(--primary-bg);
}
.radio_btn.active label {
    background: var(--primary);
    border-color: transparent;
}

.radio_btn.active label p {
    color: white;
}

/* 가격 */


.f_price_range_wrap {
    padding-top: 10px;
}

.f_price_slider {
    /* height: 40px; */
    position: relative;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.f_price_track {
    width: 100%;
    height: 3px;
    position: relative;
    border-radius: 9px;
    background: var(--gray-200);
}
.f_price_range {
    height: 100%;
    border-radius: 9px;
    position: absolute;
    left: 0;
    right: 0;
    background: var(--primary);
}
.f_price_range::before,
.f_price_range::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    position: absolute;
}
.f_price_range::before {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}
.f_price_range::after {
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);   
}
:hover,
.f_price_range::after:hover {
    scale: 1.2;
}

.f_price_input {
    position: absolute;
    left: 0;
    width: 100%;
    margin: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    transform: scale(1);
}
.f_price_input::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    background: transparent;
}
.f_price_input::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    /* background: transparent; */
}


.f_price_input::-webkit-slider-runnable-track,
.f_price_input::-moz-range-track {
    height: 3px;
    background: transparent;
}

.f_price_label {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: var(--ft14);
    color: var(--gray-400);
}
.f_price_label span {
    font-size: inherit;
    color: inherit;
}

.f_price_value_box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: var(--ft14);
    color: var(--gray-500);
}

.f_price_value {
    display: flex;
    align-items: center;
    max-width: 200px;
    flex: 1 0 0;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    
}

.f_price_value input {
    width: 100%;
    font-size: inherit;
    color: inherit;
    font-weight: var(--semi-bold);
}

.f_price_value span {
    margin-left: 10px;
    font-size: inherit;
    color: inherit;
}

/* 옵션 */
.option_group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.option_box {
    width: 100%;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    position: relative;
    padding: 8px;
}
.option_title {
    color: var(--gray-600);
    font-size: var(--ft14);
    font-weight: var(--medium);
    padding: 8px;
}
.option_select {
    margin-bottom: 8px;
}
.option_select .select_main {
    border-color: transparent;
    background: var(--bg);
}
.option_minmax {
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    gap: 4px;
}
.option_value {
    width: 100%;
    height: 44px;
    flex: 1 0 0;
    padding: 0 20px;
    background: var(--bg);
    text-align: center;
}
.option_value:first-child {
    border-right: 1px solid var(--dark-line);
}
.option_value input {
    text-align: center;
    font-size: var(--ft16);
}
.option_delete {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 8px;
    right: 8px;
    border-radius: var(--radius-xs);
    background: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.option_delete:hover {
    background: var(--gray-400);
}
.option_delete::after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background: white;
    mask: url('/images/icon/close.svg') no-repeat center / contain;
    -webkit-mask: url('/images/icon/close.svg') no-repeat center / contain;
}
.option_plus {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius-sm);
    padding: 10px;
    background: var(--gray-400);
    margin-top: 12px;
}
.option_plus p {
    font-size: var(--ft16);
    color: white;
    font-weight: var(--medium);
}
.option_plus .icon {
    width: 16px;
    height: 16px;
}

/* 검색 */
.filter_search_btn {
    width: 100%;
    height: 50px;    
    margin-top: 20px;
    flex-shrink: 0;
}
.filter_search_btn p {
    font-weight: var(--semi-bold);
    font-size: var(--ft16);
}

/* ----------- page_top ----------- */
.page_top {
    margin-bottom: 100px;
}
.page_tab {
    border-bottom: 1px solid var(--dark-line);
    display: flex;
    gap: 20px;
}
.page_tab a {
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.page_tab p {
    font-size: var(--ft20);
    font-weight: var(--semi-bold);
    color: var(--gray-700);
    opacity: .3;
}
.page_tab .active p {
    opacity: 1;
}
.page_tab .active a {
    border-bottom: 1px solid var(--gray-700);
}
.page_tab .mark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(142deg, var(--primary-gradient)), #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
}
.page_tab li:not(.active) .mark {
    background: var(--gray-300);
}
.page_tab .mark img {
    width: 14px;
    height: 14px;
}

.page_header {
    width: 100%;
    margin-top: 24px;
    border-radius: var(--radius-lg);
    background-color: var(--primary-bg-light);
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ph_l {
    display: flex;
    align-items: center;
    gap: 24px;
}
.ph_logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}
.ph_l p:first-child {
    margin-bottom: 10px;
    font-size: var(--ft18);
    font-weight: var(--semi-bold);
    color: var(--gray-700);
}
.ph_l p:last-child {
    color: var(--gray-500);
}
.page_header .btn_shrink {
    width: fit-content;
    padding: 12px 20px;
}
.game_profile_action_balance {
    display: none;
}

/* ----------- 판매물품목록 ----------- */
/* 최근판매내역 */
.recent_sales_sec {
    margin-bottom: 100px;
}
.rs_box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    border: 1px solid var(--dark-line);
    border-radius: var(--radius-md);
    background: var(--bg);
}
.rs_item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rs_item_thumb {
    width: 44px;
    aspect-ratio: 1;
    border-color: var(--gray-100);
    background: var(--gray-100);
}
.rs_item_name {
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
    color: var(--gray-700);
}
.rs_item_label {
    margin-left: auto;
    font-size: var(--ft14);
    font-weight: var(--medium);
    color: var(--gray-500);
}
.rs_item_price {
    font-size: var(--ft22);
    font-weight: var(--semi-bold);
    color: var(--gray-700);
}

.recent_trend {
    --trend-surface-start: #fff;
    --trend-surface-end: #fffcf8;
    --trend-border: #f0e3d7;
    --trend-shadow: 0 12px 32px rgba(249, 150, 52, .08);
    --trend-thumb-border: #f1e4d7;
    --trend-baseline: #f3e8dd;
    --trend-point-ring: #fff;
    --trend-value-bg: rgba(255, 255, 255, .94);
    --trend-value-border: #f1e4d7;
    --trend-value-shadow: 0 2px 7px rgba(96, 57, 20, .06);
    --trend-tooltip-bg: rgba(23, 43, 77, .96);
    --trend-tooltip-border: transparent;
    --trend-area-start-opacity: .26;
    --trend-area-end-opacity: .02;
    position: relative;
    overflow: hidden;
    padding: 22px 28px 18px;
    border: 1px solid var(--trend-border);
    border-radius: 24px;
    background: linear-gradient(180deg, var(--trend-surface-start) 0%, var(--trend-surface-end) 100%);
    box-shadow: var(--trend-shadow);
}
html.dark .recent_trend,
body.dark .recent_trend {
    --trend-surface-start: #2c2926;
    --trend-surface-end: #272421;
    --trend-border: rgba(249, 150, 52, .24);
    --trend-shadow: 0 12px 30px rgba(0, 0, 0, .24);
    --trend-thumb-border: #55483d;
    --trend-baseline: rgba(249, 150, 52, .18);
    --trend-point-ring: #2c2926;
    --trend-value-bg: rgba(58, 48, 40, .96);
    --trend-value-border: #66513f;
    --trend-value-shadow: 0 3px 10px rgba(0, 0, 0, .28);
    --trend-tooltip-bg: rgba(20, 18, 17, .97);
    --trend-tooltip-border: rgba(249, 150, 52, .22);
    --trend-area-start-opacity: .14;
    --trend-area-end-opacity: .01;
}
.recent_trend_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.recent_trend_title_group {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}
.recent_trend_item_thumb {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--trend-thumb-border);
    border-radius: 10px;
    background: var(--primary-bg-light);
}
.recent_trend_item_thumb img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.recent_trend_title_row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.recent_trend_title_row h2 {
    font-size: var(--ft18);
    font-weight: var(--semi-bold);
    color: var(--gray-700);
}
.recent_trend_title_row > span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-bg-light);
    font-size: var(--ft12);
    font-weight: var(--semi-bold);
    color: var(--primary);
}
.recent_trend_item {
    margin-top: 4px;
    font-size: var(--ft14);
    color: var(--gray-500);
}
.recent_trend_latest {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.recent_trend_latest span {
    font-size: var(--ft13);
    color: var(--gray-500);
}
.recent_trend_latest strong {
    font-size: 28px;
    line-height: 1.2;
    font-weight: var(--bold);
    color: var(--primary);
}
.recent_trend_stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}
.recent_trend_stats > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}
.recent_trend_stats span {
    font-size: var(--ft12);
    color: var(--gray-400);
}
.recent_trend_stats strong {
    font-size: var(--ft14);
    font-weight: var(--semi-bold);
    color: var(--gray-600);
}
.recent_trend_chart {
    position: relative;
    height: 172px;
    margin-top: 12px;
}
.recent_trend_chart svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.recent_trend_baseline {
    stroke: var(--trend-baseline);
    stroke-width: 1;
}
.recent_trend_area_start {
    stop-color: #F99634;
    stop-opacity: var(--trend-area-start-opacity);
}
.recent_trend_area_end {
    stop-color: #FF6A00;
    stop-opacity: var(--trend-area-end-opacity);
}
.recent_trend_line_start {
    stop-color: #F99634;
}
.recent_trend_line_end {
    stop-color: #FF6A00;
}
.recent_trend_area {
    fill: url(#recentTrendArea);
}
.recent_trend_line {
    fill: none;
    stroke: url(#recentTrendLine);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.recent_trend_point {
    position: absolute;
    z-index: 2;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(-50%, -50%);
    cursor: pointer;
}
.recent_trend_dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    border: 2px solid var(--trend-point-ring);
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 2px rgba(249, 150, 52, .18);
    transform: translate(-50%, -50%);
    transition: width .18s ease, height .18s ease, box-shadow .18s ease;
}
.recent_trend_point.is_latest .recent_trend_dot {
    width: 14px;
    height: 14px;
    background: #ff6a00;
    box-shadow: 0 0 0 6px rgba(255, 106, 0, .12);
}
.recent_trend_point:hover .recent_trend_dot,
.recent_trend_point:focus-visible .recent_trend_dot {
    width: 15px;
    height: 15px;
    box-shadow: 0 0 0 7px rgba(249, 150, 52, .16);
}
.recent_trend_point:focus-visible {
    outline: 0;
}
.recent_trend_value {
    position: absolute;
    left: 50%;
    bottom: calc(50% + 11px);
    padding: 2px 5px;
    border: 1px solid var(--trend-value-border);
    border-radius: 5px;
    background: var(--trend-value-bg);
    box-shadow: var(--trend-value-shadow);
    color: var(--primary);
    font-size: 11px;
    font-weight: var(--bold);
    line-height: 1.25;
    pointer-events: none;
    transform: translateX(-50%);
    white-space: nowrap;
}
.recent_trend_point.is_near_top .recent_trend_value {
    top: calc(50% + 11px);
    bottom: auto;
}
.recent_trend_point.is_first .recent_trend_value {
    left: 0;
    transform: translateX(0);
}
.recent_trend_point.is_last .recent_trend_value {
    right: 0;
    left: auto;
    transform: translateX(0);
}
.recent_trend_point.is_latest .recent_trend_value {
    color: var(--primary);
}
.recent_trend_tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    display: flex;
    min-width: 190px;
    padding: 13px 14px;
    border: 1px solid var(--trend-tooltip-border);
    border-radius: 13px;
    background: var(--trend-tooltip-bg);
    box-shadow: 0 10px 30px rgba(23, 43, 77, .2);
    color: #fff;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.recent_trend_point.is_first .recent_trend_tooltip {
    left: 0;
    transform: translate(0, 6px);
}
.recent_trend_point.is_last .recent_trend_tooltip {
    right: 0;
    left: auto;
    transform: translate(0, 6px);
}
.recent_trend_tooltip strong {
    margin-bottom: 3px;
    font-size: var(--ft16);
}
.recent_trend_tooltip span {
    font-size: var(--ft12);
    line-height: 1.45;
    color: rgba(255, 255, 255, .76);
    white-space: nowrap;
}
.recent_trend_point:hover .recent_trend_tooltip,
.recent_trend_point:focus-visible .recent_trend_tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.recent_trend_point.is_first:hover .recent_trend_tooltip,
.recent_trend_point.is_first:focus-visible .recent_trend_tooltip,
.recent_trend_point.is_last:hover .recent_trend_tooltip,
.recent_trend_point.is_last:focus-visible .recent_trend_tooltip {
    transform: translate(0, 0);
}
.recent_trend_axis {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: center;
    margin-top: -6px;
    font-size: var(--ft12);
    color: var(--gray-400);
}
.recent_trend_axis span {
    text-align: center;
}
.recent_trend_axis span:first-child {
    text-align: left;
}
.recent_trend_axis span:last-child {
    text-align: right;
}
.recent_trend_axis span.is_empty {
    color: var(--gray-300);
}
.recent_trend_empty {
    display: flex;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}
.recent_trend_empty p {
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
    color: var(--gray-600);
}
.recent_trend_empty span {
    font-size: var(--ft13);
    color: var(--gray-400);
}

/* ------------- 판매물품 목록 ------------- */
/* 정렬 */
.sl_control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
}
.sort_box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort_item {
    --s-width: 140px;
}
.view_toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}
.view_type_btn {
    width: 32px;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px;
}


.view_type_btn img {
    position: relative;
    z-index: 1;
    opacity: 0.3;
}
.view_type_btn.active img {
    opacity: 1;
}

.view_hover {
    width: fit-content;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    background-color: var(--gray-500);
    font-size: var(--ft14);
    font-weight: var(--semi-bold);
    color: var(--white);
    text-wrap: nowrap;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .4s ease;
}
.view_toggle .view_hover::before {
    content: '';
    display: block;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 7px solid var(--gray-500);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-90%);
}
.view_toggle button:hover .view_hover {
    opacity: 1;
    transform: translateX(-50%);
}

/* 아이템목록 */
.premium_items_sec {
    margin-bottom: 100px;
}
.item_card:has(.item_thumb:hover) {
    transform: none;
    box-shadow: none;
    border-color: var(--dark-line);
}
.item_card .item_thumb {
    transition: filter .4s ease;
}
.item_card .item_thumb:hover {
    filter: brightness(.85);
}
.item_list.detail_type {
    grid-template-columns: repeat(4, 1fr);
}
.item_list.detail_type .item_card > a,
.item_list.detail_type .item_card > .inner {
    height: 100%;
}
.item_list.detail_type .item_main {
    padding-right: 0;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}
.item_list.detail_type .item_body {
    align-items: center;
    gap: 10px;
}
.item_list.detail_type .item_option_box {
    max-height: 120px;
    height: 100%;   
    visibility: visible;
    opacity: 1;
    box-shadow: unset;
    transition: unset;
    background: 100%;
    pointer-events: all;
    position: relative;
}

.item_list.detail_type .item_option_box::after {
    content: '';
    display: block;
    width: 100%;
    height: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, transparent, var(--item-card-bg-color));
}
.item_list.detail_type .item_option {
    padding-top: 0;
    overflow-y: auto;
    height: 100%;
}
.item_list.detail_type .item_option p{
    color: var(--gray-600);
}
.item_option.scroll::-webkit-scrollbar {
    width: 3px;
}
.item_list.detail_type .item_card .sale_info {
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.item_list.detail_type .item_card .item_emergency_badge {
    width: fit-content;
    height: fit-content;
    flex-direction: row;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    left: 16px;
    right: auto;
}

/* 거래완료 아이템 */

/* .item_card.is-sold .item_option_box {
    filter: blur(4px);
} */
.item_card.is-trading .info_overlay,
.item_card.is-sold .info_overlay {
    position: absolute;
    inset: 0;
    background: var(--black-400);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    justify-content: center;
    border-radius: var(--radius-sm);
}
.item_card.is-trading .info_overlay {
    background: color-mix(in srgb, var(--primary) 80%, transparent);
}
.item_card.is-sold .info_overlay img {
    width: 16px;
    height: 16px;
}
.item_card.is-trading .info_overlay p,
.item_card.is-sold .info_overlay p {
    font-size: var(--ft16);
    font-weight: var(--medium);
    color: white;
}
.item_card.is-sold .tooltip .t_inner {
    display: flex;
    align-items: center;
    gap: 10px;
}
.item_card.is-sold .tooltip .icon {
    width: 20px;
    height: 20px;
}


.search_loading,
.search_empty {
    padding: 8px;
}

@media (hover: hover) and (pointer: fine) {
    .item_card.is-sold:hover .tooltip {
        opacity: 1;
    }
}
@media all and (max-width: 1500px) {
    .item_list.detail_type {
        grid-template-columns: repeat(3, 1fr);
    }
    .store_list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media all and (max-width: 1200px) {
    .page_grid {
        gap: 50px;
        grid-template-columns: 280px 1fr;
    }
    .rs_summary, .rs_list {
        padding: 20px;
    }
    .radio_btn label {
        padding: 8px 16px;
    }
    .item_list.detail_type {
        grid-template-columns: repeat(2, 1fr);
    }
    

}
@media all and (max-width: 1024px) {
    .page_grid {
        display: block;
    }
   
    /* sidebar */
    .sidebar {
        display: flex;
        flex-direction: column;
    }
    .game_profile_card {
        padding: 0;
        border: 0;
        margin-bottom: 40px;
    }
    .side_ad_bnr {
        aspect-ratio: 5 / 1;
        max-height: 120px;
    }

    /* filter */
    .item_search_box {
        max-width: 300px;
    }
    .filter_form {
        position: static;
        max-height: unset;
        z-index: unset;
    }
    .filter_btn {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        gap: 6px;
        padding: 4px;
        cursor: pointer;        
    }
    .filter_btn img {
        width: 20px;
        height: 20px;
    }
    .mobile_filter_keyword_box {
        display: block;
    }
    .mobile_filter_keyword_box .filter_main {
        padding-bottom: 12px;
    }
    .mobile_filter_keyword_box .filter_con {
        display: block;
        padding-bottom: 20px;
    }
    .mobile_filter_keyword_box .search_box {
        max-width: none;
    }
    .mobile_filter_keyword_search .item_search_list {
        max-height: min(320px, 45vh);
        overflow-y: auto;
    }
    body.dark .filter_btn img {
        filter: invert(1);
    }

    .filter_popup {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 20;
        opacity: 0;
        pointer-events: none;
        overflow: visible;
        margin-bottom: 0;
    }
    .filter_popup.open {
        opacity: 1;
        pointer-events: all;

    }
    .filter_popup.open .popup_bg {
        display: block;
        opacity: 1;
        pointer-events: all;
    }
    .filter_popup_box {
        max-height: 80vh;
        position: relative;
        z-index: 2;
        background: var(--bg);
        padding: 20px;
        border-top-left-radius: var(--radius-lg);
        border-top-right-radius: var(--radius-lg);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity .4s ease, transform .4s ease;
        display: flex;
        flex-direction: column;
    }
    .filter_popup.open .filter_popup_box {
        opacity: 1;
        transform: translateY(0);
    }
    .filter_popup_wrap {
        overflow-y: auto;
    }
    .filter_popup_wrap.scroll::-webkit-scrollbar {
        width: 3px;
    }
    .filter_popup.open .filter_popup_close {
        display: flex;
        top: 0;
        left: 50%;
        transform: translate(-50%, -140%);
        background: var(--white-600);
    }
    .f_price_range::before,
    .f_price_range::after {
        width: 14px;
        height: 14px;
    }
    .view_hover {
        display: none;
    }
/*     
    .view_type_btn {
        flex-direction: column;
    }
    .view_hover {
        background: unset;
        position: static;
        color: var(--gray-600);
        opacity: 1;
        transform: unset;
    }
    .view_toggle .view_hover::before {
        content: unset;
    } */

    /* 아이템 리스트 */
    .item_list {
        gap: 10px;
    }
    .item_list.detail_type {
        grid-template-columns: repeat(3, 1fr);
    }
    
  
}
@media all and (max-width: 768px) {

    .page,
    .page.no_banner {
        padding-top: var(--page-top);
    }
    .game_profile_card {
        gap: 12px;
        margin-bottom: 28px;
    }
    .game_profile_thumb {
        width: 80px;
        height: 80px;
    }
    .game_profile_title {
        font-size: var(--ft16);
    }
    .game_profile_btns button {
        padding: 10px 12px;
        font-size: var(--ft14);
    }


    .recent_sales_sec {
        margin-bottom: 50px;
    }
    .rs_box {
        padding: 16px;
    }
    .rs_item_thumb {
        width: 32px;
        height: 32px;
    }
    .rs_item_name {
        margin: 0;
        font-size: var(--ft16);
    }
    .rs_item_label {
        margin-left: auto;
        font-size: var(--ft14);
    }
    .rs_item_price {
        font-size: var(--ft20);
    }
    .recent_trend {
        padding: 18px 16px 16px;
        border-radius: 20px;
    }
    .recent_trend_head {
        align-items: flex-start;
        gap: 16px;
    }
    .recent_trend_title_row {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
    .recent_trend_title_group {
        gap: 9px;
    }
    .recent_trend_item_thumb {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 9px;
    }
    .recent_trend_item_thumb img {
        width: 29px;
        height: 29px;
    }
    .recent_trend_title_row h2 {
        font-size: var(--ft20);
    }
    .recent_trend_title_row > span {
        padding: 5px 8px;
    }
    .recent_trend_item {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .recent_trend_latest strong {
        font-size: 24px;
        white-space: nowrap;
    }
    .recent_trend_stats {
        justify-content: space-between;
        gap: 10px;
    }
    .recent_trend_stats > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
    .recent_trend_chart {
        height: 150px;
        margin-top: 10px;
    }
    .recent_trend_value {
        padding: 1px 3px;
        font-size: 10px;
    }
    .recent_trend_tooltip {
        min-width: 168px;
        padding: 11px 12px;
    }
    .recent_trend_axis {
        font-size: 10px;
    }
    .sl_control {
        margin-bottom: 40px;
    }
    .sort_box {
        gap: 6px;
    }
    .sort_item {
        --s-width: 100px;
    }

    .page_top {
        margin-top: 16px;
        margin-bottom: 40px;
    }
    .page_tab {
        gap: 16px;
    }
    .page_tab a {
        padding-bottom: 10px;
    }
    .page_tab p {
        font-size: var(--ft16);
    }
    .page_tab span {
        padding: 4px 7px;
    }
    .page_header {
        padding: 16px;
        flex-direction: column;
        align-items: start;
    }
    .ph_l {
        gap: 16px;
    }
    .ph_logo {
        width: 40px;
        height: 40px;
    }
    .page_header .btn_shrink {
        display: none;
    }
    .page_header .trade_action_control_group {
        display: none;
    }
    .game_profile_action_balance {
        display: flex;
        justify-content: center;
        margin-top: 14px;
    }
    .ph_l p:first-child {
        margin-bottom: 6px;
        font-size: var(--ft16);
    }
    .ph_l p:last-child {
        font-size: var(--ft14);
    }

    /* 아이템 리스트 */
    .item_list {
        grid-template-columns: 1fr;
    }
    .item_list.detail_type {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 아이템 */
    .item_list.detail_type .item_main {
        margin-top: 20px;
        gap: 10px;
    }
    .item_list.detail_type .item_body  {
        gap: 4px;
    }
    .item_list.detail_type .item_card .item_emergency_badge {
        padding: 4px 8px;
        left: 10px;
    }

    .item_list.detail_type .item_card a, .item_card .inner {
        padding: 8px;
        gap: 20px;
    }
}

@media all and (max-width: 600px) {
    .store_list {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media all and (max-width: 450px) {
   
    /* 아이템 */
    .item_list.detail_type {
        grid-template-columns: 1fr;
    }    
    .item_list.detail_type .item_card .sale_info {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .item_list.detail_type .item_card a, .item_card .inner {
        gap: 14px;
    }


}
