/* ============================================================
 * Product list + qualified-investor gate.
 * Two layouts in one file: a centered gate card (login / unqualified)
 * and a 2-column product card grid for the authorised view.
 * ============================================================ */

/* ---- Gate card (login prompt / unqualified notice) ---- */
.product-page .product-gate {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-1);
}
.product-gate-icon .iconfont {
  font-size: 56px;
  color: var(--primary);
  opacity: .5;
}
.product-gate-title {
  margin: 20px 0 12px;
  font-size: var(--fs-xl);
  color: var(--text-1);
  font-weight: var(--fw-semibold);
}
.product-gate-desc {
  margin: 0 0 20px;
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.85;
}
.product-gate-notice {
  text-align: left;
  padding: 16px 20px;
  background: var(--bg-2);
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.8;
  max-height: 260px;
  overflow-y: auto;
}
.product-gate-actions {
  display: inline-flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Plan 4 Task 24 unified gate: same look, new spec-aligned class names.
   The HTML carries both the old `product-gate-*` and the new `gate-*`
   classes so future refactors can drop the legacy prefix safely. */
.product-gate-page .gate-title { /* alias of .product-gate-title */ }
.product-gate-page .gate-desc  { /* alias of .product-gate-desc  */ }
.product-gate-page .gate-actions {
  display: inline-flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.product-gate-page .gate-notice {
  text-align: left;
  padding: 16px 20px;
  background: var(--bg-2);
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.8;
  max-height: 260px;
  overflow-y: auto;
}

/* ---- Product grid ---- */
.product-page .product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--primary-light);
}

.product-card-head {
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.product-name {
  margin: 0 0 8px;
  font-size: var(--fs-lg);
  color: var(--text-1);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-3);
  font-size: var(--fs-sm);
}
.product-meta span {
  line-height: 1.4;
}

.product-facts {
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}
.product-fact {
  display: flex;
  gap: 4px;
  align-items: baseline;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.product-fact dt {
  margin: 0;
  color: var(--text-3);
}
.product-fact dd {
  margin: 0;
  color: var(--text-1);
}
.product-nav-value {
  color: var(--accent);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  font-variant-numeric: tabular-nums;
}

.product-desc {
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  max-height: 160px;
  overflow: hidden;
  position: relative;
}
.product-desc::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg-1));
  pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .product-page .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-page .product-gate {
    padding: 40px 24px;
  }
}
@media (max-width: 640px) {
  .product-card {
    padding: 24px 20px 28px;
  }
  .product-gate-title {
    font-size: var(--fs-lg);
  }
}
