/* front-main-ui.css */

body.front-main-page {
  background: var(--front-color-bg);
  color: var(--front-color-text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 공통 섹션 */
.front-main-page section {
  margin-top: 66px;
}

.front-main-page .main-wide-banner {
  margin-top: 0;
}

/* 메인 배너 */
.main-wide-banner {
  padding: 20px 0 8px;
}

.wide-banner-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wide-banner-track::-webkit-scrollbar {
  display: none;
}

.wide-banner-card {
  position: relative;
  display: block;
  flex: 0 0 100%;
  min-height: 448px;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
  text-decoration: none;
  box-shadow: var(--front-shadow-card);
}

.wide-banner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0));
  z-index: 1;
}

.main_top_banner_01 {
  background-image: url("../../img/banner/01_mainbanner_s26.jpg");
}

.main_top_banner_02 {
  background-image: url("../../img/banner/02_mainbanner_iphone17.jpg");
}

.main_top_banner_03 {
  background-image: url("../../img/banner/03_mainbanner_z7.jpg");
}

.wide-banner-copy {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 420px;
  color: #fff;
}

.wide-banner-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.wide-banner-copy strong {
  display: block;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.18;
}

.wide-banner-copy span {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.wide-banner-copy ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.wide-banner-copy li {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
}

/* 배너 dot */
.wide-banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.wide-banner-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  padding: 0;
}

.wide-banner-dot.is-active {
  background: #475569;
}

/* 빠른 검색 */
.quick-search-section {
  margin-top: 28px;
}

.quick-search-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
}

.quick-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
}

.quick-search-form input {
  width: 100%;
  height: 50px;
}

.quick-search-form button {
  height: 50px;
  border: 0;
  border-radius: 10px;
  background: #4a4a6d;
  color: #fff;
  font-weight: 800;
}

/* 조건 비교 */
.main-benefit-section {
  margin-top: 48px;
}

.main-benefit-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--front-color-primary-sub);
  font-size: 14px;
  font-weight: 800;
}

.main-benefit-copy h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin: 16px 0 0;
  color: var(--front-color-text-sub);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.main-benefit-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

/* 사전승낙 */
.precon-section {
  margin-top: 52px;
}

.precon-header {
  margin-bottom: 14px;
}

.precon-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.precon-header p {
  margin: 6px 0 0;
  color: var(--front-color-text-sub);
  font-size: 14px;
}

.precon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.precon-card {
  min-height: 146px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--front-color-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--front-shadow-card);
  color: inherit;
  text-decoration: none;
}

.precon-logo {
  width: 110px;
  max-width: 110px;
  height: auto;
  flex: 0 0 110px;
  object-fit: contain;
}

.precon-body {
  min-width: 0;
  flex: 1 1 auto;
}

.precon-title {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.precon-desc {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.precon-link {
  display: block;
  margin-top: 4px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.precon-arrow {
  margin-left: auto;
  font-size: 22px;
}

/* 섹션 헤드 */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2,
.category-section h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.section-more {
  color: var(--front-color-primary-sub);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* 인기 모델 */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.featured-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--front-color-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--front-shadow-card);
}

.featured-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.featured-thumb {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.featured-thumb img {
  max-width: 94%;
  max-height: 94%;
  object-fit: contain;
}

.featured-body {
  position: relative;
  z-index: 1;
  padding: 14px;
}

.featured-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.featured-model-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.featured-color-dots {
  display: inline-flex;
  gap: 4px;
}

.featured-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
}

.featured-price-meta {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.featured-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.featured-price-line span {
  color: #64748b;
}

.featured-price-line strong {
  color: #111827;
  font-weight: 600;
  text-align: right;
}

.featured-price-line-factory strong {
  color: #94a3b8;
  font-weight: 400;
  text-decoration: line-through;
}

.featured-price-line.meta-row-principal strong {
  color: #f97316;
  font-weight: 800;
}

.featured-card-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 14px 16px;
  position: relative;
  z-index: 1;
}

/* 리뷰 */
.main-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.main-review-card {
  border: 1px solid var(--front-color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--front-shadow-card);
  overflow: hidden;
}

.main-review-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  color: inherit;
  min-height: 132px;
  padding: 10px;
  text-decoration: none;
}

.main-review-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

.main-review-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.main-review-body {
  min-width: 0;
  padding: 0;
}

.main-review-stars {
  color: #f59e0b;
  font-size: 14px;
}

.main-review-body h3 {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.45em * 2);
}

.main-review-body p {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 14px 0 0;
  color: #64748b;
  font-size: 12px;
  text-align: right;
}

/* 브랜드 바로가기 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-grid a {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.series-link-galaxy-s {
  background: linear-gradient(135deg, #1b2b5c, #2d448f);
}

.series-link-galaxy-a {
  background: linear-gradient(135deg, #3e4657, #5a6477);
}

.series-link-galaxy-z {
  background: linear-gradient(135deg, #1f5c6f, #2e7f95);
}

.series-link-iphone {
  background: linear-gradient(135deg, #4b5668, #657287);
}

/* 공지/Q&A */
.main-board-summary {
  margin-top: 56px;
}

.main-board-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.main-board-col {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--front-color-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--front-shadow-card);
}

.main-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-board-list li {
  border-bottom: 1px solid #e5e7eb;
}

.main-board-list li:last-child {
  border-bottom: 0;
}

.main-board-list li > a {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--front-color-text);
  text-decoration: none;
}

