/* ================================
   Carrito de compras (cart.css)
   ================================ */

/* Sección principal */
.section--cart {
  padding: 4rem 1rem;
  background: #fff;
  color: #111;
  font-family: 'Oswald', sans-serif;
}

.section--cart .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero compacto */
.hero--compact {
  background: #f5f5f5;
  padding: 3rem 1rem;
  text-align: center;
}

.hero--compact .hero__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.hero--compact .hero__subtitle {
  font-size: 1.1rem;
  color: #555;
}

/* Grid carrito */
.grid--cart {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1.5rem;
}

.cart-item__media img,
.cart-item__media .img-placeholder {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f0f0;
}

/* Info */
.cart-item__info {
  flex: 1;
}

.cart-item__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.cart-item__meta {
  display: flex;
  gap: 1rem;
  font-size: .95rem;
  color: #555;
  margin-bottom: .75rem;
}

.cart-item__meta .price {
  font-weight: 500;
}

.stock--ok {
  color: #2e7d32; /* verde */
}

.stock--low {
  color: #c62828; /* rojo */
}

/* Acciones dentro de item */
.cart-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
}

.qty-label {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.qty-input {
  width: 70px;
  padding: .25rem .5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
}

.cart-item__line {
  font-size: .95rem;
  color: #333;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: .5rem;
}

/* Botones */
.btn {
  padding: .6rem 1.2rem;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.btn--primary {
  background: #2e7d32;
  color: #fff;
}

.btn--primary:hover {
  background: #256628;
}

.btn--secondary {
  background: #111;
  color: #fff;
}

.btn--secondary:hover {
  background: #333;
}

.btn--ghost {
  background: transparent;
  border: 1px solid #aaa;
  color: #333;
}

.btn--ghost:hover {
  border-color: #111;
  color: #111;
}

.btn--link {
  background: none;
  color: #c62828;
  padding: 0;
}

.btn--link:hover {
  text-decoration: underline;
}

/* Resumen */
.cart-summary .card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
}

.cart-summary .card__header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  font-weight: 600;
  font-size: 1.2rem;
}

.cart-summary .card__body {
  padding: 1rem 1.5rem;
}

.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.summary-total {
  font-size: 1.1rem;
  font-weight: 600;
  border-top: 1px solid #e5e5e5;
  padding-top: .75rem;
}

.summary-note {
  font-size: .85rem;
  color: #666;
  margin-top: 1rem;
}

.cart-summary .card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* Íconos de pago */
.payment-icons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  opacity: .7;
  font-size: 1.2rem;
}

/* Estado vacío */
.card--empty {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fafafa;
}

.card--empty h2 {
  margin-bottom: .75rem;
}

/* Responsive */
@media (max-width: 900px) {
  .grid--cart {
    grid-template-columns: 1fr;
  }
  .cart-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cart-item__actions {
    justify-content: center;
  }
}
.cart-toolbar {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin: 1rem 0 1.25rem;
  flex-wrap: wrap;
}

.btn--auto {
  opacity: .95;
}

.btn--auto.is-on {
  background: #2e7d32; /* mismo verde primary */
  color: #fff;
}
/* Fondo blanco solo para esta página */
body {
  background: #fff !important;
  color: #111; /* asegura contraste en textos */
}