/* =============================================================================
   TEMO 통합 전산 v2 - 스토어프론트 스타일 (에디토리얼 · 화이트/슬레이트)
   -----------------------------------------------------------------------------
   · index.php / products.php / product.php 세 페이지가 함께 사용합니다.
   · 대리점별 테마색은 페이지에서 :root{--sf-brand: ...} 로 주입합니다.
   · 기존 main.css 는 통신사 계산기 페이지(kt.php ~ hello.php)가 계속 사용하며,
     index.php 는 main.css + 이 파일을 함께 불러옵니다(가전 사은품/후기/지원금 표는
     기존 스크립트(js/script.js)가 그리기 때문). 그래서 이 파일은
     "기존 클래스는 다듬고, 새 화면은 sf- 접두사로 새로 그린다" 는 규칙을 지킵니다.
   ============================================================================= */

:root {
  --sf-brand: #2563eb;
  --sf-brand-dark: #1d4ed8;
  --sf-brand-soft: #eff4ff;
  --sf-ink: #0b1220;
  --sf-ink-2: #1e293b;
  --sf-body: #475569;
  --sf-muted: #7b8794;
  --sf-line: #e6eaf0;
  --sf-line-soft: #f1f4f8;
  --sf-bg: #ffffff;
  --sf-bg-soft: #f7f8fa;
  --sf-bg-tint: #f4f7fc;
  --sf-accent: #ffb703;
  --sf-green: #0ea472;
  --sf-red: #e5484d;
  --sf-radius: 18px;
  --sf-radius-sm: 12px;
  --sf-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .06);
  --sf-shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --sf-wrap: 1320px;   /* 2026-11-26: 본문 상자 1200 -> 1320 (안쪽 1272) */
  --sf-head-h: 72px;
  --sf-font: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

/* main.css 의 하단 고정바 여백을 새 화면에서는 해제 */
body.sf-page {
  background: var(--sf-bg) !important;
  color: var(--sf-ink-2);
  padding-bottom: 0 !important;
  font-family: var(--sf-font);
  -webkit-font-smoothing: antialiased;
}

body.sf-page img { max-width: 100%; }
body.sf-page a { color: inherit; text-decoration: none; }
body.sf-page a:hover { text-decoration: none; }
body.sf-page button { font-family: inherit; cursor: pointer; }

.sf-wrap {
  width: 100%;
  max-width: var(--sf-wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- 공통 글자 */
.sf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sf-brand);
}
.sf-sec { padding: 76px 0; }
.sf-sec--soft { background: var(--sf-bg-soft); }
.sf-sec--tint { background: var(--sf-bg-tint); }
.sf-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.sf-sec-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--sf-ink);
  line-height: 1.28;
  margin: 8px 0 0;
}
.sf-sec-head p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--sf-body);
}
.sf-sec-head .sf-more {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--sf-ink-2);
  border-bottom: 1px solid var(--sf-line);
  padding-bottom: 2px;
}
.sf-sec-head .sf-more:hover { color: var(--sf-brand); border-color: var(--sf-brand); }

/* ------------------------------------------------------------------ 버튼류 */
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--sf-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.sf-btn:hover { transform: translateY(-1px); }
.sf-btn-primary { background: var(--sf-brand); color: #fff; box-shadow: 0 10px 22px rgba(37, 99, 235, .22); }
.sf-btn-primary:hover { background: var(--sf-brand-dark); color: #fff; }
.sf-btn-dark { background: var(--sf-ink); color: #fff; }
.sf-btn-dark:hover { background: #1b263c; color: #fff; }
.sf-btn-ghost { border-color: var(--sf-line); background: #fff; color: var(--sf-ink-2); }
.sf-btn-ghost:hover { border-color: var(--sf-ink); color: var(--sf-ink); }
.sf-btn-smart { background: var(--sf-brand-soft); color: var(--sf-brand); border-color: #dbe6ff; }
.sf-btn-smart:hover { background: #e3ecff; }
.sf-btn-phone { background: var(--sf-ink); color: #fff; }
.sf-btn-phone:hover { background: var(--sf-brand); color: #fff; }
.sf-btn-block { width: 100%; }
.sf-btn-compare {
  border: 1px solid var(--sf-line);
  color: var(--sf-ink-2);
  background: #fff;
  flex: 1;
}
.sf-btn-compare:hover { border-color: var(--sf-brand); color: var(--sf-brand); }
.sf-btn-compare.is-in { background: var(--sf-brand-soft); border-color: var(--sf-brand); color: var(--sf-brand); }

.sf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--sf-line);
  background: #fff;
  color: var(--sf-body);
  font-size: 12.5px;
  font-weight: 700;
  transition: all .15s ease;
}
.sf-chip:hover { border-color: var(--sf-brand); color: var(--sf-brand); background: var(--sf-brand-soft); }
.sf-chip.is-active { background: var(--sf-ink); border-color: var(--sf-ink); color: #fff; }

.sf-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.01em;
  background: var(--sf-line-soft);
  color: var(--sf-body);
  white-space: nowrap;
}
.sf-badge--promo { background: #fff6e0; color: #a26200; }
.sf-badge--reward { background: #eaf7f1; color: #067a54; }
.sf-badge--zero { background: #eef1ff; color: #3b4bd6; }
.sf-badge--mgmt { background: var(--sf-brand-soft); color: var(--sf-brand); }
.sf-badge--best { background: var(--sf-ink); color: #fff; }

/* ----------------------------------------------------------------- 헤더 */
.sf-head {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--sf-line);
}
.sf-head-in {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--sf-head-h);
}
.sf-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.sf-logo img { height: 30px; width: auto; display: block; }
.sf-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.sf-logo-text strong { font-size: 16.5px; font-weight: 800; letter-spacing: -.03em; color: var(--sf-ink); }
.sf-logo-text small { font-size: 10.5px; font-weight: 600; color: var(--sf-muted); letter-spacing: -.01em; }

.sf-nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; }
.sf-nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--sf-body);
  letter-spacing: -.02em;
  transition: color .15s ease, background .15s ease;
}
.sf-nav a:hover { color: var(--sf-ink); background: var(--sf-bg-soft); }
.sf-nav a.is-active { color: var(--sf-ink); }
.sf-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--sf-brand);
}

.sf-head-act { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.sf-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--sf-line); border-radius: 12px; background: #fff; }
.sf-burger span { display: block; width: 16px; height: 2px; margin: 3px auto; background: var(--sf-ink); border-radius: 2px; }

/* ------------------------------------------------------------------ 히어로 */
.sf-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 12% -10%, #eaf1ff 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(900px 380px at 92% 0%, #f3f7ff 0%, rgba(255, 255, 255, 0) 58%),
    #ffffff;
  border-bottom: 1px solid var(--sf-line);
}
.sf-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 52px;
  align-items: center;
  padding: 66px 0 58px;
}
.sf-hero-copy { min-width: 0; }
.sf-hero-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -.045em;
  font-weight: 800;
  color: var(--sf-ink);
}
.sf-hero-copy h1 em {
  font-style: normal;
  color: var(--sf-brand);
  white-space: nowrap;
  background-image: linear-gradient(to top, rgba(37, 99, 235, .16) 0, rgba(37, 99, 235, .16) 18%, transparent 18%);
  padding: 0 2px;
}
.sf-hero-copy p.sf-hero-sub {
  margin: 18px 0 0;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--sf-body);
  max-width: 560px;
}

.sf-hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--sf-line);
}
.sf-hero-stats div { display: flex; flex-direction: column; gap: 3px; }
.sf-hero-stats strong { font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--sf-ink); }
.sf-hero-stats span { font-size: 12.5px; font-weight: 600; color: var(--sf-muted); }

/* 히어로 우측: 인기 상품 미니 카드 */
.sf-hero-side { display: flex; flex-direction: column; gap: 10px; }
.sf-hero-side-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sf-muted);
  margin-bottom: 2px;
}
.sf-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.sf-mini:hover { transform: translateY(-2px); box-shadow: var(--sf-shadow); border-color: #dbe3ee; }
.sf-mini img {
  width: 56px; height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--sf-bg-soft);
  flex: 0 0 auto;
  padding: 4px;
}
.sf-mini-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sf-mini-brand { font-size: 11px; font-weight: 700; color: var(--sf-brand); }
.sf-mini-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sf-ink);
  letter-spacing: -.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-mini-price { font-size: 12.5px; font-weight: 800; color: var(--sf-ink-2); }
.sf-mini-price small { font-weight: 600; color: var(--sf-muted); }

/* --------------------------------------------------------------- 검색바 */
.sf-searchbar { margin-top: 30px; max-width: 640px; min-width: 0; max-width: min(640px, 100%); }
.sf-searchbar-form {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 6px 6px 6px 18px;
  background: #fff;
  border: 1.5px solid var(--sf-ink);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .09);
}
.sf-searchbar-icon { font-size: 19px; color: var(--sf-muted); line-height: 1; }
.sf-searchbar-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--sf-ink);
  outline: none;
}
.sf-searchbar-form input::placeholder { color: #9aa5b1; font-weight: 500; }
.sf-searchbar-submit {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--sf-ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: background .16s ease;
}
.sf-searchbar-submit:hover { background: var(--sf-brand); }

.sf-quickchips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}
.sf-quickchips-label { font-size: 12px; font-weight: 700; color: var(--sf-muted); margin-right: 2px; }

/* -------------------------------------------------------------- 허브 탭 */
.sf-hub-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}
.sf-hub-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--sf-line);
  border-radius: var(--sf-radius);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sf-hub-tab:hover { transform: translateY(-2px); box-shadow: var(--sf-shadow); }
