/* TAEL Category Product HTML - front office */
.tael-category-product-html {
  width: 100%;
}

/* Górny link do poradnika */
.tael-category-product-html--top .tael-product-guide {
  display: block;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #f8f8f8;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.tael-category-product-html--top .tael-product-guide:hover {
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

.tael-product-guide__title {
  display: block;
  margin-bottom: .25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: inherit;
}

.tael-product-guide__cta {
  display: inline-block;
  font-weight: 600;
  text-decoration: underline;
}

.tael-product-guide__cta::after {
  content: " →";
}

/* Sekcja kafelków pod opisem */
.tael-category-product-html--bottom {
  clear: both;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.tael-related-links__heading {
  margin: 0 0 1.15rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

.tael-related-links__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tael-related-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.tael-related-tile:hover {
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
  transform: translateY(-2px);
}

.tael-related-tile__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f4f4f4;
}

.tael-related-tile__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem;
}

.tael-related-tile__title {
  display: block;
  margin-bottom: .45rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.tael-related-tile__cta {
  display: block;
  margin-top: auto;
  padding-top: .55rem;
  font-weight: 600;
}

.tael-related-tile__cta::after {
  content: " →";
}

@media (max-width: 991.98px) {
  .tael-related-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .tael-related-links__grid {
    grid-template-columns: 1fr;
  }

  .tael-related-tile {
    display: grid;
    grid-template-columns: 38% 1fr;
  }

  .tael-related-tile__image {
    height: 100%;
    min-height: 130px;
    aspect-ratio: auto;
  }
}
