/* THE ONE B2B — 화면 모양 (2026-11-28)
   참고: caposports.co.kr 로그인 뒤 구성.
     위에서부터 유틸바 → 로고·여신패널·연락처 → 검은 카테고리 띠 → 히어로 → 섹션,
     그리고 화면 아래 고정 바(장바구니·빠른 메뉴)와 오른쪽 '오류신고' 세로 탭.
   색은 :root 한 곳에서만 정한다. */
:root {
  --navy-1: #0a2748;   /* 로그인 바탕 위 */
  --navy-2: #2f6fab;   /* 로그인 바탕 아래 */
  --navy:   #103a68;   /* 단추·강조 */
  --navy-d: #0b2b50;
  --dock:   #122a52;   /* 아래 고정 바 */
  --ink:    #1a1d21;
  --muted:  #6b7280;
  --line:   #dfe3e8;
  --line-2: #c9ced6;
  --bg:     #ffffff;
  --card:   #ffffff;
  --danger: #d32f2f;
  --ok:     #1f7a4d;
  --accent: #e0352b;   /* 이달의특가 같은 빨강 */
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --w: 1280px;         /* 본문 최대 너비 */
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg);
       -webkit-font-smoothing: antialiased; word-break: keep-all; padding-bottom: 54px; }
a { color: inherit; text-decoration: none; }
.inner { max-width: var(--w); margin: 0 auto; padding: 0 20px; }

/* ── ① 유틸 바 ──────────────────────────────── */
.util { border-bottom: 1px solid var(--line); font-size: 13px; }
.util-in { max-width: var(--w); margin: 0 auto; padding: 9px 20px; display: flex;
           align-items: center; gap: 14px; }
