/* style/components.css */

/* ── PRODUCT CARD (메인 페이지 그리드용) ───────────────────── */
.product-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s, transform .15s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  text-decoration: none;
}
.product-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: rgba(0,120,212,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}
.product-card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
}
.product-card h3 { font-size: 1rem; color: var(--text-0); margin: 0; }
.product-card p  { font-size: 0.82rem; color: var(--text-2); margin: 0; }

/* ── PRODUCTS SECTION GRID ─────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ── PRODUCT DETAIL HERO (제품 페이지 상단) ────────────────── */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
.product-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  min-height: 260px;
  position: relative;
}
.product-hero-image img { width: 100%; height: auto; }

/* ── IMAGE SLIDER ─────────────────────────────────────────── */
.img-slider { position: relative; width: 100%; }
.img-slider img { display: none; width: 100%; height: auto; }
.img-slider img.active { display: block; }
.img-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 2;
}
.img-slider-btn:hover { background: rgba(0,120,212,.7); }
.img-slider-btn.prev { left: 8px; }
.img-slider-btn.next { right: 8px; }
.img-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
}
.img-slider-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s;
}
.img-slider-dots span.active { background: var(--accent2); }
.product-hero-info { display: flex; flex-direction: column; gap: 1rem; }
.product-hero-info h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; }
.product-hero-info .lead { font-size: 1rem; color: var(--text-2); line-height: 1.7; }
.product-hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* ── SPEC BLOCKS ────────────────────────────────────────────── */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.spec-block {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.spec-block-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 0.4rem;
}
.spec-block-value { font-size: 0.9rem; color: var(--text-0); }

/* ── FEATURE LIST (bullet points) ─────────────────────────── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-0);
  line-height: 1.5;
}
.feature-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── DATA TABLE ─────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
.data-table th {
  background: var(--bg-1);
  color: var(--accent2);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 0.75rem 1rem;
  color: var(--text-0);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table td:first-child { color: var(--accent2); width: 35%; }
.data-table tr:last-child td { border-bottom: none; }

/* ── NEWS ITEMS ─────────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: color .15s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { color: var(--text-0); text-decoration: none; }
.news-item:hover .news-title { color: var(--accent2); }
.news-date {
  font-size: 0.75rem;
  color: var(--text-2);
  white-space: nowrap;
  padding-top: 2px;
  min-width: 72px;
}
.news-title { font-size: 0.88rem; color: var(--text-0); line-height: 1.5; }

/* ── COMPANY INFO CARD ──────────────────────────────────────── */
.company-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.company-card h3 { color: #fff; margin-bottom: 1rem; font-size: 1.1rem; }
.company-info-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.company-info-row .icon { color: var(--accent2); flex-shrink: 0; }
.company-info-row a { color: var(--accent2); }

/* ── TWO COLUMN SECTION ─────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* ── SECTION HEADING ────────────────────────────────────────── */
.section-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent2);
  margin-bottom: 1.25rem;
}
