/* ===== Category / collection image tiles =====
   Full-bleed editorial grid. Deliberately NOT inside kombos-container: the
   reference runs the imagery close to the viewport edges. */
.cc_zOOmHq7o96_category_images .kombos-category-images {
  /* Horizontal inset of the section, also the scroll padding on phones */
  --section-px: 0.75rem;
  /* Tiles visible on phones — the fraction leaves the next one peeking */
  --mobile-tiles: 1.15;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding-top: var(--section-pt, 3rem);
  padding-bottom: var(--section-pb, 3rem);
}

.cc_zOOmHq7o96_category_images .kombos-category-images__title {
  margin: 0;
  padding-inline: var(--section-px);
  padding-bottom: 1rem;
  color: var(--kombos-gray-900);
  letter-spacing: 0.01em;
}

/* Phones: a swipeable row. The tiles are the renderer's rendered children,
   which sit inside display:contents wrappers, so they are targeted by their
   own class rather than by child position. */
.cc_zOOmHq7o96_category_images .kombos-category-images__grid {
  display: flex;
  gap: var(--tile-gap, 4px);
  padding-inline: var(--section-px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--section-px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cc_zOOmHq7o96_category_images .kombos-category-images__grid::-webkit-scrollbar {
  display: none;
}

/* IkasComponentRenderer emits display:contents wrappers, so the real
   flex/grid items are the grandchild wrappers — the same selector shape
   HeroSlider and MenuPanel already rely on. */
.cc_zOOmHq7o96_category_images .kombos-category-images__grid > * > * > * {
  flex: 0 0
    calc(
      (100% - (var(--mobile-tiles) - 1) * var(--tile-gap, 4px)) /
        var(--mobile-tiles)
    );
  min-width: 0;
  scroll-snap-align: start;
}

/* ===== Tablet (>=768px): two equal columns, no scrolling ===== */
@media (min-width: 768px) {
  .cc_zOOmHq7o96_category_images .kombos-category-images {
    --section-px: 1.25rem;
  }

  .cc_zOOmHq7o96_category_images .kombos-category-images__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .cc_zOOmHq7o96_category_images .kombos-category-images__grid > * > * > * {
    flex: initial;
  }

  .cc_zOOmHq7o96_category_images .kombos-category-images__title {
    padding-bottom: 1.25rem;
  }
}

/* ===== Desktop (>=1024px): one column per tile, capped for readability ===== */
@media (min-width: 1024px) {
  .cc_zOOmHq7o96_category_images .kombos-category-images {
    --section-px: 1.5rem;
  }

  .cc_zOOmHq7o96_category_images .kombos-category-images__grid {
    /* min() keeps 4+ tiles from collapsing into unusably narrow columns —
       they wrap onto a second row instead. */
    grid-template-columns: repeat(
      auto-fill,
      minmax(calc((100% - (min(var(--desktop-cols), 4) - 1) * var(--tile-gap, 4px)) / min(var(--desktop-cols), 4)), 1fr)
    );
  }
}
