/* Shop Our Kits — Stitched Up style square tiles */
.kc-shop-kits {
  padding: 56px 20px 64px;
}

.kc-shop-kits .kc-shell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.kc-shop-kits .kc-shell__head h2 {
  font-family: var(--kc-display) !important;
  font-size: clamp(36px, 7vw, 48px) !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
  color: var(--kc-ink) !important;
  margin: 0 !important;
}

.kc-shop-kits .kc-viewall,
.kc-shop-kits .kc-shell__head a.kc-viewall {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: var(--kc-ink) !important;
  text-decoration: none !important;
  font-family: var(--kc-ui) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.kc-shop-kits .kc-viewall i,
.kc-shop-kits .kc-viewall::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--kc-cream-2);
  font-style: normal;
  font-size: 15px;
  line-height: 1;
}

/* Prefer the <i> arrow; hide the shell's generic ::after if both fire */
.kc-shop-kits .kc-shell__head a.kc-viewall::after {
  content: none !important;
  display: none !important;
}

.kc-shop-kits .kc-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kc-shop-kits .kc-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  background: var(--kc-cream-2);
}

.kc-shop-kits .kc-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .kc-shop-kits .kc-tile:hover img {
    transform: scale(1.05);
  }
}

/* Even dark wash so centered labels stay readable */
.kc-shop-kits .kc-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 14, 9, 0.34);
  z-index: 2;
}

.kc-shop-kits .kc-tile span {
  position: absolute;
  z-index: 4;
  left: 12px;
  right: 12px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  color: #fff !important;
  font-family: var(--kc-display) !important;
  font-size: clamp(22px, 4.5vw, 28px) !important;
  font-weight: 600 !important;
  text-align: center;
  line-height: 1.15 !important;
  padding: 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

@media (min-width: 900px) {
  .kc-shop-kits {
    padding: 72px 40px 80px;
  }
  .kc-shop-kits .kc-tiles {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .kc-shop-kits .kc-tile {
    aspect-ratio: 1 / 1;
  }
  .kc-shop-kits .kc-tile span {
    font-size: 28px !important;
    left: 16px;
    right: 16px;
  }
}
