/* Nuevos productos públicos: presentación sin recortar fotos originales. */
.mates-product-grid > .product-card[hidden],
.sets-grid > .set-card[hidden] { display: none !important; }

.mates-product-grid .public-upload-card .product-image,
.sets-grid .public-upload-card .set-image {
  aspect-ratio: 1 / 1;
  background: #211a22;
}
.mates-product-grid .public-upload-card .product-image img,
.sets-grid .public-upload-card .set-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.public-photo-gallery {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: #171614;
  border-bottom: 1px solid rgba(213, 170, 85, .22);
}
.public-photo-rail {
  min-width: 0;
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.public-photo-thumb {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  padding: 2px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #3a303a;
  scroll-snap-align: start;
}
.public-photo-thumb.is-current { border-color: #e6b352; }
.public-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.public-photo-arrow, .public-page-number {
  cursor: pointer;
  border: 1px solid rgba(213, 170, 85, .55);
  background: #171614;
  color: #f0ca79;
  border-radius: 999px;
}
.public-photo-arrow { width: 30px; height: 40px; flex: 0 0 30px; font-size: 26px; }
.public-catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  scroll-margin-top: 90px;
}
.public-catalog-counter { width: 100%; text-align: center; color: #e6b352; font-weight: 700; }
.public-page-number { min-width: 40px; height: 40px; font-weight: 800; }
.public-page-number.is-current { color: #18140d; background: #e6b352; }
.public-photo-arrow:focus-visible, .public-photo-thumb:focus-visible,
.public-page-number:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }




/* Carrusel de una sola foto para juegos y sets, como en Mayoristas. */
.sets-grid .public-upload-card .set-image > .public-carousel-nav {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}
.public-carousel-nav .public-photo-arrow {
  pointer-events: auto;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10,10,9,.85);
  color: #f4cc70;
  font-size: 29px;
}
.public-carousel-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(230,179,82,.48);
  border-radius: 999px;
  background: rgba(10,10,9,.85);
  color: #fff4d6;
  font-size: 11px;
  font-weight: 800;
}
.sets-grid .public-upload-card .set-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.sets-grid .public-upload-card .set-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}