body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #fff;
}

#app {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  width: 100%;
}

.producto {
  background-color: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  border: 1px solid #2c2c2c;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background-color: #fff;
  padding: 10px;
  border-bottom: 1px solid #2c2c2c;
}

.producto h3 {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin: 10px;
  line-height: 1.4;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  min-height: auto;
}

.producto p {
  font-size: 12px;
  color: #aaa;
  margin: 0 10px 10px;
}

/* Agotado badge */
.agotado {
  color: #ff4d4f;
  font-weight: bold;
  font-size: 12px;
}

/* Spinner de carga */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: #00bcd4;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Sin conexión */
.offline-alert {
  background: #ff3333;
  color: white;
  text-align: center;
  padding: 10px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  font-weight: bold;
  z-index: 1000;
}

/* Responsive */
@media (max-width: 768px) {
  .producto img {
    height: 130px;
  }

  .producto h3 {
    font-size: 13px;
    height: auto;
    white-space: normal;
  }

  .productos {
    grid-template-columns: repeat(2, 1fr);
  }
}


.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #00bcd4;
  color: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 24px;
  text-align: center;
  line-height: 56px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: background 0.3s ease;
}
.fab:hover {
  background-color: #00acc1;
}

.filtro-marcas {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #1e1e1e;
  border-radius: 10px;
  padding: 10px 16px;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  z-index: 1000;
  width: 200px;
}
.filtro-marcas h4 {
  margin: 0 0 8px;
  font-size: 14px;
}
.filtro-marcas ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.filtro-marcas li {
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
}
.filtro-marcas li:hover {
  color: #00bcd4;
}