/* 상품 선택 허브 (/) */

.hub-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 520px at 50% -220px, #dce9ff 0%, rgba(220, 233, 255, 0) 70%),
    var(--bg);
}

.hub-shell {
  flex: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 96px 20px 64px;
}

.hub-head {
  text-align: center;
  margin-bottom: 36px;
}

.hub-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--teal);
}

.hub-head h1 {
  margin: 0;
  font-size: clamp(28px, 6.4vw, 44px);
  line-height: 1.28;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hub-sub {
  margin: 14px auto 0;
  max-width: 30ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.hub-trust {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hub-trust li {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: #3d4a5c;
  font-size: 12.5px;
  font-weight: 600;
}

.hub-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.hub-card {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(15, 32, 60, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hub-card:hover,
.hub-card:focus-visible {
  transform: translateY(-3px);
  border-color: #b9cdf3;
  box-shadow: 0 22px 44px rgba(15, 32, 60, 0.14);
}

.hub-card-media {
  flex: 0 0 108px;
  height: 132px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mint);
}

.hub-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 4px 4px 4px 0;
}

.hub-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.hub-card-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hub-card-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hub-card-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.hub-card-cta span {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.hub-card:hover .hub-card-cta span {
  transform: translateX(3px);
}

@media (min-width: 720px) {
  .hub-shell {
    padding-top: 112px;
  }

  /* 4개 = 2x2, 넓은 화면(1080+)에서 한 줄 4열.
     minmax(0, …) 이어야 긴 문구가 칸을 밀어내지 않는다. */
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .hub-card {
    flex-direction: column;
    padding: 16px;
  }

  .hub-card-media {
    flex: none;
    width: 100%;
    height: 216px;
  }

  .hub-card-body {
    justify-content: flex-start;
    padding: 4px 6px 8px;
  }

  .hub-card-desc {
    min-height: 2.9em;   /* 1줄·2줄 섞여도 '상담 신청하기' 줄이 맞는다 */
  }
}

/* 제품 사진이 아직 없는 카드(마이컵) — 사진이 준비되면 <img>로 교체 */
.hub-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--mint), #f2f7ff);
  color: rgba(18, 97, 238, 0.42);
}

.hub-card-art svg {
  width: 56%;
  max-width: 132px;
  height: auto;
}

@media (min-width: 1080px) {
  .hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .hub-card-media {
    height: 188px;
  }
}
