/* 상품 옵션 UI — 색상 스와치 · 사이즈 가이드 (2026-11)
   스와치는 영카트 색상 select 위에 얹는다. 셀렉트는 스와치 생성에 성공한 뒤(.hb-swatch-on)만 숨긴다. */

/* ── 색상 스와치 ── */
.get_item_options.hb-swatch-on > span{ display:none; }          /* 색상 <select> 래퍼 숨김 (DOM 은 유지) */
.hb-swatch{ display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:6px; padding:6px; border-radius:16px; background:#f6f6f6; margin:4px 0 6px; }
.hb-swatch-btn{ position:relative; display:flex; flex-direction:column; align-items:center; gap:5px; padding:8px 4px 6px; border:1.5px solid transparent; border-radius:12px; background:#fff; cursor:pointer; min-width:0; font:inherit; color:#555; transition:border-color .15s, box-shadow .15s; }
.hb-swatch-btn:hover{ border-color:#cfcfcf; }
.hb-swatch-btn.is-on{ border-color:#212121; color:#111; box-shadow:0 1px 6px rgba(0,0,0,.08); }
.hb-swatch-btn .hb-sw-dot{ width:28px; height:28px; border-radius:50%; border:1px solid rgba(0,0,0,.12); box-shadow:inset 0 0 0 1px rgba(255,255,255,.4); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; color:#777; background:#e4e4e4; }
.hb-swatch-btn .hb-sw-nm{ display:block; width:100%; font-size:11px; font-weight:700; line-height:1.2; text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hb-swatch-btn.is-soldout{ color:#b5b5b5; cursor:not-allowed; }
.hb-swatch-btn.is-soldout .hb-sw-dot{ opacity:.45; }
.hb-swatch-btn.is-soldout::after{ content:""; position:absolute; left:50%; top:16px; width:34px; height:1.5px; background:#b5b5b5; transform:translateX(-50%) rotate(-45deg); }
.hb-swatch-msg{ margin:0 0 8px; font-size:12px; color:#777; min-height:16px; }
.hb-swatch-msg.is-warn{ color:#d7263d; }
.hb-swatch-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; }
.hb-swatch-head .hb-sw-title{ font-size:13px; font-weight:800; color:#212121; }
.get_item_options.hb-swatch-on > label.hb-sw-hidden-label{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.hb-swatch-head .hb-sw-state{ font-size:11.5px; font-weight:700; color:#aaa; }
.hb-swatch-head .hb-sw-state.is-set{ color:#212121; }
@media (max-width:575px){
  .hb-swatch{ grid-template-columns:repeat(4, minmax(0,1fr)); }
}

/* ── 사이즈 가이드 줄 ── */
.hb-sg-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; padding:10px 12px; border:1px solid #ececec; border-radius:12px; background:#fff; }
.hb-sg-row[hidden]{ display:none; }
.hb-sg-open{ display:flex; align-items:center; gap:10px; border:0; background:none; padding:0; cursor:pointer; font:inherit; color:#212121; min-width:0; }
.hb-sg-ic{ width:30px; height:30px; border-radius:8px; background:#fff6e5 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c58a2b' stroke-width='2' stroke-linecap='round'><path d='M3 17l14-14 4 4-14 14H3z'/><path d='M8 12l2 2M11 9l2 2M14 6l2 2'/></svg>") center/18px no-repeat; flex:0 0 auto; }
.hb-sg-tt{ font-size:13.5px; font-weight:800; white-space:nowrap; }
.hb-sg-sub{ font-size:12px; color:#888; }
.hb-sg-sub::after{ content:" ›"; }
.hb-sg-saved{ display:flex; align-items:center; gap:8px; font-size:12px; color:#555; min-width:0; }
.hb-sg-has{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hb-sg-apply{ border:1px solid #212121; background:#212121; color:#fff; border-radius:8px; padding:5px 11px; font-size:12px; font-weight:800; cursor:pointer; }
.hb-sg-badge{ display:inline-block; margin-left:6px; padding:1px 7px; border-radius:10px; background:#212121; color:#fff; font-size:10.5px; font-weight:800; vertical-align:middle; }
.hb-sg-badge.is-warn{ background:#fff1f3; color:#d7263d; }

/* ── 사이즈 가이드 모달 ── */
.hb-sg[hidden]{ display:none; }
.hb-sg{ position:fixed; inset:0; z-index:1200; display:flex; align-items:center; justify-content:center; }
.hb-sg-dim{ position:absolute; inset:0; background:rgba(0,0,0,.55); }
.hb-sg-panel{ position:relative; width:min(560px, calc(100% - 32px)); max-height:min(760px, calc(100% - 32px)); display:flex; flex-direction:column; background:#fff; border-radius:22px; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.hb-sg-head{ display:flex; align-items:center; gap:10px; padding:18px 18px 10px; }
.hb-sg-back{ width:34px; height:34px; border:0; background:none; cursor:pointer; margin-left:-6px; position:relative; }
.hb-sg-back::before{ content:""; position:absolute; left:14px; top:11px; width:10px; height:10px; border-left:2px solid #212121; border-bottom:2px solid #212121; transform:rotate(45deg); }
.hb-sg-ttl{ flex:1; min-width:0; }
.hb-sg-lab{ margin:0; font-size:10px; font-weight:700; color:#aaa; letter-spacing:.04em; }
.hb-sg-ttl h2{ margin:2px 0 0; font-size:17px; font-weight:800; color:#111; }
.hb-sg-x{ width:34px; height:34px; border:0; border-radius:50%; background:#f3f3f3; font-size:22px; line-height:1; cursor:pointer; color:#555; }
.hb-sg-tabs{ display:grid; grid-template-columns:repeat(3,1fr); gap:4px; margin:0 18px; padding:4px; border-radius:14px; background:#f3f3f3; }
.hb-sg-tab{ border:0; border-radius:11px; background:transparent; text-align:left; padding:8px 10px; cursor:pointer; min-width:0; font:inherit; }
.hb-sg-tab.on{ background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.hb-sg-tab b{ display:block; font-size:12px; color:#212121; }
.hb-sg-tab span{ display:block; font-size:10.5px; color:#999; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:2px; }
.hb-sg-bar{ display:flex; gap:6px; margin:12px 18px 0; }
.hb-sg-bar i{ flex:1; height:5px; border-radius:3px; background:#eee; }
.hb-sg-bar i.on{ background:#42b978; }
.hb-sg-body{ flex:1; min-height:0; overflow-y:auto; padding:14px 18px; }
.hb-sg-sec{ border:1px solid #f0f0f0; border-radius:18px; padding:16px; }
.hb-sg-sec h3{ margin:0; font-size:16px; font-weight:800; color:#111; }
.hb-sg-desc{ margin:4px 0 12px; font-size:12px; color:#888; }
.hb-sg-big{ display:flex; align-items:baseline; justify-content:center; gap:6px; padding:16px; border-radius:14px; background:#f7f7f7; margin-bottom:10px; }
.hb-sg-big b{ font-size:34px; font-weight:800; color:#111; line-height:1; }
.hb-sg-big span{ font-size:16px; font-weight:700; color:#999; }
.hb-sg-mg{ text-align:right; margin-bottom:10px; }
.hb-sg-mguide{ border:0; background:none; font-size:12px; font-weight:700; color:#666; cursor:pointer; }
.hb-sg-mg p{ display:none; margin:6px 0 0; text-align:left; font-size:12px; color:#666; background:#fafafa; border-radius:10px; padding:10px 12px; }
.hb-sg-mg.open p{ display:block; }
.hb-sg-opts{ display:flex; flex-wrap:wrap; gap:8px; }
.hb-sg-opts.grid{ display:grid; grid-template-columns:repeat(5,1fr); }
.hb-sg-opt{ border:1px solid #e8e8e8; border-radius:12px; background:#fff; padding:10px 12px; font:inherit; font-size:13.5px; font-weight:700; color:#333; cursor:pointer; }
.hb-sg-opts:not(.grid) .hb-sg-opt{ flex:1 1 auto; min-width:72px; }
.hb-sg-opt.on{ background:#42b978; border-color:#42b978; color:#fff; }
.hb-sg-foot{ display:flex; gap:8px; padding:12px 18px 18px; border-top:1px solid #f0f0f0; }
.hb-sg-foot button{ flex:1; height:48px; border-radius:14px; font:inherit; font-size:15px; font-weight:800; cursor:pointer; border:0; }
.hb-sg-cancel{ background:#f05a5a; color:#fff; }
.hb-sg-next{ background:#42b978; color:#fff; }
.hb-sg-next:disabled{ background:#cfe8da; cursor:not-allowed; }
body.hb-sg-modal-open{ overflow:hidden; }
@media (max-width:575px){
  /* 우측 플로팅 위젯(내가 본 상품·카카오)이 덮지 않게: 저장 프로필 줄은 아래로 내리고 오른쪽 여백을 둔다 */
  .hb-sg-row{ flex-wrap:wrap; padding-right:64px; }
  .hb-sg-saved{ flex-basis:100%; justify-content:space-between; }
  .hb-sg{ align-items:flex-end; }
  .hb-sg-panel{ width:100%; max-height:92%; border-radius:22px 22px 0 0; }
  .hb-sg-opts.grid{ grid-template-columns:repeat(4,1fr); }
}

/* ── 마이페이지: 내 사이즈 프로필 카드 ── */
.hb-my-sp{ margin-top:40px; }
.hb-my-sp-list{ display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:10px; margin-top:12px; }
.hb-my-sp-card{ border:1px solid #ececec; border-radius:14px; padding:14px 16px; display:flex; flex-direction:column; gap:6px; background:#fff; }
.hb-my-sp-card b{ font-size:14px; color:#111; }
.hb-my-sp-card span{ font-size:12.5px; color:#666; min-height:18px; }
.hb-my-sp-card span.none{ color:#aaa; }
.hb-my-sp-card button{ align-self:flex-start; margin-top:4px; border:1px solid #212121; background:#fff; color:#212121; border-radius:8px; padding:5px 12px; font-size:12px; font-weight:800; cursor:pointer; }
.hb-my-sp-card button.primary{ background:#212121; color:#fff; }
