/* 제품소개 페이지 - Figma 1:218 */
:root {
  --color-primary: #1e4a6b;
  --color-dark: #0c0f14;
  --color-text: #14181f;
  --color-text-muted: #5c6573;
  --color-border: #c5cdd8;
  --color-border-light: #e8ecf1;
  --color-bg-light: #f9fafb;
  --color-header-bg: #eef1f4;
  --font-sans:
    "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: "Inter", sans-serif;
  --page-max: 1920px;
  --content-max: 1536px;
  --page-padding: clamp(24px, 10vw, 192px);
  --section-gap: 96px;
  --card-gap: 32px;
  --card-radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.product-page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  overflow-x: hidden;
}

/* ========== HEADER (Figma 1:357) ========== */
.product-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 12px var(--page-padding) 13px;
}
.admin-bar .product-header {
  top: 32px;
}

.product-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 34px;
}

.product-header__brand {
  flex-shrink: 0;
  width: 170px;
  height: 34px;
}

.product-header__logo {
  width: 170px;
  height: 34px;
  object-fit: cover;
  object-position: left center;
}

.product-header__menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-header-bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-header__menu-icon,
.product-header__menu-icon::before,
.product-header__menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #3d4754;
  border-radius: 1px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

.product-header__menu-icon {
  position: relative;
}

.product-header__menu-icon::before,
.product-header__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.product-header__menu-icon::before {
  top: -6px;
}

.product-header__menu-icon::after {
  top: 6px;
}

.product-header__menu-btn[aria-expanded="true"] .product-header__menu-icon {
  background: transparent;
}

.product-header__menu-btn[aria-expanded="true"]
  .product-header__menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.product-header__menu-btn[aria-expanded="true"]
  .product-header__menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.product-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.product-header__nav a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  color: #3d4754;
  letter-spacing: 0.78px;
  text-transform: uppercase;
  line-height: normal;
  white-space: nowrap;
  transition:
    color 0.2s,
    opacity 0.2s;
}

.product-header__nav a:hover {
  opacity: 0.75;
}

.product-header__nav a.is-active {
  color: #3d4754;
  position: relative;
}
.product-header__nav a.is-active:before {
  content: "";
  width: 100%;
  height: 2px;
  overflow: hidden;
  display: block;
  position: absolute;
  left: 0;
  bottom: -5px;
  background: #3d4754;
}

/* ========== HERO (Figma 1:348) ========== */
.product-hero {
  width: 100%;
  background: #fff;
}

.product-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
  max-width: 1370px;
  margin: 0 auto;
  padding: 64px 24px 46px;
}

.product-hero__title {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  color: #000;
  line-height: 1.5;
}

.product-hero__desc {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.72);
  line-height: 30.6px;
  letter-spacing: 0.16px;
  max-width: 800px;
}

.product-hero__banner {
  position: relative;
  width: 100%;
  height: 360px;
  background: #f4f4f4;
  overflow: hidden;
}
.product-hero__banner.about {
  height: auto;
}

.product-hero__img {
  position: absolute;
  left: 50%;
  top: -265.5px;
  width: 1962px;
  max-width: none;
  height: 981px;
  transform: translateX(calc(-50% - 10.5px));
  object-fit: cover;
  pointer-events: none;
}
.product-hero__img.about-type {
  height: auto;
  top: 0;
  position:static;
  transform: none;
  width: 100%;
}

/* ========== GALLERY (Figma 1:221) ========== */
.product-main {
  width: 100%;
}

.product-gallery {
  background: var(--color-bg-light);
}

.product-gallery__inner {
  max-width: var(--content-max);
  margin: 0 auto !important;
  padding: var(--section-gap) var(--page-padding) var(--section-gap);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: 0 auto !important;
}

/* ---------- Cards ---------- */
.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  background: #fff;
}

.product-card--radome {
  grid-column: 1 / 3;
  min-height: 600px;
  background: #e8ecf1;
}

.product-card--adas {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  min-height: 439px;
}

.product-card--mdps,
.product-card--ev,
.product-card--bracket {
  display: flex;
  flex-direction: column;
  min-height: 450px;
}

.product-card__media {
  position: relative;
  overflow: hidden;
}

.product-card__media--radome {
  position: absolute;
  inset: 0;
}

.product-card__media--adas {
  flex: 1 1 auto;
  min-height: 299px;
  background: #f4f4f4;
}

.product-card__media--small {
  flex: 0 0 auto;
  height: 268.8px;
  background: #f4f4f4;
}
.product-gallery.mb-board .product-card__link {
  display: flex;
  flex-direction: column;
}

/* MangBoard 등록/관리 UI가 카드 상단에 요소를 추가해도
   미디어 영역이 항상 맨 위에 오도록 강제 */
.product-gallery.mb-board .product-card__link > .product-card__media,
.product-gallery.mb-board .product-card--adas > .product-card__media,
.product-gallery.mb-board .product-card--mdps > .product-card__media,
.product-gallery.mb-board .product-card--ev > .product-card__media,
.product-gallery.mb-board .product-card--bracket > .product-card__media {
  order: -1;
}

