/* FN SOLUTIONS — css/booster-products.css
   Products grid, compare table, compatibility grid */

/* ── Products grid ──────────────────────────────────────── */
.products {
  background: var(--bg-page);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media(max-width:1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:560px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-slow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-brand-strong);
}

.product-card.featured {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-primary), var(--shadow-xl);
}

.product-popular-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-primary);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-brand);
}

.product-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-icon-large {
  width: 72px;
  height: 72px;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon-large svg {
  width: 40px;
  height: 40px;
}

.product-visual-label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 8px;
  text-align: center;
}

.product-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Tier badges */
.product-tier {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}

.tier-entry {
  background: #f1f5f9;
  color: #64748b;
}

.tier-standard {
  background: #fffbeb;
  color: #b45309;
}

.tier-pro {
  background: #eff6ff;
  color: #1d4ed8;
}

.tier-elite {
  background: #f5f3ff;
  color: #4c1d95;
}

.tier-business {
  background: #f0fdf4;
  color: #16a34a;
}

.tier-mesh {
  background: #fff1f2;
  color: #be123c;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -.02em;
}

.product-subtitle {
  font-size: .76rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.spec-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-icon svg {
  width: 11px;
  height: 11px;
  color: var(--accent-primary);
}

.spec-text {
  font-size: .78rem;
  color: var(--text-secondary);
}

.spec-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.product-divider {
  height: 1px;
  background: var(--border-light);
  margin: 14px 0;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.product-price-cur {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.product-price-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  letter-spacing: -.03em;
}

.product-price-note {
  font-size: .7rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── Compare table ──────────────────────────────────────── */
.compare {
  background: var(--bg-section-alt);
}

.compare-table-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th {
  background: var(--accent-primary);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.compare-table td {
  padding: 13px 16px;
  font-size: .83rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: middle;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: var(--bg-section-blue);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.check {
  color: var(--success);
}

.cross {
  color: var(--text-muted);
}

.highlight-row td {
  background: var(--brand-50) !important;
}

/* ── Compatibility grid ─────────────────────────────────── */
.compat {
  background: var(--bg-page);
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media(max-width:768px) {
  .compat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:440px) {
  .compat-grid {
    grid-template-columns: 1fr;
  }
}

.compat-card {
  background: var(--bg-section-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 24px 22px;
  text-align: center;
  transition: all var(--t-slow);
}

.compat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
  border-color: var(--border-brand);
}

.compat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: all var(--t-slow);
}

.compat-card:hover .compat-icon {
  background: var(--accent-primary);
}

.compat-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
  transition: color var(--t-slow);
}

.compat-card:hover .compat-icon svg {
  color: white;
}

.compat-card h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.compat-card p {
  font-size: .76rem;
  color: var(--text-secondary);
  line-height: 1.65;
}