/* =============================================================================
   UXC_Flarumix — Shop Skin CSS  (skin/shop/basic/style.css)
   그누보드5 기본 스킨 CSS를 완전 대체합니다.
   모든 색상·폰트·간격은 테마 CSS 변수(--color-prime 등)를 계승합니다.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. 공통 버튼
   ----------------------------------------------------------------------------- */
.btn01, .btn02, .btn_submit, .btn_confirm, .btn_frmline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .5rem 1.1rem;
    border-radius: 7px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: filter .18s, background .18s, color .18s;
    text-decoration: none;
    white-space: nowrap;
}
.btn01 {
    background: var(--color-prime, #6f48ff);
    color: #fff;
}
.btn01:hover { filter: brightness(.88); color: #fff; }
.btn02 {
    background: transparent;
    border: 1.5px solid var(--color-prime, #6f48ff);
    color: var(--color-prime, #6f48ff);
}
.btn02:hover { background: var(--color-prime, #6f48ff); color: #fff; }
.btn_submit {
    background: var(--color-prime, #6f48ff);
    color: #fff;
    padding: .55rem 1.4rem;
}
.btn_submit:hover { filter: brightness(.88); }
.btn_confirm {
    background: #444;
    color: #fff;
}
.btn_confirm:hover { filter: brightness(.85); }
.btn_frmline {
    background: #f5f5f5;
    color: #444;
    border: 1px solid #ddd;
}
.btn_frmline:hover { background: #e8e8e8; }
.btn_wr { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1rem; }

/* -----------------------------------------------------------------------------
   2. 공통 테이블
   ----------------------------------------------------------------------------- */
.tbl_wrap { width: 100%; overflow-x: auto; margin-bottom: 1.2rem; }

.tbl_head01, .tbl_head03 {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.tbl_head01 th, .tbl_head03 th {
    background: var(--layout-dropdown-hover-bg, #f5f5f5);
    border: 1px solid var(--layout-header-border, #e0e0e0);
    padding: .65rem .75rem;
    font-weight: 700;
    text-align: center;
    color: #444;
    white-space: nowrap;
}
.tbl_head01 td, .tbl_head03 td {
    border: 1px solid var(--layout-header-border, #e8e8e8);
    padding: .6rem .75rem;
    vertical-align: middle;
    font-size: .86rem;
}
.tbl_head01 tr:hover td, .tbl_head03 tr:hover td {
    background: color-mix(in srgb, var(--color-prime) 4%, transparent);
}
.tbl_frm01 { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.tbl_frm01 th {
    background: var(--layout-dropdown-hover-bg, #f5f5f5);
    border: 1px solid var(--layout-header-border, #e0e0e0);
    padding: .65rem 1rem;
    font-weight: 600;
    font-size: .87rem;
    white-space: nowrap;
    width: 140px;
    text-align: left;
}
.tbl_frm01 td {
    border: 1px solid var(--layout-header-border, #e8e8e8);
    padding: .6rem .85rem;
    font-size: .87rem;
}
.tbl_frm01 input[type="text"],
.tbl_frm01 input[type="tel"],
.tbl_frm01 input[type="email"],
.tbl_frm01 select,
.tbl_frm01 textarea {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: .42rem .7rem;
    font-size: .86rem;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}
.tbl_frm01 input:focus,
.tbl_frm01 select:focus,
.tbl_frm01 textarea:focus {
    outline: none;
    border-color: var(--color-prime, #6f48ff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-prime) 15%, transparent);
}
.required { color: #e53935; font-size: .8rem; margin-left: 2px; }
.sound_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* -----------------------------------------------------------------------------
   3. 상품 그리드 (list.10.skin.php 용)
   ----------------------------------------------------------------------------- */
.uxc-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.uxc-grid[data-cols="2"] { --grid-cols: 2; }
.uxc-grid[data-cols="3"] { --grid-cols: 3; }
.uxc-grid[data-cols="4"] { --grid-cols: 4; }
.uxc-grid[data-cols="5"] { --grid-cols: 5; }
.uxc-grid[data-cols="6"] { --grid-cols: 6; }

/* 카드 */
.uxc-card {
    background: var(--layout-bg, #fff);
    border: 1px solid var(--layout-header-border, #eeeeee);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.uxc-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-3px);
}

/* 카드 이미지 */
.uxc-card__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f9f9f9;
}
.uxc-card__img a { display: block; width: 100%; height: 100%; }
.uxc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.uxc-card:hover .uxc-card__img img { transform: scale(1.04); }

/* 품절 뱃지 */
.uxc-card__soldout {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .08em;
    pointer-events: none;
}

/* 카드 액션 오버레이 */
.uxc-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: .6rem;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    display: flex;
    gap: .4rem;
    opacity: 0;
    transition: opacity .22s;
}
.uxc-card:hover .uxc-card__overlay { opacity: 1; }
.uxc-card__overlay .btn_cart,
.uxc-card__overlay .btn_wish {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .45rem .6rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: filter .15s;
}
.uxc-card__overlay .btn_cart {
    background: var(--color-prime, #6f48ff);
    color: #fff;
}
.uxc-card__overlay .btn_cart:hover { filter: brightness(.88); }
.uxc-card__overlay .btn_wish {
    background: rgba(255,255,255,.9);
    color: #e53935;
    flex: 0 0 36px;
}
.uxc-card__overlay .btn_wish:hover { background: #fff; }
.uxc-card__overlay i { font-size: 1rem; }

/* 카드 본문 */
.uxc-card__body {
    padding: .85rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
}
.uxc-card__name {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.uxc-card__name a { color: inherit; text-decoration: none; }
.uxc-card__name a:hover { color: var(--color-prime); }
.uxc-card__basic {
    font-size: .8rem;
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.uxc-card__cost {
    margin-top: auto;
    padding-top: .4rem;
}
.uxc-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-prime, #6f48ff);
}
.uxc-card__orig {
    font-size: .8rem;
    color: #aaa;
    text-decoration: line-through;
    margin-left: .3rem;
}
.uxc-card__star { font-size: .8rem; color: #f59e0b; margin-bottom: .15rem; }

/* 상품 없음 */
.sct_noitem {
    text-align: center;
    padding: 3rem 1rem;
    color: #aaa;
    font-size: .95rem;
}

/* 기존 sct 클래스 호환 (gnuboard JS가 참조) */
.sct { list-style: none; margin: 0; padding: 0; }
.sct_li { display: contents; }

/* -----------------------------------------------------------------------------
   3-L. 리스트 뷰 (ul.sct.sct_40) — 웹진 가로형 레이아웃
   ----------------------------------------------------------------------------- */
ul.sct.sct_40 {
    display: flex !important;
    flex-direction: column !important;
    gap: .5rem !important;
    grid-template-columns: unset !important;
}
/* <li>에 .sct_li(display:contents) + .uxc-card(display:flex) 동시 적용 —
   display:flex + flex-direction:row 로 강제하여 가로형 카드 완성 */
ul.sct.sct_40 .sct_li {
    display: flex !important;
    flex-direction: row !important;
    height: 110px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transform: none !important;
    transition: box-shadow .2s !important;
}
ul.sct.sct_40 .sct_li:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.1) !important;
    transform: none !important;
}
ul.sct.sct_40 .uxc-card__img {
    width: 110px !important;
    min-width: 110px !important;
    height: 110px !important;
    flex-shrink: 0 !important;
    aspect-ratio: unset !important;
    border-radius: 0 !important;
}
ul.sct.sct_40 .uxc-card__img img {
    width: 100% !important;
    height: 100% !important;
}
ul.sct.sct_40 .uxc-card__body {
    padding: .65rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: .25rem !important;
    flex: 1 !important;
    overflow: hidden !important;
}
ul.sct.sct_40 .uxc-card__name {
    -webkit-line-clamp: 1 !important;
    font-size: .92rem !important;
}
ul.sct.sct_40 .uxc-card__basic {
    -webkit-line-clamp: 2 !important;
    font-size: .8rem !important;
}
ul.sct.sct_40 .uxc-card__cost { margin-top: .3rem !important; padding-top: 0 !important; }
ul.sct.sct_40 .uxc-card__overlay,
ul.sct.sct_40 .uxc-card__soldout { display: none !important; }

/* -----------------------------------------------------------------------------
   4. 내비게이션 / 브레드크럼
   ----------------------------------------------------------------------------- */
#sct_location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    padding: .65rem 0;
    font-size: .84rem;
    margin-bottom: .75rem;
    border-bottom: 1px solid var(--layout-header-border, #eee);
}
#sct_location a {
    color: #888;
    text-decoration: none;
    transition: color .15s;
}
#sct_location a:hover { color: var(--color-prime); }
#sct_location .go_home { font-size: 1rem; color: var(--color-prime); }
#sct_location .dividing-line { color: #ccc; font-size: .75rem; }
/* 네이티브 select (js 미로드 시 표시) */
.shop_hover_selectbox,
#sct_location select {
    border: none;
    background: none;
    font-size: .84rem;
    color: inherit;
    cursor: pointer;
    font-weight: 600;
    padding: 0 .2rem;
    outline: none;
}
.shop_hover_selectbox:focus { outline: none; }

/* shop_select_to_html() jQuery 플러그인 변환 결과 CSS
   — 없으면 .menulist 가 항상 표시돼 카테고리가 펼쳐진 상태로 보임 */
.shop_select_to_html {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
.shop_select_to_html .category_title {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .1rem .4rem;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: color .15s;
}
.shop_select_to_html:hover .category_title,
.shop_select_to_html .category_title.current:hover {
    color: var(--color-prime, #6f48ff);
}
.shop_select_to_html .menulist {
    display: none;           /* ★ 기본 숨김 (이 선언 없으면 항상 펼쳐짐) */
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 160px;
    background: var(--layout-dropdown-bg, #fff);
    border: 1px solid var(--layout-dropdown-border, #eee);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    z-index: 1200;
    overflow: hidden;
    padding: 4px 0;
}
.shop_select_to_html:hover .menulist { display: block; }
.shop_select_to_html .menulist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop_select_to_html .menulist li.option { padding: 0; }
.shop_select_to_html .menulist li.option a {
    display: block;
    padding: .45rem 1rem;
    font-size: .84rem;
    color: var(--layout-text, #333);
    text-decoration: none;
    transition: background .12s, color .12s;
}
.shop_select_to_html .menulist li.option a:hover,
.shop_select_to_html .menulist li.option.selected a {
    background: color-mix(in srgb, var(--color-prime) 8%, transparent);
    color: var(--color-prime, #6f48ff);
}
.shop_select_to_html .menulist li.option.selected a { font-weight: 700; }
/* 멀티 컬럼(8개 이상) */
.shop_select_to_html .menulist ul.wide {
    display: inline-block;
    width: 146px;
    vertical-align: top;
}
.shop_select_to_html .menulist ul.left-border {
    border-left: 1px dashed var(--layout-header-border, #eee);
}

/* ── 정렬 바 + 뷰 전환 버튼 — 한 줄 flex 컨테이너 ── */
#sct_sortlst {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .8rem;
}

/* 정렬 바 */
#sct_sort {
    flex: 1;
    min-width: 0;
    margin-bottom: 0; /* sortlst 가 margin을 담당 */
}
#sct_sort h2 { display: none; }
#ssch_sort {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
#ssch_sort li a {
    display: inline-block;
    padding: .35rem .75rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 20px;
    font-size: .8rem;
    color: #666;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
#ssch_sort li a:hover {
    background: var(--color-prime);
    color: #fff;
    border-color: var(--color-prime);
}

/* ── 뷰 전환 버튼 (#sct_lst.uxc-view-toggle) ── */
#sct_lst.uxc-view-toggle {
    display: flex;
    gap: .3rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    align-items: center;
}

#sct_lst.uxc-view-toggle .sct_lst_view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--layout-header-border, #ddd);
    border-radius: 8px;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    padding: 0;
}

#sct_lst.uxc-view-toggle .sct_lst_view i {
    font-size: 1.25rem;
    line-height: 1;
}

#sct_lst.uxc-view-toggle .sct_lst_view:hover {
    border-color: var(--color-prime, #6f48ff);
    color: var(--color-prime, #6f48ff);
}

#sct_lst.uxc-view-toggle .sct_lst_view.sct_lst_on,
#sct_lst.uxc-view-toggle .sct_lst_view.sct_lst_on span.sct_lst_on {
    background: color-mix(in srgb, var(--color-prime, #6f48ff) 15%, #fff);
    border-color: var(--color-prime, #6f48ff);
    color: var(--color-prime, #6f48ff);
}

/* 다크모드 */
:root.darkMode #sct_lst.uxc-view-toggle .sct_lst_view {
    border-color: #3a3a4a;
    color: #aaa;
    background: transparent;
}
:root.darkMode #sct_lst.uxc-view-toggle .sct_lst_view.sct_lst_on {
    background: var(--color-prime, #6f48ff);
    border-color: var(--color-prime, #6f48ff);
    color: #fff;
}

/* 서브분류 */
#sct_ct_1 { margin-bottom: 1rem; }
#sct_ct_1 h2 { display: none; }
#sct_ct_1 ul {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
#sct_ct_1 ul li a {
    display: inline-block;
    padding: .35rem .8rem;
    border-radius: 20px;
    font-size: .82rem;
    border: 1px solid var(--layout-header-border, #ddd);
    color: #555;
    text-decoration: none;
    transition: background .15s, color .15s;
}
#sct_ct_1 ul li a:hover { background: var(--color-prime); color: #fff; border-color: var(--color-prime); }

/* -----------------------------------------------------------------------------
   5. 상품 상세 (#sit_ov_wrap)
   ----------------------------------------------------------------------------- */
#sit_ov_from { max-width: 960px; margin: 0 auto; }
#sit_ov_wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 720px) { #sit_ov_wrap { grid-template-columns: 1fr; } }

/* 상품 이미지 */
#sit_pvi { position: relative; }
#sit_pvi_big {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1/1;
}
#sit_pvi_big img, #sit_pvi_big a { display: block; width: 100%; }
#sit_pvi_big img { object-fit: cover; }
#sit_pvi_thumb {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    margin: .6rem 0 0;
    padding: 0;
}
#sit_pvi_thumb li {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .15s;
}
#sit_pvi_thumb li:hover,
#sit_pvi_thumb li.active { border-color: var(--color-prime); }
#sit_pvi_thumb li img { width: 100%; height: 100%; object-fit: cover; }
#popup_item_image {
    position: absolute;
    bottom: .6rem;
    right: .6rem;
    background: rgba(0,0,0,.55);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: background .15s;
}
#popup_item_image:hover { background: var(--color-prime); }

/* 상품 옵션 영역 */
#sit_ov_opt {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.sit_info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.sit_tot_price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-prime, #6f48ff);
    margin: .5rem 0;
}
.sit_option {
    background: var(--layout-dropdown-hover-bg, #f8f8f8);
    border-radius: 10px;
    padding: 1rem;
}
.sit_ov_tbl { width: 100%; }
.sit_ov_tbl th {
    text-align: left;
    font-size: .85rem;
    font-weight: 600;
    padding: .4rem 0;
    color: #666;
    width: 100px;
    vertical-align: top;
}
.sit_ov_tbl td { padding: .3rem 0 .5rem; }
.sit_ov_tbl select,
.sit_ov_tbl input[type="number"],
.sit_ov_tbl input[type="text"] {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: .42rem .7rem;
    font-size: .86rem;
    width: 100%;
    max-width: 260px;
    transition: border-color .2s;
}
.sit_ov_tbl select:focus,
.sit_ov_tbl input:focus {
    outline: none;
    border-color: var(--color-prime);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-prime) 15%, transparent);
}

/* 선택한 옵션 리스트 */
.sit_ov_ro { margin-top: .5rem; }
.sit_ov_ro li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .6rem;
    background: var(--layout-bg, #fff);
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 6px;
    font-size: .85rem;
    margin-bottom: .35rem;
}
.sit_ov_ro .sit_ov_opt { flex: 1; }
.sit_ov_ro .sit_ov_input { width: 52px; text-align: center; border: 1px solid #ccc; border-radius: 4px; }

/* 상품 상세 우측 정보 영역 */
#sit_ov {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
#sit_title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: .2rem;
}
#sit_desc {
    font-size: .88rem;
    color: #666;
    line-height: 1.6;
    white-space: pre-wrap;
    border-bottom: 1px solid var(--layout-header-border, #eee);
    padding-bottom: .7rem;
}
#sit_opt_info {
    font-size: .82rem;
    color: #999;
}

/* 별점 + SNS 영역 */
#sit_star_sns {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    font-size: .82rem;
    color: #888;
}
#sit_star_sns .sit_star { height: 18px; }
#sit_btn_opt {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}
#btn_wish {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    cursor: pointer;
    font-size: .82rem;
    color: #888;
    transition: color .15s;
}
#btn_wish:hover { color: #e53935; }
.btn_sns_share {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: .9rem;
    transition: color .15s;
}
.btn_sns_share:hover { color: var(--color-prime); }
.sns_area {
    display: none;
    position: absolute;
    background: var(--layout-dropdown-bg, #fff);
    border: 1px solid var(--layout-dropdown-border, #eee);
    border-radius: 8px;
    padding: .5rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    z-index: 200;
    gap: .4rem;
}

/* 선택된 옵션 */
#sit_sel_option h3 { display: none; }
.opt_name { flex: 1; font-size: .88rem; }
.opt_count {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .85rem;
}
.sit_qty_minus, .sit_qty_plus {
    width: 26px; height: 26px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem;
    transition: background .12s;
}
.sit_qty_minus:hover, .sit_qty_plus:hover { background: #f0f0f0; }
.num_input {
    width: 44px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: .3rem;
    font-size: .85rem;
}
.sit_opt_prc { font-size: .82rem; color: #888; }

/* 총 구매 금액 */
#sit_tot_price {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    color: var(--color-prime, #6f48ff);
    padding: .5rem 0;
    border-top: 1px solid var(--layout-header-border, #eee);
}

/* 구매 버튼 */
#sit_ov_btn {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}
.sit_order_btn, .sit_buy_inner {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}
.sit_btn_cart, .sit_btn_buy, .sit_btn_wish {
    flex: 1;
    padding: .7rem 1rem;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: filter .18s;
    min-width: 120px;
}
.sit_btn_cart { background: var(--color-prime, #6f48ff); color: #fff; }
.sit_btn_cart:hover { filter: brightness(.88); }
.sit_btn_buy { background: #1a1a1a; color: #fff; }
.sit_btn_buy:hover { filter: brightness(.75); }
.sit_btn_wish {
    background: transparent;
    border: 1.5px solid #ddd;
    color: #555;
    flex: 0 0 auto;
    padding: .7rem .9rem;
}
.sit_btn_wish:hover { border-color: #e53935; color: #e53935; }
.sit_empty { text-align: center; padding: 2rem; color: #aaa; font-size: .9rem; }

/* 상품 설명 탭 영역 */
.sit_info { margin-bottom: 1.5rem; }
#sit_ov_desc {
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
#sit_ov_desc img { max-width: 100%; }

/* ── item.info.skin.php 탭 시스템 (#sit_tab / .tab_tit / .tab_con) ────── */
#sit_info { margin-top: 1.5rem; }

/* 관련상품 */
#sit_rel { margin-bottom: 2rem; }
#sit_rel h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .8rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--color-prime, #6f48ff);
}

/* 탭 헤더 */
#sit_tab { position: relative; }
.tab_tit {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    border-bottom: 2px solid var(--layout-header-border, #eee);
    flex-wrap: wrap;
}
.tab_tit li button {
    padding: .7rem 1.2rem;
    font-size: .88rem;
    font-weight: 600;
    color: #888;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.tab_tit li button:hover { color: var(--color-prime); }
.tab_tit li button.selected {
    color: var(--color-prime);
    border-bottom-color: var(--color-prime);
}

/* 탭 콘텐츠 */
.tab_con {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tab_con > li { display: none; }
.tab_con > li:first-child { display: block; } /* JS 로드 전 첫 탭만 표시 */
.tab_con > li h2.contents_tit {
    font-size: .96rem;
    font-weight: 700;
    padding: .55rem .8rem;
    margin-bottom: 1rem;
    background: var(--layout-dropdown-hover-bg, #f8f8f8);
    border-left: 3px solid var(--color-prime, #6f48ff);
    border-radius: 0 6px 6px 0;
}
.tab_con > li h3 {
    font-size: .9rem;
    font-weight: 700;
    color: #444;
    margin: 1rem 0 .5rem;
}
#sit_inf_explan {
    font-size: .9rem;
    line-height: 1.7;
    color: #333;
}
#sit_inf_explan img { max-width: 100%; }
#sit_inf_open { width: 100%; border-collapse: collapse; margin-top: .5rem; }
#sit_inf_open th, #sit_inf_open td {
    border: 1px solid var(--layout-header-border, #eee);
    padding: .5rem .8rem;
    font-size: .85rem;
}
#sit_inf_open th { width: 160px; background: var(--layout-dropdown-hover-bg, #f8f8f8); font-weight: 600; text-align: left; }

/* ── 스티키 구매 패널 (#sit_buy.fix) ─────────────────────────── */
/* gnuboard 기본에서 position:fixed 로 우측 하단 고정하지만
   UXC 레이아웃에서는 컬럼 내 배치로 변경 */
#sit_buy {
    margin-top: 1.5rem;
    background: var(--layout-header, #fff);
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}
.sit_buy_inner { display: flex; flex-direction: column; gap: .75rem; }
.sit_side_option h3 { font-size: .85rem; font-weight: 700; margin-bottom: .4rem; color: #555; }
.sit_side_option select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: .42rem .7rem;
    font-size: .86rem;
    transition: border-color .2s;
}
.sit_side_option select:focus {
    outline: none;
    border-color: var(--color-prime);
}
.sit_sel_option h3 { font-size: .85rem; font-weight: 700; margin-bottom: .4rem; color: #555; }
.sit_opt_added {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.sit_opt_added li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .6rem;
    background: var(--layout-bg, #fff);
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 6px;
    font-size: .85rem;
}
.sit_opt_added .opt_name { flex: 1; }
.sit_opt_added .opt_count {
    display: flex;
    align-items: center;
    gap: .3rem;
}
.sum_section {
    border-top: 1px solid var(--layout-header-border, #eee);
    padding-top: .8rem;
}
.sum_section .sit_tot_price {
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-prime, #6f48ff);
    margin-bottom: .6rem;
}
.sum_section .sit_tot_price strong {
    font-size: 1.25rem;
    color: var(--color-prime);
}
.sum_section .sit_order_btn {
    display: flex;
    gap: .5rem;
}
.sum_section .sit_btn_cart,
.sum_section .sit_btn_buy {
    flex: 1;
    padding: .65rem 1rem;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter .18s;
}
.sum_section .sit_btn_cart { background: var(--color-prime, #6f48ff); color: #fff; }
.sum_section .sit_btn_cart:hover { filter: brightness(.88); }
.sum_section .sit_btn_buy { background: #1a1a1a; color: #fff; }
.sum_section .sit_btn_buy:hover { filter: brightness(.75); }

/* 상품상세 탭 (sit_tab class - 별도 사용시) */
.sit_tab {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--layout-header-border, #eee);
    margin-bottom: 1.5rem;
}
.sit_tab a, .sit_tab button {
    padding: .7rem 1.2rem;
    font-size: .88rem;
    font-weight: 600;
    color: #888;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}
.sit_tab a:hover,
.sit_tab a.active,
.sit_tab button.active { color: var(--color-prime); border-bottom-color: var(--color-prime); }

/* 이전/다음 상품 링크 */
#sit_siblings {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .6rem 0;
    border-top: 1px solid var(--layout-header-border, #eee);
    margin-top: .5rem;
}
#sit_siblings a {
    font-size: .82rem;
    color: #888;
    text-decoration: none;
    transition: color .15s;
}
#sit_siblings a:hover { color: var(--color-prime); }
#siblings_prev::before { content: '← '; }
#siblings_next::after { content: ' →'; }

/* 탭 앵커 (.sanchor) — gnuboard 기본 item.php 에서 사용 */
.sanchor {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--layout-header-border, #eee);
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}
.sanchor li a {
    display: inline-block;
    padding: .7rem 1.2rem;
    font-size: .88rem;
    font-weight: 600;
    color: #888;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}
.sanchor li a:hover,
.sanchor li a.sanchor_on { color: var(--color-prime); border-bottom-color: var(--color-prime); }

/* 관리자 버튼 */
.sct_admin, .sit_admin {
    text-align: right;
    margin-bottom: .5rem;
}
.btn_admin {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .65rem;
    background: color-mix(in srgb, var(--color-prime) 12%, #fff);
    color: var(--color-prime);
    border: 1.5px solid color-mix(in srgb, var(--color-prime) 35%, #fff);
    font-size: .85rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.btn_admin:hover {
    background: var(--color-prime);
    border-color: var(--color-prime);
    color: #fff;
}

/* 사용후기/상품문의 공통 */
.sit_use_li, .sit_qa_li {
    border-bottom: 1px solid var(--layout-header-border, #eee);
    padding: 1rem 0;
}
.sit_use_top { display: flex; align-items: center; gap: .75rem; margin-bottom: .4rem; }
.sit_use_top .sit_use_li_title { font-weight: 600; font-size: .9rem; }
.sit_qa_top { display: flex; align-items: center; gap: .75rem; margin-bottom: .4rem; }
.sit_qa_qaq, .sit_qa_qaa { padding: .5rem 0; font-size: .88rem; line-height: 1.6; }
.sit_qaa_done { font-size: .78rem; background: #4caf50; color: #fff; border-radius: 4px; padding: 1px 6px; }
.sit_qaa_yet { font-size: .78rem; background: #888; color: #fff; border-radius: 4px; padding: 1px 6px; }
.sit_qa_pw input { border: 1px solid #ccc; border-radius: 5px; padding: .4rem .6rem; font-size: .85rem; }
.sit_qa_cmd, .sit_use_cmd {
    display: flex; gap: .4rem; justify-content: flex-end; margin-top: .6rem;
}

/* -----------------------------------------------------------------------------
   6. 장바구니 (#sod_bsk)
   ----------------------------------------------------------------------------- */
#sod_bsk { margin-bottom: 2rem; }
#sod_bsk .tbl_wrap { margin-bottom: 0; }

.td_imgsmall img {
    width: 64px; height: 64px; object-fit: cover;
    border-radius: 6px; border: 1px solid #eee;
}
.prd_name a { color: inherit; text-decoration: none; font-weight: 600; }
.prd_name a:hover { color: var(--color-prime); }
.sell_price { font-weight: 700; color: var(--color-prime); }
.td_mngsmall button {
    background: none; border: 1px solid #ddd; border-radius: 4px;
    padding: .25rem .5rem; font-size: .8rem; cursor: pointer;
    transition: background .15s, color .15s;
}
.td_mngsmall button:hover { background: #e53935; color: #fff; border-color: #e53935; }

.sod_bsk_act {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .75rem 0;
    border-top: 1px solid var(--layout-header-border, #eee);
}
.sod_bsk_cnt, .sod_bsk_dvr, .sod_bsk_pt, .sod_bsk_tot {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
}
.sod_bsk_tot { font-size: 1.1rem; font-weight: 800; color: var(--color-prime); }
.sod_left { display: flex; gap: .4rem; flex-wrap: wrap; }
.sod_right { display: flex; gap: .4rem; flex-wrap: wrap; }
.empty_table { text-align: center; padding: 3rem 1rem; color: #aaa; }

/* -----------------------------------------------------------------------------
   7. 마이페이지 (.smb_my)
   ----------------------------------------------------------------------------- */
.smb_my {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.smb_my_act {
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 12px;
    padding: .9rem 1rem;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 1rem;
    transition: box-shadow .18s;
}
.smb_my_act:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.smb_my_img img {
    width: 72px; height: 72px; object-fit: cover;
    border-radius: 8px; border: 1px solid #eee;
}
.smb_my_tit { font-weight: 700; font-size: .92rem; margin-bottom: .2rem; }
.smb_my_od { font-size: .8rem; color: #888; }
.smb_my_date { font-size: .8rem; color: #aaa; }
.smb_my_name a { color: inherit; text-decoration: none; }
.smb_my_name a:hover { color: var(--color-prime); }
.smb_my_ov {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.smb_my_ovaddt, .smb_my_ovaddd { font-size: .82rem; }
.smb_my_ovaddt { font-weight: 600; color: #444; }
.smb_my_ovaddd { color: var(--color-prime); }
.my_ov_btn { display: flex; gap: .35rem; flex-direction: column; }
.my_ov_name {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 12px;
    text-align: center;
}
.smb_my_more { font-size: .82rem; color: #888; text-decoration: none; }
.smb_my_more:hover { color: var(--color-prime); }

/* 마이페이지 요약 */
.smb_my_wish { font-size: .82rem; color: #888; }
.op_area { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.btn_op_area { font-size: .8rem; }
.cou_pt { font-size: .84rem; }
.empty_li { text-align: center; padding: 2rem; color: #aaa; font-size: .9rem; }

/* 그리드 레이아웃 */
.grid_3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-bottom: 1rem;
}
.grid_3 > div {
    background: var(--layout-dropdown-hover-bg, #f8f8f8);
    border-radius: 8px;
    padding: .9rem;
    text-align: center;
}
.grid_3 strong { font-size: 1.2rem; font-weight: 800; color: var(--color-prime); }

/* 주문 상세 */
.sod_fin { border: 1px solid var(--layout-header-border, #eee); border-radius: 10px; overflow: hidden; margin-bottom: 1.5rem; }
.sod_fin_legend {
    background: var(--layout-dropdown-hover-bg, #f5f5f5);
    padding: .7rem 1rem;
    font-weight: 700;
    font-size: .9rem;
    border-bottom: 1px solid var(--layout-header-border, #eee);
}
.sod_fin > table { width: 100%; border-collapse: collapse; }
.sod_fin > table th {
    background: var(--layout-dropdown-hover-bg, #fafafa);
    padding: .6rem .9rem;
    font-size: .85rem;
    font-weight: 600;
    border: 1px solid var(--layout-header-border, #eee);
    text-align: left;
    width: 130px;
}
.sod_fin > table td {
    padding: .6rem .9rem;
    font-size: .85rem;
    border: 1px solid var(--layout-header-border, #eee);
}
.sod_fin_list { list-style: none; margin: 0; padding: 0; }
.sod_fin_list li {
    display: flex;
    gap: .6rem;
    align-items: center;
    padding: .55rem .9rem;
    border-bottom: 1px solid var(--layout-header-border, #f0f0f0);
}
.sod_fin_list li:last-child { border-bottom: none; }
.sod_fin_no { font-size: .8rem; color: #888; }
.sod_fin_pay { font-weight: 700; color: var(--color-prime); }
.sod_fin_tot { font-size: 1rem; font-weight: 800; color: var(--color-prime); padding: .6rem .9rem; background: color-mix(in srgb, var(--color-prime) 6%, transparent); }
.sod_fin_dvr { border-top: 1px dashed var(--layout-header-border, #ddd); margin: .4rem 0; }
.sod_fin_cancel, .sod_fin_cancelfrm { padding: .6rem .9rem; }

/* 주문 상태 */
.sod_sts_wrap { margin: 1rem 0; }
.sod_sts_explan {
    cursor: pointer;
    color: var(--color-prime);
    font-size: .83rem;
    text-decoration: underline;
}
.sod_v { display: none; padding: .6rem .9rem; font-size: .84rem; background: var(--layout-dropdown-hover-bg, #f9f9f9); border-radius: 6px; }

/* 주문서 폼 */
.sod_fin_orderer, .sod_fin_receiver { margin-bottom: 1.2rem; }

/* 주문조회 */
.order_view_infos { border-radius: 10px; overflow: hidden; }
.list_02 { width: 100%; border-collapse: collapse; font-size: .87rem; }
.list_02 th {
    background: var(--layout-dropdown-hover-bg, #f5f5f5);
    padding: .6rem .8rem;
    font-weight: 600;
    border: 1px solid var(--layout-header-border, #e0e0e0);
    text-align: center;
}
.list_02 td {
    padding: .6rem .8rem;
    border: 1px solid var(--layout-header-border, #e8e8e8);
    vertical-align: middle;
}
.list_02 tr:hover td { background: color-mix(in srgb, var(--color-prime) 4%, transparent); }
.td_bdno a { color: var(--color-prime); font-weight: 600; text-decoration: none; }
.td_bdno a:hover { text-decoration: underline; }
.td_dvr { font-weight: 700; }
.td_numbig { font-size: 1.1rem; font-weight: 800; color: var(--color-prime); }
.right { text-align: right; }

/* -----------------------------------------------------------------------------
   8. 위시리스트 페이지 (#sod_ws)
   ----------------------------------------------------------------------------- */
#sod_ws { margin-bottom: 2rem; }
.sod_ws_act {
    display: flex;
    justify-content: space-between;
    padding: .65rem 0;
    border-top: 1px solid var(--layout-header-border, #eee);
}
.sod_ws_img img {
    width: 64px; height: 64px;
    object-fit: cover; border-radius: 6px;
    border: 1px solid #eee;
}
.wish_del, .wish_info { font-size: .82rem; }
.wish_info a { color: inherit; text-decoration: none; }
.wish_info a:hover { color: var(--color-prime); }
.info_link a { color: var(--color-prime); font-weight: 600; font-size: .82rem; text-decoration: none; }
.info_date { font-size: .8rem; color: #aaa; }
.alrdy { color: #e53935; font-size: .82rem; }

/* 체크박스 */
.chk_box { display: flex; align-items: center; gap: .35rem; }
.chk_box input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-prime); }
.selec_chk { font-size: .82rem; cursor: pointer; }

/* -----------------------------------------------------------------------------
   9. 최근 본 상품 행 (.stv_row) — 웹진 컴팩트 스타일
   ----------------------------------------------------------------------------- */
/* stv_row 는 .shopSideTvWrap .nav 안에 배치 — 좌우는 nav padding(20px)이 담당 */
.stv_row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem 20px;
    border-bottom: 1px solid #f2f2f2;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    margin: 0 -20px;   /* nav padding 상쇄 후 full-width hover */
}
.stv_row:last-child { border-bottom: none; }
.stv_row:hover { background: var(--layout-sidebar-bg, rgba(111,72,255,.06)); }
.stv_row img {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.stv_info {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    overflow: hidden;
    min-width: 0;
}
.stv_name {
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stv_price {
    font-size: .78rem;
    color: var(--color-prime, #6f48ff);
    font-weight: 700;
}
.li_empty { color: #aaa; font-size: .82rem; text-align: center; padding: .8rem 0; }

/* -----------------------------------------------------------------------------
   10. 장바구니 미니 위젯 (#sbsk)
   ----------------------------------------------------------------------------- */
#sbsk { padding: .5rem 0; }
#sbsk .s_h2 {
    font-size: .88rem;
    font-weight: 700;
    padding: .4rem 0;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--layout-header-border, #eee);
    display: flex;
    align-items: center;
    gap: .3rem;
}
#sbsk .s_h2 .cart-count {
    background: var(--color-prime);
    color: #fff;
    border-radius: 10px;
    font-size: .72rem;
    padding: 1px 6px;
    font-weight: 700;
}
#sbsk ul { list-style: none; margin: 0; padding: 0; }
#sbsk ul li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--layout-header-border, #f0f0f0);
}
#sbsk ul li:last-child { border-bottom: none; }
#sbsk .prd_img img {
    width: 48px; height: 48px;
    object-fit: cover; border-radius: 5px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
#sbsk .prd_cnt { flex: 1; min-width: 0; }
#sbsk .prd_name {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#sbsk .prd_name:hover { color: var(--color-prime); }
#sbsk .prd_cost { font-size: .8rem; color: var(--color-prime); font-weight: 700; }
#sbsk .cart_del {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: .95rem;
    padding: .2rem;
    flex-shrink: 0;
    transition: color .15s;
}
#sbsk .cart_del:hover { color: #e53935; }
#sbsk .btn_buy { margin-top: .5rem; }
#sbsk .btn_buy .btn_submit { width: 100%; padding: .5rem; font-size: .84rem; }
#sbsk .go_cart {
    display: block;
    text-align: center;
    margin-top: .4rem;
    font-size: .8rem;
    color: #888;
    text-decoration: none;
    transition: color .15s;
}
#sbsk .go_cart:hover { color: var(--color-prime); }

/* -----------------------------------------------------------------------------
   11. 위시리스트 미니 위젯 (#wish)
   ----------------------------------------------------------------------------- */
#wish { padding: .5rem 0; }
#wish .s_h2 {
    font-size: .88rem;
    font-weight: 700;
    padding: .4rem 0;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--layout-header-border, #eee);
    display: flex;
    align-items: center;
    gap: .3rem;
}
#wish .s_h2 span {
    background: var(--color-prime);
    color: #fff;
    border-radius: 10px;
    font-size: .72rem;
    padding: 1px 6px;
    font-weight: 700;
}
#wish ul { list-style: none; margin: 0; padding: 0; }
#wish ul li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--layout-header-border, #f0f0f0);
}
#wish ul li:last-child { border-bottom: none; }
#wish .prd_img img {
    width: 48px; height: 48px;
    object-fit: cover; border-radius: 5px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
#wish .prd_cnt { flex: 1; min-width: 0; }
#wish .prd_name {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#wish .prd_name:hover { color: var(--color-prime); }
#wish .prd_price { font-size: .8rem; color: var(--color-prime); font-weight: 700; }

/* -----------------------------------------------------------------------------
   12. 페이지네이션
   ----------------------------------------------------------------------------- */
.pagination, #pg_wrap {
    display: flex;
    justify-content: center;
    gap: .25rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.pagination a, .pagination strong,
#pg_wrap a, #pg_wrap strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: .85rem;
    text-decoration: none;
    color: #555;
    border: 1px solid #ddd;
    transition: background .15s, color .15s;
    padding: 0 .5rem;
}
.pagination a:hover, #pg_wrap a:hover { background: var(--layout-dropdown-hover-bg, #f0f0f0); }
.pagination strong, #pg_wrap strong {
    background: var(--color-prime);
    color: #fff;
    border-color: var(--color-prime);
    font-weight: 700;
}

/* -----------------------------------------------------------------------------
   13. 쿠폰존 / 이벤트
   ----------------------------------------------------------------------------- */
.couponzone_list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.couponzone_list li {
    border: 1.5px dashed var(--color-prime, #6f48ff);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    position: relative;
}
.sps_section { margin-bottom: 2rem; }
.sps_section h2 { font-size: 1rem; font-weight: 700; border-bottom: 2px solid var(--color-prime); padding-bottom: .4rem; margin-bottom: .8rem; }
.sps_img img { width: 100%; border-radius: 8px; }

/* -----------------------------------------------------------------------------
   14. 다크모드
   ----------------------------------------------------------------------------- */
:root.darkMode .uxc-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}
:root.darkMode .uxc-card__img { background: #222; }
:root.darkMode .sit_option,
:root.darkMode .tbl_head01 th,
:root.darkMode .tbl_head03 th,
:root.darkMode .tbl_frm01 th,
:root.darkMode .list_02 th,
:root.darkMode .sod_fin_legend,
:root.darkMode #sct_location,
:root.darkMode .grid_3 > div {
    background: #1e1e1e;
    border-color: #333;
}
:root.darkMode .tbl_head01 td,
:root.darkMode .tbl_head03 td,
:root.darkMode .tbl_frm01 td,
:root.darkMode .list_02 td,
:root.darkMode .sod_fin > table th,
:root.darkMode .sod_fin > table td {
    border-color: #2c2c2c;
}
:root.darkMode .uxc-card__overlay .btn_wish {
    background: rgba(30,30,30,.9);
    color: #e57373;
}
:root.darkMode .tbl_frm01 input,
:root.darkMode .tbl_frm01 select,
:root.darkMode .tbl_frm01 textarea,
:root.darkMode .sit_ov_tbl select,
:root.darkMode .sit_ov_tbl input {
    background: #1e1e1e;
    border-color: #333;
    color: inherit;
}
:root.darkMode .smb_my_act { border-color: #2a2a2a; }
:root.darkMode .sod_fin_list li,
:root.darkMode #sbsk ul li,
:root.darkMode #stv_ul .stv_item,
:root.darkMode #wish ul li { border-color: #2a2a2a; }
:root.darkMode .btn_frmline { background: #1e1e1e; border-color: #333; color: #ccc; }
:root.darkMode #sct_sort li a,
:root.darkMode #sct_ct_1 ul li a { border-color: #333; color: #aaa; }
:root.darkMode .sod_v { background: #1a1a1a; }

/* -----------------------------------------------------------------------------
   15. 반응형
   ----------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .uxc-grid { --grid-cols: 3; }
    .uxc-grid[data-cols="5"],
    .uxc-grid[data-cols="6"] { --grid-cols: 3; }
    #sit_ov_wrap { grid-template-columns: 1fr; }
    .grid_3 { grid-template-columns: repeat(2,1fr); }
    .couponzone_list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .uxc-grid { --grid-cols: 2; }
    .uxc-grid[data-cols="2"] { --grid-cols: 2; }
    .grid_3 { grid-template-columns: 1fr; }
    .smb_my_act { grid-template-columns: 64px 1fr; }
    .my_ov_btn { display: none; }
}

/* =============================================================================
   14. 마이페이지 (.smb_my)
   ============================================================================= */
.smb_my { width: 100%; }

/* 요약 카드 */
.smb_my_info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--layout-header, #fff);
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.smb_my_info .photo img,
.smb_my_info .photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}
.smb_my_info .info { flex: 1; }
.smb_my_info .nick { font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }
.smb_my_info .point,
.smb_my_info .mileage {
    font-size: .85rem;
    color: #888;
}
.smb_my_info .point span,
.smb_my_info .mileage span { color: var(--color-prime); font-weight: 700; }

/* 메뉴 그리드 */
.smb_my_menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.smb_my_menu a,
.smb_my_menu li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 1.1rem .5rem;
    background: var(--layout-header, #fff);
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.smb_my_menu a i,
.smb_my_menu li a i { font-size: 1.6rem; color: var(--color-prime); }
.smb_my_menu a:hover,
.smb_my_menu li a:hover {
    border-color: var(--color-prime);
    color: var(--color-prime);
    background: color-mix(in srgb, var(--color-prime) 6%, transparent);
}

/* 주문 현황 바 */
.smb_my_order_bar {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    background: var(--layout-header, #fff);
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}
.smb_my_order_bar > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    font-size: .82rem;
    color: #666;
}
.smb_my_order_bar > div .num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-prime);
}
.smb_my_order_bar > div a { color: inherit; text-decoration: none; }
.smb_my_order_bar > div a:hover { color: var(--color-prime); }

/* =============================================================================
   14b. 마이페이지 UXC 컴포넌트 (.uxcMypage)
   ============================================================================= */
.uxcMypage {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: .5rem 0 2rem;
}

/* 공통 카드 */
.uxcMyCard {
    background: var(--layout-header, #fff);
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 14px;
    overflow: hidden;
}
.uxcMyCard__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--layout-header-border, #eee);
}
.uxcMyCard__header h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--layout-text, #222);
}
.uxcMyCard__header h2 i { color: var(--color-prime, #6f48ff); font-size: 1.1rem; }
.uxcMyCard__more {
    font-size: .82rem;
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .15rem;
    transition: color .15s;
}
.uxcMyCard__more:hover { color: var(--color-prime, #6f48ff); }
.uxcMyCard__body { padding: 1rem 1.25rem; }

/* 프로필 카드 */
.uxcMyProfile {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: .6rem 1.2rem;
    padding: 1.5rem;
    align-items: center;
}
.uxcMyProfile__photo {
    grid-row: span 2;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
}
.uxcMyProfile__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.uxcMyProfile__info { display: flex; flex-direction: column; gap: .2rem; }
.uxcMyProfile__name { font-size: 1.1rem; font-weight: 700; }
.uxcMyProfile__id { font-size: .82rem; color: #888; }
.uxcMyProfile__stats {
    grid-column: 2;
    display: flex;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.uxcMyProfile__stats > div {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    align-items: center;
    min-width: 56px;
}
.uxcMyProfile__stats dt {
    font-size: .75rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: .2rem;
    white-space: nowrap;
}
.uxcMyProfile__stats dt i { font-size: .9rem; color: var(--color-prime, #6f48ff); }
.uxcMyProfile__stats dd {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-prime, #6f48ff);
    margin: 0;
}
.uxcMyProfile__stats dd a { color: inherit; text-decoration: none; }

/* 빠른 메뉴 */
.uxcMyQuick ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0;
}
.uxcMyQuick ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    padding: 1.1rem .6rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--layout-text, #333);
    text-decoration: none;
    border-right: 1px solid var(--layout-header-border, #eee);
    border-bottom: 1px solid var(--layout-header-border, #eee);
    transition: background .15s, color .15s;
    position: relative;
}
.uxcMyQuick ul li a i { font-size: 1.5rem; color: var(--color-prime, #6f48ff); }
.uxcMyQuick ul li a:hover { background: color-mix(in srgb, var(--color-prime) 6%, transparent); color: var(--color-prime); }
.uxcMyQuick__badge {
    position: absolute;
    top: .5rem; right: .5rem;
    background: #e53935;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .1rem .35rem;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

/* 위시리스트 목록 */
.uxcMyWishList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.uxcMyWishList__item {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--layout-header-border, #f0f0f0);
}
.uxcMyWishList__item:last-child { border-bottom: none; padding-bottom: 0; }
.uxcMyWishList__img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
}
.uxcMyWishList__img img { width: 100%; height: 100%; object-fit: cover; }
.uxcMyWishList__info { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.uxcMyWishList__name { font-size: .88rem; font-weight: 600; color: inherit; text-decoration: none; }
.uxcMyWishList__name:hover { color: var(--color-prime); }
.uxcMyWishList__price { font-size: .9rem; font-weight: 700; color: var(--color-prime, #6f48ff); }
.uxcMyWishList__date { font-size: .75rem; color: #aaa; }
.uxcMyWishList__del {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #aaa;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.uxcMyWishList__del:hover { background: #fee; color: #e53935; }

/* 빈 상태 */
.uxcMyEmpty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #aaa;
    font-size: .9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.uxcMyEmpty i { font-size: 2rem; }

/* 반응형 */
@media (max-width: 600px) {
    .uxcMyProfile {
        grid-template-columns: auto 1fr;
    }
    .uxcMyProfile__stats { gap: .8rem; }
    .uxcMyQuick ul { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================================
   15. 장바구니 (cart.php)
   ============================================================================= */
#cart_form .tbl_wrap { margin-bottom: 1rem; }

.sod_bsk { }

/* 장바구니 테이블 */
#cart_form table th { background: var(--layout-header, #f9f9f9); font-size: .85rem; padding: .6rem; }
#cart_form table td { padding: .7rem .6rem; vertical-align: middle; font-size: .88rem; }
#cart_form table td img { border-radius: 6px; }

/* 수량 조절 */
#cart_form .qty { display: flex; align-items: center; gap: .3rem; }
#cart_form .qty input { width: 50px; text-align: center; border: 1px solid #ddd; border-radius: 6px; padding: .3rem; }

/* 합계 바 */
.sod_bsk_sum,
#cart_sum {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 0;
    font-size: .92rem;
    flex-wrap: wrap;
}
.sod_bsk_sum strong,
#cart_sum strong { font-size: 1.15rem; color: var(--color-prime); font-weight: 700; }

/* 장바구니 버튼 영역 */
#cart_btn { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }

/* =============================================================================
   16. 위시리스트 (#wish)
   ============================================================================= */
#wish { }
#wish .sod_ws { }

#wish table th { background: var(--layout-header, #f9f9f9); font-size: .85rem; padding: .6rem; }
#wish table td { padding: .7rem .6rem; vertical-align: middle; font-size: .88rem; }
#wish table td img { border-radius: 6px; }

/* 위시리스트 삭제 버튼 */
.ws_del { color: #e53935; background: none; border: none; cursor: pointer; font-size: 1.1rem; }
.ws_del:hover { color: #b71c1c; }

/* =============================================================================
   17. 주문내역 (orderinquiry.php)
   ============================================================================= */
.sod_od .order_wrap { margin-bottom: 1.5rem; }

.order_info_box {
    background: var(--layout-header, #f9f9f9);
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}
.order_info_box dl { display: grid; grid-template-columns: 100px 1fr; gap: .35rem .5rem; font-size: .88rem; }
.order_info_box dt { font-weight: 600; color: #666; }
.order_info_box dd { color: #333; }

/* 주문 상태 배지 */
.od_status {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
}
.od_status.wait   { background: #fff3e0; color: #e65100; }
.od_status.ready  { background: #e3f2fd; color: #1565c0; }
.od_status.send   { background: #e8f5e9; color: #2e7d32; }
.od_status.done   { background: #ede7f6; color: #4527a0; }
.od_status.cancel { background: #fce4ec; color: #880e4f; }

/* =============================================================================
   18. 다크모드 대응 — 마이페이지·장바구니·위시리스트
   ============================================================================= */
:root.darkMode .smb_my_info,
:root.darkMode .smb_my_menu a,
:root.darkMode .smb_my_menu li a,
:root.darkMode .smb_my_order_bar,
:root.darkMode .order_info_box {
    background: var(--layout-header, #111);
    border-color: var(--layout-header-border, #2a2a2a);
}
:root.darkMode #cart_form table th,
:root.darkMode #wish table th { background: var(--layout-header, #1a1a1a); }
