/* src/styles/carrito.css — estilos propios de pages/carrito.php */

.cart-line {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(22, 36, 28, 0.08);
  border-radius: 1rem;
}

.cart-line-img {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 0.75rem;
  overflow: hidden;
  display: block;
}

.cart-line-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-line-body {
  flex: 1;
  min-width: 0;
}

.cart-line-unavailable {
  opacity: 0.6;
}

.cart-line-unavailable .cart-line-img img {
  filter: grayscale(1);
}

.cart-remove-btn {
  color: rgba(22, 36, 28, 0.4);
  transition: color 0.15s ease;
}

.cart-remove-btn:hover {
  color: #C24630; /* coral-600 */
}

/* Stepper de cantidad propio del carrito — compacto, sin depender de
   main.css ni de transform:scale (que dejaba espacio vacío alrededor). */
.qty-stepper-sm {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(22, 36, 28, 0.14);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  width: fit-content;
}

.qty-stepper-sm button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(22, 36, 28, 0.04);
  color: #16241C;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.qty-stepper-sm button:hover {
  background: #EEF4EF; /* forest-50 */
  color: #255840;      /* forest-600 */
}

.qty-stepper-sm button:active {
  background: #D9E6DC; /* forest-100 */
}

.qty-stepper-sm .cart-qty-value {
  width: 34px;
  height: 30px;
  border: none;
  border-left: 1px solid rgba(22, 36, 28, 0.1);
  border-right: 1px solid rgba(22, 36, 28, 0.1);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #16241C;
  background: transparent;
  pointer-events: none; /* solo lectura, se cambia con los botones */
}

@media (max-width: 480px) {
  .cart-line-img {
    width: 64px;
    height: 64px;
  }
}

.variant-swatch-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--swatch, #C9C9C9);
  border: 1px solid rgba(22, 36, 28, 0.15);
  flex: none;
}
