/* ===== Category card (Ali) ===== */
.cc_xqaduz1e_axQnbnGCMa .ali-catcard {
  position: relative;
  display: block;
  overflow: hidden;
  /* Flush, edge-to-edge tiles — no radius (cards sit shoulder-to-shoulder). */
  text-decoration: none;
  color: var(--ali-neutral);
  isolation: isolate;
}

/* Media is IN-FLOW so the image's aspect-ratio gives the card a real height.
   (Absolutely-positioned media collapses to 0 height under flex stretch.) */
.cc_xqaduz1e_axQnbnGCMa .ali-catcard__media {
  position: relative;
  z-index: 0;
}
.cc_xqaduz1e_axQnbnGCMa .ali-catcard__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform var(--ali-dur-panel) var(--ali-ease-out);
  will-change: transform;
}
.cc_xqaduz1e_axQnbnGCMa .ali-catcard__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ali-muted);
  color: var(--ali-tertiary);
}
.cc_xqaduz1e_axQnbnGCMa .ali-catcard:hover .ali-catcard__img {
  transform: scale(1.05);
}

/* Gradient scrim so the white label + pill stay legible over any photo */
.cc_xqaduz1e_axQnbnGCMa .ali-catcard__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ali-overlay) 32%, transparent) 0%,
    color-mix(in srgb, var(--ali-overlay) 0%, transparent) 38%,
    color-mix(in srgb, var(--ali-overlay) 42%, transparent) 100%
  );
}

/* Vertical category label running up the left edge */
.cc_xqaduz1e_axQnbnGCMa .ali-catcard__label {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transform-origin: center;
  line-height: 1;
  text-transform: lowercase;
  color: var(--ali-neutral);
  text-shadow: 0 1px 18px color-mix(in srgb, var(--ali-overlay) 25%, transparent);
  pointer-events: none;
}

/* Pill CTA — compact, anchored bottom-LEFT (not full-width), frosted surface.
   Width hugs its label so the pill stays small and tucked in the corner. */
.cc_xqaduz1e_axQnbnGCMa .ali-catcard__cta {
  position: absolute;
  left: 22px;
  right: auto;
  bottom: 22px;
  z-index: 1;
  width: auto;
  height: 40px;
  padding-inline: 22px;
  background: color-mix(in srgb, var(--ali-neutral) 94%, transparent);
  color: var(--ali-primary);
  border-radius: var(--ali-radius-full);
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@media (max-width: 767px) {
  .cc_xqaduz1e_axQnbnGCMa .ali-catcard__label {
    top: 16px;
    left: 16px;
  }
  .cc_xqaduz1e_axQnbnGCMa .ali-catcard__cta {
    left: 14px;
    bottom: 14px;
    height: 38px;
    padding-inline: 18px;
  }
}
