@charset "utf-8";

/* demos/test — 모바일 메인 시안 전용 보조 스타일
   ------------------------------------------------
   공통 레이아웃(style/components/carousel/inc-nss)을 우선 사용하고,
   데모 메인에서만 필요한 카테고리 이미지 카드·서비스 카드·배너만 보강합니다.
   운영 반영 시에는 이 파일을 pages/main.css 등으로 승격해도 됩니다. */

.m-home {
  background: #f5f6f8;
}

.m-home .l-section {
  background: #fff;
  margin-bottom: 8px;
  padding-top: 18px;
  padding-bottom: 20px;
}

.m-home-banner {
  display: block;
  background: #fff;
  margin-bottom: 8px;
}
.m-home-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* 이미지 아이콘형 카테고리. 기존 .c-cat 톤을 유지하면서 데모 이미지용으로만 확장. */
.c-cat--img {
  gap: 6px;
  min-height: 86px;
}
.c-cat--img img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
  background: #f6f6f6;
}
.c-cat--img-lg img {
  width: 70px;
  height: 78px;
}

.c-cat--color {
  gap: 6px;
  min-height: 86px;
}
.c-cat--color img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
}
.c-cat--color-lg img {
  width: 70px;
  height: 78px;
}

/* SPECIAL SERVICE — 상품 카드가 아니라 제작/서비스 진입점으로 보이게 분리 */
.m-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 var(--space-3);
}
.m-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 112px;
  padding: 14px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #4b5563, #111827);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
  -webkit-tap-highlight-color: transparent;
}
.m-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.24), transparent 36%);
  pointer-events: none;
}
.m-service-card--jubo { background: linear-gradient(135deg, #2f6f63, #12332d); }
.m-service-card--envelope { background: linear-gradient(135deg, #8a5a28, #3c2412); }
.m-service-card--card { background: linear-gradient(135deg, #6d5bd0, #2b276c); }
.m-service-card--paper { background: linear-gradient(135deg, #b84c4c, #521919); }
.m-service-card--order { background: linear-gradient(135deg, #2563eb, #0f255e); }
.m-service-card__kicker,
.m-service-card__title,
.m-service-card__desc {
  position: relative;
  z-index: 1;
}
.m-service-card__kicker {
  font-size: 11px;
  font-weight: 800;
  opacity: .78;
  letter-spacing: .02em;
}
.m-service-card__title {
  margin: 6px 0 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.45px;
}
.m-service-card__desc {
  font-size: 12px;
  line-height: 1.35;
  opacity: .88;
}

.m-home .c-nss {
  margin-bottom: 8px;
}

@media (min-width: 720px) {
  .m-service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
