/* =============================================
   HANZOOM - pages/product.css
   제품소개 공통 스타일
   ============================================= */

/* ─── 제품 목록 인덱스 ─── */
.product-index-group { margin-bottom: 4rem; }
.product-index-group:last-child { margin-bottom: 0; }
.product-index-group__header {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-teal);
}
.product-index-group__header h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.product-index-group__header p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.product-index-grid { display: grid; gap: 1.25rem; }
.product-index-grid--2 { grid-template-columns: repeat(2, 1fr); }
.product-index-grid--3 { grid-template-columns: repeat(3, 1fr); }

.product-index-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition-slow);
  text-decoration: none;
}
.product-index-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}
.product-index-card__img {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-section);
}
.product-index-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-index-card:hover .product-index-card__img img { transform: scale(1.05); }
.product-index-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.product-index-card__brand {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
}
.product-index-card__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
}
.product-index-card__body p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}
.product-index-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-bg-section);
}
.product-index-card__price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
}
.product-index-card__arrow {
  color: var(--color-primary);
  font-weight: 700;
  transition: transform 0.2s;
}
.product-index-card:hover .product-index-card__arrow { transform: translateX(4px); }

/* 인증 배너 */
.product-cert-banner {
  background: linear-gradient(135deg, var(--color-navy), var(--color-primary-dk));
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}
.product-cert-banner__title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.product-cert-banner__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.product-cert-banner__items span {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

/* ─── 제품 상세 페이지 ─── */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-detail-gallery { display: flex; flex-direction: column; gap: 1rem; }
.product-detail-main-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
}
.product-detail-main-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.4s;
}
.product-detail-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.product-detail-thumbs .thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.2s;
  background-color: var(--color-bg-section);
}
.product-detail-thumbs .thumb.active,
.product-detail-thumbs .thumb:hover { border-color: var(--color-primary); }

.product-detail-brand {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}
.product-detail-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.product-detail-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.product-detail-price-box {
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.product-detail-price-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.product-detail-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary);
}
.product-detail-price-box small {
  font-size: 0.75rem;
  color: var(--color-text-light);
}
.product-detail-control { margin-bottom: 1.25rem; }
.product-detail-control__title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.product-detail-control__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.product-detail-control__items span {
  padding: 0.375rem 0.875rem;
  background: #EFF6FF;
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* 인증 배지 */
.product-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.cert-badge {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* 조달 정보 */
.product-procurement-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product-procurement-box__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #065F46;
}
.product-procurement-box__items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.product-procurement-box__items div {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  align-items: center;
}
.product-procurement-box__items span { color: var(--color-text-muted); }
.product-procurement-box__items strong { color: var(--color-text); font-weight: 700; }

/* ─── 특장점 ─── */
.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.product-feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.product-feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.product-feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.product-feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.product-feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─── 스펙 테이블 ─── */
.product-spec-table-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.product-spec-table {
  width: 100%;
  border-collapse: collapse;
}
.product-spec-table th,
.product-spec-table td {
  padding: 0.875rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-bg-section);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.product-spec-table tr:last-child th,
.product-spec-table tr:last-child td { border-bottom: none; }
.product-spec-table th {
  width: 180px;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-bg-section);
  white-space: nowrap;
}
.product-spec-table td { color: var(--color-text-muted); }

/* ─── 구축사례 ─── */
.product-ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.product-ref-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-ref-card strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
}
.product-ref-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ─── 갤러리 내 영상 패널 ─── */
.product-detail-video {
  width: 315px;
  height: 560px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
  position: relative;
}
.product-detail-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.product-detail-thumbs .thumb--video {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-thumbs .thumb--video span {
  color: #fff;
  font-size: 1.1rem;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .product-index-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .product-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .product-ref-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .product-index-grid--2 { grid-template-columns: 1fr; }
  .product-index-grid--3 { grid-template-columns: 1fr; }
  .product-features { grid-template-columns: 1fr; }
  .product-ref-grid { grid-template-columns: repeat(2, 1fr); }
  .product-spec-table th { width: 100px; }
}
@media (max-width: 480px) {
  .product-ref-grid { grid-template-columns: 1fr; }
}