.sf-hub-tab.is-active { border-color: var(--sf-ink); box-shadow: var(--sf-shadow); }
.sf-hub-tab-ico {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sf-bg-soft);
  font-size: 21px;
}
.sf-hub-tab.is-active .sf-hub-tab-ico { background: var(--sf-ink); color: #fff; }
.sf-hub-tab-body { display: flex; flex-direction: column; gap: 3px; }
.sf-hub-tab-body strong { font-size: 16.5px; font-weight: 800; color: var(--sf-ink); letter-spacing: -.03em; }
.sf-hub-tab-body span { font-size: 12.5px; color: var(--sf-muted); font-weight: 600; }
.sf-hub-tab-arrow { margin-left: auto; font-size: 18px; color: var(--sf-muted); }
.sf-hub-panel { display: none; }
.sf-hub-panel.is-active { display: block; }

/* 통신사 타일 */
.sf-carriers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sf-carrier {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: 16px;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.sf-carrier:hover { transform: translateY(-2px); border-color: #cfd8e6; box-shadow: var(--sf-shadow); }
.sf-carrier-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex: 0 0 auto;
  letter-spacing: -.02em;
}
.sf-carrier-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sf-carrier-body strong { font-size: 14.5px; font-weight: 800; color: var(--sf-ink); }
.sf-carrier-body span { font-size: 12px; font-weight: 600; color: var(--sf-muted); }
.sf-carrier-go { margin-left: auto; font-size: 15px; color: var(--sf-muted); }

/* -------------------------------------------------------------- 상품 그리드 */
.sf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.sf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sf-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sf-card:hover { transform: translateY(-3px); box-shadow: var(--sf-shadow); border-color: #dde4ee; }

/* 카드 전체 클릭 — 카드 안 어디를 눌러도 상세로 (2026-11-23) */
.sf-card { position: relative; }
.sf-card-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.sf-card-hit:focus-visible { outline: 2px solid var(--sf-brand); outline-offset: 2px; }
.sf-card-wish, .sf-card-flag, .sf-card-actions { z-index: 2; }
.sf-card-flag { pointer-events: none; }

.sf-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fafbfc 0%, #f3f5f8 100%);
  display: block;
}
.sf-card-media > a { display: block; width: 100%; height: 100%; }
.sf-card-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  mix-blend-mode: multiply;
  transition: transform .28s ease;
}
.sf-card:hover .sf-card-media img { transform: scale(1.035); }
.sf-card-flag {
  position: absolute;
  left: 12px; top: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--sf-ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
}
.sf-card-wish {
  position: absolute;
  right: 12px; top: 12px;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--sf-line);
  background: rgba(255, 255, 255, .94);
  color: var(--sf-body);
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: all .15s ease;
}
.sf-card-wish:hover { border-color: var(--sf-brand); color: var(--sf-brand); }
.sf-card-wish.is-in { background: var(--sf-brand); border-color: var(--sf-brand); color: #fff; }

.sf-card-body { display: flex; flex-direction: column; gap: 7px; padding: 16px 16px 18px; flex: 1; }
.sf-card-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; }
.sf-card-brand { color: var(--sf-brand); }
.sf-card-cat { color: var(--sf-muted); }
.sf-card-cat::before { content: "·"; margin-right: 5px; color: #cbd5e1; }
.sf-card-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -.025em;
  color: var(--sf-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.84em;
}
.sf-card-name:hover { color: var(--sf-brand); }
.sf-card-model { font-size: 11.5px; font-weight: 600; color: var(--sf-muted); letter-spacing: .01em; }
.sf-card-sum {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--sf-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sf-card-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }

.sf-card-price {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--sf-line-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sf-card-price-main { display: flex; align-items: baseline; gap: 3px; }
.sf-card-price-main .sf-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--sf-ink);
}
.sf-card-price-main .sf-unit { font-size: 12.5px; font-weight: 700; color: var(--sf-ink-2); }
.sf-card-price-main .sf-ask { font-size: 16px; font-weight: 800; color: var(--sf-ink-2); }
.sf-card-price-card { font-size: 12px; font-weight: 600; color: var(--sf-muted); }
.sf-card-price-card strong { color: var(--sf-brand); font-weight: 800; }
.sf-card-months { color: var(--sf-muted); }

.sf-card-actions { display: flex; gap: 7px; margin-top: 12px; }
/* 2026-11-29: 「비교 담기」와 「상세 보기」 폭 1:1 통일.
   .sf-btn-compare{flex:1} 만 늘어나 상세 버튼이 내용 폭에 머물던 문제 → 두 버튼 모두 flex:1 1 0(균등 폭).
   오른쪽 「🎤」(.cb-ask-btn--icon)은 chatbot CSS 의 flex:0 0 36px 로 고정 폭을 유지한다. */
.sf-card-actions > .sf-btn { height: 40px; font-size: 13px; border-radius: 10px; padding: 0 12px; flex: 1 1 0; min-width: 0; }

/* 검색 결과용 미니 카드 */
.sf-card--mini .sf-card-media { aspect-ratio: 5 / 3; }
.sf-card--mini .sf-card-body { padding: 12px 13px 14px; gap: 5px; }
.sf-card--mini .sf-card-name { font-size: 13.5px; min-height: 0; -webkit-line-clamp: 2; }
.sf-card--mini .sf-card-price-main .sf-num { font-size: 18px; }
.sf-card--mini .sf-card-actions { margin-top: 8px; }
.sf-card--mini .sf-card-actions .sf-btn { height: 36px; font-size: 12px; }

/* ------------------------------------------------------------------ 모달 */
.sf-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sf-modal.is-open { display: flex; }
.sf-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, .46);
  backdrop-filter: blur(3px);
}
.sf-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--sf-shadow-lg);
  padding: 26px;
  animation: sfPop .22s ease;
}
.sf-modal-card--search { max-width: 780px; }
@keyframes sfPop {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.sf-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sf-modal-head h2 {
  margin: 8px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--sf-ink);
  line-height: 1.32;
}
.sf-modal-x {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--sf-line);
  background: #fff;
  color: var(--sf-body);
  font-size: 14px;
  display: grid;
  place-items: center;
}
.sf-modal-x:hover { background: var(--sf-bg-soft); color: var(--sf-ink); }

.sf-modal-searchform {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 6px 6px 16px;
  border: 1.5px solid var(--sf-ink);
  border-radius: 999px;
  background: #fff;
}
.sf-modal-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--sf-ink);
}
.sf-modal-submit {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--sf-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.sf-modal-submit:disabled { opacity: .6; cursor: progress; }
.sf-quickchips--modal { margin-top: 12px; }

.sf-searchstate { margin-top: 16px; }
.sf-searchstate .sf-hint { font-size: 12.5px; color: var(--sf-muted); line-height: 1.6; }
.sf-searchstate .sf-notice {
  display: flex;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #ffe6ad;
  color: #8a5b00;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
}
.sf-searchstate .sf-parsed { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sf-parsed-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--sf-brand-soft);
  color: var(--sf-brand);
  font-size: 12px;
  font-weight: 800;
}
.sf-parsed-chip--drop { background: #f3f4f6; color: #6b7280; text-decoration: line-through; }

.sf-searchresult { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sf-searchresult .sf-empty { grid-column: 1 / -1; }
.sf-searchfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--sf-line-soft);
  font-size: 12px;
  color: var(--sf-muted);
}
.sf-link-phone { font-weight: 800; color: var(--sf-ink); }

