/* =========================================================
   with-order.com 루트 견적의뢰 — 리뉴얼 style.css 위에 덧붙이는 스타일 (2026-11-24)
   style.css 는 리뉴얼 홈페이지 원본 그대로 두고, 이 페이지에만 필요한 것만 여기서
   ========================================================= */

/* ---------- 헤더 (단순 화면): '공공기관 우선구매기업' + 인증 로고 5개 크게 (2026-11-24) ---------- */
.hd-cert { display: flex; align-items: center; gap: 20px; padding-left: 22px; border-left: 1px solid var(--rule); min-width: 0; }
.hd-cert b { font-size: 17px; font-weight: 900; color: var(--navy); letter-spacing: -.03em; white-space: nowrap; }
.hd-cert ul { display: flex; gap: 14px; }
.hd-cert li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hd-cert img { width: 34px; height: 34px; object-fit: contain; }
.hd-cert span { font-size: 11px; font-weight: 700; color: var(--ink-2); white-space: nowrap; letter-spacing: -.03em; }
/* 로고 · 인증 · 상담전화를 한 묶음으로 가로 가운데 정렬 (2026-11-24) */
body[data-layout="simple"] .hd-in { justify-content: center; gap: 28px; }
body[data-layout="simple"] .hd-util { margin-left: 0; padding-left: 28px; border-left: 1px solid var(--rule); height: 44px; }
body[data-layout="simple"] .hd-tel { display: flex; font-size: 22px; }   /* 리뉴얼 CSS 는 1100~1279px 에서 숨김 → 메뉴가 없으니 보이게 */
body[data-layout="simple"] .hd-tel svg { width: 22px; height: 22px; }
@media (max-width: 1099px) {
  body[data-layout="simple"] .hd-in { gap: 18px; }
  body[data-layout="simple"] .hd-util { padding-left: 18px; }
  body[data-layout="simple"] .hd-tel { font-size: 18px; }
  .hd-cert { gap: 14px; padding-left: 16px; }
  .hd-cert b { font-size: 15px; }
  .hd-cert ul { gap: 8px; }
  .hd-cert span { display: none; }
  .hd-cert img { width: 30px; height: 30px; }
}
@media (max-width: 767px) {
  body[data-layout="simple"] .hd-tel { display: none; }
  body[data-layout="simple"] .hd-util { display: none; }
  body[data-layout="simple"] .hd-in { gap: 12px; }
  .hd-cert { gap: 0; padding-left: 12px; border-left: 1px solid var(--rule); }
  .hd-cert b { display: none; }
  .hd-cert ul { gap: 5px; }
  .hd-cert img { width: 28px; height: 28px; }
}
@media (max-width: 374px) {
  .hd-cert img { width: 24px; height: 24px; }
  .hd-cert ul { gap: 3px; }
}

/* ---------- 상단 탭바: '홈페이지' 추가로 7개 → 768~1279px 에서 잘리지 않게 (2026-11-24) ----------
   다 들어가면 가운데 정렬, 넘치면 가로로 밀어서 보기 (첫·끝 탭 auto 여백으로 가운데 정렬 대신) */
