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

   ── 디자인 토큰 (이미 잘 되어있던 상품상세/목록 페이지에서 추출, 발명 아님) ──
   이 파일을 다시 만질 때는 새 값을 즉흥적으로 정하지 말고 아래 표를 따를 것.

   • radius: 8px(버튼/입력칸, --layout-radius) · 12px(카드/박스, --layout-radius-lg)
             · 20px(pill/선택형 chip) · 50%(원형 아이콘 버튼)
   • box 여백: 14~16px(일반 카드) · 1.5rem(큰 정보 박스, 예 #sit_ov_desc)
   • 버튼 — 주 액션(장바구니/주문하기류, 사이트 공통 .btn01/.btn_submit 그대로 사용):
             padding .5rem 1.1rem, font .88rem, radius 7px — 여기서 새로 만들지 말 것
   • 버튼 — outline(보조 액션: 주소검색/선택사항수정/쿠폰적용 등):
             padding .4rem .9rem, font .8rem, radius 8px, 배경 투명+테두리
   • 버튼 — chip/pill(선택형: 결제수단/기본배송지/내용보기 토글/선택삭제 등):
             padding .35rem .8rem, font .8rem, radius 20px
   • 색상 — 박스 테두리 var(--layout-header-border,#eee) · 박스 배경 var(--layout-white,#fff)
           · 강조 var(--color-prime) · 보조 텍스트 #777~#999
   ============================================================================= */

/* [FIX] ui.css의 전역 input{width:100%;height:40px} 리셋이 checkbox/radio에도
   그대로 적용되어 (배송지목록 등에서) 라디오버튼이 40px 높이의 거대한 원으로
   깨져 보이던 문제 — 쇼핑몰 전체 checkbox/radio를 네이티브 크기로 되돌림.
   속성 선택자라 우선순위상 ui.css의 순수 input{} 보다 항상 이김 */
input[type="checkbox"], input[type="radio"] {
    width: auto;
    height: auto;
    padding: 0;
}

/* -----------------------------------------------------------------------------
   1. 공통 버튼
   ----------------------------------------------------------------------------- */
.btn01, .btn02, .btn_submit, .btn_frmline, .btn_close {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    width: auto;
    height: auto;
    padding: .5rem 1.1rem;
    border-radius: 7px;
    font-size: .88rem;
    font-weight: 600;
    font-family: inherit;
    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); }
/* [FIX] <input type="submit" class="btn_submit"> (배송지목록 "선택수정" 등)는
   ui.css의 .new_win .btn_submit{padding/height} + 브라우저 자체 폼 컨트롤
   렌더링이 겹쳐 배경색이 흰색으로 남던 문제 — !important로 확실히 덮어씀 */
input[type="submit"].btn_submit {
    background: var(--color-prime, #6f48ff) !important;
    color: #fff !important;
}
/* [FIX-중대] .btn_confirm는 그누보드 코어 전체(로그인/회원가입/댓글/글쓰기/쿠폰
   팝업/주문서 등)에서 예외 없이 버튼 1개가 아니라 버튼 여러 개를 감싸는
   래퍼 <div>로만 쓰임 — 그런데 이 파일 1번 섹션에서 .btn01/.btn_submit 같은
   "실제 버튼" 클래스와 한데 묶어 배경 #444+패딩+radius를 통째로 줬더니, 안의
   버튼들(자체 배경색 있음)을 진회색 상자가 다시 한번 감싸는 이중 박스가 되고,
   폭이 좁아 다른 요소와 flex 배치될 때(예: 주문서 #display_pay_button) 위치도
   어긋났음(장바구니 옵션수정 모달·주문서 주문버튼 두 곳 모두 이 버그였음).
   버튼 자체 스타일이 아니라 버튼들을 정렬하는 래퍼로만 사용 */
.btn_confirm {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    justify-content: flex-end;
}
.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; }
/* [FIX] table cell의 vertical-align 기본값은 "middle"이 아니라 "baseline" —
   한 줄짜리 라벨(이름/전화번호 등)에서는 눈에 띄지 않지만, "주소"처럼 입력칸
   5개가 쌓여 행이 훨씬 커지면 라벨이 셀 위쪽에 거의 붙어버려 여백 없이
   붙은 것처럼 보였음 — 명시적으로 middle 지정 */
.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;
    vertical-align: middle;
}
.tbl_frm01 td {
    border: 1px solid var(--layout-header-border, #e8e8e8);
    padding: .6rem .85rem;
    font-size: .87rem;
    vertical-align: middle;
}
.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 {
    position: relative;
    z-index: 1000000;
    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 {
    position: relative;
    z-index: 1000000;
    background: var(--layout-white, #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: 200/260;
    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 .uxc-card__name a { color: #2b2420 !important; text-decoration: none; }
.uxc-card .uxc-card__name a:hover { color: #c57600 !important; }
:root.darkMode .uxc-card .uxc-card__name a { color: #f3ece2 !important; }
:root.darkMode .uxc-card .uxc-card__name a:hover { color: #eba34a !important; }
.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 .uxc-card__price {
    font-size: 1rem;
    font-weight: 800;
    color: #2b2420 !important;
}
.uxc-card .uxc-card__orig {
    font-size: .8rem;
    color: #aaa !important;
    text-decoration: line-through;
    margin-left: .3rem;
}
:root.darkMode .uxc-card .uxc-card__price { color: #f3ece2 !important; }
:root.darkMode .uxc-card .uxc-card__orig { color: #776b5e !important; }
.uxc-card__star { font-size: .8rem; color: #f59e0b; margin-bottom: .15rem; }

/* 추천/히트/최신/인기/할인/쿠폰 배지 — 다른 카드 텍스트보다 작고 눈에 덜 띄게 */
.sit_icon_li { margin-top: .1rem; }
.shop_icon {
    font-size: .68rem;
    font-weight: 500;
    color: var(--ui-color-secondary, #64748b);
    margin-right: .35em;
}
.shop_icon:last-child { margin-right: 0; }

/* 상품 없음 */
.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: 2000000; /* 상품 이미지 z-index(1000000)보다 위 */
    overflow: hidden;
    padding: 4px 0;
}
.shop_select_to_html::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.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; z-index: 1000000; }
#sit_pvi_big {
    position: relative;
    z-index: 1000000;
    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 {
    position: relative;
    z-index: 1000000;
    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 a { display: block; width: 100%; height: 100%; }
#sit_pvi_thumb li img { width: 100%; height: 100%; object-fit: cover; display: block; }
#sit_pvi_big #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-white, #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: 2000000;
    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-white, #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)
   ----------------------------------------------------------------------------- */
/* [사용자 지시] 표+선택삭제+합계+주문버튼을 전부 하나의 카드 안에 통합 —
   따로 떠 있는 여러 박스가 아니라 "장바구니"라는 하나의 카드로 보이도록.
   [FIX-중대] 실제 core 마크업은 #sod_bsk > form#sod_bsk_list 안에
   .tbl_head03.tbl_wrap(표) / #sod_bsk_tot(합계) / #sod_bsk_act(주문버튼)가
   전부 자식으로 이미 들어있음 — 형제(sibling)라고 잘못 판단하고 인접 형제
   선택자(+)로 테두리를 이어 붙이려 했던 이전 시도는 실제 DOM과 안 맞아
   #sod_bsk_tot/#sod_bsk_act 쪽 테두리가 전혀 적용되지 않고 박스 아래쪽이
   잘려 보이는 문제를 만들었음 — #sod_bsk 하나에 테두리를 온전히 주면
   안에 있는 합계/버튼까지 자동으로 같은 박스 안에 포함되므로 그걸로 충분함 */
#sod_bsk {
    margin-bottom: 2rem;
    padding: 16px;
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 12px;
    background: var(--layout-white, #fff);
}
#sod_bsk .tbl_wrap { margin-bottom: 0; }
/* [사용자 지시] 선택삭제/비우기를 표 아래(우측)가 아니라 표 위(좌측, 체크박스
   칼럼 쪽)로 이동 — DOM 순서는 유지하되 flex order로 시각적 순서만 변경 */
#sod_bsk .tbl_head03.tbl_wrap {
    display: flex;
    flex-direction: column;
}
#sod_bsk .btn_cart_del {
    order: -1;
    justify-content: flex-start;
    padding: 0 0 .6rem;
}

.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; }

/* [FIX] 실제 마크업은 id="sod_bsk_act" (class 아님) — 지금까지 아예 매칭 안 되고 있었음.
   이커머스 장바구니 표준 패턴: 합계 박스 + 주문 버튼은 오른쪽에 한 덩어리로 뭉치고,
   부가 동작(쇼핑 계속하기)은 그 옆에 가볍게 붙는다 — space-between으로 양끝에
   멀리 떨어뜨려 놓으면 화면 전체가 텅 빈 채로 따로 노는 것처럼 보임.
   #sod_bsk 안에 이미 포함된 자식이므로 별도 테두리 없이 위쪽 구분선(dashed)만 추가 */
#sod_bsk_act {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
    padding: 1rem 0 0;
    border-top: 1px dashed var(--layout-header-border, #ddd);
}
/* 쇼핑 계속하기는 부가 동작이므로 주문하기보다 가벼운 톤(아웃라인)으로 구분 */
#sod_bsk_act .btn01 {
    background: transparent;
    border: 1.5px solid var(--layout-header-border, #ccc);
    color: #777;
}
#sod_bsk_act .btn01:hover { background: var(--layout-dropdown-hover-bg, #f5f5f5); color: #555; }
/* [FIX] 장바구니/주문서/주문상세 3곳에서 쓰는 li 클래스를 전부 포함
   (sod_bsk_sell, sod_bsk_coupon, sod_bsk_point 는 기존에 빠져 있었음).
   합계 박스도 결제 버튼과 같은 오른쪽 축에 맞춰야 하나의 결제 영역으로 읽힘 */
#sod_bsk_tot { display: flex; justify-content: flex-end; }
#sod_bsk_tot ul {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 320px;
    margin: 0;
    padding: 14px 16px;
    list-style: none;
}
/* [사용자 지시] 장바구니에서는 #sod_bsk_tot가 #sod_bsk 박스의 자식으로 이미
   포함되어 있으므로 별도 테두리 없이 위쪽 여백만 살짝 줌. 주문서 페이지
   (.sod_right, #sod_bsk 통합 카드가 없는 독립 배치)에서만 자체 테두리+모서리를
   가진 별도 카드로 부여 */
#sod_bsk #sod_bsk_tot { margin-top: 12px; }
.sod_right #sod_bsk_tot ul {
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 12px;
    background: var(--layout-white, #fff);
}
/* [FIX] li 안에 <span>라벨</span><strong>값</strong> 텍스트단위(원/점) 이렇게
   3개의 flex 항목이 생기는데, justify-content:space-between을 쓰면 이 3개를
   전부 균등하게 벌려놔서 "값"이 가운데 칼럼처럼 따로 떠 보였음 — 라벨만
   flex:1로 남는 공간을 채우게 해서 값+단위가 오른쪽에 자연스럽게 붙도록 수정 */
.sod_bsk_cnt, .sod_bsk_dvr, .sod_bsk_pt, .sod_bsk_sell, .sod_bsk_coupon, .sod_bsk_point {
    display: flex;
    align-items: baseline;
    gap: .3rem;
    font-size: .88rem;
    color: #666;
}
.sod_bsk_cnt span, .sod_bsk_dvr span, .sod_bsk_pt span,
.sod_bsk_sell span, .sod_bsk_coupon span, .sod_bsk_point span {
    flex: 1;
}
.sod_bsk_cnt {
    padding-top: .5rem;
    border-top: 1px dashed var(--layout-header-border, #ddd);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-prime);
}
.sod_left { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.sod_left > section { flex: 1 1 320px; }
.sod_right { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.sod_right > #sod_bsk_tot { flex: 0 1 320px; }
.sod_right > #sod_frm_pay { flex: 1 1 380px; min-width: 0; }
/* [FIX-중대] 실제 주문하기/취소 버튼(#display_pay_button)은 #sod_frm_pay 박스
   "안"이 아니라 orderform.sub.php가 PG사별 파일(예: kcp/orderform.3.php)로
   그 뒤에 별도 <div>로 출력해 .sod_right의 3번째 형제로 들어옴 — flex-basis를
   안 정해주면 남는 폭만큼만 차지해 #sod_frm_pay 옆(결제정보 제목 높이 부근)에
   작게 끼어 보였음. 항상 새 줄 전체 폭을 차지하게 해서 두 박스 아래에 놓이는
   주문 액션 바로 만듦 */
#sod_frm_pay ~ #display_pay_button {
    flex: 1 1 100%;
    margin-top: .5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--layout-header-border, #ddd);
}
.empty_table { text-align: center; padding: 3rem 1rem; color: #aaa; }

/* -----------------------------------------------------------------------------
   6-A2. "선택사항수정" 옵션수정 모달 (cartoption.php → cart.php가 AJAX로 불러와
   버튼 바로 뒤에 $this.after()로 삽입 — #mod_option_frm/.mod_option_bg 자체가
   모달을 염두에 둔 이름인데 position:fixed가 없어서 표 안에 그냥 끼어들어가
   행 전체를 밀어내고 소계 칸이 비어 보이게 만들던 문제. 화면 중앙 모달로 고정 */
.mod_option_bg {
    position: fixed;
    inset: 0;
    z-index: 2999999;
    background: rgba(0,0,0,.5);
}
#mod_option_frm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000000;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 12px;
    background: var(--layout-white, #fff);
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
#mod_option_frm h2 { margin: 0 0 16px; font-size: 1.1rem; font-weight: 700; }
#mod_option_frm .option_wr { margin-bottom: 16px; }
#mod_option_frm .option_wr h3,
#sit_sel_option h3 { margin: 0 0 8px; font-size: .9rem; font-weight: 700; color: #555; }
#sit_sel_option { margin-bottom: 16px; }
#sit_opt_added { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sit_opt_list, .sit_spl_list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 10px 12px;
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 8px;
}
.opt_name { font-size: .85rem; }
.opt_count { display: flex; align-items: center; gap: .4rem; }
.opt_count .sit_qty_minus, .opt_count .sit_qty_plus {
    padding: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.opt_count .num_input {
    width: 46px;
    height: 30px;
    padding: 0 .3rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 6px;
    text-align: center;
    font-size: .85rem;
    box-sizing: border-box;
}
.opt_count .sit_opt_prc { font-size: .8rem; color: #888; margin: 0 .2rem; }
.opt_count .sit_opt_del {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: var(--layout-dropdown-hover-bg, #f5f5f5);
    color: #999;
    cursor: pointer;
}
#sit_tot_price { margin: 12px 0; font-size: 1rem; font-weight: 700; color: var(--color-prime); text-align: right; }
#mod_option_frm .btn_confirm { margin-top: 16px; }

/* -----------------------------------------------------------------------------
   6-B. 장바구니/주문서 공통 — 체크박스 열, 상품 셀(이미지+이름), 액션 버튼
   ----------------------------------------------------------------------------- */
th.chk_box, td.chk_box, td.td_chk {
    text-align: center;
    white-space: nowrap;
}
.chk_box input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-prime);
    vertical-align: middle;
}
.chk_box label span { display: none; } /* 빈 span — 커스텀 체크박스 미구현, 네이티브 체크박스로 대체 */
.chk_box label { cursor: pointer; }

/* [FIX-중대] <td>에 display:flex를 주면 브라우저가 이 셀을 테이블 컬럼 계산에서
   빼버려서 이후 모든 칼럼(총수량/판매가/포인트/배송비/소계)이 한 칸씩 밀리고
   마지막 "소계" 칸이 빈칸으로 보이는 심각한 버그였음 — float 방식(고전적인
   media object 패턴)으로 교체, <td>는 반드시 table-cell 형식을 유지해야 함 */
.td_prd {
    text-align: left;
}
.td_prd .sod_img {
    float: left;
    margin-right: .8rem;
}
.td_prd .sod_img img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--layout-header-border, #eee);
}
.td_prd .sod_name { overflow: hidden; }
.sod_opt {
    margin-top: .3rem;
    font-size: .78rem;
    color: #999;
}
.sod_option_btn { margin-top: .4rem; }
.sod_option_btn .mod_options,
.sod_opt .mod_options {
    display: inline-block;
    padding: .4rem .9rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 8px;
    background: none;
    font-size: .8rem;
    color: #888;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.sod_option_btn .mod_options:hover { background: var(--color-prime); color: #fff; border-color: var(--color-prime); }

.btn_cart_del {
    display: flex;
    gap: .4rem;
    justify-content: flex-end;
    padding: .6rem 0;
}
.btn_cart_del button {
    padding: .35rem .8rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 20px;
    background: none;
    font-size: .8rem;
    color: #777;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.btn_cart_del button:hover { background: #e53935; color: #fff; border-color: #e53935; }

/* -----------------------------------------------------------------------------
   6-C. 주문서 작성 (orderform.sub.php) — 배송지선택, 주소검색, 결제수단
   ----------------------------------------------------------------------------- */
#sod_frm_orderer, #sod_frm_taker, #sod_frm_pay { margin-bottom: 1.2rem; }
#sod_frm_orderer h2, #sod_frm_taker h2, #sod_frm_pay h2 {
    margin: 0 0 .6rem;
    font-size: 1rem;
    font-weight: 700;
}
.order_choice_place {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .9rem;
}
.order_choice_place .btn_frmline { margin-left: .3rem; }
/* 배송지명 입력 + "기본배송지로 설정" 체크박스 한 줄 정렬
   [FIX] label에 nowrap이 없으면 좁은 폭에서 "기본배송지로 설/정"처럼
   단어 중간이 잘려 다음줄로 넘어감 — 통째로 다음 줄로 내려가도록 수정 */
td:has(> #ad_subject) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .6rem;
}
#ad_subject { display: inline-block; width: auto; max-width: 220px; }
label[for="ad_default"] { font-size: .82rem; color: #777; cursor: pointer; white-space: nowrap; }
#ad_default { width: 15px; height: 15px; accent-color: var(--color-prime); vertical-align: middle; }

.btn_address {
    display: inline-block;
    margin-left: .4rem;
    padding: .4rem .9rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 8px;
    background: var(--layout-dropdown-hover-bg, #f5f5f5);
    font-size: .8rem;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.btn_address:hover { background: var(--color-prime); color: #fff; border-color: var(--color-prime); }

/* [FIX-중대] 우편번호/주소검색/기본주소/상세주소/참고항목이 세로로 다닥다닥
   붙어 있어 "표의 간격이 너무 좁다"고 느껴지던 부분 — 각 줄 사이 여백 확보.
   #sod_frm_addr는 "받으시는 분"(우측) 주소 칸에만 붙은 id라서 "주문하시는 분"
   (좌측) 주소 칸에는 이 여백이 전혀 적용되지 않았음 — 반면 .btn_address의
   margin-left는 항상 전역 적용이라, 좌측에서는 우편번호+주소검색+기본주소만
   여백이 생기고 상세주소+참고항목은 붙어버려 두 그룹으로 쪼개져 보였음.
   id 대신 "주소검색 버튼이 들어있는 td"를 기준으로 잡아 좌우 양쪽에 동일하게 적용 */
td:has(> .btn_address) .frm_input,
td:has(> .btn_address) .btn_address {
    margin-bottom: 8px;
}

/* [FIX] 박스 테두리를 .pay_tbl 하나에만 주면 결제수단 표와 주문하기/취소 버튼이
   서로 다른 상자처럼 분리돼 보임(버튼이 표보다 넓은 #sod_frm_pay 폭까지 밀려나감)
   → 제목+표+버튼을 전부 #sod_frm_pay 하나의 박스 안에 묶음 */
#sod_frm_pay {
    padding: 16px;
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 12px;
    background: var(--layout-white, #fff);
}
/* 결제수단 라디오+라벨 — 브랜드 아이콘 없이도 일관된 pill 버튼 톤 */
.pay_tbl { width: 100%; box-sizing: border-box; }
.pay_tbl table { width: 100%; }
.pay_tbl th {
    padding: .5rem .5rem .5rem 0;
    text-align: left;
    font-size: .85rem;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
    vertical-align: top;
}
.pay_tbl td { padding: .4rem 0; }
.pay_tbl input[type="radio"] { display: none; }
.pay_tbl label.lb_icon {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .8rem;
    margin: 0 .3rem .3rem 0;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 20px;
    font-size: .8rem;
    color: #666;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.pay_tbl input[type="radio"]:checked + label.lb_icon {
    background: var(--color-prime);
    color: #fff;
    border-color: var(--color-prime);
}
.pay_tbl label.lb_icon:hover { border-color: var(--color-prime); }
.print_price { color: var(--color-prime); font-size: 1.15rem; }
.od_pay_buttons_el {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--layout-header-border, #ddd);
}
.cp_btn, .cp_cancel {
    padding: .4rem .9rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 8px;
    background: none;
    font-size: .8rem;
    color: #777;
    cursor: pointer;
}
.cp_btn:hover { background: var(--color-prime); color: #fff; border-color: var(--color-prime); }
.cp_cancel:hover { background: #e53935; color: #fff; border-color: #e53935; }

/* -----------------------------------------------------------------------------
   6-D. 배송지 목록 팝업 (orderaddress.php, .new_win)
   사이드바 없이 head.sub.php를 직접 호출하는 팝업 페이지 — 기본 여백만 잡아줌
   ----------------------------------------------------------------------------- */
.new_win { max-width: 900px; margin: 20px auto; padding: 0 16px; }
#win_title { margin: 0 0 14px; font-size: 1.2rem; font-weight: 700; }
.td_sbj .chk_box { display: inline-flex; align-items: center; margin-right: .5rem; }
.td_sbj input.frm_input { width: 110px; }
.td_address { text-align: left; }
.ad_tel { display: inline-block; margin-top: .2rem; font-size: .8rem; color: #888; }
.td_mng { white-space: nowrap; }
.mng_btn {
    display: inline-block;
    padding: .35rem .8rem;
    margin: 0 .2rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 20px;
    background: none;
    font-size: .8rem;
    color: #777;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.mng_btn:hover { background: var(--color-prime); color: #fff; border-color: var(--color-prime); }
.del_address.mng_btn:hover { background: #e53935; border-color: #e53935; }
input[type="radio"] + label.default_lb { cursor: pointer; }
.win_btn {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--layout-header-border, #eee);
}
/* 크기/폰트/radius는 공통 버튼 규칙(1번 섹션)에서 상속 — 색상만 오버라이드 */
.btn_close {
    border: 1px solid var(--layout-header-border, #ddd);
    background: none;
    color: #666;
}
.btn_close:hover { background: var(--layout-dropdown-hover-bg, #f5f5f5); }
/* .tbl_frm01 밖에서 쓰이는 .frm_input(예: 배송지목록 페이지) 기본 리셋 */
.frm_input {
    height: 36px;
    padding: 0 .7rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 6px;
    font-size: .85rem;
    box-sizing: border-box;
}
.frm_input:focus { outline: none; border-color: var(--color-prime); }

/* -----------------------------------------------------------------------------
   6-E. 상품문의(itemqalist.php)/사용후기(itemuselist.php) 목록
   테마 스킨이 core 마크업을 그대로 include만 해서 CSS가 전혀 없던 페이지
   ----------------------------------------------------------------------------- */
#sqa_sch, #sps_sch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 12px;
    background: var(--layout-white, #fff);
}
#sqa_sch select, #sps_sch select {
    height: 38px;
    padding: 0 .8rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 8px;
    font-size: .85rem;
    background: var(--layout-white, #fff);
}
.sch_wr { display: flex; align-items: center; gap: .3rem; flex: 1; min-width: 160px; }
.sch_input {
    flex: 1;
    height: 38px;
    padding: 0 .9rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 8px;
    font-size: .85rem;
    box-sizing: border-box;
}
.sch_input:focus { outline: none; border-color: var(--color-prime); }
.sch_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: var(--color-prime);
    color: #fff;
    cursor: pointer;
}
#sqa_sch > a, #sps_sch > a {
    padding: .4rem .9rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 20px;
    font-size: .8rem;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
}
#sqa_sch > a:hover, #sps_sch > a:hover { background: var(--color-prime); color: #fff; border-color: var(--color-prime); }

#sqa ol, #sps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
#sqa li, #sps li {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 12px;
    background: var(--layout-white, #fff);
}
#sqa_empty, #sps_empty { text-align: center; padding: 3rem 1rem; color: #aaa; }

.sqa_img, .sps_img { flex-shrink: 0; width: 70px; }
.sqa_img a, .sps_img_inner a { display: block; text-decoration: none; color: inherit; text-align: center; }
.sqa_img img, .sps_img img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--layout-header-border, #eee); }
.sqa_img span, .sps_img span { display: block; margin-top: 4px; font-size: .72rem; color: #888; }

.sqa_section, .sps_section { flex: 1; min-width: 0; position: relative; }
.sqa_section h2 { margin: 0 0 6px; font-size: .95rem; font-weight: 700; }
.sit_qaa_done, .sit_qaa_yet {
    display: inline-block;
    margin-bottom: 6px;
    padding: .2rem .6rem;
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 600;
}
.sit_qaa_done { background: color-mix(in srgb, var(--color-prime) 15%, transparent); color: var(--color-prime); }
.sit_qaa_yet { background: var(--layout-dropdown-hover-bg, #f5f5f5); color: #999; }
.sqa_dl, .sps_dl { display: flex; gap: 12px; margin: 4px 0; padding: 0; font-size: .78rem; color: #999; }
.sqa_dl dd, .sps_dl dd { margin: 0; }
.sqa_con {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--layout-header-border, #eee);
    font-size: .85rem;
    line-height: 1.6;
}
.qa_alp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--layout-dropdown-hover-bg, #f5f5f5);
    font-size: .75rem;
    font-weight: 700;
    color: var(--color-prime);
}
.sqa_con_btn { margin-top: 8px; }
.sqa_con_btn button,
.sps_con_btn > button {
    padding: .35rem .8rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 20px;
    background: none;
    font-size: .8rem;
    color: #777;
    cursor: pointer;
}
.sqa_con_btn button:hover, .sps_con_btn > button:hover { background: var(--color-prime); color: #fff; border-color: var(--color-prime); }

/* 사용후기 목록 이미지 + 큰 이미지 보기 버튼 */
.sps_img_inner { position: relative; }
.prd_detail {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .7rem;
    cursor: pointer;
}
.sps_pd_name { display: block; font-weight: 600; font-size: .85rem; }
.sps_rv_tit { display: block; margin: 4px 0; font-size: .92rem; font-weight: 700; }
.sps_rv_thum { display: none; }
.sps_con_btn { margin-top: 8px; }

/* 사용후기 상세 팝업 (오버레이) */
.review_detail_cnt {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000000;
    background: rgba(0,0,0,.5);
}
.review_detail_in {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 12px;
    background: var(--layout-white, #fff);
}
.review_detail_in h3 { margin: 0 0 12px; font-size: 1.1rem; }
.review_summ { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.review_summ img:first-child { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.rd_cls {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--layout-dropdown-hover-bg, #f5f5f5);
    cursor: pointer;
}

/* -----------------------------------------------------------------------------
   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; }

/* 체크박스 */
/* [FIX] flex-wrap/nowrap이 없으면 좁은 폭에서 라벨 글자가 한 글자씩 세로로
   쪼개져 줄바꿈됨 — 체크박스 단위로 통째로 다음 줄에 내려가도록 수정.
   [FIX-중대] .chk_box는 itemqaform/itemuseform의 <li>/<ul>, 상세검색의 <div>
   등에서만 쓰던 클래스인데 장바구니/배송지목록 표의 <td class="td_chk chk_box">/
   <th class="chk_box">에도 같은 클래스가 붙어 있어 display:flex가 그대로
   적용됨 — <td>에 flex를 주면 표 컬럼 계산에서 빠져 행 높이를 못 따라가고
   셀이 자기 내용 크기(체크박스 한 줄)만큼만 줄어들어 체크박스가 위쪽에
   붙어 보이던 원인이었음(.td_prd에서 겪었던 것과 동일한 버그 패턴).
   표의 th/td에는 flex를 적용하지 않도록 제외 */
.chk_box:not(td):not(th) { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; }
.chk_box input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--color-prime); }
.chk_box label { display: inline-flex; align-items: center; gap: .2rem; white-space: nowrap; }
th.chk_box, td.chk_box, td.td_chk { vertical-align: middle; }
.selec_chk { font-size: .82rem; cursor: pointer; }

/* -----------------------------------------------------------------------------
   8-B. 상품 검색결과 상세검색 패널 (#ssch_frm)
   테마에 스타일이 전혀 없어 ui.css의 전역 input{width:100%;height:40px} 리셋을
   그대로 물려받아 가격 입력칸이 풀폭으로 늘어지고, 정렬/분류 목록도 민짜 텍스트로
   보이던 것을 #ssch_sort(상품목록 정렬바)와 동일한 pill 버튼 톤으로 맞춤
   ----------------------------------------------------------------------------- */
#ssch > h2 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; }
#ssch > h2 strong { color: var(--color-prime); }
.ssch_result_total { margin-left: .5rem; font-size: .85rem; font-weight: 400; color: #888; }

#ssch_frm {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 12px;
    background: var(--layout-white, #fff);
}
.ssch_scharea {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 12px;
}
.ssch_scharea .ssch_input {
    flex: 1;
}
.ssch_scharea .tooltip_icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: var(--layout-dropdown-hover-bg, #f5f5f5);
    color: #999;
    cursor: pointer;
}
.ssch_scharea .tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 2000000;
    width: 280px;
    padding: 10px 12px;
    border: 1px solid var(--layout-header-border, #eee);
    border-radius: 8px;
    background: var(--layout-white, #fff);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    font-size: .78rem;
    line-height: 1.5;
    color: #777;
}

/* 인풋 공통 리셋 (ui.css의 input{width:100%;height:40px} 무력화) */
.ssch_input {
    height: 38px;
    padding: 0 .9rem;
    border: 1px solid var(--layout-header-border, #ddd);
    border-radius: 8px;
    background: var(--layout-white, #fff);
    font-size: .85rem;
    box-sizing: border-box;
}
.ssch_input:focus {
    outline: none;
    border-color: var(--color-prime);
}
/* 가격 범위 입력칸만 슬림하게 — size="10" 속성은 무시되므로 폭을 직접 지정 */
.ssch_option .ssch_input {
    width: 110px;
    flex: 0 0 auto;
}
.ssch_option { font-size: .85rem; color: #777; }

/* 분류/정렬 pill 목록 — #ssch_sort(상품목록 정렬바)와 동일한 톤 */
#ssch_cate ul,
#ssch_sort_all {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px dashed var(--layout-header-border, #eee);
}
#ssch_cate ul { margin-top: 12px; padding-top: 12px; }
#ssch_sort_all { margin-top: 10px; padding-top: 10px; border-top: none; }
#ssch_cate ul li a,
#ssch_sort_all li a {
    display: inline-block;
    padding: .35rem .8rem;
    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_cate ul li a:hover,
#ssch_sort_all li a:hover,
#ssch_sort_all li.active a {
    background: var(--color-prime);
    color: #fff;
    border-color: var(--color-prime);
}

/* -----------------------------------------------------------------------------
   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); }
