/* Font Awesome 6 — 아이콘 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* ============================================================
   THE LAB CHEMICAL — 모바일 공통 CSS  (common.css)
   ▸ 모든 페이지에서 가장 먼저 로드
   ▸ PC(44274) 디자인 토큰 100% 동일 적용
   ▸ 모바일 전용 레이아웃 변수 추가
============================================================ */

/* ── 0. Fonts ── */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* ── 1. Design Tokens (PC와 동일) ── */
:root {
  /* Brand */
  --navy:         #0C025B;
  --navy-dk:      #07013e;
  --navy-lt:      rgba(12,2,91,.07);
  --accent:       #d32f2f;

  /* Text */
  --text:         #0f172a;
  --text-sub:     #64748b;
  --text-muted:   #64748b;

  /* Surface */
  --bg:           #ffffff;
  --bg-soft:      #f8fafc;
  --bg-page:      #f4f6fb;

  /* Border */
  --border:       #e2e8f0;
  --border-soft:  rgba(15,23,42,.08);

  /* Shadow */
  --shadow-xs:    0 1px 4px rgba(15,23,42,.06);
  --shadow-sm:    0 4px 14px rgba(15,23,42,.07);
  --shadow-md:    0 8px 28px rgba(15,23,42,.10);

  /* Font */
  --font:         'Pretendard', 'Noto Sans KR', sans-serif;

  /* Layout (PC용 aside 없음 — 모바일 전용) */
  --bottom-nav-h: 56px;
  --header-h:     80px;
  --wrap:         850px;

  /* Misc */
  --radius:       10px;
  --radius-lg:    16px;
  --pill:         999px;
  --ease:         .2s ease;
}

/* ── 2. Reset ── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: transparent;
}

html, body { width: 100%; }

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  /* 하단 고정 내비게이션 여백 */
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}

/* 바디 스크롤 잠금 (모달/드로어 오픈 시) */
body.body-lock { overflow: hidden; height: 100vh; touch-action: none; }

ul, li  { list-style: none; }
a       { text-decoration: none; color: inherit; }
img     { display: block; max-width: 100%; vertical-align: middle; }
address, em { font-style: normal; }
hr, caption, legend { display: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -.3px;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

fieldset { border: none; padding: 0; margin: 0; }

input, select, textarea {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
}
input:focus { outline: none !important; }
select { line-height: 1.4; }
input[type=text]::-ms-clear { display: none; }

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  word-break: keep-all;
}

#m_preview_wrap, #preview_wrap { display: none !important; }

/* ── 3. Utility ── */
.blind, .visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.clear_fix::after { content: ""; display: block; clear: both; }

.pointColor { color: var(--navy) !important; }
.fc-red     { color: var(--accent) !important; }
.fc-blue    { color: #0e67ec !important; font-weight: 700; }
.txt-bold, .bold { font-weight: 700; }
.txt-right  { text-align: right; }
.txt-center { text-align: center; }
.txt-left   { text-align: left; }
.MS_option_price { color: var(--accent); }

/* ── 4. Buttons ── */
.CSSbuttonBlack {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 18px; height: 44px;
  font-size: 14px; font-weight: 700; color: #fff;
  background: var(--navy); border: 1.5px solid var(--navy);
  border-radius: var(--radius); transition: all var(--ease);
  cursor: pointer; text-decoration: none;
}
.CSSbuttonBlack:active { background: var(--navy-dk); transform: translateY(1px); }

.CSSbuttonWhite {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 18px; height: 44px;
  font-size: 14px; font-weight: 700;
  color: var(--navy); background: var(--bg);
  border: 1.5px solid var(--navy); border-radius: var(--radius);
  transition: all var(--ease); cursor: pointer; text-decoration: none;
}
.CSSbuttonWhite:active { background: var(--navy-lt); transform: translateY(1px); }

.CSSbuttonGray {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 18px; height: 44px;
  font-size: 14px; font-weight: 600;
  color: var(--text-sub); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  transition: all var(--ease); cursor: pointer; text-decoration: none;
}
.CSSbuttonMin { padding: 0 12px; height: 34px; font-size: 12px; }

/* ── 5. Layout (모바일 컨테이너) ── */
#container {
  width: 100%;
  min-width: 320px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.maxmin {
  width: 100%;
  min-width: 320px;
  max-width: var(--wrap);
  margin: 0 auto;
}

/* 헤더 높이만큼 본문 여백 */
body > #container,
body > #contents,
body > main {
  padding-top: var(--header-h);
}

/* ── 6. Product Item List (PC와 동일 구조) ── */
.shopbrand_item_wrap { display: flex; flex-wrap: wrap; }

.item_list { display: block; }
.item_list .thumb { width: 100%; position: relative; }
.item_list .thumb > a {
  display: block; width: 100%;
  overflow: hidden; border-radius: var(--radius);
}
.item_list .thumb > a > img {
  width: 100%; transition: transform .3s;
}
.item_list .thumb > a:active > img { transform: scale(1.03); }

.item_list .info { padding: 12px 0 20px; }
.item_list .info p { margin-bottom: 6px; }
.item_list .info .prdname {
  font-size: 13px; font-weight: 600;
  color: var(--text); letter-spacing: -.2px; line-height: 1.45;
}
.item_list .info .prdetc { font-size: 12px; color: var(--text-muted); }
.item_list .info .prdprice { margin-top: 10px; }
.item_list .info .prdprice .price { font-size: 14px; font-weight: 800; color: var(--text); }
.item_list .info .prdprice strike { font-size: 12px; color: var(--text-muted); display: inline-block; font-weight: 400; }
.item_list .info .prdprice .percent { font-size: 13px; color: var(--accent); font-weight: 700; margin-right: 2px; }

/* 2열 그리드 */
.w50p { width: 48%; margin-bottom: 20px; }
.w50p:nth-child(odd) { margin-right: 4%; }

/* ── 7. Tables ── */
.table-type-2 { border-top: 2px solid var(--text); }
.table-type-2 th,
.table-type-2 td { border-bottom: 1px solid var(--border); padding: 11px 8px; }
.table-type-2 th { font-size: 13px; font-weight: 600; color: var(--text); background: var(--bg-soft); }
.table-type-2 td.nodata { text-align: center; color: var(--text-muted); }

.table-cart { border-bottom: 1px solid var(--border); }
.table-cart thead th { padding: 12px 8px; font-size: 12px; font-weight: 700; color: var(--text-sub); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.table-cart tbody td { padding: 10px 8px; border-top: 1px solid var(--border); vertical-align: middle; }
.table-cart tfoot td { padding: 12px 8px; font-weight: 700; border-top: 2px solid var(--border); }
.table-cart tfoot strong { color: var(--accent); }

/* ── 8. Pagination ── */
.paging { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 32px; }
.paging a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 6px;
  font-size: 13px; color: var(--text-sub);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all var(--ease);
}
.paging a:active, .paging a.now, .paging .now {
  color: #fff; background: var(--navy); border-color: var(--navy);
}

/* ── 9. Breadcrumb ── */
.loc-navi { height: 40px; text-align: right; overflow: hidden; }
.loc-navi, .loc-navi a { font-size: 12px; color: var(--text-muted); line-height: 40px; }

/* ── 10. Page title ── */
#content .tit-page {
  position: relative; padding-bottom: 10px;
  font-size: 18px; font-weight: 700; color: var(--text);
  border-bottom: 2px solid var(--text); margin-bottom: 24px;
}

