/* =========================================================
   JEPC PC 견적짜기 전용 스타일 (builder.html)
   ========================================================= */
.bd-shell{width:min(1400px,calc(100% - 44px));margin:0 auto}
.bd-head{padding:30px 0 22px;background:linear-gradient(115deg,#f4f8ff,#f8f9ff 55%,#f3f1ff);border-bottom:1px solid #edf1f6}
.bd-head .breadcrumb{margin-bottom:10px}
.bd-head-row{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.bd-head h1{margin:0;font-size:32px;letter-spacing:-.06em}
.bd-head p{margin:6px 0 0;color:#6f7d92;font-size:14px}
.bd-head p b{color:#3979df}
.bd-updated{font-size:12px;color:#8a96a8;font-weight:700}

.bd{padding:22px 0 70px;background:#f6f8fc}
.bd-grid{display:grid;grid-template-columns:220px minmax(0,1fr) 340px;gap:18px;align-items:start}

/* ---- 카테고리 ---- */
.bd-cats{position:sticky;top:92px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:10px;max-height:calc(100vh - 110px);overflow:auto}
.bd-cats-title{font-size:12px;font-weight:900;color:#8a96a8;letter-spacing:.08em;padding:8px 10px 10px}
.bd-cat{display:block;width:100%;text-align:left;border:0;background:none;border-radius:12px;padding:10px 12px;margin-bottom:2px;transition:background .15s}
.bd-cat:hover{background:#f4f7fc}
.bd-cat-main{display:flex;align-items:center;justify-content:space-between;gap:6px}
.bd-cat-main b{font-size:15px;color:#22324b}
.bd-cat-sub{display:block;margin-top:3px;font-size:11.5px;color:#93a0b2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-check{font-style:normal;width:18px;height:18px;border-radius:50%;background:#e7f0ff;color:#3979df;font-size:11px;display:grid;place-items:center;font-weight:900}
.bd-cat-sub+.bd-cat-sub{margin-top:2px}
.bd-cat.is-done .bd-cat-sub{color:#4d6fa8;font-weight:600}
.bd-cat.is-active{background:var(--navy)}
.bd-cat.is-active b{color:#fff}
.bd-cat.is-active .bd-cat-sub{color:#b7c6dd}
.bd-cat.is-active .bd-check{background:#3d5378;color:#fff}

/* ---- 상품 목록 ---- */
.bd-list{background:#fff;border:1px solid var(--line);border-radius:18px;min-height:600px;scroll-margin-top:90px}
.bd-list-head{position:sticky;top:76px;z-index:5;background:#ffffffee;backdrop-filter:blur(10px);padding:18px 20px 12px;border-bottom:1px solid #eef2f7;border-radius:18px 18px 0 0}
.bd-list-title{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.bd-list-title h2{margin:0;font-size:22px;letter-spacing:-.05em}
.bd-count{font-size:13px;font-weight:800;color:#3979df}
.bd-list-title p{margin:0;font-size:12px;color:#93a0b2;flex-basis:100%}
.bd-tools{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap;align-items:center}
.bd-search{flex:1;min-width:200px;display:flex;align-items:center;gap:8px;border:1px solid #e1e8f2;border-radius:12px;padding:0 12px;background:#fbfcfe}
.bd-search svg{width:16px;height:16px;color:#94a1b4;flex:none}
.bd-search input{border:0;background:none;outline:none;padding:11px 0;width:100%;font-size:14px;color:#2b3a52}
.bd-search:focus-within{border-color:#79a5ef;box-shadow:0 0 0 3px #79a5ef1b}
#bdSort{border:1px solid #e1e8f2;border-radius:12px;padding:10px 12px;background:#fbfcfe;font-size:13px;font-weight:700;color:#3d4a60}
.bd-toggle{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:#3d4a60;padding:9px 12px;border:1px solid #e1e8f2;border-radius:12px;cursor:pointer;background:#fbfcfe}
.bd-toggle input{accent-color:#3979df;width:16px;height:16px;margin:0}
.bd-brands{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.bd-brands:empty{display:none}
.bd-chip{border:1px solid #e3e9f2;background:#fff;border-radius:999px;padding:6px 11px;font-size:12px;font-weight:800;color:#5b687d}
.bd-chip:hover{border-color:#a9c4f2;color:#3979df}
.bd-chip.is-on{background:#eaf2ff;border-color:#bcd3f8;color:#2f6fd6}

.bd-items{padding:6px 12px 14px}
.bd-note{margin:8px 8px 4px;padding:10px 12px;border-radius:12px;background:#f1f6ff;color:#4a6797;font-size:12.5px;font-weight:600}
.bd-link{border:0;background:none;color:#2f6fd6;font-weight:900;text-decoration:underline;padding:0 0 0 4px;font-size:12.5px}
.bd-empty{padding:60px 10px;text-align:center;color:#9aa5b6;font-size:14px}
.bd-item{display:grid;grid-template-columns:92px minmax(0,1fr) 150px;gap:16px;align-items:center;padding:14px 8px;border-bottom:1px solid #f0f3f8;transition:background .15s}
.bd-item:last-child{border-bottom:0}
.bd-item:hover{background:#fafcff}
.bd-item.is-picked{background:#f3f8ff}
.bd-thumb{width:92px;height:92px;border:1px solid #edf1f6;border-radius:14px;background:#fff;padding:6px;display:grid;place-items:center;overflow:hidden}
.bd-thumb img{max-width:100%;max-height:100%;object-fit:contain}
.bd-noimg{font-size:10px;font-weight:900;color:#a7b2c3;letter-spacing:.06em}
.bd-info{min-width:0}
.bd-name{display:block;border:0;background:none;padding:0;text-align:left;font-size:15px;font-weight:800;color:#1c2a42;line-height:1.45;letter-spacing:-.03em}
.bd-name:hover{color:#2f6fd6;text-decoration:underline}
.bd-specs{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.bd-specs span{font-size:11.5px;color:#66748a;background:#f3f5f9;border-radius:6px;padding:3px 7px;white-space:nowrap}
.bd-buy{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.bd-buy strong{font-size:17px;letter-spacing:-.04em;color:#14213a}
.bd-add{min-width:88px;border:0;border-radius:11px;padding:10px 14px;font-size:13px;font-weight:900;color:#fff;background:linear-gradient(110deg,#4d90f5,#7e7bf0);box-shadow:0 8px 18px #6894ee33;transition:transform .15s}
.bd-add:hover{transform:translateY(-1px)}
.bd-add.is-on{background:#fff;color:#2f6fd6;border:1px solid #bcd3f8;box-shadow:none}

/* ---- 내 견적 ---- */
.bd-summary{position:sticky;top:92px}
.bd-summary-inner{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 14px 40px rgba(23,42,72,.07);display:flex;flex-direction:column;max-height:calc(100vh - 110px)}
.bd-summary-head{display:flex;justify-content:space-between;align-items:center}
.bd-summary-head h2{margin:0;font-size:19px;letter-spacing:-.05em}
.bd-summary-head h2 span{font-size:13px;color:#3979df;margin-left:4px}
.bd-summary-close{display:none;border:0;background:none;font-size:26px;color:#8a96a8;line-height:1}
.bd-picked{list-style:none;margin:12px 0 0;padding:0;overflow:auto;flex:1;min-height:80px}
.bd-pick-empty{padding:36px 8px;text-align:center;color:#9aa5b6;font-size:13px;line-height:1.7;border:1px dashed #dfe6f0;border-radius:14px}
.bd-pick{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr);gap:10px;padding:10px 26px 10px 0;border-bottom:1px solid #f0f3f8}
.bd-pick.is-new{animation:bdIn .45s ease}
@keyframes bdIn{from{opacity:0;transform:translateX(18px);background:#eaf2ff}to{opacity:1;transform:none;background:transparent}}
.bd-pick-thumb{width:46px;height:46px;border:1px solid #edf1f6;border-radius:10px;display:grid;place-items:center;overflow:hidden;background:#fff;padding:3px}
.bd-pick-thumb img{max-width:100%;max-height:100%;object-fit:contain}
.bd-pick-thumb .bd-noimg{font-size:8px}
.bd-pick-info small{display:block;font-size:11px;font-weight:900;color:#3979df}
.bd-pick-info b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.4;color:#24334b;margin-top:2px}
.bd-pick-row{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.bd-pick-row strong{font-size:13.5px}
.bd-qty{display:inline-flex;align-items:center;border:1px solid #e1e8f2;border-radius:8px;overflow:hidden}
.bd-qty button{border:0;background:#f6f8fb;width:24px;height:24px;font-size:14px;color:#55647a}
.bd-qty em{font-style:normal;min-width:24px;text-align:center;font-size:12px;font-weight:800}
.bd-remove{position:absolute;right:0;top:8px;border:0;background:none;font-size:18px;color:#a8b2c1;padding:2px 4px}
.bd-remove:hover{color:#e2565b}
.bd-warn{margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff6ec;border:1px solid #ffe0bd}
.bd-warn p{margin:3px 0;font-size:12px;color:#a35a12;line-height:1.5}
.bd-warn p::before{content:"⚠ "}
.bd-total{display:flex;justify-content:space-between;align-items:flex-end;border-top:1px solid var(--line);margin-top:12px;padding-top:14px}
.bd-total span{font-size:13px;font-weight:800;color:#6f7d92}
.bd-total strong{font-size:27px;letter-spacing:-.05em;color:#14213a}
.bd-summary .bd-updated{display:block;text-align:right;margin-top:2px}
.bd-actions{display:grid;gap:8px;margin-top:14px}
.bd-actions .btn{width:100%}
.bd-actions-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bd-mobile-bar{display:none}

/* ---- 상세 모달 ---- */
.bd-modal{position:fixed;inset:0;z-index:120;background:rgba(14,22,38,.45);display:grid;place-items:center;padding:20px}
.bd-modal[hidden]{display:none}
body.bd-modal-open{overflow:hidden}
.bd-modal-card{position:relative;width:min(860px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:22px;box-shadow:0 30px 80px rgba(10,20,40,.3)}
.bd-modal-close{position:absolute;right:14px;top:10px;border:0;background:none;font-size:30px;color:#8a96a8;z-index:2}
.bd-modal-body{display:grid;grid-template-columns:300px minmax(0,1fr);gap:26px;padding:28px}
.bd-modal-img{width:300px;height:300px;border:1px solid #edf1f6;border-radius:18px;display:grid;place-items:center;padding:16px;background:#fff}
.bd-modal-img img{max-width:100%;max-height:100%;object-fit:contain}
.bd-modal-info{display:flex;flex-direction:column;gap:10px;align-self:center}
.bd-modal-info small{font-size:12px;font-weight:900;color:#3979df}
.bd-modal-info h3{margin:0;font-size:22px;line-height:1.4;letter-spacing:-.04em}
.bd-modal-price{font-size:26px;font-weight:900;letter-spacing:-.05em}
.bd-modal-info .btn{align-self:flex-start;margin-top:6px}
.bd-modal-specs{grid-column:1/-1}
.bd-modal-specs h4{margin:0 0 10px;font-size:15px}
.bd-modal-specs ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #eef2f7}
.bd-modal-specs li{display:flex;gap:10px;padding:9px 4px;border-bottom:1px solid #eef2f7;font-size:13px}
.bd-modal-specs li span{flex:0 0 120px;color:#8490a1}
.bd-modal-specs li b{font-weight:600;color:#2b3a52}

/* ---- 반응형 ---- */
@media(max-width:1180px){
  .bd-grid{grid-template-columns:190px minmax(0,1fr) 300px;gap:14px}
  .bd-item{grid-template-columns:76px minmax(0,1fr) 120px;gap:12px}
  .bd-thumb{width:76px;height:76px}
}
@media(max-width:900px){
  .bd-shell{width:calc(100% - 32px)}
  .bd-head h1{font-size:26px}
  .bd-grid{grid-template-columns:1fr}
  .bd-cats{position:sticky;top:66px;z-index:8;max-height:none;padding:8px;border-radius:14px;overflow-x:auto;overflow-y:hidden}
  .bd-cats-title{display:none}
  #bdCats{display:flex;gap:6px;width:max-content}
  .bd-cat{width:auto;padding:8px 12px;margin:0;border:1px solid #e6ebf3}
  .bd-cat-sub{display:none}
  .bd-cat-main b{font-size:13px;white-space:nowrap}
  .bd-list-head{top:128px;padding:14px}
  .bd-list{scroll-margin-top:136px}
  .bd-item{grid-template-columns:68px minmax(0,1fr);gap:12px}
  .bd-thumb{width:68px;height:68px}
  .bd-buy{grid-column:2;flex-direction:row;justify-content:space-between;align-items:center}
  .bd-summary{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:110;transform:translateY(100%);transition:transform .25s}
  body.bd-sheet-open .bd-summary{transform:none}
  .bd-summary-inner{border-radius:20px 20px 0 0;max-height:80vh}
  .bd-summary-close{display:block}
  .bd-mobile-bar{display:flex;position:fixed;left:12px;right:12px;bottom:12px;z-index:105;justify-content:space-between;align-items:center;border:0;border-radius:16px;padding:15px 18px;background:var(--navy);color:#fff;font-size:14px;font-weight:800;box-shadow:0 14px 30px rgba(10,20,40,.3)}
  .bd-mobile-bar b{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:11px;background:#4e8df5;font-size:12px;margin-left:4px}
  .bd-mobile-bar strong{font-size:17px}
  body.bd-sheet-open .bd-mobile-bar{display:none}
  .bd{padding-bottom:100px}
  .bd-modal-body{grid-template-columns:1fr;padding:22px}
  .bd-modal-img{width:100%;height:240px}
  .bd-modal-specs ul{grid-template-columns:1fr}
}

/* 카테고리 목록 높이: 14개가 한 화면에 들어가도록 */
.bd-cats{max-height:none}
.bd-cat{padding:8px 12px}

/* 플로팅 카톡/블로그 버튼: 견적 화면은 폭이 넓어서 공간이 있을 때만 바깥에 표시 */
@media(min-width:1590px){.kakao-float{right:calc((100% - 1400px)/2 - 92px)}}
@media(max-width:1589px){.kakao-float{display:none}}
.bd-kakao{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border-radius:13px;padding:13px 16px;background:#FEE500;color:#3C1E1E;font-size:14px;font-weight:900}
.bd-kakao svg{width:20px;height:20px}
.bd-kakao:hover{background:#FFEB33}
/* 패키지 구분 / 품절 / 더 보기 */
.bd-chip-label{font-size:12px;font-weight:900;color:#8a96a8;align-self:center;margin-right:2px}
.bd-pkgs{margin-top:6px}
.bd-pkg{display:inline-block;margin-bottom:5px;padding:3px 8px;border-radius:6px;background:#eef3ff;color:#2f5fb8;font-size:11px;font-weight:900;letter-spacing:-.02em}
.bd-item.is-soldout .bd-thumb{opacity:.55}
.bd-item.is-soldout .bd-name{color:#7d899b}
.bd-item.is-soldout .bd-buy strong{font-size:13px;color:#9aa5b6;font-weight:700}
.bd-add.is-off{background:#eef1f5;color:#a2acba;box-shadow:none;cursor:not-allowed}
.bd-add.is-off:hover{transform:none}
.bd-more{display:block;width:calc(100% - 16px);margin:14px 8px 4px;padding:14px;border:1px solid #dfe7f3;border-radius:14px;background:#fff;font-size:14px;font-weight:800;color:#3d4a60}
.bd-more b{color:#3979df;margin-left:6px}
.bd-more:hover{border-color:#a9c4f2;background:#f7faff}
.bd-modal-cash{font-size:12px;font-weight:800;color:#3979df;margin-left:8px;vertical-align:middle}
.bd-modal-card{font-size:13px;color:#7d899b;font-weight:700;margin-top:-4px}
/* 페이지 번호 */
.bd-pager{display:flex;justify-content:center;align-items:center;gap:4px;flex-wrap:wrap;padding:18px 8px 6px;position:static;flex-direction:row;background:none;border:0}
.bd-page{min-width:36px;height:36px;padding:0 8px;border:1px solid #e1e8f2;border-radius:10px;background:#fff;font-size:13px;font-weight:800;color:#4c5a70}
.bd-page:hover:not(:disabled){border-color:#a9c4f2;color:#2f6fd6}
.bd-page.is-on{background:var(--navy);border-color:var(--navy);color:#fff}
.bd-page:disabled{opacity:.35;cursor:default}
.bd-page-nav{font-size:17px}
.bd-page-gap{color:#a2acba;padding:0 2px}
@media(max-width:700px){.bd-pager{display:flex}.bd-page{min-width:32px;height:32px}}
/* 규격 필터 개수 표시 */
.bd-chip em{font-style:normal;font-weight:700;color:#9aa6b8;margin-left:4px;font-size:11px}
.bd-chip.is-on em{color:#5f8fdc}

/* 제조사 더보기 */
.bd-chip-more{border-style:dashed;color:#3979df}

/* 숨김 처리된 토글이 실제로 숨겨지도록 */
.bd-toggle[hidden]{display:none}

/* 분류 불러오는 중 */
.bd-loading{display:flex;align-items:center;justify-content:center;gap:10px;padding:70px 10px;color:#8a96a8;font-size:14px;font-weight:700}
.bd-loading span{width:18px;height:18px;border-radius:50%;border:3px solid #dbe5f4;border-top-color:#4e8df5;animation:bdSpin .8s linear infinite}
@keyframes bdSpin{to{transform:rotate(360deg)}}

/* 견적 복사 / 견적캡쳐 / 초기화 3칸 */
.bd-actions-row{grid-template-columns:1fr 1fr 1fr}
.bd-actions-row .btn{padding-left:6px;padding-right:6px}
.bd-capture{border-color:#bcd3f8;color:#2f6fd6}

/* 견적서 이름 입력 창 */
.bd-name-card{width:min(420px,100%);padding:26px}
.bd-name-card h3{margin:0;font-size:20px;letter-spacing:-.04em}
.bd-name-card p{margin:6px 0 14px;color:#7d899b;font-size:13px}
.bd-name-card input{width:100%;border:1px solid #e1e8f2;border-radius:12px;padding:13px 14px;font-size:16px;outline:none;background:#fbfcfe}
.bd-name-card input:focus{border-color:#79a5ef;box-shadow:0 0 0 3px #79a5ef1b}
.bd-name-actions{display:grid;grid-template-columns:1fr 2fr;gap:8px;margin-top:16px}
/* 게임별 프레임 카드 (내 견적 아래) */
.bd-fps{margin-top:12px}
.fps-mini{background:linear-gradient(145deg,#17243a,#263a5a);border-radius:16px;padding:14px 16px;color:#fff}
.fps-mini-h b{display:block;font-size:15px}.fps-mini-h small{display:block;font-size:11.5px;color:#b9c6d9;margin-top:2px}
.fps-mini-parts{list-style:none;margin:10px 0;padding:0;display:flex;flex-direction:column;gap:4px}
.fps-mini-parts li{display:flex;justify-content:space-between;gap:10px;font-size:12px}
.fps-mini-parts span{color:#9fb0c8;flex:none}.fps-mini-parts b{font-weight:800;text-align:right}.fps-mini-parts em{font-style:normal;color:#8091aa}
.fps-open{width:100%;justify-content:center}

