/* ============================================================================
 * 가전 사은품 전용 페이지 — 2026-11-25 신설
 *   · products.php?service=gift (목록)  /  gift_detail.php (상세·바로 개통)
 *   · 사이트 공통 톤(파랑 #2563eb · 회색 #0f172a/#64748b)에 맞춘 카드형 목록
 *   · PC: 왼쪽 목록 + 오른쪽 고정 신청 박스 / 모바일: 아래 고정 바
 * ========================================================================== */

.gl-page { background: #f5f7fb; }
.gl-main { padding: 22px 0 80px; }

/* ---------- 머리 ---------- */
.gl-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #94a3b8; margin: 0 0 12px; }
.gl-crumb a { color: #64748b; text-decoration: none; }
.gl-crumb a:hover { color: #2563eb; }
.gl-crumb strong { color: #334155; font-weight: 700; }

.gl-head { padding-top: 6px; }
.gl-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.gl-head h1 { margin: 0 0 8px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; }
.gl-head p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #64748b; }
.gl-head__stat { flex: 0 0 auto; text-align: right; color: #64748b; font-size: 13px; }
.gl-head__stat strong { display: block; font-size: 26px; font-weight: 800; color: #2563eb; line-height: 1.1; }
/* 2026-11-29: 제목·부제 줄 오른쪽 끝에 「말로 하는 상담」 + 상품 수를 세로로 묶는다 */
.gl-head__side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* ---------- 통신사 탭 ---------- */
.gl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.gl-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px;
  border: 1px solid #dbe3ef; background: #fff; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; color: #334155; text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.gl-tab span { font-size: 12px; font-weight: 700; color: #94a3b8; }
.gl-tab:hover { border-color: #93b4f6; color: #2563eb; }
.gl-tab.is-active { background: #2563eb; border-color: #2563eb; color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.22); }
.gl-tab.is-active span { color: #c7d9ff; }

/* ---------- 본문 배치 ---------- */
.gl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 22px; align-items: start; }

/* ---------- 툴바 ---------- */
.gl-toolbar { background: #fff; border: 1px solid #e6ebf3; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.gl-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.gl-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px;
  border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; color: #475569; text-decoration: none;
}
.gl-chip span { font-size: 11.5px; font-weight: 700; color: #94a3b8; }
.gl-chip:hover { border-color: #b9cdf5; color: #2563eb; background: #f2f6ff; }
.gl-chip.is-active { background: #eaf1ff; border-color: #2563eb; color: #1d4ed8; }
.gl-chip.is-active span { color: #2563eb; }

.gl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.gl-search { display: flex; gap: 6px; flex: 1 1 260px; min-width: 220px; }
.gl-search__box {
  display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0;
  border: 1px solid #dbe3ef; border-radius: 10px; padding: 0 12px; background: #fff;
}
.gl-search__box svg { width: 17px; height: 17px; color: #94a3b8; flex: 0 0 auto; }
.gl-search__box input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; height: 40px;
  font-size: 14px; color: #0f172a; background: transparent; font-family: inherit;
}
.gl-search__btn {
  flex: 0 0 auto; border: 0; border-radius: 10px; padding: 0 16px; height: 42px;
  background: #0f172a; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.gl-search__btn:hover { background: #1e293b; }

.gl-sort { display: inline-flex; border: 1px solid #dbe3ef; border-radius: 10px; overflow: hidden; background: #fff; }
.gl-sort__btn { padding: 9px 13px; font-size: 13px; font-weight: 700; color: #64748b; text-decoration: none; white-space: nowrap; }
.gl-sort__btn + .gl-sort__btn { border-left: 1px solid #e6ebf3; }
.gl-sort__btn:hover { color: #2563eb; background: #f8fafc; }
.gl-sort__btn.is-active { background: #eaf1ff; color: #1d4ed8; }

.gl-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #64748b; }
.gl-active > span { font-weight: 700; color: #94a3b8; }
.gl-active a {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px;
  background: #eef2f9; border-radius: 8px; color: #334155; text-decoration: none; font-weight: 700;
}
.gl-active a:hover { background: #e2e8f0; }
.gl-active__reset { background: transparent !important; color: #2563eb !important; }

/* ---------- 카드 목록 ---------- */
.gl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gl-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e6ebf3; border-radius: 14px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.gl-card:hover { border-color: #bdd0f2; box-shadow: 0 10px 24px rgba(15,23,42,.08); transform: translateY(-2px); }
.gl-card.is-picked { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.18); }
.gl-card__link { display: block; padding: 12px 12px 0; color: inherit; text-decoration: none; flex: 1 1 auto; }
.gl-card__img {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; background: #f7f9fc; border-radius: 10px; overflow: hidden; margin-bottom: 10px;
}
.gl-card__img img { width: 100%; height: 100%; object-fit: contain; }
.gl-card__noimg { font-size: 12px; color: #94a3b8; }
.gl-card__cat {
  position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 7px;
  background: rgba(15,23,42,.72); color: #fff; font-size: 10.5px; font-weight: 700;
}
.gl-card__badge {
  position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 999px;
  background: #2563eb; color: #fff; font-size: 10.5px; font-weight: 800;
}
.gl-card__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13.5px; font-weight: 700; line-height: 1.45; color: #0f172a; min-height: 39px;
}
.gl-card__model { display: block; margin-top: 3px; font-size: 11.5px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 10px 12px 12px; flex-wrap: nowrap; }
.gl-card__price { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gl-card__price s { font-size: 11px; color: #a3aebf; }
.gl-card__price b { font-size: 14px; font-weight: 800; color: #0f172a; letter-spacing: -0.01em; white-space: nowrap; }
.gl-card__price em { font-style: normal; font-size: 11px; font-weight: 800; color: #e11d48; white-space: nowrap; }
.gl-card__pick {
  flex: 0 0 auto; padding: 7px 11px; border-radius: 9px; border: 1px solid #2563eb;
  background: #fff; color: #2563eb; font-size: 12.5px; font-weight: 800; text-decoration: none;
}
.gl-card__pick:hover { background: #2563eb; color: #fff; }
.gl-card.is-picked .gl-card__pick { background: #2563eb; color: #fff; }

/* ---------- 페이지 번호 ---------- */
.gl-pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 24px 0 4px; flex-wrap: wrap; }
.gl-pager a, .gl-pager span {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; color: #475569;
  font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.gl-pager a:hover { border-color: #93b4f6; color: #2563eb; }
.gl-pager .is-active { background: #2563eb; border-color: #2563eb; color: #fff; }
.gl-pager .is-ellipsis { border: 0; background: transparent; color: #94a3b8; }

.gl-empty { text-align: center; background: #fff; border: 1px solid #e6ebf3; border-radius: 16px; padding: 48px 20px; }
.gl-empty strong { display: block; font-size: 17px; color: #0f172a; margin-bottom: 6px; }
.gl-empty p { margin: 0 0 16px; color: #64748b; font-size: 14px; }

/* ---------- 버튼 ---------- */
.gl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 14px; border-radius: 11px; border: 1px solid transparent;
  font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; font-family: inherit;
  line-height: 1.2;
}
.gl-btn--primary { background: #2563eb; color: #fff; border-color: #2563eb; box-shadow: 0 6px 16px rgba(37,99,235,.2); }
.gl-btn--primary:hover { background: #1d4ed8; }
.gl-btn--ghost { background: #fff; color: #1d4ed8; border-color: #2563eb; }
.gl-btn--ghost:hover { background: #f2f6ff; }
.gl-btn--line { background: #f8fafc; color: #475569; border-color: #dbe3ef; }
.gl-btn--line:hover { background: #eef2f9; }
.gl-btn--block { width: 100%; }

/* ---------- 오른쪽 신청 박스 ---------- */
.gl-side { position: sticky; top: 88px; }
.gl-side__card { background: #fff; border: 1px solid #e6ebf3; border-radius: 18px; padding: 18px; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.gl-side__title { margin: 0 0 12px; font-size: 17px; font-weight: 800; color: #0f172a; }
.gl-side__sel { background: #f7f9fc; border: 1px dashed #cfd9e8; border-radius: 12px; padding: 12px; }
.gl-side__sel > span { display: block; font-size: 11.5px; font-weight: 700; color: #94a3b8; margin-bottom: 4px; }
.gl-side__sel strong { display: block; font-size: 14.5px; font-weight: 800; color: #0f172a; line-height: 1.4; }
.gl-side__selinfo { margin-top: 4px; font-size: 12.5px; color: #475569; }
.gl-side__unpick { display: inline-block; margin-top: 6px; font-size: 12px; color: #94a3b8; text-decoration: underline; }
.gl-side__empty { margin: 0; font-size: 13px; color: #94a3b8; line-height: 1.5; }

.gl-side__plan { margin-top: 10px; border: 1px solid #e6ebf3; border-radius: 12px; padding: 10px 12px; }
.gl-side__plan > span { display: block; font-size: 11.5px; font-weight: 700; color: #94a3b8; margin-bottom: 6px; }
.gl-side__plan ul { margin: 0; padding: 0; list-style: none; }
.gl-side__plan li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #334155; padding: 2px 0; }
.gl-side__plan li b { color: #94a3b8; font-weight: 700; }

.gl-side__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.gl-easy { margin-top: 14px; border-top: 1px solid #eef2f7; padding-top: 14px; }
.gl-easy > strong { display: block; font-size: 14px; color: #0f172a; }
.gl-easy > p { margin: 4px 0 10px; font-size: 12px; color: #94a3b8; line-height: 1.5; }
.gl-easy label { display: block; margin-bottom: 8px; }
.gl-easy label > span { display: block; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 4px; }
.gl-easy input[type="text"], .gl-easy input[type="tel"] {
  width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px;
  border: 1px solid #dbe3ef; border-radius: 10px; font-size: 14px; font-family: inherit; color: #0f172a;
}
.gl-easy input:focus { outline: 2px solid #bfd3f9; border-color: #2563eb; }
.gl-easy__agree, .gd-agree { display: flex !important; align-items: flex-start; gap: 8px; margin: 10px 0; font-size: 12px; color: #475569; line-height: 1.5; }
.gl-easy__agree input, .gd-agree input { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto; }
.gl-easy__msg { margin: 8px 0 0; font-size: 12.5px; color: #1d4ed8; min-height: 0; }
.gl-easy__msg.is-error { color: #dc2626; }
.gl-side__note { margin: 14px 0 0; font-size: 11.5px; line-height: 1.7; color: #94a3b8; border-top: 1px solid #eef2f7; padding-top: 12px; }
.gl-side__note a { color: #2563eb; }

/* ---------- 모바일 하단 바 ---------- */
.gl-mbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid #e6ebf3; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(15,23,42,.08); gap: 8px; align-items: center;
}
.gl-mbar__txt { flex: 1 1 auto; min-width: 0; }
.gl-mbar__txt span { display: block; font-size: 10.5px; color: #94a3b8; font-weight: 700; }
.gl-mbar__txt strong { display: block; font-size: 12.5px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-mbar .gl-btn { padding: 9px 12px; font-size: 13px; }
/* 2026-12-01 — 하단 바 버튼 이름이 [신청하기]로 바뀌면서 390px 폭에서 글자가 두 줄로
   접혔다. 두 버튼은 한 줄로 고정하고, 남는 폭은 왼쪽 상품명(.gl-mbar__txt)이 줄어든다. */
.gl-mbar .gl-btn { white-space: nowrap; flex: 0 0 auto; }

/* ============================================================================
 * 상세·바로 개통 (gift_detail.php)
 * ========================================================================== */
.gd-main { padding-bottom: 80px; }
.gd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 26px; align-items: start; margin-top: 6px; }
.gd-title { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; line-height: 1.3; }
.gd-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; font-size: 12.5px; color: #64748b; }
.gd-badge { padding: 4px 9px; border-radius: 999px; background: #eaf1ff; color: #1d4ed8; font-weight: 800; }
.gd-model, .gd-code { color: #94a3b8; }

.gd-pricebar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid #e6ebf3; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px;
}
.gd-pricebar__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.gd-pricebar__main s { margin: 0; white-space: nowrap; }
.gd-pricebar__main s { font-size: 13px; color: #a3aebf; }
.gd-pricebar__main strong { font-size: 24px; font-weight: 800; color: #0f172a; }
.gd-pricebar__usim { font-size: 13px; color: #475569; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 10px; padding: 6px 10px; }
.gd-pricebar__usim b { color: #e11d48; font-size: 15px; }
.gd-pricebar__usim em { font-style: normal; display: block; font-size: 11.5px; font-weight: 800; color: #e11d48; }

.gd-hero { margin: 0 0 18px; background: #fff; border: 1px solid #e6ebf3; border-radius: 16px; padding: 16px; text-align: center; }
.gd-hero img { max-width: 100%; max-height: 460px; object-fit: contain; }

.gd-detail { background: #fff; border: 1px solid #e6ebf3; border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.gd-detail h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #0f172a; }
.gd-detail img { display: block; max-width: 100%; margin: 0 auto 10px; height: auto; }

.gd-notice { background: #f8fafc; border: 1px solid #e6ebf3; border-radius: 14px; padding: 14px 16px; font-size: 13px; color: #475569; line-height: 1.7; }
.gd-notice strong { display: block; margin-bottom: 6px; color: #0f172a; }
.gd-notice ul { margin: 0; padding-left: 18px; }

.gd-right { position: sticky; top: 88px; }
/* 접수 폼이 화면보다 길어도 아래 칸까지 닿도록 — 오른쪽 칸 안에서만 스크롤 */
@media (min-width: 1025px) {
  .gd-right { max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 6px; }
  .gd-right::-webkit-scrollbar { width: 8px; }
  .gd-right::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
}
.gd-order { background: #fff; border: 1px solid #e6ebf3; border-radius: 18px; padding: 18px; box-shadow: 0 12px 34px rgba(15,23,42,.08); }
.gd-order__title { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #0f172a; }
.gd-summary { margin: 0 0 12px; padding: 0; list-style: none; border: 1px solid #eef2f7; border-radius: 12px; overflow: hidden; }
.gd-summary li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 13px; }
.gd-summary li + li { border-top: 1px solid #f1f5f9; }
.gd-summary li span { color: #94a3b8; font-weight: 700; }
.gd-summary li b { color: #0f172a; font-weight: 700; text-align: right; }
.gd-summary__money { color: #2563eb !important; font-size: 15px !important; }

.gd-summary__gift { background: #f2f6ff; border: 1px solid #d7e3fb; border-radius: 12px; padding: 11px 12px; margin-bottom: 12px; }
.gd-summary__gift > span { display: block; font-size: 11.5px; font-weight: 700; color: #6b8bc9; }
.gd-summary__gift strong { display: block; font-size: 14px; font-weight: 800; color: #0f172a; margin: 2px 0 3px; line-height: 1.4; }
.gd-summary__gift div { font-size: 12.5px; color: #475569; }
.gd-summary__gift div b { color: #1d4ed8; font-size: 14px; }
.gd-summary__gift small { display: block; margin-top: 2px; font-size: 11px; color: #94a3b8; }
.gd-summary__extra { display: inline-block; margin-top: 6px; font-style: normal; font-size: 11.5px; font-weight: 800; color: #e11d48; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 999px; padding: 3px 9px; }

.gd-noplan { background: #f8fafc; border: 1px dashed #cfd9e8; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.gd-noplan strong { display: block; font-size: 13.5px; color: #0f172a; margin-bottom: 4px; }
.gd-noplan p { margin: 0 0 10px; font-size: 12.5px; color: #64748b; line-height: 1.6; }

.gd-order__price {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  padding: 12px 2px; border-top: 1px solid #eef2f7; margin-bottom: 4px;
}
.gd-order__price span { font-size: 13px; color: #475569; font-weight: 700; }
.gd-order__price strong { font-size: 24px; font-weight: 800; color: #0f172a; }
.gd-order__price em { width: 100%; font-style: normal; font-size: 12px; font-weight: 800; color: #e11d48; }

.gd-form { border-top: 1px solid #eef2f7; padding-top: 14px; }
.gd-form__head { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #0f172a; }
.gd-form__head span { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: #94a3b8; }
.gd-field { margin-bottom: 11px; }
.gd-field > label { display: block; font-size: 12.5px; font-weight: 700; color: #334155; margin-bottom: 5px; }
.gd-field > label i { font-style: normal; color: #e11d48; }
.gd-opt { font-weight: 600; color: #94a3b8; }
.gd-field input[type="text"], .gd-field input[type="tel"], .gd-field input[type="date"], .gd-field textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #dbe3ef; border-radius: 10px;
  font-size: 14px; font-family: inherit; color: #0f172a; background: #fff;
}
.gd-field input[readonly] { background: #f8fafc; }
.gd-field input:focus, .gd-field textarea:focus { outline: 2px solid #bfd3f9; border-color: #2563eb; }
.gd-field textarea { resize: vertical; min-height: 62px; line-height: 1.5; }
.gd-field .kp-row { margin-bottom: 6px; }
.gd-field .kp-row + input { margin-top: 6px; }
.gd-field input + input { margin-top: 6px; }
.gd-submit { margin-top: 6px; padding: 14px; font-size: 15px; }
.gd-form__msg { margin: 8px 0 0; font-size: 12.5px; min-height: 0; color: #dc2626; }
.gd-form__call { margin: 10px 0 0; font-size: 11.5px; color: #94a3b8; }
.gd-form__call a { color: #2563eb; font-weight: 700; }
.gd-back {
  display: flex; align-items: center; justify-content: center; margin-top: 14px; padding: 11px;
  border: 1px solid #dbe3ef; border-radius: 11px; color: #475569; font-size: 13px; font-weight: 700; text-decoration: none; background: #fff;
}
.gd-back:hover { border-color: #93b4f6; color: #2563eb; background: #f8fafc; }

.gd-done { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.gd-done strong { display: block; font-size: 16px; color: #047857; margin-bottom: 4px; }
.gd-done p { margin: 0 0 10px; font-size: 13.5px; color: #065f46; line-height: 1.6; }

/* ---------- 반응형 ---------- */
@media (max-width: 1180px) {
  .gl-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .gl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gd-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1024px) {
  .gl-layout, .gd-layout { grid-template-columns: minmax(0, 1fr); }
  .gl-side, .gd-right { position: static; }
  .gl-side__card, .gd-order { box-shadow: none; }
  .gl-mbar { display: flex; }
  .gd-page .gl-mbar { display: none; }
  .gl-main, .gd-main { padding-bottom: 96px; }
  .gl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 2026-11-25 보완: 한 줄로 접히는 화면에서는 '선택하신 조합 + 바로 개통 신청' 폼을
     상세 이미지(최대 12장)보다 위에 둔다 — 바로 개통으로 들어온 고객이 폼까지 스크롤하지 않게 */
  .gd-right { order: -1; }
}
@media (max-width: 720px) {
  .gl-head h1 { font-size: 24px; }
  .gl-head__row { align-items: flex-start; }
  .gl-head__side { align-items: flex-start; gap: 8px; }
  .gl-head__side .cb-starter { order: 2; }
  .gl-head__stat { text-align: right; }
  .gl-head__stat strong { font-size: 20px; }
  .gl-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }  /* 2026-12-01: 2열 → 1열 */
  .gl-card__name { font-size: 12.5px; min-height: 36px; }
  .gl-card__price b { font-size: 13px; }
  .gl-card__pick { padding: 6px 9px; font-size: 12px; }
  .gl-tools { gap: 8px; }
  .gl-search { flex: 1 1 100%; }
  .gl-sort { width: 100%; }
  .gl-sort__btn { flex: 1 1 0; text-align: center; }
  .gd-title { font-size: 21px; }
  .gd-pricebar__main strong { font-size: 20px; }
  /* 2026-11-25 보완: 좁은 카드에서 [선택] 버튼이 부담금 글자 위로 겹치지 않게 줄을 나눈다 */
  .gl-card__foot { flex-wrap: wrap; row-gap: 6px; }
  .gl-card__price { flex: 1 1 100%; }
  .gl-card__pick { margin-left: auto; }
  /* 상세 상단 경로가 긴 상품명에서 글자 단위로 끊기지 않게 */
  .gl-crumb { flex-wrap: wrap; row-gap: 2px; }
  .gl-crumb strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ============================================================================
   상담 도우미(#sfHelper) — 2026-11-27 신설
   ----------------------------------------------------------------------------
   · 렌탈·홈과 같은 상담 도우미 바(스마트 추천 · 비교함 · 빠른 상담 · 전화 · 카톡)를
     이 페이지에도 붙였다. shop.css 의 기본 규칙이
       1500px 이상  → 오른쪽 고정 레일
       861~1499px   → 숨김 (본문 1320 과 겹침)
       860px 이하   → 하단 바
     를 이미 처리하므로, 여기서는 이 페이지에만 있는 것과 겹치지 않게만 맞춘다.
   · 모바일(860px 이하)에는 이 페이지 자체의 하단 바(.gl-mbar: 선택한 사은품·간편 상담·
     요금 계산)가 있어 그 위로 올린다 — 두 바가 겹치지 않는다.
   · 데스크톱에서는 본문 1320 바깥 오른쪽 여백에 서므로 신청 박스(.gl-side)와 겹치지 않는다.
   ========================================================================== */
@media (max-width: 860px) {
  .gl-page #sfHelper {
    bottom: 53px;                 /* = .gl-mbar 높이 (패딩 8+8 + 내용 37) */
  }
  body.gl-page { padding-bottom: 132px !important; }   /* shop.css 의 74px 를 두 바 높이로 */
  .gl-page .gl-main { padding-bottom: 132px; }
  .gl-page .sf-foot { padding-bottom: 152px; }
}

/* ============================================================================
   2026-11-27 — 카드 하단 [비교하기]+[선택] · '빠른 상담' 버튼 글자색
   ========================================================================== */
/* 카드 이미지·이름 영역은 이제 상세로 넘어가지 않고 '선택'과 같은 동작을 한다 */
.gl-card__link { cursor: pointer; }
.gl-card__link:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; border-radius: 10px; }
/* [비교하기]+[선택] 두 버튼이 들어가면서 한 줄에 부담금과 버튼을 같이 두면 부담금이
   잘린다 — 부담금은 윗줄, 버튼은 아랫줄(오른쪽 정렬)로 나눈다. */
.gl-card__foot { flex-wrap: wrap; row-gap: 7px; }
.gl-card__price { flex: 1 1 100%; }
.gl-card__acts { display: flex; align-items: center; gap: 6px; flex: 1 1 100%; justify-content: flex-end; }
.gl-card__cmp {
  flex: 0 0 auto; padding: 7px 10px; border-radius: 9px; border: 1px solid #cbd5e1;
  background: #fff; color: #475569; font-size: 12.5px; font-weight: 800;
  font-family: inherit; line-height: 1.2; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.gl-card__cmp:hover { border-color: #2563eb; color: #2563eb; background: #f2f6ff; }
.gl-card__cmp.is-on,
.gl-card__cmp.is-in { border-color: #0f172a; background: #0f172a; color: #fff; }
.gl-card__pick { font-family: inherit; line-height: 1.2; text-align: center; }

/* 우측 상담 도우미 '빠른 상담' — 검정 배경 위 흰 글씨·아이콘 (shop.css 규칙이 어떤
   페이지 규칙에도 덮이지 않도록 id 로 못 박는다) */
#sfHelper .sf-helper-item--consult { color: #fff !important; }
#sfHelper .sf-helper-item--consult .sf-helper-ico,
#sfHelper .sf-helper-item--consult .sf-helper-label,
#sfHelper .sf-helper-item--consult svg { color: #fff !important; }
#sfHelper .sf-helper-item--consult:hover,
#sfHelper .sf-helper-item--consult:hover .sf-helper-ico,
#sfHelper .sf-helper-item--consult:hover .sf-helper-label,
#sfHelper .sf-helper-item--consult:hover svg { color: #fff !important; }

@media (max-width: 720px) {
  .gl-card__acts { margin-left: auto; }
  .gl-card__pick { margin-left: 0; }
  .gl-card__cmp { padding: 6px 9px; font-size: 12px; }
}

/* ============================================================================
 * 2026-11-29 추가: 모바일 하단 바(.gl-mbar)의 '요금 계산 →'(요금제 선택) 버튼 글씨가
 * 검정으로 보이던 문제만 고친다. 원인은 css/shop.css 의 body.sf-page a { color: inherit }
 * 가 .gl-btn--primary 의 흰 글씨(#fff)를 덮어써 파란 바탕에 검은 글씨가 된 것.
 * 이 버튼 하나에만 흰색을 고정하고, 다른 버튼(.gl-btn--ghost 등)은 건드리지 않는다.
 * ========================================================================== */
.gl-mbar a.gl-btn--primary,
.gl-mbar a.gl-btn--primary:link,
.gl-mbar a.gl-btn--primary:visited,
.gl-mbar a.gl-btn--primary:hover,
.gl-mbar a.gl-btn--primary:focus,
.gl-mbar a.gl-btn--primary:active { color: #ffffff !important; }

/* ============================================================================
 * 2026-11-29 — 카드 하단 버튼 개편
 *   · [비교하기] 삭제. 카드 하단은 [간편 상담] + [바로 상담] 두 개.
 *   · 두 버튼은 폭·높이 1:1 (flex: 1 1 0; min-width: 0; 같은 높이/같은 테두리).
 *   · 오른쪽 끝 🎤(이 상품 물어보기, .cb-ask-btn--icon 36px)가 잘리지 않게
 *     버튼 높이를 36px 로 맞추고, 좁은 화면에서는 34px(🎤 모바일 크기)로 낮춘다.
 * ========================================================================== */
.gl-card__acts { display: flex; align-items: stretch; gap: 6px; justify-content: flex-end; }
.gl-card__easy,
.gl-card__call {
  flex: 1 1 0; min-width: 0; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 6px; margin: 0;
  border: 1px solid #2563eb; border-radius: 9px;
  font-family: inherit; font-size: 12.5px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.01em; white-space: nowrap; text-align: center; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.gl-card__easy { background: #fff; color: #2563eb; }
.gl-card__easy:hover { background: #f2f6ff; }
.gl-card.is-picked .gl-card__easy { background: #eff5ff; }
.gl-card__call { background: #2563eb; color: #fff; }
.gl-card__call:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

/* 2026-12-01 — [바로 상담] 글씨가 전역 `a` 규칙(body.sf-page a { color: inherit }, 특이도
   0-1-1)에 덮여 파란 바탕에 검정 글씨로 보이던 문제. 이 버튼의 모든 상태에서 흰색을
   0-1-0 보다 높은 !important 로 고정한다. (다른 버튼·다른 링크는 건드리지 않는다) */
.gl-card__call,
.gl-card__call:link,
.gl-card__call:visited,
.gl-card__call:hover,
.gl-card__call:focus,
.gl-card__call:active { color: #ffffff !important; }
@media (max-width: 720px) {
  .gl-card__acts { gap: 5px; }
  .gl-card__easy, .gl-card__call { height: 34px; padding: 0 4px; font-size: 11.5px; }
}
@media (max-width: 380px) {
  .gl-card__easy, .gl-card__call { font-size: 11px; padding: 0 3px; }
}

/* ---------- 간편 상담 창 (카드에서 바로 열림) ---------- */
.gl-modal { position: fixed; inset: 0; z-index: 12000; display: none; }
.gl-modal.is-open { display: block; }
.gl-modal__bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .52); }
.gl-modal__card {
  position: relative; top: 50%; transform: translateY(-50%);
  width: min(420px, calc(100vw - 32px)); margin: 0 auto;
  max-height: calc(100vh - 40px); overflow: auto;
  background: #fff; border-radius: 18px; padding: 20px;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .45);
}
.gl-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gl-modal__eyebrow { display: block; font-size: 11.5px; font-weight: 800; color: #2563eb; letter-spacing: .02em; }
.gl-modal__title { margin: 4px 0 0; font-size: 17px; font-weight: 800; color: #0f172a; letter-spacing: -0.01em; }
.gl-modal__x {
  flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: #f1f5f9; color: #475569; font-size: 14px; line-height: 1; cursor: pointer;
}
.gl-modal__x:hover { background: #e2e8f0; color: #0f172a; }
.gl-modal__picked { margin-top: 14px; padding: 10px 12px; border: 1px dashed #cfd9e8; border-radius: 12px; background: #f7f9fc; }
.gl-modal__picked > span { display: block; font-size: 11.5px; font-weight: 700; color: #94a3b8; margin-bottom: 3px; }
.gl-modal__picked strong { display: block; font-size: 13.5px; font-weight: 800; color: #0f172a; line-height: 1.4; }
.gl-modal__picked em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: #475569; }
.gl-modal__body .gl-easy { margin-top: 14px; border-top: 0; padding-top: 0; }
body.gl-modal-open { overflow: hidden; }

/* ============================================================================
 * 2026-12-01 — 가전 사은품 목록: 모바일 카드 1열(한 줄에 1개)
 *   ----------------------------------------------------------------------------
 *   · 720px 이하에서 2열이던 목록을 1열로 바꾼다(위 @media 720px 의 .gl-grid).
 *     카드가 화면 폭을 다 쓰게 되면 세로 카드(정사각 이미지 + 아래 글)는 이미지만
 *     화면만큼 커져 스크롤만 길어진다. 그래서 1열 카드 안은 가로로 —
 *     [이미지 108px | 이름·모델] — 놓고, 부담금과 [신청하기]·[바로 상담]·🎤 줄은
 *     카드 폭 전체로 내린다.
 *   · [신청하기]·[바로 상담] 은 2026-11-29 규칙(flex:1 1 0)을 그대로 써서 1:1,
 *     🎤 는 chatbot CSS 의 34px 크기를 건드리지 않고 세로 가운데만 맞춘다(잘림 0).
 *   · 721px 이상(3열·4열)과 PC 레이아웃은 이 블록의 영향을 받지 않는다.
 * ========================================================================== */
@media (max-width: 720px) {
  /* 카드 안을 [이미지 108px | 이름·모델] 가로 배치로. 이미지는 절대 배치라
     이름·모델이 몇 줄이든 이미지 높이에 영향받지 않고 세로 가운데에 놓인다. */
  .gl-card__link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    padding: 12px 12px 0 132px;
  }
  .gl-card__img {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 108px;
    height: 108px;
    margin: 0;
  }
  .gl-card__name {
    font-size: 14px;
    line-height: 1.45;
    min-height: 0;
    -webkit-line-clamp: 3;
  }
  .gl-card__model {
    margin-top: 4px;
    font-size: 12px;
  }

  .gl-card__foot { padding: 10px 12px 12px; row-gap: 8px; }
  .gl-card__price s { font-size: 11.5px; }
  .gl-card__price b { font-size: 15px; }
  .gl-card__acts { gap: 8px; align-items: center; }
  .gl-card__easy, .gl-card__call { height: 38px; padding: 0 8px; font-size: 13px; }
}