/* ── 11. Sort / Count bar ── */
.item-order-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; border-bottom: 2px solid var(--text); margin-bottom: 24px;
}
.item-order-wrap .cate_count { font-size: 16px; font-weight: 700; }
.item-order-wrap .cate_count span { font-size: 13px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.item-order select { border: none; background: transparent; font-size: 13px; color: var(--text-sub); cursor: pointer; }

/* ── 12. Category title ── */
.cateTit { padding-top: 24px; border-top: 1px solid var(--border); margin-top: 8px; }
.cateTit h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

/* ── 13. Login / Find ID·PW (PC common.css와 동일 구조, 모바일 여백 조정) ── */
.tit-page {
  padding: 32px 0 16px;
  font-size: 20px; font-weight: 900;
  color: var(--navy); letter-spacing: -.02em;
}

#loginWrap { padding-bottom: 40px; }

#loginWrap .mlog-sign {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(12,2,91,.05);
}

#loginWrap .mlog-sign .mlog {
  flex: 1;
  padding: 28px 20px;
  border-bottom: 1px solid var(--border);
}

#loginWrap .mlog-sign .sign {
  flex: 1;
  padding: 28px 20px;
  background: var(--bg-soft);
}

#loginWrap .mlog-sign h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
#loginWrap .mlog-sign .mlog > p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }

#loginWrap .frm-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
#loginWrap .frm-list li { position: relative; }
#loginWrap .frm-list li label {
  display: block; font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; color: var(--text-muted); margin-bottom: 4px;
}
#loginWrap .frm-list li input,
#loginWrap .frm-list li .txt-frm {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font); color: var(--text); background: #fff;
  outline: none !important; transition: border-color var(--ease), box-shadow var(--ease);
}
#loginWrap .frm-list li input:focus,
#loginWrap .frm-list li .txt-frm:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12,2,91,.07);
}

#loginWrap .btn-mlog { margin-bottom: 10px; }
#loginWrap .btn-mlog a {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 50px; font-size: 15px; font-weight: 800;
  border-radius: var(--radius);
}

#loginWrap .se-log { font-size: 12px; color: var(--text-sub); }
#loginWrap .se-log label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
#loginWrap .se-log input { accent-color: var(--navy); width: 14px; height: 14px; }

#loginWrap .mlog-sign .sign dl { padding-top: 20px; }
#loginWrap .mlog-sign .sign dl:first-child { padding-top: 0; }
#loginWrap .mlog-sign .sign dl dt { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
#loginWrap .mlog-sign .sign dl dd a {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px; font-size: 14px; font-weight: 700;
  border-radius: var(--radius);
}

/* ── 14. BBS (게시판) ── */
#bbsData {
  max-width: 100%; margin: 0 auto; padding: 16px 16px 40px;
  font-family: var(--font); font-size: 14px; color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
#bbsData *, #bbsData *::before, #bbsData *::after { box-sizing: border-box; }
#bbsData .page-body { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 20px; }

#bbsData .CSSbuttonBlack, #bbsData .CSSbuttonWhite {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; font-size: 13px; font-weight: 600;
  font-family: inherit; border-radius: 8px; cursor: pointer; text-decoration: none;
  transition: all .2s;
}
#bbsData .CSSbuttonBlack { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
#bbsData .CSSbuttonWhite { background: #fff; color: var(--text-sub); border: 1px solid var(--border); }
#bbsData .CSSbuttonMin { height: 28px !important; padding: 0 10px !important; font-size: 11.5px !important; }

#bbsData .bbs-hd { margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid var(--border); }
#bbsData .bbs-hd .link { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
#bbsData .bbs-hd .link li { font-size: 12.5px; color: var(--text-muted); }
#bbsData .bbs-hd .link li::after { content: '›'; margin: 0 6px; color: #cbd5e1; }
#bbsData .bbs-hd .link li.last::after { display: none; }
#bbsData .bbs-hd .link a { color: var(--text-muted); text-decoration: none; transition: color .2s; }

