/* ==========================================================================
   도매-CCTV storefront theme v2 — responsive (mobile first), one stylesheet.
   Tokens → base → layout (header / nav / drawer / footer / quick) → components → pages.
   See app/templates/v2/STYLEGUIDE.md for the component classes.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --ink: #111;
  --ink-2: #333;
  --muted: #6b6b6b;
  --subtle: #959595;
  --line: #e6e6e6;
  --line-2: #d2d2d2;
  --line-strong: #111;
  --bg: #fff;
  --bg-soft: #f7f7f7;
  --bg-img: #f4f4f4;
  --accent: #1b4f9c;
  --accent-ink: #163f7c;
  --accent-weak: #eef3fa;
  --danger: #c4361c;
  --radius: 4px;
  --radius-lg: 8px;
  --wrap: 1240px;
  --gutter: 16px;
  --hd-h: 56px;
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --focus: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .06);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body.v2 {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 14px; line-height: 1.6; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
:where(.v2) img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
:where(.v2) a { color: inherit; text-decoration: none; }
:where(.v2) button { font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; }
:where(.v2) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; }
:where(.v2) :where(ul, ol) { padding: 0; list-style: none; }
:where(.v2) table { border-collapse: collapse; border-spacing: 0; }
:where(.v2) :focus { outline: none; }
:where(.v2) :focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
:where(.v2) :where(input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(.v2) :where(b, strong) { font-weight: 700; }
:where(.v2) small { font-size: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -48px; z-index: 1000; padding: 8px 16px; background: var(--ink); color: #fff !important; border-radius: var(--radius); }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(880px + var(--gutter) * 2); }
.main { min-height: 50vh; padding-bottom: 80px; }
.muted { color: var(--muted); }
.hint { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.req { color: var(--accent); font-style: normal; margin-left: 2px; }
.price, .price-was, .num, .qty-input, .summary dd, .line-sum, .line-unit, .pager { font-variant-numeric: tabular-nums; }
.price b { font-weight: 700; }
.price-text { color: var(--muted); font-weight: 500; }
.price-was { color: var(--subtle); font-size: 12px; }
.richtext img { max-width: 100%; height: auto !important; }
.richtext table { max-width: 100%; }
.displaynone { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.btn-primary:hover { background: #2b2b2b; border-color: #2b2b2b; }
.btn-dark { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: #fff; }
.btn-line { background: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15px; font-weight: 600; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 0; width: 52px; flex: none; }
.btn[disabled], .btn-disabled { background: var(--bg-soft) !important; border-color: var(--line) !important; color: var(--subtle) !important; cursor: not-allowed; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-color: #999 transparent #999 #999; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-primary.is-busy::after { border-color: #fff transparent #fff #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-text { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.btn-text:hover { color: var(--ink); text-decoration-color: var(--ink); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--ink); border-radius: var(--radius); }
.icon-btn:hover { background: var(--bg-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.btn-row-center { justify-content: center; }
.btn-row-center .btn { min-width: 160px; }

/* ---------------------------------------------------------------- form controls */
.input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-size: 14px; transition: border-color .15s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 88px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
select.input { padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; text-overflow: ellipsis; }
.input:hover { border-color: #a9a9a9; }
.input:focus { border-color: var(--ink); box-shadow: none; outline: none; }
.input[readonly] { background: var(--bg-soft); }
.input[disabled] { background: var(--bg-soft); color: var(--subtle); }
.input::placeholder { color: #a6a6a6; }
.input-sm { height: 32px; font-size: 13px; }
.input-lg { height: 52px; font-size: 16px; padding: 0 16px; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; line-height: 1.5; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.check small { display: block; color: var(--muted); font-size: 12px; }
:where(.v2) :where(input[type="checkbox"], input[type="radio"]) { accent-color: var(--ink); }
.radios { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tel { display: grid; grid-template-columns: minmax(72px, 96px) 12px 1fr 12px 1fr; align-items: center; max-width: 360px; }
.tel-sep { text-align: center; color: var(--subtle); }
.email { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 0; align-items: center; max-width: 520px; }
.email select { grid-column: 1 / -1; margin-top: 8px; }
@media (min-width: 768px) { .email { grid-template-columns: 1fr 20px 1fr 150px; } .email select { grid-column: auto; margin: 0 0 0 8px; } }
.addr { display: grid; gap: 8px; max-width: 560px; }
.addr-zip { display: flex; gap: 8px; }
.addr-zip .input { max-width: 140px; }
.amount-row { display: flex; gap: 8px; max-width: 360px; }
.amount { position: relative; flex: 1; }
.amount .input { padding-right: 32px; text-align: right; }
.amount em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-item { position: relative; display: inline-flex; }
.seg-item input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg-item span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 14px; cursor: pointer; transition: border-color .15s; }
.seg-item input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.seg-item input:focus-visible + span { box-shadow: var(--focus); }
.seg-wide .seg-item { flex: 1; } .seg-wide .seg-item span { width: 100%; }

/* form rows */
.form { border-top: 1px solid var(--ink); }
.frow { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.frow-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.frow-field { min-width: 0; }
.frow-field > .input:not(textarea) { max-width: 360px; }
.frow-field > textarea.input { max-width: 100%; }
@media (min-width: 768px) {
  .frow { grid-template-columns: 160px 1fr; gap: 16px; align-items: start; padding: 16px 0; }
  .frow-label { padding-top: 10px; }
}
.form-compact { border-top-color: var(--line); }
.form-compact .frow { padding: 10px 0; }
@media (min-width: 768px) { .form-compact .frow { grid-template-columns: 120px 1fr; } }
.sub-box { margin-top: 12px; padding: 16px; background: var(--bg-soft); border-radius: var(--radius); display: grid; gap: 12px; }
.sub-box .input { max-width: 360px; }

/* ---------------------------------------------------------------- notice / empty / badges */
.notice { margin: 16px 0; padding: 12px 16px; border-radius: var(--radius); background: var(--bg-soft); color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.notice-warn { background: #fff6f3; color: #8f2a14; }
.notice-info { background: var(--accent-weak); color: var(--accent-ink); }
.empty { padding: 64px 16px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-msg { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.empty-sub { margin-top: 8px; color: var(--muted); font-size: 13px; }
.empty .btn { margin-top: 24px; min-width: 160px; }
.empty-sm { padding: 40px 16px; }
.empty-sm .empty-msg { font-size: 14px; font-weight: 400; color: var(--muted); }
.empty-lg { padding: 96px 16px; }
.badge { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border: 1px solid var(--accent); border-radius: 2px; color: var(--accent); font-size: 12px; font-weight: 600; line-height: 1; vertical-align: middle; letter-spacing: 0; }
.badge-mute { border-color: var(--line-2); color: var(--muted); }
h1 .badge { position: relative; top: -2px; }

/* ---------------------------------------------------------------- breadcrumb / page head / section head */
.crumb { padding: 16px 0 0; font-size: 12px; color: var(--subtle); }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; }
.crumb li { display: inline-flex; align-items: center; }
.crumb li + li::before { content: ""; width: 5px; height: 5px; margin: 0 8px; border-top: 1px solid #bbb; border-right: 1px solid #bbb; transform: rotate(45deg); }
.crumb a:hover { color: var(--ink); }
.crumb [aria-current] { color: var(--muted); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head { padding: 0 0 24px; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 24px; }
.page-head.is-center { text-align: center; } .page-head.is-center .page-head-row { justify-content: center; }
.page-title { font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -0.03em; }
.page-count { margin-left: 4px; color: var(--accent); }
.page-desc { margin-top: 6px; color: var(--muted); font-size: 13px; }
@media (min-width: 1024px) { .page-title { font-size: 26px; } }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head > h2, .sec-head > h3, .sec-head .sec-title { white-space: nowrap; }
.sec-title { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.sec-sub { margin-left: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
.sec-note { color: var(--subtle); font-size: 12px; }
.sec-more { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 13px; }
.sec-more:hover { color: var(--ink); }
@media (min-width: 1024px) { .sec-title { font-size: 20px; } }

/* ---------------------------------------------------------------- header */
.hd { position: relative; z-index: 50; background: #fff; }
.hd-util { display: none; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.hd-util-in { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.hd-util-cs a { color: var(--ink-2); font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
.hd-util-links { display: flex; align-items: center; }
.hd-util-links li { display: flex; align-items: center; }
.hd-util-links li + li::before { content: ""; width: 1px; height: 10px; margin: 0 12px; background: var(--line-2); }
.hd-util-links a:hover { color: var(--ink); }
.hd-hello b { color: var(--ink); }

.hd-main { border-bottom: 1px solid var(--line); }
.hd-main-in { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "menu logo icons" "search search search"; align-items: center; column-gap: 8px; padding-top: 8px; padding-bottom: 12px; }
.hd-menu-btn { grid-area: menu; margin-left: -8px; }
.hd-logo { grid-area: logo; justify-self: start; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; line-height: 40px; color: var(--ink); white-space: nowrap; }
.hd-search { grid-area: search; position: relative; margin-top: 8px; }
.hd-search-input { width: 100%; height: 44px; padding: 0 48px 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-soft); font-size: 15px; -webkit-appearance: none; appearance: none; transition: border-color .15s, background-color .15s; }
.hd-search-input::placeholder { color: #9d9d9d; }
.hd-search-input:focus { outline: none; background: #fff; border-color: var(--ink); }
.hd-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hd-search-btn { position: absolute; right: 0; top: 0; width: 48px; height: 44px; border: 0; background: none; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.hd-detail-search { display: none; }
.hd-icons { grid-area: icons; display: flex; align-items: center; gap: 0; margin-right: -8px; }
.hd-ico { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--ink); border-radius: var(--radius); }
.hd-ico span { display: none; }
.hd-ico-my, .hd-ico-wish { display: none; }
.hd-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.hd-count.is-empty { display: none; }
.hd-nav { display: none; }

@media (min-width: 1024px) {
  .hd-util { display: block; }
  .hd-main { border-bottom: 0; }
  .hd-main-in { grid-template-columns: auto minmax(320px, 520px) auto 1fr; grid-template-areas: "logo search dsearch icons"; column-gap: 24px; padding-top: 20px; padding-bottom: 20px; }
  .hd-menu-btn { display: none; }
  .hd-logo { font-size: 26px; margin-right: 24px; }
  .hd-search { margin-top: 0; }
  .hd-search-input { height: 46px; border-color: var(--ink); background: #fff; border-width: 1.5px; }
  .hd-search-btn { height: 46px; }
  .hd-detail-search { grid-area: dsearch; display: inline; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
  .hd-detail-search:hover { color: var(--ink); }
  .hd-icons { justify-self: end; gap: 8px; margin-right: 0; }
  .hd-ico { width: auto; height: auto; flex-direction: column; gap: 2px; padding: 4px 8px; }
  .hd-ico span { display: block; font-size: 11px; color: var(--muted); }
  .hd-ico:hover span { color: var(--ink); }
  .hd-ico-my, .hd-ico-wish { display: flex; }
  .hd-count { top: 0; right: 6px; }

  .hd-nav { display: block; position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .hd-nav-in { display: flex; align-items: stretch; height: 48px; }
  .hd-all { display: flex; }
  .hd-all-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px 0 0; margin-right: 8px; border: 0; background: none; font-size: 15px; font-weight: 700; }
  .hd-all-btn::after { content: ""; width: 1px; height: 16px; margin-left: 12px; background: var(--line-2); }
  .hd-groups { display: flex; align-items: stretch; }
  .hd-group { position: relative; display: flex; }
  .hd-group-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0 14px; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
  .hd-group-btn .ico { color: var(--subtle); transition: transform .15s; }
  .hd-group-btn::after, .hd-all-btn > span { position: relative; }
  .hd-group:hover .hd-group-btn, .hd-group.is-open .hd-group-btn { color: var(--ink); }
  .hd-group:hover .hd-group-btn .ico, .hd-group.is-open .hd-group-btn .ico { transform: rotate(180deg); color: var(--ink); }
  .hd-group .hd-group-btn { box-shadow: inset 0 -2px 0 transparent; transition: box-shadow .15s; }
  .hd-group:hover .hd-group-btn, .hd-group.is-open .hd-group-btn { box-shadow: inset 0 -2px 0 var(--ink); }
  .hd-boards { display: flex; align-items: center; margin-left: auto; font-size: 13px; color: var(--muted); }
  .hd-boards li + li { margin-left: 16px; }
  .hd-boards a:hover { color: var(--ink); }

  .dd { position: absolute; left: 0; top: 100%; z-index: 60; min-width: 240px; padding: 12px 0; background: #fff; border: 1px solid var(--line); border-top: 0; box-shadow: var(--shadow-pop); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .12s, transform .12s, visibility 0s .12s; }
  .dd-cols { width: 520px; }
  .dd-cols ul { columns: 2; column-gap: 0; }
  .dd li { break-inside: avoid; }
  .dd a { display: block; padding: 7px 20px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
  .dd a:hover { background: var(--bg-soft); color: var(--ink); }
  .dd small, .mega small, .catalog small, .acc small { color: var(--subtle); font-size: 11px; font-weight: 400; margin-left: 2px; white-space: nowrap; }
  .hd-group:hover .dd, .hd-group.is-open .dd, .hd-group:focus-within .dd { visibility: visible; opacity: 1; transform: none; transition: opacity .12s, transform .12s, visibility 0s; }
  .hd-group.is-closed .dd { visibility: hidden !important; opacity: 0 !important; }
  .hd-group:nth-last-child(-n+2) .dd { left: auto; right: 0; } /* keep the right-hand menus inside the viewport (1024px) */

  .mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(0, 0, 0, .12); visibility: hidden; opacity: 0; transition: opacity .12s, visibility 0s .12s; }
  .hd-all.is-open .mega { visibility: visible; opacity: 1; transition: opacity .12s, visibility 0s; }
  .hd-all.is-open .hd-all-btn { color: var(--accent); }
  .mega-in { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 32px; padding-top: 32px; padding-bottom: 40px; max-height: calc(100vh - 200px); overflow: auto; }
  .mega-brand { grid-column: span 2; }
  .mega-brand .mega-list { columns: 2; column-gap: 32px; }
  .mega-title { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 700; }
  .mega-list li { break-inside: avoid; }
  .mega-list a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
  .mega-list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hd-boards { display: none; }
  .mega-in { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
  .hd-group-btn { padding: 0 10px; font-size: 14px; }
  .hd-main-in { grid-template-columns: auto minmax(280px, 1fr) auto auto; }
}

/* ---------------------------------------------------------------- drawer (mobile menu) */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); opacity: 0; transition: opacity .2s; }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(88vw, 380px); overflow-y: auto; overscroll-behavior: contain; background: #fff; transform: translateX(-100%); transition: transform .24s ease; padding-bottom: 40px; }
.drawer.is-open .drawer-dim { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
html.drawer-lock, html.drawer-lock body { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 8px 12px 20px; border-bottom: 1px solid var(--line); min-height: 64px; }
.drawer-auth { display: flex; gap: 8px; }
.drawer-auth .btn { min-width: 88px; }
.drawer-hello { font-size: 16px; }
.drawer-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.drawer-stats > div { padding: 12px 8px; text-align: center; }
.drawer-stats > div + div { border-left: 1px solid var(--line); }
.drawer-stats dt { font-size: 12px; color: var(--muted); }
.drawer-stats dd { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer-quick { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 8px solid var(--bg-soft); }
.drawer-quick li:nth-child(odd) { border-right: 1px solid var(--line); }
.drawer-quick li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.drawer-quick a { display: flex; align-items: center; justify-content: center; gap: 4px; height: 48px; font-size: 14px; }
.drawer-quick em { font-style: normal; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer-sec { padding: 8px 0; border-bottom: 8px solid var(--bg-soft); }
.drawer-h { padding: 12px 20px 8px; font-size: 12px; font-weight: 600; color: var(--subtle); letter-spacing: 0; }
.acc summary { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 20px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { margin-left: auto; color: var(--subtle); transition: transform .15s; }
.acc[open] > summary .ico { transform: rotate(180deg); }
.acc-n { color: var(--subtle); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.acc + .acc { border-top: 1px solid var(--line); }
.acc-list { padding: 0 0 12px; background: var(--bg-soft); padding-top: 8px; }
.acc-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.acc-item > a { flex: 1; padding: 10px 20px 10px 28px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.acc-item > a:active { background: #eee; }
.acc-sub { width: 48px; height: 40px; border: 0; background: none; color: var(--subtle); display: flex; align-items: center; justify-content: center; }
.acc-sub[aria-expanded="true"] .ico { transform: rotate(180deg); }
.acc-item > ul { flex-basis: 100%; margin: 0 0 4px 28px; border-left: 1px solid var(--line-2); }
.acc-item > ul .acc-item > a { padding-left: 16px; font-size: 13px; }
.acc-item > ul .acc-item > ul { margin-left: 16px; }
.acc-loading { padding: 8px 16px; color: var(--subtle); font-size: 12px; }
.drawer-links li a, .drawer-links li button { display: block; width: 100%; padding: 12px 20px; border: 0; background: none; text-align: left; font-size: 14px; }
.drawer .cs-info { padding: 20px; }
.drawer-logout { padding: 16px 20px; }
.drawer-logout a { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- customer center block (cs_info.html) */
.cs-info { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.cs-info .cs-title { font-size: 12px; font-weight: 600; color: var(--subtle); }
.cs-info .cs-label { color: var(--muted); margin-right: 6px; }
.cs-info a { font-variant-numeric: tabular-nums; }
.cs-info-footer .cs-tel a, .cs-info-drawer .cs-tel a { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- footer */
.ft { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; }
.ft-links { border-bottom: 1px solid var(--line); }
.ft-links ul { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
.ft-links a { color: var(--ink-2); }
.ft-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ft-links strong { color: var(--ink); }
@media (max-width: 479px) { .ft-links ul { gap: 8px 16px; font-size: 12.5px; } }
.ft-body { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 24px; }
.ft-logo { font-size: 18px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); margin-bottom: 12px; }
.ft-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ft-col h2 { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.ft-col li { padding: 3px 0; }
.ft-col a, .ft-linkbtn { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 0; background: none; color: var(--muted); font-size: 13px; text-align: left; }
.ft-col a:hover, .ft-linkbtn:hover { color: var(--ink); }
.ft-copy { padding-top: 16px; padding-bottom: 40px; font-size: 12px; color: var(--subtle); }
@media (min-width: 768px) {
  .ft-body { grid-template-columns: 1fr 2fr; }
  .ft-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1023px) { .is-detail .ft { padding-bottom: 72px; } }

/* ---------------------------------------------------------------- quick rail */
.quick { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.quick-btn { position: relative; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 56px; height: 56px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 10px; line-height: 1.2; }
.quick-btn span { color: var(--muted); }
.quick-btn:hover span { color: var(--ink); }
.quick-btn em { position: absolute; top: 5px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px; font-variant-numeric: tabular-nums; }
.quick-top { display: flex; width: 44px; height: 44px; border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.quick-top span { display: none; }
.quick.is-scrolled .quick-top { opacity: 1; pointer-events: auto; }
.is-detail .quick { bottom: 88px; }
.quick-item { position: relative; }
.quick-panel { position: absolute; right: calc(100% + 8px); bottom: 0; width: 280px; padding: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-pop); visibility: hidden; opacity: 0; transition: opacity .12s, visibility 0s .12s; }
.quick-item.is-open .quick-panel { visibility: visible; opacity: 1; transition: opacity .12s, visibility 0s; }
.quick-panel-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.quick-recent-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-recent-list a { display: block; }
.quick-recent-list img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg-img); border-radius: 2px; }
.quick-recent-list span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.quick-empty { color: var(--subtle); font-size: 12px; padding: 8px 0; }
.quick-panel-more { display: inline-flex; align-items: center; margin-top: 12px; font-size: 12px; color: var(--muted); }
@media (min-width: 1024px) { .quick { right: 24px; bottom: 24px; } .is-detail .quick { bottom: 24px; } }
/* the full rail (최근본 / 계산기 / 장바구니) only where it clears the 1240px content column; narrower screens keep the round top button */
@media (min-width: 1420px) {
  .quick-btn { display: flex; }
  .quick-btn + .quick-btn, .quick-item + .quick-btn { border-top: 0; }
  .quick-top { width: 56px; height: 56px; border-radius: 0; box-shadow: none; border-top: 0; }
  .quick-top span { display: block; }
  .quick > :first-child .quick-btn, .quick > .quick-btn:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .quick-top { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ---------------------------------------------------------------- modal (dialog) */
.modal { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: 0 24px 48px rgba(0, 0, 0, .18); color: var(--ink); overflow: auto; }
.modal::backdrop { background: rgba(0, 0, 0, .45); }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 24px; background: #fff; border-bottom: 1px solid var(--line); margin: 0; }
.modal-head h2 { font-size: 16px; font-weight: 700; }
.modal-body { padding: 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.hdd-form { display: grid; gap: 12px; }
.hdd-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.hdd-unit { display: flex; align-items: center; gap: 8px; }
.hdd-unit em { flex: none; width: 28px; font-style: normal; color: var(--muted); font-size: 13px; }
.hdd-result { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; padding: 16px; background: var(--bg-soft); border-radius: var(--radius); }
.hdd-result span { font-size: 13px; color: var(--muted); }
.hdd-result p { font-size: 13px; }
.hdd-result output { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hdd-result em { font-style: normal; margin-left: 4px; }
.promo-modal { width: min(1012px, calc(100vw - 32px)); }
.promo-modal .modal-head { justify-content: flex-end; padding: 8px; border-bottom: 0; position: absolute; right: 0; top: 0; background: transparent; }
.promo-modal .modal-head .icon-btn { background: rgba(255,255,255,.92); }
.promo-modal-body { padding: 0; }
.promo-modal-body img { display: block; width: 100%; }

/* ---------------------------------------------------------------- popups (main) */
.shop-popup { position: fixed; z-index: 150; left: 50%; top: 72px; transform: translateX(-50%); width: min(var(--pop-w, 450px), calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .2); overflow: hidden; }
.shop-popup .pop-body { max-height: calc(100vh - 180px); overflow: auto; }
.shop-popup .pop-body img { display: block; width: 100%; height: auto; }
.shop-popup .pop-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); background: #fff; font-size: 13px; }
.shop-popup .pop-foot a { flex: 1; padding: 12px 16px; text-align: center; color: var(--ink-2); }
.shop-popup .pop-foot a + a { border-left: 1px solid var(--line); }
.shop-popup .pop-foot a:hover { background: var(--bg-soft); }
@media (min-width: 1024px) { .shop-popup { left: var(--pop-left, 20px); top: calc(var(--pop-top, 20px) + 140px); transform: none; } }

/* ---------------------------------------------------------------- product card / grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .grid-lg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-img); border-radius: var(--radius); overflow: hidden; }
.card-thumb { display: block; width: 100%; height: 100%; }
.card-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-flag { position: absolute; left: 8px; top: 8px; height: 22px; padding: 0 8px; background: rgba(17, 17, 17, .82); color: #fff; font-size: 11px; font-weight: 600; line-height: 22px; border-radius: 2px; }
.card.is-soldout .card-thumb img { opacity: .45; }
.card-tools { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 4px; }
.card-tool { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .96); color: var(--ink); transition: background-color .15s, color .15s, opacity .15s, border-color .15s; }
.card-tool:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-tool[data-zoom-popup] { display: none; }
@media (hover: hover) and (min-width: 1024px) {
  .card-tool[data-zoom-popup] { display: inline-flex; }
  .card-tools { opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
  .card:hover .card-tools, .card:focus-within .card-tools { opacity: 1; transform: none; }
}
.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 12px; }
.card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.5em * 2); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.card-name:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.card-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; margin-top: 8px; font-size: 13px; }
.card-price .price { color: var(--ink); }
.card-price .price b { font-size: 16px; letter-spacing: -0.02em; margin-right: 1px; }
.card-price .price-text { font-size: 13px; }
@media (min-width: 1024px) { .card-name { font-size: 14px; } .card-price .price b { font-size: 17px; } }

/* ---------------------------------------------------------------- pagination / more / sort / toolbar */
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 56px; }
.pager ol { display: flex; gap: 4px; margin: 0 8px; }
.pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: var(--radius); font-size: 14px; color: var(--muted); }
.pager a:hover { background: var(--bg-soft); color: var(--ink); }
.pager a.is-current { background: var(--ink); color: #fff; font-weight: 700; }
.pager-arrow { color: var(--ink) !important; }
.pager-arrow .ico-dup { margin-left: -10px; }
.pager-arrow.is-disabled { color: #ccc !important; pointer-events: none; }
@media (max-width: 480px) {
  .pager { gap: 2px; }
  .pager > .pager-arrow:first-child, .pager > .pager-arrow:last-child { display: none; }
  .pager a { min-width: 28px; padding: 0 2px; font-size: 13px; }
  .pager ol { margin: 0 2px; gap: 0; }
}
.more { margin-top: 40px; }
.more-n { color: var(--subtle); font-weight: 400; font-variant-numeric: tabular-nums; margin-left: 4px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px 0; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.toolbar-count { font-size: 13px; color: var(--muted); }
.toolbar-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sort { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; }
.sort li { display: flex; align-items: center; }
.sort li + li::before { content: ""; width: 1px; height: 10px; margin: 0 10px; background: var(--line-2); }
.sort a { color: var(--subtle); }
.sort a:hover { color: var(--ink); }
.sort a.is-current { color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------- main page */
.main-hero { display: grid; grid-template-columns: 85%; grid-auto-flow: column; grid-auto-columns: 85%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 16px; padding-bottom: 4px; scrollbar-width: none; }
.main-hero::-webkit-scrollbar { display: none; }
.main-hero { scroll-padding-inline: var(--gutter); }
.hero-card { display: block; scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-img); }
.hero-card img { display: block; width: 100%; height: auto; transition: opacity .2s; }
.hero-card:hover img { opacity: .94; }
@media (min-width: 768px) { .main-hero { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 16px; overflow: visible; padding-top: 24px; } }
@media (min-width: 1024px) { .main-hero { gap: 24px; padding-top: 32px; } }
.main-sec { margin-top: 56px; }
@media (min-width: 1024px) { .main-sec { margin-top: 80px; } }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
.catalog-title { padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 700; }
.catalog li a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.catalog li a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.catalog small { color: var(--subtle); font-size: 11px; margin-left: 2px; white-space: nowrap; }
.catalog-brand, .catalog-promo { grid-column: 1 / -1; }
.catalog-brand ul, .catalog-promo ul { columns: 2; column-gap: 16px; }
.catalog li { break-inside: avoid; }
@media (min-width: 768px) {
  .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
  .catalog-brand { grid-column: span 3; } .catalog-brand ul { columns: 3; column-gap: 24px; }
  .catalog-promo { grid-column: span 1; } .catalog-promo ul { columns: 1; }
}
@media (min-width: 1280px) {
  .catalog { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 32px; }
  .catalog-brand { grid-column: span 2; } .catalog-brand ul { columns: 2; column-gap: 32px; }
  .catalog-promo { grid-column: span 1; }
}
/* 기획전: tall catalogue banners with image maps. Without JS they stack; shop.js turns them into a card grid + viewer */
.promo-src { display: grid; gap: 16px; justify-items: center; }
.promo-src img { display: block; max-width: 100%; height: auto; }
.promo-src.is-ready { display: none; }
.promo-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) { .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .promo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.promo-card { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #111; text-align: left; }
.promo-card img { display: block; width: 100%; aspect-ratio: 980 / 620; object-fit: cover; object-position: top center; transition: opacity .2s, transform .3s; }
.promo-card:hover img { opacity: .9; }
.promo-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.promo-card-foot b { font-variant-numeric: tabular-nums; color: var(--subtle); font-weight: 600; margin-right: 8px; }
.promo-strip { grid-column: 1 / -1; border-radius: var(--radius-lg); overflow: hidden; }
.promo-strip img { display: block; width: 100%; height: auto; }
.main-legacy { display: none; }

/* ---------------------------------------------------------------- list / search */
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 16px; }
.subcats { margin-top: 20px; }
.subcats ul { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.subcats ul::-webkit-scrollbar { display: none; }
.subcats a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: border-color .15s; }
.subcats a:hover { border-color: var(--ink); color: var(--ink); }
.subcats a.is-current { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
@media (min-width: 1024px) { .subcats ul { flex-wrap: wrap; overflow: visible; } }
.list-banner { margin-top: 24px; text-align: center; }
.filters { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.filters-toggle { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.filters-toggle::-webkit-details-marker { display: none; }
.filters-toggle em { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-style: normal; line-height: 20px; text-align: center; }
.filters-toggle .ico-chevron-down { margin-left: auto; color: var(--subtle); transition: transform .15s; }
.filters[open] .filters-toggle .ico-chevron-down { transform: rotate(180deg); }
.filters-form { border-top: 1px solid var(--line); }
.f-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.f-row:last-child { border-bottom: 0; }
.f-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.f-opts { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 768px) { .f-row { grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 20px; } .f-title { padding-top: 6px; } }
.filters-rows.is-long:not(.is-expanded) .f-row:nth-child(n+4) { display: none; }
.chip-check { position: relative; display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background-color .15s; white-space: nowrap; }
.chip-check:hover span { border-color: #9a9a9a; }
.chip-check input:checked + span { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); font-weight: 600; }
.chip-check input:focus-visible + span { box-shadow: var(--focus); }
.f-keyword { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.filters-foot { display: flex; gap: 16px; justify-content: flex-end; align-items: center; padding: 0 20px; }
.filters-foot:not(:empty) { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.filters-toggle .ico-filter { color: var(--ink); }
@media (min-width: 1024px) { .filters:not([open]) .filters-toggle { } }

.search-head { padding-top: 24px; }
.search-head q { quotes: "‘" "’"; color: var(--ink); }
.search-box { margin-top: 24px; max-width: 760px; }
.search-box-row { display: flex; gap: 8px; }
.search-box-row .btn { flex: none; }
.search-opt { margin-top: 12px; font-size: 13px; }
.search-opt summary { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); cursor: pointer; list-style: none; }
.search-opt summary::-webkit-details-marker { display: none; }
.search-opt[open] summary .ico { transform: rotate(180deg); }
.search-opt-body { display: grid; gap: 12px; margin-top: 12px; padding: 16px; background: var(--bg-soft); border-radius: var(--radius); }
.search-opt-ex { display: flex; align-items: center; gap: 12px; }
.search-opt-ex label { flex: none; font-weight: 600; color: var(--ink-2); }
.search-opt-ex .input { max-width: 320px; }
.is-search .filters { margin-top: 32px; }

/* ---------------------------------------------------------------- product detail */
.pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 16px; }
@media (min-width: 1024px) { .pd { grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; margin-top: 24px; align-items: start; } }
@media (min-width: 1280px) { .pd { grid-template-columns: minmax(0, 1fr) 480px; gap: 72px; } }
.pd-gallery { min-width: 0; }
.pd-stage { position: relative; aspect-ratio: 1 / 1; background: var(--bg-img); border-radius: var(--radius-lg); overflow: hidden; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
@media (min-width: 768px) { .pd-stage { margin: 0; border-radius: var(--radius-lg); } }
.pd-stage-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.pd-stage img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-flag { position: absolute; left: 16px; top: 16px; height: 26px; padding: 0 10px; background: rgba(17,17,17,.82); color: #fff; font-size: 12px; font-weight: 600; line-height: 26px; border-radius: 2px; }
.pd-zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.95); font-size: 12px; color: var(--ink-2); }
.pd-zoom:hover { border-color: var(--ink); }
.pd-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-img); overflow: hidden; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumb.is-current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (min-width: 1024px) { .pd-thumb { width: 72px; height: 72px; } }
.pd-info { min-width: 0; }
@media (min-width: 1024px) { .pd-info-in { position: sticky; top: 24px; } }
.pd-badges { display: flex; gap: 6px; min-height: 0; }
.pd-badges:not(:empty) { margin-bottom: 12px; }
.pd-name { font-size: 20px; font-weight: 700; line-height: 1.45; letter-spacing: -0.03em; }
@media (min-width: 1024px) { .pd-name { font-size: 22px; } }
.pd-code { margin-top: 8px; font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.pd-price { margin-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pd-was { display: flex; gap: 8px; font-size: 13px; color: var(--subtle); }
.pd-was del { font-variant-numeric: tabular-nums; }
.pd-now { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.pd-now .price { font-size: 16px; font-weight: 600; }
.pd-now .price b { font-size: 28px; letter-spacing: -0.03em; }
.pd-now .price-text { font-size: 20px; font-weight: 600; }
.pd-vat { font-size: 12px; color: var(--subtle); }
.pd-spec { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pd-spec > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 5px 0; }
.pd-spec dt { color: var(--muted); }
.pd-spec dd { color: var(--ink-2); }
.pd-options { display: grid; gap: 12px; padding: 20px 0 0; }
.pd-opt-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pd-options .input { height: 44px; }
.pd-lines { margin-top: 20px; }
.pd-lines.is-hidden { display: none; }
.pd-lines-help { padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--subtle); font-size: 13px; text-align: center; }
.pd-lines.is-single .pd-lines-help { display: none; }
.pd-lines-table { width: 100%; }
.pd-lines-table tbody { display: grid; gap: 8px; }
.pd-lines-table tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name name" "qty price"; gap: 12px; padding: 14px 16px; background: var(--bg-soft); border-radius: var(--radius); }
.pd-lines-table td { display: block; padding: 0; }
.pd-lines-table td:nth-child(1) { grid-area: name; font-size: 13px; color: var(--ink-2); line-height: 1.5; padding-right: 28px; }
.pd-lines.is-single .pd-lines-table td:nth-child(1) { display: none; }
.pd-lines.is-single .pd-lines-table tr { grid-template-areas: "qty price"; align-items: center; }
.pd-lines-table td:nth-child(1) .product { margin-top: 2px; color: var(--accent-ink); font-weight: 600; }
.pd-lines-table td:nth-child(2) { grid-area: qty; position: static; display: flex; align-items: center; }
.pd-lines-table td:nth-child(3) { grid-area: price; align-self: center; text-align: right; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.pd-lines-table tr { position: relative; }
/* app.js builds: span.quantity > input.line-qty + a[data-up] + a[data-down]; a[data-del] — restyled as a stepper */
.pd-lines-table .quantity { display: inline-grid; grid-template-columns: 36px 52px 36px; grid-template-areas: "down input up"; height: 36px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; overflow: hidden; }
.pd-lines-table .quantity input { grid-area: input; width: 100%; height: 34px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; background: #fff; }
.pd-lines-table .quantity input:focus { outline: none; background: var(--accent-weak); }
.pd-lines-table .quantity a { display: flex; align-items: center; justify-content: center; color: var(--ink); }
.pd-lines-table .quantity a:hover { background: var(--bg-soft); }
.pd-lines-table .quantity a[data-up] { grid-area: up; }
.pd-lines-table .quantity a[data-down] { grid-area: down; }
.pd-lines-table .quantity a img, .pd-lines-table a[data-del] img { display: none; }
.pd-lines-table .quantity a[data-up]::before, .pd-lines-table .quantity a[data-down]::before, .pd-lines-table a[data-del]::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.pd-lines-table .quantity a[data-up]::before { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.pd-lines-table .quantity a[data-down]::before { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.pd-lines-table a[data-del] { position: absolute; right: 8px; top: 8px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--subtle); border-radius: var(--radius); }
.pd-lines-table a[data-del]:hover { color: var(--ink); background: #ececec; }
.pd-lines-table a[data-del]::before { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.pd-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ink); }
.pd-total-label { font-size: 14px; font-weight: 600; }
.pd-total .total { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-total .total strong { margin-right: 4px; }
.pd-total .total em { font-style: normal; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.pd-actions { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 8px; margin-top: 20px; }
.pd-actions .btn-disabled { grid-column: span 2; }
.pd-wish:hover { color: var(--danger); border-color: var(--danger); }
.pd-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.pd-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) {
  .pd-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; margin: 0; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(0,0,0,.04); }
  .pd-actions .btn-lg { height: 48px; }
  .pd-actions .btn-icon { width: 48px; }
}
.pd-banner { margin-top: 56px; text-align: center; }
.pd-tabs { position: sticky; top: 0; z-index: 30; margin-top: 56px; background: #fff; border-bottom: 1px solid var(--line); }
.pd-tabs ul { display: flex; overflow-x: auto; scrollbar-width: none; }
.pd-tabs ul::-webkit-scrollbar { display: none; }
.pd-tabs li { flex: 1 0 auto; }
.pd-tabs a { display: flex; align-items: center; justify-content: center; gap: 4px; height: 52px; padding: 0 16px; font-size: 14px; color: var(--muted); white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.pd-tabs a:hover { color: var(--ink); }
.pd-tabs a.is-current { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.pd-tabs .n { color: var(--subtle); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .pd-tabs { border-top: 1px solid var(--line); } .pd-tabs li { flex: 1; } .pd-tabs a { height: 56px; font-size: 15px; } }
.pd-sec { padding-top: 48px; scroll-margin-top: 56px; }
.pd-sec + .pd-sec { margin-top: 32px; }
.pd-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.pd-sec-title { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
#prdInfo .pd-sec-title, #prdRelated .pd-sec-title { padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
#prdRelated .grid { margin-top: 24px; }
.pd-sec-desc { margin-top: 4px; color: var(--muted); font-size: 13px; }
.pd-sec-btns { display: flex; gap: 8px; }
.pd-desc { max-width: 1000px; margin: 0 auto; text-align: center; overflow-x: auto; }
.pd-desc img { max-width: 100% !important; height: auto !important; }
.pd-desc table { max-width: 100% !important; margin: 0 auto; }
.pd-desc iframe, .pd-desc video { max-width: 100%; }
.pd-guide .cont { padding: 24px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.pd-guide .cont h3 { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.pd-guide .cont:empty { display: none; }
.pd-guide .cont p:empty { display: none; }
.pd-ship dl > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 3px 0; }
.pd-ship dt { color: var(--muted); }
.posts { border-bottom: 1px solid var(--line); }
.post { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; }
.post-title { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; color: var(--ink-2); }
.post-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-lock { color: var(--subtle); display: inline-flex; }
.post-meta { display: flex; gap: 12px; font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }

/* zoom popup page */
.zoom-page { padding: 0; }
.zoom { max-width: 760px; margin: 0 auto; padding: 16px; }
.zoom-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.zoom-title { font-size: 15px; font-weight: 600; line-height: 1.5; }
.zoom-stage { margin-top: 12px; aspect-ratio: 1; background: var(--bg-img); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zoom-stage img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.zoom-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zoom-foot { margin-top: 16px; text-align: center; }

/* ---------------------------------------------------------------- order (basket / orderform / result) */
.order-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 32px 0 24px; }
.steps { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--subtle); }
.steps li { display: inline-flex; align-items: center; gap: 6px; }
.steps li + li::before { content: ""; width: 6px; height: 6px; margin: 0 8px; border-top: 1px solid #c4c4c4; border-right: 1px solid #c4c4c4; transform: rotate(45deg); }
.steps-no { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps .is-current { color: var(--ink); font-weight: 700; }
.steps .is-done { color: var(--muted); }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
/* two columns only from 1200px: at 1024 the item lines (and the myshop body next to its side menu) are too narrow beside a 360px summary */
@media (min-width: 1200px) { .order-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; } .order-side { position: sticky; top: 24px; } }
.bk-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.bk-bar-btns { display: flex; gap: 8px; }
.lines .line { position: relative; display: grid; grid-template-columns: 24px 80px minmax(0, 1fr) auto; grid-template-areas: "chk thumb info info" "chk thumb qty sum" ". . acts acts"; gap: 8px 12px; padding: 20px 40px 20px 0; border-bottom: 1px solid var(--line); }
.line-check { grid-area: chk; padding-top: 2px; }
.line-check input { width: 18px; height: 18px; margin: 0; }
.line-thumb { grid-area: thumb; display: block; width: 80px; height: 80px; background: var(--bg-img); border-radius: var(--radius); overflow: hidden; }
.line-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line-info { grid-area: info; min-width: 0; }
.line-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.5; color: var(--ink); }
a.line-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.line-opt { margin-top: 4px; font-size: 12px; color: var(--muted); }
.line-unit { margin-top: 4px; font-size: 12px; color: var(--subtle); }
.line-qty { grid-area: qty; display: flex; align-items: center; gap: 12px; }
.line-sum { grid-area: sum; justify-self: end; align-self: center; font-size: 13px; white-space: nowrap; }
.line-sum b { font-size: 16px; }
.line-acts { grid-area: acts; display: flex; gap: 6px; }
.line-del { position: absolute; right: 0; top: 16px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--subtle); border-radius: var(--radius); cursor: pointer; }
.line-del:hover { color: var(--ink); background: var(--bg-soft); }
@media (min-width: 768px) {
  .lines .line { grid-template-columns: 24px 96px minmax(0, 1fr) 140px 120px; grid-template-areas: "chk thumb info qty sum" "chk thumb acts qty sum"; align-items: start; padding-right: 48px; }
  .line-thumb { width: 96px; height: 96px; }
  .line-qty { flex-direction: column; align-items: center; gap: 6px; align-self: center; }
  .line-sum { grid-area: sum; justify-self: end; }
  .line-acts { align-self: end; }
  .line-del { top: 50%; transform: translateY(-50%); }
}
.lines-compact .line { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb info sum" "thumb acts sum"; padding-right: 0; align-items: center; }
.lines-compact .line-check { display: none; }
.lines-compact .line-thumb { width: 64px; height: 64px; }
.lines-compact .line-sum { grid-area: sum; }
.lines-compact .line-del + * { }
.bk-wish .lines-compact .line { padding-right: 40px; }
#frm_order_act .lines-compact .line { grid-template-columns: 20px 64px minmax(0, 1fr) auto; grid-template-areas: "chk thumb info sum"; }
#frm_order_act .lines-compact .line-check { display: block; }
@media (min-width: 768px) { .lines-compact .line { grid-template-columns: 64px minmax(0, 1fr) auto auto; grid-template-areas: "thumb info acts sum"; } .lines-compact .line-acts { align-self: center; } }
.qty { display: inline-grid; grid-template-columns: 32px 44px 32px; height: 32px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qty-btn { display: flex; align-items: center; justify-content: center; color: var(--ink); }
.qty-btn:hover { background: var(--bg-soft); }
.qty-input { width: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 600; }
.qty-input:focus { outline: none; background: var(--accent-weak); }
.line-modify { font-size: 12px; white-space: nowrap; flex: none; }
@media (max-width: 767px) {
  /* phones: qty stepper + [변경] + line sum get their own row under the thumb, so nothing wraps letter by letter */
  .lines:not(.lines-compact) .line { grid-template-areas: "chk thumb info info" ". qty qty sum" ". acts acts acts"; }
  .lines:not(.lines-compact) .line-qty { gap: 8px; }
}
.bk-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 0 0; }
.bk-wish { margin-top: 64px; }
.bk-wish .sec-head { padding-bottom: 12px; margin-bottom: 0; border-bottom: 1px solid var(--ink); }
.summary { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.summary-title { font-size: 16px; font-weight: 700; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary-rows { padding: 12px 0; font-size: 14px; }
.summary-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.summary-rows dt { color: var(--muted); }
.summary-rows dd { text-align: right; }
.summary-rows .is-sub { padding: 2px 0 2px 12px; font-size: 12px; }
.summary-rows .is-sub dt, .summary-rows .is-sub dd { color: var(--subtle); }
.summary-rows .is-minus dd { color: var(--accent); }
.summary-note { font-size: 12px; color: var(--muted); display: block; max-width: 200px; line-height: 1.5; }
.summary-hint { margin-bottom: 12px; padding: 8px 12px; background: var(--accent-weak); color: var(--accent-ink); font-size: 12px; border-radius: var(--radius); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--ink); font-size: 14px; font-weight: 600; }
.summary-total strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.summary-total strong b { font-size: 24px; letter-spacing: -0.02em; margin-right: 1px; }
.summary-vat { margin-top: 4px; text-align: right; font-size: 12px; color: var(--subtle); }
.summary-btns { display: grid; gap: 8px; margin-top: 20px; }
.summary-continue { display: block; margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.agree { display: grid; gap: 12px; margin: 20px 0; padding: 16px; background: var(--bg-soft); border-radius: var(--radius); font-size: 13px; }
.osec { margin-bottom: 48px; }
.osec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.osec-head + .form { border-top: 0; }
.osec-title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.osec-n { color: var(--accent); margin-left: 2px; }
.osec-aside { display: flex; gap: 6px; }
.osec-req { font-size: 12px; color: var(--muted); }
.osec-total { padding: 16px 0 0; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.osec-total b { color: var(--ink-2); }
.osec-total strong { color: var(--ink); margin-left: 4px; }
.osec-total strong b { font-size: 18px; color: var(--ink); }
.osec-total + .hint { text-align: right; }
#payBank { margin-top: 16px; }
.ship-methods { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
@media (min-width: 768px) { .ship-methods { grid-template-columns: 1fr 1fr; } }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; margin: 0; }
.radio-card-body { display: block; height: 100%; padding: 14px 16px 14px 44px; border: 1px solid var(--line-2); border-radius: var(--radius); transition: border-color .15s; }
.radio-card:hover .radio-card-body { border-color: #9a9a9a; }
.radio-card input:checked + .radio-card-body { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card-title { display: block; font-size: 14px; font-weight: 600; }
.radio-card-desc { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.order-script { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; }
.order-script summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.order-script summary::-webkit-details-marker { display: none; }
.order-script summary .ico-chevron-down { margin-left: auto; color: var(--subtle); }
.order-script[open] summary .ico-chevron-down { transform: rotate(180deg); }
.order-script ul { padding: 0 16px 16px 16px; display: grid; gap: 6px; color: var(--ink-2); line-height: 1.6; }
.order-script li { position: relative; padding-left: 12px; }
.order-script li::before { content: ""; position: absolute; left: 0; top: .7em; width: 4px; height: 1px; background: var(--muted); }
.order-script li.sub { color: var(--muted); }
.order-script li.sub::before { display: none; }
.order-script .em { color: var(--danger); font-weight: 600; }
.order-bank-note { font-size: 14px; color: var(--ink-2); padding-top: 9px; }
.addr-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.addr-recent .input { width: auto; min-width: 160px; }
.input-zip { max-width: 140px; }
.osec-help { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; font-size: 13px; color: var(--ink-2); }
.osec-help summary { display: flex; align-items: center; gap: 8px; padding: 14px 0; cursor: pointer; font-weight: 600; list-style: none; }
.osec-help summary::-webkit-details-marker { display: none; }
.osec-help summary .ico { margin-left: auto; color: var(--subtle); }
.osec-help h4 { margin: 8px 0 6px; font-size: 13px; }
.osec-help ol { list-style: decimal; padding: 0 0 12px 20px; color: var(--muted); line-height: 1.7; }
.done { padding: 40px 16px; text-align: center; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.done-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); }
.done-title { margin-top: 16px; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.done-desc { margin-top: 8px; color: var(--muted); font-size: 13px; }
.done-desc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.done-meta { display: inline-grid; gap: 4px; margin-top: 24px; padding: 16px 24px; background: var(--bg-soft); border-radius: var(--radius); font-size: 14px; text-align: left; }
.done-meta > div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.done-meta dt { color: var(--muted); }
.done-meta dd { font-variant-numeric: tabular-nums; }
.done .notice { display: inline-block; }
.bank-box { margin-bottom: 48px; padding: 24px; border: 1px solid var(--ink); border-radius: var(--radius-lg); font-size: 14px; line-height: 1.8; }
.bank-box h3 { font-size: 15px; margin-bottom: 8px; }
.bank-box .acc { font-size: 18px; font-weight: 700; margin: 4px 0; }
.kv { width: 100%; font-size: 14px; }
.kv th, .kv td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.kv th { width: 120px; color: var(--muted); font-weight: 400; }
.kv-strong { font-size: 16px; }
.kv-sub { display: block; margin-top: 2px; font-size: 12px; }
@media (min-width: 768px) { .kv th { width: 160px; } }

/* ---------------------------------------------------------------- error */
.error-box { max-width: 480px; margin: 0 auto; padding: 96px 0 64px; text-align: center; }
.error-code { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.error-title { margin-top: 16px; font-size: 18px; font-weight: 700; }
.error-msg { margin-top: 8px; color: var(--muted); }
.error-btns { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.error-btns .btn { min-width: 136px; }

/* ---------------------------------------------------------------- generic table (other pages; see STYLEGUIDE) */
.tbl { width: 100%; font-size: 13px; border-top: 1px solid var(--ink); }
.tbl th, .tbl td { padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.tbl thead th { font-weight: 600; color: var(--ink-2); background: #fff; }
.tbl td.left, .tbl th.left { text-align: left; }
.tbl td.right, .tbl th.right { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody tr:hover { background: #fafafa; }
.tbl-wrap { overflow-x: auto; }
@media (max-width: 767px) {
  .tbl-stack thead { display: none; }
  .tbl-stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl-stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .tbl-stack td::before { content: attr(data-th); color: var(--muted); text-align: left; flex: none; }
}
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; height: 48px; padding: 0 16px; font-size: 14px; color: var(--muted); white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-current { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel-soft { background: var(--bg-soft); border-color: transparent; }

@media print { .hd, .ft, .quick, .drawer, .pd-actions { display: none !important; } }

/* main catalog: collapsible groups on phones, plain columns from 768px */
.catalog-title { display: flex; align-items: center; gap: 6px; list-style: none; cursor: default; }
.catalog-title::-webkit-details-marker { display: none; }
.catalog-n, .catalog-title .ico { display: none; }
@media (max-width: 767px) {
  .catalog { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); }
  .catalog-col { border-bottom: 1px solid var(--line); }
  .catalog-title { height: 52px; margin: 0; padding: 0; border: 0; cursor: pointer; font-size: 15px; }
  .catalog-n { display: inline; color: var(--subtle); font-size: 12px; font-weight: 400; }
  .catalog-title .ico { display: block; margin-left: auto; color: var(--subtle); transition: transform .15s; }
  .catalog-col[open] .catalog-title .ico { transform: rotate(180deg); }
  .catalog-col ul { padding: 4px 0 16px; columns: 2; column-gap: 16px; }
  .catalog-brand, .catalog-promo { grid-column: auto; }
}
@media (min-width: 768px) { .catalog-title { pointer-events: none; } }
.quick-btn span { white-space: nowrap; }
/* selected option line: the product name is already the page title -> show only the chosen options */
.pd-lines-table td:nth-child(1) { font-size: 0; }
.pd-lines-table td:nth-child(1) .product { margin: 0; font-size: 13px; }
.pd-lines-table td:nth-child(1):not(:has(.product)) { display: none; }
.pd-lines-table tr:not(:has(.product)) { grid-template-areas: "qty price"; align-items: center; }
.frow-field > .check { margin-top: 12px; }
@media (max-width: 1023px) {
  /* phones/tablets: the header search already holds the keyword -> the page keeps only the search options */
  .is-search .search-box-row, .is-search .search-head .page-desc { display: none; }
  .is-search .search-box { margin-top: 8px; }
  .card-tool { width: 32px; height: 32px; }
  .card-tool .ico { width: 16px; height: 16px; }
}
/* 강조 (관리자 > 분류 메뉴 표시 = 강조) categories */
.mega-list a.is-hot, .dd a.is-hot, .catalog a.is-hot, .acc-item > a.is-hot { font-weight: 600; color: var(--ink); }
.pd-summary { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.list-title-img { margin-top: 24px; text-align: center; }
.list-title-img img { max-width: 100%; height: auto; }
