.product-hero-card {
  min-height: 320px;
}

.stats-bar {
  padding: 2rem 0;
  background: linear-gradient(135deg, rgba(27,77,179,0.96), rgba(78,182,255,0.92));
}

.stat-item {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
}

.stat-num {
  color: #ffffff;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.stat-num span,
.stat-num sub {
  color: rgba(255,255,255,0.62);
  font-family: "Montserrat", sans-serif;
  font-size: 0.45em;
}

.stat-label {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-header {
  max-width: 780px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header h2 {
  margin: 0;
  color: #18253d;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.section-header .sub,
.sub {
  color: #72819d;
  max-width: 68ch;
}

.section-header .sub {
  margin: 1rem auto 0;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-tab {
  cursor: pointer;
  border: 1px solid #dfe9f5;
  border-radius: 8px;
  background: #ffffff;
  color: #14367d;
  padding: 0.78rem 1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.filter-tab:hover,
.filter-tab.active {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: #1b4db3;
  background: #1b4db3;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.7rem;
  background: #ffffff;
  border: 1px solid #dfe9f5;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(17, 56, 122, 0.12);
  transition: opacity 0.22s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(17, 56, 122, 0.16);
  border-color: rgba(27,77,179,0.18);
}

.product-card[hidden] {
  display: none;
}

.product-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(27,77,179,0.96), rgba(78,182,255,0.88));
  color: #ffffff;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: rgba(78,182,255,0.12);
  color: #1b4db3;
}

.product-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
}

.product-card.featured .product-icon {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

.product-card h3 {
  margin: 0;
  color: #18253d;
  font-size: 1.55rem;
  line-height: 1.2;
}

.product-card p {
  margin: 0;
}

.product-card.featured h3,
.product-card.featured p {
  color: #ffffff;
}

.product-card .last {
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.45rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1b4db3;
}

.product-card.featured .feature-list li::before {
  background: #ffffff;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  background: rgba(27,77,179,0.1);
  color: #14367d;
  font-weight: 800;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.card-action::after {
  content: ">";
  margin-left: 0.5rem;
}

.card-action:hover {
  transform: translateY(-2px);
  color: #ffffff;
  background: #1b4db3;
}

.product-card.featured .card-action {
  color: #14367d;
  background: #ffffff;
}

.product-col-left,
.product-col-right {
  display: grid;
  gap: 1rem;
}

.cta-strip {
  padding: 0 0 5.5rem;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid #dfe9f5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(17, 56, 122, 0.12);
}

.cta-inner h3 {
  margin: 0;
  color: #18253d;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.cta-inner p {
  margin: 0.5rem 0 0;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.45rem;
  border: 1px solid #1b4db3;
  border-radius: 8px;
  color: #14367d;
  font-weight: 800;
  background: #ffffff;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.button-outline:hover {
  transform: translateY(-2px);
  color: #ffffff;
  background: #1b4db3;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card.featured {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/*
 * products.css — category tag additions
 * Add these rules to your existing products.css
 * (existing styles remain unchanged)
 */

/* ── Category Tags ── */
.product-category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.andrology-tag {
  background: #e8f4fd;
  color: #1a6fa8;
}

.embryology-tag {
  background: #eaf6f0;
  color: #1a7a4a;
}

.advanced-tag {
  background: #f3eeff;
  color: #6b3bbf;
}

.micromanipulation-tag {
  background: #fff4e6;
  color: #b35c00;
}

.laser-tag {
  background: #fff0f0;
  color: #c0392b;
}

.incubation-tag {
  background: #fffbe6;
  color: #9a7d00;
}

.witness-tag {
  background: #e6f7ff;
  color: #0070b8;
}

/* ── Filter tab scroll on mobile ── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.5rem;
}

@media (max-width: 600px) {
  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }
  .filter-tab {
    white-space: nowrap;
  }
}

/* ── Card fade-in animation ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   ADD THESE RULES TO YOUR products.css
   ───────────────────────────────────────── */

/* Hide cards when filtered out (uses the HTML hidden attribute) */
.product-card[hidden] {
  display: none !important;
}

/* Category pill tags */
.product-category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.andrology-tag        { background: #e8f4fd; color: #1a6fa8; }
.embryology-tag       { background: #eaf6f0; color: #1a7a4a; }
.advanced-tag         { background: #f3eeff; color: #6b3bbf; }
.micromanipulation-tag{ background: #fff4e6; color: #b35c00; }
.laser-tag            { background: #fff0f0; color: #c0392b; }
.incubation-tag       { background: #fffbe6; color: #9a7d00; }
.witness-tag          { background: #e6f7ff; color: #0070b8;  }

/* Keep witness tag readable on the blue featured card */
.product-card.featured .witness-tag {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

/* Mobile: allow filter tab row to scroll horizontally */
@media (max-width: 600px) {
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .filter-tab {
    white-space: nowrap;
  }
}