#bbsData .bbs-tit { overflow: visible; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
#bbsData .bbs-tit h3 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0; padding: 0 0 8px; border-bottom: 2px solid var(--text); }

#bbsData .bbs-table-list { background: #fff; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-xs); overflow: hidden; margin-bottom: 10px; }
#bbsData .bbs-table-list table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
#bbsData .bbs-table-list caption { display: none; }
#bbsData .bbs-table-list thead th { background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; padding: 10px 8px; border-bottom: none; }
#bbsData .bbs-table-list tbody td { padding: 10px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: var(--text); font-size: 12px; word-break: break-word; }
#bbsData .bbs-table-list tbody tr:last-child td { border-bottom: none; }
#bbsData .bbs-table-list tbody td a { color: var(--text); text-decoration: none; }

#bbsData .bbs-btm { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; }
#bbsData .bbs-btm .bbs-link { position: static; }
#bbsData .paging { display: flex; justify-content: center; align-items: center; gap: 4px; }
#bbsData .paging a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; font-size: 12px; color: var(--text-sub); background: #fff; border: 1px solid var(--border); border-radius: 8px; transition: all .2s; text-decoration: none; }
#bbsData .paging a:active, #bbsData .paging a.now, #bbsData .paging .now { color: #fff; background: var(--navy); border-color: var(--navy); }

#bbsData .bbs-table-write { background: #fff; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-xs); overflow: hidden; margin-bottom: 10px; }
#bbsData .bbs-table-write fieldset { border: none; padding: 0; margin: 0; }
#bbsData .bbs-table-write table { width: 100%; border-collapse: collapse; font-size: 13px; }
#bbsData .bbs-table-write caption { display: none; }
#bbsData .bbs-table-write tbody th { background: var(--bg-soft); font-weight: 600; color: var(--text-sub); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid #f1f5f9; border-right: 1px solid #f1f5f9; vertical-align: middle; white-space: nowrap; }
#bbsData .bbs-table-write tbody td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
#bbsData .bbs-table-write input[type="text"],
#bbsData .bbs-table-write input[type="password"],
#bbsData .bbs-table-write select { height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s; width: 100%; }
#bbsData .bbs-table-write input:focus, #bbsData .bbs-table-write select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12,2,91,.08); }
#bbsData .bbs-table-write textarea { width: 100% !important; min-height: 180px !important; padding: 9px 12px !important; border: 1px solid var(--border) !important; border-radius: 8px !important; font-size: 13px !important; font-family: inherit !important; color: var(--text) !important; resize: vertical !important; line-height: 1.7 !important; transition: border-color .2s !important; }
#bbsData .bbs-table-write textarea:focus { outline: none !important; border-color: var(--navy) !important; box-shadow: 0 0 0 3px rgba(12,2,91,.08) !important; }

#bbsData .bbs-link-btm { display: flex; justify-content: center; gap: 8px; margin-top: 14px; padding: 0; }
#bbsData .bbs-link-btm dt { display: none; }
#bbsData .bbs-link-btm dd { display: flex; gap: 8px; margin: 0; padding: 0; }

/* ── 15. Privacy / Terms ── */
.privercy-contract textarea { border: 1px solid var(--border); background: var(--bg); padding: 12px; width: 100%; border-radius: var(--radius); resize: vertical; }
.privercy-agree { margin: 10px 0; }
.privercy-agree label { margin-right: 12px; }

/* ── 16. Autofill override ── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  border: 1px solid var(--border) !important;
  outline: none !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* ── 17. Makeshop 기본 오버라이드 ── */
.product_list_outer { border-top: none !important; }
.product_list_wrap.list_st2 .product_item,
.product_list_wrap.list_st3 .product_item { border-top: none !important; padding: unset !important; }
.product_list_wrap.list_st2 .product_item.item_list { margin-left: unset !important; width: unset; }
#block_mobile_area { z-index: 700 !important; }
.layer { z-index: 701 !important; }
#MS_product::after, #MS_product::before { clear: both; display: block; content: ""; padding-top: 10px; }

/* ============================================================
   THE LAB CHEMICAL — 모바일 게시판/로그인/회원 공통 CSS
   (board.css)
   ▸ common.css 로드 이후 적용
   ▸ 적용 페이지:
       - 비밀번호 확인 (main.password)
       - 게시판 목록  (#review-board-list)
       - 게시글 보기  (#review-board-type)
       - 글쓰기/수정  (#review-board-write)
       - 로그인        (main.login)
============================================================ */

/* ══════════════════════════════════════════════════════
   0. 공통 유틸리티
══════════════════════════════════════════════════════ */
.clearFix::after { content: ''; display: block; clear: both; }
.bold  { font-weight: 700; }
.gray  { color: var(--text-muted); }
.split { color: var(--border); margin: 0 4px; }
.pd10  { padding: 12px 16px; }
.original-del { font-size: 12px; color: var(--accent); margin-bottom: 4px; }

