/* ===== Responsive Table Component CSS ===== */

/* CSS Variables */
:root{
  --table-bg: #ffffff; 
  --table-fg: #111827; 
  --table-muted: #6b7280; 
  --table-line: #e5e7eb;
  --table-head: #0b2d84; 
  --table-accent: #0b21ec; 
  --table-radius: 12px;
}

/* ===== Toolbar ===== */
.table-toolbar {
  display: flex;
  gap: 10px;
  justify-content: end;
  align-items: center;
  margin: 10px 0 12px;
}

.btn-inquiry {
  padding: 6px 6px;
  border-radius: 6px;
  border: 0;
  background: #fff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: filter .2s ease;
}

.btn-inquiry:hover {
  filter: brightness(1.08);
}

.sel-count {
  color: var(--table-muted);
  font-size: 13px;
}

/* ========= Desktop Table ========= */
.responsive-table-wrapper {
  background: var(--table-bg);
  border: 1px solid var(--table-line);
  border-radius: var(--table-radius);
  overflow: hidden;
}

.responsive-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.responsive-table thead th {
  position: sticky;
  top: 0;
  background:#0b21ec;
  color: #fff;
  text-align: center;
  padding: 14px 12px;
  font-weight: 800;
  border-bottom: 1px solid rgba(0,0,0,.08);
  white-space: nowrap;
}

.responsive-table th:first-child, 
.responsive-table td:first-child {
  width: 68px;
  text-align: center;
}

.responsive-table td, 
.responsive-table th {
  padding: 12px;
  border-bottom: 1px solid var(--table-line);
  vertical-align: middle;
  text-align: center;
}

.responsive-table tbody tr {
  cursor: pointer;
}

.responsive-table tbody tr:hover {
  background: #f9fafb;
}

.responsive-table tbody tr.is-selected {
  background: #eff6ff;
}

.table-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.table-pill input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

/* ========= Mobile Cards ========= */
.table-cards {
  display: none;
}

.table-card {
  background: var(--table-bg);
  border: 1px solid var(--table-line);
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.table-card.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

.table-card-click {
  display: block;
  text-decoration: none;
  color: inherit;
}

.table-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b21ec;
  color: #fff;
  padding: 12px 14px;
}

.table-card-title {
  font-weight: 800;
}

.table-card-check {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.table-card-check input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.table-card-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 14px;
  background: #f9fbff;
  border-top: 1px solid var(--table-line);
}

.table-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--table-line);
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--table-bg);
  font-size: 13px;
}

.table-chip .k {
  color: var(--table-muted);
}

.table-chip .v {
  font-weight: 700;
}

.table-card-body {
  border-top: 1px dashed var(--table-line);
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.table-card.expanded .table-card-body {
  max-height: 600px;
}

.table-kv {
  display: flex;
  gap: 8px;
  padding: 10px 0;
}

.table-kv .k {
  min-width: 96px;
  color: var(--table-muted);
}

.table-kv .v {
  font-weight: 600;
}

.table-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--table-line);
  background: var(--table-bg);
}

.table-exp-icon {
  font-size: 12px;
  color: var(--table-muted);
}

/* Responsive Visibility Rules */
@media (max-width: 768px) {
  .responsive-table-wrapper {
    display: none;
  }
  
  .table-cards {
    display: block;
  }
}

.inner_con {
    margin-top: 80px;
}
.product-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}

.product-header h1 {
    font-size: 2.5em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.product-intro {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    display: grid;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

}
.product-image {
  /* 기존: flex: 0 0 490px;  → 끝까지 490px을 고집해서 텍스트가 찌그러짐 */
  flex: 1 1 460px;    /* 바꿈: 조금 줄어들 여지 + 최소폭 기준 */
  min-width: 420px;   /* 이미지 칼럼 최소 폭(권장 420~480px) */
}

.product-summary {
  flex: 1 1 460px;    /* 텍스트 칼럼도 최소 폭을 둠 */
  min-width: 420px;   /* 이보다 좁아지면 아래로 내려감(스택 전환) */
}

/* 옵션: 1100px 이하에서 가독성을 더 보장하고 싶다면 */
@media (max-width: 1100px) {
  .product-intro { gap: 24px; }     /* 간격 약간 축소 */
  .product-summary { max-width: 720px; } /* 너무 긴 한 줄 폭 방지(선택) */
}
@media (max-width: 1100px){
  .product-intro{
    justify-content: center; /* 한 줄에 아이템 1개일 때 그 아이템을 중앙으로 */
    gap: 24px;                /* 여백 조금 줄여 깔끔하게 (선택) */
  }
/* 중간 크기 이하에서 세로 스택 전환 */
@media (max-width: 1100px) {
  .product-intro {
    flex-direction: column;   /* 세로 정렬 */
    align-items: center;      /* 중앙 정렬 */
    text-align: left;       /* 텍스트도 중앙 */
    gap: 20px;
  }


  .product-image,
  .product-summary {
    flex: 0 0 auto;
    width: 100%;
    max-width: 720px;  /* 너무 넓어지지 않게 제한 */
    min-width: 0;      /* 고정폭 강제 해제 */
    margin: 0 auto;
  }
}
  /* ② 각 칼럼(이미지/텍스트)의 가로폭을 적당히 제한 + 가운데 정렬 */
  .product-image,
  .product-summary{
    /* 스택 상태에서는 칼럼 폭을 너무 길지 않게 제한하고 중앙 배치 */
    width: min(720px, 100%);   /* 640~760px 범위 권장, 필요시 조정 */
    max-width: 720px;
    margin-inline: auto;       /* 좌우 자동 여백 → 중앙 정렬 */
    min-width: 0;              /* flex-basis/최소폭 강제 해제용 안전장치 */
    flex-basis: auto;          /* 스택 상태에서 고정 폭 영향 줄임 */
  }
}
.product-image {
    flex: 0 0 490px;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-placeholder {
    width: 250px;
    height: 180px;
    background: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.product-summary {
    flex: 1;
}

.product-summary h2 {
    color: #000000;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    padding:0px 30px 30px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #0b21ec;
    padding-bottom: 10px;
}

.feature-card ul {
    list-style: none;
    padding: 0;
}

.feature-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.feature-card li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #0b21ec;
    font-weight: bold;
}

.description-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.description-section h2 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

.description-text {
    text-align: justify;
    line-height: 1.8;
    color: #555;
}

.highlight {
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .product-header h1 {
        font-size: 1.8em;
    }
    
    .product-intro {
        flex-direction: column;
        padding: 20px;
    }
    
    .product-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 490px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card, .description-section {
        padding: 20px;
    }
}