.util a { color: #444; }
.util a:hover { color: var(--navy); }
.util .sep { color: var(--line-2); }
.util .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.util .strong { font-weight: 700; color: var(--ink); }

/* 마이페이지 드롭다운 */
.drop { position: relative; }
.drop > button { border: 0; background: none; font: inherit; font-size: 13px; cursor: pointer;
                 color: #444; padding: 0; }
.drop-menu { position: absolute; right: 0; top: 24px; z-index: 60; min-width: 150px;
             background: #fff; border: 1px solid var(--line-2); display: none;
             box-shadow: 0 6px 18px rgba(0,0,0,.09); }
.drop[open] .drop-menu, .drop.on .drop-menu { display: block; }
.drop-menu a { display: block; padding: 9px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.drop-menu a:last-child { border-bottom: 0; }
.drop-menu a:hover { background: #f3f6fa; }

/* ── ② 머리: 로고 · 여신 패널 · 연락처 ──────── */
.head-in { max-width: var(--w); margin: 0 auto; padding: 14px 20px 10px;
           display: grid; grid-template-columns: 170px minmax(0,1fr) 300px; gap: 20px;
           align-items: start; }
.logo { display: block; text-align: center; line-height: 1.05; }
.logo .mark { font-size: 30px; font-weight: 800; letter-spacing: .02em; }
.logo .sub { font-size: 10px; letter-spacing: .3em; color: var(--muted); margin-top: 3px; }

.acct { font-size: 12.5px; }
.acct .hi { font-size: 13.5px; margin: 0 0 7px; }
.acct .hi b { color: var(--navy); }
.acct-grid { display: grid; grid-template-columns: auto auto 1fr; gap: 3px 14px; align-items: baseline; }
.acct-grid .lb { color: #333; }
.acct-grid .lb.warn { color: var(--danger); font-weight: 600; }
.acct-grid .vl { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.acct-grid .vl.warn { color: var(--danger); }
.acct .banks { grid-column: 3; display: grid; gap: 3px; }
.acct .bank { color: #333; }
.acct .bank b { font-weight: 600; }
.acct .warnline { margin: 6px 0 0; color: #555; font-size: 12px; }

.contact { font-size: 12.5px; text-align: right; }
.contact .row { margin-bottom: 7px; }
.contact a { color: var(--navy); text-decoration: underline; }
.srch { display: flex; border: 1px solid var(--line-2); }
.srch input { flex: 1; min-width: 0; height: 32px; border: 0; padding: 0 10px; font: inherit;
              font-size: 13px; }
.srch input:focus { outline: none; }
.srch button { width: 38px; border: 0; background: #fff; cursor: pointer; font-size: 15px; }

/* ── ③ 카테고리 띠 ──────────────────────────── */
.gnb { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.gnb-in { max-width: var(--w); margin: 0 auto; padding: 0 20px; display: flex;
          align-items: stretch; gap: 0; }
.gnb a, .gnb .all { display: flex; align-items: center; padding: 0 22px; height: 46px;
                    font-size: 15px; font-weight: 600; white-space: nowrap; }
.gnb .all { gap: 8px; cursor: pointer; }
.gnb a:hover { color: var(--navy); }
.gnb a[aria-current=page] { color: var(--navy); }
.gnb .hot { background: var(--ink); color: #fff; }
.gnb .hot:hover { color: #fff; }
.gnb .sale { color: var(--accent); }

/* 전체보기 메가 메뉴 */
.mega { display: none; border-bottom: 1px solid var(--line); background: #fafbfc; }
.mega.on { display: block; }
.mega-in { max-width: var(--w); margin: 0 auto; padding: 18px 20px; display: grid;
           grid-template-columns: repeat(5, 1fr); gap: 18px; }
.mega h4 { margin: 0 0 8px; font-size: 14px; }
.mega ul { margin: 0; padding: 0; list-style: none; }
.mega li a { display: block; padding: 4px 0; font-size: 13px; color: #555; }
.mega li a:hover { color: var(--navy); }

/* ── ④ 히어로 ───────────────────────────────── */
.hero { position: relative; overflow: hidden; background: #111; }
.hero-track { display: flex; transition: transform .45s ease; }
.hero-slide { flex: 0 0 100%; height: clamp(260px, 34vw, 480px); position: relative;
              display: grid; place-items: center; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-cap { position: relative; color: #fff; text-align: center; padding: 20px;
            text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero-cap h2 { margin: 0; font-size: clamp(30px, 5vw, 62px); font-weight: 800; letter-spacing: -.01em; }
.hero-cap p { margin: 8px 0 0; font-size: 15px; opacity: .92; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex;
             justify-content: center; gap: 7px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer;
                    background: rgba(255,255,255,.5); padding: 0; }
.hero-dots button[aria-current=true] { background: #fff; }

/* ── ⑤ 섹션 ─────────────────────────────────── */
.sec { max-width: var(--w); margin: 0 auto; padding: 40px 20px 10px; }
.sec-h { display: flex; align-items: baseline; gap: 10px; justify-content: center; margin-bottom: 18px; }
.sec-h h3 { margin: 0; font-size: 22px; font-weight: 700; position: relative; padding-left: 12px; }
.sec-h h3::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px;
                    background: var(--navy); }
.sec-h .en { color: var(--muted); font-size: 15px; letter-spacing: .04em; }

/* 사선 탭 (참고 사이트와 같은 모양) */
.tabs { display: flex; justify-content: center; gap: 2px; margin-bottom: 22px; }
.tabs a { padding: 9px 40px; background: #dfe3ea; color: #4a5260; font-size: 14px;
          font-weight: 600; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.tabs a[aria-current=page] { background: var(--ink); color: #fff; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); }
.card { border: 1px solid var(--line); background: var(--card); display: block; }
.card .ph { aspect-ratio: 1; background: #f1f3f6; display: grid; place-items: center;
            color: #aeb6c0; font-size: 13px; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 11px 12px 14px; }
.card .brand { font-size: 11.5px; color: var(--muted); }
.card .name { font-size: 13.5px; font-weight: 600; margin: 3px 0 7px; line-height: 1.4;
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { font-size: 16px; font-weight: 700; }
.card .retail { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-left: 5px; }
.card .code { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ── ⑥ 아래 고정 바 ─────────────────────────── */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--dock);
        color: #fff; height: 54px; }
.dock-in { max-width: var(--w); margin: 0 auto; padding: 0 20px; height: 100%;
           display: flex; align-items: center; gap: 16px; }
.dock .cart { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; }
.dock .cart .n { background: var(--accent); border-radius: 999px; min-width: 20px; height: 20px;
                 display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
.dock nav { margin-left: auto; display: flex; align-items: center; gap: 0; font-size: 13.5px; }
.dock nav a { padding: 0 14px; border-left: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.92); }
.dock nav a:first-child { border-left: 0; }
.dock nav a:hover { color: #fff; text-decoration: underline; }
.dock .top { margin-left: 14px; background: none; border: 0; color: #fff; cursor: pointer;
             font-size: 17px; }
/* PC · 모바일 보기 전환 — 좁은 화면에서 dock nav 가 숨어도 이건 남는다 */
.dock .viewsw { margin-left: 16px; padding: 6px 13px; border: 1px solid rgba(255,255,255,.45);
                border-radius: 4px; font-size: 13px; white-space: nowrap; }
.dock .viewsw:hover { background: rgba(255,255,255,.14); }

/* 오른쪽 세로 탭 */
.report { position: fixed; right: 0; top: 55%; z-index: 65; background: #eceff3;
          border: 1px solid var(--line-2); border-right: 0; writing-mode: vertical-rl;
          padding: 13px 6px; font-size: 12px; letter-spacing: .22em; color: #4a5260; }

/* ── 게시판 · 표 ────────────────────────────── */
.crumb { font-size: 12.5px; color: var(--muted); padding: 16px 0 0; }
.crumb b { color: var(--ink); }
h1.page { font-size: 25px; margin: 10px 0 18px; position: relative; padding-left: 26px; }
h1.page::before { content: '▶'; position: absolute; left: 0; top: 2px; color: var(--navy);
                  font-size: 17px; }
.board-top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 13px; }
.board-top .cnt { color: #444; }
.board-top form { margin-left: auto; display: flex; gap: 4px; }
.board-top select, .board-top input { height: 30px; border: 1px solid var(--line-2); font: inherit;
                                      font-size: 13px; padding: 0 8px; }
.board-top button { height: 30px; padding: 0 14px; border: 1px solid var(--line-2);
                    background: #f2f4f7; font: inherit; font-size: 13px; cursor: pointer; }

table.list { width: 100%; border-collapse: collapse; }
table.list thead th { background: var(--ink); color: #fff; padding: 11px 10px; font-size: 13px;
                      font-weight: 600; }
table.list td { padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
table.list tbody tr:hover { background: #f7f9fb; }
table.list .c { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.pager { display: flex; justify-content: center; gap: 4px; margin: 22px 0 10px; }
.pager a, .pager span { min-width: 32px; height: 32px; display: grid; place-items: center;
                        border: 1px solid var(--line-2); font-size: 13px; }
.pager .on { background: var(--navy); border-color: var(--navy); color: #fff; }

.btn { display: inline-block; padding: 10px 20px; border: 0; background: var(--navy); color: #fff;
       font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--navy); }

/* 장바구니 합계 상자 — 폭을 %로만 잡는다. 인라인 고정폭을 쓰면 좁은 화면에서 비어져 나온다. */
.sumbox { margin-top: 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sumbox .memo { flex: 1 1 240px; min-width: 0; }
.sumbox .memo label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.sumbox .memo input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2);
                      font: inherit; }
.sumbox .sum { flex: 0 1 auto; min-width: 0; text-align: right; }
.sumbox .sum .lb { margin: 0; font-size: 13px; }
.sumbox .sum .amt { margin: 2px 0 10px; font-size: 26px; font-weight: 700; }
.btn:disabled { background: #b9c0c8; cursor: not-allowed; }
.msg { padding: 12px 14px; margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.msg.err { background: #fdecea; color: var(--danger); border-color: #f5c6c2; }
.msg.ok { background: #eef5f0; color: var(--ok); border-color: #cfe3d7; }
.muted { color: var(--muted); }
.panel { border: 1px solid var(--line); padding: 20px; }
.empty { border: 1px solid var(--line); padding: 64px 20px; text-align: center; color: var(--muted); }

/* ── 상품 목록 (참고 사이트 goods_list) ────── */
.crumb.bar { border-bottom: 2px solid #2f7fd4; padding-bottom: 9px; margin-bottom: 0; }
.crumb .now { color: var(--accent); }

.brandbar { display: flex; align-items: stretch; border-bottom: 2px solid #2f7fd4; }
.brandbar a { display: flex; flex-direction: column; justify-content: center; align-items: center;
              gap: 5px; min-width: 112px; padding: 14px 16px; border-right: 1px solid var(--line);
              font-size: 13px; }
.brandbar a:first-child { border-left: 1px solid var(--line); }
.brandbar .bl { font-weight: 700; font-size: 14px; }
.brandbar .bn { color: #555; font-size: 12px; }
.brandbar .bn i { color: var(--line-2); margin: 0 2px; font-style: normal; }
.brandbar a[aria-current=page] { background: #f4f8fd; }
.brandbar a[aria-current=page] .bl { color: #2f7fd4; }

.total { font-size: 13px; color: #444; margin: 18px 0 10px; }
.total b { color: var(--accent); }

.sortbar { display: flex; align-items: stretch; border-top: 1px solid var(--line);
           border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.sortbar .sorts { flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 4px;
                  font-size: 13px; }
.sortbar .sorts a { color: #555; }
.sortbar .sorts a[aria-current=page] { color: var(--ink); font-weight: 700; }
.sortbar .sorts i { color: var(--line-2); font-style: normal; }
.stockonly { display: flex; align-items: center; gap: 8px; padding: 9px 22px 9px 42px;
             background: #2f7fd4; color: #fff; font-size: 13px;
             clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%); }
.stockonly .dot { width: 13px; height: 13px; border-radius: 50%; background: #fff;
                  box-shadow: inset 0 0 0 3px #2f7fd4; }
.stockonly.on .dot { box-shadow: inset 0 0 0 3px #2f7fd4, inset 0 0 0 13px #0b3f73; }

.plist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
         border: 1px solid var(--line); }
.plist .pitem { display: flex; flex-direction: column; align-items: center; text-align: center;
                padding: 18px 10px 20px; border-right: 1px solid #f0f2f5;
                border-bottom: 1px solid #f0f2f5; }
.plist .pitem:hover { background: #fafbfd; }
.pph { width: 100%; aspect-ratio: 3/4; background: #f4f6f8; display: grid; place-items: center;
       color: #b3bac3; font-size: 12px; margin-bottom: 12px; }
.pbrand { font-size: 12px; color: #555; }
.pname { font-size: 13px; margin: 2px 0 9px; line-height: 1.35;
         display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pretail { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.pretail .x { color: var(--accent); font-style: normal; font-size: 12px; margin-right: 3px; }
.pretail em { font-style: normal; font-size: 11px; font-weight: 400; }
.psupply { display: flex; align-items: center; gap: 6px; width: 100%; justify-content: flex-end;
           border: 1px solid var(--line); padding: 3px 7px; font-size: 14px; }
.psupply .dc { font-style: normal; font-size: 11px; color: var(--accent); background: #f0f2f5;
               padding: 2px 5px; margin-right: auto; }
.psupply b { color: #2f7fd4; }
.psupply em { font-style: normal; font-size: 11px; color: #555; }

/* ── 상품 상세 (참고 사이트 goods_view) ────── */
.gv { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0;
      border: 1px solid var(--line); margin-top: 18px; }
.gv-pic { padding: 24px; display: grid; gap: 14px; }
.gv-pic img, .gv-pic .noimg { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.gv-pic .noimg { background: #f4f6f8; display: grid; place-items: center; color: #b3bac3;
                 font-size: 13px; }
.gv-spec { border-left: 1px solid var(--line); }
.gv-spec h1 { margin: 0; padding: 16px 18px; font-size: 17px; border-bottom: 1px solid var(--line); }
.gv-spec table { width: 100%; border-collapse: collapse; }
.gv-spec th { width: 92px; padding: 9px 0 9px 18px; text-align: left; font-weight: 400;
              color: #555; font-size: 13px; vertical-align: top; }
.gv-spec td { padding: 9px 18px 9px 0; font-size: 13.5px; }
.gv-spec .retail { font-size: 17px; }
.gv-spec .supply { font-size: 17px; color: #2f7fd4; }
.gv-spec .dc { color: var(--accent); font-size: 13px; margin-left: 6px; }
.gv-links { display: flex; align-items: center; gap: 12px; justify-content: center;
            border-top: 1px solid var(--line); padding: 13px; font-size: 13px; }
.gv-links .warn { font-style: normal; display: inline-grid; place-items: center; width: 15px;
                  height: 15px; border-radius: 50%; background: var(--accent); color: #fff;
                  font-size: 11px; font-weight: 700; margin-right: 3px; vertical-align: -2px; }
.gv-links .sep { color: var(--line-2); font-style: normal; }

.gv-buy { border: 1px solid var(--line); border-top: 0; padding: 26px 24px; text-align: center; }
.soldout { display: inline-block; padding: 9px 26px; background: #2f7fd4; color: #fff;
           font-size: 14px; font-weight: 600; }
.sizes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.size-cell { display: grid; gap: 4px; justify-items: center; border: 1px solid var(--line);
             padding: 9px 10px; min-width: 84px; }
.size-cell.off { background: #f6f7f9; color: #9aa2ad; }
.size-cell .sz { font-weight: 700; font-size: 14px; }
.size-cell input { width: 62px; height: 32px; padding: 0 7px; border: 1px solid var(--line-2);
                   font: inherit; text-align: right; }
.size-cell .st { font-size: 11.5px; color: var(--muted); }
.moq { margin: 14px 0 0; font-size: 13px; color: var(--accent); }
.btn-buy { margin-top: 18px; padding: 13px 54px; border: 0; background: var(--navy); color: #fff;
           font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.btn-buy:disabled { background: #b9c0c8; cursor: not-allowed; }
.buymsg { margin: 10px 0 0; font-size: 13.5px; min-height: 18px; }
.buymsg.ok { color: var(--ok); }
.buymsg.err { color: var(--danger); }

.gv-tabs { display: flex; margin-top: 30px; }
.gv-tabs button { flex: 1; padding: 13px 6px; border: 1px solid var(--line); border-left: 0;
                  background: #e9ecf0; font: inherit; font-size: 13.5px; cursor: pointer; }
.gv-tabs button:first-child { border-left: 1px solid var(--line); }
.gv-tabs button.on { background: #2f7fd4; border-color: #2f7fd4; color: #fff; font-weight: 600; }
.gv-pane { display: none; border: 1px solid var(--line); border-top: 0; padding: 28px 24px; }
.gv-pane.on { display: block; }
.gv-pane h4 { margin: 0 0 18px; font-size: 15px; display: flex; align-items: center; gap: 9px;
              color: #777; font-weight: 400; }
.gv-pane h4 b { color: var(--ink); font-size: 17px; }
.gv-pane .hatch { width: 54px; height: 13px;
  background: repeating-linear-gradient(-45deg, #e3e7ec 0 3px, transparent 3px 6px); }
.gv-pane .kc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
               padding: 13px 0 13px 34px; font-size: 13px; color: #555; position: relative; }
.gv-pane .kc::before { content: 'KC'; position: absolute; left: 0; top: 13px; font-weight: 700;
                       color: #2f7fd4; font-size: 13px; }
.gv-pane .desc { margin-top: 22px; font-size: 14px; line-height: 1.9; white-space: pre-line; }

/* 입력 폼 */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line-2);
  font: inherit; font-size: 15px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* ── 로그인 게이트 (참고 사이트 첫 화면) ────── */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: flex-end;
        background: linear-gradient(170deg, var(--navy-1) 0%, var(--navy-1) 28%, var(--navy-2) 100%);
        padding: 40px clamp(20px, 9vw, 190px); }
.gate-box { width: 100%; max-width: 420px; color: #fff; text-align: center; }
.gate-logo { font-size: clamp(38px, 5.4vw, 62px); font-weight: 300; letter-spacing: .06em;
             margin: 0 0 26px; line-height: 1; }
.gate-logo b { font-weight: 600; }
.gate-logo .bar { opacity: .55; margin: 0 .12em; font-weight: 200; }
.gate-lead { font-size: 16px; line-height: 1.7; margin: 0 0 22px; opacity: .96; }
.gate-guide { font-size: 15px; line-height: 1.75; margin: 0 0 30px; opacity: .9; white-space: pre-line; }
.gate input[type=text], .gate input[type=password] {
  width: 100%; height: 56px; margin-bottom: 12px; padding: 0 20px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 28px;
  background: transparent; color: #fff; font: inherit; font-size: 16px; }
.gate input::placeholder { color: rgba(255,255,255,.72); }
.gate input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.08); }
.gate-save { display: flex; align-items: center; justify-content: center; gap: 8px;
             margin: 12px 0 22px; font-size: 15px; }
.gate-save input { width: 16px; height: 16px; accent-color: #fff; }
.btn-gate { display: block; width: 100%; height: 62px; margin-top: 12px; border: 0;
            border-radius: 31px; background: var(--navy-d); color: #fff;
            font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.btn-gate:hover { background: #082240; }
.btn-gate.ghost { background: rgba(8,34,64,.82); }
.gate-foot { margin-top: 26px; font-size: 14px; line-height: 1.8; opacity: .95; }
.gate-err { margin: 0 0 14px; padding: 11px 14px; border-radius: 10px;
            background: rgba(192,57,43,.9); font-size: 14px; }
.gate-view { margin: 22px 0 0; }
.gate-view a { display: inline-block; padding: 8px 18px; border: 1px solid rgba(255,255,255,.5);
               border-radius: 20px; font-size: 13.5px; }
.gate-view a:hover { background: rgba(255,255,255,.12); }

/* ── 좁은 화면 ──────────────────────────────── */
@media (max-width: 1100px) {
  .head-in { grid-template-columns: 130px minmax(0,1fr); }
  .contact { grid-column: 1 / -1; text-align: left; display: flex; gap: 16px;
             align-items: center; flex-wrap: wrap; }
  .srch { flex: 1; min-width: 200px; }
}
@media (max-width: 860px) {
  .gate { justify-content: center; padding: 40px 20px; }
  .detail { grid-template-columns: 1fr; gap: 22px; }
  .form-2 { grid-template-columns: 1fr; }
  .util-in { flex-wrap: wrap; gap: 8px 12px; font-size: 12px; }
  .util .left-links { display: none; }           /* 좁으면 유틸 왼쪽 묶음은 접는다 */
  .head-in { grid-template-columns: 1fr; gap: 12px; }
  .logo { text-align: left; }
  .acct-grid { grid-template-columns: auto auto; }
  .acct .banks { grid-column: 1 / -1; margin-top: 6px; }
  .gnb-in { overflow-x: auto; }
  .mega-in { grid-template-columns: repeat(2, 1fr); }
  .tabs a { padding: 9px 18px; }
  .plist { grid-template-columns: repeat(2, 1fr); }
  .gv { grid-template-columns: 1fr; }
  .gv-spec { border-left: 0; border-top: 1px solid var(--line); }
  .gv-tabs { flex-wrap: wrap; }
  .gv-tabs button { flex: 1 0 50%; border-left: 1px solid var(--line); }
  .brandbar { overflow-x: auto; }
  .sortbar { flex-direction: column; align-items: stretch; }
  .stockonly { clip-path: none; justify-content: center; padding: 9px 16px; }

  /* 장바구니 — 좁은 화면에서는 표를 **줄 단위 카드**로 바꾼다.
     칸이 6개라 그대로 두면 가로로 넘친다 (390px 에서 문서폭 445 였다). */
  .cart-t thead { display: none; }
  .cart-t, .cart-t tbody, .cart-t tr, .cart-t td { display: block; width: 100%; }
  .cart-t tr { border: 1px solid var(--line); margin-bottom: 10px; padding: 4px 0; }
  .cart-t td { display: flex; align-items: center; justify-content: space-between; gap: 12px;
               border-bottom: 0; padding: 7px 12px; text-align: left; }
  .cart-t td::before { content: attr(data-l); color: var(--muted); font-size: 12.5px;
                       flex: 0 0 62px; }
  .cart-t td.num { text-align: right; }
  .cart-t td.del { justify-content: flex-end; }
  .cart-t td.del::before { content: none; }
  .dock nav { display: none; }                   /* 좁으면 장바구니만 남긴다 */
  .dock .viewsw { margin-left: auto; }           /* nav 가 숨으니 이게 오른쪽 끝을 맡는다 */
  .report { display: none; }
}

/* 휴대폰 — 머리 영역이 한 화면을 다 먹어서 상품까지 한참 내려야 했다. 눌러 담는다.
   여신·계좌는 B2B 에서 매번 보는 값이라 지우지 않고 **작게** 남긴다. */
@media (max-width: 640px) {
  .head-in { padding: 10px 16px 8px; gap: 8px; }
  .logo .mark { font-size: 22px; }
  .logo .sub { font-size: 9px; letter-spacing: .24em; margin-top: 1px; }
  .acct { font-size: 12px; }
  .acct .hi { font-size: 13px; margin-bottom: 4px; }
  .acct-grid { gap: 2px 10px; }
  .acct .banks { font-size: 11.5px; line-height: 1.5; margin-top: 4px; }
  .acct .warnline { font-size: 11px; margin-top: 4px; line-height: 1.45; }
  .contact { font-size: 11.5px; gap: 8px; }
  .contact .row { margin-bottom: 0; }
  .srch input { height: 36px; }
  .gnb a, .gnb .all { height: 42px; padding: 0 15px; font-size: 14px; }
  .sec { padding: 26px 16px 8px; }
  .sec-h h3 { font-size: 19px; }
  .inner { padding: 0 16px; }
  h1.page { font-size: 21px; margin: 8px 0 14px; }
  .hero-slide { height: 210px; }
  .plist .pitem { padding: 14px 8px 16px; }
}
