/* Public /collections — collection-only overlay contract.
   Reuses the category grid geometry but owns its visual treatment so
   /categories remains untouched. One collection image serves Standard + XL. */

.rcg--collections .rcg-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #2b2723;
}

.rcg--collections .rcg-card__visual-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.rcg--collections .rcg-card__visual {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.rcg--collections .rcg-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,14,.34) 0%, rgba(20,17,14,.08) 46%, rgba(20,17,14,.52) 100%);
  pointer-events: none;
}

.rcg--collections .rcg-card__col {
  position: relative;
  z-index: 1;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  pointer-events: none;
}

.rcg--collections .rcg-card__main {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 16px;
  color: #fff;
  background: transparent;
  pointer-events: auto;
}

.rcg--collections .rcg-card__title,
.rcg--collections .rcg-card__count,
.rcg--collections .rcg-card__go {
  color: #fff;
  text-shadow: 0 1px 2px rgba(20,17,14,.72), 0 2px 6px rgba(20,17,14,.34);
}

.rcg--collections .rcg-card__go {
  margin-top: auto;
}

/* Explicitly keep a single image source for both card formats.
   Geometry comes from the shared Standard 1x1 / XL 2x2 grid classes. */
.rcg--collections .rcg-card--standard .rcg-card__visual,
.rcg--collections .rcg-card--xl .rcg-card__visual {
  background-size: cover;
}
