:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --line: #e3e3e0;
  --accent: #1f4e79;
  --accent-text: #ffffff;
  --buy: #03c75a;
  --warn: #b3261e;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --card: #1c1c1f;
    --text: #ececee;
    --muted: #9a9aa0;
    --line: #2e2e33;
    --accent: #6ea8dc;
    --accent-text: #0b1520;
    --warn: #f28b82;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 480px; }
.center { text-align: center; padding-top: 12vh; padding-bottom: 12vh; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: .01em; text-decoration: none; color: var(--text); }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 16px; font-size: 15px; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav a.nav-shop { background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 1px 12px; font-weight: 700; white-space: nowrap; }
.foot { padding: 40px 0; border-top: 1px solid var(--line); margin-top: 48px; }
.foot a { color: var(--muted); }

.btn {
  display: inline-block; border: 0; border-radius: 10px; padding: 10px 18px;
  background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--warn); border: 1px solid var(--line); }
.btn.light { background: #fff; color: #10263d; }
.btn.sm { padding: 5px 10px; font-size: 14px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 첫 화면: PC에서는 왼쪽 검색, 오른쪽 쇼핑몰·최신 글 */
.hub { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding-top: 32px; align-items: start; }
.finder h1 { font-size: clamp(24px, 4.5vw, 32px); margin: 0 0 8px; line-height: 1.3; }
/* 예시 단추가 많아서 줄바꿈되며 나란히 */
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.ex { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.searchbar { display: flex; gap: 8px; margin: 16px 0 24px; }
.searchbar input { flex: 1; font-size: 17px; }
.side { display: flex; flex-direction: column; gap: 20px; }
.store { background: linear-gradient(135deg, #1f4e79, #10263d); color: #fff; border-radius: 16px; padding: 24px; }
.store .eyebrow { font-size: 12px; letter-spacing: .12em; opacity: .75; font-weight: 700; }
.store h2 { margin: 6px 0 4px; font-size: 22px; }
.store p { margin: 0 0 16px; opacity: .85; }
.latest { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.latest .row { display: flex; justify-content: space-between; align-items: baseline; }
.latest h2 { font-size: 17px; margin: 0 0 8px; }
.latest-list { list-style: none; padding: 0; margin: 0; }
.latest-list li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.latest-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.latest-list a:hover { color: var(--accent); }
.latest-list time { font-size: 13px; color: var(--muted); }

/* 검색 결과 카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.watch-head { display: flex; flex-direction: column; gap: 2px; }
.brand { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.watch-name { font-size: 20px; font-weight: 700; line-height: 1.3; }
.ref { color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
.sizes { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.size { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.size b { font-size: 20px; }
.note { font-size: 12.5pt; color: var(--muted); margin: 0 0 8px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.product { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--text); text-decoration: none; background: var(--card); }
.product img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--line); flex: none; }
.product .info { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.product .pname { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .price { font-weight: 700; font-size: 14px; }
.buy { background: var(--buy); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; display: inline-block; margin-top: 4px; }
.empty { text-align: center; padding: 32px 16px; }

/* 블로그 목록 */
.page-head { padding: 32px 0 8px; }
.page-head h1 { margin: 0 0 4px; font-size: clamp(26px, 5vw, 34px); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 16px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; }
.post-card:hover { border-color: var(--accent); }
.post-card img, .post-card .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.post-card .ph { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); }
.pc-body { padding: 14px 16px 16px; }
.pc-body h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; }
.pc-body p { margin: 0 0 8px; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-body time { font-size: 13px; color: var(--muted); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 28px 0; }

/* 글 한 편 */
.narrow-read { max-width: 760px; }
.crumbs { padding-top: 20px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.draft-note { background: #fff3cd; color: #664d03; border-radius: 10px; padding: 8px 12px; }
.post h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.3; margin: 12px 0 6px; }
.post .meta { margin: 0 0 20px; }
.post .cover { width: 100%; border-radius: var(--radius); margin-bottom: 8px; }
.content { font-size: 17px; line-height: 1.8; }
.content h2 { font-size: 24px; margin: 40px 0 12px; line-height: 1.4; }
.content h3 { font-size: 20px; margin: 32px 0 10px; }
.content h4 { font-size: 18px; margin: 24px 0 8px; }
.content figure { margin: 24px 0; }
.content figure img { width: 100%; height: auto; border-radius: var(--radius); }
.content figure.size-s { width: min(100%, 320px); margin-left: auto; margin-right: auto; }
.content figure.size-m { width: min(100%, 560px); margin-left: auto; margin-right: auto; }
.content mark { border-radius: 3px; padding: 0 2px; }
.content figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 6px; }
.content blockquote { margin: 20px 0; padding: 4px 18px; border-left: 4px solid var(--accent); color: var(--muted); }
.content code { background: var(--line); border-radius: 5px; padding: 1px 6px; font-size: .92em; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.table-wrap { overflow-x: auto; }
.content table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0; }
.content th, .content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.content th { background: var(--bg); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 24px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.faq { margin-top: 40px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; }
.post section h2 { font-size: 22px; }
.tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 14px; text-decoration: none; }
.cta { margin: 40px 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cta p { margin: 0; font-weight: 700; font-size: 18px; }
.more h2 { font-size: 22px; }

/* 사이즈 상담 챗봇 */
.chat-fab { position: fixed; right: 16px; bottom: 16px; border: 0; border-radius: 999px; padding: 12px 18px; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.2); cursor: pointer; }
.chat { position: fixed; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.chat[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-head button { border: 0; background: none; color: var(--text); font-size: 18px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { padding: 8px 12px; border-radius: 12px; max-width: 88%; white-space: pre-wrap; }
.msg.bot { background: var(--bg); align-self: flex-start; }
.msg.me { background: var(--accent); color: var(--accent-text); align-self: flex-end; }
.msg .products { grid-template-columns: 1fr; margin-top: 8px; }
.chat-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; }
.chat-note { margin: 0; padding: 0 12px 10px; font-size: 12px; color: var(--muted); }

/* 도매 주문 */
.order-bar { display: flex; gap: 6px; padding-top: 12px; padding-bottom: 4px; flex-wrap: wrap; }
.order-bar a { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 5px 14px; font-size: 14px; text-decoration: none; }
.order-bar a.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.cart-n:not(:empty) { background: var(--warn); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 2px; }
.order-h1 { font-size: clamp(24px, 4.5vw, 30px); margin: 20px 0 14px; }
.order-notice { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin: 12px 0; text-align: left; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }
.cats a { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 2px 12px; font-size: 14px; text-decoration: none; }
.cats a.on { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.oi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.oi-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.oi-link { display: flex; flex-direction: column; color: var(--text); text-decoration: none; flex: 1; }
.oi-link img, .oi-card .ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--line); }
.ph { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); background: var(--line); }
.ph.big { aspect-ratio: 1; border-radius: var(--radius); }
.oi-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 0; }
.oi-cat { font-size: 12px; color: var(--accent); font-weight: 700; }
.oi-name { font-weight: 600; line-height: 1.4; }
.oi-code { font-size: 13px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; margin: 0; }
.oi-price { font-weight: 700; font-size: 15px; }
.oi-act { padding: 10px 12px 12px; }
.soldout { display: inline-block; background: var(--line); color: var(--muted); border-radius: 6px; padding: 1px 8px; font-size: 13px; font-weight: 700; }
.item-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 12px; align-items: start; }
.gallery img#main-photo { width: 100%; border-radius: var(--radius); background: var(--line); }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; background: none; cursor: pointer; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.buybox h1 { font-size: clamp(22px, 4vw, 30px); line-height: 1.35; margin: 4px 0; }
.big-price { font-size: 22px; font-weight: 800; margin: 8px 0 16px; }
.buybox .stack { max-width: 360px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.item-desc { margin-top: 32px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select { color: var(--text); font-size: 16px; }
.field .hint { font-size: 12px; }
.warn { color: var(--warn); margin: 0; }
.ok { color: var(--buy); }
.cart-item { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
table.cart { width: 100%; border-collapse: collapse; }
table.cart th, table.cart td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cart th { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.qty { width: 84px; }
.sum { text-align: right; padding-top: 12px; }
.sum .pay { font-size: 20px; margin-top: 4px; }
.sum .pay b { color: var(--accent); }
.my-order .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.my-order .lines { margin: 6px 0; padding-left: 20px; }
.st { border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); white-space: nowrap; }
.st-received { background: #fff3cd; color: #664d03; border-color: #ffe69c; }
.st-confirmed { background: #cfe2ff; color: #052c65; border-color: #9ec5fe; }
.st-shipped { background: #d1e7dd; color: #0a3622; border-color: #a3cfbb; }
.st-canceled { color: var(--muted); text-decoration: line-through; }
details.card summary { cursor: pointer; font-weight: 700; }
details.card form { margin-top: 12px; }
@media (max-width: 720px) {
  .item-view { grid-template-columns: 1fr; gap: 16px; }
  .oi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  table.cart thead { display: none; }
  table.cart tr { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
  table.cart td { border: 0; padding: 0; }
  table.cart td:first-child { grid-column: 1 / -1; }
}

/* 쇼핑몰 (/s) */
.off { color: var(--warn); font-weight: 800; }
.oi-price s, .big-price s { font-size: .8em; font-weight: 400; }
.row-btns.end { justify-content: flex-end; align-items: center; }
.btn.disabled { opacity: .45; pointer-events: none; }
.btn.big { font-size: 18px; padding: 14px 18px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; }
.checkout [hidden] { display: none !important; }
.checkout h2 { font-size: 18px; margin: 12px 0 0; }
.checkout h2:first-child { margin-top: 0; }
.checkout .field input + input { margin-top: 6px; }
.zip { width: 120px; }
[data-postcode-box] { height: 460px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 6px; }
.agree summary { list-style: none; cursor: pointer; }
.agree summary::-webkit-details-marker { display: none; }
.agree p { margin: 6px 0 0 26px; }
.done-box { text-align: center; }
.big-no { font-size: 24px; letter-spacing: .5px; }
.bank-box { border-left: 4px solid var(--accent); }
.bank-box h2 { margin-top: 0; font-size: 20px; }
.bank { font-size: 18px; font-weight: 700; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.steps { display: flex; gap: 4px; padding: 0; margin: 12px 0; list-style: none; counter-reset: s; }
.steps li { flex: 1; text-align: center; font-size: 13px; color: var(--muted); border-top: 4px solid var(--line); padding-top: 6px; }
.steps li.on { color: var(--text); font-weight: 700; border-color: var(--accent); }
.recent { margin: 0; padding-left: 20px; }
.member-hint { padding: 12px 18px; }
a.shop-my { display: block; color: var(--text); text-decoration: none; }
a.shop-my:hover { border-color: var(--accent); }
.shop-biz { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; line-height: 1.7; }
.st-pay_wait { background: #fff3cd; color: #664d03; border-color: #ffe69c; }
.st-paid, .st-preparing { background: #cfe2ff; color: #052c65; border-color: #9ec5fe; }
.st-done { background: #d1e7dd; color: #0a3622; border-color: #a3cfbb; }

@media (max-width: 860px) {
  .hub { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
}
@media (max-width: 520px) {
  .searchbar { flex-direction: column; }
  .nav { gap: 12px; font-size: 14px; }
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
