/* ============================================================
   SHARED PRODUCT CARD STYLES
   Used on Products hub + category pages
   ============================================================ */

.tech-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tech-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.tech-product-card:hover {
  transform: translateY(-4px);
  color: inherit;
}

.tech-product-card__image {
  aspect-ratio: 1 / 1;
  background-color: var(--color-background-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.tech-product-card:hover .tech-product-card__image {
  background-color: #ede7db;
}

.tech-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.tech-product-card__placeholder {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--color-primary);
  opacity: 0.3;
}

.tech-product-card__body {
  padding-top: 16px;
}

.tech-product-card__title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-product-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
  opacity: 0.7;
  margin: 8px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-product-card__shop {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 12px;
}

/* Product group headers (hub page) */
.tech-product-group {
  margin-top: 64px;
}

.tech-product-group:first-child {
  margin-top: 0;
}

.tech-product-group__rule {
  width: 24px;
  height: 2px;
  background-color: var(--color-accent);
  border: none;
  margin: 0 0 20px 0;
}

.tech-product-group__heading {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 32px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

  .tech-product-card__title {
    font-size: 16px;
  }

  .tech-product-card__desc {
    display: none;
  }

  .tech-product-group__heading {
    font-size: 26px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tech-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
