/* Two full-bleed editorial pairs; only captions enter, with no hover or zoom. */
.home-category-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  height: calc(100svh - var(--site-navbar-height));
  min-height: 480px;
  margin: 0;
  padding: 0;
  background: var(--color-soft);
}
.home-category-panels[data-category-count="1"] { grid-template-columns: minmax(0, 1fr); }
.home-category-panel,
.home-category-panel:hover,
.home-category-panel:active {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--color-coffee);
  color: #fff;
  text-decoration: none;
  transform: none;
  transition: none;
  animation: none;
}
.home-category-panel > img, .home-category-panel > picture > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: none;
  transition: none;
  animation: none;
}
.home-category-panel[data-category="anillos"] > img { object-position: center 35%; }
.home-category-panel[data-category="collares"] > img { object-position: center 65%; }
/* Full-bleed framing for the landscape originals, with the jewelry as focal point. */
.home-category-panel[data-category="aros"] > picture > img { top: -20%; bottom: auto; height: 120%; object-position: 48% 44%; }
.home-category-panel[data-category="pulseras"] > picture > img { object-position: 46% 42%; }
.home-category-panel::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(18, 14, 10, .7));
  content: '';
  pointer-events: none;
}
.home-category-caption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 64px;
  left: 24px;
  text-align: center;
}
.storefront .home-category-caption h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(36px, 3.8vw, 60px);
  font-weight: 500;
  line-height: 1.1;
}
.home-category-caption > span {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  color: #fff;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.storefront .home-category-panel:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -6px;
}
@media (min-width: 768px) and (max-aspect-ratio: 2/1) {
  .home-category-panel[data-category="anillos"] > img { object-position: center 5%; }
}
@media (max-width: 767.98px) {
  .home-category-panels { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .home-category-panel { height: 75svh; min-height: 380px; }
  .home-category-panel[data-category="anillos"] > img { height: 100%; object-position: center center; }
  /* Mobile uses existing portrait originals; no artificial photo margins. */
  .home-category-panel[data-category="aros"] > picture > img { top: 0; bottom: 0; height: 100%; object-position: center 55%; }
  .home-category-panel[data-category="pulseras"] > picture > img { top: 0; bottom: 0; height: 100%; object-position: center center; }
  .home-category-panel[data-category="collares"] > img { bottom: auto; height: 115%; object-position: center top; }
  .home-category-caption { bottom: 50px; }
}
