.finder-grid {
  grid-template-columns: 1.15fr .8fr .8fr 1.15fr 1fr 1.1fr;
}

.catalog-sort {
  display: grid;
  gap: 5px;
  color: #64798a;
  font-size: 11px;
  font-weight: 800;
}

.catalog-sort select {
  min-width: 150px;
  height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.catalog-tabs button {
  min-height: 39px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #536b7e;
  font-size: 12px;
  font-weight: 800;
}

.catalog-tabs button b { color: var(--blue); }
.catalog-tabs button.active {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}
.catalog-tabs button.active b { color: #bfe1f8; }

.catalog-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: #738492;
  font-size: 12px;
}
.catalog-summary span:first-child { color: var(--ink); font-weight: 900; }

.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 17px;
}
.product-meta span {
  padding-left: 9px;
  border-left: 2px solid #e5edf1;
  color: #314b60;
  font-size: 11px;
  font-weight: 800;
}
.product-meta b {
  display: block;
  color: #8494a0;
  font-size: 9px;
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 34px;
}
.pagination button {
  min-width: 39px;
  height: 39px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #536b7e;
  font-size: 12px;
  font-weight: 800;
}
.pagination button.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.pagination button:disabled { cursor: default; opacity: .35; }

@media (max-width: 900px) {
  .finder-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .finder-grid { grid-template-columns: 1fr; }
  .catalog-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .catalog-sort { width: 100%; }
  .catalog-sort select { width: 100%; }
  .product-meta { grid-template-columns: 1fr; }
  .pagination { flex-wrap: wrap; }
}

