/* ── 홈 메인 (옆커폰 스타일) ── */
.home-page {
  background: #f4f6f9;
  padding-bottom: 40px;
}

.home-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* 배너 */
.home-banner {
  background: #fff;
  padding: 0 0 4px;
}
.home-banner .banner-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 16px 0 0;
}
.home-banner .btn-banner {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
.home-banner .banner-media {
  height: 100%;
}

/* 프로모 띠배너 */
.home-ticker {
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  color: #fff;
  overflow: hidden;
  margin: 0;
}
.home-ticker-track {
  display: flex;
  width: max-content;
  animation: homeTicker 28s linear infinite;
  gap: 0;
}
.home-ticker-item {
  white-space: nowrap;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.home-ticker-item strong { color: #fde047; }
.home-ticker-dot { opacity: 0.5; margin: 0 4px; }
@keyframes homeTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 퀵 메뉴 */
.home-quick {
  padding: 20px 0 8px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  border: 1px solid #eef2f7;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 91, 255, 0.12);
}
.quick-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.quick-card-icon.phone { background: #eff6ff; }
.quick-card-icon.internet { background: #f0fdf4; }
.quick-card-icon.store { background: #fef3c7; }
.quick-card-icon.consult { background: #fce7f3; }
.quick-card strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.quick-card span {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

/* 섹션 공통 */
.home-section {
  padding: 28px 0 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
}
.section-more {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}
.section-more:hover { color: #1d4ed8; background: #eff6ff; }

/* 매장안내 강조 섹션 */
.home-section-store {
  padding-top: 16px;
}
.section-head-featured h2 {
  font-size: 24px;
}
.store-scroll-featured {
  gap: 18px;
  padding-bottom: 4px;
}
.store-scroll-featured .store-card-home {
  flex: 0 0 300px;
}
.store-scroll-featured .store-card-home .thumb {
  aspect-ratio: 16 / 9;
}
.store-scroll-featured .store-card-home h3 {
  font-size: 17px;
}
.store-scroll-featured .store-card-home p {
  font-size: 13px;
}

/* 전국 휴대폰성지 + 공지사항 2열 */
.home-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.home-split-col {
  min-width: 0;
}
.home-split-col-equal {
  display: flex;
  flex-direction: column;
}
.home-split-panel {
  flex: 1;
  display: flex;
  min-height: 0;
}
.home-split-panel .price-board-card-tall,
.home-split-panel .content-grid-stack {
  flex: 1;
  width: 100%;
  min-height: 0;
}
.content-grid-stack {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: stretch;
}
.content-grid-stack .content-card {
  min-height: 100%;
  height: 100%;
  padding: 0;
}
.content-card-with-thumb {
  padding: 0;
  overflow: hidden;
}
.content-card-thumb {
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
}
.content-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.content-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 14px;
}
.content-card-with-thumb .content-card-body {
  padding: 12px 14px 14px;
}
.price-board-card-tall {
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-sizing: border-box;
}
.price-board-card-tall p {
  margin-top: auto;
}
.price-board-card-tall h3 {
  font-size: 18px;
}
.price-board-card-tall p {
  font-size: 14px;
}

/* 시세표 미리보기 */
.price-board-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eef2f7;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.15s ease;
}
.price-board-card:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1); }
.price-board-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  background: none;
  padding: 0;
}
.price-board-card p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}
.price-board-badge {
  display: inline-block;
  background: #fef2f2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* 매장 가로 스크롤 */
.store-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.store-scroll::-webkit-scrollbar { height: 6px; }
.store-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }

.store-card-home {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eef2f7;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-card-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.store-card-home .thumb {
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}
.store-card-home .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-card-home .thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #94a3b8;
  font-size: 32px;
}
.store-card-home .body { padding: 14px; }
.store-card-home .region {
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 4px;
}
.store-card-home h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
  background: none;
  padding: 0;
}
.store-card-home p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

/* 공지사항 / FAQ 카드 */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.content-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eef2f7;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  min-height: 140px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.content-grid-stack .content-card {
  min-height: 100%;
}
.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.content-card .tag {
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 8px;
}
.content-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  line-height: 1.4;
  background: none;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-card p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-card .meta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 11px;
  color: #9ca3af;
}

/* 하단 CTA */
.home-cta {
  margin-top: 32px;
}
.home-cta-inner {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
}
.home-cta h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}
.home-cta p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}
.home-cta-btn {
  flex-shrink: 0;
  background: #fff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.home-cta-btn:hover { background: #eff6ff; }

/* 헤더 홈 전용 */
.home-header .header-nav-item.active {
  color: #1d4ed8;
  background: #eff6ff;
}

@media (max-width: 900px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .home-split-row { grid-template-columns: 1fr; gap: 28px; }
  .content-grid-stack { grid-template-columns: 1fr; }
  .home-banner .btn-banner { height: auto; aspect-ratio: 16 / 9; max-height: 220px; }
  .home-cta-inner { flex-direction: column; text-align: center; }
  .store-scroll-featured .store-card-home { flex: 0 0 260px; }
}

@media (max-width: 520px) {
  .quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick-card { padding: 14px 12px; }
  .quick-card strong { font-size: 14px; }
  .store-card-home { flex: 0 0 220px; }
  .section-head h2 { font-size: 18px; }
}