.product-card__media--small {
  height: 100%;
  flex: 1;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__bg {
  position: absolute;
  width: calc(100% + 102px);
  height: calc(100% + 60px);
  max-width: none;
  object-fit: cover;
}

.product-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 61%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}

.product-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.product-card__body--radome {
  position: absolute;
  left: 48px;
  bottom: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 271px;
}

.product-card__eyebrow {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 2.8px;
  text-transform: uppercase;
  line-height: 20px;
}

.product-card__title--radome {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 48px;
  letter-spacing: 0.05px;
}

.product-card__desc--radome {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  line-height: 28px;
}

.product-card__footer {
  flex: 0 0 auto;
  padding: 32px !important;
  background: #fff;
  border-top: 1px solid var(--color-border-light);
  height: 164px;
}

.product-card__footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.product-card__title {
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 800;
  color: #000;
  line-height: 36px;
  letter-spacing: -0.02em;
}
.product-card__body--radome .product-card__title {
  color: #fff;
}

.product-card--adas .product-card__title {
  font-size: 36px;
  line-height: 36px;
}

.product-card__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.product-card__desc {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 24px;
}

/* ========== CTA (Figma 1:314) ========== */
.product-cta {
  position: relative;
  overflow: hidden;
  background: #0c0f14;
  border-radius: 24px;
  padding: 96px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.product-cta__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.2;
  pointer-events: none;
}

.product-cta__glow--primary {
  top: -128px;
  left: -128px;
  background: #1e4a6b;
}

.product-cta__glow--accent {
  right: -128px;
  bottom: -128px;
  background: #b45309;
}

.product-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 757fr) minmax(280px, 523fr);
  gap: 64px;
  min-height: 407px;
  align-items: center;
  width: 100%;
  max-width: 1344px;
  margin: 0 auto;
}

.product-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  align-self: center;
  max-width: 757px;
}

.product-cta__title {
  font-family: var(--font-en), var(--font-sans);
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 60px;
  letter-spacing: -1.2px;
  word-break: keep-all;
}

.product-cta__desc {
  display: flex;
  flex-direction: column;
  max-width: 672px;
  width: 100%;
}

.product-cta__desc p {
  font-family: var(--font-en), var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 32.5px;
  word-break: keep-all;
}

.product-cta__contact {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 523px;
  min-height: 285px;
  padding: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  justify-self: stretch;
}

.product-cta__row {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.product-cta__icon-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.product-cta__icon-shadow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.product-cta__icon-wrap--phone {
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
}

.product-cta__icon-wrap--fax {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-cta__icon {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.product-cta__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 0;
}

.product-cta__label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  line-height: 16px;
}

.product-cta__value {
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 36px;
  letter-spacing: -0.75px;
  white-space: nowrap;
}

a.product-cta__value:hover {
  opacity: 0.85;
}

.product-cta__divider {
  flex-shrink: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .product-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card--radome {
    grid-column: 1 / -1;
  }

  .product-card--adas {
    grid-column: auto;
  }
}

@media (max-width: 1024px) {
  .product-cta {
    padding: 64px 48px;
  }

  .product-cta__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
  }

  .product-cta__copy {
    max-width: none;
  }

  .product-cta__contact {
    max-width: none;
    justify-self: stretch;
  }
  .product-header__inner {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .product-header__menu-btn {
    display: flex;
  }
  .admin-bar .product-header {
    top: 0;
    z-index: 222222;
  }

  .product-header__nav {
    position: fixed;
    top: 115px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    background: var(--color-header-bg);
    border-top: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .product-header__nav.is-open {
    transform: translateX(0);
  }

  .product-header__nav a {
    padding: 16px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
  }

  .product-hero__intro {
    padding: 40px 24px 32px;
  }

  .product-hero__title {
    font-size: clamp(28px, 6vw, 36px);
  }

  .product-hero__desc {
    font-size: 16px;
    line-height: 1.7;
  }

  .product-hero__banner {
    height: 240px;
  }
  .product-hero__banner.about {
    height: auto;
  }

  .product-hero__img {
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-gallery__inner {
    gap: 0;
    padding-top: 0;
    padding-bottom: 64px;
  }

  .product-gallery__grid {
    grid-template-columns: 1fr;
  }

  .product-card--radome,
  .product-card--adas {
    grid-column: auto;
    min-height: auto;
  }

  .product-card--radome {
    min-height: 420px;
  }

  .product-card__body--radome {
    left: 24px;
    bottom: 24px;
  }

  .product-card__title--radome {
    font-size: 36px;
    line-height: 1.1;
  }

  .product-cta {
    padding: 48px 24px;
    border-radius: 16px;
  }

  .product-cta__title {
    font-size: clamp(24px, 7vw, 48px);
    line-height: 1.25;
  }

  .product-cta__desc p {
    font-size: 14px;
    line-height: 1.625;
  }

  .product-cta__contact {
    min-height: 0;
    padding: 32px 24px;
  }

  .product-cta__value {
    font-size: 18px;
    line-height: 1.3;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .product-card__footer {
    padding: 24px;
    height: auto;
  }

  .product-card__title {
    font-size: 24px;
    line-height: 1.2;
  }

  .product-card--adas .product-card__title {
    font-size: 28px;
  }
  .product-header__inner {
    padding: 0;
  }
}
