/* Product > 제품소개 — Figma 318:2458 조립 / 497:6745 가공 / 497:6933 기타 */

main.main-figma.gsmk-product-intro {
  padding-bottom: 180px;
}

/* 1420px 본문 폭 + 좌우 패딩 20px×2 (패딩을 박스 안에 넣으면 max-width에 더해야 3열 460+gap 들어감) */
.gsmk-product-intro__inner {
  width: 100%;
  max-width: calc(1420px + 40px);
  margin: 0 auto;
  padding: 180px 20px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.gsmk-product-intro__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
  width: 100%;
  max-width: 1420px;
}

.gsmk-product-intro__section-title {
  margin: 0;
  width: 100%;
  max-width: 1313px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-black);
  text-align: center;
}

.gsmk-product-intro__tabs {
  display: flex;
  width: 100%;
  max-width: 1420px;
  margin: 0;
  padding: 0;
  min-height: 84px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: var(--color-white);
  overflow: hidden;
}

.gsmk-product-intro__tab {
  flex: 1 1 33.333%;
  margin: 0;
  padding: 24px 16px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-black);
  text-align: center;
  cursor: pointer;
  border-radius: 12px;
  transition: background-color 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
}

.gsmk-product-intro__tab:hover {
  background: rgba(0, 95, 163, 0.06);
}

.gsmk-product-intro__tab:focus-visible {
  outline: 2px solid var(--color-point);
  outline-offset: 2px;
}

.gsmk-product-intro__tab--active {
  background: var(--color-point);
  color: var(--color-white);
  font-weight: 800;
}

.gsmk-product-intro__tab--active:hover {
  background: var(--color-point-dark);
  color: var(--color-white);
}

.gsmk-product-intro__panel {
  width: 100%;
  max-width: 1420px;
}

.gsmk-product-intro__panel--hidden {
  display: none;
}

.gsmk-product-intro__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gsmk-product-intro__card {
  flex: 0 1 460px;
  width: 100%;
  max-width: 460px;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
}

.gsmk-product-intro__card-media {
  position: relative;
  flex: 0 0 auto;
  height: 460px;
  padding: 20px;
  box-sizing: border-box;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gsmk-product-intro__card-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.gsmk-product-intro__card-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.gsmk-product-intro__card-img--contain {
  object-fit: contain;
  object-position: center;
}

.gsmk-product-intro__card-img--cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gsmk-product-intro__card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 40px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-sizing: border-box;
}

.gsmk-product-intro__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.gsmk-product-intro__pill--module {
  background: #c4e6ff;
  color: var(--color-navy);
}

.gsmk-product-intro__pill--sub {
  background: #ffdebc;
  color: #cf6800;
}

.gsmk-product-intro__card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-black);
  text-transform: uppercase;
}

.gsmk-product-intro__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
  background: var(--color-surface);
  border-radius: 20px;
}

.gsmk-product-intro__empty-icon {
  display: block;
  flex-shrink: 0;
}

.gsmk-product-intro__empty-text {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.5;
  color: var(--color-black);
  text-align: center;
}

@media (max-width: 1024px) {
  .gsmk-product-intro__card-media {
    height: min(460px, 72vw);
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  main.main-figma.gsmk-product-intro {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .gsmk-product-intro__inner {
    padding-top: 0;
    gap: 80px;
  }

  .gsmk-product-intro__head {
    gap: 80px;
  }

  .gsmk-product-intro__tabs {
    flex-direction: column;
    min-height: 0;
  }

  .gsmk-product-intro__tab {
    flex: 1 1 auto;
    width: 100%;
  }

  .gsmk-product-intro__card-body {
    padding: 32px 24px;
  }

  .gsmk-product-intro__empty {
    padding: 48px 20px;
  }
}
