/* spbi-base.css - estilos base compartidos (final) */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

:root{
  --spbi-bg: transparent;
  --spbi-text: #ffffff;
  --spbi-muted: #d0d0d0;
  --spbi-accent: #1e9cff;
}

/* Contenedor */
.spbi-container {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--spbi-bg);
  position: relative;
  font-family: 'Luckiest Guy', "Helvetica Neue", Arial, sans-serif;
  color: var(--spbi-text);
}

/* Responsivo: apila en móvil */
@media (max-width: 720px) {
  .spbi-container { flex-direction: column; }
}

/* IMÁGENES: contenedor reducido (menos ancho) para dejar espacio a la derecha */
.spbi-images {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Caja de imagen (alto mayor que ancho) */
.spbi-image-wrap {
  background: rgba(11,11,11,0.88);
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 360px;
  position: relative;
}

/* Imagen dentro de caja: cubrir por defecto */
.spbi-image-wrap img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* INFO */
.spbi-info {
  flex: 1 1 auto;
  min-width: 220px;
}

/* Título global (fallback) */
.spbi-title {
  font-family: 'Luckiest Guy', "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1.05;
  color: #ffffff;
  -webkit-text-stroke: 0.6px #000;
  text-stroke: 0.6px #000;
  text-shadow: 0 0 0 rgba(0,0,0,0);
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  text-align: left;
}

/* Precio */
.spbi-price {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Descripción */
.spbi-desc {
  margin-bottom: 14px;
  color: var(--spbi-muted);
}

/* CONTROLES: alineados a la izquierda, pegados al flujo, sin float */
.spbi-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  justify-content: flex-start;
}

/* Etiqueta "Cantidad" en negro */
.spbi-qty-label {
  color: #000000;
  font-weight: 700;
  font-family: 'Luckiest Guy', "Helvetica Neue", Arial, sans-serif;
}

/* Input cantidad: fondo blanco, número negro */
.spbi-qty {
  background: #ffffff;
  color: #000000;
  border: 1px solid #cfcfcf;
  box-shadow: none;
  padding: 6px 8px;
  border-radius: 4px;
  width: 72px;
  font-size: 1rem;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Quitar spin buttons en WebKit */
.spbi-qty::-webkit-outer-spin-button,
.spbi-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Placeholder legible */
.spbi-qty::placeholder { color: #6b6b6b; opacity: 1; }

/* Botón añadir al carrito */
.spbi-add-to-cart.button {
  background: linear-gradient(180deg,var(--spbi-accent),#006bb3);
  color: #fff;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Botón deshabilitado */
.spbi-add-to-cart.button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Oculta por completo badges si por algún motivo persisten */
.spbi-badge,
.spbi-stock { display: none !important; }

/* Mensajes de error */
.spbi-error { color: #ff6666; padding: 8px; }

/* Ajustes menores móviles */
@media (max-width: 900px) {
  .spbi-image-wrap { height: 320px; }
  .spbi-images { flex: 0 0 180px; }
}