.main-board-title {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.main-board-date {
  flex: 0 0 auto;
  width: 82px;
  color: #64748b;
  font-size: 12px;
  text-align: right;
}

.main-board-pin,
.main-qna-badge,
.main-board-new {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.main-board-new {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid #f97316;
  border-radius: 6px;
  background: #f97316;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.main-board-pin {
  background: #2563eb;
  color: #fff;
}

.main-qna-badge.is-answered {
  background: #4a4a6d;
  color: #fff;
}

.main-qna-badge.is-pending {
  border: 1px solid #4a4a6d;
  background: #fff;
  color: #4a4a6d;
}

.main-qna-secret {
  font-size: 12px;
}

/* 상담 CTA */
.main-consult-card {
  padding: 30px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  text-align: center;
  box-shadow: var(--front-shadow-card);
}

.main-consult-card h2 {
  margin: 0;
  font-size: 28px;
}

.main-consult-phone {
  margin: 10px 0 0;
  font-size: 26px;
  font-weight: 900;
}

.main-consult-time {
  margin: 8px 0 0;
  font-size: 14px;
}

.main-consult-card .btn {
  margin-top: 16px;
}

/* 태블릿 */
@media (max-width: 1100px) {
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 모바일 */
@media (max-width: 768px) {
  .front-main-page section {
    margin-top: 58px;
  }

  .main-wide-banner {
    padding: 0 0 14px;
  }

  .main-wide-banner .front-wrap {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .wide-banner-track {
    gap: 0;
  }

  .wide-banner-card {
    min-height: 248px;
    border-radius: 0;
    box-shadow: none;
  }

  .wide-banner-copy {
    left: 22px;
    top: 24px;
    transform: none;
    max-width: 68%;
  }

  .wide-banner-copy strong {
    font-size: 30px;
  }

  .wide-banner-copy span {
    font-size: 14px;
  }

  .wide-banner-copy ul {
    display: none;
  }

  .quick-search-section h2,
  .section-head h2,
  .category-section h2 {
    font-size: 23px;
  }

  .quick-search-form {
    grid-template-columns: minmax(0, 1fr) 128px;
  }

  .main-benefit-compare {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .main-benefit-copy h1 {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .precon-grid,
  .featured-grid,
  .main-review-grid,
  .category-grid,
  .main-board-summary-grid {
    grid-template-columns: 1fr;
  }

  .precon-card {
    min-height: 118px;
    padding: 18px 14px;
  }

  .precon-logo {
    width: 92px;
    max-width: 92px;
    flex-basis: 92px;
  }

  .featured-card {
    padding: 12px;
  }

  .featured-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .featured-thumb {
    flex: 0 0 104px;
    height: 110px;
  }

  .featured-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
  }

  .featured-card-actions {
    padding: 6px 0 0;
  }

  .main-board-col {
    padding: 20px 16px;
  }

  .main-consult-card {
    padding: 28px 16px;
  }
}

/* 작은 모바일 */
@media (max-width: 420px) {
  .front-main-page section {
    margin-top: 54px;
  }

  .quick-search-form {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .quick-search-form input,
  .quick-search-form button {
    height: 48px;
  }

  .wide-banner-card {
    min-height: 236px;
  }

  .wide-banner-copy strong {
    font-size: 28px;
  }

  .hero-actions .btn {
    min-height: 44px;
    padding: 0 16px;
  }

  .main-board-col {
    padding: 18px 14px;
  }

  .main-board-list li > a {
    gap: 6px;
  }

  .main-board-date {
    width: 72px;
    font-size: 11px;
  }
}


/* =========================
   Main Page Final Tuning
========================= */

/* 사전승낙 로고 크기 안정화 */
.precon-logo {
  width: 86px;
  max-width: 86px;
  flex: 0 0 86px;
  max-height: 54px;
  object-fit: contain;
}

/* KT 로고만 과하게 큰 문제 보정 */
.precon-grid .precon-card:nth-child(2) .precon-logo {
  width: 60px;
  max-width: 60px;
  flex-basis: 60px;
  max-height: 32px;
}

/* 상담 CTA 박스 복구 */
.consult-section .consult-inner {
  background: linear-gradient(135deg, #172554 0%, #253f8f 100%);
  border-radius: 18px;
  padding: 34px 20px;
  text-align: center;
  color: #fff;
}

.consult-section .consult-inner h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
}

.consult-section .consult-inner p {
  margin: 12px auto 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
}

.consult-section .consult-inner .btn {
  margin-top: 18px;
  background: #fff;
  color: #4a4a6d;
  border-color: #fff;
}

/* 브랜드 바로가기 제목 간격 */
.category-section h2 {
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .main-review-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .main-review-card {
    min-height: 0;
  }

  .main-review-thumb {
    width: 96px;
    height: 96px;
  }

  .main-review-link {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    min-height: 112px;
    padding: 8px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-grid a {
    min-height: 84px;
  }

  .consult-section{
    padding-left:16px;
    padding-right:16px;
  }

  .consult-section .consult-inner {
    margin: 0;
    padding: 28px 18px;
    width:100%;
    box-sizing:border-box;    
  }



  
}

/* 작은 모바일 */
@media (max-width: 420px) {
  .precon-logo {
    width: 78px;
    max-width: 78px;
    flex-basis: 78px;
  }

  .precon-grid .precon-card:nth-child(2) .precon-logo {
    width: 48px;
    max-width: 48px;
    flex-basis: 48px;
  }

  .main-review-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid a {
    min-height: 76px;
    font-size: 15px;
  }
}
