/* Layout general de tarjetas */
.inventory-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

/* Tarjetas responsivas */
.card {
  flex: 1 1 100%;
  max-width: 100%;
  border: 1px solid #ccc;
  padding: 12px;
  position: relative;
  border-radius: 6px;
  background: #fff;
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
}
.card.active {
  box-shadow: 0 0 0 4px #1ebc61;
}

/* Responsive: 2 columnas en tablets */
@media (min-width: 600px) {
  .card {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 16px);
  }
}

/* Responsive: 3 columnas en pantallas grandes */
@media (min-width: 900px) {
  .card {
    flex: 1 1 calc(33.33% - 16px);
    max-width: calc(33.33% - 16px);
  }
}

/* Imágenes dentro de las tarjetas */
.card img,
.lazy-thumb {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
  cursor: pointer;
  opacity: 0.9;
  transition: transform 0.3s ease;
}
.lazy-thumb:hover {
  transform: scale(1.03);
  opacity: 1;
}

/* Título de vista actual */
.current-view {
  font-size: 1.2rem;
  margin: 10px 0 20px;
  color: #444;
  font-family: "wildmex2", sans-serif !important;
}

/* Contenedor de filtros */
.inventory-filters {
  margin-bottom: 20px;
  font-family: "wildmex2", sans-serif !important;
}
.inventory-filters .filter-group {
  margin-bottom: 15px;
}
.inventory-filters strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #333;
  font-weight: bold;
}

/* Botonera scrollable y responsive */
.filter-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: stretch;
}
.filter-scroll::-webkit-scrollbar {
  height: 6px;
}
.filter-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Estilos de botones */
.inventory-filters a {
  display: inline-block;
  padding: 12px 16px;
  background: #fc641e;
  color: white !important;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: normal;
  font-family: "wildmex2", sans-serif !important;
  transition: background 0.3s, color 0.3s;
  text-align: center;
  flex: 1 1 calc(50% - 10px);
  min-width: 140px;
  box-sizing: border-box;
}
.inventory-filters a:hover,
.inventory-filters a.active {
  background: #1ebc61;
  color: white !important;
}
