/* -------------------------------------------------
   LP TIENDA PLUGIN
   Usa las mismas variables CSS que define el tema
   (--lp-bg-color, --lp-text-color, --lp-accent-color,
   --lp-heading-font, --lp-body-font). Si el tema no las
   define, se usan los valores de respaldo indicados aquí.
------------------------------------------------- */

.lp-filtro-formatos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.lp-filtro-item {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--lp-text-color, #111111);
  text-decoration: none;
  opacity: 0.7;
}

.lp-filtro-item:hover {
  opacity: 1;
}

.lp-filtro-item.is-activo {
  background: var(--lp-accent-color, #111111);
  border-color: var(--lp-accent-color, #111111);
  color: var(--lp-bg-color, #ffffff);
  opacity: 1;
}

.lp-catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px 24px;
  margin-top: 24px;
}

.lp-producto-card {
  display: flex;
  flex-direction: column;
}

.lp-producto-imagen {
  display: block;
  aspect-ratio: 1 / 1;
  background: rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
  overflow: hidden;
}

.lp-producto-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-producto-sin-imagen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.25;
}

.lp-producto-nombre {
  font-size: 1rem;
  margin: 0 0 4px;
}

.lp-producto-nombre a {
  color: var(--lp-text-color, #111111);
}

.lp-producto-formato {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin: 0 0 8px;
}

.lp-producto-precio {
  font-weight: 600;
  margin: 0 0 12px;
}

.lp-producto-precio-single {
  font-size: 1.4rem;
}

/* -------------------------------------------------
   BOTONES
------------------------------------------------- */
.lp-btn {
  display: inline-block;
  border: 1px solid var(--lp-text-color, #111111);
  background: transparent;
  color: var(--lp-text-color, #111111);
  font-family: var(--lp-body-font, inherit);
  font-size: 0.9rem;
  padding: 10px 20px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.lp-btn:hover,
.lp-btn:focus {
  background: var(--lp-text-color, #111111);
  color: var(--lp-bg-color, #ffffff);
  opacity: 1;
}

.lp-btn-agregar {
  margin-top: auto;
}

.lp-producto-acciones {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lp-ver-carrito {
  font-size: 0.85rem;
  text-decoration: underline;
  color: var(--lp-accent-color, #111111);
  white-space: nowrap;
}

.lp-btn-pagar {
  margin-top: 20px;
  background: var(--lp-accent-color, #111111);
  border-color: var(--lp-accent-color, #111111);
  color: var(--lp-bg-color, #ffffff);
}

.lp-btn-stripe {
  width: 100%;
  background: var(--lp-accent-color, #111111);
  border-color: var(--lp-accent-color, #111111);
  color: var(--lp-bg-color, #ffffff);
}

/* -------------------------------------------------
   PRODUCTO INDIVIDUAL
------------------------------------------------- */
.lp-producto-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.lp-producto-single-imagen {
  aspect-ratio: 1 / 1;
  background: rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.lp-producto-single-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-producto-single-comprar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.lp-cantidad-input {
  width: 60px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: var(--lp-text-color, #111111);
}

@media (max-width: 640px) {
  .lp-producto-single-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------
   CARRITO
------------------------------------------------- */
.lp-carrito-tabla {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.lp-carrito-tabla th,
.lp-carrito-tabla td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
}

.lp-carrito-cantidad {
  width: 56px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: var(--lp-text-color, #111111);
}

.lp-carrito-quitar {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--lp-text-color, #111111);
  opacity: 0.5;
}

.lp-carrito-quitar:hover {
  opacity: 1;
}

.lp-carrito-total {
  text-align: right;
  font-size: 1.1rem;
  margin-top: 16px;
}

/* -------------------------------------------------
   CHECKOUT
------------------------------------------------- */
.lp-checkout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.lp-checkout-lista {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.lp-checkout-lista li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
}

.lp-checkout-total {
  text-align: right;
  font-size: 1.1rem;
}

.lp-checkout-datos label {
  display: block;
  margin: 16px 0 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.lp-checkout-datos input[type="text"],
.lp-checkout-datos input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: var(--lp-text-color, #111111);
  font-family: var(--lp-body-font, inherit);
}

.lp-metodo-pago {
  margin-top: 24px;
}

.lp-checkout-error {
  color: #b3261e;
  font-size: 0.9rem;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .lp-checkout {
    grid-template-columns: 1fr;
  }
}
