/* v168: category-accurate hero imagery without supplier marks or generated text overlays. */
.v168-category-collage {
  width: 100%;
  height: 100%;
  padding: 8px;
  display: grid;
  grid-template-columns: 1.18fr .82fr .82fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
  overflow: hidden;
  background: #e7ecef;
}

.v168-category-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
}

.v168-category-tile.is-motorcycle {
  grid-row: 1 / 3;
}

.v166-main-ux .hero-card.active .v168-category-tile img,
.v168-category-tile img {
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  filter: saturate(.92) contrast(1.035) !important;
}

.v166-main-ux .hero-card.active .v168-category-tile.is-fabric img,
.v166-main-ux .hero-card.active .v168-category-tile.is-nail img,
.v168-category-tile.is-fabric img,
.v168-category-tile.is-nail img {
  transform: scale(1.26) !important;
}

.v168-category-tile span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 2;
  max-width: calc(100% - 14px);
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: rgba(10, 27, 43, .82);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

/* The source factory/QC posters are 16:9; crop their black edge safely. */
.v167-viewport-stable .hero-card[data-slide="1"] .hero-visual img,
.v167-viewport-stable .hero-card[data-slide="2"] .hero-visual img {
  object-position: center !important;
  transform: scale(1.055) !important;
}

@media (max-width: 680px) {
  .v168-category-collage {
    padding: 5px;
    gap: 4px;
    grid-template-columns: 1.15fr .85fr .85fr;
  }

  .v168-category-tile {
    border-radius: 7px;
  }

  .v168-category-tile span {
    left: 4px;
    top: 4px;
    bottom: auto;
    max-width: calc(100% - 8px);
    padding: 3px 5px;
    font-size: 7px;
  }
}
