/* Popster 3.11.27 — solo immagini minimal nelle categorie correlate.
   Il link «Altre composizioni» punta alla pagina Categorie; layout prodotti intatto. */

/* Piccole icone di collezione cliccabili nella scheda prodotto. */
body.single-product .popster-related-categories__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
body.single-product .popster-related-categories__links > a.popster-related-categories__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: center;
  color: inherit;
  text-decoration: none;
}
body.single-product .popster-related-categories__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 7 / 5;
  border-radius: 10px;
  background: transparent;
  overflow: hidden;
  transition: transform .2s ease;
}
body.single-product .popster-related-categories__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.single-product .popster-related-categories__placeholder {
  color: #807c75;
  font-size: 10px;
  letter-spacing: .1em;
}
body.single-product .popster-related-categories__label {
  display: block;
  width: 100%;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 650;
  overflow-wrap: anywhere;
}
body.single-product .popster-related-categories__item:hover .popster-related-categories__thumb {
  transform: translateY(-2px);
}
body.single-product .popster-related-categories__item:hover .popster-related-categories__label {
  color: var(--color-primary, #E85D3A);
}
body.single-product .popster-related-categories__item:focus-visible {
  outline: 2px solid var(--color-primary, #E85D3A);
  outline-offset: 3px;
}

/* Carosello in fondo alla categoria: solamente miniatura minimal, senza sfondo ambientato. */
body.tax-product_cat .popster-v31126-related__image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 7 / 5;
  background: transparent;
  overflow: hidden;
}
body.tax-product_cat .popster-v31126-related__image > img.popster-v31126-related__minimal {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
}
body.tax-product_cat .popster-v31126-related__card:hover .popster-v31126-related__name {
  color: var(--color-primary, #E85D3A);
}
@media(max-width: 420px) {
  body.single-product .popster-related-categories__links { gap: 9px; }
  body.single-product .popster-related-categories__label { font-size: 12px; }
}
@media(prefers-reduced-motion: reduce) {
  body.single-product .popster-related-categories__thumb { transition: none; }
}