/* ══════════════════════════════════════════════════════
   1. 공통 버튼 (게시판 HTML에서 사용되는 클래스)
══════════════════════════════════════════════════════ */
.btn_Red,
.btn_White,
.btn_Grey,
.btn_Black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn_Red   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn_Red:active { background: #b71c1c; }
.btn_White { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn_White:active { background: var(--bg-soft); }
.btn_Grey  { background: var(--bg-soft); color: var(--text-sub); border-color: var(--border); }
.btn_Grey:active { background: #e5e8ef; }
.btn_Black { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn_Black:active { background: var(--navy-dk); }

/* 소형 버튼 */
.btn-white-h15 {
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 10px;
  font-size: 11px; font-weight: 600;
  color: var(--text-sub); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 6px;
  text-decoration: none;
}
.rb_gray_btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-sub); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 6px;
  text-decoration: none;
}
.btn-report {
  font-size: 11px; color: var(--accent);
  border: 1px solid rgba(211,47,47,.3);
  padding: 2px 8px; border-radius: 4px;
  text-decoration: none;
}
.btn_file {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px;
  font-size: 13px; font-weight: 600;
  color: var(--navy); background: var(--bg);
  border: 1px solid var(--navy); border-radius: var(--radius);
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════
   2. 페이지 공통 헤더 (.h_title)
══════════════════════════════════════════════════════ */
.h_title {
  padding: 18px 16px 14px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 0;
}
.h_title h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.h_title h3 .btn_Red { height: 32px; padding: 0 12px; font-size: 12px; }
.h_title h3 .all-board-list {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 20px;
}

/* 공지 배지 */
.bgc464644 {
  display: inline-flex; align-items: center; justify-content: center;
  background: #464644; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   3. 비밀번호 확인 (main.password)
══════════════════════════════════════════════════════ */
main.password {
  padding: 0 0 40px;
}
main.password .contents {
  padding: 24px 16px;
}
main.password .contents > p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 1.6;
}
main.password .form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
}
.fixButtonR {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.fixButtonR input[type="password"],
.fixButtonR .txt-input1 {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}
.fixButtonR input:focus {
  border-color: var(--navy);
  outline: none;
}
.fixButton { flex-shrink: 0; }
.btn-wrap {
  display: flex;
  gap: 8px;
}
.btn-wrap .btn_Red,
.btn-wrap .btn_White { flex: 1; }

/* ══════════════════════════════════════════════════════
   4. 검색 영역 (.search-wrap)
══════════════════════════════════════════════════════ */
.search-wrap {
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.item-search {
  display: flex;
  gap: 6px;
  align-items: center;
}
.item-search > div:first-child { flex-shrink: 0; }
.item-search > div:nth-child(2) { flex: 1; min-width: 0; }
.item-search > div:last-child { flex-shrink: 0; }
.item-search select,
.item-search input[type="text"] {
  width: 100%; height: 40px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--bg);
}
.item-search select { width: auto; min-width: 80px; }
.item-search input:focus,
.item-search select:focus { border-color: var(--navy); outline: none; }
.item-search .btn_Grey { height: 40px; padding: 0 14px; font-size: 13px; }

/* ══════════════════════════════════════════════════════
   5. 공지글 (.notice)
══════════════════════════════════════════════════════ */
.notice { border-bottom: 1px solid var(--border); }
.notice-bar {
  border-top: 1px solid var(--border);
  background: #fffef5;
}
.notice-bar dl {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  gap: 4px;
}
.notice-bar dl dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.notice-bar dl dt a { color: inherit; text-decoration: none; flex: 1; }
.notice-bar dl dd {
  font-size: 11.5px;
  color: var(--text-muted);
  padding-left: 0;
}

/* ══════════════════════════════════════════════════════
   6. 게시판 목록 (.boardList)
══════════════════════════════════════════════════════ */
.boardList {
  list-style: none;
  margin: 0; padding: 0;
}
.boardList > li {
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: relative;
  display: flex;
  align-items: flex-start;
}
.boardList > li:first-child { border-top: none; }

/* 깊이 인덴트 */
.bl_depth1, .bl_depth2 {
  padding-left: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 14px;
}

/* 상품 썸네일 */
.bl_image {
  width: 64px; flex-shrink: 0;
  padding: 10px 0 10px 16px;
}
.bl_image img {
  width: 100%; border-radius: 6px;
  border: 1px solid var(--border);
}

/* dl 본문 */
.boardList dl {
  flex: 1; min-width: 0;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.boardList dl.leftImg { padding-left: 10px; }
.boardList dl.depthType { padding-left: 8px; }

.boardList dt {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.boardList dt a { color: inherit; text-decoration: none; display: block; }
.boardList dt nobr { white-space: nowrap; }

/* 상품명 */
.dl_goodsName a {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block; margin-bottom: 2px;
}

/* 메타 */
.boardList dd {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.boardList dd img { width: 16px; height: 16px; border-radius: 50%; }

/* 별점 */
.bl_star { color: #f59e0b; font-size: 13px; }
.bl_name { font-weight: 600; color: var(--text-sub); }

/* 배지 */
.bl_cmtCount { color: var(--navy); font-weight: 700; font-size: 12px; }
.bl_iconNew {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 800;
}
.bl_iconHit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 9px; font-weight: 800;
}

/* 빈 목록 */
.none-data {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-muted);
}
.none-data i { font-size: 28px; margin-bottom: 12px; opacity: .4; }
.none-data p { font-size: 14px; }

/* 글쓰기 버튼 (하단) */
.boardWrite {
  padding: 16px;
  text-align: right;
  border-top: 1px solid var(--border);
}
.boardWrite .btn_Red { height: 40px; padding: 0 20px; }

/* ══════════════════════════════════════════════════════
   7. 페이지네이션 (게시판용)
══════════════════════════════════════════════════════ */
.paging {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
}
.paging a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--ease);
}
.paging a:hover,
.paging a.now {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.paging a span { font-size: 15px; }

/* ══════════════════════════════════════════════════════
   8. 게시글 보기 (#review-board-type)
══════════════════════════════════════════════════════ */

/* 상품 정보 카드 */
.rbItem {
  padding: 14px 16px;
  background: var(--bg-soft);
}
.rbItem dl {
  display: flex;
  gap: 12px;
  align-items: center;
}
.rbItem dl dt img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.rbItem dl .subject {
  font-size: 13px; font-weight: 600;
  color: var(--text); line-height: 1.45;
  flex: 1;
}
.rbItem dl .link-view a {
  font-size: 12px; color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 글 정보 메타 */
.rbInfo {
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}
.rbInfo dt {
  font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
  line-height: 1.5;
}
.rbInfo dd {
  font-size: 12.5px; color: var(--text-muted);
  margin-bottom: 6px; line-height: 1.6;
}
.rbInfo dd:last-child { margin-bottom: 0; }
.rb_name { font-weight: 600; color: var(--text-sub); }
.rb_star { color: #f59e0b; font-size: 13px; }
.rb_rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 본문 */
.rbContent {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; line-height: 1.85;
  color: var(--text);
  word-break: break-word;
}
.rbContent img { max-width: 100%; height: auto; border-radius: 8px; }

/* 추가정보 */
.rb_addInfo { margin-bottom: 16px; }
.rb_addInfo dl {
  display: flex; gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.rb_addInfo dt { font-weight: 700; color: var(--navy); flex-shrink: 0; min-width: 80px; }
.rb_addInfo dd { color: var(--text); }

/* 첨부 이미지 */
.rb_thumbs { margin: 12px 0; }
.rb_thumbs img { max-width: 100%; border-radius: 8px; }

/* SNS 버튼 */
.rb_icons {
  display: flex; gap: 8px; margin-top: 16px;
  flex-wrap: wrap;
}
.rb_icons img { width: 36px; height: 36px; border-radius: 6px; }

/* ══════════════════════════════════════════════════════
   9. 관련 상품 (.rbRelations)
══════════════════════════════════════════════════════ */
.rbRelations {
  padding: 16px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.rbRelations h5 {
  font-size: 13px; font-weight: 700;
  color: var(--text-sub); margin-bottom: 12px;
}
.rb_items {
  display: flex; gap: 10px; flex-wrap: nowrap;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.rb_items li { flex-shrink: 0; }
.rb_items img.listPic {
  width: 80px; height: 80px;
  object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════
   10. 답변 만족도 평가
══════════════════════════════════════════════════════ */
.score-list,
.score-write {
  border-top: 1px solid var(--border);
  padding: 16px;
}
.score-list h5,
.score-write h5 {
  font-size: 14px; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
}
.score-list table,
.score-write table { border: none; }
.score-list td, .score-write td { padding: 0; border: none; }

.sco-lst-txtr { background: var(--bg-soft); border-radius: var(--radius); padding: 14px; }
.sco-date { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sco-date strong { font-size: 15px; color: var(--navy); }
.sco-date span { font-size: 12px; color: var(--text-muted); }
.sco-txt { font-size: 13.5px; color: var(--text); line-height: 1.6; }

.sco-wrt-des {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.sco-wrt-des label { font-size: 13px; display: flex; align-items: center; gap: 4px; }
.sco-wrt-txtr { display: flex; flex-direction: column; gap: 8px; }
.sco-wrt-txtr textarea {
  width: 100%; min-height: 80px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px; resize: vertical;
}

/* ══════════════════════════════════════════════════════
   11. 댓글 쓰기 (.reply-write)
══════════════════════════════════════════════════════ */
.reply-write {
  border-top: 2px solid var(--navy);
  padding: 16px;
}
.reply-write h5 {
  font-size: 15px; font-weight: 700;
  color: var(--navy); margin-bottom: 14px;
}
.reply-write table { border: none; }
.reply-write th {
  font-size: 12.5px; font-weight: 700;
  color: var(--text-sub);
  padding: 8px 8px 8px 0;
  vertical-align: middle;
  white-space: nowrap;
  background: none;
}
.reply-write td {
  padding: 6px 4px;
  vertical-align: middle;
}
.reply-write input[type="text"],
.reply-write input[type="password"] {
  width: 100%; height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}
.reply-write input:focus { border-color: var(--navy); outline: none; }

/* 댓글 textarea + 버튼 */
.reply-write .custom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reply-write .custom textarea {
  width: 100%; min-height: 80px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px; resize: vertical;
}
.reply-write .custom textarea:focus { border-color: var(--navy); outline: none; }
.reply-write .custom .btn_Grey { align-self: flex-end; height: 38px; font-size: 13px; }

/* 댓글 파일 첨부 */
.comment-file { margin: 4px 0; }
.file-info {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.file-info img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.file-info .btn-del {
  font-size: 11px; color: var(--accent);
  background: none; border: 1px solid rgba(211,47,47,.3);
  padding: 2px 8px; border-radius: 4px; cursor: pointer;
}
.flex-box { display: flex; align-items: center; gap: 8px; }

/* 운영자만 보기 */
.reply-write tr:has(label) td { padding: 8px 0; }

/* 개인정보 동의 */
.agree {
  list-style: none; margin: 0; padding: 8px 0;
}
.agree li {
  font-size: 12.5px; color: var(--text-sub);
  padding: 6px 0;
  display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap;
  border-bottom: 1px dashed var(--border);
  line-height: 1.6;
}
.agree li:last-child { border-bottom: none; }
.agree li p { margin: 0; }
.agree li .bold { font-weight: 700; color: var(--text); }
.agree li label {
  display: flex; align-items: center; gap: 4px;
  font-size: 12.5px; cursor: pointer;
}

/* ══════════════════════════════════════════════════════
   12. 댓글 목록 (.sub-reviews)
══════════════════════════════════════════════════════ */
.sub-reviews {
  border-top: 1px solid var(--border);
}
.sub-reviews ul { list-style: none; margin: 0; padding: 0; }
.sub-reviews li {
  padding: 12px 16px;
  border-bottom: 1px dashed var(--border);
}
.sub-reviews li:last-child { border-bottom: none; }

.sub-reviews .info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.sub-reviews .info .id {
  font-size: 12px; font-weight: 600;
  color: var(--text-sub); flex: 1;
}
.sub-reviews .info .btn_White {
  height: 26px; padding: 0 10px; font-size: 11px;
}

.sub-reviews p {
  font-size: 13.5px; color: var(--text);
  line-height: 1.65; word-break: break-word;
}
.sub-reviews p.re {
  padding-left: 8px;
  border-left: 3px solid var(--border);
  color: var(--text-sub);
}

.img-comment-file { margin-bottom: 8px; }
.img-comment-file img {
  max-width: 200px; border-radius: 8px;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════
   13. 하단 버튼 / 이전·다음글
══════════════════════════════════════════════════════ */
.small-btns {
  display: flex; gap: 6px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.pd10 .btn_White,
.pd10 .btn_Red { height: 40px; }

/* 이전·다음글 (체인 형) */
.board-Chain {
  border-top: 1px solid var(--border);
  padding: 0 16px;
}
.board-Chain ul { list-style: none; margin: 0; padding: 0; }
.board-Chain li {
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px; color: var(--text-sub);
  line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.board-Chain li:last-child { border-bottom: none; }
.board-Chain a { color: var(--text); text-decoration: none; }
.board-Chain a:hover { color: var(--navy); }

/* 관련 글 목록 형 */
.board-list {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
}
.board-list ul { list-style: none; margin: 0; padding: 0; }
.board-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.board-list li:last-child { border-bottom: none; }
.board-list a { color: var(--text); text-decoration: none; }

/* ══════════════════════════════════════════════════════
   14. 댓글 팝업 레이어 (.layer-pop)
══════════════════════════════════════════════════════ */
.layer-pop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9000;
  align-items: flex-end;
  justify-content: center;
}
.layer-pop.open,
.layer-pop:target { display: flex; }

.layer-pop > div,
.layer-pop .layer {
  background: var(--bg);
  width: 100%; max-height: 85vh;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.layer-pop h3 {
  font-size: 16px; font-weight: 800;
  color: var(--navy); padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.layer-pop .txt { padding: 16px; }
.layer-pop .close {
  position: absolute;
  top: 16px; right: 16px;
  color: var(--text-muted); font-size: 20px;
  text-decoration: none;
}
.layer-pop input[type="text"],
.layer-pop input[type="password"],
.layer-pop textarea {
  width: 100%; margin-bottom: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
}
.layer-pop textarea { min-height: 80px; resize: vertical; }
.layer-pop input:focus,
.layer-pop textarea:focus { border-color: var(--navy); outline: none; }
.layer-pop .btn_Black { width: 100%; margin-top: 4px; height: 44px; }

/* ══════════════════════════════════════════════════════
   15. 글쓰기 (#review-board-write)
══════════════════════════════════════════════════════ */

/* 상품 정보 */
.reviewInfo {
  padding: 14px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.reviewInfo figure {
  display: flex; align-items: center; gap: 12px;
}
.reviewInfo figure img {
  width: 60px; height: 60px;
  object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border);
}
.reviewInfo figcaption {
  font-size: 13px; font-weight: 600;
  color: var(--text); flex: 1; line-height: 1.45;
}

/* 폼 테이블 */
#review-board-write .form-wrap {
  padding: 0;
}
#review-board-write .form-wrap table { border-top: 2px solid var(--navy); }
#review-board-write .form-wrap th {
  background: var(--bg-soft);
  font-size: 13px; font-weight: 700;
  color: var(--text-sub);
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-align: left;
}
#review-board-write .form-wrap td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
#review-board-write .form-wrap input[type="text"],
#review-board-write .form-wrap input[type="password"],
#review-board-write .form-wrap input[type="email"],
#review-board-write .form-wrap select {
  width: 100%; height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  background: var(--bg);
}
#review-board-write .form-wrap input:focus,
#review-board-write .form-wrap select:focus { border-color: var(--navy); outline: none; }
#review-board-write .form-wrap .textArea { padding: 10px; }
#review-board-write .form-wrap .textArea textarea {
  width: 100%; min-height: 180px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px; line-height: 1.7;
  resize: vertical;
}
#review-board-write .form-wrap .textArea textarea:focus { border-color: var(--navy); outline: none; }

/* 사진첨부 */
#review-board-write .fixButtonR { margin: 0; padding: 0; }
#review-board-write .fixButtonR input[type="file"] { font-size: 12px; flex: 1; }

/* 주문번호 */
.myorder { display: flex; flex-direction: column; gap: 8px; }
.myorder .btn_Grey { height: 38px; font-size: 13px; align-self: flex-start; }
.myorder .input-group {
  display: flex; align-items: center; gap: 8px;
}
.myorder .input-group input {
  flex: 1; height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}
#ordernumclear {
  font-size: 12px; font-weight: 700;
  color: var(--text-muted); cursor: pointer;
  padding: 4px 8px;
}

/* 주문내역 레이어 */
#myorderlayer {
  display: none;
  position: fixed; inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.5);
  align-items: flex-end; justify-content: center;
}
#myorderlayer:target { display: flex; }
#myorderlayer .layer {
  background: var(--bg);
  width: 100%; max-height: 85vh;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.tit-fix {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg); z-index: 1;
}
.tit-fix h3 { font-size: 16px; font-weight: 800; color: var(--navy); }
.tit-fix .close { color: var(--text-muted); text-decoration: none; font-size: 18px; }

/* 탭 */
.tab { border-bottom: 1px solid var(--border); padding: 0 12px; }
.tab ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.tab ul li a {
  display: block; padding: 10px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  transition: all var(--ease);
}
.tab ul li.now a,
.tab ul li a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.tabWrap { overflow-y: auto; flex: 1; }
.tabWrap ul { list-style: none; margin: 0; padding: 0; }
.tabWrap ul li {
  border-bottom: 1px dashed var(--border);
}
.tabWrap ul li a {
  display: block; padding: 12px 16px;
  text-decoration: none;
}
.tabWrap dl { margin: 0; }
.tabWrap dt { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.tabWrap dd { font-size: 12px; color: var(--text-muted); }
.prd-blue { color: var(--navy); }
.bar { display: inline-block; width: 1px; height: 10px; background: var(--border); margin: 0 6px; vertical-align: middle; }
.myorder-none {
  padding: 32px 16px; text-align: center;
  color: var(--text-muted); font-size: 13px;
}
.order_list_more { width: 100%; height: 40px; justify-content: center; }

/* ══════════════════════════════════════════════════════
   16. 로그인 (main.login)
══════════════════════════════════════════════════════ */
main.login {
  padding: 0 0 40px;
}

/* 한글 키보드 */
#keyboard {
  padding: 10px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  display: none; /* 기본 숨김 — JS로 토글 */
}
#keyboard p a { font-size: 13px; color: var(--navy); font-weight: 600; }
#keyboard img { max-width: 100%; margin-top: 8px; }

/* 로그인 섹션 */
section.member {
  padding: 24px 16px;
  border-bottom: 1px solid var(--border);
}

/* 아이디/비번 입력 */
.loginInput {
  margin-bottom: 10px;
}
.loginInput input[type="text"],
.loginInput input[type="password"] {
  width: 100%; height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  margin-bottom: 8px;
  background: var(--bg);
}
.loginInput input:focus { border-color: var(--navy); outline: none; }
.loginInput input:last-child { margin-bottom: 0; }

/* 체크박스 옵션 */
.loginCheck {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.loginCheck label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-sub); cursor: pointer;
}
.loginCheck input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--navy);
}

/* 로그인/찾기 버튼 */
.loginMiddle {
  display: flex; flex-direction: column; gap: 10px;
}
.loginMiddle .btn_Red,
.loginMiddle .btn_White {
  width: 100%; height: 50px; font-size: 15px;
}

/* SNS 로그인 */
section.sns-login {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sns-title {
  text-align: center; margin-bottom: 16px;
}
.sns-title img { height: 20px; margin: 0 auto; }
.sns-login ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sns-login li a {
  display: flex; align-items: center;
  width: 100%; height: 48px; padding: 0 16px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
  text-decoration: none; gap: 10px;
  transition: opacity .15s;
}
.sns-login li a:active { opacity: .85; }
.sns-login li.facebook a { background: #1877f2; color: #fff; }
.sns-login li.naver    a { background: #03c75a; color: #fff; }
.sns-login li.kakaotalk a { background: #fee500; color: #3c1e1e; }
.sns-login li.apple    a { background: #000; color: #fff; }
.sns-login li a span {
  width: 20px; height: 20px;
  background: rgba(255,255,255,.3);
  border-radius: 50%;
  flex-shrink: 0;
}

/* 비회원 회원가입 */
section.loginBottom {
  padding: 24px 16px;
  text-align: center;
}
section.loginBottom h4 {
  font-size: 16px; font-weight: 800;
  color: var(--text); margin-bottom: 8px;
}
section.loginBottom p {
  font-size: 13px; color: var(--text-sub);
  line-height: 1.6; margin-bottom: 18px;
}
section.loginBottom .btn_Black {
  width: 100%; height: 50px; font-size: 15px;
}

/* ══ READABILITY-20261016: 글자 12px 이상 · 대비 4.5 이상 · 글자 2줄 꺾임 없음 · 가벼운 SKU 표(준님 10-16 「light 한 버전」)
   ▸ 회색 글자는 위 :root --text-muted 를 #94a3b8(대비 2.6) → #64748b(4.8)로 바꿨다(장바구니 SKU · 배송 줄 · 아래 메뉴 등).
   ▸ SKU 표: 한 줄 표는 그대로. 제품코드가 칸에 안 들어가는 줄만 코드를 위 줄에 따로 두고(글자는 꺾지 않음),
     구매가 · 재고 · 수량 · 선택은 아래 줄 같은 칸 자리에 남긴다. 칸 순서 · HTML · 스크립트는 그대로(row-reverse + order).
   ▸ 가볍게: 남색 머리 → 옅은 머리, 칸 세로줄 없앰, 굵기 900/700 → 700/600, 재고 글자 바탕 없앰(위젯 납기 글자와 같은 꼴),
     고른 줄은 옅은 바탕 + 왼쪽 남색 선. 375px(아이폰) 이상은 표 글자 13px. ══ */
#prdBuyBar .buy-bar-label,
#prdBuyBar .buy-bar-vat { font-size: 12px; color: var(--text-sub); }
#prdBuyBar .buy-bar-label small { font-size: 12px; }

#productDetail .sku-table,
#productDetail .sku-table thead,
#productDetail .sku-table tbody { display: block; width: 100%; }
#productDetail .sku-table colgroup { display: none; }
#productDetail .sku-table tr { display: flex; flex-direction: row-reverse; flex-wrap: wrap-reverse; }
#productDetail .sku-table th,
#productDetail .sku-table td {
  flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 7px 2px; font-size: 12px; white-space: nowrap; border: 0;
}
#productDetail .sku-table thead th { background: #f8f7fd; color: #475569; font-weight: 600; border-bottom: 1px solid #e4e1f3; }
#productDetail .sku-table tbody tr.sku-selected { background: #f9f8ff; box-shadow: inset 2px 0 0 var(--navy); }
#productDetail .sku-table tr > :nth-child(1) {          /* 제품코드 — 남는 폭 전부, 안 들어가면 위 줄 */
  order: 5; flex: 1 1 auto; min-width: 0; display: block; align-self: center;
  padding: 5px 2px 5px 8px !important; text-align: left; overflow: hidden; text-overflow: ellipsis;
}   /* !important: 스킨 .td-spec 의 padding-left 8px !important 와 함께 */
#productDetail .sku-table th:nth-child(1) { display: flex; align-self: stretch; align-items: flex-start; }   /* 머리 칸은 높이 꽉 · 글자는 코드와 같이 왼쪽 */
#productDetail .sku-table tr > :nth-child(2) { order: 4; width: max(78px, 23%); min-width: max-content; }   /* 구매가 */
#productDetail .sku-table tr > :nth-child(3) { order: 3; width: max(75px, 21%); min-width: max-content; }   /* 재고 */
#productDetail .sku-table tr > :nth-child(4) { order: 2; width: 58px; }                                     /* 수량 */
#productDetail .sku-table tr > :nth-child(5) { order: 1; width: 25px; padding-left: 0; padding-right: 0; }  /* 선택 */
#productDetail .td-spec { word-break: normal; font-weight: 600; color: #0f172a; }
#productDetail .td-price,
#productDetail .td-price strong { font-size: 12px; font-weight: 700; }
#productDetail .td-price strike { font-size: 12px; color: #475569; font-weight: 500; }   /* PC(08-03 A안)와 같은 회색 줄긋기 */
#productDetail .stock-badge { font-size: 12px; font-weight: 500; background: none; padding: 0; height: auto; }
#productDetail .stock-badge.low { color: #c2410c; }
#productDetail .sku-qty-btn { color: #475569; }
#productDetail .sku-qty-input { font-size: 12px; font-weight: 600; border-color: #e4e1f3; }
@media (min-width: 375px) {                              /* 아이폰 폭부터 표 글자 한 단계 크게 */
  #productDetail .sku-table th, #productDetail .sku-table td, #productDetail .td-price, #productDetail .td-price strong,
  #productDetail .td-price strike, #productDetail .stock-badge, #productDetail .sku-qty-input { font-size: 13px; }
  #productDetail .sku-table tr > :nth-child(3) { width: max(78px, 21%); }
  #productDetail .sku-table tr > :nth-child(5) { width: 27px; }
}

#basket .delivery-badge { font-size: 12px; }
#basket .basket-item__delivery,
#basket .basket-item__opt-edit { font-size: 12px; }
#basket .basket-item__option > span { font-size: 12px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 배송비 줄(Chem-Impex 위젯이 p 에 바로 쓰는 두 줄 글)은 위젯이 정한 크기 그대로 둔다 — 12px 이면 360 폭에서 세 줄로 꺾인다 */
#basket .basket-item__option { margin-right: -24px; }   /* 삭제(×) 단추는 상품명 줄 옆에만 있다 — 옵션 줄은 그 자리까지 쓴다 */
@media (max-width: 340px) {                              /* 가장 작은 휴대폰(320): 그림을 60px 로 줄여 옵션 줄이 한 줄에 다 들어가게 */
  #basket .basket-item > form { grid-template-columns: 20px 60px 1fr; }
  #basket .basket-item__img { width: 60px; height: 60px; }
}

/* CHEMICAL-MOBILE-REFRESH-20261020: shared visual tokens; native forms and prices retained. */
:root{--navy:#241a52;--navy-dk:#181136;--navy-lt:#f1eff6;--text:#25232b;--text-sub:#66636f;--text-muted:#76727e;--bg:#fff;--bg-soft:#f6f5f8;--bg-page:#f6f5f8;--border:#e3e0e9;--border-soft:#e9e6ee;--radius:4px;--radius-lg:6px;--header-h:64px;--shadow-xs:none;--shadow-sm:none;--shadow-md:0 8px 24px rgba(36,26,82,.08)}
html{scroll-padding-top:76px}body{background:#fff;line-height:1.6;word-break:keep-all;overflow-wrap:break-word}
#wrap,#container,#contents,#contentWrapper,.maxmin{max-width:100%;min-width:0;box-sizing:border-box}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #6c5b9a!important;outline-offset:3px}
.CSSbuttonBlack,.CSSbuttonWhite,.CSSbuttonGray,.btn_Black,.btn_White,.btn_Grey,.btn_Red{font-size:14px;line-height:1.25;white-space:nowrap;box-shadow:none;max-width:100%}
#review-board-list form,#review-board-list fieldset,#bbsData fieldset,.bbs-search,.bbs-sch,.search-box{max-width:100%;min-width:0;box-sizing:border-box}
#review-board-list input[type=text],#bbsData input[type=text]{min-width:0;max-width:100%}
#footer,#footer *{box-sizing:border-box}

/* Empty-cart display only: no total or order action without items. */
#basket .basket-empty ~ .price-total,#basket .basket-empty ~ .order-btn,#basket .basket-empty ~ .cart-ft2{display:none}
main.login .login-form,main.login section.member{border-radius:4px;box-shadow:none}
main.login .loginInput input[type=text],main.login .loginInput input[type=password]{border-radius:4px;font-size:16px}
main.login .loginMiddle .btn_Red{background:#241a52;border-color:#241a52;box-shadow:none;border-radius:4px}
main.login .loginMiddle .btn_White,main.login .loginBottom .btn_Black{border-radius:4px;box-shadow:none}
#review-board-list .page-body,#bbsData .page-body{background:#fff;border-radius:4px;box-shadow:none}
#review-board-list .h_title h3,#bbsData .bbs-tit h3{font-weight:600;color:#241a52}
