/* ===========================
   LISTADO
=========================== */
.listado {
  padding: 0 0 60px;
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 40px 0;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: #888;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #111;
}

.breadcrumb span {
  color: #bbb;
}

.breadcrumb span:last-child {
  color: #111;
}

/* CABECERA */
.listado__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 20px 40px 28px;
}

.listado__title {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #111;
}

.listado__count {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.04em;
}

/* FILTROS */
.filtros {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 40px;
  margin-bottom: 0;
}

.filtros__izq {
  display: flex;
  gap: 4px;
}

.filtro__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  padding: 6px 16px 6px 0;
  transition: opacity 0.2s;
}

.filtro__btn:hover {
  opacity: 0.6;
}

.subfiltro--activo {
  font-weight: 700;
  border-bottom: 1.5px solid #111;
}

.filtros__der {
  display: flex;
  align-items: center;
  gap: 20px;
}

.filtro__sort {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  cursor: pointer;
  transition: opacity 0.2s;
}

.filtro__sort:hover {
  opacity: 0.6;
}

.filtro__vistas {
  display: flex;
  gap: 8px;
}

.vista__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.3;
  transition: opacity 0.2s;
}

.vista__btn--active,
.vista__btn:hover {
  opacity: 1;
}

/* GRILLA */
.productos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

/* PRODUCTO */
.producto {
  display: flex;
  flex-direction: column;
  border: 2px solid #fff;
}

.producto__foto {
  display: block;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.producto__img {
  display: block;
  width: 350px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  transition: opacity 0.4s ease;
}

body.cat--nueva-temporada .producto__foto {
  background: #f5f5f5;
}

body.cat--nueva-temporada .producto__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.producto__img--hover {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
}

.producto__foto:hover .producto__img--base {
  opacity: 0;
}

.producto__foto:hover .producto__img--hover {
  opacity: 1;
}

.producto__info {
  padding: 12px 14px 20px;
}

.producto__nombre {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.01em;
}

.producto__tipo {
  font-size: 11.5px;
  color: #999;
  margin-top: 3px;
  letter-spacing: 0.03em;
}

/* MOBILE */
@media (max-width: 768px) {
  .listado {
    padding: 0 0 40px;
  }

  .breadcrumb,
  .listado__header {
    padding-left: 20px;
    margin-left: 0;
  }

  .filtros {
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid #e8e8e8;
  }

  .filtros__izq {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 20px;
    white-space: nowrap;
    display: block;
  }

  .filtros__izq::-webkit-scrollbar {
    display: none;
  }

  .filtro__btn {
    display: inline-flex;
    padding: 4px 14px 4px 0;
    font-size: 10.5px;
    white-space: nowrap;
  }

  .filtros__der {
    padding: 8px 20px;
    border-top: 1px solid #e8e8e8;
  }

  .productos {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }


  .listado__title {
    font-size: 17px;
  }

  .producto__foto {
    background: #f5f5f5;
  }

  .producto__img {
    width: 100%;
    object-fit: contain;
    background: white;
  }
}

/* ===========================
   SKELETON LOADING
=========================== */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-box,
.skeleton-line {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 4px;
}

.producto--skeleton .producto__foto {
  pointer-events: none;
}

.skeleton-box {
  display: block;
  width: 100%;
  padding-top: 125%;
}

.skeleton-line {
  display: block;
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-line--lg { width: 70%; }
.skeleton-line--sm { width: 40%; }

/* Estados de listado */
.listado__error,
.listado__vacio {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #888;
  font-size: 15px;
}
