/* ============================================================
   Sekcja 5 — „Produkty" (pattern: produkty.php, klasa .tech-produkty)
   Własna pętla (inc/produkty-acf.php): .tech-produkty__grid > .tech-produkt.
   Dane żywe z WooCommerce, zdjęcie/ocena/opis z ACF.
   ============================================================ */

.tech-produkty { padding-block: var(--tech-section-y-lg); }

.tech-produkty__title h2.uagb-heading-text {
  margin: 0; text-align: center;
  font-size: clamp(1.875rem, 3.5vw, 2.25rem);
  font-weight: var(--tech-fw-bold); letter-spacing: var(--tech-tracking-tight); color: var(--tech-ink);
}
.tech-produkty__sub { margin: .75rem auto 2.5rem; max-width: 36rem; text-align: center; color: var(--tech-slate); }

/* Siatka 4-kol */
.tech-produkty__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
@media (max-width: 1023px) { .tech-produkty__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .tech-produkty__grid { grid-template-columns: 1fr; } }

/* Karta */
.tech-produkt {
  display: flex; flex-direction: column;
  border: 1px solid var(--tech-border);
  border-radius: var(--tech-radius-lg);
  padding: 1rem;
  transition: box-shadow .2s ease;
}
.tech-produkt:hover { box-shadow: var(--tech-shadow-lg); }

/* Obraz — kwadrat */
.tech-produkt__media { display: block; margin-bottom: 1rem; }
.tech-produkt__img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--tech-radius); display: block;
}

/* Ocena (iframe TrustMate) — subtelna, bez przycinania */
.tech-produkt__rating { display: block; border: 0; width: 130px; height: 24px; overflow: hidden; margin: 0 0 .35rem; }

/* Tytuł (podbita specyficzność nad underline Astry) */
.tech-produkt__title { margin: 0 0 .25rem; font-size: var(--tech-fs-lg); font-weight: var(--tech-fw-bold); }
.tech-produkty .tech-produkt__title a { color: var(--tech-ink); text-decoration: none; }
.tech-produkty .tech-produkt__title a:hover { color: var(--tech-slate); text-decoration: none; }

/* Opis — rośnie, by przycisk równał się do dołu */
.tech-produkt__desc { margin: 0 0 .75rem; font-size: var(--tech-fs-sm); color: var(--tech-slate); line-height: var(--tech-lh-normal); flex: 1 0 auto; }

/* Przycisk */
.tech-produkty a.tech-produkt__btn {
  display: block; text-align: center; margin-top: auto;
  padding: .7rem 1.25rem; border-radius: var(--tech-radius-pill);
  background: var(--tech-ink); color: var(--tech-white);
  font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold);
  text-decoration: none; border: 0;
  transition: background .2s ease;
}
.tech-produkty a.tech-produkt__btn:hover { background: var(--tech-ink-hover); color: var(--tech-white); text-decoration: none; }
