/* ─────────────────────────────
   SHOP-CATEGORIES.CSS — Lo Castro Shop page (4-category tile layout)
   wp-content/themes/twentytwentyfive-child/styles/shop-categories.css

   Ported from the Next.js CategoryTiles component: weighted grid-column
   hover animation, radial/linear vignette overlay, static underline.
   The animation logic itself lives in scripts/shop-categories.js.
   ───────────────────────────── */

.lc-shop-hero {
  text-align: center;
  padding: 34px 20px;
  border-bottom: 1px solid var(--lc-border-subtle);
}

.lc-shop-title {
  font-family: var(--lc-font-display) !important;
  font-size: 14px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 12px !important;
}

.lc-shop-subtitle {
  font-size: 14px;
  color: var(--lc-text);
  opacity: 0.7;
  margin: 0;
}

.lc-shop-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  /* grid-template-columns is overwritten inline by shop-categories.js
     during the hover animation — this is just the resting/fallback state */
}

.lc-shop-tile {
  position: relative;
  display: block;
  height: 520px;
  min-width: 0;
  overflow: hidden;
  background-color: var(--lc-surface); /* visible placeholder until real photos are added */
  background-size: cover;
  background-position: center;
  text-decoration: none;
}

/* Vignette overlay — radial lightening at center, darker toward the
   bottom for label legibility, using rgba equivalents of the reference's
   color-mix(brown, transparent) values (--lc-text: #4A2F1B → 74,47,27) */
.lc-shop-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% 45%, transparent 35%, rgba(74, 47, 27, 0.65) 100%),
    linear-gradient(
      180deg,
      rgba(74, 47, 27, 0.18) 0%,
      rgba(74, 47, 27, 0.05) 45%,
      rgba(74, 47, 27, 0.55) 100%
    );
}

/* Hover border — thin light outline, fades in on hover only */
.lc-shop-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 220ms ease;
}

.lc-shop-tile:hover::after {
  opacity: 1;
}

.lc-shop-tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--lc-font-display);
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 1px 18px rgba(74, 47, 27, 0.45);
}

/* Static underline, always visible (not a hover reveal) — matches the
   reference exactly */
.lc-shop-tile-label::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
  opacity: 0.75;
  margin: 10px auto 0;
}

@media (max-width: 1100px) {
  .lc-shop-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lc-shop-tile {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .lc-shop-tiles {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lc-shop-tile {
    height: 230px;
  }

  .lc-shop-tile-label {
    bottom: 16px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .lc-shop-tile-label::after {
    width: 42px;
    margin-top: 8px;
  }
}