/* Stranica "Svi proizvodi" — hub sa svim kategorijama.
   Kartice preslikavaju izgled .product-card s naslovnice (index.css), a
   zaglavlje koristi isti jezik kao .index-process-header (eyebrow + gradijentni
   naslov). Varijable (--glass-*, --site-bg) dolaze iz css/common.css. */

.products-hub {
  position: relative;
  background:
    radial-gradient(ellipse 75% 45% at 50% 0%, rgba(14, 165, 233, 0.09), transparent 65%),
    var(--site-bg);
  padding: 130px 20px 80px;
  overflow: hidden;
}

.products-hub::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, #000 0%, transparent 75%);
}

.products-hub-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.products-hub-header {
  text-align: center;
  margin: 0 auto 38px;
  max-width: 820px;
}

.products-hub-eyebrow {
  display: inline-block;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 5px 14px;
  border: 1px solid rgba(14, 165, 233, 0.4);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.08);
}

.products-hub-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #b8c5d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.products-hub-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ── kartice kategorija ── */
.product-card-link {
  text-decoration: none;
  color: #fff;
  display: block;
  height: 100%;
}

.product-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.product-card-img-wrap {
  overflow: hidden;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.product-card-title {
  flex: 0 0 auto;
  margin: 0;
  padding: 20px 16px;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}

/* ── CTA traka na dnu ── */
.products-hub-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}

.products-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.products-hub-btn-primary {
  color: #041018;
  background: #38bdf8;
  border: 1px solid #38bdf8;
}

.products-hub-btn-primary:hover {
  background: #7dd3fc;
  border-color: #7dd3fc;
  color: #041018;
  transform: translateY(-2px);
}

.products-hub-btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.products-hub-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(56, 189, 248, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .products-hub {
    padding: 110px 14px 60px;
  }

  .products-hub-header {
    margin-bottom: 28px;
  }

  .product-card-title {
    padding: 14px 10px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card-img,
  .products-hub-btn { transition: none; }
}