/* ------------------------------------------------------------- 비교 드로어 */
.sf-drawer { position: fixed; inset: 0; z-index: 3100; display: none; }
.sf-drawer.is-open { display: block; }
.sf-drawer-bg { position: absolute; inset: 0; background: rgba(11, 18, 32, .44); backdrop-filter: blur(2px); }
.sf-drawer-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(460px, 100%);
  background: #fff;
  box-shadow: var(--sf-shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  animation: sfSlide .24s ease;
}
@keyframes sfSlide { from { transform: translateX(30px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.sf-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sf-drawer-head h2 { margin: 6px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--sf-ink); }
.sf-compare-body { flex: 1 1 auto; }
.sf-compare-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sf-compare-table th, .sf-compare-table td {
  border-bottom: 1px solid var(--sf-line-soft);
  padding: 9px 6px;
  text-align: center;
  vertical-align: top;
}
.sf-compare-table thead th { padding-bottom: 10px; }
.sf-compare-table tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--sf-muted);
  white-space: nowrap;
  width: 74px;
}
.sf-compare-col { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sf-compare-col img { width: 62px; height: 62px; object-fit: contain; border-radius: 10px; background: var(--sf-bg-soft); }
.sf-compare-col strong { font-size: 12px; font-weight: 800; color: var(--sf-ink); line-height: 1.35; }
.sf-compare-col button {
  border: 0; background: transparent; color: var(--sf-muted);
  font-size: 11px; text-decoration: underline; padding: 0;
}
.sf-compare-vs { font-weight: 800; color: var(--sf-ink); }
.sf-compare-vs.best { color: var(--sf-brand); }
.sf-empty { font-size: 13px; color: var(--sf-muted); line-height: 1.6; padding: 26px 0; text-align: center; }

/* --------------------------------------------------------------- 상담 폼 */
.sf-consult-form { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.sf-consult-form--inline { border-top: 1px solid var(--sf-line); padding-top: 18px; }
.sf-consult-form .sf-form-title { font-size: 14px; font-weight: 800; color: var(--sf-ink); margin-bottom: 2px; }
.sf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sf-consult-form input[type="text"],
.sf-consult-form input[type="tel"],
.sf-consult-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--sf-line);
  border-radius: 11px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--sf-ink);
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sf-consult-form input:focus, .sf-consult-form textarea:focus {
  border-color: var(--sf-brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.sf-consult-form textarea { resize: vertical; min-height: 64px; }
.sf-agree { display: flex; align-items: flex-start; gap: 7px; font-size: 11.5px; color: var(--sf-muted); line-height: 1.5; }
.sf-agree input { margin-top: 2px; }
.sf-form-msg { font-size: 12.5px; font-weight: 700; margin: 0; min-height: 16px; }
.sf-form-msg.ok { color: var(--sf-green); }
.sf-form-msg.err { color: var(--sf-red); }
.sf-modal-foot { margin-top: 14px; font-size: 12px; color: var(--sf-muted); text-align: center; }
.sf-modal-foot a { font-weight: 800; color: var(--sf-ink); }

/* ------------------------------------------------------------ 상담 도우미 */
.sf-helper {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--sf-line);
  border-radius: 20px;
  box-shadow: var(--sf-shadow);
  backdrop-filter: blur(8px);
}
.sf-helper-item {
  position: relative;
  width: 58px;
  padding: 9px 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--sf-ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background .15s ease, color .15s ease;
}
.sf-helper-item:hover { background: var(--sf-bg-soft); color: var(--sf-ink); }
.sf-helper-ico { font-size: 16px; line-height: 1; }
.sf-helper-label { font-size: 10.5px; letter-spacing: -.02em; }
.sf-helper-item--smart { background: var(--sf-brand-soft); color: var(--sf-brand); }
.sf-helper-item--smart:hover { background: #e3ecff; color: var(--sf-brand); }
.sf-helper-item--consult { background: var(--sf-ink); color: #fff; }
.sf-helper-item--consult:hover { background: var(--sf-brand); color: #fff; }
.sf-helper-item--kakao { color: #3c1e1e; }
.sf-helper-count {
  position: absolute;
  top: 4px; right: 7px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--sf-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  display: grid;
  place-items: center;
}

/* --------------------------------------------------------------- 섹션들 */
/* 실시간 접수 현황 (script.js 가 #liveFeedContainer 를 채움) */
.sf-live { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.live-feed-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: 14px;
  font-size: 12.5px;
}
.sf-page .live-feed-card .feed-left { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sf-page .live-feed-card .feed-time-loc { font-size: 11px; color: var(--sf-muted); font-weight: 600; }
.sf-page .live-feed-card .feed-date-badge { color: var(--sf-brand); font-weight: 800; }
.sf-page .live-feed-card .feed-content {
  font-size: 13px;
  font-weight: 700;
  color: var(--sf-ink-2);
  letter-spacing: -.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-page .live-feed-card .feed-status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--sf-bg-soft);
  color: var(--sf-body);
  font-size: 11px;
  font-weight: 800;
}
.sf-page .live-feed-card .feed-status.highlight { background: #eaf7f1; color: #067a54; }
.fade-in-card { animation: sfFade .5s ease; }
@keyframes sfFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* 신뢰 지표 (기존 .trust-* 클래스 다듬기) */
.sf-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sf-page .trust-card {
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: none;
}
.sf-page .trust-card.highlight { background: var(--sf-ink); border-color: var(--sf-ink); }
.sf-page .trust-card .trust-icon { font-size: 22px; margin-bottom: 8px; }
.sf-page .trust-card .label { font-size: 12.5px; font-weight: 700; color: var(--sf-muted); margin-top: 4px; }
.sf-page .trust-card.highlight .label { color: #cbd5e1; }
.sf-page .trust-card .counter { font-size: 40px; font-weight: 800; letter-spacing: -.05em; color: var(--sf-ink); }
.sf-page .trust-card.highlight .counter,
.sf-page .trust-card.highlight .plus,
.sf-page .trust-card.highlight .text-title { color: #fff; }
.sf-page .trust-card .plus { font-size: 20px; font-weight: 800; color: var(--sf-ink); }
.sf-page .trust-card .text-title { color: var(--sf-ink) !important; }

/* 가전 사은품 (script.js 가 그리는 기존 카드 다듬기) */
.sf-page .gift-section-wrap { max-width: var(--sf-wrap); margin: 0 auto; padding: 0 24px; }
.sf-page .gift-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sf-page .gift-card {
  border: 1px solid var(--sf-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 14px !important;
}
.sf-page .gift-card:hover { box-shadow: var(--sf-shadow) !important; border-color: #dbe3ee !important; }
.sf-page .gift-img-box { background: var(--sf-bg-soft) !important; border-radius: 12px !important; }
.sf-page .gift-name { font-size: 13.5px !important; font-weight: 800 !important; color: var(--sf-ink) !important; }
.sf-page .gift-model { font-size: 11.5px !important; color: var(--sf-muted) !important; }
.sf-page .gift-price { font-size: 11.5px !important; color: var(--sf-muted) !important; }

/* 후기 (script.js 가 그리는 기존 카드 다듬기) */
.sf-page .review-section-wrap { max-width: var(--sf-wrap); margin: 0 auto; padding: 0 24px; }
.sf-page .review-track { gap: 16px !important; }
.sf-page .review-card {
  background: #fff !important;
  border: 1px solid var(--sf-line) !important;
  border-radius: var(--sf-radius) !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden;
}
.sf-page .review-img-box { border-radius: 0 !important; aspect-ratio: 4 / 3; background: var(--sf-bg-soft); }
.sf-page .review-img-box img { width: 100%; height: 100%; object-fit: cover; }
.sf-page .review-text { font-size: 13px !important; line-height: 1.68 !important; color: var(--sf-body) !important; padding: 16px 16px 6px !important; }
.sf-page .review-user { font-size: 12px !important; font-weight: 800 !important; color: var(--sf-ink) !important; padding: 0 16px 16px !important; }
.sf-page .review-arrow {
  background: #fff !important;
  border: 1px solid var(--sf-line) !important;
  color: var(--sf-ink) !important;
  border-radius: 999px !important;
  width: 40px !important; height: 40px !important;
}

/* 빠른 상담 CTA */
.sf-cta {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
  padding: 44px;
  border-radius: 26px;
  background: var(--sf-ink);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.sf-cta::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .55) 0%, rgba(37, 99, 235, 0) 70%);
}
.sf-cta h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.035em; margin: 10px 0 0; line-height: 1.32; }
.sf-cta p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.7; color: #cbd5e1; }
.sf-cta .sf-eyebrow { color: #93b4ff; }
.sf-cta-act { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.sf-cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 62px;
  border-radius: 16px;
  background: #fff;
  color: var(--sf-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.sf-cta-phone:hover { background: var(--sf-brand); color: #fff; }
.sf-cta-sub { display: flex; gap: 8px; }
.sf-cta-sub .sf-btn { flex: 1; }

/* ------------------------------------------------------------------ 푸터 */
.sf-foot { background: #0b1220; color: #94a3b8; padding: 52px 0 44px; margin-top: 76px; }
.sf-foot-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; }
.sf-logo--foot strong { color: #fff; font-size: 18px; }
.sf-logo--foot img { height: 30px; filter: brightness(0) invert(1); opacity: .92; }
.sf-foot-brand p { margin: 14px 0 0; font-size: 13px; line-height: 1.7; color: #94a3b8; max-width: 380px; }
.sf-foot-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 12.5px; font-weight: 700; }
.sf-foot-links a { color: #cbd5e1; }
.sf-foot-links a:hover { color: #fff; }
.sf-foot-info p { margin: 0 0 5px; font-size: 12.5px; line-height: 1.75; color: #94a3b8; }
.sf-foot-info strong { color: #e2e8f0; }
.sf-foot-info a { color: #e2e8f0; }
.sf-foot-copy { margin-top: 14px !important; color: #64748b !important; font-size: 11.5px !important; }

/* =============================================================================
   상품 목록 (products.php)
   ============================================================================= */
.sf-page-head { padding: 46px 0 8px; }
.sf-page-head h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.04em; color: var(--sf-ink); margin: 10px 0 0; }
.sf-page-head p { margin: 12px 0 0; font-size: 15px; color: var(--sf-body); max-width: 640px; line-height: 1.7; }
.sf-page-head .sf-searchbar { max-width: 100%; margin-top: 24px; }

.sf-filterbar {
  position: sticky;
  top: var(--sf-head-h);
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sf-line);
  margin-top: 26px;
}
.sf-filterbar-in { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; }
.sf-filter-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sf-filter-label { font-size: 11.5px; font-weight: 800; color: var(--sf-muted); letter-spacing: .04em; margin-right: 4px; }
.sf-filter-sort { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sf-filter-sort select {
  height: 36px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--sf-line);
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sf-ink-2);
  font-family: inherit;
  outline: none;
}
.sf-result-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 16px; }
.sf-result-line strong { font-size: 15px; font-weight: 800; color: var(--sf-ink); }
.sf-result-line .sf-result-total { font-size: 13px; color: var(--sf-muted); font-weight: 600; }

.sf-emptybox {
  padding: 62px 24px;
  text-align: center;
  border: 1px dashed var(--sf-line);
  border-radius: var(--sf-radius);
  background: var(--sf-bg-soft);
}
.sf-emptybox strong { display: block; font-size: 16px; font-weight: 800; color: var(--sf-ink); margin-bottom: 6px; }
.sf-emptybox p { font-size: 13px; color: var(--sf-muted); line-height: 1.6; margin: 0 0 16px; }

.sf-pager { display: flex; justify-content: center; gap: 6px; margin-top: 34px; }
.sf-pager a, .sf-pager span {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sf-line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--sf-ink-2);
}
.sf-pager a:hover { border-color: var(--sf-ink); color: var(--sf-ink); }
.sf-pager .is-active { background: var(--sf-ink); border-color: var(--sf-ink); color: #fff; }

/* =============================================================================
   상품 상세 (product.php)
   ============================================================================= */
.sf-detail { padding: 30px 0 0; }
.sf-crumb { font-size: 12.5px; color: var(--sf-muted); display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.sf-crumb a { color: var(--sf-muted); font-weight: 600; }
.sf-crumb a:hover { color: var(--sf-ink); }
.sf-crumb span.sep { color: #cbd5e1; }

.sf-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sf-detail-media {
  position: relative;
  border: 1px solid var(--sf-line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fafbfc, #f3f5f8);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sf-detail-media img { width: 100%; height: 100%; object-fit: contain; padding: 28px; mix-blend-mode: multiply; }
.sf-detail-flag {
  position: absolute;
  left: 16px; top: 16px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sf-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.sf-detail-info { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.sf-detail-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
.sf-detail-meta .sf-card-brand { color: var(--sf-brand); }
.sf-detail-meta .sf-card-cat { color: var(--sf-muted); }
.sf-detail-info h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.04em; line-height: 1.34; color: var(--sf-ink); margin: 0; }
.sf-detail-sum { font-size: 14.5px; line-height: 1.7; color: var(--sf-body); margin: 0; }
.sf-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.sf-pricebox {
  margin-top: 4px;
  padding: 20px;
  border: 1px solid var(--sf-line);
  border-radius: 18px;
  background: var(--sf-bg-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sf-pricebox-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sf-pricebox-row .label { font-size: 13px; font-weight: 700; color: var(--sf-muted); }
.sf-pricebox-row .value { font-size: 15px; font-weight: 800; color: var(--sf-ink); }
.sf-pricebox-row .value.big { font-size: 30px; letter-spacing: -.05em; }
.sf-pricebox-row .value.card-price { color: var(--sf-brand); }
.sf-pricebox-row .value .unit { font-size: 13px; font-weight: 700; color: var(--sf-ink-2); margin-left: 2px; }
.sf-pricebox-hint { font-size: 11.5px; color: var(--sf-muted); line-height: 1.55; }

.sf-opts { display: flex; flex-direction: column; gap: 12px; }
.sf-opt-group { display: flex; flex-direction: column; gap: 8px; }
.sf-opt-title { font-size: 12.5px; font-weight: 800; color: var(--sf-ink-2); }
.sf-opt-row { display: flex; flex-wrap: wrap; gap: 7px; }
.sf-opt {
  height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--sf-line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--sf-body);
  transition: all .15s ease;
}
.sf-opt:hover { border-color: var(--sf-ink); color: var(--sf-ink); }
.sf-opt.is-active { background: var(--sf-ink); border-color: var(--sf-ink); color: #fff; }
.sf-opt[disabled] { opacity: .45; cursor: not-allowed; }

.sf-detail-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.sf-detail-actions .sf-btn { height: 52px; border-radius: 13px; font-size: 15px; }
.sf-detail-actions-row { display: flex; gap: 8px; }
.sf-detail-actions-row .sf-btn { flex: 1; }
.sf-note { font-size: 11.5px; color: var(--sf-muted); line-height: 1.6; margin: 0; }

/* 상세 탭/본문 */
.sf-detail-body { margin-top: 54px; display: grid; grid-template-columns: 1fr; gap: 18px; }
.sf-panel {
  border: 1px solid var(--sf-line);
  border-radius: 20px;
  padding: 26px;
  background: #fff;
}
.sf-panel h2 { font-size: 18px; font-weight: 800; letter-spacing: -.03em; color: var(--sf-ink); margin: 0 0 16px; }
.sf-spec { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sf-spec th, .sf-spec td { padding: 11px 4px; border-bottom: 1px solid var(--sf-line-soft); text-align: left; }
.sf-spec th { width: 130px; color: var(--sf-muted); font-weight: 700; }
.sf-spec td { color: var(--sf-ink-2); font-weight: 600; }
.sf-html-body { font-size: 14px; line-height: 1.85; color: var(--sf-ink-2); }
.sf-html-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 10px 0; }
.sf-html-body h3 { font-size: 16px; font-weight: 800; margin: 20px 0 8px; color: var(--sf-ink); }
.sf-html-body p { margin: 0 0 10px; }
.sf-html-body table { width: 100%; border-collapse: collapse; }
.sf-html-body td, .sf-html-body th { border: 1px solid var(--sf-line); padding: 8px; }

.sf-inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.sf-inline-form input { grid-column: span 1; }
.sf-inline-form textarea { grid-column: 1 / -1; }
.sf-inline-form .sf-form-msg { grid-column: 1 / -1; }

/* =============================================================================
   기존(script.js) 컴포넌트가 index.php 에서 자연스럽게 보이도록 다듬기
   ============================================================================= */
/* 실시간 지원금 바 */
.sf-page .policy-bar { width: 100%; max-width: var(--sf-wrap); margin: 0 auto; border-radius: 16px; box-shadow: none; }
.sf-page .policy-bar .policy-title { background: var(--sf-ink); }
.sf-page .policy-bar .policy-cta-btn { background: #fff; color: var(--sf-ink); border-radius: 999px; font-weight: 800; }

/* 가전 사은품 신청 박스(기존 인라인 스타일) */
.sf-page #inlineApplyBox { border-radius: 18px !important; border-color: var(--sf-line) !important; box-shadow: none !important; }
.sf-page #inlineApplyBox h3 { color: var(--sf-ink) !important; }

/* 후기 섹션 헤더 */
.sf-page .review-top-title { font-size: 22px !important; font-weight: 800 !important; letter-spacing: -.03em; color: var(--sf-ink) !important; }

/* =============================================================================
   반응형
   ============================================================================= */
@media (max-width: 1120px) {
  .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-hero-in { gap: 34px; }
  .sf-carriers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-page .gift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  /* 2026-11-25: 1fr 은 min-width:auto 라 히어로 내용의 최소 폭(377px)만큼 칸이 벌어져
     360~390 모바일에서 오른쪽이 잘렸다. minmax(0,1fr) 로 칸을 화면 폭에 묶는다. */
  /* 태블릿(561~960)에서 좌우 여백이 0 이 되어 글자가 화면 끝에 붙던 것도 함께 바로잡는다 */
  .sf-hero-in { grid-template-columns: minmax(0, 1fr); padding: 48px 24px 44px; }
  .sf-hero-side { display: none; }
  .sf-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .sf-detail-media { aspect-ratio: 4 / 3; }
  .sf-cta { grid-template-columns: 1fr; padding: 32px; }
  .sf-foot-in { grid-template-columns: 1fr; gap: 26px; }
  .sf-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-live { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --sf-head-h: 64px; }
  .sf-nav {
    position: fixed;
    left: 0; right: 0; top: var(--sf-head-h);
    z-index: 119;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--sf-line);
    box-shadow: 0 18px 30px rgba(15, 23, 42, .08);
    display: none;
  }
  .sf-nav.is-open { display: flex; }
  .sf-nav a { padding: 13px 12px; font-size: 15px; border-radius: 12px; }
  .sf-nav a.is-active::after { display: none; }
  .sf-nav a.is-active { background: var(--sf-brand-soft); color: var(--sf-brand); }
  .sf-burger { display: block; }
  .sf-head-act .sf-btn-phone { display: none; }
  .sf-head-act .sf-btn-smart { height: 40px; padding: 0 13px; font-size: 12.5px; }
  .sf-sec { padding: 56px 0; }
  .sf-sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sf-hub-tabs { grid-template-columns: 1fr; }
  .sf-grid, .sf-page .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-searchresult { grid-template-columns: 1fr; }
  .sf-filterbar { position: static; }
  .sf-filter-sort { margin-left: 0; width: 100%; }
  .sf-filter-sort select { flex: 1; }

  /* 상담 도우미: 모바일 하단 바 */
  .sf-helper {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
  .sf-helper-item { width: auto; flex: 1; padding: 7px 2px; border-radius: 12px; }
  .sf-helper-ico { font-size: 17px; }
  .sf-helper-label { font-size: 10px; }
  .sf-helper-label br { display: none; }
  body.sf-page { padding-bottom: 74px !important; }
  .sf-foot { margin-top: 56px; padding-bottom: 84px; }
}

@media (max-width: 560px) {
  .sf-wrap { padding: 0 16px; }
  .sf-hero-copy h1 { font-size: 30px; }
  .sf-hero-copy p.sf-hero-sub { font-size: 14.5px; }
  .sf-searchbar-form { height: 54px; padding-left: 14px; }
  .sf-searchbar-submit { padding: 0 14px; font-size: 12px; }
  .sf-hero-stats { gap: 18px; }
  .sf-hero-stats strong { font-size: 17px; }
  .sf-carriers { grid-template-columns: 1fr; }
  .sf-grid, .sf-page .gift-grid { grid-template-columns: 1fr; }
  .sf-modal { padding: 10px; align-items: flex-end; }
  .sf-modal-card { border-radius: 20px 20px 12px 12px; padding: 20px; max-height: 92vh; }
  .sf-drawer-panel { width: 100%; border-radius: 20px 20px 0 0; }
  .sf-trust { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sf-page .trust-card { padding: 20px 12px; }
  .sf-page .trust-card .counter { font-size: 30px; }
  .sf-cta { padding: 26px 20px; border-radius: 20px; }
  .sf-cta-phone { height: 54px; font-size: 19px; }
  .sf-inline-form { grid-template-columns: 1fr; }
  .sf-panel { padding: 20px 16px; }
}

/* =============================================================================
   기존 지원금 비교표(js/script.js) 필터 버튼 다듬기 — 속도/통신사 탭
   ============================================================================= */
.sf-page .filter-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sf-line);
  background: #fff;
  color: var(--sf-body);
  font-size: 12.5px;
  font-weight: 700;
  transition: all .15s ease;
}
.sf-page .filter-btn:hover { border-color: var(--sf-ink); color: var(--sf-ink); background: #fff; }
.sf-page .filter-btn.active {
  background: var(--sf-ink);
  border-color: var(--sf-ink);
  color: #fff;
}

.sf-page .top-benefit-summary-wrap { margin-bottom: 20px; }

/* 지원금 비교표 감싸기 */
.sf-page .policy-table-responsive { border-radius: 16px; overflow: auto; }
.sf-page .policy-table-wrap,
.sf-page .policy-dynamic-table-wrap { border-radius: 16px; }

/* =============================================================================
   부업 파트너 모집 섹션 (#partnerSection)
   -----------------------------------------------------------------------------
   · 기존 루트 index.php(부업 랜딩)의 수익 정책·진행 절차를 새 메인 안의
     한 섹션으로 옮기면서 추가한 클래스입니다. (sf- 접두사 체계 유지)
   · 위쪽 기존 규칙과 미디어쿼리는 건드리지 않고 파일 끝에만 덧붙였습니다.
   ============================================================================= */
.sf-partner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  align-items: stretch;
}
.sf-partner-card {
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  padding: 30px;
  box-shadow: none;
}
.sf-partner-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf-partner-pay-item {
  background: var(--sf-bg-soft);
  border: 1px solid var(--sf-line);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
}
.sf-partner-pay-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--sf-muted);
}
.sf-partner-pay-amount {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.15;
  color: var(--sf-ink);
}
.sf-partner-pay-amount small { font-size: 15px; font-weight: 800; margin-left: 2px; }
.sf-partner-lead {
  margin: 20px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--sf-body);
}
.sf-partner-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.sf-partner-list li {
  position: relative;
  padding-left: 21px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--sf-ink-2);
}
.sf-partner-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 0;
  font-weight: 800;
  color: var(--sf-brand);
}
.sf-partner-title {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--sf-ink);
}
.sf-partner-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sf-partner-steps li { display: flex; align-items: flex-start; gap: 12px; }
.sf-partner-steps .num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--sf-brand-soft);
  color: var(--sf-brand);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf-partner-steps strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--sf-ink);
}
.sf-partner-steps .desc {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--sf-body);
}
.sf-partner-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.sf-partner-foot .sf-note { flex: 1 1 260px; min-width: 0; }

@media (max-width: 960px) {
  .sf-partner { grid-template-columns: 1fr; }
  .sf-partner-card { padding: 24px; }
}

@media (max-width: 560px) {
  .sf-partner-card { padding: 20px 16px; }
  .sf-partner-pay-amount { font-size: 25px; }
  .sf-partner-list { grid-template-columns: 1fr; }
  .sf-partner-foot .sf-btn { flex: 1 1 100%; }
  .sf-partner-foot .sf-note { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .sf-partner-pay { gap: 8px; }
  .sf-partner-pay-item { padding: 14px 8px; border-radius: 12px; }
  .sf-partner-pay-label { font-size: 11.5px; }
  .sf-partner-pay-amount { font-size: 22px; margin-top: 6px; }
  .sf-partner-pay-amount small { font-size: 12.5px; }
  .sf-partner-lead { font-size: 13.5px; }
  .sf-partner-title { font-size: 15.5px; margin-bottom: 14px; }
  .sf-partner-steps { gap: 12px; }
  .sf-partner-steps strong { font-size: 13.5px; }
  .sf-partner-steps .desc { font-size: 12px; }
}

/* <a> 로 만든 버튼이 본문 링크 색상 규칙(body.sf-page a)에 덮이지 않도록
   부업 섹션 안에서만 색을 다시 잡아 줍니다. */
.sf-partner-foot a.sf-btn-primary,
.sf-partner-foot a.sf-btn-primary:hover { color: #fff; }
.sf-partner-foot a.sf-btn-ghost,
.sf-partner-foot a.sf-btn-ghost:hover { color: var(--sf-ink-2); }

/* ------------------------------------------------------------------
   상담 CTA 버튼 글자색 보정
   body.sf-page a{color:inherit} 특이도가 더 높아 <a> 버튼 글자가
   배경색에 묻히는 문제만 정확히 되돌립니다. */
body.sf-page a.sf-cta-phone { color: var(--sf-ink); }
body.sf-page a.sf-cta-phone:hover { color: #fff; }
body.sf-page .sf-cta-sub a.sf-btn { color: var(--sf-ink); }
body.sf-page .sf-cta-sub a.sf-btn:hover { color: #fff; }

/* ------------------------------------------------------------------
   링크형 버튼 글자색 보정 (2026-11-21)
   body.sf-page a{color:inherit} 특이도가 더 높아 <a class="sf-btn ...">
   글자가 어두운 배경 위에서 보이지 않는 문제만 되돌립니다. */
body.sf-page a.sf-btn-primary,
body.sf-page a.sf-btn-dark,
body.sf-page a.sf-btn-phone { color: #fff; }
body.sf-page a.sf-btn-primary:hover,
body.sf-page a.sf-btn-dark:hover,
body.sf-page a.sf-btn-phone:hover { color: #fff; }

/* =============================================================================
   2026-11-26 메인 최종 디테일 10건 — 띠배너 · 히어로 롤링 · 신뢰 칩 · LIVE 바 3단
   · 사은품 5탭 · 렌탈 더보기 · 비교표 속도 전환/톤다운 · 하단 빠른 신청 바
   ============================================================================= */

/* 작은 라벨 크기 확대(13~14px) + 한글 라벨 */
.sf-page .sf-eyebrow { font-size: 13.5px; letter-spacing: .04em; }

/* 한글 줄바꿈을 어절 단위로 (390px에서 '한 번에'처럼 어색하게 끊기지 않게) */
.sf-page .sf-hero-copy h1,
.sf-page .sf-sec-head h2,
.sf-page .sf-hero-copy p.sf-hero-sub,
.sf-page .sf-sec-head p { word-break: keep-all; }

/* ---------------------------------------------------------------- ① 띠배너 */
.sf-page .sf-rollbar {
  background: #0F172A;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.sf-page .sf-rollbar-view { height: 35px; overflow: hidden; }
.sf-page .sf-rollbar-track { display: flex; flex-direction: column; will-change: transform; }
.sf-page .sf-rollbar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-page .sf-rollbar-item:hover { color: #fff; }

/* ----------------------------------------------------- ② 히어로 인기 롤링 */
.sf-page .sf-hero-in { padding: 54px 0 50px; }
.sf-page .sf-hero-side { gap: 8px; min-width: 0; }
.sf-page .sf-hero-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.sf-page .sf-hero-side-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--sf-ink);
}
.sf-page .sf-hero-side-more {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--sf-brand);
  border-bottom: 1px solid rgba(37, 99, 235, .28);
  padding-bottom: 1px;
}
.sf-page .sf-hero-roll { overflow: hidden; height: 264px; }
.sf-page .sf-hero-roll-track { display: flex; flex-direction: column; gap: 10px; will-change: transform; }
.sf-page .sf-hero-roll-group { display: flex; flex-direction: column; gap: 10px; }
.sf-page .sf-hero-roll-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.sf-page .sf-hero-roll-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #cfd8e3;
  transition: background .2s ease, width .2s ease;
}
.sf-page .sf-hero-roll-dot.is-on { width: 16px; border-radius: 999px; background: var(--sf-brand); }

/* ------------------------------------------------- ③ 허브 제목 오른쪽 칩 */
.sf-page .sf-sec-head--hub { align-items: flex-end; }
.sf-page .sf-trust-chips { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.sf-page .sf-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px 9px 10px;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.sf-page .sf-trust-chip:hover { transform: translateY(-2px); box-shadow: var(--sf-shadow); border-color: #dbe3ee; }
.sf-page .sf-trust-chip-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--sf-brand-soft); font-size: 15px;
}
.sf-page .sf-trust-chip-body { display: flex; flex-direction: column; line-height: 1.2; }
.sf-page .sf-trust-chip-body strong { font-size: 13.5px; font-weight: 800; color: var(--sf-ink); letter-spacing: -.02em; }
.sf-page .sf-trust-chip-body span { font-size: 11.5px; font-weight: 600; color: var(--sf-muted); }

/* ------------------------------------------------------- ④ LIVE 바 3단 */
.sf-page .sf-livebar {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 300px;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sf-shadow);
  min-height: 56px;
  height: 56px;
}
.sf-page .sf-livebar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  padding: 0 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  white-space: nowrap;
}
.sf-page .sf-livebar-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 0 0 rgba(255, 90, 90, .7);
  animation: sfLiveDot 1.6s infinite;
}
@keyframes sfLiveDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 90, .65); }
  70% { box-shadow: 0 0 0 8px rgba(255, 90, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0); }
}
.sf-page .sf-livebar-label-txt { font-size: 14px; font-weight: 800; letter-spacing: .02em; line-height: 1.2; white-space: nowrap; }
.sf-page .sf-livebar-label-txt b { font-weight: 900; }
.sf-page .sf-livebar-label small { display: inline-block; font-size: 10.5px; font-weight: 600; opacity: .82; margin: 0 0 0 7px; white-space: nowrap; }
.sf-page .sf-livebar-label small::before { content: '·'; margin-right: 6px; opacity: .7; }
.sf-page .sf-livebar-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 18px;
  min-width: 0;
}
.sf-page .sf-livebar-slider {
  position: relative;
  display: grid;
  height: 34px;
  flex: 0 1 auto;
  min-width: 0;
}
.sf-page .sf-livebar-item {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  /* 나가는 항목은 짧게 사라지고, 들어오는 항목(.is-on)은 살짝 늦게 떠올라 글자가 겹쳐 보이지 않게 한다 */
  transition: opacity .16s ease, transform .2s ease;
  pointer-events: none;
  white-space: nowrap;
}
.sf-page .sf-livebar-item.is-on {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .32s ease .12s, transform .32s ease .12s;
  pointer-events: auto;
}
.sf-page .sf-livebar-carrier { font-size: 14px; font-weight: 800; color: #334155; letter-spacing: -.02em; }
.sf-page .sf-livebar-amount { font-size: 19px; font-weight: 900; color: #d92d20; letter-spacing: -.03em; }
.sf-page .sf-livebar-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--sf-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.sf-page .sf-livebar-cta:hover { background: var(--sf-brand-dark); }
.sf-page .sf-livebar-badges {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  border-left: 1px solid var(--sf-line-soft);
  background: #fbfcfe;
  overflow: hidden;
  height: 56px;
  min-height: 56px;
}
.sf-page .sf-livebar-badge-track { display: flex; flex-direction: column; width: 100%; will-change: transform; }
.sf-page .sf-livebar-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  flex: 0 0 56px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sf-body);
  white-space: nowrap;
}

/* --------------------------------------------- ⑥ 렌탈 진열 더보기/전체보기 */
.sf-page .sf-shelf-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.sf-page .sf-shelf-actions[hidden] { display: none; }
.sf-page .sf-shelf-more { min-width: 150px; }
.sf-page .sf-shelf-more:disabled { opacity: .55; cursor: default; }
.sf-page .sf-shelf-all { min-width: 150px; }
.sf-page .sf-chip { cursor: pointer; }

/* ------------------------------------------------ ⑦ 사은품 5탭 · 카드 */
.sf-page .sf-gifttabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.sf-page .sf-gifttab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--sf-line);
  background: #fff;
  color: var(--sf-body);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.sf-page .sf-gifttab:hover { border-color: #cbd5e1; color: var(--sf-ink); }
.sf-page .sf-gifttab.is-active { background: var(--sf-ink); border-color: var(--sf-ink); color: #fff; }
.sf-page .sf-gifttab-n {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sf-line-soft);
  color: var(--sf-muted);
}
.sf-page .sf-gifttab.is-active .sf-gifttab-n { background: rgba(255, 255, 255, .18); color: #fff; }

/* 2026-11-29 — 렌탈 슬라이드와 동일한 1줄 가로 슬라이드(PC 4장 + 좌우 화살표, 모바일 스와이프) */
.sf-page .sf-giftslide { position: relative; min-width: 0; }
.sf-page .sf-giftgrid {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sf-page .sf-giftgrid::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sf-page .sf-giftgrid > .sf-giftcard {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}
.sf-page .sf-giftgrid > .sf-giftempty { flex: 1 0 100%; }
.sf-page .sf-giftcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.sf-page .sf-giftcard:hover { transform: translateY(-2px); box-shadow: var(--sf-shadow); border-color: #dbe3ee; }
.sf-page .sf-giftcard-media {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-bottom: 1px solid var(--sf-line-soft);
}
.sf-page .sf-giftcard-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* 2026-11-29 — 카드 이미지·상품명 클릭 = [상품신청] 과 같은 링크 */
.sf-page .sf-giftcard-media > a.sf-giftcard-hit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.sf-page a.sf-giftcard-name { color: var(--sf-ink); text-decoration: none; }
.sf-page a.sf-giftcard-name:hover { text-decoration: underline; }
.sf-page .sf-giftcard-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 15px 16px; flex: 1; }
.sf-page .sf-giftcard-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--sf-ink);
  letter-spacing: -.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.sf-page .sf-giftcard-model {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sf-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-page .sf-giftcard-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--sf-line);
}
.sf-page .sf-giftcard-list { font-size: 12px; font-weight: 600; color: #94a3b8; text-decoration: line-through; }
.sf-page .sf-giftcard-arrow { font-size: 11px; color: #cbd5e1; }
.sf-page .sf-giftcard-pay { font-size: 14.5px; font-weight: 900; color: #d92d20; letter-spacing: -.02em; }
.sf-page .sf-giftcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; padding-top: 12px; }
.sf-page .sf-giftcard-actions .sf-btn { height: 40px; padding: 0 8px; font-size: 13px; }
.sf-page .sf-giftempty {
  grid-column: 1 / -1;
  padding: 40px 16px;
  text-align: center;
  color: var(--sf-muted);
  font-size: 14px;
  background: #fff;
  border: 1px dashed var(--sf-line);
  border-radius: 18px;
}
.sf-page .sf-giftfoot { display: flex; justify-content: center; margin-top: 26px; }
.sf-page .sf-giftfoot .sf-btn { height: 48px; padding: 0 24px; font-size: 14.5px; }

/* --------------------------------------- ⑧ 비교표 — 속도 전환 · 색 톤다운 */
.sf-page .sf-policy-filter { align-items: center; }
.sf-page .speed-block-wrap {
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: 16px;
  padding: 18px 18px 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.sf-page .speed-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sf-page .speed-block-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--sf-ink);
  letter-spacing: -.02em;
}
.sf-page .speed-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-page .speed-tab {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--sf-line);
  background: #fff;
  color: var(--sf-body);
  font-size: 12.5px;
  font-weight: 700;
  transition: all .15s ease;
}
.sf-page .speed-tab:hover { border-color: #94a3b8; color: var(--sf-ink); }
.sf-page .speed-tab.is-on { background: var(--sf-ink); border-color: var(--sf-ink); color: #fff; }
.sf-page .policy-btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  vertical-align: middle;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.sf-page .policy-btn--apply {
  background: var(--sf-brand);
  border: 1px solid var(--sf-brand);
  color: #fff;
  cursor: pointer;
}
.sf-page .policy-btn--apply:hover { background: var(--sf-brand-dark); border-color: var(--sf-brand-dark); }
.sf-page .policy-btn--call {
  margin-left: 5px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: var(--sf-ink-2);
}
.sf-page .policy-btn--call:hover { border-color: var(--sf-ink); color: var(--sf-ink); }
.sf-page .clean-policy-table .carrier-cell { color: #334155; font-weight: 700; }
.sf-page .clean-policy-table th .th-hint {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0;
}
.sf-page .usim-plan-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 132px;
  padding: 7px 30px 7px 10px;
  border: 1.5px solid #94a3b8;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23334155' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--sf-ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.sf-page .usim-plan-select:hover { border-color: var(--sf-ink-2); }
.sf-page .usim-plan-select:focus { outline: 2px solid rgba(37, 99, 235, .3); border-color: var(--sf-brand); }
.sf-page .usim-plan-fixed { font-weight: 600; color: #475569; }

/* ------------------------------------------------- ⑩ 하단 빠른 신청 바 */
.sf-page .sf-quickbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .24s ease;
}
.sf-page .sf-quickbar.is-on { transform: translateY(0); opacity: 1; pointer-events: auto; }
.sf-page .sf-quickbar-in {
  position: relative;
  max-width: var(--sf-wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 46px 11px 20px;
  background: #0F172A;
  color: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 30px rgba(15, 23, 42, .22);
}
.sf-page .sf-quickbar-title { flex: 0 0 auto; font-size: 15px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.sf-page .sf-quickbar-form { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.sf-page .sf-quickbar-form input,
.sf-page .sf-quickbar-form select {
  height: 40px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
}
.sf-page .sf-quickbar-form input { flex: 1 1 0; }
.sf-page .sf-quickbar-form select { flex: 0 0 auto; max-width: 170px; }
.sf-page .sf-quickbar-form input::placeholder { color: rgba(255, 255, 255, .55); }
.sf-page .sf-quickbar-form select option { color: #0b1220; }
.sf-page .sf-quickbar-submit {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--sf-brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
}
.sf-page .sf-quickbar-submit:hover { background: var(--sf-brand-dark); }
.sf-page .sf-quickbar-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1;
}
.sf-page .sf-quickbar-peek {
  display: none;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--sf-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

/* ------------------------------------------------------------- 반응형 */
@media (max-width: 1120px) {
  .sf-page .sf-livebar { grid-template-columns: max-content minmax(0, 1fr) 250px; }
  .sf-page .sf-livebar-label { padding: 0 14px; }
  .sf-page .sf-livebar-main { gap: 14px; padding: 0 14px; }
  .sf-page .sf-livebar-badge { font-size: 11.5px; }
  .sf-page .sf-giftgrid > .sf-giftcard { flex-basis: calc((100% - 32px) / 3); }
}

@media (max-width: 960px) {
  /* 히어로 우측 롤링은 모바일에서도 보여 준다(인기 상품 진입점) */
  .sf-page .sf-hero-side { display: flex; margin-top: 8px; }
  .sf-page .sf-hero-roll-group { gap: 8px; }
  .sf-page .sf-sec-head--hub { align-items: flex-start; }
  .sf-page .sf-trust-chips { justify-content: flex-start; }
  .sf-page .sf-livebar {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
  }
  .sf-page .sf-livebar-label { padding: 0 16px; height: 46px; }
  .sf-page .sf-livebar-main { padding: 12px 16px; gap: 12px; }
  .sf-page .sf-livebar-badges { border-left: 0; border-top: 1px solid var(--sf-line-soft); height: 48px; min-height: 48px; }
  .sf-page .sf-livebar-badge { height: 48px; flex: 0 0 48px; }
  .sf-page .sf-giftgrid > .sf-giftcard { flex-basis: calc((100% - 32px) / 3); }
}

@media (max-width: 860px) {
  .sf-page .sf-rollbar-item { font-size: 11.5px; padding: 0 12px; }
  .sf-page .sf-hero-in { padding: 34px 0 30px; }
  .sf-page .sf-hero-side-title { font-size: 15.5px; }
  .sf-page .sf-quickbar-in {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 40px 10px 12px;
    border-radius: 12px 12px 0 0;
  }
  .sf-page .sf-quickbar-title { display: none; }
  .sf-page .sf-quickbar-peek { display: inline-flex; align-items: center; justify-content: center; }
  .sf-page .sf-quickbar-form { display: none; }
  .sf-page .sf-quickbar.is-open .sf-quickbar-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .sf-page .sf-quickbar.is-open .sf-quickbar-peek { display: none; }
  .sf-page .sf-quickbar-form input { flex: none; width: 100%; }
  .sf-page .sf-quickbar.is-open .sf-quickbar-form select { max-width: none; grid-column: 1 / -1; }
  .sf-page .sf-quickbar.is-open .sf-quickbar-submit { grid-column: 1 / -1; }
  .sf-page .sf-quickbar-close { top: 14px; transform: none; }
  /* 빠른 신청 바가 떠 있는 동안은 하단 상담 도우미를 잠시 내린다(겹침 방지) */
  .sf-page #sfHelper,
  .sf-page .sf-helper { transition: opacity .22s ease, transform .22s ease; }
  body.sf-quick-open .sf-helper { opacity: 0; pointer-events: none; transform: translateY(120%); }
}

@media (max-width: 560px) {
  .sf-page .sf-hero-copy h1 { font-size: 25px; line-height: 1.3; }
  .sf-page .sf-sec-head--hub h2 { font-size: 21px; }
  .sf-page .sf-gifttab { height: 38px; padding: 0 12px; font-size: 12.5px; }
  .sf-page .sf-giftgrid { gap: 12px; }
  .sf-page .sf-giftgrid > .sf-giftcard { flex-basis: 68%; }
  .sf-page .sf-giftcard-body { padding: 12px 13px 14px; }
  .sf-page .sf-giftcard-name { font-size: 12.5px; min-height: 34px; }
  .sf-page .sf-giftcard-pay { font-size: 13px; }
  .sf-page .sf-giftcard-actions .sf-btn { height: 38px; font-size: 12.5px; padding: 0 6px; }
  .sf-page .sf-shelf-actions { flex-direction: column; }
  .sf-page .sf-shelf-actions .sf-btn { width: 100%; }
  .sf-page .speed-block-head { flex-direction: column; align-items: flex-start; }
  .sf-page .sf-livebar-main { flex-wrap: wrap; }
  .sf-page .sf-livebar-amount { font-size: 17px; }
}

/* 비교표 색 톤다운 — main.css 의 통신사별 컬러 바·글자색을 차분하게 덮는다 (2026-11-26) */
.sf-page .speed-block-badge {
  background: none !important;
  color: var(--sf-ink) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.sf-page .policy-table-responsive {
  border: 1px solid var(--sf-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
.sf-page .clean-policy-table td.carrier-cell {
  color: #334155 !important;
  border-left: 0 !important;
  border-right: 1px solid var(--sf-line) !important;
  background: #fbfcfd !important;
  font-weight: 700 !important;
  letter-spacing: -.2px;
}
.sf-page .clean-policy-table .sup-highlight {
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.sf-page .clean-policy-table .usim-highlight {
  color: #d92d20 !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
}
.sf-page .clean-policy-table tr.carrier-group-end td {
  border-bottom: 1px solid var(--sf-line) !important;
  box-shadow: none !important;
}
.sf-page .clean-policy-table tbody tr:hover td { background-color: #fbfcfe !important; }

/* 모바일 비교표 필터 칩 — 통신사명이 두 줄로 끊기거나 활성 칩만 폭을 다 먹지 않게 */
@media (max-width: 860px) {
  .sf-page .sf-policy-filter { align-items: flex-start; }
  .sf-page .sf-policy-filter .filter-btn {
    width: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    letter-spacing: -.02em;
  }
}

/* ==========================================================
   [모바일 전용] 지원금 비교표 카드형 — 폭·버튼 잘림 정리 (2026-11-26)
   1) 카드가 min-width:580px 로 벌어져 오른쪽이 잘리던 문제 → 화면 폭에 맞춤
   2) 마지막 셀의 버튼 감싸개 div / 버튼에 중복 적용되던 폭·여백 → 한 번만
   3) 카드형에서는 좌우 스크롤 안내 문구 숨김
   PC(769px 이상) 레이아웃에는 영향 없음
   ========================================================== */
@media (max-width: 768px) {
  /* 1) 표 최소 폭 해제 — 390px 등 모바일 화면 폭에 정확히 맞춘다 */
  .clean-policy-table {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 2) 좌우 스크롤 안내 바는 카드형에서는 보이지 않게 */
  .policy-table-responsive::before {
    display: none !important;
    content: none !important;
  }

  /* 3) 마지막 셀: 버튼을 감싸는 div 는 폭·여백만 정리 (버튼이 아님) */
  .clean-policy-table td:last-child > div {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 8px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    white-space: normal !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  /* 4) 가입신청·상담문의 버튼만 카드 안쪽 가운데에 나란히 */
  .clean-policy-table td:last-child > div button,
  .clean-policy-table td:last-child > div a {
    display: inline-block !important;
    width: calc(50% - 6px) !important;
    max-width: 150px !important;
    min-width: 0 !important;
    margin: 0 3px !important;
    padding: 11px 6px !important;
    box-sizing: border-box !important;
    font-size: 13.5px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
  }
}

/* =============================================================================
   2026-11-26 — 본문 폭 1320 확장에 따른 상담 도우미 레일 처리
   -----------------------------------------------------------------------------
   · .sf-helper 는 화면 오른쪽에 fixed 로 떠 있는데(폭 76 + 오른쪽 16), 본문이
     1320 이 되면 1500px 미만 화면(노트북 1366 등)에서는 본문 오른쪽 끝을 덮는다.
   · 860px 이하는 원래 하단 바 모드라 그대로 두고, 그 위 ~1499px 에서만 레일을
     숨긴다(헤더 상담신청·전화, 하단 퀵바는 그대로 남는다).
   ============================================================================= */
@media (min-width: 861px) and (max-width: 1499px) {
  .sf-helper { display: none !important; }
}

/* ============================================================================
   2026-11-28 메인 「맞춤 선택」 2탭 개편 + LIVE 전 통신사 우→좌 롤링 (루트 전용)
   · 이 블록은 css/shop.css 안에서만 동작한다 — /v4/ 자산을 새로 가져오지 않는다.
   · 1번 탭(가전 렌탈 구독) = 카테고리별 인기 렌탈 통합, 2번 탭 = 통신사 타일 + 지원금 비교표
   ============================================================================ */

/* 상단 특징 배지 4개 — 맨 앞 '1,300+ 가전 렌탈 비교' */
.sf-page .sf-trust-chip.is-lead {
  border-color: #cfe0ff;
  background: linear-gradient(180deg, #f5f9ff, #ffffff);
}
.sf-page .sf-trust-chip.is-lead .sf-trust-chip-ico { background: #e8f0ff; }
.sf-page .sf-trust-chip.is-lead .sf-trust-chip-body strong { color: var(--sf-brand); }

/* 탭 패널 — 탭이 곧 섹션 제목이므로 안쪽 이중 여백을 걷어낸다 */
.sf-page .sf-hub-panel { padding: 4px 0 0; }
.sf-page .sf-hub-shelf { padding: 0; }
.sf-page .sf-hub-shelf .sf-sec-head--sub { margin-bottom: 18px; align-items: flex-end; }
.sf-page .sf-sec-head--sub h3 {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--sf-ink);
  line-height: 1.3;
  margin: 8px 0 0;
}
.sf-page .sf-sec-head--sub p { margin: 8px 0 0; font-size: 14px; color: var(--sf-body); }

/* 지원금 비교표를 2번 탭 안에 넣을 때 — 공용 섹션(includes/policy_compare_section.php)은 그대로 두고
   이 화면에서만 바깥 여백·배경을 정리한다 */
.sf-page .sf-policy-compare.sf-policy-compare--inpanel {
  padding: 22px 0 0 !important;
  background: none !important;
  border-top: 1px solid var(--sf-line-soft);
  margin-top: 22px;
}
.sf-page .sf-policy-compare--inpanel > .sf-wrap { max-width: none; padding: 0; }

/* 고정(sticky) 헤더가 앵커 제목을 가리지 않게 — 헤더 높이는 css/header-base.css 의 --v4-head-h */
#internetHub, #productShelf, #policyCompareSection, #giftSection, #reviewSection, #consultSection {
  scroll-margin-top: calc(var(--v4-head-h, 133px) + 10px);
}

/* 모바일 — 탭 2개를 세로로 쌓지 않고 2열 세그먼트로 (390px 에서 탭바 높이 214px → 56px 대) */
@media (max-width: 860px) {
  .sf-page .sf-hub-tabs { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
  .sf-page .sf-hub-tab { padding: 11px 12px; gap: 8px; border-radius: 12px; }
  .sf-page .sf-hub-tab-ico { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
  .sf-page .sf-hub-tab-body { min-width: 0; }
  .sf-page .sf-hub-tab-body strong { font-size: 13.5px; line-height: 1.25; word-break: keep-all; }
  .sf-page .sf-hub-tab-body span,
  .sf-page .sf-hub-tab-arrow { display: none; }
  .sf-page .sf-hub-panel { padding-top: 2px; }
  .sf-page .sf-policy-compare.sf-policy-compare--inpanel { padding-top: 18px !important; margin-top: 18px; }
}

/* ---------------------------------------------------------------- LIVE 하단 롤링 */
.sf-page .sf-live-ticker {
  display: flex;
  align-items: center;
  margin-top: 8px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.sf-page .sf-live-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  height: 100%;
  padding: 0 14px;
  background: #f4f7fb;
  border-right: 1px solid var(--sf-line-soft);
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
}
.sf-page .sf-live-ticker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, .5);
  animation: sfLiveDot 1.6s infinite;
}
.sf-page .sf-live-ticker-view {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* 라벨 경계에서 항목이 뚝 끊겨 보이지 않게 왼쪽을 부드럽게 가린다 */
.sf-page .sf-live-ticker-view::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 26px;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 1;
}
.sf-page .sf-live-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: sfTickerMove 26s linear infinite;
  will-change: transform;
}
/* 마우스를 올리거나 키보드 포커스가 닿으면 멈춘다 */
.sf-page .sf-live-ticker:hover .sf-live-ticker-track,
.sf-page .sf-live-ticker:focus-within .sf-live-ticker-track { animation-play-state: paused; }
.sf-page .sf-live-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 24px;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}
.sf-page .sf-live-ticker-item + .sf-live-ticker-item { border-left: 1px solid var(--sf-line-soft); }
.sf-page .sf-live-ticker-carrier { font-size: 12.5px; font-weight: 700; color: #475569; }
.sf-page .sf-live-ticker-amount { font-size: 13px; font-weight: 900; color: #d92d20; letter-spacing: -.02em; }
@keyframes sfTickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .sf-page .sf-live-ticker-track { animation: none; }
}
@media (max-width: 560px) {
  .sf-page .sf-hub-tab-body strong { font-size: 12.5px; }
  .sf-page .sf-live-ticker { height: 36px; }
  .sf-page .sf-live-ticker-label { padding: 0 10px; font-size: 11px; gap: 5px; }
  .sf-page .sf-live-ticker-item { height: 36px; padding: 0 14px; gap: 5px; }
  .sf-page .sf-live-ticker-carrier { font-size: 11.5px; }
  .sf-page .sf-live-ticker-amount { font-size: 12px; }
}

/* ==========================================================================
   2026-11-28  메인 1번 탭 '전체' 기본 보기 — 카테고리 2줄 가로 슬라이드
   · 자동 롤링 없음. PC 는 좌우 화살표(한 번에 보이는 카드만큼 이동),
     모바일은 손가락 스와이프(스크롤 스냅) — 다음 카드가 살짝 걸쳐 보인다.
   ========================================================================== */
.sf-page .sf-shelf-slide {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sf-page .sf-shelf-slide[hidden] { display: none; }
.sf-page .sf-slide-row { position: relative; min-width: 0; }

.sf-page .sf-slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.sf-page .sf-slide-head h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--sf-ink);
}
.sf-page .sf-slide-ico { font-size: 16px; line-height: 1; }
.sf-page .sf-slide-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sf-brand);
  text-decoration: none;
  white-space: nowrap;
}
.sf-page .sf-slide-more:hover { text-decoration: underline; }

.sf-page .sf-slide-wrap { position: relative; min-width: 0; }
.sf-page .sf-slide-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sf-page .sf-slide-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sf-page .sf-slide-track > .sf-card {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}

.sf-page .sf-slide-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--sf-line);
  background: rgba(255, 255, 255, .96);
  color: var(--sf-ink);
  box-shadow: 0 6px 18px rgba(16, 24, 40, .14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
}
.sf-page .sf-slide-nav:hover { background: #fff; }
.sf-page .sf-slide-nav:disabled { opacity: 0; pointer-events: none; }
.sf-page .sf-slide-nav--prev { left: 6px; }
.sf-page .sf-slide-nav--next { right: 6px; }
.sf-page .sf-slide-nav span { transform: translateY(-1px); }

@media (max-width: 1199px) {
  .sf-page .sf-slide-track > .sf-card { flex: 0 0 calc((100% - 32px) / 3); }
}
@media (max-width: 860px) {
  .sf-page .sf-shelf-slide { gap: 22px; }
  .sf-page .sf-slide-head h4 { font-size: 16px; }
  .sf-page .sf-slide-track { gap: 12px; }
  .sf-page .sf-slide-track > .sf-card { flex: 0 0 68%; }
  /* 가전 사은품도 같은 폭(1장 + 다음 카드 살짝) */
  .sf-page .sf-giftgrid > .sf-giftcard { flex-basis: 68%; }
  /* 모바일은 화살표 대신 손가락 스와이프 */
  .sf-page .sf-slide-nav { display: none; }
}
@media (max-width: 420px) {
  .sf-page .sf-slide-track > .sf-card { flex: 0 0 74%; }
  .sf-page .sf-giftgrid > .sf-giftcard { flex-basis: 74%; }
}

/* ============================================================================
   2026-11-29 모바일 UX 보완 — PC(861px 이상)에는 어떤 규칙도 걸리지 않는다.
   ① 가로 흔들림 방지: 다른 페이지(css/rental-20261123.css)는 html·body 에
      overflow-x: clip 을 걸어 두었는데 메인은 그 파일을 부르지 않았다.
      그래서 메인만 화면보다 몇 px 넓게 밀릴 수 있었고, 그 상태에서 고정(fixed)
      챗봇 패널이 좌우로 흔들려 보였다. 같은 값으로 맞춘다.
   ② 히어로 좌우 여백: .sf-page .sf-hero-in 이 padding 좌우를 0 으로 덮고 있어
      제목·검색창이 화면 끝에 붙어 있었다 → 20px 복원.
   ③ 섹션·카드·칩 간격을 한 단계 넓혀 답답함 완화.
   ④ 하단 상담 바: 비교함 숨김(5개) + 「24시 말로 하는 상담」 강조 버튼.
   ========================================================================== */
@media (max-width: 860px) {
  html, body.sf-page { overflow-x: clip; }

  body.sf-page .sf-wrap { padding-left: 20px; padding-right: 20px; }
  .sf-page .sf-hero-in { padding: 32px 20px 30px; }
  .sf-page .sf-sec { padding: 60px 0; }
  .sf-page .sf-quickchips { gap: 8px; margin-top: 16px; }

  /* 하단 상담 바 — 5개 버튼(말로상담·스마트추천·빠른상담·전화·카톡) */
  .sf-page #sfHelper { gap: 5px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .sf-page #sfHelper .sf-helper-item { flex: 1 1 0; min-width: 0; padding: 6px 2px; }
  .sf-page #sfHelper .sf-helper-item[data-sf-open="compare"] { display: none !important; }
  .sf-page #sfHelper .sf-helper-item--chat {
    flex: 1.9 1 0;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e5eff 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(30, 94, 255, .28);
  }
  .sf-page #sfHelper .sf-helper-item--chat .sf-helper-ico { font-size: 15px; color: #fff; }
  .sf-page #sfHelper .sf-helper-item--chat .sf-helper-label { font-size: 0; line-height: 0; }
  .sf-page #sfHelper .sf-helper-item--chat .sf-helper-label::before {
    content: "24시 말로\A하는 상담";
    white-space: pre;
    display: block;
    font-size: 10px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
  }
  .sf-page #sfHelper .sf-helper-label { font-size: 10px; }
  body.sf-page { padding-bottom: 76px !important; }
}

@media (max-width: 560px) {
  body.sf-page .sf-wrap { padding-left: 18px; padding-right: 18px; }
  .sf-page .sf-hero-in { padding: 28px 18px 26px; }
  .sf-page .sf-sec { padding: 52px 0; }
  .sf-page .sf-giftgrid { gap: 12px; }
  .sf-page #sfHelper { gap: 4px; }
  .sf-page #sfHelper .sf-helper-item { padding: 6px 1px; }
  .sf-page #sfHelper .sf-helper-label { font-size: 9.5px; }
  .sf-page #sfHelper .sf-helper-item--chat .sf-helper-label::before { font-size: 9.5px; }
}

/* ============================================================================
   2026-11-29 — 모바일 카드 버튼 줄: 오른쪽 「🎤」 원형 버튼(.cb-ask-btn--icon)이
   카드 오른쪽 밖으로 밀려 잘리던 문제 보정.
   · .sf-btn 은 white-space: nowrap + min-width: auto 라서, 좁은 화면(320~390px)에서
     두 버튼의 최소 폭 합이 카드 폭을 넘으면 🎤 가 오른쪽으로 밀리고 카드의
     overflow: hidden 에 잘렸다(320px 실측 +4px, 사은품 카드 +11px).
   · 버튼은 flex: 1 1 0 / min-width: 0 으로 줄어들게 하고 🎤 는 고정 폭으로 남긴다.
   · 사은품 카드는 3칸(minmax(0,1fr) 2개 + 🎤 32px) 그리드로 폭을 확정한다.
   ========================================================================== */
@media (max-width: 640px) {
  .sf-page .sf-card-actions { gap: 6px; }
  .sf-page .sf-card-actions .sf-btn {
    flex: 1 1 0; min-width: 0;
    padding: 0 8px; font-size: 12.5px;
    overflow: hidden; text-overflow: ellipsis;
  }
  .sf-page .sf-card-actions .cb-ask-btn--icon {
    flex: 0 0 34px; width: 34px; height: 34px; min-height: 34px;
    margin-left: 0; padding: 0;
  }
  .sf-page .sf-giftgrid .sf-giftcard-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
    gap: 6px; padding-top: 10px;
  }
  .sf-page .sf-giftgrid .sf-giftcard-actions .sf-btn {
    min-width: 0; padding: 0 6px; font-size: 12.5px;
    overflow: hidden; text-overflow: ellipsis;
  }
  .sf-page .sf-giftgrid .sf-giftcard-actions .cb-ask-btn--icon {
    width: 32px; height: 32px; min-height: 32px; flex: 0 0 32px;
    margin-left: 0; padding: 0;
  }
}
@media (max-width: 380px) {
  .sf-page .sf-card-actions .sf-btn,
  .sf-page .sf-giftgrid .sf-giftcard-actions .sf-btn { font-size: 11.5px; padding: 0 5px; }
}

/* 2026-11-30: 이름 유사 검색 후보(오타 제안) — 0건 화면·스마트 추천 모달 공용 */
.sfz-box {
  grid-column: 1 / -1;
  margin: 14px 0 4px; padding: 14px 16px;
  border: 1px solid #dbe6f7; border-radius: 14px;
  background: #f8fbff; text-align: left;
}
.sfz-title { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #173a86; }
.sfz-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sfz-item {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
  padding: 9px 11px; border-radius: 10px;
  background: #fff; border: 1px solid #e6eefc;
}
.sfz-name { font-size: 14px; font-weight: 600; color: #1e293b; text-decoration: none;
  overflow-wrap: anywhere; word-break: break-word; }
.sfz-name:hover, .sfz-name:focus { text-decoration: underline; }
.sfz-meta { font-size: 12px; color: #64748b; }
.sfz-note { margin: 8px 0 0; font-size: 12px; color: #94a3b8; }
@media (max-width: 640px) {
  .sfz-box { padding: 12px; }
  .sfz-name { font-size: 13.5px; }
}

/* ===========================================================================
   화면 이미지 보호 (2026-12-01 신규)
   우클릭·길게 눌러 저장, 이미지 드래그를 막는다. 텍스트 선택·입력칸·버튼 클릭에는 영향 없음.
   동작(이벤트 차단)은 js/img-protect-20261201.js 가 맡는다.
   =========================================================================== */
img,
picture img,
a img,
.product-card img,
.rental-card img,
.gift-card img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}
img::selection { background: transparent; }
/* END IMG_PROTECT */