body[data-layout="simple"] .tb ul { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
body[data-layout="simple"] .tb ul::-webkit-scrollbar { display: none; }
body[data-layout="simple"] .tb li:first-child { margin-left: auto; }
body[data-layout="simple"] .tb li:last-child { margin-right: auto; }
@media (min-width: 768px) and (max-width: 1279px) {
  body[data-layout="simple"] .tb ul { padding: 0 12px; }
  body[data-layout="simple"] .tb a { padding: 0 12px; font-size: 13.5px; }
}

/* ---------- 헤더 연락처: 상담전화 + 이메일(복사) 위아래 (2026-11-24) ---------- */
body[data-layout="simple"] .hd-util.hd-contact { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; height: 52px; }
body[data-layout="simple"] .hd-contact .hd-tel { line-height: 1.15; }
.hd-mail { display: flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.hd-mail a { display: inline-flex; align-items: center; gap: 6px; }
.hd-mail a:hover { color: var(--navy); }
.hd-mail .ico { width: 16px; height: 16px; color: var(--ribbon); }
.hd-copy, .qhero-copy { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; transition: background .2s, color .2s; }
.hd-copy { color: var(--ink-2); }
.hd-copy:hover { background: var(--paper-2); color: var(--navy); }
.hd-copy .ico, .qhero-copy .ico { width: 15px; height: 15px; }
.hd-copy.is-copied { color: #1B8F5A; }
@media (max-width: 1099px) { .hd-mail { font-size: 12.5px; } }

/* ---------- 히어로: 원페이지 랜딩처럼 가운데 정렬 + 장점 (2026-11-24) ----------
   세로를 줄여 첫 화면(1280×720 이상)에 아래 검색창까지 보이게: PC 제목 한 줄, 장점은 가로형 얇은 카드 */
.qhero { position: relative; margin-top: calc(var(--hd) + var(--tb)); overflow: hidden; background: var(--navy-2); color: #fff; text-align: center; isolation: isolate; }
.qhero-bg { position: absolute; inset: 0; z-index: -2; background: url(img/gen/quote-hero.webp) center / cover no-repeat;   /* 교체용: quote-hero-2.webp */ transform-origin: 50% 50%; animation: qhZoom 20s ease-in-out infinite alternate; will-change: transform; }
/* 천천히 줌인 → 천천히 줌아웃 반복 */
@keyframes qhZoom { from { transform: scale(1); } to { transform: scale(1.14); } }
.qhero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 75% 80% at 50% 45%, rgba(12,46,110,.62) 0%, rgba(12,46,110,.82) 70%, rgba(9,30,72,.92) 100%); }
.qhero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); }
.qhero-in { position: relative; width: 100%; padding-top: clamp(28px, 3.4vw, 44px); padding-bottom: clamp(26px, 3vw, 38px); }
.qhero-eyebrow { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 12px; padding: 5px 16px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-size: 13.5px; color: rgba(255,255,255,.88); animation: svFade .9s var(--ease) .1s both; }
.qhero-eyebrow span { padding: 3px 12px; border-radius: 999px; background: var(--seal); color: #fff; font-weight: 800; }
.qhero h1 { margin-top: 0;   /* 위 배지 삭제(2026-11-24) */ font-size: clamp(34px, 4.2vw, 56px); font-weight: 900; line-height: 1.2; letter-spacing: -.045em; animation: svFade 1s var(--ease) .2s both; }
.qhero h1 em { font-style: normal; background: linear-gradient(100deg, #5FD3FF 0%, #9FE4FF 60%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qhero-desc { margin: 12px auto 0; max-width: 46em; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.65; color: rgba(255,255,255,.86); animation: svFade .9s var(--ease) .35s both; }
.qhero-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; animation: svFade .9s var(--ease) .45s both; }
.qhero-btns .btn { height: 48px; padding: 0 24px; font-size: 15.5px; }
.qhero-mail { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 12px; font-size: 14.5px; color: rgba(255,255,255,.78); animation: svFade .9s var(--ease) .5s both; }
.qhero-mail a { color: #fff; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.qhero-copy { color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.3); }
.qhero-copy:hover { background: rgba(255,255,255,.16); color: #fff; }
.qhero-copy.is-copied { color: #7BE0A6; border-color: #7BE0A6; }
.qhero-copy svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* '상품 검색하고 견적 담기' 버튼: 빨강 → 브랜드 파랑 그라데이션 (2026-11-24) */
.qhero-btns .btn-seal { background: linear-gradient(100deg, #1180BD 0%, #1460B0 100%);   /* 흰 글씨 대비 4.3~6.3 */ color: #fff; border: 0; box-shadow: 0 12px 26px -10px rgba(31,181,236,.7); transition: filter .2s, transform .25s var(--ease), box-shadow .2s; }
.qhero-btns .btn-seal:hover { background: linear-gradient(100deg, #1180BD 0%, #1460B0 100%); filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 16px 30px -10px rgba(31,181,236,.85); }
.qhero-tel { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.06); }
.qhero-tel:hover { background: #fff; color: var(--navy); }
.qhero-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 1080px; margin: 24px auto 0; animation: svFade .9s var(--ease) .6s both; }
.qhero-points li { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 11px 14px; border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.qhero-points i { grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(95,211,255,.18); color: #7FDBFF; }
.qhero-points svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qhero-points b { font-size: 15.5px; font-weight: 900; letter-spacing: -.02em; line-height: 1.3; }
.qhero-points span { font-size: 12.5px; color: rgba(255,255,255,.75); line-height: 1.35; word-break: keep-all; }
/* 검색창을 히어로 바로 아래로 (리뉴얼 sub-body 위 여백 64~104px → 줄임) */
body[data-layout="simple"] .qhero ~ main .sub-body { padding-top: clamp(24px, 3vw, 36px); }
@media (max-width: 1099px) {
  .qhero-points { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
}
/* 세로가 낮은 PC 화면(노트북 1366×657 등)에서도 검색창까지 보이게 여백을 더 줄임 */
@media (min-width: 768px) and (max-height: 700px) {
  .qhero-in { padding-top: 18px; padding-bottom: 18px; }
  .qhero h1 { margin-top: 0; }
  .qhero-btns { margin-top: 14px; }
  .qhero-points { margin-top: 16px; }
  body[data-layout="simple"] .qhero ~ main .sub-body { padding-top: 20px; }
}
@media (max-width: 767px) {
  .qhero-in { padding-top: 18px; padding-bottom: 18px; }
  .qhero-eyebrow { font-size: 12px; padding: 4px 12px 4px 4px; gap: 4px 8px; }
  .qhero-eyebrow span { padding: 3px 10px; }
  .qhero h1 { margin-top: 0; font-size: 30px; }
  .qhero h1 em { display: block; }
  .qhero-desc { margin-top: 8px; font-size: 14px; line-height: 1.55; }
  .qhero-desc br { display: none; }
  .qhero-btns { margin-top: 14px; flex-wrap: nowrap; gap: 8px; }
  .qhero-btns .btn { flex: 1; height: 44px; padding: 0 10px; font-size: 14px; }
  .qhero-points { gap: 6px; margin-top: 14px; }
  .qhero-points li { grid-template-columns: 28px 1fr; column-gap: 7px; padding: 8px 9px; }
  .qhero-points i { width: 28px; height: 28px; }
  .qhero-points svg { width: 15px; height: 15px; }
  .qhero-points b { font-size: 13px; }
  .qhero-points span { display: none; }
  body[data-layout="simple"] .qhero ~ main .sub-body { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .qhero-bg { animation: none; } }

/* ---------- 크롬 확장 프로그램 안내 바 (히어로 아래, 2026-11-24) ---------- */
.cbar { display: block; position: relative; overflow: hidden; background: linear-gradient(90deg, #FFF3C4 0%, #FFE58A 50%, #FFF3C4 100%); border-bottom: 1px solid #F2D267; color: var(--navy); }
.cbar::before { content: ''; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); animation: cbarSweep 3.2s ease-in-out infinite; pointer-events: none; }   /* 바 전체에 빛이 지나감 */
.cbar-in { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; padding-top: 7px; padding-bottom: 7px; }
.cbar-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #FFE58A; animation: cbarBob 2.4s ease-in-out infinite; }
.cbar-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }   /* 장바구니 아이콘 (선) */
.cbar-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
/* 글자 반짝임: 남색 글자 위로 밝은 띠가 계속 지나감 */
.cbar-shine { font-size: clamp(16px, 1.5vw, 19px); font-weight: 900; letter-spacing: -.03em; background: linear-gradient(100deg, #0C2E6E 0%, #0C2E6E 40%, #1FB5EC 50%, #0C2E6E 60%, #0C2E6E 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cbarShine 2.6s linear infinite; }
.cbar-sub { font-size: 14px; font-weight: 700; color: #4A3A00; }
.cbar-sub em { font-style: normal; color: var(--seal); font-weight: 900; }
.cbar-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 20px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 800; box-shadow: 0 0 0 0 rgba(12,46,110,.55); animation: cbarPulse 1.8s ease-out infinite; transition: background .2s; }
.cbar-btn i { font-style: normal; transition: transform .25s var(--ease); }
.cbar:hover .cbar-btn { background: var(--navy-2); }
.cbar:hover .cbar-btn i { transform: translateX(3px); }
.cbar:focus-visible { outline: 3px solid var(--ribbon); outline-offset: -3px; }
@keyframes cbarShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes cbarSweep { 0% { left: -30%; } 60%, 100% { left: 130%; } }
@keyframes cbarPulse { 0% { box-shadow: 0 0 0 0 rgba(12,46,110,.5); } 70% { box-shadow: 0 0 0 12px rgba(12,46,110,0); } 100% { box-shadow: 0 0 0 0 rgba(12,46,110,0); } }
@keyframes cbarBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-8deg); } }
@media (max-width: 767px) {
  .cbar-in { gap: 10px; min-height: 0; padding-top: 8px; padding-bottom: 8px; justify-content: space-between; }
  .cbar-ic { display: none; }
  .cbar-shine { font-size: 14.5px; }
  .cbar-sub { display: none; }
  .cbar-btn { height: 36px; padding: 0 14px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .cbar::before, .cbar-shine, .cbar-btn, .cbar-ic { animation: none; } .cbar-shine { color: var(--navy); background: none; } }

/* ---------- 퀵메뉴 (단순 화면, 2026-11-24) ---------- */
/* PC: 기타상담문의(두 줄) · 홈페이지 · 사무용품 · 판촉물 · 산업용품 + 맨 위로 */
body[data-layout="simple"] .quick a.q-consult { height: auto; min-height: 50px; padding: 8px 0 7px; line-height: 1.2; text-align: center; }
body[data-layout="simple"] .quick a.q-consult span { display: block; margin-top: 2px; }
/* 모바일: 오른쪽 아래 기타상담문의 + 맨 위로만 */
.quick .q-consult-m { display: none; width: 56px; height: 56px; border-radius: 50%; background: var(--seal); color: #fff; align-items: center; justify-content: center; box-shadow: 0 12px 26px -8px rgba(216,53,42,.6); }
.quick .q-consult-m svg { width: 24px; height: 24px; }
@media (max-width: 767px) {
  body[data-layout="simple"] .quick .q-consult-m { display: flex; }
}

/* ---------- 상품 카드 인증 로고: 겹치지 않게 (리뉴얼 CSS 는 -5px 겹침) (2026-11-24) ---------- */
.sh-card .row { flex-wrap: wrap; row-gap: 6px; }
.sh-card .certs { gap: 3px; flex-wrap: nowrap; }
.sh-card .certs img { margin-left: 0; width: 22px; height: 22px; box-shadow: none; background: transparent; border-radius: 0; object-fit: contain; }
@media (max-width: 767px) { .sh-card .certs img { width: 19px; height: 19px; } .sh-card .certs { gap: 2px; } }

/* ---------- 견적함: 상품별 옵션명 입력 (2026-11-24) ---------- */
.cart-list .ci { min-width: 0; }   /* 좁은 화면에서 옵션 칸이 목록 밖으로 넘치지 않게 */
.cart-list .ci-opt { display: flex; align-items: center; gap: 6px; margin-top: 6px; max-width: 420px; }
.cart-list .ci-opt span { flex: none; font-size: 12px !important; font-weight: 800; color: var(--navy) !important; }
.cart-list .ci-opt input { flex: 1; min-width: 0; width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 4px; font-size: 13px; background: #fff; }
.cart-list .ci-opt input:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23,163,221,.2); }
.ref-list .ref-opt { display: inline; margin-left: 6px; font-size: 12px; color: var(--ribbon-2); }

/* 스팸 방지용 숨은 입력칸 */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 견적 의뢰 폼: 이메일 수신 동의 체크 */
.f-field > label.f-check { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.f-check input { width: 18px; height: 18px; accent-color: var(--navy); }

/* 첨부파일 */
.f-file input[type=file] { height: auto !important; padding: 11px 12px !important; font-size: 14px; cursor: pointer; }
.f-file .hint { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }

/* 개인정보 취급방침 (11st 와 같은 전문 + 예/아니오) */
.privacy-box { margin-top: 10px; max-height: 200px; overflow-y: auto; padding: 12px 14px; background: var(--paper-2); border-radius: 4px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.f-privacy .pry { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-weight: 800; color: var(--ink); font-size: 14.5px; }
.f-privacy .chips label { display: inline-block; margin: 0; }
.f-privacy .chips span { height: 36px; padding: 0 18px; }

/* 견적함 상품 요약 아래 참고 합계 */
.fm-sum { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.fm-sum b { color: var(--navy); }
.fm-sum small { display: block; margin-top: 2px; font-size: 12px; }
.fm-ref .ref-list { max-height: 220px; overflow-y: auto; }

/* 접수 완료: 의뢰번호 */
.fm-done .fm-no { display: inline-block; margin-top: 16px; padding: 8px 18px; border-radius: 999px; background: var(--paper-2); font-size: 14px; }
.fm-done .fm-no b { color: var(--navy); font-variant-numeric: tabular-nums; }

/* 알림(견적함에 담았습니다 등)이 아래 견적함 버튼과 겹치지 않게 버튼 위로
   견적함 버튼: PC 아래 24px + 높이 60px / 모바일(767px 이하) 아래 16px + 높이 56px */
.sh-toast { bottom: 100px; max-width: calc(100vw - 32px); text-align: center; white-space: normal; word-break: keep-all; }
@media (max-width: 767px) {
  .sh-toast { bottom: 84px; padding: 12px 20px; font-size: 14.5px; }
}

/* ---------- 모달 팝업 (2026-11-24): 화면 가운데 · 어두운 배경 · 오늘 하루 그만보기 · 닫기 ---------- */
.mpop { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mpop[hidden] { display: none; }
.mpop-dim { position: absolute; inset: 0; background: rgba(6, 18, 44, .72); animation: mpopFade .3s ease both; }
.mpop-box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); animation: mpopIn .4s var(--ease) both; }
.mpop-img { display: block; min-height: 0; flex: 1 1 auto; overflow: hidden; background: #fff; }
.mpop-img img { display: block; width: 100%; height: auto; max-height: calc(100vh - 32px - 52px); max-height: calc(100dvh - 32px - 52px); object-fit: contain; }
.mpop-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 52px; padding: 0 8px 0 16px; background: #1F2733; color: #fff; font-size: 14px; }
.mpop-foot label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.mpop-foot input { width: 18px; height: 18px; accent-color: var(--ribbon); }
.mpop-close { height: 36px; padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-weight: 800; font-size: 14px; }
.mpop-close:hover { background: rgba(255,255,255,.26); }
.mpop-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.mpop-x:hover { background: rgba(0,0,0,.7); }
html.mpop-open, html.mpop-open body { overflow: hidden; }
@keyframes mpopFade { from { opacity: 0; } }
@keyframes mpopIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* 상품 페이지 번호: 휴대폰에서 버튼을 조금 작게, 혹시 넘치면 다음 줄로 (플립5 등 좁은 화면 가로 넘침 방지, shop.js 는 5개씩 표시) */
@media (max-width: 767px) {
  .paging { flex-wrap: wrap; gap: 4px; }
  .paging button { min-width: 36px; height: 36px; }
}
