.cc_1b9pjd53_LNzFGjNZ0V .CO-category-grid {
  width: 100%;
}

.cc_1b9pjd53_LNzFGjNZ0V .CO-category-grid__grid {
  display: grid;
  /* Column counts are editor-driven (mobile + desktop). gap applies to BOTH
     row and column spacing via the shorthand. */
  grid-template-columns: repeat(var(--cols-m, 2), 1fr);
  gap: var(--gap, 0);
}

@media (min-width: 768px) {
  .cc_1b9pjd53_LNzFGjNZ0V .CO-category-grid__grid {
    grid-template-columns: repeat(var(--cols, 3), 1fr);
  }
}

.cc_1b9pjd53_LNzFGjNZ0V .CO-category-grid__tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Image keeps the merchant-uploaded proportions (no forced crop): full column
   width, height follows the natural aspect ratio. */
.cc_1b9pjd53_LNzFGjNZ0V .CO-category-grid__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

/* Zoom hover — only when enabled; intensity driven by --zoom (1 + %/100). */
.cc_1b9pjd53_LNzFGjNZ0V .CO-category-grid__grid--zoom .CO-category-grid__tile:hover .CO-category-grid__img {
  transform: scale(var(--zoom, 1.04));
}

/* Black flat-frame hover — only when enabled; thickness driven by
   --border-hover-width. Uses inset box-shadow so it overlays the image edges
   without shifting layout. Sits above the image, below the label. */
.cc_1b9pjd53_LNzFGjNZ0V .CO-category-grid__grid--border .CO-category-grid__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 0.2s ease;
}

.cc_1b9pjd53_LNzFGjNZ0V .CO-category-grid__grid--border .CO-category-grid__tile:hover::after {
  box-shadow: inset 0 0 0 var(--border-hover-width, 2px) var(--kombos-gray-900);
}

.cc_1b9pjd53_LNzFGjNZ0V .CO-category-grid__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 480 / 390;
  background: var(--kombos-gray-100);
}

.cc_1b9pjd53_LNzFGjNZ0V .CO-category-grid__label {
  position: absolute;
  bottom: 1.1rem;
  left: 1.25rem;
  z-index: 2;
  color: var(--kombos-white);
  font-size: 1.17rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: none;
}
