.collection-list-wrapper {
  background-color: rgb(var(--color-background));
}

/* Overlay-style category cards (match live: portrait image, bottom-left title + SHOP NOW) */
.collection-list-wrapper .block-collection-card {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: transparent;
}

.collection-list-wrapper .block-collection-card__image-wrapper {
  margin: 0;
  border: none;
  box-shadow: none;
}

.collection-list-wrapper .block-collection-card__image-wrapper img {
  transition: transform 600ms ease;
}

.collection-list-wrapper .block-collection-card:hover .block-collection-card__image-wrapper img {
  transform: scale(1.05);
}

/* Dark gradient so the white title/button are legible over any image */
.collection-list-wrapper .block-collection-card__image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 35%,
    rgba(0, 0, 0, 0) 60%
  );
  pointer-events: none;
}

/* Title overlaid bottom-left */
.collection-list-wrapper .block-collection-card__title {
  position: absolute;
  /* Consistent 40px inner padding on all sides: the title sits 40px from the
     left, and the SHOP NOW button below the title lands 40px from the bottom.
     101px = 40px + 18px gap + ~43px button height. */
  inset-inline-start: 40px;
  inset-block-end: 101px;
  z-index: 2;
  margin: 0;
  padding: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: start;
  text-transform: uppercase;
  color: #ffffff;
}

/* SHOP NOW button under the title — matches global primary button swipe (inverted) */
.collection-list-wrapper .block-collection-card__shop-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: calc(100% + 18px);
  padding: 14px 32px;
  overflow: hidden;
  isolation: isolate;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1c1b1b;
  background-color: #ffffff;
  border: 1px solid #ffffff;
  white-space: nowrap;
  transition: color 350ms ease;
}

.collection-list-wrapper .block-collection-card__shop-now:hover {
  background-color: transparent;
}


.collection-list-wrapper .block-collection-card__shop-now::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: transparent !important;
  transform: translateX(-101%);
  transition: transform 350ms ease;
}

.collection-list-wrapper .block-collection-card:hover .block-collection-card__shop-now::before {
  transform: translateX(0);
}

.collection-list-wrapper .block-collection-card__shop-now-label {
  position: relative;
  z-index: 2;
  color: #1c1b1b;
  transition: color 350ms ease;
}

.collection-list-wrapper .block-collection-card:hover .block-collection-card__shop-now-label {
  color: #ffffff;
}

@media (max-width: 749px) {
  .collection-list-wrapper .block-collection-card__title {
    /* consistent 28px inner padding on mobile: 28px left + button 28px from
       the bottom (28 + 18px gap + ~43px button height = 89px) */
    inset-inline-start: 28px;
    inset-block-end: 89px;
    /* slightly smaller title on mobile */
    font-size: 18px;
    letter-spacing: 0.16em;
  }
}