/* ── 보강분 (tools/apply_patch.py · live.js 와 짝) ───────────── */
.live-draw{
  margin:18px 0 0;padding:16px 18px;border:1px solid #e2e8ef;border-radius:12px;
  background:#fbfcfd;
}
.live-draw-head{
  display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  padding-bottom:10px;margin-bottom:8px;border-bottom:1px solid #eef2f6;
}
.live-draw-head b{font-size:17px;color:#16324f;letter-spacing:-.2px}
.live-draw-head em{font-style:normal;font-size:14px;color:#8a97a6}
.live-draw-head em.hit{color:#1a6b3c;font-weight:600}
.live-draw-head em.hit b{color:#1a6b3c}
.live-draw-head em.miss{color:#c0392b}
.live-draw-head em.miss b{color:#c0392b}
#liveCanvas svg{width:100%;height:auto;max-height:200px;display:block}

.price-row{display:flex;align-items:baseline;gap:9px;margin:12px 0 4px;
  font-variant-numeric:tabular-nums}
.price-row s{color:#aab4bd;font-size:14.5px}
.price-row b{color:#16324f;font-size:23px;letter-spacing:-.4px}

.product-visual a{display:block;width:100%;height:100%}
.product-info h3 a{color:inherit}
@media(hover:hover) and (pointer:fine){.product-info h3 a:hover{color:var(--blue)}}

/* ── 롤라벨 3D 목업 ──────────────────────────────────────────── */
.live-draw-head{display:flex;align-items:center;gap:12px}
.live-tabs{margin-left:auto;display:flex;border:1px solid #d7e0e7;border-radius:9px;padding:3px;background:#fff}
.live-tabs button{border:0;background:transparent;border-radius:7px;padding:7px 14px;
  font-size:13px;font-weight:700;color:#62778a}
.live-tabs button.on{background:#e8f2f8;color:#0e568f}
.roll-stage{padding-top:6px}
#roll3d{width:100%;height:520px;display:block;cursor:grab;touch-action:none;
  border-radius:12px;border:1px solid #dbe3e9}
#roll3d.grabbing{cursor:grabbing}
.roll-hint{margin:0;text-align:center;font-size:12.5px;color:#93a2b0}
.roll-readout{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:center;
  margin:12px 0 0;padding:12px 0 0;border-top:1px solid #e4ebf0;font-size:13.5px;color:#5d7284}
.roll-readout b{color:#16324f}
.roll-readout em{font-style:normal;color:#96a5b2}
.roll-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:14px}
.roll-group{display:flex;border:1px solid #d7e0e7;border-radius:9px;overflow:hidden}
.roll-group button{border:0;background:#fff;padding:8px 13px;font-size:13px;font-weight:700;color:#62778a}
.roll-group button+button{border-left:1px solid #e4ebf0}
.roll-group button.on{background:#e8f2f8;color:#0e568f}
.roll-upload,.roll-plain{border:1px solid #d7e0e7;background:#fff;border-radius:9px;
  padding:8px 13px;font-size:13px;font-weight:700;color:#62778a;cursor:pointer}
@media(hover:hover) and (pointer:fine){.roll-upload:hover,.roll-plain:hover{border-color:#9dbdd6;background:#f5fafd}}
.roll-upload input{display:none}
@media(max-width:560px){#roll3d{height:380px}.live-draw-head{flex-wrap:wrap}.live-tabs{width:100%;margin:8px 0 0}.live-tabs button{flex:1;white-space:nowrap}}

.roll-stage.is-box .roll-core{display:none}   /* 박스 프리셋에선 지관이 보이지 않는다 */
.roll-plain.on{border-color:#7caacf;background:#e8f2f8;color:#0e568f}

/* 실사는 카드 오른쪽 절반을 꽉 채운다. 판 위에 네모 사진을 얹으면 붙여 넣은 티가 난다. */
.feature-specimen:has(.feature-photo){background:none}
.feature-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:560px){.feature-specimen:has(.feature-photo){min-height:260px}}

/* ── 상품 카드 — 원단·규격 줄은 flat.css '2단계 · 카드 표' ───── */
.price-row b.ask{font-size:17px;color:#5d7284}
.product-buy{display:flex;gap:9px}
.qty-box{display:flex;border:1px solid #d5dee5;border-radius:10px;overflow:hidden;flex:0 0 auto}
.qty-box button{width:34px;border:0;background:#fff;font-size:16px;color:#4a5c6b}
@media(hover:hover) and (pointer:fine){.qty-box button:hover{background:#eef4f8}}
.qty-box input{width:40px;border:0;border-left:1px solid #e6edf1;border-right:1px solid #e6edf1;
  text-align:center;font-weight:800;font-size:14px;outline:0;-moz-appearance:textfield}
.qty-box input::-webkit-outer-spin-button,.qty-box input::-webkit-inner-spin-button{
  -webkit-appearance:none;margin:0}
.product-card .add-cart{flex:1;height:44px;border:0;border-radius:10px;
  background:#1b3f66;color:#fff;font-weight:800;font-size:14.5px}
@media(hover:hover) and (pointer:fine){.product-card .add-cart:hover{background:#12314f}}
@media(max-width:560px){
  /* 한 단이라 자리가 넉넉하다. 데스크톱보다 오히려 크게. */
  .product-card .add-cart{height:46px;font-size:15px}
  .qty-box button{width:40px}
  .qty-box input{width:46px}
}

.product-material{display:flex;align-items:center;gap:7px}
.product-tag{font-style:normal;font-size:10.5px;font-weight:800;letter-spacing:.02em;
  padding:3px 7px;border-radius:5px;background:#e8eef3;color:#4a5c6b}
.product-tag.made{background:#fdf0d9;color:#8a5a12}

/* ── 어드민 팝업 (디자인 > 팝업창관리) ───────────────────────── */
.admin-popup{position:fixed;inset:0;z-index:60;display:grid;place-items:center;
  background:rgba(16,34,52,.45)}
.admin-popup-box{background:#fff;border-radius:14px;overflow:hidden;max-width:min(92vw,520px);
  box-shadow:0 24px 60px rgba(16,34,52,.3)}
.admin-popup-box img{width:100%;display:block}
.admin-popup-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:11px 14px;border-top:1px solid #e6edf1;font-size:13px;color:#5d7284}
.admin-popup-foot label{display:flex;align-items:center;gap:6px}
.admin-popup-foot button{border:0;background:#1b3f66;color:#fff;border-radius:8px;
  padding:8px 16px;font-weight:800;font-size:13px}

/* ── 어드민 배너 ──────────────────────────────────────────────
   실제 배너는 이미지 한 장이다. 이미지가 없을 때는 들어갈 문구를
   보여주는 샘플을 그린다 (.admin-banner 안쪽 .ab-*).
   이미지가 오면 .has-image 가 붙고 사진만 남는다. */
.admin-banner{max-width:1224px;margin:0 auto;padding:26px 30px;border:1px solid var(--line);
  border-radius:var(--radius);background:linear-gradient(105deg,#f1f7fa,#fbfdfd 62%);
  display:flex;align-items:center;gap:26px}
.admin-banner.has-image{padding:0;border:0;background:none;overflow:hidden}
.admin-banner.has-image img{display:block;width:100%;height:auto}
.ab-copy{flex:1;min-width:0}
.ab-tag{display:inline-block;margin-bottom:9px;padding:4px 10px;border-radius:999px;
  background:#e3eef5;color:var(--blue-dark);font-size:11.5px;font-weight:800;letter-spacing:.02em}
.ab-copy b{display:block;font-size:20px;letter-spacing:-.01em}
.ab-copy p{margin:7px 0 0;color:var(--muted);font-size:14.5px;line-height:1.55}
.ab-go{flex:0 0 auto;min-height:46px;padding:0 24px;display:inline-flex;align-items:center;
  border-radius:11px;background:var(--blue);color:#fff;font-size:14.5px;font-weight:800}
@media(hover:hover) and (pointer:fine){.ab-go:hover{background:var(--blue-dark)}}

/* 하단고정 — 폰에서만. PC 는 이미 전화번호가 고객센터에 있다. */
.admin-dock{display:none}
@media(max-width:560px){
  .admin-banner{flex-direction:column;align-items:flex-start;gap:16px;padding:22px 20px;
    margin-left:15px;margin-right:15px}
  .ab-copy b{font-size:17.5px}
  .ab-go{width:100%;justify-content:center}
  .admin-dock{position:fixed;left:0;right:0;bottom:0;z-index:30;min-height:62px;
    padding:9px 14px;display:flex;align-items:center;gap:12px;
    background:rgba(16,43,67,.96);color:#eaf4fb;backdrop-filter:blur(10px)}
  .admin-dock span{flex:1;font-size:13px;line-height:1.35}
  .admin-dock a{flex:0 0 auto;padding:10px 15px;border-radius:9px;background:var(--blue);
    color:#fff;font-size:14px;font-weight:800;white-space:nowrap}
  .admin-dock img{width:100%;height:auto;display:block}
  body{padding-bottom:62px}      /* 고정 띠가 마지막 내용을 가리지 않게 */
}

/* 맨 위 띠 — 폰에서는 덧말이 잘린다. 본 문구만 남긴다. */
@media(max-width:560px){
  .notice{padding:0 14px;font-size:12.5px;text-align:center}
  .notice span{display:none}
}

/* 헤더 — 로그인·장바구니가 <button> 이라 아무 데도 안 갔다. <a> 로 바꿨다.
   버튼용 스타일이라 링크에서는 줄 높이를 맞춰줘야 한다. */
.text-button,.cart-button{display:inline-flex;align-items:center;min-height:40px;text-decoration:none}
.cart-button{padding:0 14px}
@media(max-width:900px){
  /* 좁아지면 MY페이지·주문배송은 접는다. 장바구니가 먼저다. */
  .only-wide{display:none}
}

/* 토스트 안 링크 — .toast 는 pointer-events:none 이라 그대로는 못 누른다 */
.toast.show{pointer-events:auto}
.toast-go{margin-left:12px;padding:5px 11px;border-radius:7px;background:rgba(255,255,255,.16);
  color:#fff;font-weight:800;font-size:13.5px;white-space:nowrap}
@media(hover:hover) and (pointer:fine){.toast-go:hover{background:rgba(255,255,255,.26)}}

/* 재고 쪽지 — 실제 옵션 재고에서 온다 */
.product-tag.low{background:#fdf0d9;color:#8a6118}
.product-tag.only{background:#eef1f4;color:#5b6b7a}
.product-tag.sold{background:#efe3e2;color:#9c4a42}

/* 목록 위 프린터 기준 한 줄 — 넷 중 뭘 고를지 모르던 자리 */
.catalog-guide{margin:18px 0 0;padding:13px 16px;border-radius:11px;background:var(--surface);
  display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;font-size:13.5px;color:#46617a}
.catalog-guide b{margin-right:8px;color:var(--ink)}
.catalog-guide a{margin-left:auto;color:var(--blue);font-weight:800;font-size:13px}
@media(max-width:560px){.catalog-guide{flex-direction:column;align-items:flex-start;gap:6px}
  .catalog-guide a{margin-left:0}}

/* 히어로 제목 — 문구를 완결된 문장으로 바꾸면서 길어졌다. 폰에서 세 줄로 넘어가지 않게 */
@media(max-width:560px){.hero h1{font-size:33px;letter-spacing:-.04em}}

/* ── 구현 방식 표시 (impl-tags.js) ─────────────────────────────── */
.impl-tag{position:absolute;top:8px;right:10px;z-index:15;padding:3px 9px;border:0;border-radius:999px;
  font:800 11px/1.4 Pretendard,"Noto Sans KR",sans-serif;letter-spacing:0;color:#fff;cursor:pointer;
  box-shadow:0 2px 6px rgba(16,43,67,.18);white-space:nowrap}
.impl-tag.before{position:relative;top:0;right:auto;display:inline-block;margin:0 0 6px}
.impl-tag.inline{position:relative;top:-2px;right:auto;display:inline-block;margin-left:8px;vertical-align:middle}

.impl-skin{background:#2f8a57}
.impl-code{background:#1769aa}
.impl-policy{background:#c47a12}
.impl-sample{background:#7b8794}
.impl-tag.open:after{content:attr(data-note);position:absolute;top:calc(100% + 6px);right:0;width:260px;
  padding:10px 12px;border-radius:10px;background:#102b43;color:#eaf4fb;font-weight:600;font-size:12.5px;
  line-height:1.6;white-space:normal;text-align:left;box-shadow:0 10px 30px rgba(16,43,67,.25)}
.impl-legend{position:fixed;left:14px;bottom:14px;z-index:40;display:flex;flex-wrap:wrap;align-items:center;gap:6px;
  max-width:calc(100vw - 28px);padding:9px 11px;border-radius:12px;background:rgba(255,255,255,.96);
  box-shadow:0 8px 26px rgba(16,43,67,.18);font-size:12px}
.impl-legend b{margin-right:2px;font-size:12px;color:var(--ink)}
.impl-legend span{padding:3px 8px;border-radius:999px;color:#fff;font-weight:800}
.impl-toggle{margin-left:4px;padding:4px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;
  color:#44607a;font-size:12px;font-weight:800;cursor:pointer}
.impl-off .impl-tag{display:none}
.impl-off .impl-legend span{opacity:.45}
@media(max-width:560px){.impl-legend{bottom:76px}}

/* 설명 풍선 — 오른쪽 위 꼬리표는 왼쪽으로, 글줄·앞줄 꼬리표는 오른쪽으로 펼친다 */
.impl-tag.before.open:after,.impl-tag.inline.open:after{left:0;right:auto}

/* ── 휴대폰 (≤560px) ──────────────────────────────────────────
   히어로: 사진을 글 뒤에 흐리게 깔면 무슨 사진인지 알 수 없다.
   사진을 위에 선명하게 두고, 글은 그 아래에 둔다. */
@media(max-width:560px){
  .hero{min-height:0;background:#f4f9fc}
  .hero-slides{position:relative;height:210px}
  .hero-image{opacity:0;object-position:70% center}   /* 사진 속 롤이 오른쪽에 있다 */
  .hero-image.on{opacity:1}
  .hero-shade{display:none}
  .hero-dots{top:182px;bottom:auto;right:16px}
  .hero-dots button{background:rgba(255,255,255,.6)}
  .hero-dots button.on{background:#fff}
  .hero-content{padding:26px 20px 104px}
  .eyebrow{margin-bottom:10px}
  .hero-copy{font-size:16px;line-height:1.65;max-width:none;margin:14px 0 20px}
  .hero-actions{flex-direction:row;width:auto}
  .hero-actions a{flex:1;min-height:48px;padding:0 12px;font-size:15px}

  /* 상품 카드: 한 화면에 네 개(2열×2행). 원단·규격·가격·담기만 남긴다.
     수량과 원단 쓰임새는 상세에서 고른다. */
  .product-grid{grid-template-columns:1fr 1fr;gap:10px}
  .product-info{padding:10px 10px 11px}
  .product-material{flex-wrap:wrap;gap:4px;font-size:12px}
  .product-info h3{font-size:15px;line-height:1.35;letter-spacing:-.02em;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .qty-box{display:none}
  /* 담기 버튼은 가격 오른쪽의 아이콘으로. 버튼 한 줄(46px)을 아껴야 두 줄이 한 화면에 든다. */
  .product-info{position:relative}
  .product-buy{position:absolute;right:10px;bottom:11px}
  .product-card .add-cart{flex:none;width:40px;height:40px;font-size:0;border-radius:10px;
    background:#1b3f66 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2.5 3.5h3l2.4 11.2a1.5 1.5 0 0 0 1.5 1.2h8.4a1.5 1.5 0 0 0 1.5-1.1l1.7-7.3H6.6'/%3E%3C/svg%3E") center/21px no-repeat}
}

/* 규격 검색: 조건 초기화는 밑줄 글자 대신 연한 버튼, 자주 찾는 규격은 입력칸 바로 아래 */
.reset-button{border:1px solid #d3e3ef;background:#eef5fb;color:var(--blue-dark);text-decoration:none;
  border-radius:9px;padding:8px 13px;font-size:13.5px;font-weight:800;white-space:nowrap}
@media(hover:hover) and (pointer:fine){.reset-button:hover{background:#e1eef8;border-color:#b7d1e5}}
.quick-sizes{flex-wrap:wrap;margin:14px 0 4px;padding-top:14px;border-top:1px solid #edf2f5}
.quick-sizes span{color:#536b7e}
.quick-sizes button{background:#f4f8fb;border-color:#dbe6ee;border-radius:9px;padding:7px 13px;
  font-weight:700;font-variant-numeric:tabular-nums}
@media(max-width:560px){
  .finder-heading{gap:12px}
  .quick-sizes{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;overflow:visible}
  .quick-sizes span{grid-column:1/-1;margin:0 0 2px}
  .quick-sizes button{padding:10px 0;font-size:14.5px}
}
.admin-banner strong,.admin-banner b,.admin-banner h3,.ab-copy strong,.ab-copy b{text-wrap:balance}

/* 좁은 휴대폰(≤400px) 카드: 지관별 매수를 '75mm 11,510장' 대신 '75지관 11,510장' 으로 (예람 확정) */
.q-long,.q-short{font-style:normal}.q-short{display:none}
@media(max-width:400px){.q-long{display:none}.q-short{display:inline}}
