/* ============================================================
   Collection tile — image + scrim + overlaid label, or (label
   position "below") a framed image with its title underneath.
   Shared by Shop by Style / Shop by Occasion. Tokens only.
   ============================================================ */

.lh-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--lh-img-loader, none), var(--surface-image);
  isolation: isolate;
  text-decoration: none;
  aspect-ratio: var(--lh-tile-ar, 0.8);
}

/* Aspect ratios */
.lh-tile--portrait { --lh-tile-ar: 0.75; }
.lh-tile--tall { --lh-tile-ar: 0.8; }
.lh-tile--square { --lh-tile-ar: 1; }
.lh-tile--landscape { --lh-tile-ar: 1.33; }

.lh-tile__media { position: absolute; inset: 0; }
.lh-tile__img,
.lh-tile__placeholder-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out);
}
.lh-tile:hover .lh-tile__img,
.lh-tile:focus-visible .lh-tile__img { transform: scale(1.06); }

.lh-tile__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  background: var(--overlay-tile);
  transition: background var(--duration-slow) var(--ease-standard);
}
.lh-tile:hover .lh-tile__overlay,
.lh-tile:focus-visible .lh-tile__overlay {
  background: var(--overlay-tile-hover);
}

.lh-tile__eyebrow {
  font-family: var(--font-body);
  font-size: var(--font-overline);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin-bottom: var(--space-1);
  text-shadow: var(--shadow-text-strong);
}

.lh-tile__name {
  font-family: var(--font-display);
  font-size: var(--font-h4);
  font-weight: var(--weight-bold);
  line-height: var(--leading-heading);
  color: var(--lh-white);
  text-shadow: var(--shadow-text);
}

.lh-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--font-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--lh-white);
  opacity: 0.92;
  transition: gap var(--duration-base) var(--ease-standard), opacity var(--duration-base) var(--ease-standard);
}
.lh-tile:hover .lh-tile__cta,
.lh-tile:focus-visible .lh-tile__cta {
  opacity: 1;
  gap: var(--space-2);
}

/* Keyboard focus */
.lh-tile:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

/* ---- Label below the image (Shop by Style default) ----
   The tile becomes a plain link; the rounded, clipped frame carries the
   aspect ratio and the loader, and the title sits underneath in Inter,
   fluid like the product-card text (tokens.css --font-tile-caption). */
.lh-tile--below {
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 0;
  background: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.lh-tile__frame {
  position: relative;
  display: block;
  aspect-ratio: var(--lh-tile-ar, 0.8);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--lh-img-loader, none), var(--surface-image);
}
.lh-tile__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}
.lh-tile--below .lh-tile__eyebrow {
  color: var(--color-primary);
  text-shadow: none;
  margin-bottom: 0;
}
.lh-tile--below .lh-tile__name {
  font-family: var(--font-body);
  font-size: var(--font-tile-caption);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--text-heading);
  text-shadow: none;
  transition: color var(--duration-base) var(--ease-standard);
}
.lh-tile--below:hover .lh-tile__name,
.lh-tile--below:focus-visible .lh-tile__name { color: var(--color-primary); }
.lh-tile--below .lh-tile__cta {
  margin-top: 0;
  font-size: var(--font-caption);
  color: var(--color-primary);
}
/* Focus ring hugs the photo, not the caption. */
.lh-tile--below:focus-visible { box-shadow: none; }
.lh-tile--below:focus-visible .lh-tile__frame { box-shadow: var(--ring-focus); }

/* Touch: keep CTA legible (no hover) */
@media (hover: none) {
  .lh-tile__cta { opacity: 1; }
}
