:root {
  --bg: #f4f6f8; --paper: #fff; --ink: #12303f; --muted: #5d707b; --line: #dbe2e7;
  --accent: #0f6f9c; --accent-soft: #e3f1f8; --hot: #d9480f; --r: 10px;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); word-break: keep-all; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
code { font: 500 13px/1.4 ui-monospace, "SF Mono", Consolas, monospace; color: var(--accent); letter-spacing: .01em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 64px; outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 상단 */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top__in { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.logo img { height: 26px; width: auto; display: block; }
.logo span { padding-left: 10px; border-left: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.search { flex: 1; display: flex; min-width: 220px; max-width: 460px; }
.search input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: var(--bg); }
.search button { height: 40px; padding: 0 16px; border: 0; border-radius: 0 8px 8px 0; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }
.top__nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.cartlink b { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--hot); color: #fff; text-align: center; font-size: 12px; line-height: 22px; font-variant-numeric: tabular-nums; }
.who { padding-left: 18px; border-left: 1px solid var(--line); line-height: 1.2; }
.who small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
/* 위쪽 띠: 미수금 잔액 · 입금계좌 */
.paybar { border-top: 1px solid var(--line); background: var(--bg); font-size: 14px; }
.paybar[hidden] { display: none; }
.paybar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding-top: 8px; padding-bottom: 8px; }
.paybar__item { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.paybar__k { color: var(--muted); font-size: 13px; }
.paybar__num { font-size: 16px; font-variant-numeric: tabular-nums; }

.paybar small { color: var(--muted); font-size: 12px; }
.paybar__none { color: var(--muted); }
.paybar__acc b { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.paybar__copy { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.paybar__copy:hover { border-color: var(--ink); }
.paybar__copy:active { transform: scale(.97); }
@media (max-width: 600px) { .paybar { font-size: 13px; } .paybar__in { gap: 2px 16px; padding-top: 6px; padding-bottom: 6px; } .paybar__item { gap: 2px 8px; } .paybar__k { font-size: 12px; } .paybar__num { font-size: 15px; } .paybar__copy { height: 26px; padding: 0 7px; } .paybar__copy span { display: none; } }
.foot { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 13px; }

/* 상품 분류 메뉴 · 용품 진열 */
.catsnav { border-top: 1px solid var(--line); }
.catsnav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.catsnav a { padding: 11px 16px; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.catsnav a:hover { color: var(--ink); }
.catsnav a.on { color: var(--ink); border-bottom-color: var(--accent); }
.shelftiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shelftile { display: flex; align-items: center; gap: 16px; height: 100%; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s; }
.shelftile:hover { border-color: var(--ink); }
.shelfrow { height: auto; } /* 첫 화면: 타이어 · 엔진오일 · 악세사리를 한 줄씩 따로 */
.shelftile .thumb { width: 76px; flex: none; }
.shelftile b { display: block; font-size: 17px; }
.shelftile small { color: var(--muted); font-size: 13px; }
.chip small { font-weight: 500; opacity: .7; margin-left: 2px; font-variant-numeric: tabular-nums; }
.chip.static { cursor: default; display: inline-flex; align-items: center; gap: 6px; padding-right: 6px; }
.chip.static:hover { border-color: var(--line); }
.chip .x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.chip .x:hover { background: #fde9d9; color: var(--hot); }
.shelf[hidden] { display: none; }
.shelf .products { margin-top: 0; }
.product { position: relative; }
.tag { position: absolute; top: 20px; left: 20px; padding: 2px 9px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 700; background: #fde9d9; color: #a23a0b; }
.tag[data-s="겨울용"] { background: var(--accent-soft); color: var(--accent); }
/* 특판·리퍼 */
.tag[data-k="리퍼"] { background: var(--accent-soft); color: var(--accent); }
.tag[data-k="재고 할인"] { background: #e6f4ea; color: #1b7a3d; }
.spgallery { display: grid; gap: 6px; margin-bottom: 8px; }
.spgallery .thumb { margin-bottom: 0; }
.spthumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.spthumb { width: 44px; height: 44px; padding: 0; border: 2px solid var(--line); border-radius: 6px; background: var(--paper); overflow: hidden; cursor: pointer; }
.spthumb.on { border-color: var(--accent); }
.spthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spnote { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.product.special .eta { width: max-content; }
.sptag { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 700; background: #fde9d9; color: #a23a0b; }
@media (max-width: 900px) { .shelftiles { grid-template-columns: 1fr; } }

/* 공통 */
.h1 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.h1 small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.h1 i { font-style: normal; color: var(--accent); }
.block { margin-top: 36px; }
.block h2 { font-size: 17px; margin-bottom: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span { color: var(--ink); font-weight: 600; }
.empty { margin-top: 24px; padding: 40px 24px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); text-align: center; }
.empty a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn { height: 38px; padding: 0 16px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform .1s, background .15s; }
.btn:hover { background: #0b5a80; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--paper); color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.big { width: 100%; height: 50px; font-size: 16px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); overflow: hidden; }
.qty button { width: 32px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 17px; color: var(--muted); }
.qty button:hover { background: var(--bg); color: var(--ink); }
.qty input { width: 42px; height: 36px; border: 0; border-inline: 1px solid var(--line); text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; background: none; }
.qty input::-webkit-inner-spin-button { display: none; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.en { display: block; font-size: 12px; color: var(--muted); }
/* 연식을 합친 카달로그 페이지에서 한쪽 연식에만 쓰는 부품 표시 (예: 유로5+ 전용) */
.inote { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #fff1e8; color: var(--hot); font-size: 11.5px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.r { text-align: right; }

/* 메인: 브랜드 */
.lead { padding: 20px 0 28px; max-width: 720px; }
.lead h1 { font-size: 32px; line-height: 1.25; letter-spacing: -.025em; }
.lead p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.brands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.brandtile { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.brandtile:hover { border-color: var(--ink); box-shadow: 0 10px 24px -14px rgba(18, 48, 63, .45); transform: translateY(-2px); }
.brandtile__logo { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 24px; }
.brandtile__logo img { max-width: 78%; max-height: 64px; object-fit: contain; }
.wordmark { font-size: 26px; font-weight: 800; letter-spacing: .04em; }
.brandtile__meta { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg); }
.brandtile__meta small { color: var(--muted); }

/* 차종 */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.modelcard { position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.modelcard:hover { border-color: var(--ink); }
.modelcard small { color: var(--muted); font-size: 13px; }
.modelcard em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 999px; }
.sil { width: 100%; height: 84px; margin-bottom: 10px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.modelhead { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.modelhead .sil { width: 120px; height: 66px; margin: 0; }
.modelhead p { color: var(--muted); }
/* 차종 사진(공식 사진 800x500)과 색상 고르기 */
.modelphoto { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: contain; margin-bottom: 10px; background: #fff; border-radius: 8px; }
.modelcard .ncolors { color: var(--ink); font-weight: 600; font-size: 12px; }
.modelhead.hasphoto { align-items: flex-start; }
.modelhead .modelphoto { width: 320px; flex: none; margin: 0; border: 1px solid var(--line); }
.colorpick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.colorchip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.colorchip img { width: 44px; height: 28px; object-fit: contain; background: #fff; border-radius: 999px; }
.colorchip code { font-size: 11px; color: var(--muted); }
.colorchip.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* 처음 화면 용품 브랜드 타일 */
.block h2 small { margin-left: 8px; font-size: 14px; font-weight: 400; color: var(--muted); }
.shelfbrands .brandtile__logo { aspect-ratio: 5 / 3; padding: 16px; }
.shelfbrands .brandtile__logo img { max-height: 52px; }
.shelfbrands .brandtile__logo.pic { padding: 0; background: #fff; }
.shelfbrands .brandtile__logo.pic img { box-sizing: border-box; width: 100%; height: auto; aspect-ratio: 5 / 3; padding: 8px; max-width: none; max-height: none; object-fit: contain; }
.shelfbrands .wordmark { font-size: 20px; text-align: center; }
.shelfbrands .brandtile.all .brandtile__logo svg { width: 64px; height: 64px; }
@media (max-width: 720px) { .modelhead.hasphoto { flex-direction: column; } .modelhead .modelphoto { width: 100%; } }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.tabs a { padding: 12px 22px; border-radius: 10px 10px 0 0; font-weight: 700; background: #e7ecf0; color: var(--muted); }
.tabs a small { display: block; font-weight: 500; font-size: 12px; }
.tabs a.on { background: var(--ink); color: #fff; }
.tabs + .chips { margin-top: 20px; }

/* 카달로그 그룹 */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.groupcard { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s; }
a.groupcard:hover { border-color: var(--ink); }
.groupcard__img { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 10px; color: var(--muted); }
.groupcard__img svg { width: 100%; height: 100%; }
.groupcard__img .co { display: none; }
.groupcard__t { padding: 10px 14px; border-top: 1px solid var(--line); font-weight: 600; }
.groupcard__t i { font-style: normal; color: var(--accent); margin-right: 8px; font-variant-numeric: tabular-nums; }
.groupcard.off { opacity: .55; }

/* 분해도 */
.cathead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 16px; }
.cathead > :first-child { justify-self: start; }
.cathead > :last-child { justify-self: end; }
td code { white-space: nowrap; }
.navbtn { font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.navbtn:hover { color: var(--ink); border-color: var(--ink); }
.catalog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
/* 따라오는 도면·주문 요약: 위쪽 머리(로고·미수금 띠·메뉴) 높이 --toph 아래에 붙고, 화면보다 길면 칸 안에서 스크롤 */
.diagram { position: sticky; top: calc(var(--toph, 76px) + 10px); max-height: calc(100vh - var(--toph, 76px) - 20px); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.diagram svg { display: block; width: 100%; height: auto; }
.hint { font-size: 12px; color: var(--muted); text-align: center; padding-top: 6px; }
svg .pt, .thumb { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
svg .nofill { fill: none; }
svg .dash { fill: none; stroke: #9fb0ba; stroke-width: 1; stroke-dasharray: 5 4; }
svg .wire { fill: none; stroke-width: 5; }
svg .tube { fill: none; stroke-width: 26; stroke: var(--ink); stroke-linecap: butt; }
svg .tube-in { fill: none; stroke-width: 22.5; stroke: var(--paper); stroke-linecap: butt; }
svg .pt.on { stroke: var(--hot); stroke-width: 2.4; fill: #fff1ea; }
svg .pt.on .tube { stroke: var(--hot); }
svg .pt.on .tube-in { stroke: #fff1ea; }
svg .pt.on .nofill, svg .pt.on .wire { fill: none; }
.co { cursor: pointer; outline: none; }
.co line { stroke: var(--muted); stroke-width: 1; }
.co rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
.co text { font: 700 16px var(--font); fill: var(--ink); text-anchor: middle; }
.co:hover rect, .co.on rect, .co:focus-visible rect { fill: var(--hot); stroke: var(--hot); }
.co:hover text, .co.on text, .co:focus-visible text { fill: #fff; }
.co.on line { stroke: var(--hot); }
.thumb { width: 100%; aspect-ratio: 1; background: var(--bg); border-radius: 8px; stroke-width: 1.8; }
.thumb .tube { stroke-width: 18; } .thumb .tube-in { stroke-width: 14.5; }

.partlist { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.partlist__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; }
th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 9px 10px; background: var(--bg); white-space: nowrap; }
th.r { text-align: right; }
td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
td b { display: block; }
.ref { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 6px; border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.need { text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.partlist tr.on td { background: #fff4ee; }
.partlist tr.on .ref { background: var(--hot); border-color: var(--hot); color: #fff; }

/* 스토어 */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 20px; }
.chips + .products { margin-top: 0; }
.product { display: flex; flex-direction: column; gap: 3px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.product[hidden] { display: none; }
.product .thumb { margin-bottom: 8px; }
.product .price { margin-top: auto; padding-top: 8px; font-size: 17px; }
.buy { display: flex; gap: 8px; margin-top: 8px; }
.buy .btn { flex: 1; padding: 0 8px; }
.where { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: underline; }

/* 장바구니 · 주문 */
.cartgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-top: 18px; }
.carttable { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: table; }
.del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 8px 4px; }
.del:hover { color: var(--hot); }
.summary { position: sticky; top: calc(var(--toph, 76px) + 10px); display: grid; gap: 14px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.summary h2 { font-size: 17px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-variant-numeric: tabular-nums; }
.summary dd { margin: 0; text-align: right; }
.summary .total { font-weight: 800; font-size: 18px; }
.summary .total small { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 4px; }
.summary label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.summary select, .summary textarea { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 400; resize: vertical; }
.orders { display: grid; gap: 14px; margin-top: 18px; }
.orders > li { padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.orders__head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.orders__head b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.orders__head strong { margin-left: auto; color: var(--ink); font-size: 16px; }
.state { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.orders ul { margin: 10px 0; display: grid; gap: 4px; }
.orders ul span { color: var(--muted); }
.memo { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { margin-left: 10px; text-decoration: underline; color: #9fd8f3; white-space: nowrap; }

/* 로그인 · 상태 · 관리자 */
.guest .member { display: none; }
.linkbtn { border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; text-decoration: underline; padding: 8px 0; }
.login { max-width: 380px; margin: 48px auto; padding: 28px; display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.login > p { color: var(--muted); }
.login label.login__keep { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.login label.login__keep input { width: 16px; height: 16px; padding: 0; margin: 0; }
.login label, .form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.login input, .form input, .form select, .form textarea, .cell { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 400; min-width: 0; }
.form textarea { height: auto; padding: 10px 12px; font: 13px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
.err { color: var(--hot); font-weight: 600; min-height: 1.5em; font-size: 14px; }
.sub { font-size: 13px; text-align: center; }
.notice { margin-top: 14px; padding: 12px 16px; border-radius: var(--r); background: #fff4ee; color: #a23a0b; font-weight: 600; }
/* 주문서의 배송지, 주문 내역의 버튼 줄 */
.addr { display: grid; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.addr[hidden] { display: none; }
.addr legend { font-size: 13px; font-weight: 700; padding: 0 6px; }
.addr label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.addr input:not([type=checkbox]), .addr textarea { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 400; min-width: 0; resize: vertical; }
.addr .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.orderbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.orderbtns .cancelorder { margin-left: auto; }
.orders .notice { margin: 10px 0; font-size: 14px; }
.state[data-s="가격 확인 중"] { background: #fff4ee; color: #a23a0b; }
.muted { color: var(--muted); }
.login label small { font-weight: 400; color: var(--muted); }
a.linkbtn { text-decoration: underline; }
.shipcell { min-width: 200px; }
.shipcell .cell { display: block; width: 100%; height: 30px; margin-bottom: 4px; font-size: 13px; }
.cell.quote { width: 110px; height: 30px; margin-left: 8px; }
.panel td small.nomark { display: block; font-size: 12px; }
.feeline { color: var(--muted); }
.feeadd .cell { height: 34px; width: 150px; }
.feeadd .cell.num { width: 110px; }
.summary .help { font-size: 12px; margin-top: 6px; }
/* 상품 사진과 사이즈 선택 */
img.thumb.photo { object-fit: contain; background: #fff; border: 1px solid var(--line); }
/* 사진이 없는 부품의 품번 라벨 그림 */
svg.thumb.plabel { background: #fff; stroke: none; fill: none; }
svg.thumb.plabel text { font-family: inherit; }
/* 분해도 부품 목록의 부품 사진(있는 부품만) */
.partlist .pimg { float: left; width: 52px; height: 52px; margin: 0 10px 0 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.partlist .pimg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product .size { display: grid; gap: 4px; margin: 6px 0 4px; font-size: 12px; font-weight: 600; }
.product .size small { font-weight: 400; color: var(--muted); }
.product .size select { height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 600; }
.product .vprice { margin-top: auto; padding-top: 8px; }
.product .vprice .price { font-size: 17px; padding-top: 0; }
.shelfimg { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; vertical-align: middle; }
.best { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--accent-soft); }
.best h2 small { font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 6px; }
.best .products { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.morerow { margin-top: 14px; text-align: center; }
.cell:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }
.notice.ok { background: #e6f4ea; color: #1b7a3d; margin: 0 0 14px; }
.price.ask { color: var(--muted); font-weight: 600; font-size: 14px; }
/* 참고가: 확정가가 아니라서 흐린 글자 + 작은 "참고가" 표시 */
.refp small { margin-right: 4px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
.price.refp { color: var(--muted); font-weight: 600; }
/* 주문몰 전용 단가: 기본단가는 줄을 그어 작게 윗줄에, 그 아래 전용가를 크게 */
.origline { display: block; font-size: 12px; line-height: 1.3; font-weight: 400; }
.origline .orig { margin-right: 6px; color: var(--muted); }
.origline .off { color: var(--hot); font-style: normal; font-weight: 700; }
.mallk { margin-right: 5px; padding: 1px 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.cut { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.linecut { margin-left: 4px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.linecut s { color: var(--muted); font-weight: 400; }
/* 관리자 부품 가격 탭: 등급가 아래 전용가 칸 */
.mallp { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.mallp .cell { width: 92px; height: 30px; }
.form [hidden] { display: none; }
.form label.volsep { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-weight: 400; cursor: pointer; }
.form label.volsep input { width: 16px; height: 16px; padding: 0; margin: 0; }
.state[data-s="한도 확인 중"] { background: #fff4ee; color: #a23a0b; }
.state[data-s="접수"] { background: #e6f4ea; color: #1b7a3d; }
.state[data-s="출고 완료"] { background: var(--ink); color: #fff; }
.state[data-s="취소"] { background: #eceff1; color: var(--muted); }
.panel { margin-top: 18px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.panel h2 { font-size: 16px; margin-bottom: 12px; }
.panel table { min-width: 640px; }
.form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.form label { flex: 1 1 150px; }
.form .wide { flex-basis: 100%; }
/* 관리자 권한 고르기 */
.permboxes { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.form .permboxes label, .permboxes label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; }
.permboxes input { width: 16px; height: 16px; padding: 0; margin: 0; }
.permedit { display: inline-block; margin-left: 6px; font-size: 12px; }
.permedit summary { cursor: pointer; color: var(--muted); }
.permedit .permboxes { max-width: 360px; }
.cell { height: 36px; width: 110px; }
.cell.num { text-align: right; font-variant-numeric: tabular-nums; }
.help { color: var(--muted); font-size: 13px; margin-top: 8px; }
.orders__head select { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 600; }
.orders__head em { font-style: normal; font-weight: 700; color: var(--ink); }
.panel h3 { font-size: 14px; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.panel tr.cur td { background: var(--accent-soft); }
.more { margin-top: 14px; font-size: 13px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.form input[type=file] { padding: 8px; height: auto; }

/* 올린 도면 이미지 + 번호 표시 */
.dimg { position: relative; line-height: 0; }
.dimg img { width: 100%; height: auto; border-radius: 6px; user-select: none; }
/* 넓은 화면: 도면 칸이 화면 높이를 넘지 않게 그림을 줄인다(번호 표시는 그림 크기 % 라 같이 줄어든다) */
@media (min-width: 901px) { .diagram .dimg { width: fit-content; max-width: 100%; margin: 0 auto; } .diagram .dimg img { width: auto; max-width: 100%; max-height: calc(100vh - var(--toph, 76px) - 76px); } }
.dimg.edit { max-width: 760px; border: 1px solid var(--line); cursor: crosshair; }
.spot { position: absolute; transform: translate(-50%, -50%); min-width: 28px; height: 26px; padding: 0 5px; border: 1.5px solid var(--accent); border-radius: 6px; background: rgba(227, 241, 248, .9); color: var(--ink); font: 700 14px/1 var(--font); cursor: pointer; font-variant-numeric: tabular-nums; }
.spot:hover, .spot.on { background: var(--hot); border-color: var(--hot); color: #fff; z-index: 1; }
/* 거래처 화면: 도면에 인쇄된 번호 위에 투명한 누름 영역을 얹는다 (도면 크기에 맞춰 같이 커지고 작아진다) */
.dimg:not(.edit) .spot { width: 4.2%; height: 2.7%; min-width: 0; padding: 0; font-size: 0; border-radius: 4px; border: 1px solid rgba(15, 111, 156, .45); background: rgba(15, 111, 156, .1); }
.dimg:not(.edit) .spot:hover, .dimg:not(.edit) .spot.on { background: rgba(217, 72, 15, .28); border: 2px solid var(--hot); }
/* 영역 표시(칸 전체·큰 번호): 평소에는 보이지 않고, 올리거나 고른 때만 옅게 칠한다 */
.dimg:not(.edit) .spot.area { min-width: 28px; min-height: 28px; border-radius: 6px; border: 2px solid transparent; background: transparent; }
.dimg:not(.edit) .spot.area:hover, .dimg:not(.edit) .spot.area.on { background: rgba(217, 72, 15, .14); border-color: var(--hot); }
.dimg.edit .spot.area { min-width: 0; padding: 0; background: rgba(15, 111, 156, .12); border-style: dashed; display: flex; align-items: flex-start; justify-content: flex-start; }
.dimg.edit .spot.area.on { background: rgba(217, 72, 15, .2); color: var(--ink); }
.dimg.edit .spot { min-width: 22px; height: 20px; padding: 0 3px; font-size: 12px; }
.was { display: block; font-size: 12px; color: var(--hot); font-weight: 600; }
.was.orig { color: var(--muted); font-weight: 500; }
.groupcard__img img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 900px) {
  .brands { grid-template-columns: repeat(2, 1fr); }
  .catalog, .cartgrid { grid-template-columns: 1fr; }
  .diagram, .summary { position: static; }
  .cathead { grid-template-columns: 1fr 1fr; }
  .cathead h1 { grid-column: 1 / -1; grid-row: 1; }
  .lead h1 { font-size: 25px; }
  .who { display: none; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .partlist, .carttable { overflow-x: auto; display: block; }
  .tabs a { padding: 10px 14px; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 거래 약관 (동의 화면 · 약관 보기 · 관리자 동의 기록) */
.terms { max-width: 820px; margin: 28px auto; padding: 28px; display: grid; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.terms__lead { color: var(--muted); }
.terms__who { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 12px 16px; background: var(--accent-soft); border-radius: 8px; font-size: 14px; }
.terms__who dt { color: var(--muted); }
.terms__who dd { font-weight: 700; margin: 0; }
.terms__body { max-height: 52vh; overflow-y: auto; padding: 4px 20px 20px; border: 1px solid var(--line); border-radius: 8px; font-size: 14.5px; line-height: 1.75; }
.terms__body:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.terms__body h3 { font-size: 15px; margin: 20px 0 6px; }
.terms__body p { margin: 4px 0; }
.terms__body p.in { padding-left: 1.2em; }
.terms form { display: grid; gap: 12px; }
.terms__check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; line-height: 1.5; cursor: pointer; }
.terms__check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.terms__check:has(input:disabled) { color: var(--muted); cursor: default; }
.terms__hint { font-size: 13px; color: var(--muted); }
.terms__done { padding: 12px 16px; background: var(--accent-soft); border-radius: 8px; font-weight: 600; }
.terms .linkbtn { justify-self: center; }
.foot a { text-decoration: underline; margin-left: 8px; }
.okmark { color: #1a7f4b; font-weight: 700; }
.nomark { color: var(--hot); font-weight: 700; }
.muted { color: var(--muted); }
.termsold { margin-top: 14px; padding: 16px; background: #f6f8fa; border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; font: inherit; font-size: 13.5px; line-height: 1.7; max-height: 60vh; overflow-y: auto; }
@media (max-width: 600px) { .terms { margin: 12px auto; padding: 18px; } .terms__body { max-height: 46vh; padding: 0 14px 14px; } }

/* 거래처별 노출 그룹 */
.catsnav a[hidden] { display: none; }
.showgroups { display: grid; grid-template-columns: repeat(2, max-content); gap: 2px 12px; font-size: 13px; }
.showgroups label { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-weight: 400; }

/* 도착 예정 · 품절 */
.eta { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e6f4ea; color: #1b7a3d; white-space: nowrap; }
.eta[data-e="d3"] { background: #fff4ee; color: #a23a0b; }
.eta[data-e="out"] { background: #eceef1; color: #6b7280; }
/* 재고 신호등: 초록(next) · 주황(d3) · 빨강(far) 점 */
.eta.sig::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #1fa64a; vertical-align: 0; }
.eta.sig[data-e="d3"]::before { background: #f08a1c; }
.eta.sig[data-e="far"] { background: #fdecec; color: #b42318; }
.eta.sig[data-e="far"]::before { background: #e0301e; }
.eta.sig[data-e="out"]::before { background: #9aa1ab; }
.soldoutchk { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.soldoutchk.on { color: var(--hot); font-weight: 700; }
.nodiscchk { color: var(--muted); }
.orders li .eta.sig { display: inline-block; margin: 0 4px; vertical-align: 1px; }
td .eta { display: block; width: max-content; margin-left: auto; }
.carttable .namecell .eta { margin-left: 0; }
/* 장바구니 일괄 선택 · 추천 */
.cartmain { min-width: 0; }
.cartbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 12px 6px 10px; margin-bottom: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.cartbar .check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-weight: 700; cursor: pointer; }
.cartbar .check small { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.cartbar .btn { height: 34px; padding: 0 12px; font-size: 13px; }
.cartbar .btn:disabled, .summary .btn:disabled { opacity: .45; cursor: default; }
#pickall, .carttable .pick { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; flex: none; }
.carttable .pick:disabled { cursor: default; }
.carttable .pickcell { width: 38px; padding-right: 0; }
.carttable tr.unpicked td:not(.pickcell):not(:last-child) { opacity: .5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.summary .help[hidden] { display: none; }
#recbox:empty { display: none; }
.recs .products { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 600px) {
  /* 휴대폰: 추천은 칸마다 한 줄, 옆으로 넘겨 본다(아래로 길어지지 않게). 카드는 작게, 수량은 담은 뒤 장바구니에서 고친다 */
  #recbox .block { margin-top: 22px; }
  .recs h2 { margin-bottom: 8px; font-size: 16px; }
  .recs .products { display: flex; gap: 8px; margin: 0 -20px; padding: 0 20px 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 20px; -webkit-overflow-scrolling: touch; }
  .recs .product { flex: 0 0 132px; padding: 8px; scroll-snap-align: start; font-size: 13px; }
  .recs .product .thumb, .recs .product > svg { width: 100%; height: 84px; object-fit: contain; margin-bottom: 4px; }
  .recs .product b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .recs .product .en:not(:first-of-type), .recs .product .was { display: none; }
  .recs .product code { font-size: 11px; }
  .recs .product .price { font-size: 15px; padding-top: 4px; }
  .recs .buy { margin-top: 6px; }
  .recs .buy .qty, .recs .unitnote { display: none; }
  .recs .buy .btn { height: 34px; }
}
.btn.add:disabled { opacity: .5; cursor: not-allowed; }
.summary .check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.summary .check[hidden] { display: none; }

/* 관리자 가격표: 가격 문의에 회신하며 저장된 등급별 안내가 */
.quoted { display: block; margin-top: 2px; color: var(--hot); font-size: 12px; white-space: nowrap; }

/* 주문 단위(박스 입수) 안내 */
.unitnote { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
/* 관리자 부품 탭: 노출 중단한 부품 줄 */
.offrow td { background: var(--bg); color: var(--muted); }
.offrow td b { text-decoration: line-through; }
.partoff, .partdel { display: block; padding: 6px 0 0; }
/* 관리자 특판·리퍼 사진 칸 */
.panel td small.okmark { display: block; font-size: 12px; }
.sppic { position: relative; display: inline-block; margin: 0 4px 4px 0; }
.sppic .x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 12px; line-height: 1; cursor: pointer; }
/* 관리자 사진 칸: 누른 뒤 Ctrl+V 붙여넣기 · 끌어다 놓기 · 미리보기 */
.picslot { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; vertical-align: top; }
.picslot .pictools { display: flex; gap: 8px; }
.picslot .pictools .linkbtn, .picslot > .linkbtn { padding: 2px 0; font-size: 12px; }
.picslot.busy { opacity: .5; pointer-events: none; }
.pastebox { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border: 1px dashed var(--line); border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; overflow: hidden; }
.pastebox img { width: 100%; height: 100%; object-fit: contain; }
.pastebox .pastehint { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 0; font-size: 10px; font-weight: 700; line-height: 1.4; text-align: center; background: var(--ink); color: var(--paper); opacity: 0; transition: opacity .15s; }
.pastebox:hover .pastehint, .pastebox:focus .pastehint { opacity: 1; }
.pastebox:focus { outline: 2px solid var(--ink); outline-offset: 2px; border-style: solid; }
.picslot.drag .pastebox { border: 2px solid var(--ink); background: var(--bg); }
.picgrid { display: flex; flex-wrap: wrap; gap: 18px; }
.picslot.big { width: 150px; text-align: center; }
.picslot.big .pastebox { width: 150px; height: 90px; margin-bottom: 4px; }
.picslot.big b { font-size: 13px; }
.picslot.big small { color: var(--muted); font-size: 12px; }
.picdlg { width: min(720px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); }
.picdlg::backdrop { background: rgba(0, 0, 0, .35); }
.picdlg h3 { margin: 0 0 12px; font-size: 16px; }
.picdlg__row { display: flex; flex-wrap: wrap; gap: 14px; }
.picdlg figure { flex: 1 1 220px; margin: 0; }
.picdlg figure img { display: block; width: 100%; height: 260px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.picdlg figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; }
/* 관리자 화면: PC(1280·1366·1920)에서 좌우 스크롤 없이 — 넓은 화면은 넓게 쓰고, 표 칸 여백을 줄인다 (2026-11-22) */
.admin .wrap { max-width: 1880px; }
.admin .panel { padding: 16px 14px; }
.admin .panel th { padding: 8px 7px; }
.admin .panel td { padding: 8px 7px; }
/* 거래처 계정 목록: 칸을 위아래로 묶어 1280 폭에 들어가게 */
.dltable td { vertical-align: top; }
.dltable code.login { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); word-break: break-all; }
.dltable td:nth-child(2) { min-width: 100px; max-width: 170px; overflow-wrap: anywhere; }
.dltable .stack .cell { display: block; width: 120px; height: 32px; font-size: 13px; padding: 0 8px; }
.dltable .stack .cell + .cell, .dltable .stack .cell + .muted, .dltable .stack .cell + small { margin-top: 4px; }
.dltable td:nth-child(5) .cell { width: 146px; }
.dltable .role { display: block; font-weight: 600; }
.dltable .shipcell { min-width: 150px; }
.dltable .activechk { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 13px; white-space: nowrap; }
/* 노출 그룹 일괄 수정: 그룹 여러 개를 체크해 한꺼번에 미노출/노출 */
.bulkhide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
/* 거래처 목록 접기 */
.dlfold { margin-top: 12px; }
.dlfold > summary { cursor: pointer; font-weight: 600; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.dlfold[open] > summary { margin-bottom: 4px; }
.dlfold__hint { margin-left: 8px; font-weight: 400; color: var(--muted); }
.dlfold__hint::before { content: "펼치기"; }
.dlfold[open] .dlfold__hint::before { content: "접기"; }
.bulkhide .cell { width: auto; }
.bulkgroups { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; flex: 1 1 420px; font-size: 13px; }
.bulkgroups label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.bulkgroups .linkbtn { padding: 0; }
/* 로그인·인증 화면의 오류 문구: 안내 글(회색)과 구별되게 붉은 상자로 보여 준다 */
.login > p.err { color: var(--hot); }
.login > p.err:not(:empty) { padding: 10px 12px; border-radius: 8px; background: #fff1ea; }

/* 타이어 화면의 사이즈 검색창 */
.sizefind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.sizefind label { font-weight: 700; font-size: 14px; }
.sizefind input { flex: 1 1 200px; max-width: 320px; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 16px; }
.sizefind__n { font-size: 14px; font-weight: 600; color: var(--accent); }

/* 판매 전 브랜드·차종(카달로그 탭)과 거래처별 차종 노출(거래처 탭) — 2026-11-23 */
.presaletag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: #fff1ea; color: var(--hot); font-size: 11px; font-weight: 700; white-space: nowrap; }
.presale { display: grid; gap: 10px; }
.presalebrand { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.presalebrand .pbrand { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.presalebrand details { margin-top: 6px; font-size: 13px; }
.presalebrand summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.mvlist { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
.mvlist label { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-weight: 400; }
.modelvis { display: block; padding: 6px 0 0; text-align: left; }
.modelvis b { display: inline; }
.bulkmodels { flex: 1 1 100%; font-size: 13px; }
.bulkmodels summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.bmbrand { margin-top: 8px; }
.bmbrand > span { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.bmbrand label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.bmbrand .linkbtn { padding: 0 0 0 8px; }
.mvdlg { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.mvdlg::backdrop { background: rgba(0, 0, 0, .35); }
.mvdlg h3 { font-size: 16px; margin: 0 0 4px; padding: 0; border: 0; }
.mvbody { display: grid; gap: 12px; margin-top: 12px; }
.mvbrand { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.mvbrand .linkbtn { padding: 0 0 0 8px; }
.showgroups label.pre { color: var(--muted); text-decoration: line-through; }
/* 담당자가 고친 주문: 거래처의 수락을 기다리는 주문(변경 확인 중)과 바뀐 내용 */
.state[data-s="변경 확인 중"] { background: #fff4ee; color: #a23a0b; }
.orders > li.changing { border: 2px solid var(--accent); }
.changebox { margin: 12px 0; padding: 12px 14px; border-radius: var(--r); background: #fff9f5; border: 1px solid #f3d5c4; }
.changebox.done { background: var(--bg, #f6f7f8); border-color: var(--line); }
.changebox .notice { margin: 0 0 8px; }
.changebox .memo { margin-bottom: 6px; color: var(--ink); }
.orders .changes { margin: 0; gap: 6px; font-size: 14px; }
.changes li > b { display: inline-block; min-width: 38px; padding: 1px 8px; border-radius: 999px; font-size: 12px; text-align: center; background: #eceff1; color: var(--muted); }
.changes li[data-k="add"] > b { background: #e6f4ea; color: #1b7a3d; }
.changes li[data-k="mod"] > b { background: #fff4ee; color: #a23a0b; }
.changes li[data-k="del"] { text-decoration: line-through; text-decoration-color: #b0b8bf; }
.changes li[data-k="del"] > b { text-decoration: none; display: inline-block; }
.changes .changes__sum { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); font-weight: 600; }
.changes .changes__sum strong { font-size: 16px; color: var(--ink); }
.changebox .orderbtns .btn { min-width: 96px; }
.changebox .help { margin-top: 10px; }
/* 배송지 여러 곳: 주문서의 배송지 목록과 추가·수정 창 */
.addrcard { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.addrcard.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.addrcard.unsure { background: #fff8f3; }
.addrcard > label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 10px 12px 4px; cursor: pointer; font-weight: 400; }
.addrcard > label > input { grid-row: 1 / span 3; margin-top: 3px; }
.addrcard__t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.addrcard__b { grid-column: 2; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.addrcard__n { grid-column: 2; font-size: 12px; font-weight: 600; color: var(--hot); }
.addrtag { padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-style: normal; font-size: 11px; font-weight: 700; }
.addrtag.warn { background: #fde9d9; color: var(--hot); }
.addrcard__btns { display: flex; gap: 2px; margin: 0; padding: 0 6px 4px 30px; }
.addrcard__btns button { min-height: 32px; padding: 0 8px; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.addrcard__btns button:hover { text-decoration: underline; }
#addrlist { display: grid; gap: 8px; }
.summary .check input:disabled + span { color: var(--muted); }
.feeline.visit b { color: var(--ink); }
.addrdlg { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); overflow: auto; }
.overdlg { width: min(440px, calc(100vw - 24px)); }
.overdlg p { line-height: 1.6; }
.addrdlg::backdrop { background: rgba(18, 48, 63, .45); }
.addrdlg form { display: grid; gap: 12px; padding: 20px; }
.addrdlg h2 { font-size: 18px; }
.addrdlg label, .addrdlg__k { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.addrdlg label small, .addrdlg__k small { font-weight: 400; color: var(--muted); }
.addrdlg input:not([type=checkbox]) { height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 400; min-width: 0; width: 100%; }
.addrdlg input[readonly] { background: var(--bg); color: var(--ink); }
.addrdlg__addr { display: grid; gap: 8px; }
.addrdlg__zip, .jusoq { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.addrdlg__zip .btn, .jusoq .btn { height: 42px; }
.addrdlg .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.addrdlg .help { margin: 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.addrdlg__btns { display: flex; gap: 8px; margin: 0; }
.addrdlg__btns .btn { flex: 1; height: 44px; }
.jusobox { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent-soft); }
.jusobox[hidden] { display: none; }
.jusobox ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 260px; overflow: auto; }
.jusobox li button { display: grid; gap: 2px; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.jusobox li button:hover { border-color: var(--accent); }
.jusobox li small { color: var(--muted); font-size: 12px; }
.jusopage { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0; font-size: 13px; }
.jusopage[hidden] { display: none; }
.jusopage button { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); cursor: pointer; }
.jusopage button:disabled { opacity: .4; cursor: default; }
/* 카테고리 관리 (2026-11-24): 관리자에게만 보이는 '숨김' 표시, 순서 바꾸기 화살표 */
.catsnav .hidmark { font-size: 11px; font-weight: 600; color: var(--hot); margin-left: 2px; }
.ord { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); cursor: pointer; padding: 0; vertical-align: middle; }
.ord:hover:not(:disabled) { border-color: var(--ink); }
.ord:disabled { opacity: .3; cursor: default; }
.chip .x.movebrand { display: inline-grid; place-items: center; }
.chip .x.movebrand:hover { background: var(--line); color: var(--ink); }
.cattable .piccell .picslot { min-width: 96px; }
.nowrap { white-space: nowrap; }
.offtag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #fde9d9; color: var(--hot); font-size: 11px; font-weight: 700; }

/* AI 검색: 검색 결과 위에 붙는 "차종 · 분해도 그룹" 묶음 */
.aisearch { margin-top: 20px; padding: 18px 20px 6px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); }
.aisearch > h2 { font-size: 18px; line-height: 1.35; margin-bottom: 12px; }
.aisearch > h2 small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
.aisearch > h2 small a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.aiwait { color: var(--muted); padding-bottom: 12px; }
.aimodels { margin-bottom: 14px; }
.aigroup { margin: 4px 0 18px; }
.aigroup h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; font-size: 15px; }
.aigroup h3 i { font-style: normal; color: var(--accent); margin-right: 2px; }
.aigroup h3 .btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; font-size: 13px; }
.aigroup .aimore { margin-top: 12px; }
.aimorebtn { margin-top: 12px; }
.plainh { margin: 28px 0 12px; font-size: 16px; }
@media (max-width: 600px) { .aisearch { padding: 14px 14px 4px; } .aisearch > h2 { font-size: 16px; } .aigroup h3 { font-size: 14px; } }

/* 호환 품번 고르기 (분해도 줄: 재고 있는 호환 품번이 둘 이상일 때) */
.compat { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--accent); }
.compatsel { display: block; margin-top: 3px; width: 100%; max-width: 210px; height: 32px; padding: 0 8px; border: 1px solid var(--accent); border-radius: 6px; background: var(--paper); font-size: 13px; }
/* 관리자: 분해도에서 대체·호환 품번 편집 */
.aedit { margin-top: 6px; padding: 6px 8px; border: 1px dashed var(--accent); border-radius: 6px; background: var(--accent-soft); font-size: 12px; line-height: 1.6; }
.aedit .linkbtn { padding: 0 0 0 6px; font-size: 12px; color: var(--accent); }
.atag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font-size: 11px; font-weight: 600; color: var(--muted); }
.atag.ours { border-color: var(--accent); color: var(--accent); }
.atag.bad { border-color: var(--hot); color: var(--hot); }
tr.ahidden td { background: #f7f7f7; }
tr.aeditor > td { padding: 0 10px 12px; border-top: 0; background: var(--accent-soft); }
.aebox { position: sticky; left: 0; max-width: min(900px, calc(100vw - 42px)); display: grid; gap: 8px; padding: 12px; border: 1px solid var(--accent); border-radius: 8px; background: var(--paper); font-size: 13px; white-space: normal; }
.aebox__head code, .aebox__now code { font-size: 13px; }
.aebox__scope { color: var(--hot); font-weight: 600; }
.aebox__now { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.aebox__now .linkbtn { padding: 0 0 0 4px; }
.aebox__find { display: grid; gap: 4px; font-weight: 600; }
.aebox__find input { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; }
.aebox__sub { font-weight: 700; margin-top: 4px; }
.achip { display: inline-flex; align-items: center; gap: 2px; }
.acands { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.acands:empty { display: none; }
.acand { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.acand b { display: block; font-weight: 600; }
.acand small { display: block; color: var(--muted); }
.acand small.eta { display: inline-block; }
.acand__btns { display: flex; gap: 6px; align-items: center; }
.acand > div { flex: 1 1 220px; min-width: 0; }
/* 편집 칸 사진: 후보마다 부품 사진, 위에는 분해도 확대와 카달로그·지금 보이는 부품 사진 */
.apic { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.apic img { width: 100%; height: 100%; object-fit: contain; }
.apic.none { color: var(--muted); font-size: 11px; background: var(--bg, #f6f6f4); }
.aebox__look { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.aebox__look figure { margin: 0; display: grid; gap: 2px; justify-items: center; }
.aebox__look figure .apic { width: 120px; height: 120px; }
.aebox__look figcaption { font-size: 12px; color: var(--muted); }
.azoom { position: relative; flex: 1 1 260px; max-width: 420px; height: 220px; border: 1px solid var(--line); border-radius: 6px; background-color: #fff; background-repeat: no-repeat; background-size: 260%; }
.azoom__mark { position: absolute; transform: translate(-50%, -50%); min-width: 26px; height: 26px; padding: 0 4px; display: grid; place-items: center; border: 2px solid var(--hot); border-radius: 13px; background: rgba(255,255,255,.85); color: var(--hot); font-weight: 700; font-size: 12px; }
.azoom__all { position: absolute; right: 6px; bottom: 4px; background: rgba(255,255,255,.9); padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.acand__btns .btn { height: 32px; padding: 0 10px; font-size: 13px; }
.alog { display: grid; gap: 2px; padding: 6px 0 0 4px; color: var(--muted); font-size: 12px; }
@media (max-width: 600px) { .acand__btns { width: 100%; } .acand__btns .btn { flex: 1; } .apic { width: 60px; height: 60px; } .aebox__look figure .apic { width: 96px; height: 96px; } .azoom { flex-basis: 100%; height: 180px; } }
/* 관리자: 분해도 화면 번호 위치 편집 */
.spotbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 8px 10px; border: 1px dashed var(--accent); border-radius: 8px; background: var(--accent-soft); font-size: 13px; line-height: 1.5; }
.spotbar .warn { color: var(--hot); }
.spotbar .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.spotbar.on { display: grid; justify-content: stretch; }
.spotbar.on > p { margin: 0; }
.spotbar__btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spotbar__btns .muted { flex: 1 1 160px; }
#spotchips { display: flex; flex-wrap: wrap; gap: 4px; max-height: 120px; overflow-y: auto; }
.spotchip { min-width: 34px; height: 28px; padding: 0 6px; font-size: 13px; }
.spotchip.miss { border-color: var(--hot); color: var(--hot); }
.spotchip.on { background: var(--hot); border-color: var(--hot); color: #fff; }
.diagram .dimg.edit { max-width: none; }
/* 관리자 모드 버튼(상단, 관리자 계정에만) — 켜지면 주황, 화면 위에 띠 */
.admmode { height: 30px; padding: 0 12px; border: 1.5px solid var(--accent); border-radius: 15px; background: var(--paper); color: var(--accent); font: 700 13px/1 var(--font); cursor: pointer; }
.admmode[aria-pressed="true"] { border-color: var(--hot); background: var(--hot); color: #fff; }
body.admin-on .top { box-shadow: inset 0 -3px 0 var(--hot); }
@media (max-width: 600px) { .top__nav { flex-wrap: wrap; row-gap: 6px; } .admmode { order: 99; height: 28px; } }

/* 취급 준비 중(주문을 막아 둔 단가 없는 상품): 수량 칸은 숨기고 담기 자리에 한 줄 문구, 분해도의 공용 품번 브랜드 표기 */
.btn.add.hold { padding: 6px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 1; background: var(--bg); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn.add.hold small { font-size: 12px; font-weight: 500; }
.btn.add.hold:hover, .btn.add.hold:active { background: var(--bg); transform: none; }
.qty.off { display: none; }
.holdcell { text-align: left; }
.viatag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 700; font-style: normal; color: var(--muted); white-space: nowrap; vertical-align: 1px; }
/* 관리자 카달로그 탭: 단가 없는 상품 주문 받기(브랜드별 스위치) */
.oswtable { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.oswtable th, .oswtable td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.oswtable th small { font-weight: 400; color: var(--muted); }
.oswtable td small { display: block; margin-top: 4px; }
.osw { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oswstate { display: inline-block; min-width: 72px; padding: 3px 10px; border-radius: 999px; font-size: 13px; text-align: center; white-space: nowrap; background: #e6f4ea; color: #1b7a3d; }
.oswstate[data-on="0"] { background: #fff1ea; color: var(--hot); }
.oswbtn { padding: 4px 10px; font-size: 13px; }
.oswall { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.oswlog { margin-top: 8px; font-size: 13px; }
.oswlog summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.oswlog ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
/* 차종 색상별 부품 (분해도 목록 위 색상 고르기, 접힌 다른 색상 줄) */
.colorchip.all { padding-left: 12px; }
.partcolor { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.partcolor .colorpick { margin-top: 0; gap: 6px; }
.colorpick.small .colorchip { font-size: 12px; padding: 3px 10px 3px 3px; }
.colorpick.small .colorchip.all { padding-left: 10px; }
.colorpick.small .colorchip img { width: 34px; height: 22px; }
.colornote { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.colornote:empty { display: none; }
.colornote b { color: var(--ink); }
.partlist tr.colmore td { padding-top: 2px; padding-bottom: 8px; border-top: 0; }
.partlist tr.colmore .linkbtn { font-size: 12.5px; }
.partlist tr[hidden] { display: none; }
/* 관리자 카달로그 탭: 차종 색상 */
.mctable td { vertical-align: top; }
.mctable td small { display: block; }
.mcimg { display: block; width: 64px; height: 40px; object-fit: contain; background: #fff; border-radius: 6px; margin-bottom: 4px; }
.mccodes { display: grid; gap: 4px; }
.mccode { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.mccode small { display: inline; color: var(--muted); }
.mctable tr.mcwait td:last-child { background: #fff8e6; }
.mctable input[name=label] { width: 170px; }
/* 품번 설명(관리자가 적은 것, 품번 기준) · 세트 입수 (2026-11-25) */
.pmemo { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: #eef4ec; color: #2f5d27; font-size: 11.5px; font-weight: 600; line-height: 18px; vertical-align: 1px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.need small.setneed { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.apack { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.apack input { width: 52px; height: 26px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; }
.aebox__memo { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 10px; }
.aebox__memo label { display: grid; gap: 4px; flex: 1 1 280px; font-weight: 600; }
.aebox__memo input { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; }
.pill { display: inline-block; padding: 0 6px; border-radius: 999px; background: #e8eef4; color: #234; font-size: 11px; font-weight: 700; }
.pmemo { width: max-content; }
.product .pmemo { margin-left: 0; justify-self: start; }

/* 기존 주문에 합치기: 주문서 체크 칸과 주문 금액 칸 위 안내 */
.packbox { margin: 4px 0 8px; }
.packbox select { width: 100%; margin: 4px 0; }
.packwait { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 4px; }
.packwait small { display: block; color: var(--muted); }
.packtimer { font-variant-numeric: tabular-nums; }
.paybox { display: grid; gap: 4px; margin: 0 0 14px; padding: 10px 14px; font-size: 15px; }
.paybox p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.paybox p > b:first-child { min-width: 76px; }
@media (max-width: 600px) { .paybox { font-size: 14px; } .paybox .paybar__copy span { display: inline; } }
.mergenote { margin: 0 0 10px; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 4px; }
.mergenote b { display: block; }
.mergenote small { color: var(--muted); }
.memo.packed b { color: var(--accent); }
/* 출고 내역: 운송장·부분 출고 (발주관리 → /api/sync/order-waybill) */
.shipstate { padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; background: #e6f4ea; color: #1b7a3d; }
.shipstate[data-s="일부 출고"] { background: #fff4ee; color: #a23a0b; }
.shipstate[data-s="출고 준비 중"] { background: #eceff1; color: var(--muted); }
.shipout { margin: 12px 0; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); }
.shipout .notice { margin: 8px 0; font-size: 14px; }
.shipout__head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0; }
.shipout__parts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.shipout__parts > li { padding-top: 10px; border-top: 1px dashed var(--line); }
.shipout__part { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 4px; font-size: 14px; }
.shipout__bills, .shipout__items { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; }
.shipout__bills li { padding: 2px 0; overflow-wrap: anywhere; }
.shipout__bills a { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.shipout__items { color: var(--muted); font-size: 13px; }
.shipout__items code { color: var(--ink); }
.shipout__parts > li[data-shipped="0"] .shipout__items, .shipout__parts > li[data-shipped="0"] .shipout__items code { color: #a23a0b; }

/* 용품 상세 페이지 (#/i/<품번>) · 카드의 상세 보기 */
.product .plink { display: block; border-radius: 8px; }
.product b a { color: inherit; text-decoration: none; }
.product b a:hover, .product .plink:hover + b a { text-decoration: underline; }
.product .more { display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; font-size: 12.5px; color: var(--accent); text-decoration: none; }
.product .more:hover { text-decoration: underline; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 16px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.item__main { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #f3f5f7; border-radius: 10px; overflow: hidden; }
.item__main img { width: 100%; height: 100%; object-fit: contain; }
.item__main svg { width: 55%; height: 55%; }
.item__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.item__thumb { width: 64px; height: 64px; padding: 0; background: #f3f5f7; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; }
.item__thumb.on { border-color: var(--accent); }
.item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.item__info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.item__info .h1 { margin: 0; }
.item__brand { font-size: 13px; color: var(--muted); text-decoration: none; }
.item__brand:hover { text-decoration: underline; }
.item__spec, .item__code { margin: 0; color: var(--muted); }
.item__price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 2px; font-size: 20px; }
.item__info .buy { margin-top: 4px; }
.item__specs { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.item__specs caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.item__specs th, .item__specs td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.item__specs th { width: 34%; font-weight: 500; color: var(--muted); background: #f7f8fa; white-space: nowrap; }
.item__text { margin: 0; white-space: pre-wrap; line-height: 1.7; }
@media (max-width: 760px) { .item { grid-template-columns: 1fr; gap: 16px; padding: 14px; } }

/* 관리자 용품 탭: 상세 내용 편집 칸 */
.detailrow > td { background: #f7f9fb; }
.detailbox { display: grid; gap: 10px; max-width: 900px; padding: 6px 2px 10px; }
.detailbox h3 { margin: 0; padding: 0; border: 0; font-size: 15px; }
.detailbox .help { margin: 0; }
.detailbox label { display: grid; gap: 4px; font-weight: 600; }
.detailbox textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; line-height: 1.5; resize: vertical; }
.detailpics__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 8px; }
.detailpic { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.detailpic img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.detailpic .linkbtn { padding: 2px 0; font-size: 12px; }

/* 같은 번호의 다른 품번(호환품·원산지) 줄: 위 줄에 붙여 보이게 */
.partlist tr.altrow td { border-top: 1px dashed var(--line); }
.partlist .ref.sub { opacity: .55; }
.alttag { display: inline-block; margin-right: 6px; padding: 1px 6px; font-size: 11px; font-weight: 600; line-height: 1.6; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; vertical-align: 1px; }

/* 상품 카드 글자: 카드 밖으로 넘치지 않게 줄바꿈하고, 길면 줄 수를 잘라 말줄임. 전체 이름은 마우스를 올리면(title) 보이고, 휴대폰은 눌러서 펼친다(.full) */
.products > .product { min-width: 0; }
.product > b, .product > small, .product > code, .product .vcode { min-width: 0; max-width: 100%; word-break: keep-all; overflow-wrap: anywhere; }
.product > code, .product .vcode { white-space: normal; }
.product > b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.product > small.en, .product > code, .product .vcode { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.product.clip > b, .product.clip > small.en, .product.clip > code { cursor: pointer; }
.product.full > b, .product.full > small.en, .product.full > code, .product.full .vcode { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* 큰 화면(PC, 폭 1440 이상): 오른쪽 장바구니 패널. 본문은 패널 폭만큼 왼쪽으로 비켜 선다 */
.cartside { display: none; }
@media (min-width: 1440px) {
  body.cside #app, body.cside .foot > .wrap { width: auto; margin-left: max(0px, calc((100vw - 300px - 1240px) / 2)); margin-right: calc(300px + max(0px, calc((100vw - 300px - 1240px) / 2))); }
  body.cside .cartside:not([hidden]) { display: flex; flex-direction: column; position: fixed; top: var(--toph, 76px); right: 0; bottom: 0; z-index: 9; width: 300px; background: var(--paper); border-left: 1px solid var(--line); }
}
.cartside__head { display: flex; align-items: center; gap: 8px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.cartside__head h2 { font-size: 16px; }
.cartside__head small { color: var(--muted); font-size: 13px; }
.cartside__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.cartside__list li { display: grid; gap: 2px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.cartside__list b { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.cartside__list code { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartside__row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cartside__row .qty button { width: 26px; height: 28px; font-size: 15px; }
.cartside__row .qty button:disabled { opacity: .35; cursor: default; }
.cartside__row .qty input { width: 38px; height: 28px; font-size: 13px; }
.cartside__amt { margin-left: auto; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cartside__x { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.cartside__x:hover { background: #fde9d9; color: var(--hot); }
.cartside__empty { flex: 1; padding: 28px 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; text-align: center; }
.cartside__foot { display: grid; gap: 6px; padding: 14px 18px 18px; border-top: 1px solid var(--line); background: #fbfcfd; }
.cartside__foot dl { display: flex; align-items: baseline; justify-content: space-between; margin: 0; }
.cartside__foot dt { font-weight: 600; font-size: 14px; }
.cartside__foot dt small { color: var(--muted); font-weight: 400; font-size: 12px; }
.cartside__foot dd { margin: 0; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cartside__foot .help { margin: 0; font-size: 12px; color: var(--muted); }
.cartside__foot .btn.big { display: flex; align-items: center; justify-content: center; margin-top: 6px; }
.cartside__foot .btn[aria-disabled="true"] { background: #c9d3da; border-color: #c9d3da; cursor: default; }
