/* CUMBRE — tienda (listado). Prefijo .shop- */

/* Cabecera de página */
.shop-hero {
  position: relative; overflow: hidden;
  padding-top: var(--header-h);
  min-height: clamp(280px, 42vh, 460px);
  display: flex;
}
.shop-hero__bg {
  position: absolute; top: 0; right: 0; bottom: 0; width: 58%;
  background: url("../img/pico-muro-espalda.jpg") center 30% / cover no-repeat;
  filter: grayscale(1);
}
.shop-hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 11, 0.58); }
.shop-hero__inner {
  position: relative; z-index: 1; width: 100%;
  padding: 0 var(--gutter) clamp(20px, 3vw, 36px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.shop-hero__title { font-size: clamp(3.5rem, 12vw, 6rem); color: var(--on-ink); }
.shop-hero__count { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink); padding-bottom: 6px; }
@media (max-width: 640px) {
  .shop-hero__bg { width: 100%; }
  .shop-hero__bg::after { background: rgba(11, 11, 11, 0.66); }
}

/* Barra de herramientas */
.shop-bar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--bone); border-bottom: 1px solid var(--line-bone);
  transition: top 0.5s var(--ease-out);
}
.shop-bar.is-top { top: 0; }
.shop-bar__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px var(--gutter);
}
.shop-filters { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.shop-filters::-webkit-scrollbar { display: none; }
.shop-chip {
  min-height: 44px; padding: 0 14px; white-space: nowrap;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--on-bone-mute);
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.shop-chip:hover { color: var(--ink); }
.shop-chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.shop-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.shop-sort { position: relative; }
.shop-sort select {
  appearance: none; -webkit-appearance: none; border-radius: 0;
  min-height: 44px; padding: 0 34px 0 12px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-bone);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  max-width: 44vw;
}
.shop-sort select:hover { border-color: var(--ink); }
.shop-sort__chev { position: absolute; right: 10px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.shop-density { display: none; }
.shop-density .icon-btn { opacity: 0.4; }
.shop-density .icon-btn[aria-pressed="true"] { opacity: 1; }
.shop-density .icon-btn:hover { opacity: 0.75; }
.shop-density .icon { width: 24px; height: 24px; }
@media (min-width: 820px) { .shop-density { display: flex; } }
@media (max-width: 520px) {
  .shop-sort select { font-size: 13px; padding-left: 10px; }
  .shop-bar__row { flex-wrap: wrap; row-gap: 8px; }
  .shop-filters { flex: 1 0 100%; }
}

/* Rejilla */
.shop-grid-wrap { padding: clamp(24px, 3vw, 40px) var(--gutter) clamp(64px, 8vw, 112px); min-height: 50vh; }
.shop-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 6px; row-gap: 44px;
}
@media (min-width: 820px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 820px) { .shop-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shop-grid .card { min-width: 0; }
.shop-grid .card__name { font-size: 16px; }
.shop-grid.is-anim .card { animation: shopIn 0.5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes shopIn { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 520px) { .shop-grid .card__badge { left: 8px; bottom: 8px; font-size: 12px; padding: 5px 8px; } }

/* Estado vacío */
.shop-empty { display: grid; justify-items: start; gap: 24px; padding: 48px 0; }
.shop-empty[hidden] { display: none; }
.shop-empty__text { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 6vw, 3.5rem); line-height: 0.95; }

/* Franja final */
.shop-end { display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; border-top: 1px solid var(--line-bone); }
.shop-end__img { background: var(--bone); overflow: hidden; }
.shop-end__img img { mix-blend-mode: multiply; }
.shop-end__img img { width: 100%; height: 100%; min-height: 420px; max-height: 78vh; object-fit: cover; }
.shop-end__copy { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 24px; padding: var(--gutter); }
.shop-end__title { font-size: clamp(2.75rem, 7vw, 6rem); text-wrap: balance; }
.shop-end .link-u { font-size: 16px; font-weight: 500; opacity: 1; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 820px) {
  .shop-end { grid-template-columns: 1fr; }
  .shop-end__img img { min-height: 0; aspect-ratio: 4 / 5; max-height: none; }
  .shop-end__copy { padding: 32px var(--gutter) 56px; }
}
